:root {
  --bg: #030508;
  --bg-elev: rgba(10, 14, 20, 0.72);
  --text: #eef2f6;
  --muted: #8b95a5;
  --dim: #556070;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(90, 214, 232, 0.22);
  --cyan: #5ad6e8;
  --violet: #8b7cf0;
  --font: "Syne", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(20px, 4vw, 48px);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(90, 214, 232, 0.28);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: #0c1525;
  color: var(--cyan);
  border: 1px solid rgba(90, 214, 232, 0.35);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 1px solid rgba(90, 214, 232, 0.7);
  outline-offset: 3px;
}

.topnav a.is-active {
  color: var(--cyan);
}

/* ── Boot loader ── */
.nexus-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #030508;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.nexus-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nexus-loader-inner {
  text-align: center;
  display: grid;
  gap: 28px;
  justify-items: center;
  width: min(520px, 86vw);
}

.nexus-loader-press {
  width: 100%;
  max-width: 480px;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 0 36px rgba(0, 229, 255, 0.22));
  animation: loader-pulse 1.6s ease-in-out infinite;
}

.nexus-loader-bar {
  width: min(220px, 55vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.nexus-loader-bar i {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  animation: loader-bar 1.1s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: 0.88; }
  50% { transform: scale(1.03); opacity: 1; }
}

@keyframes loader-bar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.download-seal.is-near {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 36px rgba(90, 214, 232, 0.22);
  border-color: rgba(90, 214, 232, 0.55);
}

html {
  --scroll-heat: 0;
}

/* ── Canvas ── */
#nexus-canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #030508;
}

#nexus-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}

html.nexus-scene-ready #nexus-canvas {
  opacity: 1;
}

.canvas-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 50% at 60% 44%, transparent 5%, rgba(3, 5, 8, 0.25) 45%, rgba(3, 5, 8, 0.85) 100%),
    linear-gradient(90deg, rgba(3, 5, 8, 0.9) 0%, rgba(3, 5, 8, 0.4) 34%, rgba(3, 5, 8, 0.15) 58%, rgba(3, 5, 8, 0.65) 100%),
    linear-gradient(180deg, rgba(3, 5, 8, 0.4) 0%, transparent 30%, transparent 65%, rgba(3, 5, 8, 0.7) 100%);
  pointer-events: none;
}

.canvas-grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Big Wins ticker ── */
.big-wins-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 34px;
  padding: 0 var(--pad);
  background: linear-gradient(90deg, rgba(8, 18, 28, 0.95), rgba(18, 28, 22, 0.9), rgba(8, 18, 28, 0.95));
  border-bottom: 1px solid rgba(255, 230, 109, 0.22);
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 21;
}

.big-wins-banner[hidden] {
  display: none !important;
}

.big-wins-label {
  flex: 0 0 auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #ffe66d;
  text-transform: uppercase;
}

.big-wins-track {
  flex: 1 1 auto;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.big-wins-row {
  display: inline-flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: big-wins-marquee 42s linear infinite;
  will-change: transform;
}

.big-wins-item {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: rgba(232, 240, 248, 0.92);
  letter-spacing: 0.04em;
}

.big-wins-item::before {
  content: '◆';
  margin-right: 0.65rem;
  color: rgba(94, 234, 212, 0.75);
  font-size: 9px;
}

@keyframes big-wins-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .big-wins-row { animation: none; }
}

.top-logout {
  display: inline-flex;
  margin: 0;
}

.top-logout .btn {
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ── Topbar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px var(--pad);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-shell:has(.big-wins-banner:not([hidden])) .topbar {
  top: 34px;
}

.topbar.is-scrolled {
  background: rgba(3, 5, 8, 0.72);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 28px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.35));
}

.brand-word {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
}

/* ── Nexus watermarks ── */
.nexus-mark {
  pointer-events: none;
  user-select: none;
}

.nexus-mark-logo,
.nexus-mark-letterpress {
  display: block;
  height: auto;
}

.nexus-mark--floating {
  position: fixed;
  right: clamp(12px, 3vw, 36px);
  bottom: clamp(12px, 3vw, 28px);
  z-index: 2;
  opacity: 0.2;
  mix-blend-mode: screen;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.nexus-mark--floating .nexus-mark-logo {
  width: 48px;
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.35));
}

.nexus-mark--floating .nexus-mark-letterpress {
  width: min(220px, 36vw);
  opacity: 0.95;
}

.nexus-mark--section {
  position: absolute;
  right: 0;
  top: 0;
  opacity: 0.08;
  mix-blend-mode: screen;
}

.nexus-mark--section .nexus-mark-logo {
  display: none;
}

.nexus-mark--section .nexus-mark-letterpress {
  width: min(220px, 40vw);
}

.section {
  position: relative;
}

.nexus-mark--pillars {
  top: 24px;
}

.nexus-mark--join {
  top: 20px;
  opacity: 0.1;
}

.nexus-mark--footer {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.9;
}

.nexus-mark--footer .nexus-mark-logo {
  width: 32px;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3));
}

.nexus-mark--footer .nexus-mark-letterpress {
  width: 160px;
}

.footer-brand-block {
  display: grid;
  gap: 8px;
}

.hero-letterpress {
  width: min(400px, 86vw);
  margin-bottom: 22px;
  filter: drop-shadow(0 0 28px rgba(0, 229, 255, 0.22));
  opacity: 0.95;
}

.hero-letterpress img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 700px) {
  .nexus-mark--floating .nexus-mark-letterpress {
    display: none;
  }
  .hero-letterpress {
    width: min(260px, 85vw);
  }
}

.topnav {
  display: none;
  gap: 28px;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s ease;
}

.topnav a:hover {
  color: var(--text);
}

.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.profile-menu {
  position: relative;
  flex-shrink: 0;
  margin-left: 4px;
}

.profile-orb {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  color: var(--cyan);
  background: rgba(8, 12, 18, 0.85);
  border: 1px solid rgba(90, 214, 232, 0.35);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.12), 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.profile-orb[aria-expanded="true"] {
  border-color: rgba(255, 230, 109, 0.55);
}

.profile-orb-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.profile-orb--photo .profile-orb-mark {
  display: none;
}

.profile-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 188px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(8, 12, 18, 0.96);
  border: 1px solid rgba(90, 214, 232, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  z-index: 40;
  display: grid;
  gap: 2px;
}

.profile-menu-panel[hidden] {
  display: none !important;
}

.profile-menu-label {
  margin: 0;
  padding: 8px 10px 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(232, 240, 248, 0.7);
  border-bottom: 1px solid rgba(90, 214, 232, 0.12);
  margin-bottom: 4px;
}

.profile-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(238, 242, 246, 0.92);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.profile-menu-item:hover,
.profile-menu-item:focus-visible {
  background: rgba(90, 214, 232, 0.12);
  outline: none;
}

.profile-menu-item--danger {
  color: #ffb4a8;
}

.profile-menu form {
  margin: 0;
}

@media (min-width: 860px) {
  .topnav { display: flex; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-primary {
  color: #f7f8fb;
  background: linear-gradient(105deg, #5b4fd1 0%, #3d6fd8 55%, #2a8fb8 100%);
  border-color: rgba(255, 255, 255, 0.06);
}

.btn-ghost {
  color: rgba(238, 242, 246, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

.btn-lg {
  padding: 14px 22px;
}

/* ── Download seal (disabled / coming soon) ── */
.download-seal {
  position: relative;
  overflow: hidden;
  cursor: not-allowed;
  gap: 10px;
  color: rgba(238, 242, 246, 0.88);
  border: 1px solid rgba(90, 214, 232, 0.35);
  background:
    linear-gradient(135deg, rgba(90, 214, 232, 0.08), rgba(139, 124, 240, 0.1)),
    rgba(8, 12, 18, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 24px rgba(90, 214, 232, 0.08);
  opacity: 1;
  transform: none;
}

.download-seal:hover {
  opacity: 1;
  transform: none;
}

.download-seal:disabled {
  pointer-events: none;
}

.download-seal-glow {
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(90, 214, 232, 0.12) 48%,
    rgba(167, 139, 250, 0.1) 52%,
    transparent 70%
  );
  animation: seal-sheen 4.5s ease-in-out infinite;
}

@keyframes seal-sheen {
  0%, 100% { transform: translateX(-30%); opacity: 0.35; }
  50% { transform: translateX(30%); opacity: 0.7; }
}

.download-seal-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  color: var(--cyan);
  opacity: 0.9;
}

.download-seal-copy {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  gap: 2px;
}

.download-seal-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.download-seal-soon {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(90, 214, 232, 0.85);
}

.download-seal--lg {
  padding: 12px 20px 12px 18px;
  min-height: 52px;
}

.download-seal--lg .download-seal-label {
  font-size: 12px;
}

.download-seal--lg .download-seal-soon {
  font-size: 9px;
}

.download-hint {
  margin-top: 14px;
  max-width: 28rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--dim);
}

@media (max-width: 640px) {
  .top-actions .download-seal .download-seal-soon {
    display: none;
  }
}

/* ── Hero ── */
.hero-band {
  position: relative;
  min-height: calc(100vh - 70px);
}

.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  padding: clamp(40px, 8vh, 80px) var(--pad) 72px;
  max-width: var(--max);
}

.hero--compact {
  min-height: 0;
  padding-top: clamp(32px, 6vh, 56px);
  padding-bottom: 40px;
}

.hero-copy {
  max-width: 34rem;
}


/* Hero NFT mint — Ops of Nexus wave collage (same slot as former Twitch desk) */
.hero-band > .hero-nft {
  position: absolute;
  top: clamp(88px, 12vh, 120px);
  right: max(var(--pad), 3.5vw);
  width: max(380px, min(560px, 40vw));
  z-index: 8;
  pointer-events: auto;
}

.hero-nft-frame {
  padding: 12px 12px 14px;
  background: rgba(8, 12, 18, 0.96);
  border-color: rgba(90, 214, 232, 0.28);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.hero-nft-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.hero-nft-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hero-nft-badge {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  color: #041016;
  background: linear-gradient(105deg, #5ad6e8, #a78bfa);
  border: 1px solid transparent;
}

.hero-nft-chain {
  font-size: 0.78rem;
  color: #9ed9e8;
  font-weight: 600;
  white-space: nowrap;
}

.hero-nft-stage {
  position: relative;
  display: block;
  aspect-ratio: 5 / 4;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(90, 214, 232, 0.22);
  background: #0a0e14;
  text-decoration: none;
  color: inherit;
}

.hero-nft-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  background: #05080d;
}

.hero-nft-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
}

.hero-nft-stage:hover .hero-nft-mosaic img {
  filter: brightness(1.06);
}

.hero-nft-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 22px 14px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 8, 14, 0.5) 24%, rgba(4, 8, 14, 0.94) 100%);
}

