/* ==========================================================================
   STICK//VERSUS — ink-on-paper arcade interface
   ========================================================================== */

:root {
  --bg: #08090c;
  --bg-soft: #0b0d11;
  --panel: #101217;
  --panel-raised: #14171d;
  --panel-bright: #191c23;
  --line: #2b2f37;
  --line-soft: #1d2026;
  --line-bright: #454a55;
  --paper: #f2eee3;
  --paper-muted: #d7d1c1;
  --ink: #14151a;
  --light: #f5f1e6;
  --muted: #90938f;
  --muted-dim: #62656a;
  --lime: #d8ff45;
  --lime-soft: #ecff9d;
  --lime-deep: #a7c72b;
  --cyan: #5ee7e4;
  --orange: #ff6a3d;
  --red: #ff514f;
  --pink: #ff4f8b;
  --violet: #a78bfa;
  --font-display: "Bahnschrift", "Arial Narrow", "Microsoft YaHei", "微软雅黑", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-ui: "Bahnschrift", "Microsoft YaHei", "微软雅黑", "PingFang SC", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", "Microsoft YaHei", "微软雅黑", "PingFang SC", monospace;
  --cut-sm: 8px;
  --cut-md: 14px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background:
    radial-gradient(1200px 650px at 14% 0%, rgba(62, 83, 22, 0.16), transparent 60%),
    radial-gradient(900px 700px at 100% 20%, rgba(66, 36, 28, 0.12), transparent 60%),
    var(--bg);
  color: var(--light);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-playing,
body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.app-shell {
  position: relative;
  z-index: 2;
  min-height: 100svh;
}

.screen {
  display: none;
  width: 100%;
  min-height: 100svh;
}

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

/* --------------------------------------------------------------------------
   Atmosphere
   -------------------------------------------------------------------------- */

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 42% 20%, black 0%, rgba(0, 0, 0, 0.6) 45%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 42% 20%, black 0%, rgba(0, 0, 0, 0.6) 45%, transparent 78%);
}

.ambient-letters {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  font-family: var(--font-mono);
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 238, 227, 0.075);
  user-select: none;
}

.ambient-letters span {
  position: absolute;
  font-weight: 700;
  line-height: 0.8;
}

.ambient-letters span:nth-child(1) {
  left: 2.2vw;
  top: 8vh;
  font-size: 9vw;
}

.ambient-letters span:nth-child(2) {
  left: 47vw;
  top: 66vh;
  font-size: 21vw;
  transform: rotate(-90deg);
  transform-origin: left top;
  opacity: 0.65;
}

.ambient-letters span:nth-child(3) {
  right: 4vw;
  top: 12vh;
  font-size: 5vw;
  opacity: 0.7;
}

.ambient-letters span:nth-child(4) {
  left: 22vw;
  top: 45vh;
  font-size: 2.4vw;
  color: rgba(216, 255, 69, 0.13);
  -webkit-text-stroke: 0;
}

.ambient-letters span:nth-child(5) {
  right: 16vw;
  top: 76vh;
  font-size: 4vw;
}

.ambient-letters span:nth-child(6) {
  left: 7vw;
  top: 86vh;
  font-size: 4vw;
  opacity: 0.45;
}

.cursor-glow {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(216, 255, 69, 0.055) 0, transparent 68%);
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.4s ease;
}

body.is-playing .cursor-glow,
body.is-playing .ambient-grid,
body.is-playing .ambient-letters {
  display: none;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 30px;
  background: var(--bg);
  color: var(--lime);
  font-family: var(--font-mono);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Boot screen
   -------------------------------------------------------------------------- */

.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(216, 255, 69, 0.055), transparent 38%),
    #07080b;
  transition: opacity 0.55s var(--ease-out), visibility 0.55s;
}

.boot-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.025) 3px,
    rgba(255, 255, 255, 0.025) 4px
  );
  pointer-events: none;
}

.boot-overlay.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-inner {
  position: relative;
  width: min(520px, calc(100vw - 52px));
  text-align: center;
}

.boot-emblem {
  position: relative;
  width: 106px;
  height: 142px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 0 18px rgba(216, 255, 69, 0.12));
}

.boot-emblem span {
  position: absolute;
  display: block;
  background: var(--light);
}

.boot-head {
  left: 50%;
  top: 0;
  width: 27px;
  height: 27px;
  margin-left: -13.5px;
  border-radius: 50%;
  background: var(--ink) !important;
  box-shadow: inset 0 0 0 3px var(--light), 0 0 0 1px var(--ink);
}

.boot-head::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 5px;
  height: 3px;
  background: var(--lime);
}

.boot-body {
  left: 50%;
  top: 30px;
  width: 3px;
  height: 69px;
  margin-left: -1.5px;
}

.boot-arm {
  left: 50%;
  top: 45px;
  width: 49px;
  height: 3px;
  transform-origin: 0 50%;
}

.boot-arm--a {
  transform: rotate(-41deg);
  animation: bootArmA 2.4s ease-in-out infinite;
}

.boot-arm--b {
  transform: rotate(43deg);
  animation: bootArmB 2.4s ease-in-out infinite;
}

.boot-leg {
  left: 50%;
  top: 94px;
  width: 47px;
  height: 3px;
  transform-origin: 0 50%;
}

.boot-leg--a {
  transform: rotate(62deg);
}

.boot-leg--b {
  transform: rotate(118deg);
}

.boot-kicker {
  margin: 0 0 10px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
}

.boot-inner h1 {
  margin: 0 0 25px;
  font-family: var(--font-display);
  font-size: clamp(35px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.06;
}

.boot-inner h1 span {
  color: var(--lime);
}

.boot-rail {
  height: 3px;
  overflow: hidden;
  background: #24272d;
}

.boot-rail i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
  transition: width 0.45s var(--ease-out);
  box-shadow: 0 0 12px rgba(216, 255, 69, 0.6);
}

.boot-log {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

@keyframes bootArmA {
  0%, 100% { transform: rotate(-41deg); }
  50% { transform: rotate(-58deg); }
}

@keyframes bootArmB {
  0%, 100% { transform: rotate(43deg); }
  50% { transform: rotate(60deg); }
}

/* --------------------------------------------------------------------------
   Shared details
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.11em;
  line-height: 1.6;
  text-transform: uppercase;
}

.eyebrow-rule {
  display: inline-block;
  width: 23px;
  height: 1px;
  flex: none;
  background: var(--lime);
}

.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(216, 255, 69, 0.6);
  animation: blinkDot 2.4s steps(2, end) infinite;
}

.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 3px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(216, 255, 69, 0.65);
}

.blink {
  animation: blinkText 2.8s steps(2, end) infinite;
}

@keyframes blinkDot {
  0%, 72%, 100% { opacity: 1; }
  78%, 92% { opacity: 0.22; }
}

@keyframes blinkText {
  0%, 84%, 100% { opacity: 1; }
  88%, 94% { opacity: 0.35; }
}

.outlined-word {
  color: var(--lime);
  -webkit-text-stroke: 0;
  text-stroke: 0;
}

.accent-dot {
  color: var(--lime);
  -webkit-text-stroke: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(20, 23, 28, 0.85);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  overflow: visible;
}

.brand-mark svg circle,
.brand-mark svg path {
  fill: none;
  stroke: var(--light);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark svg .brand-mark-accent {
  stroke: var(--lime);
  stroke-width: 2;
}

.brand-type {
  color: var(--light);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.release-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border: 1px solid rgba(216, 255, 69, 0.34);
  color: var(--lime);
  background: rgba(216, 255, 69, 0.055);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}

.release-badge::before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  box-shadow: 0 0 5px currentColor;
}

.release-badge--brand {
  margin-left: 3px;
  transform: translateY(-1px);
}

.boot-kicker .release-badge {
  margin-left: 8px;
  font-size: 8px;
  vertical-align: 2px;
}

@media (max-width: 760px) {
  .release-badge--brand {
    display: none;
  }
}

.slash {
  color: var(--lime);
  letter-spacing: -0.04em;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s var(--ease-out);
}

.button:hover {
  background: var(--paper);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  opacity: 0.55;
  transform: none;
}

.button--wide {
  width: 100%;
}

.button--ghost {
  min-height: 47px;
  padding: 0 21px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--light);
}

.button--ghost:hover {
  background: rgba(242, 238, 227, 0.06);
  box-shadow: inset 0 0 0 1px var(--line-bright);
}

.button--hero {
  min-width: 196px;
  min-height: 58px;
  font-size: 12px;
}

.button-fill {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -56deg,
    transparent 0,
    transparent 14px,
    rgba(10, 11, 13, 0.055) 14px,
    rgba(10, 11, 13, 0.055) 28px
  );
  transform: translateX(-8px);
  transition: transform 0.35s var(--ease-out);
}

.button:hover .button-fill {
  transform: translateX(0);
}

.button-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
}

.button-arrow {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s var(--ease-out);
}

.button:hover .button-arrow {
  transform: translate(2px, -2px);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-button:hover {
  color: var(--light);
}

kbd {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  align-items: center;
  justify-content: center;
  border: 1px solid #3a3e47;
  border-bottom-color: #555b66;
  background: #171a20;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 2px 0 #08090b;
}

/* --------------------------------------------------------------------------
   Auth
   -------------------------------------------------------------------------- */

.auth-screen.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(390px, 0.82fr);
  min-height: 100svh;
}

.auth-art {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(24px, 3vw, 46px);
  border-right: 1px solid var(--line-soft);
}

.auth-art::before {
  content: "";
  position: absolute;
  top: -16%;
  left: 19%;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 255, 69, 0.055), transparent 66%);
  pointer-events: none;
}

.auth-art::after {
  content: "";
  position: absolute;
  top: 14%;
  right: 7%;
  width: 1px;
  height: 27%;
  background: linear-gradient(var(--line-bright), transparent);
  pointer-events: none;
}

.auth-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.network-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid var(--line-soft);
  background: rgba(14, 16, 20, 0.46);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.network-pill b {
  color: var(--light);
  font-weight: 400;
}

.network-pill-label {
  color: var(--muted-dim);
}

.auth-headline {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: clamp(37px, 6vh, 78px) 0 25px;
}

.auth-headline .eyebrow {
  margin-bottom: 17px;
}

.auth-headline h1 {
  margin: 0;
  color: var(--light);
  font-family: var(--font-display);
  font-size: clamp(56px, 6.8vw, 116px);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.04;
  text-transform: uppercase;
}

.auth-headline h1 .outlined-word {
  color: var(--lime);
}

.auth-desc {
  max-width: 580px;
  margin: 25px 0 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.65;
}

.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 21px;
}

.spec-chips span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  color: #c0c2bb;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.spec-chips span:first-child {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

.exhibition {
  position: relative;
  z-index: 2;
  width: min(100%, 815px);
  margin-top: auto;
  border: 1px solid var(--line);
  background: #0e1014;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22);
}

.exhibition-toolbar,
.exhibition-footer {
  display: flex;
  min-height: 29px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 11px;
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.exhibition-toolbar {
  border-bottom: 1px solid var(--line-soft);
}

.exhibition-footer {
  border-top: 1px solid var(--line-soft);
}

.exhibition-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c4c6bf;
}

.exhibition-live i {
  width: 4px;
  height: 4px;
  display: inline-block;
  background: var(--orange);
  box-shadow: 0 0 7px rgba(255, 106, 61, 0.8);
  animation: blinkDot 1.7s steps(2, end) infinite;
}

.exhibition-code {
  color: #45484e;
}

.exhibition-stage {
  position: relative;
  aspect-ratio: 720 / 292;
  overflow: hidden;
  background: var(--paper);
}

