:root {
  color-scheme: dark;
  --bg: #06060a;
  --panel: rgba(37, 35, 44, 0.9);
  --panel-strong: rgba(22, 20, 27, 0.94);
  --text: #f8f5ff;
  --muted: #aba4b5;
  --faint: #756d80;
  --purple: #8d65ff;
  --purple-dark: #1d0c2d;
  --blue: #5965f2;
  --green: #21e6a0;
  --gold: #ffc64a;
  --red: #ff5b75;
  --cyan: #48d9ff;
  --stroke: rgba(255, 255, 255, 0.16);
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.58);
  --title-font: Impact, Haettenschweiler, "Arial Black", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(106, 54, 148, 0.2), transparent 28rem),
    radial-gradient(circle at 50% 105%, rgba(42, 18, 72, 0.42), transparent 34rem),
    linear-gradient(180deg, #050507 0%, #08070d 55%, #0b0712 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  text-underline-offset: 2px;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.stars,
.stars::before,
.stars::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: repeat;
}

.stars {
  opacity: 0.72;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(151, 139, 215, 0.75) 0 1px, transparent 1.8px);
  background-size: 230px 230px, 310px 310px;
  background-position: 21px 39px, 132px 18px;
}

.stars::before {
  content: "";
  opacity: 0.42;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(135, 206, 255, 0.55) 0 1px, transparent 1.8px);
  background-size: 410px 410px, 520px 520px;
  background-position: 78px 118px, 280px 65px;
}

.stars::after {
  content: "";
  opacity: 0.35;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.4px);
  background-size: 170px 170px;
  background-position: 92px 9px;
  animation: star-drift 16s linear infinite;
}

.view {
  display: none;
  width: min(100% - 2rem, 960px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 3rem 0 2.5rem;
}

.view.is-active {
  display: flex;
}

.top-bar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 8;
}

.claim-button {
  min-height: 2.8rem;
  padding: 0.25rem 0.9rem 0.25rem 0.32rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(141, 101, 255, 0.56);
  border-radius: 999px;
  background: rgba(14, 11, 19, 0.76);
  box-shadow: 0 0 28px rgba(141, 101, 255, 0.22);
  color: white;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.claim-button span {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(141, 101, 255, 0.9), rgba(50, 32, 77, 0.9));
  color: white;
}

.compact-claim {
  padding: 0 1rem;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(84, 43, 127, 0.2), transparent 27rem),
    rgba(0, 0, 0, 0.88);
}

.age-gate[hidden] {
  display: none;
}

.age-panel {
  width: min(100%, 350px);
  padding: 2rem;
  border: 1px solid rgba(145, 69, 230, 0.72);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(141, 101, 255, 0.28), transparent 12rem),
    rgba(28, 10, 40, 0.95);
  box-shadow: 0 0 42px rgba(145, 69, 230, 0.25), var(--shadow);
  text-align: center;
}

