/* ================= HEADER ================= */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(4, 9, 30, .82); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--line); box-shadow: 0 10px 40px -20px rgba(0,0,0,.9); }
.header-inner { height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand-medallion { width: 44px; height: 44px; filter: drop-shadow(0 0 10px rgba(53,224,255,.5)); transition: transform .5s var(--ease); }
.brand:hover .brand-medallion { transform: rotate(-12deg) scale(1.06); }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; list-style: none; gap: 4px; }
.primary-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; color: var(--text); font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .08em; font-size: .92rem; font-weight: 500; position: relative; text-decoration: none; }
.primary-nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); transform: scaleX(0); transition: transform .25s var(--ease); }
.primary-nav a:hover::after, .primary-nav a.is-current::after { transform: scaleX(1); }
.nav-official a { color: #fff; border: 1px solid rgba(255,255,255,.35); margin-left: 6px; }
.header-cta { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(10, 20, 60, .7); place-items: center; color: #fff; }
.mobile-nav { position: absolute; top: var(--header-h); left: 0; right: 0; padding: 12px var(--gutter) 22px; background: rgba(4, 9, 30, .97); border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.mobile-nav a { padding: 14px 6px; border-bottom: 1px solid rgba(80,150,255,.14); font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .1em; color: #fff; font-size: 1.05rem; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.mobile-nav .mobile-official { color: var(--gold); border-bottom: 0; }

@media (max-width: 1180px) { .primary-nav a { padding: 8px 8px; font-size: .86rem; } }
@media (max-width: 1040px) {
  .primary-nav, .header-cta { display: none; }
  .nav-toggle { display: grid; }
}

/* ================= HERO ================= */
.hero { position: relative; min-height: min(100vh, 940px); min-height: min(100svh, 940px); padding-top: var(--header-h); overflow: hidden; isolation: isolate; display: flex; flex-direction: column; }
.hero-sky { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 70% 30%, #1b3aa6 0%, #0b1650 38%, #040818 75%); }
.hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid { position: absolute; left: -20%; right: -20%; bottom: 0; height: 46%; background-image: linear-gradient(rgba(53,224,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(53,224,255,.35) 1px, transparent 1px); background-size: 64px 64px; transform: perspective(520px) rotateX(62deg); transform-origin: bottom center; mask-image: linear-gradient(to top, #000 10%, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); animation: gridMove 3.2s linear infinite; opacity: .55; }
@keyframes gridMove { to { background-position: 0 64px; } }
.hero-scan { position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 4px); pointer-events: none; mix-blend-mode: overlay; }
.hero-scan::after { content: ''; position: absolute; left: 0; right: 0; height: 180px; background: linear-gradient(to bottom, transparent, rgba(53,224,255,.08), transparent); animation: scan 7s linear infinite; }
@keyframes scan { from { top: -200px; } to { top: 100%; } }

.hero-art { position: absolute; z-index: -1; right: -2vw; top: var(--header-h); bottom: 60px; width: min(90vw, 1720px); display: flex; align-items: flex-end; will-change: transform; }
.hero-art-inner { position: relative; width: 100%; }
.hero-art picture, .hero-art img { width: 100%; }
.hero-art img { max-height: 100%; object-fit: cover; object-position: 50% 0; aspect-ratio: 1400 / 565;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 12%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 12%, #000 80%, transparent 100%); mask-composite: intersect;
  filter: saturate(1.08) contrast(1.04);
  animation: heroIn 1.4s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.06) translateY(18px); filter: blur(6px) saturate(1.1); } to { opacity: 1; transform: none; } }
.hero-hotspots { position: absolute; inset: 0; pointer-events: none; }
.hotspot { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: #fff; }
.hotspot-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px rgba(255,255,255,.18), 0 0 18px var(--c); position: relative; }
.hotspot-dot::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--c); animation: ring 2s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.hotspot-label { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: .85rem; padding: 5px 10px; border-radius: 6px; background: rgba(4,9,30,.85); border: 1px solid var(--c); white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: all .25s var(--ease); }
.hotspot:hover .hotspot-label, .hotspot:focus-visible .hotspot-label { opacity: 1; transform: none; }

.hero-content::before { content: ''; position: absolute; z-index: -1; inset: -10% -30% -10% -40%; background: radial-gradient(closest-side, rgba(3,7,22,.78), rgba(3,7,22,0)); pointer-events: none; }
.hero-content { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 640px; padding: 40px var(--gutter) 110px; margin-left: max(0px, calc((100vw - 1440px) / 2)); }
.eyebrow { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .28em; font-size: .82rem; color: var(--text-dim); display: flex; align-items: center; gap: 10px; }
.hero-logo { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; animation: rise .9s .15s var(--ease) both; }
.hero-ticker-tag { position: absolute; left: calc(100vw - 430px - var(--gutter) - max(0px, (100vw - 1440px) / 2)); top: 76px; width: 430px; margin: 0; padding: 18px 24px; border-left: 5px solid var(--gold); background: linear-gradient(90deg, rgba(4,9,30,.75), rgba(4,9,30,.15)); font-family: var(--font-display); font-size: clamp(2.4rem, 3.5vw, 3.5rem); line-height: 1.08; letter-spacing: .025em; text-transform: uppercase; color: #fff; font-weight: 900; text-shadow: 0 3px 12px #030716; }
.hero-tag-qualifier { display: block; margin-bottom: 10px; font-family: var(--font-cond); font-size: .95rem; line-height: 1.3; letter-spacing: .18em; font-weight: 700; color: var(--gold); }
.hero-ticker-tag strong { color: var(--cyan); font-weight: 900; text-shadow: 0 0 20px rgba(53,224,255,.4); }
@media (min-width: 901px) and (max-width: 1199px) { .hero-ticker-tag { left: calc(100vw - 300px - var(--gutter)); width: 300px; top: 160px; padding: 14px 18px; font-size: 2.2rem; } }
@media (max-width: 900px) { .hero-ticker-tag { position: static; width: fit-content; max-width: 100%; margin: 4px 0 22px; padding: 12px 18px; font-size: clamp(1.8rem, 6.5vw, 2.8rem); } .hero-ticker-tag br { display: none; } .hero-ticker-tag strong::before { content: ' '; white-space: pre; } .hero-tag-qualifier { font-size: .8rem; margin-bottom: 6px; } }
.hero-headline { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.9rem, 4.1vw, 3.5rem); line-height: 1.02; margin: 0 0 16px; text-shadow: 0 4px 0 rgba(0,0,0,.4); animation: rise .9s .3s var(--ease) both; }
.hero-sub { color: #c9d5f5; text-shadow: 0 2px 12px #030716, 0 0 4px #030716; font-size: clamp(1rem, 1.35vw, 1.15rem); max-width: 46ch; animation: rise .9s .45s var(--ease) both; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 18px; animation: rise .9s .6s var(--ease) both; }
.hero-disclaimer { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--text-mute); margin: 0; animation: rise .9s .75s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero-marquee { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(90deg, #a50d25, #e3163a 30%, #1f6bff 70%, #0b2a8a); border-top: 1px solid rgba(255,255,255,.3); box-shadow: 0 -10px 40px rgba(255,45,74,.25); z-index: 3; }
.marquee-track { display: flex; align-items: center; gap: 28px; white-space: nowrap; animation: marquee 38s linear infinite; padding-left: 28px; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .06em; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.marquee-track em { font-style: normal; color: var(--gold); font-size: .8em; }
.star-sep { width: 16px; height: 16px; background: #fff; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 1200px) { .hero-hotspots { display: none; } }
@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-art { position: relative; top: 0; bottom: auto; right: auto; width: 100%; margin-top: 4px; }
  .hero-art img { aspect-ratio: auto; height: min(92vw, 520px); object-position: 44% 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 72%, transparent 100%); }
  .hero-hotspots { display: none; }
  .hero-content { margin-top: -70px; padding: 0 var(--gutter) 96px; max-width: none; }
  .hero-ctas .btn { flex: 1 1 240px; }
}
@media (max-width: 480px) { .hero-ctas .btn-lg { font-size: 1rem; padding: .9em 1em; } }

/* ================= QUICK DECK ================= */
.quick-deck { max-width: var(--maxw); margin: 28px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; position: relative; z-index: 4; }
.deck-tile { display: flex; align-items: center; gap: 12px; padding: 14px 14px; border-radius: var(--r-md); background: var(--grad-panel); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; position: relative; overflow: hidden; }
.deck-tile::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120px 60px at 20% 50%, color-mix(in srgb, var(--c) 22%, transparent), transparent); opacity: .7; }
.deck-tile:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 40%, transparent); }
.deck-ico { width: 38px; height: 38px; color: var(--c); filter: drop-shadow(0 0 8px var(--c)); flex: none; position: relative; }
.deck-tile span { position: relative; display: flex; flex-direction: column; line-height: 1.2; }
.deck-tile strong { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; }
.deck-tile small { color: var(--text-mute); font-size: .78rem; }
@media (max-width: 1100px) { .quick-deck { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .quick-deck { grid-template-columns: repeat(2, 1fr); margin-top: 18px; } .deck-tile { padding: 12px 10px; gap: 8px; } .deck-ico { width: 30px; height: 30px; } .deck-tile small { display: none; } }

/* ================= CAST ================= */
.cast-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1180px) { .cast-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .cast-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 18px; scrollbar-width: thin; }
  .cast-grid > * { flex: 0 0 78%; scroll-snap-align: center; }
}

/* ================= REACTOR ================= */
.reactor { max-width: none; background: radial-gradient(ellipse at 70% 50%, rgba(245,196,81,.12), transparent 55%), linear-gradient(180deg, transparent, rgba(8,14,44,.7) 20%, rgba(8,14,44,.7) 80%, transparent); }
.reactor-layout { max-width: calc(var(--maxw) - 2 * var(--gutter)); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.lore-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 600; color: #2a1a00; background: var(--grad-gold); padding: 6px 12px; border-radius: 6px; margin-bottom: 16px; box-shadow: var(--glow-gold); }
.reactor-copy .display { margin-bottom: 14px; }
.reactor-hint { color: var(--gold); font-family: var(--font-cond); letter-spacing: .06em; text-transform: uppercase; font-size: .95rem; }
.reactor-readout { margin-top: 18px; padding: 18px 20px; min-height: 132px; border-radius: var(--r-md); background: rgba(3,8,26,.8); border: 1px solid var(--line); font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: .92rem; box-shadow: inset 0 0 30px rgba(31,107,255,.15); }
.readout-title { color: var(--cyan); margin-bottom: 8px; }
.readout-title strong { color: var(--gold); }
.readout-body { color: var(--text-dim); margin: 0; }
.reactor-meter { margin-top: 14px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; border: 1px solid var(--line); }
.reactor-meter-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--gold), var(--red)); box-shadow: 0 0 14px var(--gold); transition: width .6s var(--ease); }
.reactor-foot { margin-top: 8px; font-size: .78rem; color: var(--text-mute); }