.hero-nft-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 238, 245, 0.72);
}

.hero-nft-date {
  margin: 0;
  font-family: var(--display, Syne, sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #f2f6fb;
}

.hero-nft-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin: 2px 0 4px;
}

.hero-nft-unit {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 8px 4px 6px;
  border-radius: 8px;
  background: rgba(8, 14, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-nft-unit span {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #e8f7ff;
  letter-spacing: 0.04em;
}

.hero-nft-unit small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 238, 245, 0.55);
}

.hero-nft-cta {
  margin-top: 2px;
}

@media (max-width: 1100px) {
  .hero-band > .hero-nft {
    width: min(480px, 42vw);
  }
}

@media (max-width: 900px) {
  .hero-band > .hero-nft {
    position: relative;
    top: auto;
    right: auto;
    width: min(720px, calc(100% - var(--pad) * 2));
    margin: 0 auto 28px;
    order: 2;
  }
}

/* Hero Twitch — locked to hero band; scrolls away with the page.
   Twitch requires min ~400×300 and an unobscured player or it pauses ~seconds in. */
.hero-twitch {
  position: absolute;
  top: clamp(88px, 12vh, 120px);
  right: max(var(--pad), 3.5vw);
  width: max(400px, min(720px, 46vw));
  z-index: 8;
  pointer-events: auto;
}

.hero-twitch-frame {
  padding: 12px 12px 14px;
  background: rgba(8, 12, 18, 0.96);
  /* no backdrop-filter — Twitch treats filtered/obscured parents as blocked */
  border-color: rgba(145, 70, 255, 0.32);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.hero-twitch-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.hero-twitch-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hero-twitch-badge {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.hero-twitch-badge.is-live {
  color: #041016;
  background: linear-gradient(105deg, #5ad6e8, #a78bfa);
  border-color: transparent;
}

.hero-twitch-badge.is-vod {
  color: #f3e8ff;
  background: rgba(145, 70, 255, 0.22);
  border-color: rgba(145, 70, 255, 0.45);
}

.hero-twitch-channel {
  font-size: 0.78rem;
  color: #c4b5fd;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-twitch-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #0a0e14;
  border: 1px solid rgba(145, 70, 255, 0.22);
}

.hero-twitch-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0a0e14;
}

.hero-twitch-offline {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(145, 70, 255, 0.12), transparent 70%),
    #0a0e14;
}

.hero-twitch-offline[hidden] {
  display: none;
}

.hero-twitch-offline-title {
  margin: 0;
  font-family: var(--display, Syne, sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #e8eef5;
}

.hero-twitch-offline-copy {
  margin: 0;
  max-width: 28ch;
  justify-self: center;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(232, 238, 245, 0.62);
}

/* Clean /watch page */
.page-watch {
  min-height: 100vh;
  background: #030508;
  color: #e8eef5;
}

.watch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.watch-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px var(--pad) 48px;
}

.watch-panel {
  display: grid;
  gap: 14px;
}

.watch-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.watch-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  background: #0a0e14;
  border: 1px solid rgba(145, 70, 255, 0.28);
  border-radius: 12px;
  overflow: hidden;
}

.watch-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.watch-stage--empty {
  display: grid;
  place-content: center;
  gap: 14px;
  text-align: center;
  min-height: 360px;
}

.watch-note {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c4b5fd;
}

/* Nested hero embed of /watch — fill the stage, no chrome */
.page-watch--embed {
  background: #0a0e14;
  min-height: 100%;
  overflow: hidden;
}

.page-watch--embed .watch-main--embed {
  max-width: none;
  margin: 0;
  padding: 0;
  height: 100vh;
  height: 100dvh;
}

.page-watch--embed .watch-panel--embed {
  height: 100%;
  gap: 0;
}

.page-watch--embed .watch-stage--embed {
  min-height: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}

.page-watch--embed .watch-embed-mount,
.page-watch--embed .watch-embed-mount iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1100px) {
  .hero-twitch {
    width: min(560px, 42vw);
  }
}