.age-pill,
.season-badge {
  width: fit-content;
  margin: 0 auto 1.2rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(185, 134, 255, 0.42);
  border-radius: 999px;
  background: rgba(141, 101, 255, 0.17);
  color: #e2d6ff;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.age-panel h2,
.check-copy h2,
.queue-panel h2,
.match-console h2,
.leaderboard-shell > h2,
.dialog-panel h2 {
  margin: 0;
  font-family: var(--title-font);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.age-panel h2 {
  font-size: 2.2rem;
}

.age-panel p {
  margin: 1rem 0 1.4rem;
  color: #d7cfde;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.45;
}

.age-enter,
.age-exit {
  width: 100%;
  min-height: 3.15rem;
  border-radius: 999px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.age-enter {
  border: 0;
  background: white;
  color: #16121b;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.24);
}

.age-exit {
  margin-top: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #d5cddc;
}

.age-panel small {
  display: block;
  margin-top: 1.2rem;
  color: #aaa1b3;
  line-height: 1.45;
}

.hero {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(1.4rem, 5.8vh, 3.7rem);
}

.kicker {
  margin: 0 0 0.1rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(4.8rem, 16vw, 8.7rem);
  line-height: 0.94;
  letter-spacing: 0;
  color: #f9f7ff;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.16),
    0 28px 70px rgba(128, 92, 204, 0.28);
}

.privacy-note {
  margin: 0.9rem 0 1.15rem;
  max-width: 620px;
  color: #d2ced9;
  font-size: 0.82rem;
  font-weight: 800;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}

.privacy-note a,
.age-panel a,
.camera-status a {
  color: #f8de7a;
  font-weight: 950;
}

.online-pill {
  height: 2rem;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  border: 1px solid rgba(43, 230, 167, 0.28);
  border-radius: 999px;
  background: rgba(3, 19, 18, 0.8);
  box-shadow: 0 0 22px rgba(33, 230, 160, 0.1), inset 0 0 18px rgba(33, 230, 160, 0.06);
  color: #f5fff9;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.online-pill span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.arena-card {
  position: relative;
  width: min(100%, 604px);
  min-height: 278px;
  margin-top: 1.45rem;
  padding: 3.25rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 34%, rgba(105, 83, 128, 0.25), transparent 14rem),
    linear-gradient(180deg, rgba(53, 52, 57, 0.95), rgba(29, 29, 33, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 70px rgba(0, 0, 0, 0.48);
  color: var(--text);
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease;
}

.arena-card:hover,
.arena-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
  outline: none;
}

.crossed-swords {
  width: 3.7rem;
  height: 3.7rem;
  display: grid;
  place-items: center;
  color: #d8c8ff;
  font-size: 2.45rem;
  filter: drop-shadow(0 13px 18px rgba(124, 84, 201, 0.44));
}

.arena-card strong {
  margin: 0.45rem 0 1rem;
  font-family: var(--title-font);
  font-size: clamp(2.1rem, 6vw, 3.15rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.arena-card > span:last-of-type {
  color: #d6c5ed;
  font-family: var(--title-font);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.arena-card small {
  margin-top: 1.38rem;
  color: #8e8795;
  font-size: 0.7rem;
  font-weight: 700;
}

.quick-actions {
  width: min(100%, 604px);
  margin-top: 1.45rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.action-card {
  min-height: 66px;
  padding: 0.72rem 1rem;
  display: grid;
  grid-template-columns: 2.7rem 1fr auto;
  align-items: center;
  gap: 0.74rem;
  border-radius: 16px;
  text-align: left;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.action-card:hover,
.action-card:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.leaderboard {
  border: 1px solid rgba(153, 77, 222, 0.48);
  background: rgba(29, 12, 39, 0.76);
  box-shadow: inset 0 0 18px rgba(111, 47, 165, 0.12);
}

.discord {
  border: 1px solid rgba(102, 112, 255, 0.62);
  background: rgba(23, 26, 70, 0.82);
  box-shadow: inset 0 0 18px rgba(82, 97, 255, 0.14);
}

.action-icon {
  position: relative;
  width: 2.42rem;
  height: 2.42rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
}

.trophy-icon::before {
  content: "";
  width: 1.2rem;
  height: 1.08rem;
  border-radius: 0.2rem 0.2rem 0.45rem 0.45rem;
  background: linear-gradient(180deg, #ffe285, #f3a922);
  box-shadow: -0.34rem 0.08rem 0 -0.18rem #f3a922, 0.34rem 0.08rem 0 -0.18rem #f3a922;
}

.trophy-icon::after {
  content: "";
  position: absolute;
  bottom: 0.5rem;
  width: 1rem;
  height: 0.18rem;
  border-radius: 999px;
  background: #f8de7a;
}

.discord-icon {
  background: var(--blue);
}

.discord-icon::before {
  content: "";
  position: absolute;
  width: 1.34rem;
  height: 0.92rem;
  border-radius: 0.72rem 0.72rem 0.48rem 0.48rem;
  background: white;
}

.discord-icon::after {
  content: "";
  position: absolute;
  width: 0.82rem;
  height: 0.22rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 0.18rem 50%, var(--blue) 0 0.08rem, transparent 0.09rem),
    radial-gradient(circle at 0.64rem 50%, var(--blue) 0 0.08rem, transparent 0.09rem);
}

.action-card strong {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.action-card small {
  display: block;
  color: #c1bac9;
  font-size: 0.78rem;
  font-weight: 700;
}

.chevron {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.25rem;
  font-weight: 900;
}

.gate-copy {
  max-width: 520px;
  margin: 1.55rem 0 0;
  color: rgba(151, 143, 160, 0.8);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  line-height: 1.55;
  text-transform: uppercase;
}

.camera-check,
.queue-view,
.arena-view,
.leaderboard-view {
  align-items: center;
  justify-content: center;
}

.check-shell,
.queue-panel,
.leaderboard-shell {
  width: min(100%, 760px);
}

.back-button,
.danger-button,
.primary-button,
.secondary-button {
  min-height: 2.65rem;
  border-radius: 999px;
  padding: 0 1.15rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.back-button,
.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.primary-button {
  border: 1px solid rgba(33, 230, 160, 0.38);
  background: rgba(33, 230, 160, 0.13);
  color: #dcfff3;
}

.danger-button {
  border: 1px solid rgba(255, 91, 117, 0.45);
  background: rgba(255, 91, 117, 0.1);
  color: #ffd8df;
}

.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.check-card,
.queue-panel,
.season-card,
.dialog-panel {
  border: 1px solid rgba(145, 69, 230, 0.5);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(141, 101, 255, 0.2), transparent 16rem),
    rgba(25, 13, 36, 0.94);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.check-card {
  margin-top: 1rem;
  padding: 2rem;
}

.check-copy {
  text-align: center;
}

.check-copy h2 {
  font-size: clamp(2.3rem, 7vw, 3.5rem);
}

.subhead {
  margin: 0.7rem 0 1.4rem;
  color: #c1bad0;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.camera-stage {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #08070b;
}

.camera-stage video,
.fighter-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scaleX(-1);
}

#remote-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 200ms ease;
}

#remote-video.is-live {
  opacity: 1;
}

.simulated-feed.has-video .avatar-head,
.simulated-feed.has-video .scan-line {
  opacity: 0;
}

.camera-stage video {
  min-height: 330px;
}

.camera-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.75rem;
  background:
    linear-gradient(135deg, rgba(141, 101, 255, 0.14), transparent),
    #0c0b10;
  color: var(--muted);
  text-align: center;
}

.camera-placeholder[hidden],
.permission-help[hidden] {
  display: none;
}

.camera-placeholder span {
  width: 3rem;
  height: 2.05rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 0.35rem;
}

.camera-placeholder span::before {
  content: "";
  position: absolute;
  width: 0.9rem;
  height: 0.9rem;
  margin: 0.45rem 0 0 0.82rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.camera-placeholder p {
  margin: 0;
  font-weight: 850;
}

.permission-help {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.58);
  color: #ddd5e6;
  line-height: 1.45;
}

.permission-help strong {
  display: block;
  margin-bottom: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.permission-help ol {
  margin: 0;
  padding-left: 1.3rem;
}

.challenge-meter,
.queue-progress {
  height: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

.challenge-meter {
  margin: 1.5rem 0 1rem;
}

.challenge-meter span,
.queue-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--purple));
  transition: width 280ms ease;
}

.challenge-steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  list-style: none;
}

.challenge-steps li {
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.challenge-steps li.is-active,
.challenge-steps li.is-done {
  color: var(--green);
}

.camera-status {
  min-height: 2.8rem;
  margin: 1.4rem auto;
  max-width: 640px;
  color: #c9c1d2;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.5;
  text-align: center;
}

.check-actions,
.dialog-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.queue-panel {
  padding: 3rem 2rem;
  text-align: center;
}

.queue-orbit {
  position: relative;
  width: 9rem;
  height: 9rem;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(33, 230, 160, 0.24), transparent 45%),
    rgba(255, 255, 255, 0.04);
}

.queue-orbit span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(33, 230, 160, 0.24);
  border-radius: 50%;
  animation: pulse-ring 2.2s ease-in-out infinite;
}

.queue-orbit span:nth-child(2) {
  animation-delay: 0.45s;
}

.queue-orbit span:nth-child(3) {
  animation-delay: 0.9s;
}

.queue-panel h2 {
  font-size: clamp(2.6rem, 8vw, 4rem);
}

.queue-panel > p:not(.kicker) {
  color: var(--muted);
  font-weight: 800;
}

.queue-hint {
  margin: -0.2rem 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.queue-progress {
  margin: 1.5rem auto;
  max-width: 500px;
}

.google-queue {
  display: none;
  margin: 0 auto 1rem;
}

.google-queue.is-visible {
  display: inline-flex;
  align-items: center;
}

.queue-stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.queue-stats div,
.profile-stats div {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
}

dt {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

dd {
  margin: 0.35rem 0 0;
  color: white;
  font-weight: 950;
}

.arena-view {
  width: min(100% - 2rem, 1120px);
  flex-direction: column;
  gap: 1rem;
}

.arena-topline {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.match-clock {
  min-width: 6.2rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(33, 230, 160, 0.32);
  border-radius: 999px;
  background: rgba(3, 19, 18, 0.82);
  color: var(--green);
  font-weight: 950;
  text-align: center;
}

.battle-board {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.fighter-card,
.match-console,
.chat-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(20, 18, 25, 0.88);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.fighter-card {
  overflow: hidden;
}

.fighter-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #08070b;
}

.fighter-media .compact {
  background: rgba(12, 11, 16, 0.82);
}

.simulated-feed {
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(33, 230, 160, 0.15), transparent),
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.13), transparent 8rem),
    linear-gradient(135deg, #1c1428, #151821);
}

.avatar-head {
  width: 8rem;
  height: 10rem;
  border-radius: 48% 48% 42% 42%;
  background:
    radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.35), transparent 0.35rem),
    radial-gradient(circle at 66% 32%, rgba(255, 255, 255, 0.35), transparent 0.35rem),
    linear-gradient(180deg, rgba(255, 220, 180, 0.92), rgba(162, 98, 82, 0.86));
  box-shadow: 0 0 38px rgba(141, 101, 255, 0.34);
}

.scan-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(72, 217, 255, 0.18) 50%, transparent 100%);
  height: 26%;
  animation: scan 2.4s linear infinite;
}