.reactor-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 600px; margin: 0 auto; }
.reactor-rings i { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(53,224,255,.35); animation: spin 40s linear infinite; }
.reactor-rings i:nth-child(2) { inset: 12%; border: 2px solid rgba(245,196,81,.35); border-style: dotted; animation-duration: 26s; animation-direction: reverse; }
.reactor-rings i:nth-child(3) { inset: 26%; border: 1px solid rgba(255,45,74,.45); box-shadow: 0 0 60px rgba(31,107,255,.4), inset 0 0 60px rgba(31,107,255,.35); animation-duration: 18s; }
@keyframes spin { to { transform: rotate(360deg); } }
.reactor-core { position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 0; padding: 0; background: radial-gradient(circle, rgba(53,224,255,.5), transparent 70%); animation: corePulse 2.4s ease-in-out infinite; }
.reactor-core img { width: 100%; height: 100%; filter: drop-shadow(0 0 26px rgba(53,224,255,.8)); transition: transform .4s var(--ease); }
.reactor-core:hover img { transform: scale(1.05) rotate(-4deg); }
@keyframes corePulse { 50% { box-shadow: 0 0 90px 20px rgba(53,224,255,.35); } }
.reactor.is-surging .reactor-core { animation: surge .35s ease-in-out 8; }
@keyframes surge { 50% { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 140px 50px rgba(245,196,81,.6); } }
.reactor-nodes { position: absolute; inset: 0; }
.r-node { position: absolute; left: 50%; top: 50%; width: 120px; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--rad) * -1)) rotate(calc(var(--a) * -1)); display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; color: #fff; padding: 0; }
.r-node-orb { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), rgba(10,20,60,.92) 60%); border: 2px solid var(--c); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 60%, transparent), inset 0 0 18px color-mix(in srgb, var(--c) 40%, transparent); transition: transform .3s var(--ease), box-shadow .3s; position: relative; }
.r-node-orb svg { width: 30px; height: 30px; color: var(--c); filter: drop-shadow(0 0 6px var(--c)); }
.r-node-label { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 600; text-align: center; line-height: 1.15; text-shadow: 0 2px 6px #000; }
.r-node:hover .r-node-orb { transform: scale(1.12); }
.r-node.is-charged .r-node-orb { background: radial-gradient(circle, var(--c), rgba(10,20,60,.9) 75%); box-shadow: 0 0 40px var(--c), 0 0 0 6px color-mix(in srgb, var(--c) 25%, transparent); }
.r-node.is-charged .r-node-orb svg { color: #fff; }
.r-beam { position: absolute; left: 50%; top: 50%; height: 2px; width: var(--rad); transform-origin: 0 50%; transform: rotate(calc(var(--a) - 90deg)); background: linear-gradient(90deg, transparent, var(--c)); opacity: .15; transition: opacity .4s; pointer-events: none; }
.r-beam.is-on { opacity: .9; box-shadow: 0 0 12px var(--c); }
@media (max-width: 900px) {
  .reactor-layout { grid-template-columns: 1fr; }
  .reactor-stage { order: -1; max-width: 460px; }
  .r-node { width: 92px; }
  .r-node-orb { width: 52px; height: 52px; }
  .r-node-label { font-size: .68rem; }
}

/* ================= LAB ================= */
.lab-console { display: grid; grid-template-columns: 280px 1fr; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-strong); background: var(--grad-panel); box-shadow: var(--shadow-deep), 0 0 60px rgba(31,107,255,.18); }
.lab-tabs { display: flex; flex-direction: column; padding: 14px; gap: 8px; background: rgba(3, 8, 26, .6); border-right: 1px solid var(--line); }
.lab-tabs button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--text-dim); transition: all .2s; }
.lab-tabs button span { display: flex; flex-direction: column; font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .06em; font-size: 1.02rem; font-weight: 600; line-height: 1.2; }
.lab-tabs button small { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: .78rem; color: var(--text-mute); font-weight: 500; }
.lab-tabs button .ico { width: 26px; height: 26px; color: var(--cyan); }
.lab-tabs button:hover { background: rgba(31,107,255,.15); color: #fff; }
.lab-tabs button[aria-selected="true"] { background: linear-gradient(90deg, rgba(31,107,255,.4), rgba(31,107,255,.08)); border-color: var(--line-strong); color: #fff; box-shadow: inset 3px 0 0 var(--cyan); }
.lab-panels { padding: clamp(18px, 3vw, 34px); min-height: 520px; }
@media (max-width: 860px) {
  .lab-console { grid-template-columns: 1fr; }
  .lab-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .lab-tabs button { flex: 0 0 auto; padding: 10px 12px; }
  .lab-tabs button small { display: none; }
  .lab-tabs button[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--cyan); }
}

/* ================= ARCADE ================= */
.arcade { max-width: none; background: linear-gradient(180deg, transparent, rgba(30, 6, 26, .55) 30%, rgba(30, 6, 26, .55) 70%, transparent); }
.arcade > * { max-width: calc(var(--maxw) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.cabinets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cabinet { border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(180deg, #121a3f, #070b22); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 24px 60px -24px color-mix(in srgb, var(--c) 55%, transparent); display: flex; flex-direction: column; transition: transform .3s var(--ease); }
.cabinet:hover { transform: translateY(-6px); }
.cabinet-screen { position: relative; padding: 14px 14px 0; background: linear-gradient(180deg, #1a1030, #0a0f2a); }
.cabinet-screen::after { content: ''; position: absolute; inset: 14px 14px 0; border-radius: 12px 12px 0 0; background: repeating-linear-gradient(to bottom, rgba(0,0,0,.18) 0 2px, transparent 2px 4px); pointer-events: none; }
.cabinet-preview { width: 100%; aspect-ratio: 16 / 10; border-radius: 12px 12px 0 0; border: 2px solid color-mix(in srgb, var(--c) 60%, transparent); border-bottom: 0; background: #050a20; }
.cabinet-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.cabinet-kicker { font-family: var(--font-cond); letter-spacing: .2em; text-transform: uppercase; color: var(--c); font-size: .78rem; margin-bottom: 6px; }
.cabinet h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.45rem; margin-bottom: 10px; }
.cabinet p { color: var(--text-dim); font-size: .95rem; }
.cabinet-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.cabinet-meta li { font-size: .74rem; font-family: var(--font-cond); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; color: var(--text-dim); }
.cabinet .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 1000px) { .cabinets { grid-template-columns: 1fr; max-width: 620px; } }

/* ================= GALLERY ================= */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.challenges { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .challenges { grid-template-columns: 1fr; } }

/* ================= TOKEN NOTE ================= */
.token-note { padding-top: 0; }

/* ================= GATEWAY ================= */
.gateway { position: relative; overflow: hidden; isolation: isolate; padding: clamp(80px, 12vw, 160px) var(--gutter); background: linear-gradient(100deg, #0a0520 0%, #1a0b3a 30%, #0d2b7a 55%, #e9f0ff 88%, #ffffff 100%); }
.gateway::before { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 80px), radial-gradient(circle at 18% 50%, rgba(255,45,74,.35), transparent 40%); }
.gateway-meme { position: absolute; left: -2%; bottom: 0; width: min(40vw, 520px); z-index: -1; opacity: .9; filter: drop-shadow(0 0 40px rgba(255,45,74,.4)); }
.gateway-meme img { width: 100%; transform: scaleX(-1); }
.gateway-portal { position: absolute; left: 58%; top: 50%; width: min(90vw, 900px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1; pointer-events: none; }
.gateway-portal i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); animation: portal 5s linear infinite; }
.gateway-portal i:nth-child(2) { animation-delay: -1.66s; }
.gateway-portal i:nth-child(3) { animation-delay: -3.33s; }
@keyframes portal { from { transform: scale(.2); opacity: 0; } 30% { opacity: .8; } to { transform: scale(1); opacity: 0; } }
.gateway-content { max-width: 780px; margin-left: auto; margin-right: max(0px, calc((100vw - var(--maxw)) / 2)); position: relative; padding: clamp(24px, 4vw, 44px); border-radius: var(--r-lg); background: rgba(6, 14, 48, .72); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-deep); }
.gateway-kicker { font-family: var(--font-cond); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-size: .85rem; }
.gateway-title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2rem, 4.6vw, 3.6rem); margin-bottom: 16px; }
.gateway-title span { color: #fff; text-shadow: 0 0 30px rgba(255,255,255,.6); }
.gateway-copy { color: var(--text-dim); font-size: 1.05rem; }
.gateway-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 16px; }
.gw-side { padding: 18px; border-radius: var(--r-md); display: flex; flex-direction: column; gap: 4px; }
.gw-side strong { font-family: var(--font-display); text-transform: uppercase; font-size: 1.05rem; }
.gw-side span { font-size: .95rem; margin-bottom: 12px; }
.gw-side .btn { margin-top: auto; }
.gw-side--meme { background: linear-gradient(160deg, rgba(255,45,74,.28), rgba(40,10,60,.6)); border: 1px solid rgba(255,90,110,.5); }
.gw-side--real { background: linear-gradient(160deg, #ffffff, #dfe8ff); color: #0b1f5c; border: 1px solid #fff; }
.gw-side--real .btn-official { background: #0b2a8a; color: #fff; border-color: #0b2a8a; }
.gateway-fine { font-size: .8rem; color: var(--text-mute); margin: 0; }
@media (max-width: 760px) {
  .gateway { background: linear-gradient(180deg, #0a0520 0%, #1a0b3a 35%, #0d2b7a 70%, #c9d8ff 100%); }
  .gateway-split { grid-template-columns: 1fr; }
  .gateway-meme { width: 70vw; opacity: .35; }
}

/* ================= FOOTER ================= */
.site-footer { background: #02050f; border-top: 1px solid var(--line); padding: 56px var(--gutter) 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px 48px; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-domain { margin: 6px 0 2px; font-family: var(--font-cond); letter-spacing: .14em; color: #fff; }
.footer-line { font-family: var(--font-cond); letter-spacing: .1em; font-size: .85rem; color: var(--red); margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: center; }
.footer-nav a { color: var(--text-dim); font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.footer-disclaimer { grid-column: 1 / -1; padding: 18px 20px; border-radius: var(--r-md); border: 1px solid rgba(245,196,81,.4); background: rgba(245,196,81,.06); font-size: .9rem; color: var(--text-dim); }
.footer-disclaimer p:last-child { margin: 0; }
.footer-disclaimer strong { color: var(--gold); }
.footer-copy { grid-column: 1 / -1; color: var(--text-mute); font-size: .82rem; margin: 0; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* Clear play instructions and sharing */
.section-share { margin-top: 1.25rem; }
.tool-instructions, .share-help { color: var(--muted, #b8c7e8); line-height: 1.6; padding: 1rem; }
.how-to { max-width: 760px; margin: 1.5rem auto; text-align: left; line-height: 1.8; padding-left: 1.5rem; }
.match-console { max-width: 800px; margin: auto; padding: clamp(1rem,3vw,2rem); border: 1px solid #53698f; border-radius: 24px; background: #0b1332; }
.match-stats { display:flex; flex-wrap:wrap; gap:1rem 2rem; justify-content:center; margin:1rem 0; font-size:1.2rem; }
.match-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:1.5rem 0; }
.match-tile { min-height:100px; border:2px solid #395884; border-radius:14px; background:linear-gradient(140deg,#152956,#0b1430); color:#ffd36b; font:700 1.2rem var(--font-cond, sans-serif); cursor:pointer; }
.match-tile:focus-visible { outline:3px solid #35e0ff; outline-offset:3px; }
.match-tile.is-open { border-color:#35e0ff; background:#153555; color:white; }
.match-tile.is-matched { border-color:#78dba1; background:#173f32; color:#c8fadd; }
.match-actions { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }
.match-status { text-align:center; min-height:3rem; color:#c9d5f5; }
@media(max-width:540px) { .match-grid { grid-template-columns:repeat(3,1fr); gap:8px; } .match-tile { min-height:85px; font-size:1rem; } }

.fomo-paths { display:grid; gap:1.25rem; }
.fomo-path { padding:1.4rem; border:1px solid rgba(135,158,208,.3); border-radius:16px; background:rgba(10,19,46,.65); }
.fomo-path h3 { margin:0 0 .75rem; color:#ffd36b; }
.fomo-path p, .token-howto { color:#c9d5f5; line-height:1.7; }
.fomo-path .btn { margin-top:.8rem; }
.fomo-referral-note { display:block; margin-top:.7rem; color:#aab7d7; font-size:.8rem; }
.token-howto { padding:1.5rem 0 0; }
.token-howto ol { padding-left:1.3rem; }
.token-howto li { margin-bottom:.65rem; }

.match-tile { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; padding:10px; overflow-wrap:anywhere; line-height:1.15; }
.match-art { width:64px; height:64px; object-fit:cover; border-radius:10px; }
.match-icon { width:48px; height:48px; color:#35e0ff; }
.match-label { max-width:100%; font-size:1rem; }
@media(max-width:540px) { .match-art {width:48px;height:48px;} .match-icon {width:36px;height:36px;} .match-label {font-size:.85rem;} .match-tile {min-height:106px;} }

/* The project signature: gold ink, clear of character artwork and controls. */
.still-ai-stamp { display:block; width:100%; height:auto; transform:rotate(-5deg); filter:drop-shadow(0 2px 10px rgba(0,0,0,.35)); }
.hero-signature { width:clamp(210px,24vw,300px); margin:1.8rem 0 2rem; }
.signature-break { width:clamp(220px,30vw,340px); margin:2rem auto 3rem; padding:.75rem; }
@media(max-width:600px) { .hero-signature { width:220px; margin:1.4rem 0 1.8rem; } .signature-break {width:240px;margin:1.5rem auto 2rem;} }