@media (max-width: 900px) {
  .hero-twitch {
    position: relative;
    top: auto;
    right: auto;
    width: min(720px, calc(100% - var(--pad) * 2));
    margin: 0 auto 28px;
  }

  .hero-band {
    display: flex;
    flex-direction: column;
  }

  .hero {
    min-height: 0;
    order: 1;
  }

  .hero-twitch {
    order: 2;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(90, 214, 232, 0.4);
  animation: pulse 2.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(90, 214, 232, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(90, 214, 232, 0); }
  100% { box-shadow: 0 0 0 0 rgba(90, 214, 232, 0); }
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  color: #f4f6f8;
  text-shadow: 0 0 80px rgba(90, 214, 232, 0.18);
}

.hero h1 .line {
  display: block;
}

.hero h1 .accent {
  background: linear-gradient(105deg, #e8f7ff 0%, #5ad6e8 45%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead,
.section-lead {
  max-width: 32rem;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.7;
  color: var(--muted);
  font-weight: 450;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 48px;
  max-width: 400px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}

.hero-stats dd {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(238, 242, 246, 0.92);
}

/* ── Marquee ── */
.marquee {
  border-block: 1px solid var(--line);
  background: rgba(3, 5, 8, 0.45);
  backdrop-filter: blur(8px);
  overflow: hidden;
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.marquee-track span:nth-child(odd) {
  color: var(--muted);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Sections ── */
.section {
  padding: clamp(72px, 12vh, 120px) var(--pad);
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
  width: 100%;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 40px;
}

.section h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  font-weight: 700;
  color: #f2f4f7;
}

.panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 26px;
  backdrop-filter: blur(18px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.panel:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 900px) {
  .pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar h3 {
  font-size: 1.15rem;
  margin: 12px 0 12px;
  font-weight: 600;
}

.pillar p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.pillar-n {
  font-family: var(--mono);
  color: var(--dim);
  letter-spacing: 0.18em;
  font-size: 11px;
}

/* ── Markets ── */
.markets-layout {
  display: grid;
  gap: 32px;
}

@media (min-width: 960px) {
  .markets-layout {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: 48px;
  }

  .markets-layout .section-head {
    margin-bottom: 0;
    position: sticky;
    top: 100px;
  }
}

.market-panels {
  display: grid;
  gap: 12px;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.micro {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.micro.cyan { color: var(--cyan); }
.micro.muted-label { color: var(--dim); }

.badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--cyan);
}

.badge-mute {
  border-color: var(--line);
  color: var(--dim);
}

.market-panels ul {
  list-style: none;
}

.market-panels li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.08rem;
  font-weight: 550;
  color: rgba(238, 242, 246, 0.92);
}

.market-future li {
  color: var(--muted);
  font-weight: 500;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(90, 214, 232, 0.45);
  flex-shrink: 0;
}

.dot.dim {
  background: var(--dim);
  box-shadow: none;
}

.fine {
  color: var(--dim);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 16px;
}

/* ── Compare ── */
.compare {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.compare-inner {
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.compare-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 800px) {
  .compare-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-bad {
  opacity: 0.72;
}

.compare-good {
  border-color: var(--line-strong);
  background:
    linear-gradient(145deg, rgba(90, 214, 232, 0.06), rgba(139, 124, 240, 0.05)),
    var(--bg-elev);
}

.compare-grid ul {
  list-style: none;
  margin-top: 14px;
}

.compare-grid li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
}

.compare-good li {
  color: rgba(238, 242, 246, 0.9);
}

/* ── Heat band ── */
.heat-band {
  padding-block: 28px;
  max-width: none;
}

.heat-band-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 40px);
  font-family: var(--mono);
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: rgba(90, 214, 232, 0.55);
  text-transform: uppercase;
  padding: 18px var(--pad);
  border-block: 1px solid rgba(90, 214, 232, 0.12);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(90, 214, 232, calc(0.03 + var(--scroll-heat) * 0.08)),
    rgba(167, 139, 250, calc(0.03 + var(--scroll-heat) * 0.06)),
    transparent
  );
}

.heat-rule {
  flex: 0 0 auto;
  width: clamp(40px, 8vw, 90px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90, 214, 232, 0.55), transparent);
}

/* ── Join ── */
.join-panel {
  display: grid;
  gap: 28px;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(120deg, rgba(90, 214, 232, 0.05), rgba(139, 124, 240, 0.06)),
    var(--bg-elev);
  padding: clamp(28px, 4vw, 40px);
}

@media (min-width: 800px) {
  .join-panel {
    grid-template-columns: 1.2fr auto;
    align-items: end;
  }
}

.join-panel .section-lead {
  margin-top: 8px;
}

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  padding: 40px var(--pad) 48px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.footer-brand {
  font-size: 11px;
  letter-spacing: 0.36em;
  color: rgba(238, 242, 246, 0.85);
  font-weight: 600;
}

.footer-tag {
  display: block;
  margin-top: 6px;
  color: var(--dim);
  font-size: 11px;
  font-family: var(--mono);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  color: #3a4250;
  font-size: 10px;
  font-family: var(--mono);
}

.scorptech-credit {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.scorptech-credit a {
  color: #3a4250;
  text-decoration: none;
  transition: color 0.2s ease;
}

.scorptech-credit a:hover {
  color: var(--cyan);
}

/* Slim credit on live arcade / NP vault (full footer hidden) */
.floor-credit {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 40;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding: 0 var(--pad);
}

.floor-credit .scorptech-credit {
  pointer-events: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(3, 5, 8, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.page-arcade .floor-credit,
.page-store .floor-credit {
  bottom: 8px;
  z-index: 35;
}

/* ── Reveal ── */
.marquee-reverse {
  border-top: none;
  opacity: 0.7;
}

.marquee-reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 36s;
  color: rgba(90, 214, 232, 0.35);
}

.marquee-reverse .marquee-track span:nth-child(odd) {
  color: rgba(167, 139, 250, 0.45);
}

.signal-rail {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 18px var(--pad) 0;
}

.signal-rail span {
  width: 8px;
  height: 8px;
  rotate: 45deg;
  border: 1px solid rgba(90, 214, 232, 0.35);
  background: rgba(90, 214, 232, 0.08);
  animation: signal-blink 2.4s ease-in-out infinite;
}

.signal-rail span:nth-child(2) { animation-delay: 0.2s; }
.signal-rail span:nth-child(3) { animation-delay: 0.4s; border-color: rgba(167, 139, 250, 0.4); }
.signal-rail span:nth-child(4) { animation-delay: 0.6s; }
.signal-rail span:nth-child(5) { animation-delay: 0.8s; }

@keyframes signal-blink {
  0%, 100% { opacity: 0.25; box-shadow: none; }
  50% { opacity: 1; box-shadow: 0 0 14px rgba(90, 214, 232, 0.45); }
}

.hero-letterpress {
  transition: transform 0.15s ease-out;
}

.hero-copy {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.compare-good {
  position: relative;
  overflow: hidden;
}

.compare-good::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(90, 214, 232, 0.08) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: panel-sheen 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes panel-sheen {
  0%, 40% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  filter: blur(6px);
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse,
  .marquee-track,
  .signal-rail span,
  .compare-good::before,
  .flip-coin.is-flip,
  .slot-reel.is-spin { animation: none; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* ── Arcade floor ── */
.nav-arcade-btn {
  border-color: rgba(90, 214, 232, 0.35) !important;
  color: var(--cyan) !important;
}

.page-arcade .canvas-vignette {
  background:
    radial-gradient(ellipse 85% 75% at 50% 48%, transparent 0%, rgba(8, 12, 18, 0.08) 55%, rgba(8, 12, 18, 0.42) 100%);
}

.arcade-hero .accent {
  background: linear-gradient(120deg, #5ad6e8 0%, #a78bfa 55%, #eef2f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.loop-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .loop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.loop-card h3 {
  font-size: 1.35rem;
  margin: 8px 0 10px;
}

.loop-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.game-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.game-card {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(90, 214, 232, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.game-card h3 {
  font-size: 1.4rem;
  margin: 12px 0 8px;
}

.game-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.game-card.is-soon {
  opacity: 0.72;
  cursor: default;
}

.play-result {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  min-height: 1.5em;
}

.play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.78rem;
}

/* Machine overlay — rolls up in front of you */
body.machine-open {
  overflow: hidden;
}

.machine-overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: var(--pad);
}

.machine-overlay[hidden] {
  display: none !important;
}

.machine-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 8, 0.82);
  backdrop-filter: blur(10px);
}

.machine-legal {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: clamp(22px, 4vw, 36px);
}

.machine-legal h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 8px 0 12px;
}

.legal-lead {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  max-height: 38vh;
  overflow: auto;
}

.legal-list li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.7;
}

.legal-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
  cursor: pointer;
}

.legal-check input {
  margin-top: 4px;
  accent-color: var(--cyan);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.machine-stage {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
}

.machine-stage[hidden] {
  display: none !important;
}

.machine-chrome {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(14px, 2.5vw, 22px);
  border-radius: 18px;
  border: 1px solid rgba(90, 214, 232, 0.22);
  background:
    linear-gradient(180deg, rgba(12, 18, 28, 0.94), rgba(5, 8, 14, 0.96));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(90, 214, 232, 0.08);
  animation: machine-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes machine-rise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.machine-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.machine-topbar h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin-top: 2px;
}

.machine-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.machine-viewport {
  position: relative;
  width: 100%;
  height: min(52vh, 460px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(90, 214, 232, 0.16);
  background: #030508;
}

.machine-viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.machine-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vault-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .vault-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.vault-card h3 {
  font-size: 1.05rem;
  margin: 10px 0 8px;
  line-height: 1.35;
}

.vault-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.vault-fine {
  margin-top: 18px;
  color: var(--dim);
  font-size: 0.82rem;
}

.nexus-mark--arcade {
  opacity: 0.07;
}

@media (prefers-reduced-motion: reduce) {
  .machine-chrome {
    animation: none;
  }
}

/* Immersive arcade + store */
.site-shell--immersive,
.page-arcade .site-shell--arcade {
  min-height: 100vh;
  pointer-events: none;
}

.site-shell--immersive .big-wins-banner,
.site-shell--immersive .topbar,
.site-shell--immersive .profile-menu,
.site-shell--immersive main,
.page-arcade .site-shell--arcade .topbar,
.page-arcade .site-shell--arcade main {
  pointer-events: auto;
}

.page-arcade .site-shell--immersive main,
.page-store .site-shell--immersive main {
  position: relative;
  z-index: 5;
  min-height: calc(100vh - 72px);
}

.page-arcade .canvas-vignette {
  background:
    radial-gradient(ellipse 88% 78% at 50% 46%, transparent 0%, rgba(8, 12, 18, 0.06) 52%, rgba(8, 12, 18, 0.4) 100%);
}
.page-store .canvas-vignette {
  background:
    radial-gradient(ellipse 80% 70% at 55% 42%, transparent 0%, rgba(3, 5, 8, 0.2) 50%, rgba(3, 5, 8, 0.72) 100%),
    linear-gradient(90deg, rgba(3, 5, 8, 0.45) 0%, transparent 38%);
}

.page-arcade.arcade-entered .nexus-mark--floating {
  display: none;
}

.arcade-hud-shell {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) 28px;
  pointer-events: none;
}

.arcade-hint,
.arcade-dock,
.arcade-leaderboard,
.arcade-rail,
.arcade-turn {
  pointer-events: auto;
}

.arcade-hint {
  max-width: 440px;
  margin-bottom: auto;
  padding-top: 8vh;
}

.arcade-hint h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 10px 0 12px;
  letter-spacing: -0.03em;
}

.arcade-hint p {
  color: var(--muted);
  line-height: 1.5;
}

.arcade-dock {
  position: relative;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 16px 18px;
  background: rgba(8, 12, 18, 0.88);
  backdrop-filter: blur(14px);
  border-color: rgba(90, 214, 232, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.arcade-dock-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.arcade-dock-top h2 {
  font-size: 1.35rem;
}

.arcade-dock--slim {
  width: min(480px, calc(100% - 2 * var(--pad)));
  max-width: 100%;
  box-sizing: border-box;
  padding: 6px 10px 10px;
  overflow: visible;
}

.arcade-dock--slim .arcade-dock-top {
  margin-bottom: 0;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: wrap;
}

.arcade-dock--slim .arcade-dock-titleblock {
  flex: 1 1 220px;
  min-width: 0;
}

.arcade-dock-kicker {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  line-height: 1.2;
}

.arcade-dock--slim .arcade-dock-titleblock .micro {
  margin: 0;
}

.arcade-dock-title-sep {
  opacity: 0.45;
  font-size: 0.75rem;
}

.arcade-dock-game,
.arcade-dock--slim .arcade-dock-top h2,
#dock-title {
  font-size: 0.78rem;
  margin: 0;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(232, 238, 246, 0.78);
}

.arcade-dock--slim .play-result {
  margin: 4px 0 0;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-weight: 750;
  max-width: 100%;
  color: var(--text);
  white-space: normal;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.arcade-dock--slim .play-result.is-win {
  color: #ffe66d;
}

.arcade-dock--slim .play-result.is-lose {
  color: #fca5a5;
}

.arcade-dock--slim .arcade-dock-stats .badge {
  font-size: 0.78rem;
  padding: 6px 10px;
}

.arcade-dock--slim .arcade-dock-bet {
  font-size: 0.95rem !important;
  padding: 8px 12px !important;
  letter-spacing: 0.02em;
}

.arcade-toast {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  z-index: 6;
  min-width: min(280px, 70vw);
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
  font: 750 1rem/1.3 Syne, Segoe UI, sans-serif;
  letter-spacing: 0.02em;
  pointer-events: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  animation: arcade-toast-in 0.28s ease-out;
}

.arcade-toast[hidden] {
  display: none !important;
}

.arcade-toast.is-win {
  color: #102018;
  background: linear-gradient(135deg, #ffe66d, #9ef0c4);
  border: 1px solid rgba(255, 230, 109, 0.65);
}

.arcade-toast.is-lose {
  color: #fff5f5;
  background: linear-gradient(135deg, #7f1d1d, #1f1218);
  border: 1px solid rgba(252, 165, 165, 0.45);
}

@keyframes arcade-toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.arcade-dock--slim #dock-controls:empty,
.arcade-dock--panel-play #dock-controls:empty {
  display: none;
  margin: 0;
  padding: 0;
  min-height: 0;
}

/* Keep play dock one height — game actions live on the shelf */
.arcade-dock--panel-play #dock-controls:not(:empty) {
  margin-top: 6px;
}

.arcade-dock-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  flex: 0 1 auto;
}

.arcade-dock-bet {
  color: #ffe66d !important;
  border-color: rgba(255, 230, 109, 0.45) !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.arcade-dock-bet[hidden] {
  display: none !important;
}

.arcade-dock-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
}

.arcade-dock--slim .arcade-dock-nav .btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 0.72rem;
}

.arcade-dock-help {
  position: absolute;
  left: 8px;
  bottom: 6px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(90, 214, 232, 0.45);
  background: rgba(10, 16, 24, 0.92);
  color: #5ad6e8;
  font: 700 0.85rem Syne, Segoe UI, sans-serif;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  z-index: 3;
}

.arcade-dock-help:hover,
.arcade-dock-help[aria-expanded='true'] {
  border-color: rgba(255, 230, 109, 0.55);
  color: #ffe66d;
  background: rgba(18, 24, 34, 0.96);
}

.arcade-dock-help-tip {
  position: absolute;
  left: 8px;
  bottom: 36px;
  width: min(280px, calc(100% - 16px));
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(90, 214, 232, 0.28);
  background: rgba(6, 10, 16, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 4;
}

.arcade-dock-help-tip[hidden] {
  display: none !important;
}

.arcade-dock-help-title {
  margin: 0 0 4px;
  font: 700 0.72rem Syne, Segoe UI, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5ad6e8;
}

.arcade-dock-help-body {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Twitch rail — left of the open machine */
.arcade-twitch {
  position: fixed;
  left: max(var(--pad), 1.2vw);
  top: 50%;
  transform: translateY(-50%);
  z-index: 22;
  width: min(480px, 38vw);
  pointer-events: auto;
  animation: arcade-twitch-in 0.32s ease-out;
}

.arcade-twitch[hidden] {
  display: none !important;
}

@keyframes arcade-twitch-in {
  from {
    opacity: 0;
    transform: translate(-12px, -50%);
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

.arcade-twitch-frame {
  padding: 10px 10px 12px;
  background: rgba(8, 12, 18, 0.92);
  border-color: rgba(145, 70, 255, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.arcade-twitch-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 2px;
}

.arcade-twitch-head-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.arcade-twitch-min {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(196, 181, 253, 0.35);
  background: rgba(12, 16, 28, 0.9);
  color: #e9e0ff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.arcade-twitch-min:hover {
  border-color: rgba(196, 181, 253, 0.7);
  background: rgba(88, 101, 242, 0.25);
}

.arcade-twitch.is-minimized {
  left: max(var(--pad), 1rem);
  right: auto;
  top: auto;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  width: auto;
  transform: none;
  animation: none;
}

.arcade-twitch.is-minimized .arcade-twitch-frame {
  display: none !important;
}

.arcade-twitch-bubble {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(145, 70, 255, 0.45);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.95), rgba(20, 12, 40, 0.96));
  color: #f4f0ff;
  font: 700 0.85rem/1 "IBM Plex Sans", system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  pointer-events: auto;
}

.arcade-twitch.is-minimized .arcade-twitch-bubble {
  display: inline-flex;
}

.arcade-twitch-bubble[hidden] {
  display: none !important;
}

.arcade-twitch-bubble-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  animation: arcade-twitch-pulse 1.6s ease-out infinite;
}

.arcade-twitch[data-mode="offline"] .arcade-twitch-bubble-dot {
  background: #94a3b8;
  animation: none;
  box-shadow: none;
}

.arcade-twitch[data-mode="offline"] .arcade-twitch-bubble-text::before {
  content: none;
}

@keyframes arcade-twitch-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Short / narrow desktops: keep NP Vault in the dock, rail tucked top-right */
@media (max-height: 820px), (max-width: 1280px) {
  body.arcade-playing .arcade-rail {
    top: calc(72px + env(safe-area-inset-top, 0px));
    bottom: auto;
    right: var(--pad);
    z-index: 40;
  }

  .arcade-twitch:not(.is-minimized) {
    width: min(360px, 32vw);
    top: calc(76px + env(safe-area-inset-top, 0px));
    transform: none;
  }
}


.arcade-twitch-channel {
  font-size: 0.78rem;
  color: #c4b5fd;
  font-weight: 600;
}

.arcade-twitch-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0a0e14;
  border: 1px solid rgba(145, 70, 255, 0.22);
}

.arcade-twitch-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0a0e14;
}

.arcade-twitch-embed[hidden] {
  display: none !important;
}

.arcade-twitch-offline .btn {
  margin-top: 6px;
  justify-self: center;
}

.arcade-twitch-offline {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 18px 16px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(145, 70, 255, 0.22), transparent 70%),
    linear-gradient(160deg, #121826 0%, #080b12 100%);
}

.arcade-twitch-offline[hidden] {
  display: none !important;
}

.arcade-twitch-offline-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a78bfa;
}

.arcade-twitch-offline h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
  color: #f2f6fb;
}