.fighter-info {
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.75rem;
}

.fighter-info span {
  grid-column: 1 / -1;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fighter-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fighter-info small {
  color: var(--green);
  font-weight: 950;
}

.versus {
  width: 4.2rem;
  height: 4.2rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-family: var(--title-font);
  font-size: 1.7rem;
}

.match-console {
  width: 100%;
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, auto) auto;
  align-items: center;
  gap: 1rem;
}

.match-console h2 {
  font-size: 2.2rem;
}

.match-console p:not(.kicker) {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-weight: 800;
}

.match-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.score-board {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(6.5rem, 1fr));
  gap: 0.55rem;
}

.score-board div {
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
}

.score-board dd {
  color: var(--green);
  font-size: 1.35rem;
}

.chat-panel {
  width: 100%;
  padding: 0.8rem;
}

#chat-log {
  min-height: 4.8rem;
  max-height: 7.5rem;
  overflow: auto;
  color: #cfc7d9;
  font-size: 0.9rem;
}

#chat-log p {
  margin: 0.25rem 0;
}

#chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  color: white;
  outline: none;
}

input,
select {
  min-height: 2.75rem;
  padding: 0 0.9rem;
}

textarea {
  padding: 0.8rem 0.9rem;
  resize: vertical;
}

#chat-form button {
  border: 1px solid rgba(141, 101, 255, 0.4);
  border-radius: 14px;
  background: rgba(141, 101, 255, 0.16);
  color: white;
  font-weight: 950;
  text-transform: uppercase;
}

