:root {
  --bg0: #070812;
  --bg1: #0b0f1a;
  --text: rgba(243, 247, 255, 0.92);
  --muted: rgba(243, 247, 255, 0.62);
  --faint: rgba(243, 247, 255, 0.35);
  --panel: rgba(10, 12, 22, 0.58);
  --panel2: rgba(10, 12, 22, 0.42);
  --shadow: rgba(0, 0, 0, 0.55);
  --border: rgba(138, 255, 243, 0.22);
  --accent: #8afff3;
  --accent2: #ff3df2;
  --warn: #ff2e6d;
  --ok: #2bff9a;
  --radius: 18px;
  --blur: 14px;

  --font-ui: "Orbitron", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif;
  --font-sub: "Rajdhani", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

body[data-accent="neutral"] {
  --accent: #8afff3;
  --accent2: #ff3df2;
}
body[data-accent="fighter"] {
  --accent: #ff2e6d;
  --accent2: #ffb02e;
}
body[data-accent="pilot"] {
  --accent: #b55cff;
  --accent2: #ff3df2;
}
body[data-accent="cinema"] {
  --accent: #00d5ff;
  --accent2: #00ff9a;
}
body[data-accent="artist"] {
  --accent: #2bff9a;
  --accent2: #64a6ff;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: radial-gradient(1200px 700px at 25% 20%, #171a34 0%, transparent 55%),
    radial-gradient(900px 650px at 70% 40%, #0f2048 0%, transparent 60%),
    radial-gradient(700px 550px at 60% 85%, #2b0d35 0%, transparent 62%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
  font-family: var(--font-sub);
  letter-spacing: 0.01em;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.fx--scanlines {
  opacity: 0.14;
  mix-blend-mode: overlay;
  background: repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0.02) 1px,
      rgba(0, 0, 0, 0.06) 2px,
      rgba(0, 0, 0, 0.06) 4px
    ),
    radial-gradient(1200px 600px at 50% 0%, rgba(138, 255, 243, 0.12), transparent 60%);
  animation: scan 6.5s linear infinite;
}

.fx--vignette {
  background: radial-gradient(900px 550px at 50% 35%, transparent 30%, rgba(0, 0, 0, 0.62) 92%),
    radial-gradient(1200px 900px at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.45) 95%);
  opacity: 0.95;
}

@keyframes scan {
  0% {
    transform: translateY(-2%);
  }
  100% {
    transform: translateY(2%);
  }
}

.topbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  gap: 1rem;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.sigil {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(138, 255, 243, 0.18), rgba(255, 61, 242, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  position: relative;
}
.sigil::before,
.sigil::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.sigil::after {
  inset: 14px;
  border-radius: 8px;
  border-color: rgba(138, 255, 243, 0.28);
}

.topbar__text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.callsign {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-ui);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--faint);
  white-space: nowrap;
}
.callsign__value {
  color: var(--text);
  letter-spacing: 0.12em;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(138, 255, 243, 0.16);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(48vw, 520px);
}

.fromline {
  font-family: var(--font-mono);
  color: rgba(243, 247, 255, 0.58);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(56vw, 760px);
}

.iconbtn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 12, 22, 0.42);
  backdrop-filter: blur(var(--blur));
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}
.iconbtn:hover {
  border-color: rgba(138, 255, 243, 0.28);
}
.iconbtn:active {
  transform: translateY(1px);
}
.iconbtn__dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
}
body[data-sound="on"] .iconbtn__dot {
  background: var(--ok);
  box-shadow: 0 0 20px rgba(43, 255, 154, 0.45);
}

.ui {
  position: relative;
  z-index: 1;
  height: 100%;
}

.screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 5.75rem 1.25rem 2rem;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 450ms ease, transform 650ms cubic-bezier(0.18, 0.9, 0.15, 1);
  pointer-events: none;
}