.exhibition-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.stage-vs {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 2;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(66px, 9.5vw, 156px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  -webkit-text-stroke: 2px rgba(20, 21, 26, 0.1);
  user-select: none;
}

.stage-label {
  position: absolute;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 6px 8px 5px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.stage-label small {
  color: var(--lime);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.stage-label--left {
  left: 14px;
}

.stage-label--right {
  right: 14px;
  background: var(--orange);
  color: var(--ink);
}

.stage-label--right small {
  color: rgba(20, 21, 26, 0.65);
}

.stage-reticle {
  position: absolute;
  top: 15px;
  right: 16px;
  z-index: 3;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(20, 21, 26, 0.24);
  border-radius: 50%;
}

.stage-reticle::before,
.stage-reticle::after {
  content: "";
  position: absolute;
  background: rgba(20, 21, 26, 0.28);
}

.stage-reticle::before {
  top: 50%;
  left: -5px;
  width: 26px;
  height: 1px;
}

.stage-reticle::after {
  top: -5px;
  left: 50%;
  width: 1px;
  height: 26px;
}

.stage-reticle i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  background: var(--orange);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.auth-footline {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 15px;
  color: #4d5055;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.auth-desk {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(58px, 7vh, 90px) clamp(25px, 3.2vw, 54px) 60px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 23%),
    #0c0e12;
}

.auth-desk::before {
  content: "64";
  position: absolute;
  right: -18px;
  bottom: 9%;
  color: transparent;
  font-family: var(--font-display);
  font-size: 260px;
  font-weight: 800;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(242, 238, 227, 0.045);
  pointer-events: none;
  transform: rotate(-90deg);
  transform-origin: right bottom;
}

.auth-desk::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 0;
  width: 1px;
  height: 17%;
  background: var(--lime);
  box-shadow: 0 0 15px rgba(216, 255, 69, 0.35);
}

.desk-status {
  position: absolute;
  top: clamp(25px, 3vw, 36px);
  left: clamp(25px, 3.2vw, 54px);
  right: clamp(25px, 3.2vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #666a6e;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.desk-status b {
  color: var(--lime);
  font-weight: 400;
}

.desk-status > span:last-child {
  color: #777b77;
}

.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 448px;
  margin: auto;
}

.desk-mobile-brand {
  display: none;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.auth-tab {
  position: relative;
  height: 43px;
  border: 0;
  background: transparent;
  color: #686c70;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  transition: color 0.2s ease;
}

.auth-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: transparent;
  transition: background 0.2s ease;
}

.auth-tab:hover {
  color: var(--paper-muted);
}

.auth-tab.is-active {
  color: var(--light);
}

.auth-tab.is-active::after {
  background: var(--lime);
  box-shadow: 0 -3px 12px rgba(216, 255, 69, 0.2);
}

.auth-tab:first-child {
  text-align: left;
}

.auth-tab:last-child {
  text-align: right;
}

.auth-card-head {
  padding: clamp(24px, 3.5vh, 37px) 0 0;
}

.auth-card-head h2 {
  margin: 12px 0 9px;
  color: var(--light);
  font-family: var(--font-display);
  font-size: clamp(34px, 3.5vw, 47px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.auth-card-head > p:last-child {
  max-width: 375px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.auth-form-wrap {
  margin-top: 4px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 22px;
}

.field {
  display: block;
}

.field-label {
  display: flex;
  min-height: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: #b8bab5;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.field-label label {
  cursor: pointer;
}

.field-flag {
  min-height: 12px;
  color: var(--muted-dim);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: uppercase;
}

.field-flag.is-ok {
  color: var(--lime);
}

.field-flag.is-bad {
  color: var(--red);
}

.field-flag.is-checking {
  color: var(--cyan);
}

.peek-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #717570;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.peek-button:hover {
  color: var(--lime);
}

.input-shell {
  display: flex;
  height: 46px;
  align-items: center;
  border: 1px solid #30343c;
  background: #0e1014;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-shell:hover {
  border-color: #424750;
}

.input-shell:focus-within {
  border-color: var(--lime);
  background: #101217;
  box-shadow: 0 0 0 1px rgba(216, 255, 69, 0.1), 0 0 22px rgba(216, 255, 69, 0.04);
}

.input-shell.is-invalid {
  border-color: var(--red);
}

.input-prefix {
  display: inline-flex;
  width: 35px;
  height: 100%;
  flex: none;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #272a30;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
}

.input-shell input {
  min-width: 0;
  height: 100%;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 12px;
  background: transparent;
  color: var(--light);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.045em;
}

.input-shell input::placeholder {
  color: #50545a;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.input-shell input:-webkit-autofill,
.input-shell input:-webkit-autofill:hover,
.input-shell input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--light);
  -webkit-box-shadow: 0 0 0 1000px #0e1014 inset;
  caret-color: var(--light);
}

.input-end {
  padding: 0 11px;
  color: #4e5257;
  font-family: var(--font-mono);
  font-size: 7.5px;
  white-space: nowrap;
}

.input-shell .peek-button--inner {
  margin-right: 10px;
  flex: none;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: #60646a;
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.field-help.is-bad {
  color: #bf6562;
}

.strength {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: -4px;
}

.strength-bars {
  display: flex;
  flex: 0 0 93px;
  gap: 3px;
}

.strength-bars i {
  display: block;
  width: 21px;
  height: 3px;
  background: #292c33;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.strength-label {
  color: #5b5f65;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.strength[data-level="1"] .strength-bars i:nth-child(1) { background: var(--red); }
.strength[data-level="2"] .strength-bars i:nth-child(-n+2) { background: var(--orange); }
.strength[data-level="3"] .strength-bars i:nth-child(-n+3) { background: var(--paper-muted); }
.strength[data-level="4"] .strength-bars i { background: var(--lime); box-shadow: 0 0 7px rgba(216, 255, 69, 0.26); }
.strength[data-level="2"] .strength-label { color: var(--orange); }
.strength[data-level="3"] .strength-label { color: var(--paper-muted); }
.strength[data-level="4"] .strength-label { color: var(--lime); }

.form-error {
  margin: -1px 0 0;
  padding: 9px 11px;
  border-left: 2px solid var(--red);
  background: rgba(255, 81, 79, 0.08);
  color: #ffb2ad;
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.5;
}

.auth-form .button {
  margin-top: 4px;
}

.fine-print {
  margin: 0;
  color: #595d62;
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.65;
}

.identity-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px dashed #292d34;
}

.identity-note-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid #3b403d;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 8px;
}

.identity-note p {
  margin: 0;
  color: #5c6065;
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.6;
}

.identity-note strong {
  display: block;
  margin-bottom: 3px;
  color: #a8aba5;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.identity-note b {
  color: #adafa9;
  font-weight: 400;
}

.desk-footer {
  position: absolute;
  right: clamp(25px, 3.2vw, 54px);
  bottom: 25px;
  left: clamp(25px, 3.2vw, 54px);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  color: #42464b;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.07em;
}

/* --------------------------------------------------------------------------
   ID reveal
   -------------------------------------------------------------------------- */

.reveal-screen.is-active {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(20px, 4vw, 58px);
  overflow: hidden;
  background:
    radial-gradient(800px 600px at 28% 48%, rgba(216, 255, 69, 0.06), transparent 66%),
    radial-gradient(700px 500px at 90% 10%, rgba(255, 79, 139, 0.04), transparent 60%),
    var(--bg);
}

.reveal-lines {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent 49.9%, rgba(255, 255, 255, 0.045) 50%, transparent 50.1%),
    linear-gradient(0deg, transparent 49.9%, rgba(255, 255, 255, 0.045) 50%, transparent 50.1%);
  background-size: 112px 112px;
  mask-image: radial-gradient(circle at center, black, transparent 74%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 74%);
}

.reveal-shell {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 1050px);
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr);
  border: 1px solid #343942;
  background: #0e1014;
  box-shadow: 0 50px 130px rgba(0, 0, 0, 0.55);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.reveal-visual {
  position: relative;
  display: flex;
  min-height: 520px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid #343942;
  background: var(--paper);
}

.reveal-visual::before {
  content: "ID";
  position: absolute;
  right: -10px;
  bottom: -34px;
  color: transparent;
  font-family: var(--font-display);
  font-size: 230px;
  font-weight: 800;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(20, 21, 26, 0.09);
}

.reveal-burst {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 155%;
  aspect-ratio: 1;
  opacity: 0.35;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(20, 21, 26, 0.1) 0deg 1deg,
    transparent 1deg 13deg
  );
  transform: translate(-50%, -50%);
  animation: rotateBurst 70s linear infinite;
  -webkit-mask-image: radial-gradient(circle, transparent 0 25%, black 56%, transparent 72%);
  mask-image: radial-gradient(circle, transparent 0 25%, black 56%, transparent 72%);
}

@keyframes rotateBurst {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.reveal-visual canvas {
  position: relative;
  z-index: 2;
  width: min(92%, 360px);
  height: auto;
  image-rendering: pixelated;
}

.reveal-visual-label {
  position: absolute;
  bottom: 19px;
  left: 20px;
  z-index: 3;
  padding: 7px 9px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.11em;
}

.reveal-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 66px);
}

.reveal-card h1 {
  margin: 17px 0 18px;
  color: var(--light);
  font-family: var(--font-display);
  font-size: clamp(46px, 5.2vw, 76px);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.1;
}

.reveal-card h1 .outlined-word {
  color: var(--lime);
}

.reveal-copy {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.identity-ticket {
  position: relative;
  margin-top: 28px;
  padding: 16px 18px 13px;
  border: 1px solid #454b38;
  background:
    linear-gradient(120deg, rgba(216, 255, 69, 0.045), transparent 38%),
    #0a0c0e;
}

.identity-ticket::before,
.identity-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 14px;
  border: 1px solid #454b38;
  border-radius: 50%;
  background: #0e1014;
  transform: translateY(-50%);
}

.identity-ticket::before {
  left: -5px;
  border-left-color: transparent;
}

.identity-ticket::after {
  right: -5px;
  border-right-color: transparent;
}

.ticket-top,
.ticket-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #777b75;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.ticket-live {
  color: var(--lime);
}

.ticket-live i {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 4px;
  background: var(--lime);
}

.ticket-id {
  display: block;
  margin: 14px 0 12px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: clamp(29px, 3.1vw, 43px);
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1;
}

