/* Brat-style: bold, utilitarian sans across the page. */

:root {
  --lime: #8acd00;
  --deep-blue: #1615d4;
  --electric-red: #ee1c12;
  --hot-red: #c4142d;
  --ink: #050505;
  --neon-yellow: #d6ff2d;
  --shadow: rgba(9, 9, 9, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: transparent;
  
  
  color: var(--ink);
}


.stage {
  position: fixed;
  inset: 0;
  background: var(--stage-color, #8acd00);
  transition: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px 48px;
}

.card {
  width: min(440px, 100%);
  background: var(--lime);
  border-radius: 28px;
  padding: 40px 22px 30px;
  box-shadow: 0 24px 48px rgba(12, 12, 12, 0.2);
  position: relative;
  overflow: hidden;
}

.waitlist-button {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(5, 5, 5, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: #000000;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  z-index: 2;
  text-decoration: none;
}

.waitlist-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
}

.waitlist-button:hover,
.waitlist-button:focus-visible {
  transform: translateY(-1px) scale(1.05);
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(5, 5, 5, 0.42);
}

.waitlist-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.card.live-mode .waitlist-button {
  color: var(--live-text-color, #ffffff);
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.45);
}

.card.live-mode {
  background: transparent;
  transition: none;
}

.hero {
  text-align: center;
  position: relative;
  z-index: 1;
}

.avatar-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  margin: 0 auto 12px;
  padding: 4px;
  background: conic-gradient(from 0deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #833ab4, #fd1d1d, #fcb045, #f09433);
  animation: avatar-glow 2s steps(1, end) infinite;
}

.avatar {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 50%;
  background: var(--hot-red);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

@keyframes avatar-glow {
  0%   { box-shadow: -4px -4px 16px rgba(255,34,34,0.6),   4px  4px 16px rgba(34,204,34,0.5),  0 0 28px rgba(34,85,255,0.35); }
  33%  { box-shadow:  4px  4px 16px rgba(34,204,34,0.6),  -4px  4px 16px rgba(34,85,255,0.5),  0 0 28px rgba(255,34,34,0.35); }
  66%  { box-shadow:  4px -4px 16px rgba(34,85,255,0.6),  -4px -4px 16px rgba(255,34,34,0.5),  0 0 28px rgba(34,204,34,0.35); }
  100% { box-shadow: -4px -4px 16px rgba(255,34,34,0.6),   4px  4px 16px rgba(34,204,34,0.5),  0 0 28px rgba(34,85,255,0.35); }
}

.avatar::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px dotted #000;
  pointer-events: none;
}

.handle {
  margin: 0 0 12px;
  font-size: 22px;
  color: var(--ink);
  font-weight: 700;
  display: block;
  text-align: center;
  animation: handle-rgb 2s steps(1,end) infinite;
}
@keyframes handle-rgb {
  0%   { text-shadow: -1.5px -1.5px 0 rgba(255,34,34,0.5),  1.5px -1.5px 0 rgba(34,204,34,0.5), -1.5px 1.5px 0 rgba(34,85,255,0.5),  1.5px  1.5px 0 rgba(255,34,34,0.5); }
  33%  { text-shadow:  1.5px  1.5px 0 rgba(34,204,34,0.5), -1.5px  1.5px 0 rgba(34,85,255,0.5),  1.5px -1.5px 0 rgba(255,34,34,0.5), -1.5px -1.5px 0 rgba(34,204,34,0.5); }
  66%  { text-shadow:  1.5px -1.5px 0 rgba(34,85,255,0.5), -1.5px -1.5px 0 rgba(255,34,34,0.5),  1.5px  1.5px 0 rgba(34,204,34,0.5), -1.5px  1.5px 0 rgba(34,85,255,0.5); }
  100% { text-shadow: -1.5px -1.5px 0 rgba(255,34,34,0.5),  1.5px -1.5px 0 rgba(34,204,34,0.5), -1.5px 1.5px 0 rgba(34,85,255,0.5),  1.5px  1.5px 0 rgba(255,34,34,0.5); }
}


.socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.social {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--hot-red);
  text-decoration: none;
  border-radius: 50%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card.live-mode .social,
.card.live-mode .handle,
.card.live-mode .dots {
  color: var(--live-text-color, #ffffff);
}

.card.live-mode .thought-bubble {
  color: rgba(255, 255, 255, 0.6);
}

.social svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.social img {
  width: 28px;
  height: 28px;
  display: block;
}

.social:focus-visible,
.social:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.links {
  display: grid;
  gap: 10px;
}

.link {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
  background: var(--deep-blue);
  color: var(--neon-yellow);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 10px 20px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link.authorizing {
  background: #2a2a3a;
  color: #888;
  cursor: wait;
  pointer-events: none;
  opacity: 0.7;
}

.link[data-twitch] {
  position: relative;
}

.link[data-twitch] .twitch-player {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  display: none;
}

.link[data-twitch] .twitch-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.link[data-twitch].is-live {
  align-items: center;
  gap: 12px 16px;
  padding: 14px 18px 16px;
}

.link[data-twitch].is-live .twitch-player {
  display: block;
  margin: 8px 0 0;
  justify-self: center;
}

.card.live-mode .link {
  background: var(--live-bg-color, #8acd00);
  color: var(--live-text-color, #d6ff2d);
}

.link:hover,
.link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(5, 5, 5, 0.3);
}

.thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--hot-red);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  text-transform: lowercase;
}

.thumb img {
  width: 22px;
  height: 22px;
  display: block;
}

.thumb.nintendo {
  background: linear-gradient(135deg, #ff1e1e 0%, #b30000 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.label {
  font-size: 16px;
  font-weight: 600;
}

.dots {
  justify-self: end;
  font-size: 20px;
  opacity: 0.8;
}

.mini-player {
  grid-column: 1 / -1;
  display: none;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.link.is-live .mini-player {
  display: block;
}

.mini-player iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}


.link-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.link--half {
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto;
  padding: 10px 12px;
}

.link--half .label {
  font-size: 14px;
}

.link-fifth {
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.link--fifth {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  min-width: 0;
}

.link--fifth .thumb {
  width: 42px;
  height: 42px;
}

.link--fifth .thumb img {
  width: 22px;
  height: 22px;
}

.profile-bubble[hidden] { display: none; }
.profile-bubble {
  display: table;
  margin: 0 auto 14px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 12px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(5, 5, 5, 0.7);
  letter-spacing: 0.02em;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-bubble::before {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.profile-bubble::after {
  content: "";
  position: absolute;
  bottom: -17px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
}

.thought-bubble {
  margin: 24px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: rgba(5, 5, 5, 0.45);
  letter-spacing: 0.02em;
}

.business-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(5, 5, 5, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  color: #000000;
  display: grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  z-index: 2;
}

.business-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
}

.business-btn:hover,
.business-btn:focus-visible {
  transform: translateY(-1px) scale(1.05);
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(5, 5, 5, 0.42);
}

.business-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.card.live-mode .business-btn {
  color: var(--live-text-color, #ffffff);
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.45);
}

.share-button {
  position: absolute;
  top: 14px;
  right: 62px;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(5, 5, 5, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: #000000;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  z-index: 2;
}

.share-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
}

.share-button:hover,
.share-button:focus-visible {
  transform: translateY(-1px) scale(1.05);
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(5, 5, 5, 0.42);
}

.share-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.card.live-mode .share-button {
  color: var(--live-text-color, #ffffff);
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 480px) {
  body {
    animation: none;
  }

  .card {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    padding: 32px 18px 36px;
    box-shadow: none;
  }

  .label {
    font-size: 16px;
  }
}

@keyframes ambient-sweep {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-14px, 10px, 0) scale(1.08);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}


.avatar {
  position: relative;
}

.avatar-media,
.avatar-word {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: none;
}

.avatar-media {
  background: url("assets/avatar.jpeg") center 55%/cover no-repeat;
}

.avatar-word {
  font-size: 20px;
  font-weight: 800;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  background: var(--hot-red);
  line-height: 1;
  text-align: center;
  padding: 0 8px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.card.live-mode .avatar,
.card.live-mode .avatar-word {
  background: var(--live-bg-color, #8acd00);
}

.avatar-media.show,
.avatar-word.show {
  opacity: 1;
}

@media (prefers-color-scheme: light) {
  .social { color: #000; }
}

@media (prefers-color-scheme: dark) {
  .profile-bubble {
    background: rgba(30, 30, 30, 0.75);
    color: rgba(255, 255, 255, 0.75);
  }
  .profile-bubble::before,
  .profile-bubble::after {
    background: rgba(30, 30, 30, 0.75);
  }
}