.google-button {
  width: 100%;
  min-height: 2.9rem;
  margin: 0 0 1rem;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #17131d;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.leaderboard-view {
  align-items: flex-start;
}

.leaderboard-shell {
  padding-bottom: 2rem;
}

.leaderboard-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.season-card {
  margin: 1rem 0 2rem;
  padding: 1.5rem;
  text-align: center;
}

.season-card h2 {
  margin: 0 0 1rem;
  color: #d9d0e3;
  font-size: 1rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.season-countdown,
.profile-stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.season-countdown div {
  padding: 0.85rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
}

.season-countdown dt {
  color: white;
  font-size: 1.65rem;
  font-weight: 950;
}

.leaderboard-shell > h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 9vw, 4.8rem);
  text-align: center;
}

.segmented-control,
.rank-tabs {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.rank-tabs {
  margin: 0.8rem 0 1.2rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.segmented-control button,
.rank-tabs button {
  min-width: 6rem;
  min-height: 2.45rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: #ded7e8;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.segmented-control button.is-active,
.rank-tabs button.is-active {
  border-color: rgba(185, 134, 255, 0.68);
  background: rgba(141, 101, 255, 0.24);
  box-shadow: 0 0 26px rgba(141, 101, 255, 0.18);
}

.podium {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 0.8rem;
}

.podium-card {
  min-height: 170px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.22), transparent 4rem),
    rgba(255, 255, 255, 0.08);
}

.podium-card:first-child {
  min-height: 215px;
  order: 2;
  border-color: rgba(255, 198, 74, 0.45);
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 198, 74, 0.34), transparent 5rem),
    rgba(96, 70, 16, 0.28);
}