body[data-step="boot"] .screen[data-screen="boot"],
body[data-step="brief"] .screen[data-screen="brief"],
body[data-step="select"] .screen[data-screen="select"],
body[data-step="details"] .screen[data-screen="details"],
body[data-step="locked"] .screen[data-screen="locked"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.panel {
  width: min(980px, 92vw);
  background: linear-gradient(180deg, rgba(10, 12, 22, 0.68), rgba(10, 12, 22, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(var(--blur));
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    110deg,
    rgba(138, 255, 243, 0.18),
    rgba(255, 61, 242, 0.12),
    rgba(43, 255, 154, 0.14)
  );
  opacity: 0.35;
  filter: blur(18px);
  pointer-events: none;
}

.panel--hero {
  padding: 2.25rem 2.2rem 2rem;
  text-align: center;
}

.panel--wide {
  width: min(1120px, 92vw);
  padding: 1.75rem 1.75rem 1.5rem;
}

.panel--final {
  padding: 2rem 1.75rem 1.25rem;
}

.hero__kicker {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 247, 255, 0.6);
  font-size: 0.78rem;
}

.hero__title {
  margin: 0.6rem 0 0.2rem;
  font-family: var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: clamp(2.15rem, 6vw, 3.7rem);
}

.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(243, 247, 255, 0.72);
  letter-spacing: 0.02em;
}

.hero__cta {
  margin-top: 1.65rem;
  display: grid;
  place-items: center;
  gap: 0.75rem;
}

.hero__hint {
  font-family: var(--font-mono);
  color: rgba(243, 247, 255, 0.55);
  font-size: 0.78rem;
}

.glitch {
  position: relative;
  display: inline-block;
  text-shadow: 0 0 26px rgba(138, 255, 243, 0.18);
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  opacity: 0.6;
  pointer-events: none;
}
.glitch::before {
  transform: translate(1px, 0);
  color: rgba(255, 61, 242, 0.72);
  animation: glitch1 2.1s infinite linear alternate-reverse;
}
.glitch::after {
  transform: translate(-1px, 0);
  color: rgba(138, 255, 243, 0.76);
  animation: glitch2 1.7s infinite linear alternate-reverse;
}

.glitch--small {
  text-shadow: 0 0 22px rgba(255, 61, 242, 0.16);
}
.glitch--small::before,
.glitch--small::after {
  opacity: 0.55;
}

@keyframes glitch1 {
  0% {
    clip-path: inset(0 0 88% 0);
  }
  12% {
    clip-path: inset(62% 0 16% 0);
  }
  24% {
    clip-path: inset(10% 0 70% 0);
  }
  36% {
    clip-path: inset(40% 0 43% 0);
  }
  48% {
    clip-path: inset(80% 0 8% 0);
  }
  60% {
    clip-path: inset(0 0 78% 0);
  }
  72% {
    clip-path: inset(30% 0 52% 0);
  }
  84% {
    clip-path: inset(55% 0 22% 0);
  }
  100% {
    clip-path: inset(0 0 85% 0);
  }
}
@keyframes glitch2 {
  0% {
    clip-path: inset(74% 0 4% 0);
  }
  15% {
    clip-path: inset(0 0 86% 0);
  }
  30% {
    clip-path: inset(62% 0 20% 0);
  }
  45% {
    clip-path: inset(35% 0 44% 0);
  }
  60% {
    clip-path: inset(12% 0 70% 0);
  }
  75% {
    clip-path: inset(80% 0 8% 0);
  }
  100% {
    clip-path: inset(68% 0 12% 0);
  }
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 12, 22, 0.42);
  color: var(--text);
  border-radius: 14px;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
  transition: transform 120ms ease, border-color 160ms ease, background 160ms ease,
    box-shadow 160ms ease, filter 160ms ease;
}