.arcade-twitch-offline p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #9aa3b2;
}

@media (max-width: 1100px) {
  .arcade-twitch {
    width: min(400px, 34vw);
  }
}

.arcade-twitch-mobile-note {
  display: none;
}

@media (max-width: 820px) {
  /* No Twitch desk on phones — not enough room */
  .arcade-twitch,
  body.arcade-playing .arcade-twitch {
    display: none !important;
  }

  .arcade-twitch-mobile-note {
    display: block;
    margin-top: 8px;
  }

  .arcade-notes {
    z-index: 60;
  }

  .arcade-notes-panel {
    top: calc(12px + env(safe-area-inset-top, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    right: max(8px, env(safe-area-inset-right, 0px));
    left: max(8px, env(safe-area-inset-left, 0px));
    width: auto;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }

  .arcade-notes-top {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(8, 12, 18, 0.98);
    padding-bottom: 6px;
    margin: -4px -4px 0;
    padding: 8px 4px 10px;
  }

  #arcade-notes-close {
    min-width: 48px;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  /* Floor browse: vault/balance sit above the turn strip — clear of the cabinet face */
  .arcade-rail {
    left: 50%;
    right: auto;
    top: auto;
    bottom: calc(5.65rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 41;
    gap: 8px;
  }

  .arcade-rail-vault-row .btn {
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  
/* Shelf owns balance + bet — keep dock to nav only (PC was covering the buttons) */
body.arcade-playing .arcade-dock--slim .arcade-dock-stats {
  display: none !important;
}

/* Playing: dock owns vault/balance — never float a second pair over the screen */
  body.arcade-playing .arcade-rail {
    display: none !important;
  }
}

/* Tester notes — slides in from the right */
.arcade-notes {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.arcade-notes[hidden] {
  display: none !important;
}

.arcade-notes-panel {
  position: absolute;
  top: 88px;
  right: max(var(--pad), 1.5vw);
  bottom: 28px;
  width: min(380px, calc(100vw - 2 * var(--pad)));
  padding: 16px 18px;
  background: rgba(8, 12, 18, 0.94);
  backdrop-filter: blur(16px);
  border-color: rgba(90, 214, 232, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: arcade-notes-in 0.28s ease-out;
}

@keyframes arcade-notes-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.arcade-notes-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.arcade-notes-top h2 {
  font-size: 1.35rem;
  margin: 2px 0 0;
}

.arcade-notes-meta,
.arcade-notes-user {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.arcade-notes-user {
  color: #5ad6e8;
}

.arcade-notes-label {
  font-size: 0.8rem;
  color: #9aa3b2;
  margin-top: 6px;
}

.arcade-notes-body {
  flex: 1;
  min-height: 160px;
  resize: vertical;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(90, 214, 232, 0.22);
  background: rgba(3, 6, 10, 0.85);
  color: #e8eef6;
  font: 500 0.95rem/1.45 "IBM Plex Mono", Consolas, monospace;
}

.arcade-notes-body:focus {
  outline: none;
  border-color: rgba(90, 214, 232, 0.55);
}

.arcade-notes-status {
  min-height: 1.2em;
  font-size: 0.85rem;
  color: #8b95a5;
  margin: 0;
}

.arcade-notes-status.is-ok {
  color: #5eead4;
}

.arcade-notes-status.is-err {
  color: #fca5a5;
}

.arcade-notes-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.arcade-leaderboard {
  position: fixed;
  left: max(var(--pad), 4vw);
  top: 50%;
  transform: translateY(-50%);
  width: min(380px, calc(100vw - 2 * var(--pad)));
  max-height: min(72vh, 640px);
  overflow: auto;
  padding: 16px 18px;
  background: rgba(8, 12, 18, 0.92);
  backdrop-filter: blur(14px);
  border-color: rgba(90, 214, 232, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  z-index: 24;
}

.arcade-leaderboard[hidden] {
  display: none !important;
}

.arcade-leaderboard-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 6px;
}

.arcade-leaderboard-top h2 {
  font-size: 1.35rem;
  margin: 2px 0 0;
}

.arcade-leaderboard-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 12px;
}

.arcade-leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arcade-leaderboard-row {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(90, 214, 232, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.arcade-leaderboard-row:first-child {
  border-color: rgba(90, 214, 232, 0.35);
  background: rgba(90, 214, 232, 0.08);
}

.arcade-leaderboard-rank {
  font-variant-numeric: tabular-nums;
  color: #5ad6e8;
  font-weight: 700;
  font-size: 0.85rem;
}

.arcade-leaderboard-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arcade-leaderboard-np {
  font-variant-numeric: tabular-nums;
  color: #a78bfa;
  font-weight: 600;
  font-size: 0.9rem;
}

.arcade-leaderboard-empty {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 8px 0 0;
}

.arcade-rail {
  position: fixed;
  right: var(--pad);
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 35;
  pointer-events: auto;
}

/* Store immersive — warm night market lemonade stand */
.page-store {
  background: #030508;
}

.page-store .site-shell {
  position: relative;
  z-index: 2;
}

.page-store .canvas-vignette {
  background:
    radial-gradient(ellipse 75% 70% at 50% 55%, transparent 0%, rgba(10, 6, 18, 0.15) 55%, rgba(10, 6, 18, 0.72) 100%);
}

.store-hud {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 12px;
  padding: clamp(12px, 2.5vh, 22px) var(--pad) 22px;
  max-width: 1480px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
  pointer-events: none;
  grid-template-columns: 1fr;
  align-content: space-between;
}

@media (min-width: 960px) {
  .store-hud {
    grid-template-columns: minmax(220px, 280px) 1fr minmax(260px, 340px);
    grid-template-rows: auto 1fr auto;
    padding-top: 3vh;
  }

  .store-side {
    grid-column: 1;
    grid-row: 1;
  }

  .store-catalog {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: stretch;
    max-height: none;
  }

  .store-catalog-scroll {
    max-height: min(62vh, 560px);
  }
}

.store-side,
.store-catalog {
  pointer-events: auto;
}

.store-side {
  align-self: start;
  padding: 16px 14px;
  background: rgba(8, 12, 18, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(90, 214, 232, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  border-radius: 14px;
}

.store-side h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  letter-spacing: -0.03em;
  margin: 6px 0 8px;
  background: linear-gradient(120deg, #5ad6e8 0%, #a78bfa 55%, #eef2f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.store-side .lead {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  margin-bottom: 10px;
}

.stall-line {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--cyan);
  line-height: 1.4;
  min-height: 2.6em;
  margin-bottom: 12px;
}

.store-catalog {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(48vh, 420px);
}

.store-catalog-scroll {
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: auto;
  padding-right: 4px;
  max-height: min(40vh, 360px);
}

.store-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 2px 14px;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(90, 214, 232, 0.16);
  background: rgba(8, 12, 18, 0.82);
  backdrop-filter: blur(12px);
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.store-chip:hover {
  border-color: rgba(90, 214, 232, 0.45);
  background: rgba(12, 18, 28, 0.92);
  transform: translateX(-4px);
}

.store-chip-price {
  grid-row: 1 / 3;
  align-self: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan);
  white-space: nowrap;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(90, 214, 232, 0.08);
  border: 1px solid rgba(90, 214, 232, 0.22);
}

.store-chip-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.store-chip-blurb {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.store-legal-mini {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(90, 214, 232, 0.18);
  background: rgba(8, 12, 18, 0.72);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 42rem;
}


.page-store .badge {
  border-color: rgba(90, 214, 232, 0.3);
  color: var(--cyan);
}

/* —— Vault claim prompt —— */
.claim-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: end center;
  padding: 0 var(--pad) clamp(28px, 6vh, 64px);
  pointer-events: none;
}

.claim-overlay[hidden] {
  display: none !important;
}

.claim-backdrop {
  display: none;
}

.claim-card {
  pointer-events: auto;
  width: min(420px, 100%);
  padding: 22px 24px 20px;
  border: 1px solid rgba(90, 214, 232, 0.28);
  background: rgba(8, 12, 18, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 40px rgba(90, 214, 232, 0.08);
  animation: claim-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes claim-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.claim-card h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  letter-spacing: -0.03em;
  margin: 6px 0 8px;
  background: linear-gradient(120deg, #5ad6e8 0%, #a78bfa 55%, #eef2f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.claim-copy {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 14px;
}

.claim-actions {
  margin-top: 4px;
}

.page-store.claim-waiting #nexus-canvas {
  cursor: pointer;
}

/* —— Locked Coming Soon (Arcade / NP Store) —— */
.page-coming-soon .site-shell {
  min-height: 100vh;
}

.coming-soon {
  min-height: min(72vh, 720px);
  display: grid;
  place-items: center;
  padding: clamp(32px, 6vw, 72px) 20px 48px;
}

.coming-soon-card {
  width: min(560px, 100%);
  text-align: left;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(14, 20, 32, 0.92), rgba(6, 10, 18, 0.88));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.coming-soon-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.coming-soon-lock {
  display: inline-grid;
  place-items: center;
  color: var(--cyan);
}

.coming-soon-card h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 12px;
}

.coming-soon-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0 0 22px;
  max-width: 42ch;
}

.coming-soon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.coming-soon-fine {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--dim);
  line-height: 1.45;
  margin: 0;
}

.topnav a.is-locked::after {
  content: "soon";
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.75;
}

/* Profile orb hover (base styles live with .top-actions) */
.profile-orb:hover {
  border-color: rgba(90, 214, 232, 0.7);
  transform: translateY(-1px);
}

.profile-orb-ring {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.35);
  pointer-events: none;
}

.profile-orb-mark {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, #5ad6e8, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Profile page */
.page-profile {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(90, 214, 232, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(167, 139, 250, 0.08), transparent 50%),
    #070a10;
  min-height: 100vh;
}

.profile-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(20px, 4vh, 40px) var(--pad) 64px;
}

.profile-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
  background: linear-gradient(120deg, #5ad6e8 0%, #a78bfa 55%, #eef2f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile-hero .lead {
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.55;
}

.profile-flash {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
}

.profile-flash--ok {
  background: rgba(90, 214, 232, 0.1);
  border: 1px solid rgba(90, 214, 232, 0.28);
  color: var(--cyan);
}

.profile-flash--err {
  background: rgba(255, 90, 90, 0.1);
  border: 1px solid rgba(255, 90, 90, 0.28);
  color: #ff8f8f;
}

.profile-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

@media (min-width: 900px) {
  .profile-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .profile-identity { grid-column: span 4; }
  .profile-stats { grid-column: span 4; }
  .profile-desk { grid-column: span 4; }
  .profile-board { grid-column: span 4; }
  .profile-available { grid-column: span 8; }
  .profile-active { grid-column: span 6; }
  .profile-history { grid-column: span 6; }
}

.profile-card {
  padding: 18px 16px;
  border-radius: 14px;
  background: rgba(8, 12, 18, 0.78);
  border: 1px solid rgba(90, 214, 232, 0.16);
  backdrop-filter: blur(12px);
}

.profile-card h2,
.profile-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 230, 109, 0.35), transparent 45%),
    linear-gradient(145deg, rgba(90, 214, 232, 0.45), rgba(167, 139, 250, 0.35));
  border: 1px solid rgba(90, 214, 232, 0.45);
  box-shadow: 0 0 0 3px rgba(8, 12, 18, 0.65), 0 10px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  font-family: var(--display, Syne, Segoe UI, sans-serif);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f2f6fb;
}

.profile-avatar span {
  background: linear-gradient(120deg, #5ad6e8 0%, #eef2f6 55%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 12px;
}

/* ── Email / password auth ── */
.auth-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vh, 48px) var(--pad);
}

.auth-card {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  padding: 28px 22px;
  border-radius: 16px;
  background: rgba(8, 12, 18, 0.82);
  border: 1px solid rgba(90, 214, 232, 0.18);
  backdrop-filter: blur(14px);
}

.auth-card h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.auth-card .lead {
  color: var(--muted);
  margin: 0 0 6px;
  line-height: 1.5;
}

.auth-card label {
  display: grid;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-card input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.auth-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.auth-card .fine a {
  color: var(--cyan);
}

.settings-grid .settings-card--identity { grid-column: span 12; }
.settings-grid .settings-card--discord { grid-column: span 12; }
.settings-grid .settings-card--session { grid-column: span 12; }

@media (min-width: 900px) {
  .settings-grid .settings-card--identity { grid-column: span 7; }
  .settings-grid .settings-card--discord { grid-column: span 5; }
  .settings-grid .settings-card--session { grid-column: span 12; }
}

.settings-avatar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.settings-avatar-forms {
  flex: 1 1 220px;
  min-width: 0;
}

.settings-avatar-preview {
  flex: 0 0 auto;
}

.profile-age-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.82rem !important;
  color: var(--muted) !important;
  line-height: 1.4;
}

.profile-age-check input {
  width: auto !important;
  margin-top: 3px;
}

.profile-link-form {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.profile-link-form input[type="file"] {
  padding: 8px;
  font-size: 0.8rem;
}

.profile-link-form label {
  display: grid;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-link-form input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(90, 214, 232, 0.2);
  background: rgba(3, 5, 8, 0.65);
  color: var(--text);
  font: inherit;
}

.profile-np {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.profile-np span {
  font-size: 0.9rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.profile-stat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}

.profile-stat-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.profile-stat-list strong {
  color: var(--text);
}

.profile-stat-list em {
  font-style: normal;
  color: var(--dim);
  font-weight: 500;
}

.lead-sm {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0 0 12px;
}

.profile-symbol-live {
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--cyan);
  margin: 0 0 12px;
}

.profile-symbol-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.profile-chip {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(90, 214, 232, 0.25);
  background: rgba(90, 214, 232, 0.08);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
}

.profile-leaderboard {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.profile-leaderboard li {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 0.88rem;
}

.profile-leaderboard .rank {
  color: var(--cyan);
  font-family: var(--mono);
}

.profile-leaderboard .np {
  font-family: var(--mono);
  color: var(--muted);
}

.profile-reward-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.profile-reward-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-reward-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-reward-list .price,
.profile-reward-list .status {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cyan);
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(90, 214, 232, 0.22);
  background: rgba(90, 214, 232, 0.06);
  white-space: nowrap;
}

.profile-reward-list .status--dim {
  color: var(--dim);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.profile-reward-list strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.profile-reward-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}


/* Arcade carousel — cinematic turn controls (B&O calm) */
.arcade-turn {
  position: fixed;
  left: 50%;
  bottom: calc(2.75rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 14, 0.55);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.arcade-turn[hidden] { display: none !important; }
.arcade-turn-btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 247, 250, 0.92);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.arcade-turn-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
  transform: scale(1.04);
}
.arcade-turn-btn:active { transform: scale(0.97); }
.arcade-turn-meta {
  min-width: 9.5rem;
  text-align: center;
}
.arcade-turn-label {
  display: block;
  font-family: Syne, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  color: #f3f5f7;
}
.arcade-turn-play {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #f5f7fa;
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.arcade-turn-play:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}
.arcade-turn-count {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 210, 220, 0.55);
}
body.arcade-entered .arcade-hint h1 {
  font-weight: 600;
  letter-spacing: -0.02em;
}
@media (max-width: 720px) {
  .arcade-turn { gap: 0.55rem; padding: 0.45rem 0.6rem; }
  .arcade-turn-meta { min-width: 7rem; }
  .arcade-turn-btn { width: 2.3rem; height: 2.3rem; font-size: 1.4rem; }
}