.podium-card:nth-child(2) {
  order: 1;
  background:
    radial-gradient(circle at 50% 10%, rgba(72, 217, 255, 0.26), transparent 5rem),
    rgba(33, 60, 80, 0.28);
}

.podium-card:nth-child(3) {
  order: 3;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 91, 117, 0.26), transparent 5rem),
    rgba(80, 40, 42, 0.28);
}

.podium-rank {
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-weight: 950;
}

.podium-card strong,
.rank-list strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-card small {
  color: var(--green);
  font-weight: 950;
}

.rank-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  list-style: none;
}

.rank-list li {
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.rank-list li.is-you {
  border-color: rgba(33, 230, 160, 0.42);
  background: rgba(33, 230, 160, 0.09);
}

.rank-number {
  color: #d9d0e3;
  font-weight: 950;
}

.rank-meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.rank-score {
  color: var(--green);
  font-weight: 950;
}

.app-dialog {
  width: min(92vw, 460px);
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
}

.app-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.dialog-panel {
  position: relative;
  margin: 0;
  padding: 1.5rem;
}

.close-button {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.36);
  color: white;
  font-size: 1.35rem;
  line-height: 1;
}

.dialog-panel h2 {
  margin-bottom: 1rem;
  font-size: 2.4rem;
}

.dialog-panel label {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
  color: #d6cedf;
  font-weight: 850;
}

.profile-stats {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1rem;
}

@keyframes star-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(170px);
  }
}

@keyframes pulse-ring {
  from {
    transform: scale(0.45);
    opacity: 0.9;
  }
  to {
    transform: scale(1.15);
    opacity: 0;
  }
}

@keyframes scan {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(390%);
  }
}

@media (max-width: 820px) {
  .view {
    width: min(100% - 1.25rem, 960px);
    padding-top: 4.2rem;
  }

  .quick-actions,
  .battle-board,
  .match-console,
  .score-board,
  .queue-stats,
  .podium {
    grid-template-columns: 1fr;
  }

  .battle-board {
    gap: 0.65rem;
  }

  .versus {
    margin: 0 auto;
  }

  .match-actions {
    justify-content: stretch;
  }

  .match-actions button,
  .check-actions button,
  .dialog-actions button {
    flex: 1;
  }

  .leaderboard-header,
  .arena-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .camera-stage {
    min-height: 280px;
  }

  .camera-stage video {
    min-height: 280px;
  }
}