.ticket-bottom {
  padding-top: 10px;
  border-top: 1px dashed #30352b;
  color: var(--paper);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.ticket-copy {
  border: 1px solid #454b38;
  background: transparent;
  color: #aeb0a6;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  padding: 6px 8px;
}

.ticket-copy:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.ticket-barcode {
  height: 17px;
  margin-top: 13px;
  opacity: 0.35;
  background: repeating-linear-gradient(
    90deg,
    var(--paper) 0,
    var(--paper) 1px,
    transparent 1px,
    transparent 3px,
    var(--paper) 3px,
    var(--paper) 5px,
    transparent 5px,
    transparent 9px,
    var(--paper) 9px,
    var(--paper) 10px,
    transparent 10px,
    transparent 13px
  );
}

.reveal-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.reveal-actions .button {
  min-width: 195px;
}

.reveal-actions p {
  max-width: 150px;
  margin: 0;
  color: #5f6368;
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.55;
}

.reveal-footer {
  position: absolute;
  right: clamp(20px, 4vw, 58px);
  bottom: 22px;
  left: clamp(20px, 4vw, 58px);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  color: #45494e;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   Hub
   -------------------------------------------------------------------------- */

.hub-screen.is-active {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
}

.hub-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 11px clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 9, 12, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hub-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.brand-mark--small {
  width: 32px;
  height: 32px;
}

.brand-mark--small svg {
  width: 23px;
  height: 23px;
}

.hub-brand-type {
  color: var(--light);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.hub-brand-tag {
  margin-left: 7px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: #60646a;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.hub-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: #777b7d;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.boot-credit {
  margin: 12px 0 0;
  color: #5d625e;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-align: center;
}

.boot-credit b {
  color: #9da29d;
  font-weight: 500;
}

.auth-credit {
  color: #7b807b;
}

.developer-strip {
  display: grid;
  grid-template-columns: 58px minmax(200px, 1fr) minmax(220px, 1.15fr) auto;
  align-items: center;
  gap: 18px;
  margin: 10px 0 18px;
  padding: 16px 20px;
  border: 1px solid rgba(242, 238, 227, 0.14);
  background:
    linear-gradient(105deg, rgba(216, 255, 69, 0.055), transparent 34%),
    rgba(13, 15, 19, 0.84);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
}

.developer-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--lime);
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  transform: rotate(-2deg);
}

.developer-main .eyebrow {
  margin: 0 0 4px;
  color: #777c77;
  font-size: 7px;
}

.developer-main h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.developer-main h2 span {
  color: var(--lime);
}

.developer-school {
  margin: 5px 0 0;
  color: #8e938e;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.developer-note {
  margin: 0;
  color: #777c78;
  font-size: 10px;
  line-height: 1.55;
}

.developer-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 7px;
}

.developer-button {
  padding: 6px 9px;
  border: 1px solid rgba(216, 255, 69, 0.35);
  background: rgba(216, 255, 69, 0.06);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 8px;
  cursor: pointer;
}

.developer-button:hover {
  background: rgba(216, 255, 69, 0.14);
}

.developer-copyright {
  color: #5e635f;
  font-family: var(--font-mono);
  font-size: 7px;
  white-space: nowrap;
}

.developer-modal {
  position: relative;
  z-index: 2;
  width: min(620px, calc(100% - 32px));
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 34px 36px 30px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(145deg, rgba(216, 255, 69, 0.045), transparent 42%),
    var(--bg-soft);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.developer-modal h2 {
  margin: 12px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.92;
}

.developer-modal-school {
  margin: 8px 0 18px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 9px;
}

.developer-modal-copy {
  margin: 0 0 20px;
  color: #9a9f9a;
  font-size: 11px;
  line-height: 1.7;
}

.developer-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(216, 255, 69, 0.24);
  background: rgba(216, 255, 69, 0.035);
}

.developer-contact span {
  color: #707570;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.developer-contact a {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 11px;
  text-decoration: none;
}

.developer-contact a:hover {
  text-decoration: underline;
}

.developer-copyright-large {
  margin: 0 0 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(242, 238, 227, 0.12);
  color: #686d69;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.7;
}

.manual-author {
  margin-left: 10px;
  color: #686d69;
}



.hub-footer {
  flex-wrap: wrap;
}

.hub-footer-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.developer-button--footer {
  padding: 3px 7px;
  border-color: rgba(216, 255, 69, 0.28);
  background: transparent;
  font-size: 7px;
}

.hub-screen.is-active .developer-button--footer {
  position: fixed;
  z-index: 42;
  bottom: 18px;
  left: 24px;
  padding: 7px 10px;
  border-color: rgba(216, 255, 69, 0.5);
  background: rgba(13, 15, 19, 0.9);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 8px;
}

.developer-button--footer:hover {
  border-color: var(--lime);
  background: rgba(216, 255, 69, 0.1);
}

@media (max-width: 980px) {
  .developer-strip {
    grid-template-columns: 50px 1fr;
  }

  .developer-note,
  .developer-actions {
    grid-column: 1 / -1;
  }

  .developer-actions {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 620px) {
  .hub-screen.is-active .developer-button--footer {
    bottom: 12px;
    left: 12px;
  }

  .developer-strip {
    grid-template-columns: 44px 1fr;
    padding: 13px;
    gap: 12px;
  }

  .developer-mark {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .developer-actions {
    flex-direction: column;
  }

  .developer-copyright {
    white-space: normal;
  }

  .developer-modal {
    padding: 28px 20px 24px;
  }

  .developer-credits {
    grid-template-columns: 1fr;
  }
}

.hub-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: auto;
  margin-left: 24px;
  padding: 5px 9px;
  border: 1px solid rgba(242, 238, 227, 0.12);
  background: transparent;
  color: #8d928d;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.hub-author-chip:hover {
  border-color: rgba(216, 255, 69, 0.4);
  color: var(--paper);
}

.hub-author-chip b {
  color: var(--lime);
  font-weight: 500;
}

.hub-author-chip small {
  color: #686d69;
  font-size: 7px;
}

.hub-author-label {
  color: #5f6460;
}

@media (max-width: 1180px) {
  .hub-author-label,
  .hub-author-chip small {
    display: none;
  }

  .hub-author-chip {
    margin-left: 14px;
    padding: 5px 7px;
  }
}

@media (max-width: 820px) {
  .hub-author-chip {
    display: none;
  }
}

.friends-button {
  position: relative;
  gap: 6px;
  white-space: nowrap;
}

.friends-badge {
  display: grid;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  place-items: center;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
}

.friends-modal {
  position: relative;
  z-index: 2;
  width: min(800px, calc(100% - 32px));
  max-height: min(88vh, 720px);
  overflow: auto;
  padding: 34px 34px 28px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(145deg, rgba(255, 106, 61, 0.035), transparent 42%),
    var(--bg-soft);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.62);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.friends-head {
  max-width: 560px;
}

.friends-head h2 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(46px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.friends-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.friend-add {
  display: flex;
  gap: 8px;
  margin: 24px 0 6px;
}

.friend-add .button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 104px;
  min-height: 42px;
  height: 42px;
  max-height: 42px;
  padding: 0 16px;
  white-space: nowrap;
  line-height: 1;
}

.friend-add input {
  min-width: 0;
  flex: 1;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  background: rgba(242, 238, 227, 0.035);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  outline: none;
}

.friend-add input:focus {
  border-color: var(--lime);
}

.friend-error {
  min-height: 16px;
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 10px;
}

.friend-columns {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-top: 4px;
}

.friend-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(242, 238, 227, 0.1);
}

.friend-section-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
}

.friend-section-head span {
  color: #6c716d;
  font-family: var(--font-mono);
  font-size: 8px;
}

.friend-section-head--outgoing {
  margin-top: 18px;
}

.friend-list {
  display: flex;
  min-height: 94px;
  flex-direction: column;
  gap: 6px;
}

.friend-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid rgba(242, 238, 227, 0.11);
  background: rgba(242, 238, 227, 0.025);
}

.friend-card-body {
  min-width: 0;
  flex: 1;
}

.friend-card-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.friend-card-name b {
  overflow: hidden;
  color: var(--paper);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-card-name small {
  color: #626763;
  font-family: var(--font-mono);
  font-size: 7.5px;
}

.friend-presence {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #777c78;
  font-family: var(--font-mono);
  font-size: 7.5px;
}

.friend-presence::before {
  width: 5px;
  height: 5px;
  background: #555a56;
  content: '';
}

.friend-presence.is-online {
  color: var(--lime);
}

.friend-presence.is-online::before {
  background: var(--lime);
  box-shadow: 0 0 6px rgba(216, 255, 69, 0.5);
}

.friend-card-actions {
  display: flex;
  flex: none;
  gap: 4px;
}

.friend-action {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(242, 238, 227, 0.16);
  background: transparent;
  color: #b8bcb7;
  font-family: var(--font-mono);
  font-size: 8px;
  cursor: pointer;
}

.friend-action:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.friend-action--accept {
  border-color: rgba(216, 255, 69, 0.4);
  color: var(--lime);
}

.friend-empty {
  margin: 0;
  padding: 15px 0;
  color: #5f6460;
  font-size: 10px;
  line-height: 1.6;
}

.friend-list--compact {
  min-height: 0;
}

.friend-list--compact .friend-card {
  min-height: 34px;
  padding: 5px 8px;
}

@media (max-width: 720px) {
  .friends-modal {
    width: calc(100% - 18px);
    padding: 26px 18px 20px;
  }

  .friend-columns {
    grid-template-columns: 1fr;
  }

  .friend-add {
    flex-direction: column;
  }
}

.character-button {
  gap: 7px;
  min-width: 0;
}

.character-button-dot {
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(216, 255, 69, 0.45);
}

.character-button span:last-child {
  overflow: hidden;
  max-width: 110px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button:hover {
  border-color: var(--line-bright);
  color: var(--paper);
}

.sound-bars {
  display: flex;
  height: 11px;
  align-items: flex-end;
  gap: 2px;
}

.sound-bars i {
  display: block;
  width: 2px;
  height: 100%;
  background: var(--lime);
  animation: soundBar 0.9s ease-in-out infinite alternate;
}

.sound-bars i:nth-child(2) { height: 50%; animation-delay: -0.3s; }
.sound-bars i:nth-child(3) { height: 78%; animation-delay: -0.6s; }
.sound-bars i:nth-child(4) { height: 36%; animation-delay: -0.15s; }

[aria-pressed="false"] .sound-bars i {
  height: 2px;
  background: #62666b;
  animation: none;
}

@keyframes soundBar {
  from { transform: scaleY(0.3); }
  to { transform: scaleY(1); }
}

.account-chip {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  margin-left: 3px;
  padding: 3px 4px 3px 6px;
  border: 1px solid var(--line);
  background: #0e1014;
}

.account-chip-avatar {
  position: relative;
  display: flex;
  width: 27px;
  height: 29px;
  align-items: flex-start;
  justify-content: center;
  background: var(--paper);
  overflow: hidden;
}

.mini-head {
  display: block;
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--ink);
}

.account-chip-avatar .mini-head::after {
  content: "";
  display: block;
  width: 9px;
  height: 2px;
  margin-top: 1px;
  background: var(--lime);
}

.account-chip-avatar::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 1px;
  height: 12px;
  background: var(--ink);
}

.account-chip-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.account-chip-copy b {
  max-width: 118px;
  overflow: hidden;
  color: var(--light);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.account-chip-copy small {
  color: #60646a;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.account-chip-copy-id,
.account-chip-exit {
  height: 24px;
  border: 0;
  background: transparent;
  color: #5c6065;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.03em;
  padding: 0 4px;
}

.account-chip-copy-id:hover,
.account-chip-exit:hover {
  color: var(--lime);
}

.account-chip-exit {
  border-left: 1px solid var(--line-soft);
  color: #7a5554;
}

.account-chip-exit:hover {
  color: var(--red);
}

.hub-body {
  display: grid;
  width: min(100%, 1600px);
  flex: 1;
  grid-template-columns: minmax(0, 1fr) 294px;
  gap: 17px;
  align-items: start;
  align-self: center;
  padding: clamp(17px, 2.6vw, 32px) clamp(16px, 3vw, 40px);
}

.hub-main {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.55fr) minmax(292px, 0.8fr);
  grid-template-areas:
    "hero hero"
    "boards dossier";
  gap: 17px;
  align-items: stretch;
}

.hero-card {
  position: relative;
  display: grid;
  min-height: 407px;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.024), transparent 31%),
    #0e1014;
  clip-path: polygon(0 0, calc(100% - 19px) 0, 100% 19px, 100% 100%, 19px 100%, 0 calc(100% - 19px));
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, black, transparent 63%);
  -webkit-mask-image: linear-gradient(90deg, black, transparent 63%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(25px, 3.4vw, 47px);
}

.hero-overline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #767a77;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.hero-overline-divider {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--line-bright);
}