.btn:hover {
  border-color: rgba(138, 255, 243, 0.36);
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.btn--primary {
  border-color: rgba(138, 255, 243, 0.32);
  background: linear-gradient(135deg, rgba(138, 255, 243, 0.2), rgba(255, 61, 242, 0.14));
  box-shadow: 0 22px 80px rgba(138, 255, 243, 0.08);
}

.btn--ghost {
  background: rgba(10, 12, 22, 0.26);
}

.linkbtn {
  border: none;
  background: transparent;
  color: rgba(243, 247, 255, 0.72);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 0.55rem 0.35rem;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 3px;
}
.linkbtn:hover {
  color: rgba(243, 247, 255, 0.92);
  text-decoration-color: rgba(138, 255, 243, 0.5);
}

.terminal {
  margin-top: 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  padding: 1rem 1rem 1.25rem;
  font-family: var(--font-mono);
  color: rgba(243, 247, 255, 0.78);
  position: relative;
  overflow: hidden;
}
.terminal__lines {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.3;
}
.terminal__cursor {
  position: absolute;
  left: 1rem;
  bottom: 0.75rem;
  width: 10px;
  height: 18px;
  border-radius: 3px;
  background: rgba(138, 255, 243, 0.85);
  animation: blink 900ms step-end infinite;
  box-shadow: 0 0 18px rgba(138, 255, 243, 0.22);
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.panel__title {
  font-family: var(--font-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: rgba(243, 247, 255, 0.7);
}
.panel__title--warn {
  color: rgba(255, 46, 109, 0.85);
}
.panel__actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.panel__actions--center {
  justify-content: center;
}
.panel__split {
  margin-top: 1rem;
}

.hud {
  width: min(1200px, 92vw);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.hud__title {
  font-family: var(--font-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1.15rem;
}
.hud__sub {
  color: rgba(243, 247, 255, 0.68);
  font-size: 1rem;
  line-height: 1.2;
}

.progress {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 12, 22, 0.28);
}
.progress__dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
}
.progress__dot.is-on {
  background: rgba(138, 255, 243, 0.9);
  box-shadow: 0 0 14px rgba(138, 255, 243, 0.25);
}

.grid {
  width: min(1200px, 92vw);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 980px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  outline: none;
  transform-style: preserve-3d;
}

.card__frame {
  border-radius: 18px;
  padding: 0.8rem 0.8rem 0.85rem;
  background: linear-gradient(180deg, rgba(10, 12, 22, 0.68), rgba(10, 12, 22, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(var(--blur));
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease,
    filter 160ms ease;
}

.card__frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(400px 280px at 20% 10%, rgba(138, 255, 243, 0.18), transparent 60%),
    radial-gradient(450px 300px at 80% 15%, rgba(255, 61, 242, 0.14), transparent 60%),
    radial-gradient(420px 300px at 50% 110%, rgba(43, 255, 154, 0.1), transparent 55%);
  opacity: 0.55;
  pointer-events: none;
}

.card:hover .card__frame {
  transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
  border-color: rgba(138, 255, 243, 0.28);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  filter: brightness(1.06);
}

.card:focus-visible .card__frame {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 3px rgba(138, 255, 243, 0.18), 0 26px 90px rgba(0, 0, 0, 0.45);
}

.card[aria-selected="true"] .card__frame {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 3px rgba(255, 61, 242, 0.16), 0 35px 120px rgba(0, 0, 0, 0.55);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  position: relative;
  z-index: 1;
}

.rank {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  font-family: var(--font-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: rgba(243, 247, 255, 0.68);
}
.rank__value {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(138, 255, 243, 0.22);
}

.card__chip {
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.85);
  background: linear-gradient(135deg, rgba(138, 255, 243, 0.9), rgba(255, 61, 242, 0.78));
}

.card__imgwrap {
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(420px 260px at 30% 25%, rgba(138, 255, 243, 0.12), transparent 60%),
    radial-gradient(420px 260px at 70% 15%, rgba(255, 61, 242, 0.1), transparent 60%),
    rgba(0, 0, 0, 0.28);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  z-index: 1;
}

.card__imgwrap picture,
.details__imgframe picture {
  width: 100%;
  height: 100%;
  display: block;
}

.card__imgwrap img,
.details__imgframe img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateZ(0);
  filter: saturate(1.1) contrast(1.05) drop-shadow(0 26px 80px rgba(0, 0, 0, 0.55));
}

.brandMask {
  position: absolute;
  pointer-events: none;
  opacity: 1;
}
.brandMask--bl {
  bottom: 0;
  left: 0;
  width: 58%;
  height: 36%;
  background: linear-gradient(35deg, rgba(7, 8, 18, 1), rgba(7, 8, 18, 1));
  clip-path: polygon(0 24%, 86% 0, 100% 100%, 0 100%);
}

.imgScan {
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(
    120deg,
    transparent 35%,
    rgba(255, 255, 255, 0.12) 42%,
    transparent 50%
  );
  opacity: 0.35;
  transform: rotate(12deg);
  animation: sheen 3.8s ease-in-out infinite;
  mix-blend-mode: overlay;
}

@keyframes sheen {
  0%,
  40% {
    transform: translateX(-18%) rotate(12deg);
  }
  70%,
  100% {
    transform: translateX(18%) rotate(12deg);
  }
}

.card__meta {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.18rem;
  position: relative;
  z-index: 1;
}
.card__name {
  font-family: var(--font-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.92rem;
}
.card__tag {
  font-family: var(--font-sub);
  color: rgba(243, 247, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.1;
}

.hintbar {
  width: min(1200px, 92vw);
  margin-top: 0.95rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  color: rgba(243, 247, 255, 0.62);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 0.1rem 0.35rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  margin-right: 0.3rem;
}

.details {
  width: min(1200px, 92vw);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.details .panel {
  width: 100%;
}

@media (min-width: 980px) {
  .details {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.details__hero {
  padding: 1.15rem 1.15rem 1.1rem;
}

.details__banner {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
}
.details__name {
  font-family: var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 1.35rem;
}
.details__tag {
  color: rgba(243, 247, 255, 0.72);
  font-size: 1.05rem;
}

.details__imgframe {
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(720px 420px at 25% 30%, rgba(138, 255, 243, 0.14), transparent 60%),
    radial-gradient(720px 420px at 75% 30%, rgba(255, 61, 242, 0.12), transparent 60%),
    rgba(0, 0, 0, 0.28);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}

.details__flavor {
  margin-top: 0.9rem;
  color: rgba(243, 247, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.25;
  white-space: pre-line;
}

.details__panel {
  padding: 1.15rem 1.15rem 1.1rem;
  transform: translateX(12px);
  opacity: 0.94;
}
body[data-step="details"] .details__panel {
  animation: slideIn 520ms cubic-bezier(0.18, 0.9, 0.2, 1) 50ms both;
}
@keyframes slideIn {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.stats {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.stat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.6rem 0.6rem 0.65rem;
  background: rgba(0, 0, 0, 0.22);
}

.stat__label {
  font-family: var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(243, 247, 255, 0.74);
}
.stat__note {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: rgba(243, 247, 255, 0.66);
  justify-self: end;
}

.stat__bar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.3rem;
  margin-top: 0.1rem;
}
.stat__bar span {
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
}

.stat[data-value="1"] .stat__bar span:nth-child(-n + 1),
.stat[data-value="2"] .stat__bar span:nth-child(-n + 2),
.stat[data-value="3"] .stat__bar span:nth-child(-n + 3),
.stat[data-value="4"] .stat__bar span:nth-child(-n + 4),
.stat[data-value="5"] .stat__bar span:nth-child(-n + 5) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(138, 255, 243, 0.8), rgba(255, 61, 242, 0.6));
  box-shadow: 0 0 14px rgba(138, 255, 243, 0.14);
}

.bullets {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
  color: rgba(243, 247, 255, 0.74);
  line-height: 1.25;
}
.bullets li {
  margin: 0.25rem 0;
}

.warn {
  margin-top: 0.55rem;
  color: rgba(243, 247, 255, 0.72);
  line-height: 1.22;
}

.final__header {
  text-align: center;
  margin-bottom: 1.2rem;
}
.final__title {
  font-family: var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 2.05rem;
}
.final__sub {
  margin-top: 0.25rem;
  color: rgba(243, 247, 255, 0.72);
}

.final__card {
  width: min(640px, 92vw);
  margin: 0 auto 1rem;
}

.final__code {
  width: min(640px, 92vw);
  margin: 0 auto;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 0.25rem;
  text-align: center;
}
.final__codeLabel {
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(243, 247, 255, 0.58);
}
.final__codeValue {
  font-family: var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 247, 255, 0.92);
}

.final__footer {
  margin-top: 0.6rem;
  text-align: center;
}

#fxLayer {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.burst {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px 360px at var(--x) var(--y),
    rgba(138, 255, 243, 0.28),
    rgba(255, 61, 242, 0.18) 35%,
    transparent 70%
  );
  opacity: 0;
  animation: burst 720ms ease-out both;
}
@keyframes burst {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

.card-clone {
  position: fixed;
  z-index: 5;
  pointer-events: none;
  transition: transform 650ms cubic-bezier(0.18, 0.9, 0.2, 1),
    opacity 650ms cubic-bezier(0.18, 0.9, 0.2, 1);
  transform-origin: center;
  filter: drop-shadow(0 45px 140px rgba(0, 0, 0, 0.65));
}

@media (prefers-reduced-motion: reduce) {
  .fx--scanlines,
  .imgScan,
  .glitch::before,
  .glitch::after,
  .terminal__cursor {
    animation: none !important;
  }

  .screen {
    transition: none;
  }

  .card:hover .card__frame {
    transform: none;
  }
}