/* ScorpTech security seal + page */
.builder-stack {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.builder-credit--standalone + .builder-stack,
.builder-stack:has(.builder-credit--standalone) {
  justify-items: center;
}
.sec-seal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(90, 214, 232, 0.28);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(9, 30, 38, 0.9), rgba(8, 12, 18, 0.95));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.sec-seal:hover {
  border-color: rgba(90, 214, 232, 0.55);
  transform: translateY(-1px);
}
.sec-seal-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #04252c;
  background: linear-gradient(135deg, #5ad6e8, #3a9eae);
}
.sec-seal-copy {
  display: grid;
  gap: 2px;
  line-height: 1.2;
}
.sec-seal-copy strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.sec-seal-copy em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}

.sec-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px var(--pad) 80px;
}
.sec-hero { margin-bottom: 28px; }
.sec-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
}
.sec-lead { color: var(--muted); max-width: 52ch; line-height: 1.5; }
.sec-scoreboard {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  margin: 28px 0 32px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 14, 20, 0.7);
}
.sec-score-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(90, 214, 232, 0.45);
  display: grid;
  place-content: center;
  text-align: center;
  background: radial-gradient(circle at 30% 30%, rgba(90, 214, 232, 0.12), transparent 60%);
}
.sec-score-num { font-size: 36px; font-weight: 800; line-height: 1; }
.sec-score-den { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.sec-score-grade {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 4px;
}
.sec-grade--a { border-color: rgba(74, 222, 128, 0.55); }
.sec-grade--b { border-color: rgba(90, 214, 232, 0.55); }
.sec-grade--c, .sec-grade--d, .sec-grade--f { border-color: rgba(232, 168, 90, 0.55); }
.sec-score-copy p { margin: 0 0 10px; line-height: 1.45; }
.sec-meta { font-size: 13px; color: var(--muted); }
.sec-meta a { color: var(--cyan); }
.sec-checks {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.sec-checks li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 12, 18, 0.55);
}
.sec-checks li.is-pass { border-color: rgba(74, 222, 128, 0.22); }
.sec-checks li.is-fail { border-color: rgba(232, 168, 90, 0.28); }
.sec-check-mark {
  font-size: 16px;
  line-height: 1.4;
  color: var(--cyan);
}
.sec-checks li.is-fail .sec-check-mark { color: #e8a85a; }
.sec-checks strong { display: inline; margin-right: 8px; }
.sec-weight {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.sec-checks p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}
.sec-footnote {
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
}
.sec-footnote a { color: var(--cyan); }

@media (max-width: 700px) {
  .sec-scoreboard { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}



/* --- mobile nav shell --- */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: 8px;
  border-radius: 10px;
  border: 1px solid rgba(90, 214, 232, 0.28);
  background: rgba(8, 12, 18, 0.88);
  color: var(--cyan);
  cursor: pointer;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.profile-menu-item--nav {
  display: none;
}

@media (max-width: 859px) {
  .topbar {
    position: relative;
    flex-wrap: wrap;
    gap: 10px;
    row-gap: 10px;
  }

  .nav-toggle {
    display: inline-grid;
    order: 2;
    margin-left: auto;
  }

  .top-actions {
    order: 3;
    margin-left: 0;
    gap: 6px;
  }

  .topnav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(8, 12, 18, 0.96);
    border: 1px solid rgba(90, 214, 232, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }

  .topnav.is-open {
    display: flex;
  }

  .topnav a {
    padding: 12px 14px;
    border-radius: 8px;
    letter-spacing: 0.1em;
  }

  .topnav a:hover,
  .topnav a.is-active {
    background: rgba(90, 214, 232, 0.12);
    color: var(--text);
  }

  .top-actions .btn {
    padding: 9px 12px;
    font-size: 10px;
  }

  .top-actions .btn-ghost {
    display: none;
  }

  .profile-menu-item--nav {
    display: block;
  }

  .hero-twitch-stage {
    min-width: 0;
    min-height: 180px;
  }

  .site-shell {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 10px 14px;
  }
}

@media (max-width: 480px) {
  .brand-word {
    font-size: 13px;
  }

  .top-actions .btn-primary {
    padding: 9px 10px;
  }

  .hero-letterpress {
    width: min(220px, 78vw);
  }

  .admin-shell,
  .auth-shell,
  .profile-shell {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (min-width: 860px) {
  .nav-toggle { display: none !important; }
  .topnav.is-open { display: flex; }
  .profile-menu-item--nav { display: none !important; }
}

/* Opened machine — mobile fills the usable viewport */
@media (max-width: 820px) {
  body.arcade-playing .arcade-hud-shell {
    min-height: 100dvh;
    padding: 0;
    justify-content: flex-end;
  }

  body.arcade-playing .arcade-dock.arcade-dock--slim {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 8px 10px 10px;
    border-radius: 0;
    z-index: 50;
    box-sizing: border-box;
  }

  body.arcade-playing .arcade-dock--slim .arcade-dock-top {
    gap: 6px;
  }

  body.arcade-playing .arcade-dock--slim .arcade-dock-top h2 {
    font-size: 1.05rem;
  }

  body.arcade-playing .arcade-dock--slim .arcade-dock-nav {
    flex-wrap: wrap;
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
    gap: 6px;
  }

  body.arcade-playing .arcade-dock--slim .arcade-dock-nav .btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 6px;
    font-size: 10px;
  }

  body.arcade-playing .topbar {
    background: rgba(3, 5, 8, 0.55);
  }

  body.arcade-playing.page-arcade .canvas-vignette {
    background: radial-gradient(ellipse 95% 75% at 50% 38%, transparent 0%, rgba(8, 12, 18, 0.28) 100%);
  }

}

/* Playing: original slim dock under the control panel / shelf */
body.arcade-playing .arcade-dock.arcade-dock--slim {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: auto;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: min(520px, calc(100% - 2 * var(--pad)));
  max-width: 100%;
  z-index: 36;
  padding: 6px 10px 10px;
  margin: 0;
}

body.arcade-playing #arcade-turn {
  display: none !important;
}

/* Paytable stays on the cabinet screen — not in the dock */
body.arcade-playing .arcade-dock--slim .play-result {
  display: none !important;
}

body.arcade-playing .arcade-rail {
  display: none !important;
}

body.arcade-playing .arcade-twitch:not(.is-minimized) {
  top: calc(72px + env(safe-area-inset-top, 0px));
  width: min(280px, 26vw);
  transform: none;
}

body.arcade-playing .arcade-twitch.is-minimized {
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  top: auto;
}

/* Big win popup over the machine */

body.arcade-playing .arcade-toast {

  position: fixed !important;

  left: 50% !important;

  top: 36% !important;

  bottom: auto !important;

  right: auto !important;

  transform: translate(-50%, -50%) !important;

  z-index: 120;

  min-width: min(360px, 86vw);

  padding: 22px 32px;

  font-size: clamp(1.35rem, 3vw, 1.9rem);

  border-radius: 16px;

  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 230, 109, 0.25);

  animation: arcade-win-pop 0.35s ease-out;

}



body.arcade-playing .arcade-toast.is-win {

  animation: arcade-win-pop 0.35s ease-out, arcade-win-pulse 0.85s ease-in-out 0.35s 2;

}



@keyframes arcade-win-pop {

  from { opacity: 0; transform: translate(-50%, -40%) scale(0.92); }

  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }

}