@media (max-width: 470px) {
  .top-bar {
    right: 0.65rem;
  }

  .claim-button strong {
    display: none;
  }

  h1 {
    font-size: clamp(3.7rem, 22vw, 4.8rem);
  }

  .privacy-note {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .arena-card {
    min-height: 270px;
    padding: 2.7rem 1.1rem 1.4rem;
    border-radius: 24px;
  }

  .action-card {
    grid-template-columns: 2.5rem 1fr auto;
    padding: 0.68rem 0.78rem;
  }

  .action-card strong {
    font-size: 0.76rem;
  }

  .gate-copy {
    font-size: 0.64rem;
  }

  .check-card,
  .queue-panel,
  .dialog-panel {
    padding: 1.2rem;
    border-radius: 24px;
  }

  .challenge-steps li {
    font-size: 0.64rem;
  }

  .season-countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .rank-list li {
    grid-template-columns: 2.3rem minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 2;
  }
}

/* Screenshot-inspired main menu and scan battle surface */
.main-menu {
  width: min(100% - 1.6rem, 1480px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 1.2rem;
}

.menu-shell {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.05rem;
}

.main-menu h1 {
  font-size: clamp(4.2rem, 12vw, 8.5rem);
  opacity: 0.96;
}

.main-menu .privacy-note {
  margin: -0.55rem 0 0;
}

.mode-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.18fr 1fr 0.86fr;
  gap: 1.45rem;
}

.mode-card {
  position: relative;
  min-height: 370px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 28%, rgba(127, 84, 206, 0.22), transparent 14rem),
    linear-gradient(180deg, rgba(45, 43, 49, 0.82), rgba(20, 19, 24, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 30px 80px rgba(0, 0, 0, 0.42);
  color: white;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.mode-card:hover,
.mode-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(72, 217, 255, 0.48);
  box-shadow: 0 0 42px rgba(72, 217, 255, 0.12), 0 30px 80px rgba(0, 0, 0, 0.42);
  outline: none;
}

.arena-mode {
  justify-content: flex-start;
  border-color: rgba(141, 101, 255, 0.38);
  box-shadow: 0 0 46px rgba(141, 101, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.arena-mode .online-pill {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.mode-icon {
  width: 5.4rem;
  height: 5.4rem;
  margin: 3.4rem 0 0.7rem;
  display: grid;
  place-items: center;
  color: #ded2ff;
  font-size: 3.2rem;
  filter: drop-shadow(0 16px 20px rgba(141, 101, 255, 0.45));
}

.controller::before {
  content: "";
  width: 4.3rem;
  height: 2.35rem;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 28% 50%, #7565ef 0 0.25rem, transparent 0.28rem),
    radial-gradient(circle at 72% 43%, #7565ef 0 0.18rem, transparent 0.2rem),
    radial-gradient(circle at 82% 58%, #7565ef 0 0.18rem, transparent 0.2rem),
    linear-gradient(135deg, rgba(141, 101, 255, 0.28), rgba(54, 44, 79, 0.9));
}

.lab-icon::before {
  content: "";
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50% 50% 44% 44%;
  background: linear-gradient(180deg, rgba(141, 101, 255, 0.75), rgba(74, 46, 122, 0.65));
}

.mode-card strong {
  font-family: var(--title-font);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1;
  text-transform: uppercase;
}

.mode-card small {
  margin-top: 0.6rem;
  color: #b9b1c4;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.new-pill {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.48rem 1rem;
  border-radius: 999px;
  background: #ff4f7b;
  box-shadow: 0 0 24px rgba(255, 79, 123, 0.65);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.player-card {
  width: 100%;
  margin: 1.2rem 0 0;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  border: 1px solid rgba(72, 217, 255, 0.45);
  border-radius: 18px;
  background: rgba(15, 45, 68, 0.68);
  box-shadow: inset 0 0 26px rgba(72, 217, 255, 0.14);
  text-align: left;
}

.player-card .player-tag {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-color: rgba(72, 217, 255, 0.32);
  background: rgba(3, 15, 24, 0.48);
}

.player-card div {
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.player-card dt {
  color: #e7f9ff;
  font-size: 0.66rem;
}

.player-card dd {
  color: white;
  font-size: 0.84rem;
}

.rank-progress {
  grid-column: 1 / -1;
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
}

.rank-progress span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.pro-strip {
  width: 100%;
  min-height: 4.6rem;
  padding: 0.9rem 1.15rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(21, 20, 26, 0.92), rgba(34, 26, 48, 0.92));
}

.pro-strip span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pro-strip strong {
  color: #ede7f3;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.pro-strip button {
  min-height: 2.6rem;
  border: 0;
  border-radius: 999px;
  padding: 0 1.35rem;
  background: linear-gradient(180deg, #fff5aa, #ffc12f);
  color: #17110a;
  font-weight: 950;
  text-transform: uppercase;
}

.social-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.social-card {
  min-height: 4.2rem;
  padding: 0.75rem 1rem;
  display: grid;
  grid-template-columns: 2.7rem 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(3, 3, 8, 0.58);
  text-decoration: none;
}

.social-card .action-icon,
.social-card .social-dot {
  grid-row: 1 / -1;
}

.social-dot {
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-weight: 950;
}

.social-card strong {
  color: #d8d1e4;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.social-card small {
  color: #f0ebf8;
  font-weight: 750;
}

.arena-view {
  width: min(100% - 1rem, 1520px);
  min-height: 100vh;
  padding: 0.9rem 0;
  justify-content: flex-start;
}

.arena-topline {
  position: relative;
  z-index: 4;
}

.battle-board {
  flex: 1;
  min-height: min(68vh, 650px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.6rem minmax(0, 1fr);
  gap: 1.1rem;
}

.fighter-card {
  position: relative;
  min-height: 100%;
  border-radius: 22px;
  background: #030406;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 0 32px rgba(0,0,0,0.5);
}

.remote-fighter {
  border-color: rgba(72, 217, 255, 0.45);
  box-shadow: 0 0 38px rgba(72, 217, 255, 0.18), inset 0 0 0 1px rgba(72, 217, 255, 0.18);
}

.fighter-media {
  height: 100%;
  min-height: min(68vh, 650px);
  aspect-ratio: auto;
}

.fighter-media::before,
.fighter-media::after {
  content: "";
  position: absolute;
  width: 4.1rem;
  height: 4.1rem;
  z-index: 5;
  pointer-events: none;
}

.fighter-media::before {
  top: 0.7rem;
  left: 0.7rem;
  border-top: 2px solid rgba(255, 255, 255, 0.4);
  border-left: 2px solid rgba(255, 255, 255, 0.4);
}

.fighter-media::after {
  right: 0.7rem;
  bottom: 0.7rem;
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
}

.face-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scan-panel,
.scan-nameplate {
  position: absolute;
  z-index: 6;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(6, 7, 9, 0.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.28);
}

.scan-panel {
  top: 1.15rem;
  left: 1.15rem;
  width: 7.4rem;
  padding: 0.7rem;
}

.scan-panel span,
.scan-nameplate span {
  display: block;
  color: rgba(255,255,255,0.62);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scan-panel strong {
  display: block;
  color: white;
  font-size: 2.1rem;
  font-weight: 950;
  line-height: 1;
}

.scan-panel small {
  display: block;
  color: #d8d4df;
  font-size: 0.64rem;
  font-weight: 850;
  line-height: 1.35;
}

.scan-panel b {
  color: #85ffab;
  font-weight: 950;
}

.mini-report {
  width: 100%;
  margin-top: 0.5rem;
  min-height: 1.8rem;
  border: 1px solid rgba(255, 91, 117, 0.38);
  border-radius: 6px;
  background: rgba(255, 91, 117, 0.22);
  color: #ffdbe1;
  font-size: 0.6rem;
  font-weight: 950;
  text-transform: uppercase;
}

.scan-nameplate {
  top: 1.4rem;
  right: 1.2rem;
  min-width: 11rem;
  padding: 0.6rem 0.75rem;
  text-align: right;
}

.scan-nameplate strong {
  display: block;
  color: white;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.scan-nameplate small {
  color: var(--cyan);
  font-weight: 950;
}

.versus {
  align-self: center;
  width: 4.6rem;
  height: 4.6rem;
  border-color: rgba(72, 217, 255, 0.22);
  color: #43ff78;
  font-size: 4.5rem;
  background: transparent;
  filter: drop-shadow(0 0 18px rgba(67, 255, 120, 0.9));
}

.match-clock {
  background: rgba(0, 40, 34, 0.78);
  box-shadow: 0 0 24px rgba(33, 230, 160, 0.18);
}

.match-console {
  grid-template-columns: minmax(0, 1fr) auto;
  border-color: rgba(72, 217, 255, 0.12);
  background: rgba(7, 7, 11, 0.72);
}

.match-console h2 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.match-actions {
  align-items: center;
}

.chat-panel {
  background: rgba(5, 5, 9, 0.7);
}

@media (max-width: 980px) {
  .mode-grid,
  .social-grid,
  .pro-strip {
    grid-template-columns: 1fr;
  }

  .battle-board {
    grid-template-columns: 1fr;
  }

  .fighter-media {
    min-height: 360px;
  }

  .versus {
    margin: -0.4rem auto;
    font-size: 2rem;
  }
}