.hero-copy h1 {
  max-width: 700px;
  margin: 16px 0 17px;
  color: var(--light);
  font-family: var(--font-display);
  font-size: clamp(50px, 5.1vw, 84px);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.09;
}

.hero-copy h1 .outlined-word {
  color: var(--lime);
}

.hero-copy > p {
  max-width: 455px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  color: #55595d;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.06em;
}

.hero-meta b {
  margin-right: 3px;
  color: var(--paper);
  font-weight: 400;
}

.hero-visual {
  position: relative;
  min-height: 407px;
  overflow: hidden;
  border-left: 1px solid #2c2f35;
  background: var(--paper);
  isolation: isolate;
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(20, 21, 26, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 21, 26, 0.16) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 50% 48%, black, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 48%, black, transparent 72%);
}

.visual-watermark {
  position: absolute;
  right: -17px;
  top: 1px;
  color: transparent;
  font-family: var(--font-display);
  font-size: 210px;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  opacity: 0.7;
  -webkit-text-stroke: 1px rgba(20, 21, 26, 0.14);
  user-select: none;
}

#hubCanvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.visual-corner {
  position: absolute;
  z-index: 3;
  width: 16px;
  height: 16px;
  border-color: var(--ink);
  border-style: solid;
  opacity: 0.4;
}

.visual-corner--tl {
  top: 13px;
  left: 13px;
  border-width: 1px 0 0 1px;
}

.visual-corner--br {
  right: 13px;
  bottom: 13px;
  border-width: 0 1px 1px 0;
}

.visual-nameplate {
  position: absolute;
  bottom: 15px;
  left: 15px;
  z-index: 4;
  display: flex;
  max-width: calc(100% - 110px);
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 9px;
  padding: 8px 10px;
  background: var(--ink);
  color: var(--paper);
}

.visual-nameplate-label {
  color: #757970;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.07em;
}

.visual-nameplate strong {
  overflow: hidden;
  max-width: 175px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.02em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.visual-nameplate-id {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 6.5px;
}

.visual-spec {
  position: absolute;
  right: 14px;
  bottom: 16px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: rgba(20, 21, 26, 0.5);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.05em;
}

.visual-spec b {
  color: rgba(20, 21, 26, 0.8);
  font-weight: 400;
}

.hero-cut {
  position: absolute;
  z-index: 5;
  width: 1px;
  height: 1px;
  background: var(--lime);
}

.hero-cut--top {
  top: 0;
  right: 19px;
  width: 3px;
  height: 19px;
}

.hero-cut--bottom {
  bottom: 0;
  left: 19px;
  width: 19px;
  height: 3px;
}

/* Panels */

.panel {
  border: 1px solid var(--line);
  background: rgba(14, 16, 20, 0.82);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px 16px;
}

.panel-heading .eyebrow {
  margin-bottom: 5px;
  font-size: 7px;
}

.panel-heading h2 {
  margin: 0;
  color: var(--light);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.08;
  text-transform: uppercase;
}

/* Leaderboard */

.leaderboard-panel {
  overflow: hidden;
}

.board-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: #5e6267;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.04em;
}

.board-meta b {
  color: #b3b5ae;
  font-weight: 400;
}

.refresh-button {
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: #777b7e;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.05em;
}

.refresh-button:hover {
  border-color: var(--line-bright);
  color: var(--lime);
}

.refresh-button.is-spinning span {
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.leaderboard-head,
.leader-row,
.board-you {
  display: grid;
  grid-template-columns: 63px minmax(140px, 1fr) 130px 84px 104px;
  align-items: center;
  column-gap: 12px;
}

.leaderboard-head {
  min-height: 27px;
  padding: 0 20px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: #50545a;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
}

.leaderboard-head span:nth-child(n + 4) {
  text-align: right;
}

.leaderboard-body {
  min-height: 52px;
}

.leader-row {
  min-height: 43px;
  padding: 7px 20px;
  border-bottom: 1px solid rgba(35, 38, 45, 0.64);
  font-family: var(--font-mono);
  transition: background 0.2s ease;
}

.leader-row:hover {
  background: rgba(242, 238, 227, 0.025);
}

.leader-row.is-you {
  background: rgba(216, 255, 69, 0.045);
  box-shadow: inset 2px 0 0 var(--lime);
}

.leader-rank {
  display: inline-flex;
  width: 30px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid #30343b;
  color: #8b8e89;
  font-size: 8px;
}

.leader-row:nth-child(1) .leader-rank {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

.leader-row:nth-child(2) .leader-rank,
.leader-row:nth-child(3) .leader-rank {
  border-color: #666b5a;
  color: var(--paper);
}

.leader-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.leader-figure {
  position: relative;
  display: block;
  width: 15px;
  height: 21px;
  flex: none;
}

.leader-figure::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--paper-muted);
  transform: translateX(-50%);
}

.leader-figure::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 1px;
  height: 8px;
  background: var(--paper-muted);
  box-shadow: -4px 2px 0 var(--paper-muted), 4px 2px 0 var(--paper-muted), -3px 9px 0 var(--paper-muted), 3px 9px 0 var(--paper-muted);
}

.leader-row:nth-child(1) .leader-figure::before,
.leader-row:nth-child(1) .leader-figure::after {
  background: var(--lime);
  box-shadow: -4px 2px 0 var(--lime), 4px 2px 0 var(--lime), -3px 9px 0 var(--lime), 3px 9px 0 var(--lime);
}

.leader-name strong {
  overflow: hidden;
  color: #d2d2cb;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.leader-id {
  overflow: hidden;
  color: #55595f;
  font-size: 7px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-wave,
.leader-score {
  color: #a5a8a1;
  font-size: 8px;
  text-align: right;
}

.leader-score {
  color: var(--paper);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.leader-row:nth-child(1) .leader-score {
  color: var(--lime);
}

.board-loading,
.board-empty {
  display: grid;
  min-height: 56px;
  place-items: center;
  padding: 10px 20px;
  color: #5b5f64;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-align: center;
}

.board-you {
  min-height: 39px;
  margin: 10px 15px 15px;
  padding: 7px 9px;
  border: 1px solid #3d4431;
  background: rgba(216, 255, 69, 0.035);
  color: #888c85;
  font-family: var(--font-mono);
  font-size: 7px;
}

.board-you > span:first-child {
  color: var(--lime);
}

.board-you > span:nth-child(2) {
  overflow: hidden;
  color: var(--paper);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-you > span:nth-child(3) {
  color: #60646a;
}

.board-you > span:nth-child(n + 4) {
  text-align: right;
}

.board-you > span:last-child {
  color: var(--lime);
  font-size: 8px;
}

/* Hub lower */

.hero-card {
  grid-area: hero;
}

.leaderboard-panel {
  grid-area: boards;
  min-width: 0;
}

.hub-lower {
  display: block;
  min-width: 0;
  grid-area: dossier;
}

.manual-panel .panel-heading,
.dossier-panel .panel-heading {
  padding-bottom: 14px;
}

.manual-panel .panel-heading h2,
.dossier-panel .panel-heading h2 {
  font-size: 21px;
}

.key-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 23px;
  padding: 0 20px 16px;
}

.key-row {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  border-top: 1px solid #20232a;
  color: #73777a;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.03em;
}

.key-row::after {
  order: 3;
}

.key-row .keys {
  display: flex;
  flex: none;
  gap: 3px;
}

.key-row kbd {
  min-width: 20px;
  height: 19px;
  padding: 0 4px;
  font-size: 7px;
}

.dossier-panel {
  display: flex;
  flex-direction: column;
}

.rank-plate {
  display: inline-flex;
  min-width: 37px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border: 1px solid #464b3e;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 8px;
}

.dossier-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 20px;
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.dossier-avatar {
  position: relative;
  display: flex;
  width: 25px;
  height: 31px;
  flex: none;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid #33373e;
  background: var(--paper);
}

.dossier-avatar .mini-head {
  width: 8px;
  height: 8px;
  margin-top: 4px;
}

.dossier-avatar .mini-body {
  width: 1px;
  height: 9px;
  margin-top: 3px;
  background: var(--ink);
}

.dossier-identity > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dossier-identity strong {
  overflow: hidden;
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dossier-identity div span {
  color: #666a6e;
  font-family: var(--font-mono);
  font-size: 7px;
}

.copy-inline {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #686c6a;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copy-inline:hover {
  color: var(--lime);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 20px;
  border-left: 1px solid var(--line-soft);
  border-top: 1px solid var(--line-soft);
}

.stat-cell {
  min-height: 55px;
  padding: 10px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.stat-cell span {
  display: block;
  margin-bottom: 7px;
  color: #5e6267;
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.07em;
}

.stat-cell strong {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.015em;
}

.stat-cell:first-child strong {
  color: var(--lime);
}

.dossier-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 13px 20px;
  color: #5d6162;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.02em;
}

.dossier-foot b {
  color: #a2a59e;
  font-weight: 400;
}

/* Hub side */

.hub-side {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.next-fight {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--lime);
  background: var(--lime);
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 0 100%);
}

.next-fight .eyebrow {
  position: relative;
  z-index: 2;
  color: rgba(20, 21, 26, 0.62);
  font-size: 6.5px;
}

.next-fight-visual {
  position: relative;
  height: 137px;
  margin: 13px -3px 12px;
  border-top: 1px solid rgba(20, 21, 26, 0.18);
  border-bottom: 1px solid rgba(20, 21, 26, 0.18);
  overflow: hidden;
}

.next-fight-number {
  position: absolute;
  right: -6px;
  bottom: -24px;
  color: transparent;
  font-family: var(--font-display);
  font-size: 168px;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  -webkit-text-stroke: 1.5px rgba(20, 21, 26, 0.52);
}

.next-fight-visual::before,
.next-fight-visual::after {
  content: "";
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(20, 21, 26, 0.35);
  border-radius: 50%;
}

.next-fight-visual::before {
  width: 87px;
  height: 87px;
  left: 10px;
  top: 25px;
}

.next-fight-visual::after {
  width: 39px;
  height: 39px;
  left: 34px;
  top: 49px;
}

.crosshair {
  position: absolute;
  z-index: 3;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(20, 21, 26, 0.7);
  border-radius: 50%;
}

.crosshair--a {
  left: 49px;
  top: 64px;
}

.crosshair--b {
  left: 26px;
  top: 41px;
}

.next-fight h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.08;
}

.next-fight ul {
  display: flex;
  margin: 19px 0 18px;
  flex-direction: column;
  padding: 0;
  list-style: none;
}

.next-fight li {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(20, 21, 26, 0.18);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.04em;
}

.next-fight li:last-child {
  border-bottom: 1px solid rgba(20, 21, 26, 0.18);
}

.next-fight li b {
  font-size: 7px;
  font-weight: 600;
  text-align: right;
}

.next-fight .button {
  width: 100%;
  min-height: 45px;
  background: var(--ink);
  color: var(--lime);
}

.next-fight .button:hover {
  background: #25271c;
}

.next-fight .button-fill {
  background: repeating-linear-gradient(
    -56deg,
    transparent 0,
    transparent 14px,
    rgba(216, 255, 69, 0.08) 14px,
    rgba(216, 255, 69, 0.08) 28px
  );
}

.next-fight-note {
  margin: 11px 0 0;
  color: rgba(20, 21, 26, 0.55);
  font-family: var(--font-mono);
  font-size: 6px;
  line-height: 1.5;
}

.signal-panel {
  padding: 17px 18px 15px;
}

.signal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.signal-head .eyebrow {
  font-size: 6.5px;
}

.signal-wave {
  display: flex;
  height: 39px;
  align-items: center;
  gap: 4px;
  margin: 13px 0;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.signal-wave i {
  width: 2px;
  flex: 1;
  height: 30%;
  background: #454b39;
  animation: signalJump 2s steps(3, end) infinite alternate;
}

.signal-wave i:nth-child(3n) { height: 80%; animation-delay: -0.4s; background: #78863d; }
.signal-wave i:nth-child(4n) { height: 45%; animation-delay: -0.9s; }
.signal-wave i:nth-child(7n) { height: 95%; animation-delay: -1.1s; background: var(--lime); opacity: 0.7; }
.signal-wave i:nth-child(5n) { height: 22%; animation-delay: -0.2s; }

@keyframes signalJump {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}

.signal-facts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #5e6264;
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.03em;
}

.signal-facts span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.signal-facts b {
  color: #a1a49e;
  font-weight: 400;
}

.hub-side-note {
  margin: 2px 2px 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line-soft);
  color: #4f5358;
  font-family: var(--font-mono);
  font-size: 6.5px;
  line-height: 1.6;
}

.hub-footer {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding: 0 clamp(16px, 3vw, 40px);
  border-top: 1px solid var(--line-soft);
  color: #43474b;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.04em;
}

.hub-footer b {
  color: var(--lime);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Game
   -------------------------------------------------------------------------- */

.game-screen.is-active {
  display: flex;
  height: 100svh;
  min-height: 560px;
  flex-direction: column;
  overflow: hidden;
  background: #06070a;
}

.orientation-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 7px 12px;
  border-bottom: 1px solid #252a31;
  background: #0d1014;
  color: #797d7d;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-align: center;
}

.orientation-hint b {
  color: var(--lime);
  font-weight: 400;
}

.orientation-turn {
  color: var(--lime);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1;
}

.game-header {
  position: relative;
  z-index: 15;
  display: flex;
  min-height: 54px;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(12px, 2vw, 24px);
  border-bottom: 1px solid #1d2026;
  background: #0a0b0e;
}

.game-header-left,
.game-header-right {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.game-header-right {
  justify-content: flex-end;
}

.game-back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #292d34;
  background: transparent;
  color: #7e827f;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.game-back-button:hover {
  border-color: #464b54;
  color: var(--paper);
}

.game-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5d6166;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.game-mode i {
  width: 12px;
  height: 1px;
  background: #3c4149;
}

.game-mode b {
  color: #a2a59e;
  font-weight: 400;
}

.game-header-center {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #55595f;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.09em;
  transform: translateX(-50%);
}

.game-header-center i {
  width: 3px;
  height: 3px;
  background: var(--lime);
}

.game-header-center b {
  color: var(--paper);
  font-weight: 400;
}

.game-account {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #858884;
  font-family: var(--font-mono);
  font-size: 7px;
  white-space: nowrap;
}

.game-account b {
  color: #d0d1c9;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-account > span:last-child {
  color: #55595e;
  font-size: 6.5px;
}

.game-icon-button {
  display: inline-flex;
  width: 29px;
  height: 29px;
  align-items: center;
  justify-content: center;
  border: 1px solid #292d34;
  background: transparent;
  color: #8e918d;
  font-family: var(--font-mono);
  font-size: 9px;
}

.game-icon-button:hover {
  border-color: #4a4f57;
  color: var(--lime);
}

.game-icon-button:disabled,
.game-back-button:disabled {
  opacity: 0.32;
  pointer-events: none;
}

.game-viewport-shell {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 10px;
  overflow: hidden;
  background:
    radial-gradient(900px 360px at 50% 0%, rgba(255, 255, 255, 0.025), transparent 68%),
    #06070a;
}

.game-viewport {
  position: relative;
  width: min(100%, calc((100svh - 124px) * 16 / 9));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #30343c;
  background: var(--paper);
  box-shadow: 0 0 0 3px #08090c, 0 22px 80px rgba(0, 0, 0, 0.52);
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--paper);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
  user-select: none;
}