@keyframes arcade-win-pulse {

  0%, 100% { transform: translate(-50%, -50%) scale(1); }

  50% { transform: translate(-50%, -50%) scale(1.05); }

}


/* Short monitors / shrunk windows — keep shelf + dock usable */

html:has(body.arcade-playing),

body.arcade-playing {

  overflow: hidden !important;

  height: 100%;

  max-height: 100dvh;

}



body.arcade-playing .site-footer,

body.arcade-playing .footer,

body.arcade-playing footer.site-footer {

  display: none !important;

}



@media (max-height: 760px) {

  body.arcade-playing .topbar {

    min-height: 0;

    padding-top: 4px;

    padding-bottom: 4px;

  }



  body.arcade-playing .arcade-dock.arcade-dock--slim {

    bottom: calc(8px + env(safe-area-inset-bottom, 0px));

    width: min(510px, calc(100% - 1.25rem));

    padding: 4px 8px 6px;

  }



  body.arcade-playing .arcade-dock--slim .arcade-dock-top {

    align-items: center;

    gap: 6px 8px;

    margin: 0;

  }



  body.arcade-playing .arcade-dock--slim .arcade-dock-titleblock {

    flex: 0 1 auto;

    min-width: 0;

  }



  body.arcade-playing .arcade-dock--slim .arcade-dock-kicker {

    font-size: 0.65rem;

  }



  /* Screen already shows balance/bet — drop dock duplicates on short height */

  body.arcade-playing .arcade-dock--slim .arcade-dock-stats {

    display: none !important;

  }



  body.arcade-playing .arcade-dock--slim .arcade-dock-nav .btn {

    padding: 5px 8px;

    font-size: 0.68rem;

  }



  body.arcade-playing .arcade-dock--slim .arcade-dock-help {

    width: 22px;

    height: 22px;

    bottom: 4px;

    left: 6px;

    font-size: 0.7rem;

  }



  /* DESK bubble: under header, clear of dock */

  body.arcade-playing .arcade-twitch.is-minimized {

    top: calc(78px + env(safe-area-inset-top, 0px));

    bottom: auto;

    left: max(var(--pad), 0.75rem);

  }



  body.arcade-playing .arcade-toast {

    top: 32% !important;

    min-width: min(280px, 88vw);

    padding: 14px 18px;

    font-size: clamp(1.05rem, 2.6vw, 1.35rem);

  }

}