#gameCanvas:focus {
  outline: none;
}

.screen-scanlines {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.1;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.42) 0,
    rgba(0, 0, 0, 0.42) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
}

.screen-vignette {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(10, 8, 4, 0.2) 100%);
}

.game-footer {
  display: flex;
  min-height: 46px;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(12px, 2vw, 24px);
  border-top: 1px solid #1d2026;
  background: #0a0b0e;
}

.game-footer-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: #60646a;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.04em;
}

.game-footer-controls span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.game-footer-controls kbd {
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 6.5px;
}

.game-footer-tip {
  color: #54585d;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.game-footer-tip b {
  color: var(--lime);
  font-weight: 400;
}

.overlay-layer {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  background: rgba(8, 9, 11, 0.79);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: overlayIn 0.24s var(--ease-out) both;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.overlay-card {
  width: min(100%, 520px);
  margin: auto;
  padding: clamp(22px, 3.5vw, 35px);
  border: 1px solid #3b4049;
  background:
    linear-gradient(135deg, rgba(216, 255, 69, 0.035), transparent 38%),
    #111318;
  color: var(--paper);
  clip-path: polygon(0 0, calc(100% - 19px) 0, 100% 19px, 100% 100%, 19px 100%, 0 calc(100% - 19px));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.overlay-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -3px 0 22px;
  padding-bottom: 11px;
  border-bottom: 1px solid #2a2e35;
  color: #65696e;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.07em;
}

.overlay-topline span:last-child {
  color: #4e5257;
}

.overlay-card h2 {
  margin: 9px 0 13px;
  color: var(--light);
  font-family: var(--font-display);
  font-size: clamp(44px, 5.7vw, 65px);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.1;
}

.overlay-copy {
  max-width: 390px;
  margin: 0;
  color: #8d908c;
  font-size: 11px;
  line-height: 1.55;
}

.pause-mini-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 11px;
  margin: 19px 0 21px;
  padding: 12px 0;
  border-top: 1px solid #292d34;
  border-bottom: 1px solid #292d34;
}

.pause-mini-controls span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6c7074;
  font-family: var(--font-mono);
  font-size: 6.5px;
}

.pause-mini-controls kbd {
  height: 18px;
  min-width: 18px;
  font-size: 6px;
}

.overlay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.overlay-actions .button:first-child {
  flex: 1;
  min-width: 150px;
}

.overlay-actions .button--ghost {
  flex: 0 0 auto;
}

.overlay-fineprint {
  margin: 13px 0 0;
  color: #51555a;
  font-family: var(--font-mono);
  font-size: 6.5px;
  line-height: 1.5;
}

.results-overlay {
  background: rgba(8, 9, 11, 0.83);
}

.overlay-card--results {
  width: min(100%, 560px);
}

.overlay-card--results h2 {
  font-size: clamp(45px, 5.7vw, 62px);
}

.results-score-block {
  display: flex;
  margin: 19px 0 17px;
  flex-direction: column;
  gap: 5px;
}

.results-score-block > span:first-child {
  color: #6a6e71;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.results-score-block strong {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: clamp(38px, 5vw, 55px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.results-best {
  color: #666a6e;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #2b2f36;
  border-left: 1px solid #2b2f36;
}

.results-grid > div {
  min-height: 52px;
  padding: 9px;
  border-right: 1px solid #2b2f36;
  border-bottom: 1px solid #2b2f36;
}

.results-grid span {
  display: block;
  margin-bottom: 6px;
  color: #5e6267;
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.05em;
}

.results-grid strong {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
}

.result-sync {
  min-height: 14px;
  margin: 14px 0 18px;
  color: #767a72;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.03em;
}

.result-sync.is-good {
  color: var(--lime);
}

.result-sync.is-bad {
  color: #e4867d;
}

.countdown-banner {
  position: absolute;
  top: 38%;
  left: 50%;
  z-index: 25;
  display: flex;
  max-width: calc(100% - 30px);
  flex-direction: column;
  align-items: center;
  padding: 9px 15px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.4vw, 17px);
  letter-spacing: 0.18em;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 5px 5px 0 var(--lime);
  animation: bannerIn 0.2s var(--ease-out);
}

@keyframes bannerIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(1.08); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Touch controls */

.touch-controls {
  display: none;
  position: absolute;
  right: 10px;
  bottom: 9px;
  left: 10px;
  z-index: 20;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}

.touch-move {
  display: flex;
  gap: 6px;
}

.touch-move button,
.touch-action {
  border: 1px solid rgba(242, 238, 227, 0.42);
  background: rgba(15, 16, 20, 0.58);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  touch-action: none;
  pointer-events: auto;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.touch-move button {
  width: 39px;
  height: 39px;
  font-size: 12px;
}

.touch-actions {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 5px;
  justify-items: end;
}

.touch-action {
  min-width: 45px;
  height: 30px;
  padding: 0 7px;
  font-size: 7px;
}

.touch-action--light {
  border-color: rgba(216, 255, 69, 0.85);
  background: rgba(216, 255, 69, 0.82);
  color: var(--ink);
}

.touch-action--skill {
  border-color: rgba(216, 255, 69, 0.42);
  color: var(--lime);
}

.touch-action--loot {
  border-color: rgba(94, 231, 228, 0.42);
  color: var(--cyan);
}

.touch-action--heavy {
  border-color: rgba(255, 122, 82, 0.86);
  background: rgba(255, 106, 61, 0.82);
  color: var(--ink);
}

.touch-action--ult {
  border-color: rgba(216, 255, 69, 0.46);
  background: rgba(15, 16, 20, 0.8);
  color: var(--lime);
}

.touch-move button.is-held,
.touch-action.is-held {
  background: var(--ink);
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   Manual + modal
   -------------------------------------------------------------------------- */

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: overlayIn 0.25s ease both;
}

.manual-modal {
  position: relative;
  z-index: 2;
  width: min(100%, 900px);
  max-height: min(88svh, 760px);
  overflow-y: auto;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid #3c4149;
  background:
    linear-gradient(135deg, rgba(216, 255, 69, 0.035), transparent 32%),
    #101216;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.5);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  animation: modalIn 0.3s var(--ease-out) both;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 28px;
  height: 28px;
  border: 1px solid #343942;
  background: transparent;
  color: #888c88;
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1;
}

.modal-close:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.manual-head {
  max-width: 650px;
  padding-right: 28px;
}

.manual-head h2 {
  margin: 12px 0 13px;
  color: var(--light);
  font-family: var(--font-display);
  font-size: clamp(40px, 5.1vw, 62px);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.1;
}

.manual-head h2 .outlined-word {
  color: var(--lime);
}

.manual-head > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.62;
}

.manual-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  margin-top: 27px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.manual-columns h3 {
  margin: 0 0 9px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.13em;
}

.manual-control {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border-top: 1px solid #23262d;
  color: #858984;
  font-family: var(--font-mono);
  font-size: 7px;
}

.manual-control span {
  margin-left: 5px;
}

.manual-control kbd {
  height: 20px;
  min-width: 20px;
  font-size: 6.5px;
}

.manual-list {
  display: flex;
  margin: 0;
  flex-direction: column;
  gap: 0;
  padding: 0;
  list-style: none;
}

.manual-list li {
  min-height: 39px;
  padding: 8px 0;
  border-top: 1px solid #23262d;
  color: #7e827e;
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.55;
}

.manual-list b {
  color: var(--lime);
  font-weight: 400;
}

.manual-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #696d6f;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.04em;
}

.manual-foot > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.manual-foot .button {
  min-width: 165px;
  min-height: 45px;
}

.character-modal {
  position: relative;
  z-index: 2;
  width: min(940px, calc(100% - 32px));
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: 38px 38px 28px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(145deg, rgba(216, 255, 69, 0.035), transparent 40%),
    var(--bg-soft);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.62);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.character-head {
  max-width: 650px;
}

.character-head h2 {
  margin: 12px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 63px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.character-head > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 20px;
}

.character-card {
  --char-accent: var(--lime);
  position: relative;
  display: flex;
  min-height: 300px;
  padding: 14px;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(242, 238, 227, 0.14);
  background: rgba(242, 238, 227, 0.025);
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.character-card:hover {
  border-color: color-mix(in srgb, var(--char-accent) 60%, transparent);
  transform: translateY(-2px);
}

.character-card.is-selected {
  border-color: var(--char-accent);
  background: color-mix(in srgb, var(--char-accent) 7%, transparent);
  box-shadow: inset 0 0 0 1px var(--char-accent);
}

.character-card-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.character-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(242, 238, 227, 0.14);
  background: rgba(13, 15, 19, 0.5);
}

.character-icon svg {
  width: 30px;
  height: 30px;
}

.character-icon svg circle,
.character-icon svg path {
  fill: none;
  stroke: var(--char-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.character-card-name {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.character-card-name b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

.character-card-name small {
  color: var(--char-accent);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.character-card-check {
  margin-left: auto;
  color: var(--char-accent);
  font-family: var(--font-mono);
  font-size: 8px;
  opacity: 0;
}

.character-card.is-selected .character-card-check {
  opacity: 1;
}

.character-skill-kicker {
  color: #696e6a;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
}

.character-skill-name {
  color: var(--char-accent);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
}

.character-skill-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.character-skill-row {
  display: grid;
  grid-template-columns: 17px 48px minmax(0, 1fr);
  align-items: start;
  gap: 4px;
  color: #8f948f;
  font-size: 9px;
  line-height: 1.42;
}

.character-skill-row kbd {
  display: grid;
  height: 14px;
  place-items: center;
  border: 1px solid rgba(216, 255, 69, 0.35);
  color: var(--char-accent);
  font-family: var(--font-mono);
  font-size: 7px;
}

.character-skill-row b {
  overflow: hidden;
  color: var(--char-accent);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-skill-row small {
  font-size: 8.5px;
  line-height: 1.38;
}

.character-card p {
  margin: 0;
  color: #9b9f9b;
  font-size: 10.5px;
  line-height: 1.55;
}

.character-trait {
  padding-top: 6px;
  border-top: 1px dashed rgba(242, 238, 227, 0.12);
  color: #777c78;
  font-size: 9px;
  line-height: 1.45;
}

.character-trait b {
  margin-right: 4px;
  color: #a5aaa6;
  font-weight: 600;
}

.character-card-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(242, 238, 227, 0.1);
  color: #666b69;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.difficulty-block {
  margin: 4px 0 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(242, 238, 227, 0.12);
}

.difficulty-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
  margin-bottom: 10px;
}

.difficulty-heading .eyebrow {
  margin: 0;
}

.difficulty-heading > span {
  color: #646967;
  font-family: var(--font-mono);
  font-size: 8px;
}

.difficulty-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.difficulty-card {
  display: flex;
  min-height: 86px;
  padding: 10px 12px;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(242, 238, 227, 0.14);
  background: rgba(242, 238, 227, 0.025);
  color: var(--paper);
  text-align: left;
  cursor: pointer;
}

.difficulty-card:hover {
  border-color: rgba(216, 255, 69, 0.46);
}

.difficulty-card.is-selected {
  border-color: var(--lime);
  background: rgba(216, 255, 69, 0.055);
  box-shadow: inset 0 0 0 1px var(--lime);
}

.difficulty-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.difficulty-card b {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
}

.difficulty-card small {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 8px;
}

.difficulty-card p {
  margin: 0;
  color: #8c918d;
  font-size: 9.5px;
  line-height: 1.5;
}

.character-foot {
  margin: 0;
  color: #646967;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .difficulty-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .character-modal {
    width: calc(100% - 18px);
    padding: 26px 18px 20px;
  }

  .character-grid {
    grid-template-columns: 1fr;
  }

  .character-card {
    min-height: 0;
  }

  .character-head h2 {
    font-size: 39px;
  }

  .character-button span:last-child {
    display: none;
  }
}

.small-modal {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  padding: 26px;
  border: 1px solid #3e434b;
  background: #111318;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.24s var(--ease-out) both;
}

.small-modal h2 {
  margin: 9px 0 10px;
  color: var(--light);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.08;
}

.small-modal > p:last-of-type {
  margin: 0;
  color: #8c908b;
  font-size: 11px;
  line-height: 1.55;
}

.small-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.small-modal-actions .button {
  flex: 1;
  min-height: 44px;
}

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  width: min(340px, calc(100vw - 40px));
  flex-direction: column;
  gap: 7px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid #393e46;
  border-left: 2px solid var(--lime);
  background: #12151a;
  color: #cfd0c8;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.5;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
  animation: toastIn 0.26s var(--ease-out) both;
}

.toast.is-error {
  border-left-color: var(--red);
  color: #ffc1ba;
}

.toast.is-out {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast-icon {
  color: var(--lime);
  font-size: 9px;
}

.toast.is-error .toast-icon {
  color: var(--red);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1240px) {
  .hub-main {
    display: flex;
    flex-direction: column;
  }

  .auth-screen.is-active {
    grid-template-columns: minmax(0, 1.3fr) minmax(375px, 0.9fr);
  }

  .auth-headline h1 {
    font-size: clamp(58px, 7vw, 93px);
  }

  .hub-body {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

  .hero-copy h1 {
    font-size: clamp(49px, 5.1vw, 75px);
  }

  .leaderboard-head,
  .leader-row,
  .board-you {
    grid-template-columns: 56px minmax(125px, 1fr) 118px 78px 94px;
    column-gap: 9px;
  }

  .game-header-center {
    display: none;
  }
}

@media (max-width: 1080px) {
  .auth-art {
    display: none;
  }

  .auth-screen.is-active {
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-desk {
    min-height: 100svh;
    justify-content: flex-start;
    padding: clamp(23px, 5vw, 44px) clamp(18px, 6vw, 60px) 75px;
  }

  .auth-desk::after {
    display: none;
  }

  .desk-status {
    display: none;
  }

  .desk-mobile-brand {
    position: relative;
    z-index: 3;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    margin-bottom: clamp(36px, 8vh, 78px);
  }

  .desk-mobile-brand > p {
    display: none;
  }

  .auth-card {
    max-width: 470px;
    margin: 0 auto;
  }

  .desk-footer {
    right: clamp(18px, 6vw, 60px);
    bottom: 24px;
    left: clamp(18px, 6vw, 60px);
  }

  .hub-body {
    grid-template-columns: 1fr;
    max-width: 900px;
  }

  .hub-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .hub-side-note {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(52px, 7.4vw, 83px);
  }

  .hub-brand-tag {
    display: none;
  }

  .game-footer-tip {
    display: none;
  }

  .game-footer {
    justify-content: center;
  }

  .game-footer-controls {
    justify-content: center;
  }
}

@media (max-width: 880px) {
  .hub-header {
    flex-wrap: wrap;
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .hub-header-actions {
    flex: 1;
    justify-content: flex-end;
  }

  .icon-button #soundLabel,
  .icon-button .icon-label {
    display: none;
  }

  .icon-button {
    width: 31px;
    padding: 0;
    justify-content: center;
  }

  .account-chip {
    margin-left: 0;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 380px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-copy {
    padding: 28px 25px 31px;
  }

  .hero-copy h1 {
    font-size: clamp(53px, 9.7vw, 82px);
  }

  .hero-meta {
    gap: 12px;
  }

  .hub-lower {
    grid-template-columns: 1fr;
  }

  .leaderboard-panel {
    overflow-x: auto;
  }

  .leaderboard-head,
  .leaderboard-body,
  .board-you {
    min-width: 610px;
  }

  .board-you {
    margin-right: 15px;
    margin-left: 15px;
  }

  .hub-side {
    grid-template-columns: 1fr;
  }

  .next-fight {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;
  }

  .next-fight .eyebrow {
    grid-column: 1 / -1;
  }

  .next-fight-visual {
    grid-column: 1;
    grid-row: 2 / span 3;
    height: 130px;
  }

  .next-fight h3 {
    grid-column: 2;
    font-size: 36px;
  }

  .next-fight ul {
    grid-column: 2;
    margin: 12px 0;
  }

  .next-fight > .button {
    grid-column: 2;
  }

  .next-fight-note {
    grid-column: 2;
  }

  .signal-panel {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .signal-head {
    min-width: 115px;
  }

  .signal-wave {
    flex: 1;
    margin: 0;
    border: 0;
  }

  .signal-facts {
    min-width: 130px;
  }

  .game-header {
    padding: 0 12px;
  }

  .game-account > span:last-child,
  .game-mode {
    display: none;
  }

  .game-header-left,
  .game-header-right {
    gap: 7px;
  }

  .game-footer {
    min-height: 39px;
  }

  .game-footer-controls {
    gap: 8px;
    font-size: 6px;
  }

  .game-footer-controls span:nth-child(n + 6) {
    display: none;
  }

  .game-viewport {
    width: min(100%, calc((100svh - 103px) * 16 / 9));
  }

  .manual-columns {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .manual-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .manual-foot .button {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .auth-headline h1 {
    font-size: clamp(52px, 15.2vw, 80px);
  }

  .auth-headline {
    padding-top: 30px;
  }

  .auth-desc {
    font-size: 12px;
  }

  .auth-footline {
    display: none;
  }

  .auth-desk::before {
    font-size: 190px;
    opacity: 0.7;
  }

  .desk-mobile-brand {
    margin-bottom: 38px;
  }

  .desk-mobile-brand .brand-mark {
    width: 31px;
    height: 31px;
  }

  .desk-mobile-brand .brand-type {
    font-size: 17px;
  }

  .desk-mobile-brand .network-pill {
    font-size: 7px;
  }

  .desk-footer {
    display: none;
  }

  .auth-card-head h2 {
    font-size: 36px;
  }

  .auth-tab {
    height: 42px;
    font-size: 8px;
  }

  .strength-bars {
    flex-basis: 84px;
  }

  .strength-bars i {
    width: 18px;
  }

  .reveal-screen.is-active {
    padding: 16px;
  }

  .reveal-shell {
    grid-template-columns: 1fr;
  }

  .reveal-visual {
    min-height: 210px;
    max-height: 230px;
    border-right: 0;
    border-bottom: 1px solid #343942;
  }

  .reveal-visual canvas {
    width: 170px;
    height: auto;
  }

  .reveal-visual::before {
    font-size: 130px;
    bottom: -22px;
  }

  .reveal-visual-label {
    bottom: 11px;
    left: 13px;
    font-size: 6.5px;
  }

  .reveal-card {
    padding: 25px 22px 28px;
  }

  .reveal-card h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .reveal-copy {
    font-size: 11px;
  }

  .identity-ticket {
    margin-top: 20px;
    padding: 13px;
  }

  .ticket-id {
    font-size: clamp(26px, 8.8vw, 35px);
  }

  .reveal-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-top: 19px;
  }

  .reveal-actions .button {
    width: 100%;
  }

  .reveal-actions p {
    max-width: none;
    text-align: center;
  }

  .reveal-footer {
    display: none;
  }

  .hub-header {
    padding: 10px 13px;
  }

  .hub-brand-type {
    font-size: 16px;
  }

  .brand-mark--small {
    width: 29px;
    height: 29px;
  }

  .hub-header-actions {
    gap: 5px;
  }

  .account-chip-copy {
    display: none;
  }

  .account-chip {
    padding: 3px;
  }

  .account-chip-copy-id {
    padding: 0 3px;
    font-size: 6px;
  }

  .account-chip-exit {
    padding: 0 4px;
  }

  .hub-body {
    padding: 12px;
    gap: 12px;
  }

  .hero-copy {
    padding: 22px 20px 25px;
  }

  .hero-copy h1 {
    margin-top: 12px;
    font-size: clamp(47px, 13.5vw, 69px);
  }

  .hero-copy > p {
    font-size: 11px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    margin-top: 18px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 315px;
  }

  .hero-meta {
    margin-top: 17px;
    font-size: 6px;
  }

  .panel-heading {
    padding: 15px 15px 13px;
  }

  .panel-heading h2 {
    font-size: 21px;
  }

  .leaderboard-head,
  .leader-row,
  .board-you {
    grid-template-columns: 45px minmax(100px, 1fr) 90px 69px 84px;
    padding-right: 14px;
    padding-left: 14px;
    column-gap: 8px;
    min-width: 530px;
  }

  .board-meta {
    justify-content: flex-start;
    gap: 7px;
  }

  .refresh-button {
    display: none;
  }

  .hub-side {
    gap: 12px;
  }

  .next-fight {
    display: block;
  }

  .next-fight-visual {
    height: 116px;
  }

  .next-fight h3 {
    margin-top: 2px;
  }

  .signal-panel {
    display: block;
  }

  .signal-wave {
    margin: 12px 0;
  }

  .key-grid {
    grid-template-columns: 1fr;
    padding: 0 15px 14px;
  }

  .dossier-identity,
  .stat-grid {
    margin-right: 15px;
    margin-left: 15px;
  }

  .dossier-foot {
    padding-right: 15px;
    padding-left: 15px;
  }

  .hub-footer {
    padding: 10px 14px;
    font-size: 6px;
  }

  .hub-footer span:nth-child(2) {
    display: none;
  }

  .game-header-right .game-account {
    display: none;
  }

  .game-header-left {
    min-width: 0;
  }

  .game-back-button {
    padding: 0 7px;
  }

  .game-icon-button {
    width: 27px;
    height: 27px;
  }

  .game-viewport-shell {
    padding: 5px;
  }

  .game-viewport {
    width: 100%;
  }

  .game-footer {
    display: none;
  }

  .game-screen.is-active {
    height: 100svh;
    min-height: 0;
  }

  .countdown-banner {
    top: 30%;
  }

  .overlay-layer {
    padding: 10px;
  }

  .overlay-card {
    padding: 20px;
  }

  .overlay-card h2 {
    font-size: 42px;
  }

  .overlay-topline {
    margin-bottom: 17px;
  }

  .overlay-copy {
    font-size: 10px;
  }

  .pause-mini-controls {
    margin: 14px 0 16px;
    padding: 9px 0;
  }

  .overlay-actions {
    flex-direction: column;
  }

  .overlay-actions .button {
    width: 100%;
  }

  .results-grid {
    grid-template-columns: 1fr 1fr;
  }

  .results-grid > div {
    min-height: 45px;
  }

  .results-score-block strong {
    font-size: 39px;
  }

  .manual-modal {
    max-height: 93svh;
    padding: 22px 19px;
  }

  .manual-head h2 {
    font-size: 43px;
  }

  .manual-modal .modal-close {
    top: 11px;
    right: 11px;
  }

  .manual-head {
    padding-right: 18px;
  }

  .manual-columns {
    gap: 17px;
    margin-top: 20px;
    padding-top: 16px;
  }

  .toast-stack {
    right: 12px;
    bottom: 12px;
    width: min(340px, calc(100vw - 24px));
  }
}

@media (hover: none) and (pointer: coarse) {
  .touch-controls {
    display: flex;
  }

  .orientation-hint {
    display: flex;
  }

  .game-footer {
    display: none;
  }

  .game-viewport {
    width: min(100%, calc((100svh - 64px) * 16 / 9));
  }

  .game-screen.is-active {
    height: 100svh;
    min-height: 0;
  }

  .screen-scanlines {
    opacity: 0.07;
  }

  .game-back-button,
  .game-icon-button {
    min-height: 33px;
  }

  .cursor-glow {
    display: none;
  }
}

@media (orientation: landscape) and (hover: none) and (pointer: coarse) {
  .orientation-hint {
    display: none;
  }
}

@media (orientation: portrait) and (hover: none) and (pointer: coarse) and (max-width: 700px) {
  .game-viewport-shell {
    padding-top: 12px;
    padding-bottom: 10px;
    align-items: flex-start;
  }

  .game-viewport {
    box-shadow: 0 0 0 2px #08090c, 0 14px 40px rgba(0, 0, 0, 0.5);
  }

  .countdown-banner {
    top: 23%;
  }

  .touch-controls {
    bottom: 5px;
    left: 5px;
    right: 5px;
  }

  .touch-move button {
    width: 38px;
    height: 38px;
  }

  .touch-action {
    min-width: 43px;
    height: 30px;
  }
}

@media (max-height: 740px) and (min-width: 1081px) {
  .auth-headline {
    padding-top: 31px;
  }

  .auth-headline h1 {
    font-size: clamp(54px, 6.6vw, 92px);
  }

  .auth-desc {
    margin-top: 17px;
    font-size: 12.5px;
  }

  .spec-chips {
    margin-top: 14px;
  }

  .exhibition {
    max-width: 690px;
  }

  .auth-desk {
    padding-top: 62px;
    padding-bottom: 45px;
  }

  .auth-card-head {
    padding-top: 22px;
  }

  .auth-form {
    gap: 11px;
    padding-top: 16px;
  }

  .input-shell {
    height: 42px;
  }

  .strength {
    margin-top: -2px;
  }

  .identity-note {
    margin-top: 17px;
    padding-top: 12px;
  }

  .desk-footer {
    bottom: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .ambient-letters,
  .reveal-burst {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   中文可读性微调
   中文字形比等宽拉丁字母更密，原本 6–8px 的技术标签需要略大字号才能读清。
   -------------------------------------------------------------------------- */

.auth-desk {
  overflow-x: hidden;
  overflow-y: auto;
}

.boot-kicker,
.auth-tab,
.field-label,
.text-button {
  font-size: 10.5px;
}

.boot-log,
.network-pill,
.spec-chips span,
.exhibition-toolbar,
.exhibition-footer,
.auth-footline,
.desk-status,
.desk-footer,
.ticket-top,
.ticket-bottom,
.ticket-copy,
.reveal-visual-label,
.reveal-actions p,
.reveal-footer,
.hub-brand-tag,
.hero-overline,
.visual-spec,
.board-meta,
.refresh-button,
.leaderboard-head,
.board-you,
.copy-inline,
.dossier-foot,
.next-fight .eyebrow,
.signal-head .eyebrow,
.signal-facts,
.hub-footer {
  font-size: 9px;
}

.field-flag,
.peek-button,
.input-end,
.strength-label,
.dossier-identity div span,
.stat-cell span,
.next-fight-note,
.hub-side-note {
  font-size: 9.5px;
}

.identity-note p {
  font-size: 10px;
}

.field-help,
.fine-print,
.reveal-copy {
  font-size: 10.5px;
}

.manual-control {
  font-size: 11px;
}

.manual-foot {
  font-size: 10px;
}

.auth-card-head > p:last-child,
.auth-desc,
.reveal-copy,
.overlay-copy,
.manual-head > p:last-child,
.small-modal > p:last-of-type {
  font-size: 13px;
  line-height: 1.7;
}

.field-help,
.fine-print,
.identity-note p {
  line-height: 1.7;
}

.input-shell input::placeholder {
  font-size: 11px;
  letter-spacing: 0.02em;
}

.form-error {
  font-size: 10px;
}

.stage-label {
  font-size: 10px;
}

.stage-label small {
  font-size: 8.5px;
}

.auth-tab {
  letter-spacing: 0.08em;
}

.field-label {
  letter-spacing: 0.08em;
}

.peek-button,
.field-flag,
.strength-label,
.input-end,
.desk-status,
.exhibition-toolbar,
.exhibition-footer,
.auth-footline,
.ticket-top,
.ticket-bottom,
.reveal-footer,
.hub-footer {
  letter-spacing: 0.04em;
}

.eyebrow,
.hero-overline,
.board-meta,
.leaderboard-head {
  letter-spacing: 0.08em;
}

.hero-meta,
.visual-spec {
  font-size: 9px;
  letter-spacing: 0.03em;
}

.visual-nameplate-label,
.visual-nameplate-id {
  font-size: 8.5px;
}

.account-chip-copy b {
  font-size: 11px;
}

.account-chip-copy small,
.account-chip-copy-id,
.account-chip-exit {
  font-size: 8px;
}

.icon-button,
.game-back-button,
.game-mode,
.game-header-center,
.game-account,
.game-footer-controls,
.game-footer-tip,
.overlay-topline,
.pause-mini-controls span,
.overlay-fineprint,
.results-score-block > span:first-child,
.results-best,
.results-grid span,
.result-sync,
.manual-columns h3,
.manual-foot,
.orientation-hint {
  font-size: 9px;
}

.game-account > span:last-child {
  font-size: 8px;
}

kbd,
.game-footer-controls kbd,
.pause-mini-controls kbd,
.manual-control kbd,
.key-row kbd {
  font-size: 8px;
}

.leader-rank,
.leader-wave,
.signal-facts,
.board-you {
  font-size: 9px;
}

.leader-name strong {
  font-size: 11.5px;
}

.leader-id {
  font-size: 8.5px;
}

.leader-score {
  font-size: 10px;
}

.board-loading,
.board-empty {
  font-size: 10px;
}

.key-row {
  font-size: 10.5px;
}

.rank-plate {
  font-size: 9.5px;
}

.dossier-identity strong {
  font-size: 11.5px;
}

.key-row,
.next-fight li,
.manual-list li,
.manual-control {
  line-height: 1.55;
}

.stat-cell span {
  letter-spacing: 0.03em;
}

.next-fight li {
  min-height: 27px;
  font-size: 10px;
}

.next-fight li b {
  font-size: 9.5px;
}

.toast {
  font-size: 10.5px;
  line-height: 1.6;
}

.touch-action {
  font-size: 9px;
}

.overlay-topline {
  margin-bottom: 18px;
  font-size: 9.5px;
}

.pause-mini-controls span,
.overlay-fineprint {
  font-size: 9.5px;
}

.results-grid span {
  margin-bottom: 8px;
  font-size: 9.5px;
}

.result-sync {
  font-size: 9.5px;
  line-height: 1.6;
}

.manual-columns h3 {
  font-size: 10px;
  letter-spacing: 0.08em;
}

.manual-list li {
  font-size: 11px;
  line-height: 1.7;
  padding-top: 10px;
  padding-bottom: 10px;
}

.manual-control {
  font-size: 11px;
  min-height: 40px;
}

.manual-foot {
  font-size: 9px;
}

.toast-icon {
  font-size: 11px;
}

@media (max-width: 680px) {
  .field-help,
  .fine-print,
  .identity-note p {
    font-size: 9.5px;
  }

  .auth-tab {
    font-size: 10px;
  }

  .hub-footer {
    font-size: 8px;
  }

  .overlay-topline,
  .overlay-fineprint,
  .pause-mini-controls span,
  .results-grid span,
  .result-sync {
    font-size: 8.5px;
  }

  .overlay-copy {
    font-size: 11.5px;
  }

  .manual-control,
  .manual-list li {
    font-size: 9.5px;
  }

  .toast {
    font-size: 10px;
  }
}

/* 低高度桌面：让中文登录页在 1366×768 等常见屏幕上完整落在一屏内。 */
@media (max-height: 820px) and (min-width: 1081px) {
  .auth-art {
    padding: 20px 28px;
  }

  .auth-headline {
    padding: 22px 0 14px;
  }

  .auth-headline .eyebrow {
    margin-bottom: 10px;
  }

  .auth-headline h1 {
    font-size: clamp(48px, 5.8vw, 78px);
    line-height: 1.02;
  }

  .auth-desc {
    max-width: 560px;
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.55;
  }

  .spec-chips {
    margin-top: 10px;
  }

  .spec-chips span {
    min-height: 21px;
    padding: 0 7px;
  }

  .exhibition {
    max-width: 610px;
  }

  .exhibition-toolbar,
  .exhibition-footer {
    min-height: 25px;
  }

  .auth-footline {
    display: none;
  }

  .auth-desk {
    padding: 54px clamp(22px, 3vw, 44px) 32px;
  }

  .desk-status {
    top: 22px;
  }

  .auth-tab {
    height: 38px;
  }

  .auth-card-head {
    padding-top: 18px;
  }

  .auth-card-head h2 {
    margin: 8px 0 6px;
    font-size: 38px;
  }

  .auth-card-head > p:last-child {
    font-size: 12px;
    line-height: 1.55;
  }

  .auth-form {
    gap: 11px;
    padding-top: 14px;
  }

  .input-shell {
    height: 42px;
  }

  .strength {
    margin-top: -1px;
  }

  .identity-note {
    margin-top: 14px;
    padding-top: 10px;
  }

  .field-help,
  .fine-print {
    font-size: 9px;
    line-height: 1.55;
  }

  .desk-footer {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Online duel
   -------------------------------------------------------------------------- */

.button--duel {
  background: var(--cyan);
  color: var(--ink);
}

.button--duel:hover {
  background: #9af8f2;
  color: var(--ink);
}

.button--duel .button-fill {
  background: repeating-linear-gradient(
    -56deg,
    transparent 0,
    transparent 14px,
    rgba(10, 11, 13, 0.06) 14px,
    rgba(10, 11, 13, 0.06) 28px
  );
}

.button--duel.button--hero {
  min-width: 174px;
}

.hero-actions .button--hero {
  min-width: 176px;
}

.hero-actions .button--duel.button--hero {
  min-width: 152px;
}

.hero-actions .button--ghost {
  min-height: 58px;
  padding: 0 15px;
}

.hero-manual-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-decoration: none;
}

.hero-manual-link:hover {
  color: var(--light);
}

@media (min-width: 1000px) {
  .hero-copy h1 .outlined-word {
    white-space: nowrap;
  }
}

@media (min-width: 1000px) and (max-width: 1366px) {
  .hero-copy h1 {
    font-size: clamp(54px, 4.55vw, 63px);
  }
}

.duel-record-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 13px 20px 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: #747977;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.duel-record-strip b {
  margin-left: auto;
  color: var(--lime);
  font-weight: 600;
  white-space: nowrap;
}

.duel-record-label {
  color: #a6aaa0;
  letter-spacing: 0.09em;
}

.duel-record-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #656a68;
  white-space: nowrap;
}

.duel-record-live .live-dot {
  width: 3px;
  height: 3px;
}

#duelCanvas {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--paper);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
  user-select: none;
}

#duelCanvas:focus {
  outline: none;
}

.duel-screen .game-header-center b {
  color: var(--cyan);
}

.duel-screen .game-mode i {
  background: var(--cyan);
}

.duel-screen .game-back-button {
  border-color: rgba(94, 231, 228, 0.24);
}

.duel-queue-overlay .overlay-card--duel {
  width: min(100%, 540px);
}

.duel-queue-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 18px 0 20px;
  padding: 11px 0;
  border-top: 1px solid rgba(242, 238, 227, 0.12);
  border-bottom: 1px solid rgba(242, 238, 227, 0.12);
  color: #747977;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.duel-queue-facts b {
  color: var(--paper);
  font-weight: 500;
}

.duel-queue-facts span:first-child b {
  color: var(--cyan);
}

.duel-queue-facts[hidden] + .overlay-actions {
  margin-top: 21px;
}

.duel-queue-overlay .overlay-fineprint {
  color: #656a68;
}

.duel-touch-actions {
  grid-template-columns: repeat(2, auto);
}

.duel-screen .game-footer {
  border-top-color: rgba(94, 231, 228, 0.18);
}

.duel-screen .game-footer-controls {
  color: #68706e;
}

.duel-screen .game-footer-tip {
  color: #5f6765;
}

.manual-online-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.85fr);
  gap: 26px;
  align-items: start;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.manual-online-strip h3 {
  margin: 7px 0 8px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.manual-online-strip > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.manual-online-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding-top: 4px;
  color: #8b8f8c;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.7;
}

.manual-online-keys span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.small-modal--danger {
  border-color: rgba(255, 106, 61, 0.5);
  background:
    linear-gradient(135deg, rgba(255, 106, 61, 0.06), transparent 45%),
    #111318;
}

.small-modal--danger h2 {
  color: #ff9a7b;
}

@media (max-width: 880px) {
  .manual-online-strip {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .manual-online-keys {
    padding-top: 0;
  }
}

@media (max-width: 680px) {
  .button--duel.button--hero {
    min-width: 0;
    flex: 1;
  }

  .duel-record-strip {
    flex-wrap: wrap;
    margin-right: 16px;
    margin-left: 16px;
    font-size: 8.5px;
  }

  .duel-queue-facts {
    gap: 8px 13px;
    font-size: 8.5px;
  }

  .duel-queue-overlay .overlay-card--duel {
    padding: 20px;
  }

  .manual-online-strip {
    margin-top: 20px;
    padding-top: 16px;
  }

  .manual-online-strip h3 {
    font-size: 22px;
  }
}

@media (max-height: 520px) {
  .duel-queue-overlay {
    padding: 10px;
  }

  .duel-queue-overlay .overlay-card--duel {
    width: min(100%, 500px);
    padding: 16px 20px;
  }

  .duel-queue-overlay .overlay-topline {
    margin-bottom: 8px;
    font-size: 8px;
  }

  .duel-queue-overlay .eyebrow {
    font-size: 8.5px;
  }

  .duel-queue-overlay h2 {
    margin: 5px 0 8px;
    font-size: clamp(31px, 8vh, 43px);
    line-height: 1.05;
  }

  .duel-queue-overlay .overlay-copy {
    font-size: 11px;
    line-height: 1.45;
  }

  .duel-queue-overlay .duel-queue-facts {
    gap: 7px 14px;
    margin: 10px 0 9px;
    padding: 7px 0;
    font-size: 8.5px;
  }

  .duel-queue-overlay .duel-queue-facts[hidden] + .overlay-actions {
    margin-top: 13px;
  }

  .duel-queue-overlay .overlay-actions .button {
    min-height: 42px;
    font-size: 11px;
  }

  .duel-queue-overlay .overlay-fineprint {
    display: none;
  }

  .adventure-overlay {
    padding: 10px;
  }

  .adventure-overlay .overlay-card--adventure {
    width: min(100%, 540px);
    padding: 16px 20px;
  }

  .adventure-overlay .overlay-topline {
    margin-bottom: 8px;
    font-size: 8px;
  }

  .adventure-overlay .eyebrow {
    font-size: 8.5px;
  }

  .adventure-overlay h2 {
    margin: 5px 0 8px;
    font-size: clamp(30px, 7.5vh, 42px);
    line-height: 1.05;
  }

  .adventure-overlay .overlay-copy {
    font-size: 11px;
    line-height: 1.4;
  }

  .adventure-overlay .adventure-slots {
    gap: 6px;
    margin: 9px 0;
  }

  .adventure-overlay .adventure-slot {
    min-height: 52px;
    padding: 7px 8px;
  }

  .adventure-overlay .adventure-slot b {
    font-size: 10px;
  }

  .adventure-overlay .adventure-slot small {
    font-size: 8px;
  }

  .adventure-overlay .adventure-facts {
    gap: 7px 14px;
    margin: 8px 0;
    padding: 6px 0;
    font-size: 8.5px;
  }

  .adventure-overlay .overlay-actions {
    margin-top: 9px;
  }

  .adventure-overlay .overlay-actions .button {
    min-height: 42px;
    font-size: 11px;
  }

  .adventure-overlay .overlay-fineprint {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Three-player adventure
   -------------------------------------------------------------------------- */

.button--adventure {
  background: var(--violet);
  color: var(--ink);
}

.button--adventure:hover {
  background: #c4b2ff;
  color: var(--ink);
}

.button--adventure .button-fill {
  background: repeating-linear-gradient(
    -56deg,
    transparent 0,
    transparent 14px,
    rgba(10, 11, 13, 0.06) 14px,
    rgba(10, 11, 13, 0.06) 28px
  );
}

.button--adventure-wide {
  flex: 1 0 100%;
  min-height: 48px;
}

.button--adventure em {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 5px;
  background: var(--ink);
  color: var(--violet);
  font-family: var(--font-mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.08em;
  vertical-align: 2px;
}

.adventure-record-strip {
  margin-top: 7px;
}

#adventureCanvas {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--paper);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
  user-select: none;
}

#adventureCanvas:focus {
  outline: none;
}

.adventure-screen .game-header-center b {
  color: var(--violet);
}

.adventure-screen .game-mode i {
  background: var(--violet);
}

.adventure-screen .game-back-button {
  border-color: rgba(167, 139, 250, 0.24);
}

.adventure-screen .game-footer {
  border-top-color: rgba(167, 139, 250, 0.2);
}

.adventure-overlay .overlay-card--adventure {
  width: min(100%, 600px);
}

.adventure-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.adventure-slot {
  display: flex;
  min-height: 68px;
  padding: 9px 10px;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(242, 238, 227, 0.12);
  background: rgba(242, 238, 227, 0.025);
}

.adventure-slot-index {
  color: var(--violet);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.adventure-slot b {
  overflow: hidden;
  color: #adafa9;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adventure-slot small {
  color: #5f6468;
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.adventure-slot.is-filled {
  border-color: rgba(242, 238, 227, 0.26);
}

.adventure-slot.is-filled b {
  color: var(--paper);
}

.adventure-slot.is-self {
  border-color: rgba(216, 255, 69, 0.56);
  background: rgba(216, 255, 69, 0.05);
}

.adventure-slot.is-self small {
  color: var(--lime);
}

.adventure-slot.is-down {
  border-color: rgba(255, 81, 79, 0.5);
}

.adventure-slot.is-down small {
  color: var(--red);
}

.adventure-slots[hidden],
.adventure-facts[hidden] {
  display: none !important;
}

.adventure-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 18px;
  padding: 10px 0;
  border-top: 1px solid rgba(242, 238, 227, 0.12);
  border-bottom: 1px solid rgba(242, 238, 227, 0.12);
  color: #747977;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.adventure-facts b {
  color: var(--paper);
  font-weight: 500;
}

.adventure-facts span:first-child b {
  color: var(--violet);
}

.adventure-overlay .overlay-actions {
  margin-top: 4px;
}

.adventure-overlay .adventure-facts[hidden] + .overlay-actions {
  margin-top: 18px;
}

.adventure-overlay .overlay-fineprint {
  color: #656a68;
}

.manual-adventure-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.85fr);
  gap: 26px;
  align-items: start;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.manual-adventure-strip h3 {
  margin: 7px 0 8px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.manual-adventure-strip > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

@media (max-width: 880px) {
  .manual-adventure-strip {
    grid-template-columns: 1fr;
    gap: 13px;
  }
}

@media (max-width: 680px) {
  .button--adventure-wide {
    min-height: 50px;
  }

  .adventure-slots {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .adventure-slot {
    min-height: 46px;
    padding: 7px 9px;
  }

  .manual-adventure-strip {
    margin-top: 18px;
    padding-top: 15px;
  }

  .manual-adventure-strip h3 {
    font-size: 22px;
  }
}