@media (max-height: 640px) {

  body.arcade-playing .arcade-dock.arcade-dock--slim {

    bottom: calc(4px + env(safe-area-inset-bottom, 0px));

    padding: 3px 6px 4px;

  }



  body.arcade-playing .arcade-dock--slim #dock-store {

    display: none !important;

  }



  body.arcade-playing .topbar .btn,

  body.arcade-playing .topbar .profile-chip {

    padding-top: 4px;

    padding-bottom: 4px;

  }

}

body.arcade-playing.page-arcade .site-shell--arcade {

  min-height: 100dvh;

  max-height: 100dvh;

  overflow: hidden;

}



body.arcade-playing.page-arcade .site-shell--arcade main {

  min-height: 0;

  overflow: hidden;

}



body.arcade-playing .arcade-hud-shell {

  min-height: 0 !important;

  padding-bottom: 0;

}

body.arcade-playing .floor-credit,

body.arcade-playing .scorptech-credit {

  display: none !important;

}
/* Clear the ? help button so it never sits on TERMINAL */
body.arcade-playing .arcade-dock--slim .arcade-dock-titleblock {
  padding-left: 28px;
}
/* Arcade wallet modal — compact so it clears the top nav */

.arcade-wallet {

  position: fixed;

  inset: 0;

  z-index: 90;

  display: grid;

  place-items: center;

  padding: calc(64px + env(safe-area-inset-top, 0px)) var(--pad) 16px;

  overflow: auto;

}



.arcade-wallet[hidden] {

  display: none !important;

}



.arcade-wallet-backdrop {

  position: fixed;

  inset: 0;

  background: rgba(3, 6, 12, 0.72);

  backdrop-filter: blur(6px);

}



.arcade-wallet-panel {

  position: relative;

  z-index: 1;

  width: min(360px, 100%);

  max-height: min(520px, calc(100dvh - 88px));

  overflow: auto;

  padding: 12px 14px 12px;

  background: rgba(8, 12, 18, 0.96);

  border-color: rgba(90, 214, 232, 0.28);

  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5);

}



.arcade-wallet-top {

  display: flex;

  justify-content: space-between;

  align-items: flex-start;

  gap: 10px;

  margin-bottom: 6px;

}



.arcade-wallet-top .eyebrow {

  margin: 0;

  font-size: 0.68rem;

}



.arcade-wallet-top h2 {

  margin: 2px 0 0;

  font-size: 1.05rem;

}



.arcade-wallet-hero {

  margin: 0 0 2px;

  font: 800 clamp(1.35rem, 3vw, 1.7rem)/1.05 Syne, Segoe UI, sans-serif;

  letter-spacing: -0.03em;

  color: #c4b5fd;

}



.arcade-wallet-hero small {

  display: inline-block;

  margin-left: 6px;

  font: 700 0.72rem/1 IBM Plex Mono, Consolas, monospace;

  color: rgba(200, 210, 222, 0.75);

  letter-spacing: 0.04em;

  text-transform: uppercase;

  vertical-align: middle;

}



.arcade-wallet-name {

  margin: 0 0 8px;

  color: var(--muted);

  font-size: 0.8rem;

}



.arcade-wallet-stats {

  list-style: none;

  margin: 0 0 8px;

  padding: 0;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 6px;

}



.arcade-wallet-stats li {

  display: flex;

  flex-direction: column;

  gap: 2px;

  padding: 6px 8px;

  border-radius: 8px;

  background: rgba(0, 0, 0, 0.28);

  border: 1px solid rgba(90, 214, 232, 0.12);

}



.arcade-wallet-stats span {

  color: rgba(180, 190, 205, 0.8);

  font-size: 0.68rem;

  letter-spacing: 0.02em;

  text-transform: uppercase;

}



.arcade-wallet-stats strong {

  font-variant-numeric: tabular-nums;

  font-size: 0.92rem;

  color: var(--text);

}



.arcade-wallet-panel .fine {

  margin: 0;

  font-size: 0.72rem;

  line-height: 1.35;

}



.arcade-wallet-actions {

  display: flex;

  flex-wrap: wrap;

  gap: 6px;

  margin-top: 10px;

}



.arcade-wallet-actions .btn {

  padding: 6px 10px;

  font-size: 0.72rem;

}



.arcade-dock-bal {

  cursor: pointer;

}



.arcade-dock-bal:hover {

  filter: brightness(1.08);

}



@media (max-height: 640px) {

  .arcade-wallet {

    padding-top: calc(56px + env(safe-area-inset-top, 0px));

  }



  .arcade-wallet-panel {

    max-height: calc(100dvh - 72px);

    padding: 10px 12px;

  }



  .arcade-wallet-hero {

    font-size: 1.25rem;

  }

}
body.arcade-wallet-open .floor-credit,
body.arcade-wallet-open .scorptech-credit {
  display: none !important;
}

.arcade-toast.is-tie {
  color: #e8eef6;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.profile-orb-icon {
  display: grid;
  place-items: center;
  color: var(--cyan);
  line-height: 0;
}

.profile-orb-icon svg {
  display: block;
}

.profile-orb--login {
  border-color: rgba(90, 214, 232, 0.45);
}

.profile-orb--login:hover {
  border-color: rgba(90, 214, 232, 0.85);
  color: #7ee8f5;
}

/* Empty balance earn-task modal */
.arcade-empty-bal {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: grid;
  place-items: center;
  padding: calc(64px + env(safe-area-inset-top, 0px)) var(--pad) 16px;
  overflow: auto;
}
.arcade-empty-bal[hidden] {
  display: none !important;
}
.arcade-empty-bal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(6px);
}
.arcade-empty-bal-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid rgba(90, 214, 232, 0.28);
  background: rgba(8, 12, 18, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}
.arcade-empty-bal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.arcade-empty-bal-top .eyebrow {
  margin: 0 0 4px;
}
.arcade-empty-bal-top h2 {
  margin: 0;
  font-size: 1.35rem;
}
.arcade-empty-bal-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.arcade-empty-bal-tasks {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.arcade-empty-bal-tasks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}
.arcade-empty-bal-tasks .task-mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font: 700 0.7rem Syne, Segoe UI, sans-serif;
  color: #041018;
  background: #5ad6e8;
}
.arcade-empty-bal-tasks .task-mark.is-soon {
  background: rgba(255, 230, 109, 0.85);
}
.arcade-empty-bal-tasks .task-body {
  min-width: 0;
  flex: 1;
}
.arcade-empty-bal-tasks .task-label {
  display: block;
  font: 650 0.88rem Syne, Segoe UI, sans-serif;
  color: #e8eef6;
  line-height: 1.35;
}
.arcade-empty-bal-tasks .task-meta {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--muted);
}
.arcade-empty-bal-tasks a.task-label {
  color: #5ad6e8;
  text-decoration: none;
}
.arcade-empty-bal-tasks a.task-label:hover {
  text-decoration: underline;
}
.arcade-empty-bal-note {
  margin: 0 0 14px;
}
.arcade-empty-bal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.arcade-empty-bal-open .floor-credit,
body.arcade-empty-bal-open .scorptech-credit {
  opacity: 0.15;
  pointer-events: none;
}
@media (max-width: 820px) {
  .arcade-empty-bal {
    place-items: end center;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .arcade-empty-bal-panel {
    width: 100%;
    border-radius: 14px 14px 10px 10px;
  }
}


/* Leaderboard open — mobile/tablet only (PC uses left floor board) */
.arcade-lb-open {
  display: none !important;
}

@media (max-width: 820px) {
  .arcade-lb-open {
    display: inline-flex !important;
  }

  .arcade-leaderboard {
    left: max(8px, env(safe-area-inset-left, 0px));
    right: max(8px, env(safe-area-inset-right, 0px));
    top: calc(12px + env(safe-area-inset-top, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
  }

  .arcade-leaderboard-top {
    gap: 10px;
  }

  #leaderboard-close {
    min-height: 44px;
    min-width: 72px;
  }
}

/* XAU Board — TradingView reference chart overlay (pool machine only) */
.xau-board-chart {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(90, 214, 232, 0.22), 0 12px 40px rgba(0, 0, 0, 0.45);
  background: rgba(6, 10, 16, 0.92);
}
.xau-board-chart[hidden],
.xau-board-chart.is-closed {
  display: none !important;
}
.xau-board-chart-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0c121c;
}
@media (max-width: 720px) {
  .xau-board-chart { border-radius: 8px; }
}


/* —— New-user Discord welcome present —— */
.welcome-present-overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: var(--pad);
}

.welcome-present-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(90, 214, 232, 0.14), transparent 70%),
    rgba(3, 5, 8, 0.82);
  backdrop-filter: blur(10px);
}

.welcome-present-card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 26px 24px;
  text-align: center;
  border: 1px solid rgba(90, 214, 232, 0.28);
  background: linear-gradient(165deg, rgba(12, 18, 28, 0.96), rgba(6, 10, 16, 0.98));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  animation: welcome-present-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes welcome-present-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.welcome-present-card h2 {
  font-family: Syne, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.03em;
  margin: 8px 0 10px;
  color: #eef2f6;
}

.welcome-present-copy {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0 0 18px;
}

.welcome-present-form {
  margin: 0;
}

.welcome-present-box {
  position: relative;
  width: 168px;
  height: 148px;
  margin: 8px auto 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  animation: welcome-present-float 2.4s ease-in-out infinite;
}

.welcome-present-box:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 8px;
}

@keyframes welcome-present-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.welcome-present-box__body {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 72px;
  border-radius: 6px 6px 10px 10px;
  background:
    linear-gradient(180deg, #1a2a38 0%, #0e1720 100%);
  border: 1px solid rgba(90, 214, 232, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.welcome-present-box__body::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 18px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #5ad6e8, #2a7a88);
  opacity: 0.85;
}

.welcome-present-box__lid {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 28px;
  height: 34px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #243746, #15202b);
  border: 1px solid rgba(90, 214, 232, 0.4);
  transform-origin: bottom center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  z-index: 2;
}

.welcome-present-box__lid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 18px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #7ee7f5, #5ad6e8);
}

.welcome-present-box__bow {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 28px;
  height: 28px;
  transform: translateX(-50%);
  z-index: 3;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9aeee9, #2f8f9c 70%);
  box-shadow: 0 0 0 3px rgba(90, 214, 232, 0.2);
  transition: opacity 0.35s ease, transform 0.55s ease;
}

.welcome-present-reveal {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -40%) scale(0.6);
  opacity: 0;
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  color: #eef2f6;
  text-shadow: 0 0 24px rgba(90, 214, 232, 0.45);
  transition: opacity 0.35s ease 0.25s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
  z-index: 4;
  pointer-events: none;
}

.welcome-present-reveal small {
  font-size: 0.55em;
  font-weight: 600;
  opacity: 0.8;
}

.welcome-present-overlay.is-opening .welcome-present-box {
  animation: none;
}

.welcome-present-overlay.is-opening .welcome-present-box__lid {
  transform: translateY(-42px) rotateX(48deg);
  opacity: 0.35;
}

.welcome-present-overlay.is-opening .welcome-present-box__bow {
  opacity: 0;
  transform: translateX(-50%) translateY(-24px) scale(0.6);
}

.welcome-present-overlay.is-opening .welcome-present-reveal {
  opacity: 1;
  transform: translate(-50%, -70%) scale(1);
}

.welcome-present-hint {
  margin: 0;
}
