/* ==========================================================================
   SHAUNSGAMES — STUDIO THEME
   Neon / cyberpunk shell used by every studio page (home, games, about,
   careers, press, discord, privacy, 404). Game pages use their own theme
   (see /assets/css/protocol.css) so each title can have its own identity.
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
    --bg: #06070b;
    --bg-2: #0b0c12;
    --panel: rgba(255, 255, 255, 0.025);
    --panel-2: rgba(255, 255, 255, 0.05);
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: #e7e7ec;
    --muted: #8d8f9b;
    --dim: #868996;
    --green: #22ff88;
    --green-soft: rgba(34, 255, 136, 0.12);
    --purple: #c026d3;
    --purple-soft: rgba(192, 38, 211, 0.14);
    --radius: 18px;
    --display: 'Orbitron', system-ui, sans-serif;
    --body: 'Inter', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --nav-h: 76px;
    --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }

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

::selection { background: var(--green); color: #000; }

a { color: inherit; }
button, a { touch-action: manipulation; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 3000;
    background: var(--green); color: #000; padding: 10px 16px;
    font-family: var(--display); font-size: 0.75rem; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Ambient layers ---------- */
.bg-grid {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        linear-gradient(rgba(34,255,136,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(192,38,211,0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.bg-glow {
    position: fixed; inset: 0; z-index: -3; pointer-events: none;
    background:
        radial-gradient(900px 600px at 10% -10%, rgba(192,38,211,0.14), transparent 60%),
        radial-gradient(800px 600px at 110% 110%, rgba(34,255,136,0.08), transparent 60%),
        var(--bg);
}
.bg-noise {
    position: fixed; inset: -50%; z-index: 2000; pointer-events: none; opacity: 0.05;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
    0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
    40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
    80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.cursor-glow {
    position: fixed; left: 0; top: 0; width: 520px; height: 520px; z-index: -1;
    pointer-events: none; border-radius: 50%;
    background: radial-gradient(circle, rgba(34,255,136,0.07), transparent 60%);
    transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.6s ease;
}

.scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 1500;
    transform-origin: 0 50%; transform: scaleX(0);
    background: linear-gradient(90deg, var(--purple), var(--green));
    box-shadow: 0 0 12px var(--green);
}

/* ---------- Nav ---------- */
.nav {
    position: fixed; top: calc(16px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
    width: min(1200px, calc(100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right))); height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 14px 0 22px; z-index: 1000;
    background: rgba(8, 9, 14, 0.6);
    backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--line); border-radius: 999px;
    transition: top 0.4s var(--ease), background 0.4s ease, border-color 0.4s ease, height 0.4s var(--ease);
}
.nav.scrolled { top: calc(10px + env(safe-area-inset-top)); height: 64px; background: rgba(6, 7, 11, 0.85); border-color: var(--line-2); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 42px; width: auto; flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(192,38,211,0.8)); transition: transform 0.4s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand span { font-family: var(--display); font-weight: 900; font-size: 1.25rem; letter-spacing: 2px; color: #fff; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    position: relative; padding: 10px 14px; border-radius: 999px;
    font-family: var(--display); font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase;
    color: #b5b7c2; text-decoration: none; transition: color 0.25s ease, background 0.25s ease;
}
.nav-links a:hover { color: #fff; background: var(--panel-2); }
.nav-links a.active { color: var(--green); }
.nav-links a.active::before {
    content: ''; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 8px var(--green); transform: translateX(-50%);
}
.nav-cta {
    margin-left: 8px; padding: 10px 18px !important; color: #000 !important;
    background: var(--green) !important; font-weight: 700;
    box-shadow: 0 0 24px rgba(34,255,136,0.35);
}
.nav-cta:hover { box-shadow: 0 0 36px rgba(34,255,136,0.6); }

.nav-toggle {
    display: none; width: 46px; height: 46px; border-radius: 50%;
    background: var(--panel-2); border: 1px solid var(--line); cursor: pointer;
    position: relative;
}
.nav-toggle span {
    position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s ease, top 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 0; z-index: 990; display: flex; flex-direction: column;
    justify-content: center; padding: 120px 32px 48px; gap: 6px;
    background: rgba(5, 6, 10, 0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s;
}
.nav-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a {
    font-family: var(--display); font-size: clamp(1.6rem, 8vw, 2.4rem); font-weight: 700;
    color: #fff; text-decoration: none; letter-spacing: 2px; padding: 6px 0;
    opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.4s var(--ease), color 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--green); }
.nav-open .mobile-menu a { opacity: 1; transform: none; }
.nav-open .mobile-menu a:nth-child(2) { transition-delay: 0.04s; }
.nav-open .mobile-menu a:nth-child(3) { transition-delay: 0.08s; }
.nav-open .mobile-menu a:nth-child(4) { transition-delay: 0.12s; }
.nav-open .mobile-menu a:nth-child(5) { transition-delay: 0.16s; }
.nav-open .mobile-menu a:nth-child(6) { transition-delay: 0.2s; }
.nav-open .mobile-menu a:nth-child(7) { transition-delay: 0.24s; }
.mobile-menu small { margin-top: 28px; color: var(--dim); font-family: var(--mono); font-size: 0.75rem; }
.nav-open { overflow: hidden; }

/* ---------- Layout ---------- */
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.wrap-narrow { width: min(780px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 120px 0; position: relative; }
.section-tight { padding: 72px 0; }

.page-hero { padding: calc(var(--nav-h) + 110px) 0 60px; text-align: center; position: relative; }
.page-hero p.lead { max-width: 620px; margin: 22px auto 0; color: var(--muted); font-size: 1.1rem; }

/* ---------- Type ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--green);
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; box-shadow: 0 0 6px currentColor; }
.eyebrow.center::after { content: ''; width: 18px; height: 1px; background: currentColor; box-shadow: 0 0 6px currentColor; }
.eyebrow.purple { color: #e27bf0; }
.eyebrow.center { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }

.display {
    font-family: var(--display); font-weight: 900; color: #fff;
    font-size: clamp(2.6rem, 8vw, 6rem); letter-spacing: clamp(2px, 1vw, 10px); line-height: 1.02;
}
.h2 {
    font-family: var(--display); font-weight: 700; color: #fff;
    font-size: clamp(1.7rem, 4vw, 2.8rem); letter-spacing: 2px; line-height: 1.15;
}
.h3 { font-family: var(--display); font-weight: 700; color: #fff; font-size: 1.1rem; letter-spacing: 1.5px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.grad {
    background: linear-gradient(90deg, #fff 0%, #f3b4fb 45%, var(--green) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .h2 { margin: 18px 0 16px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Glitch text — uses data-text for the ghost layers */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
    content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
    opacity: 0.8; clip-path: inset(0 0 100% 0);
}
.glitch::before { color: var(--purple); transform: translate(-3px, 0); animation: glitchA 5s infinite steps(1); }
.glitch::after { color: var(--green); transform: translate(3px, 0); animation: glitchB 5s infinite steps(1); }
@keyframes glitchA {
    0%, 86%, 100% { clip-path: inset(0 0 100% 0); }
    87% { clip-path: inset(10% 0 70% 0); } 89% { clip-path: inset(55% 0 20% 0); }
    91% { clip-path: inset(30% 0 50% 0); } 93% { clip-path: inset(80% 0 5% 0); }
}
@keyframes glitchB {
    0%, 86%, 100% { clip-path: inset(0 0 100% 0); }
    88% { clip-path: inset(65% 0 10% 0); } 90% { clip-path: inset(15% 0 70% 0); }
    92% { clip-path: inset(40% 0 35% 0); }
}

/* Scramble target keeps its width stable */
[data-scramble] { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
    --c: var(--green);
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 30px; border-radius: 999px; cursor: pointer;
    font-family: var(--display); font-size: 0.78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    text-decoration: none; border: 1px solid var(--c); color: var(--c); background: rgba(34,255,136,0.05);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.25s var(--ease);
    overflow: hidden; isolation: isolate;
}
.btn:hover { background: var(--c); color: #000; box-shadow: 0 0 40px rgba(34,255,136,0.35); }
.btn-solid { background: var(--c); color: #000; box-shadow: 0 0 30px rgba(34,255,136,0.3); }
.btn-solid:hover { box-shadow: 0 0 50px rgba(34,255,136,0.6); }
.btn-ghost { --c: #fff; border-color: var(--line-2); background: var(--panel); }
.btn-ghost:hover { background: #fff; color: #000; box-shadow: 0 0 40px rgba(255,255,255,0.15); }
.btn-purple { --c: #e27bf0; background: var(--purple-soft); }
.btn-purple:hover { box-shadow: 0 0 40px rgba(192,38,211,0.45); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ---------- Cards ---------- */
.card {
    position: relative; border-radius: var(--radius); padding: 32px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    border: 1px solid var(--line); overflow: hidden;
    transition: border-color 0.35s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.card::before {
    /* spotlight that follows the pointer (set --mx/--my in JS) */
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s ease;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(34,255,136,0.09), transparent 45%);
}
.card:hover { border-color: rgba(34,255,136,0.3); }
.card:hover::before { opacity: 1; }
.card .h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card-num { font-family: var(--mono); font-size: 0.72rem; color: var(--green); letter-spacing: 3px; display: block; margin-bottom: 22px; opacity: 0.8; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.tag {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
    font-family: var(--mono); font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase;
    border: 1px solid var(--line-2); color: var(--muted); background: var(--panel);
}
.tag.green { color: var(--green); border-color: rgba(34,255,136,0.3); background: var(--green-soft); }
.tag.purple { color: #e27bf0; border-color: rgba(192,38,211,0.35); background: var(--purple-soft); }

.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34,255,136,0.6); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,255,136,0.6); } 70% { box-shadow: 0 0 0 10px rgba(34,255,136,0); } 100% { box-shadow: 0 0 0 0 rgba(34,255,136,0); } }

/* ---------- Home hero ---------- */
.hero {
    min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center;
    position: relative; overflow: hidden; padding: calc(var(--nav-h) + 60px) 0 120px;
}
.hero-floor {
    position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; z-index: -1;
    background:
        linear-gradient(rgba(34,255,136,0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(192,38,211,0.35) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: perspective(500px) rotateX(62deg);
    transform-origin: 50% 0;
    mask-image: linear-gradient(transparent, #000 40%, transparent 95%);
    -webkit-mask-image: linear-gradient(transparent, #000 40%, transparent 95%);
    animation: floorMove 4s linear infinite;
    opacity: 0.35;
}
@keyframes floorMove { from { background-position: 0 0, 0 0; } to { background-position: 0 80px, 0 0; } }
.hero-sun {
    position: absolute; left: 50%; top: 42%; width: min(620px, 90vw); aspect-ratio: 1; z-index: -2;
    transform: translate(-50%, -50%); border-radius: 50%;
    background: radial-gradient(circle, rgba(192,38,211,0.35), rgba(192,38,211,0.05) 55%, transparent 70%);
    filter: blur(10px);
}
.hero-logo { width: clamp(110px, 16vw, 190px); height: auto; margin: 0 auto 28px; filter: drop-shadow(0 0 30px rgba(192,38,211,0.8)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero .display { margin: 20px 0 18px; }
.hero-sub { color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); letter-spacing: 1px; }
.hero-sub b { color: var(--text); font-weight: 500; }
.hero .btn-row { margin-top: 42px; }
.hero-hint {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    font-family: var(--mono); font-size: 0.7rem; color: var(--dim); letter-spacing: 2px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-hint .line { width: 1px; height: 40px; background: linear-gradient(var(--green), transparent); animation: scrollHint 2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollHint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
kbd {
    font-family: var(--mono); font-size: 0.72em; padding: 2px 7px; border-radius: 6px;
    border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
}

/* ---------- Marquee ticker ---------- */
.ticker {
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: rgba(0,0,0,0.4); overflow: hidden; white-space: nowrap; position: relative;
}
.ticker-track { display: inline-flex; gap: 48px; padding: 16px 0; animation: marquee 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font-family: var(--display); font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 48px; }
.ticker span::after { content: '✦'; color: var(--green); font-size: 0.7rem; }
.ticker span b { color: #fff; font-weight: 700; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Featured game (home) ---------- */
.feature-game {
    display: grid; grid-template-columns: 1.15fr 1fr; border-radius: 24px; overflow: hidden;
    border: 1px solid var(--line); background: #0a0b10; text-decoration: none; color: inherit;
    transition: border-color 0.4s ease, box-shadow 0.4s ease; position: relative;
}
.feature-game:hover { border-color: rgba(240,237,232,0.45); box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(240,237,232,0.1); }
.feature-media { position: relative; min-height: 460px; overflow: hidden; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s ease; filter: saturate(0.9); }
.feature-game:hover .feature-media img { transform: scale(1.06); filter: saturate(1.1); }
.feature-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, #0a0b10), linear-gradient(transparent 60%, rgba(10,11,16,0.8)); }
.feature-media .tag { position: absolute; top: 20px; left: 20px; z-index: 2; backdrop-filter: blur(8px); }
.feature-body { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; position: relative; }
.feature-body::before {
    /* the corporate theme "bleeding" into the studio shell */
    content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.6s ease;
    background: linear-gradient(135deg, rgba(240,237,232,0.07), transparent 60%);
}
.feature-game:hover .feature-body::before { opacity: 1; }
.feature-body .game-kicker { font-family: 'DM Sans', var(--body); font-size: 0.72rem; letter-spacing: 4px; text-transform: uppercase; color: #c8b89a; }
.feature-body h3 { font-family: 'DM Sans', var(--body); font-weight: 300; font-size: clamp(2rem, 4vw, 3rem); color: #f0ede8; letter-spacing: -1px; line-height: 1.05; }
.feature-body h3 b { font-weight: 600; }
.feature-body p { color: var(--muted); }
.feature-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-link { font-family: var(--display); font-size: 0.75rem; letter-spacing: 2px; color: var(--green); display: inline-flex; gap: 10px; align-items: center; margin-top: 8px; }
.feature-link .arrow { transition: transform 0.3s var(--ease); }
.feature-game:hover .feature-link .arrow { transform: translateX(6px); }

/* ---------- Stats / counters ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.stat { padding: 34px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--display); font-weight: 900; font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: #fff; display: block; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-num.green { color: var(--green); text-shadow: 0 0 24px rgba(34,255,136,0.4); }
.stat-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: 8px; display: block; }

/* ---------- Devlog feed (home) ---------- */
.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feed-item { display: flex; flex-direction: column; gap: 12px; text-decoration: none; min-height: 230px; }
.feed-item .feed-id { font-family: var(--mono); font-size: 0.7rem; color: var(--green); letter-spacing: 2px; }
.feed-item .feed-date { font-family: var(--mono); font-size: 0.7rem; color: var(--dim); letter-spacing: 1px; }
.feed-item h4 { font-family: var(--display); font-size: 1rem; color: #fff; letter-spacing: 1px; line-height: 1.35; }
.feed-item p { color: var(--muted); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feed-item .read { margin-top: auto; font-family: var(--display); font-size: 0.7rem; letter-spacing: 2px; color: var(--green); }
.feed-item.skeleton h4, .feed-item.skeleton p { background: var(--panel-2); color: transparent; border-radius: 6px; }

/* ---------- Timeline (about) ---------- */
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--green), var(--purple) 70%, transparent); }
.tl-item { position: relative; padding-bottom: 42px; }
.tl-item::before {
    content: ''; position: absolute; left: -33px; top: 6px; width: 11px; height: 11px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--green); box-shadow: 0 0 10px var(--green);
}
.tl-item.future::before { border-color: var(--purple); box-shadow: 0 0 10px var(--purple); border-style: dashed; }
.tl-item.now::before { background: var(--green); animation: pulse 2s infinite; }
.tl-date { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 2px; color: var(--green); text-transform: uppercase; }
.tl-item.future .tl-date { color: #e27bf0; }
.tl-item h4 { font-family: var(--display); color: #fff; font-size: 1.05rem; letter-spacing: 1px; margin: 6px 0; }
.tl-item p { color: var(--muted); font-size: 0.95rem; max-width: 560px; }

/* ---------- Prose ---------- */
.prose p { color: #c4c6cf; font-size: 1.05rem; line-height: 1.85; margin-bottom: 20px; }
.prose p strong { color: #fff; font-weight: 600; }
.prose em { color: #f3b4fb; font-style: normal; }
.prose h2 { font-family: var(--display); color: #fff; font-size: 1.1rem; letter-spacing: 2px; text-transform: uppercase; margin: 48px 0 16px; }
.prose a { color: var(--green); text-decoration: none; border-bottom: 1px solid rgba(34,255,136,0.35); }
.prose a:hover { border-bottom-color: var(--green); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.top { align-items: start; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; border-radius: 28px; padding: 80px 48px; text-align: center; overflow: hidden;
    border: 1px solid rgba(192,38,211,0.3);
    background:
        radial-gradient(600px 300px at 50% 0%, rgba(192,38,211,0.25), transparent 70%),
        radial-gradient(600px 300px at 50% 100%, rgba(34,255,136,0.12), transparent 70%),
        #0a0a12;
}
.cta-band .h2 { margin: 18px 0 14px; }
.cta-band p { color: var(--muted); max-width: 540px; margin: 0 auto 36px; }

/* ---------- Discord directory ---------- */
.directory { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dir-cat h3 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.channel { display: flex; gap: 14px; padding: 12px 14px; border-radius: 10px; transition: background 0.2s ease; }
.channel:hover { background: var(--panel-2); }
.channel-name { font-family: var(--mono); font-size: 0.88rem; color: #fff; white-space: nowrap; min-width: 210px; }
.channel-name .hash { color: var(--green); margin-right: 4px; }
.channel-desc { color: var(--muted); font-size: 0.88rem; }

.ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.rank { text-align: left; padding: 24px 20px; }
.rank-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--dot, #888); box-shadow: 0 0 12px var(--dot, #888); margin-bottom: 18px; }
.rank-level { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
.rank-name { font-family: var(--display); font-size: 0.95rem; color: #fff; letter-spacing: 1px; margin: 6px 0 10px; }
.rank p { font-size: 0.85rem; }

/* ---------- Games catalog ---------- */
.catalog { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.game-card {
    border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #0a0b10;
    text-decoration: none; color: inherit; display: flex; flex-direction: column;
    transition: transform 0.5s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d; will-change: transform;
}
.game-card:hover { border-color: rgba(240,237,232,0.4); box-shadow: 0 30px 70px rgba(0,0,0,0.55); }
.game-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.game-art picture { display: block; height: 100%; }
.game-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.game-card:hover .game-art img { transform: scale(1.06); }
.game-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 50%, #0a0b10); }
.game-art .tag { position: absolute; top: 16px; left: 16px; z-index: 2; backdrop-filter: blur(8px); }
.game-info { padding: 28px 30px 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.game-info h3 { font-family: 'DM Sans', var(--body); font-weight: 400; font-size: 1.9rem; color: #f0ede8; letter-spacing: -0.5px; }
.game-info p { color: var(--muted); font-size: 0.95rem; }
.game-info .feature-link { margin-top: auto; padding-top: 10px; }

.game-card.locked { cursor: pointer; }
.game-card.locked .game-art {
    background:
        repeating-linear-gradient(45deg, rgba(192,38,211,0.07) 0 12px, transparent 12px 24px),
        radial-gradient(circle at 50% 50%, rgba(192,38,211,0.2), transparent 70%), #0a0a12;
    display: grid; place-items: center;
}
.lock-glyph { font-family: var(--mono); font-size: clamp(2rem, 6vw, 3.4rem); color: rgba(226,123,240,0.7); letter-spacing: 6px; text-shadow: 0 0 30px rgba(192,38,211,0.8); z-index: 1; }
.game-card.locked h3 { font-family: var(--mono); color: #e27bf0; font-size: 1.4rem; letter-spacing: 3px; }
.redact { background: #e7e7ec; color: transparent; border-radius: 2px; user-select: none; padding: 0 2px; }
.game-card.locked .decrypt-out { font-family: var(--mono); font-size: 0.8rem; color: var(--green); min-height: 1.4em; }
.game-card.locked.denied { animation: shake 0.4s; border-color: rgba(255,60,90,0.6); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- Press ---------- */
.fact-table { width: 100%; border-collapse: collapse; }
.split > * { min-width: 0; }
.fact-table td { overflow-wrap: anywhere; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; vertical-align: top; }
.fact-table td:first-child { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); width: 38%; padding-right: 20px; padding-top: 17px; }
.asset { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.asset-thumb { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #111; display: grid; place-items: center; border: 1px solid var(--line); }
.asset-thumb { position: relative; }
.asset-thumb img, .asset-thumb picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.asset-thumb.contain img { object-fit: contain; padding: 24px; }
.asset .asset-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 1px; }
.asset:hover .asset-meta span:last-child { color: var(--green); }

.copy-box { position: relative; padding: 24px 26px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: #c4c6cf; line-height: 1.8; }
.copy-btn { position: absolute; top: 12px; right: 12px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 1px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); cursor: pointer; }
.copy-btn:hover { color: var(--green); border-color: rgba(34,255,136,0.4); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(3,4,7,0.85); padding: 80px 0 calc(40px + env(safe-area-inset-bottom)); position: relative; margin-top: 60px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 60px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 18px; max-width: 320px; }
.footer-brand .brand span { font-size: 1.05rem; }
.footer h5 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; font-weight: 500; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: #b5b7c2; text-decoration: none; font-size: 0.92rem; transition: color 0.2s ease; }
.footer ul a:hover { color: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.72rem; color: var(--dim); letter-spacing: 1px; }
.footer-bottom a { color: var(--dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--green); }
.term-btn { background: none; border: 1px solid var(--line-2); color: var(--muted); font-family: var(--mono); font-size: 0.72rem; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.term-btn:hover { color: var(--green); border-color: rgba(34,255,136,0.4); }

/* ---------- Terminal overlay ---------- */
.terminal {
    position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; padding: 20px;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
}
.terminal.open { opacity: 1; visibility: visible; }
.term-window {
    width: min(760px, 100%); height: min(480px, 80vh); display: flex; flex-direction: column;
    border-radius: 14px; overflow: hidden; border: 1px solid rgba(34,255,136,0.35);
    background: rgba(4, 8, 6, 0.96); box-shadow: 0 0 80px rgba(34,255,136,0.15), 0 40px 100px rgba(0,0,0,0.7);
    transform: translateY(12px) scale(0.98); transition: transform 0.3s var(--ease);
}
.terminal.open .term-window { transform: none; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(34,255,136,0.15); font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #333; display: inline-block; }
.term-bar i:nth-child(1) { background: #ff5f57; cursor: pointer; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 10px; }
.term-body { flex: 1; overflow-y: auto; padding: 18px 20px; font-family: var(--mono); font-size: 0.86rem; line-height: 1.65; color: #b9f5d3; }
.term-body .line { white-space: pre-wrap; word-break: break-word; }
.term-body .cmd { color: #fff; }
.term-body .cmd::before { content: 'guest@shaunsgames:~$ '; color: var(--green); }
.term-body .err { color: #ff6b8b; }
.term-body .dim { color: #5f8a72; }
.term-body .hl { color: #e27bf0; }
.term-input { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid rgba(34,255,136,0.15); font-family: var(--mono); font-size: 0.86rem; }
.term-input label { color: var(--green); white-space: nowrap; }
.term-input input { flex: 1; background: transparent; border: none; outline: none; color: #fff; font: inherit; font-size: 16px; caret-color: var(--green); min-width: 0; }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; right: calc(20px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 2600; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast {
    padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(34,255,136,0.35); background: rgba(6,10,8,0.95);
    color: #d6ffe9; font-family: var(--mono); font-size: 0.8rem; line-height: 1.5; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: toastIn 0.4s var(--ease);
}
.toast.out { animation: toastOut 0.35s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Theme wipe (studio -> game) ---------- */
.theme-wipe {
    position: fixed; inset: 0; z-index: 3000; pointer-events: none; background: #f0ede8;
    clip-path: circle(0% at var(--wx, 50%) var(--wy, 50%)); transition: clip-path 0.65s cubic-bezier(0.7, 0, 0.3, 1);
    display: grid; place-items: center;
}
.theme-wipe.go { clip-path: circle(150% at var(--wx, 50%) var(--wy, 50%)); }
.theme-wipe span { font-family: 'DM Sans', var(--body); color: #1a3a5c; letter-spacing: 5px; text-transform: uppercase; font-size: 0.8rem; opacity: 0; transition: opacity 0.3s ease 0.35s; }
.theme-wipe.go span { opacity: 1; }

/* ---------- Overdrive (konami) ---------- */
body.overdrive { animation: hue 6s linear infinite; }
body.overdrive .display, body.overdrive .h2 { text-shadow: 3px 0 var(--purple), -3px 0 var(--green); }
@keyframes hue { to { filter: hue-rotate(360deg); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; } .reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; } .reveal[data-delay="4"] { transition-delay: 0.4s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .feature-game { grid-template-columns: 1fr; }
    .feature-media { min-height: 280px; }
    .feature-media::after { background: linear-gradient(transparent 40%, #0a0b10); }
    .feature-body { padding: 32px 28px 40px; }
    .grid-3, .grid-4, .feed { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .split { grid-template-columns: 1fr; gap: 40px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .ladder { grid-template-columns: 1fr 1fr; }
    .directory { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    :root { --nav-h: 64px; }
    .nav { top: calc(10px + env(safe-area-inset-top)); width: calc(100% - 20px); padding: 0 8px 0 14px; }
    .brand img { height: 34px; }
    .brand span { font-size: 1rem; letter-spacing: 1.5px; }
    .section { padding: 84px 0; }
    .wrap, .wrap-narrow { width: calc(100% - 32px); }
    .grid-2, .grid-3, .grid-4, .feed, .catalog, .ladder { grid-template-columns: 1fr; }
    .card { padding: 26px 22px; }
    .cta-band { padding: 56px 22px; }
    .channel { flex-direction: column; gap: 2px; }
    .channel-name { min-width: 0; }
    .hero-hint { display: none; }
    .fact-table td:first-child { width: 42%; }
    .btn { padding: 14px 24px; }
    .btn-row.center .btn, .hero .btn { width: 100%; }
    .display { letter-spacing: 2px; }
    .hero .display, .page-hero .display { font-size: clamp(1.9rem, 9.2vw, 3rem); }
    .eyebrow { letter-spacing: 2px; font-size: 0.66rem; }
    .eyebrow.center::before, .eyebrow.center::after { display: none; }
}

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

/* ---------- Achievements toast ---------- */
.toast.ach { border-color: rgba(192,38,211,0.6); color: #f6d8fb; box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 26px rgba(192,38,211,0.35); }
.toast.ach::before { content: '\2605  '; color: var(--green); }

/* ---------- Break Room Arcade promo ---------- */
.arcade-promo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(ellipse at 80% 50%, rgba(192,38,211,0.12), transparent 60%), var(--panel); }
.arcade-promo .h2 { margin-bottom: 16px; }
.arcade-promo p { color: var(--muted); line-height: 1.75; margin-bottom: 26px; }
button.btn { font-family: var(--display); }
.arcade-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 1px; }
.arcade-stats b { color: var(--green); font-weight: 500; }
.arcade-stats .dim { color: var(--dim); }
.arcade-stats code { color: #e27bf0; }
.arcade-screen { position: relative; aspect-ratio: 16 / 8; width: 100%; border-radius: 14px; overflow: hidden; cursor: pointer; border: 1px solid rgba(192,38,211,0.4); background: linear-gradient(#07040f, #1a0726 62%, #05030a 62%); box-shadow: 0 0 40px rgba(192,38,211,0.18), inset 0 0 60px rgba(0,0,0,0.6); padding: 0; transition: box-shadow 0.3s ease, transform 0.3s var(--ease); }
.arcade-screen:hover, .arcade-screen:focus-visible { box-shadow: 0 0 60px rgba(192,38,211,0.4), inset 0 0 60px rgba(0,0,0,0.6); transform: translateY(-3px); outline: none; }
.arcade-screen::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.25) 0 1px, transparent 1px 3px); pointer-events: none; }
.as-sun { position: absolute; width: 30%; aspect-ratio: 1; right: 16%; top: 14%; border-radius: 50%; background: linear-gradient(#22ff88, #c026d3 60%, #5b0f6b); -webkit-mask: linear-gradient(#000 55%, transparent 55% 59%, #000 59% 67%, transparent 67% 72%, #000 72% 80%, transparent 80% 86%, #000 86%); mask: linear-gradient(#000 55%, transparent 55% 59%, #000 59% 67%, transparent 67% 72%, #000 72% 80%, transparent 80% 86%, #000 86%); opacity: 0.9; }
.as-grid { position: absolute; left: -50%; right: -50%; top: 62%; bottom: -40%; border-top: 2px solid var(--green); box-shadow: 0 -2px 14px rgba(34,255,136,0.6); background-image: linear-gradient(rgba(192,38,211,0.6) 1px, transparent 1px), linear-gradient(90deg, rgba(192,38,211,0.6) 1px, transparent 1px); background-size: 40px 22px; transform: perspective(200px) rotateX(55deg); transform-origin: top; animation: asGrid 1s linear infinite; }
@keyframes asGrid { to { background-position: 0 22px, 0 0; } }
.as-bot { position: absolute; left: 14%; bottom: 36%; width: 11%; aspect-ratio: 136 / 160; animation: asJump 1.6s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(192,38,211,0.5)); }
.as-bot svg { width: 100%; height: 100%; display: block; }
@keyframes asJump { 0%, 55%, 100% { transform: none; } 28% { transform: translateY(-70%); } }
.as-crate { position: absolute; bottom: 38%; left: 110%; width: 6%; aspect-ratio: 1; border: 2px solid #e36cf5; box-shadow: 0 0 12px rgba(192,38,211,0.7); background: #1a0821; animation: asCrate 1.6s linear infinite; }
.as-crate.b { animation-delay: 0.8s; height: auto; width: 5%; aspect-ratio: 0.8; }
@keyframes asCrate { to { left: -10%; } }
.as-label { position: absolute; left: 0; right: 0; top: 12%; text-align: center; font-family: var(--display); font-weight: 900; letter-spacing: 6px; font-size: clamp(0.8rem, 2vw, 1.05rem); color: #fff; text-shadow: 0 0 12px var(--purple); animation: asBlink 1.2s steps(2) infinite; }
@keyframes asBlink { 50% { opacity: 0.25; } }

/* ---------- Break Room Arcade game ---------- */
html.arcade-lock { overflow: hidden; }
.arcade { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; padding: 20px; background: rgba(3,2,6,0.86); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s; }
.arcade.open { opacity: 1; visibility: visible; }
.arcade-cab { width: auto; max-width: 100%; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: contain; border: 1px solid rgba(192,38,211,0.45); border-radius: 18px; background: #07050c; box-shadow: 0 0 80px rgba(192,38,211,0.25), 0 40px 100px rgba(0,0,0,0.7); overflow: hidden; transform: scale(0.96); transition: transform 0.35s var(--ease); }
.arcade.open .arcade-cab { transform: none; }
.arcade-top { display: flex; align-items: center; gap: 22px; padding: 14px 18px; border-bottom: 1px solid rgba(192,38,211,0.25); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 2px; color: var(--muted); }
.arcade-title { font-family: var(--display); font-weight: 700; color: #fff; letter-spacing: 3px; margin-right: auto; }
.arcade-title b { color: var(--green); }
.arcade-score b { color: var(--green); font-weight: 500; font-variant-numeric: tabular-nums; margin-left: 6px; }
.arcade-x { background: none; border: 1px solid var(--line-2); color: var(--muted); width: 32px; height: 32px; border-radius: 8px; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.arcade-x:hover { color: #fff; border-color: #fff; }
.arcade canvas { display: block; margin: 0 auto; max-width: 100%; touch-action: none; outline: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.arcade-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 12px 18px; border-top: 1px solid rgba(192,38,211,0.25); font-family: var(--mono); font-size: 0.66rem; color: var(--dim); letter-spacing: 1px; }
.arcade-foot kbd { font-family: var(--mono); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; color: var(--muted); }

/* ---------- Green rain ---------- */
.rain { position: fixed; inset: 0; z-index: 2400; cursor: pointer; transition: opacity 0.5s ease; }
.rain.out { opacity: 0; }

@media (max-width: 860px) {
    .arcade-promo { grid-template-columns: 1fr; padding: 28px 22px; gap: 30px; }
    .arcade-screen { order: -1; }
    .arcade-top { gap: 12px; font-size: 0.64rem; flex-wrap: wrap; }
    .arcade-title { width: 100%; }
    .arcade-foot span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .as-grid, .as-bot, .as-crate, .as-label { animation: none; }
    .as-crate { left: 60%; }
    .as-crate.b { display: none; }
}

/* =====================================================================
   Studio pages refresh
   ===================================================================== */
.game-info .game-kicker, .game-kicker { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 3px; text-transform: uppercase; color: #c8b89a; }
.catalog-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game-card.feature { grid-column: 1 / -1; flex-direction: row; }
.game-card.feature .game-art { flex: 1.25; aspect-ratio: auto; min-height: 380px; }
.game-card.feature .game-art::after { background: linear-gradient(90deg, transparent 55%, #0a0b10); }
.game-card.feature .game-info { flex: 1; justify-content: center; padding: 44px 44px; }
.game-card.feature h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
button.game-card { font: inherit; text-align: left; padding: 0; cursor: pointer; width: 100%; }
.arcade-card:hover { border-color: rgba(192,38,211,0.55); box-shadow: 0 30px 70px rgba(0,0,0,0.55), 0 0 40px rgba(192,38,211,0.2); }
.arcade-art { background: linear-gradient(#07040f, #1a0726 62%, #05030a 62%); }
.arcade-art::after { display: none; }
.decrypt-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(192,38,211,0.15); z-index: 2; }
.decrypt-bar i { display: block; height: 100%; width: 0; background: var(--green); box-shadow: 0 0 10px var(--green); }
.game-card.locked.decrypting .lock-glyph { animation: glyphFlicker 0.25s steps(2) infinite; }
@keyframes glyphFlicker { 50% { opacity: 0.4; } }
.game-card.locked.granted { border-color: rgba(34,255,136,0.45); cursor: default; }
.game-card.locked.granted .lock-glyph { color: var(--green); text-shadow: 0 0 30px rgba(34,255,136,0.8); }
.redact { transition: background 0.6s ease, color 0.6s ease; }
.redact.open { background: transparent; color: var(--green); }

.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.glance > div { align-content: start; padding: 24px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.glance > div:nth-child(4n) { border-right: none; }
.glance > div:nth-last-child(-n+4) { border-bottom: none; }
.glance span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--dim); }
.glance b { color: #fff; font-weight: 500; font-size: 1rem; }

.tracker { list-style: none; display: grid; gap: 0; position: relative; padding-left: 30px; }
.tracker::before { content: ''; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--green) 62%, rgba(192,38,211,0.6) 62%); }
.tracker li { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 12px; }
.tracker li::before { content: ''; position: absolute; left: -29px; top: 19px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--dim); background: var(--bg); }
.tracker li.done::before { border-color: var(--green); background: var(--green); box-shadow: 0 0 10px var(--green); }
.tracker li.now { background: var(--green-soft); border: 1px solid rgba(34,255,136,0.3); }
.tracker li.now::before { border-color: var(--green); animation: pulse 2s infinite; }
.tracker li.goal::before { border-color: var(--purple); border-style: dashed; box-shadow: 0 0 10px var(--purple); }
.tracker b { color: #fff; font-weight: 500; font-size: 0.98rem; }
.tracker li:not(.done):not(.now) b { color: var(--muted); }
.tracker span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); white-space: nowrap; padding-top: 3px; }
.tracker li.done span, .tracker li.now span { color: var(--green); }
.tracker li.goal span { color: #e27bf0; }

.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); transition: border-color 0.3s ease, background 0.3s ease; }
.faq-item[open] { border-color: rgba(34,255,136,0.3); background: rgba(34,255,136,0.03); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; color: #fff; font-weight: 500; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-family: var(--mono); color: var(--green); font-size: 1.2rem; transition: transform 0.3s var(--ease); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 14px; }
.faq-item p { padding: 0 24px 22px; color: var(--muted); line-height: 1.75; }
.faq-item a { color: var(--green); }

.link-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; transition: border-color 0.3s ease, transform 0.3s var(--ease); }
.link-card:hover { border-color: rgba(34,255,136,0.35); transform: translateY(-4px); }
.link-card .feature-link { margin-top: auto; padding-top: 14px; font-size: 0.72rem; }
.feature-link { font-family: var(--mono); letter-spacing: 2px; color: var(--green); }

.status-tag { font: inherit; font-family: var(--mono); cursor: default; vertical-align: middle; }
.status-tag.flipped { color: var(--green); border-color: rgba(34,255,136,0.4); background: var(--green-soft); }
.redacted-listing { border: 1px dashed rgba(192,38,211,0.4); border-radius: var(--radius); padding: 28px 30px; cursor: pointer; background: repeating-linear-gradient(135deg, rgba(192,38,211,0.04) 0 10px, transparent 10px 20px); transition: border-color 0.3s ease; }
.redacted-listing:hover, .redacted-listing:focus-visible { border-color: rgba(192,38,211,0.8); outline: none; }
.redacted-listing .h3 { margin: 10px 0; }
.redacted-listing .decrypt-out { font-family: var(--mono); font-size: 0.8rem; color: var(--green); margin-top: 10px; }
.redacted-listing.open { cursor: default; border-style: solid; }

.notice-grid { display: grid; gap: 14px; }
.notice-box { border-left: 3px solid var(--purple); background: var(--panel); border-radius: 0 14px 14px 0; padding: 20px 24px; }
.notice-box h3 { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 2.5px; text-transform: uppercase; color: #e27bf0; margin-bottom: 8px; font-weight: 500; }
.notice-box p { color: var(--muted); font-size: 0.93rem; line-height: 1.7; }
.notice-box b { color: #fff; font-weight: 500; }

.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.chip { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 99px; transition: color 0.2s, border-color 0.2s; }
.chip:hover { color: var(--green); border-color: rgba(34,255,136,0.4); }
.copy-k { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--dim); display: block; margin-bottom: 6px; }
.copy-box p { margin: 0; padding-right: 60px; }
.green-link { color: var(--green); text-decoration: none; }
.egg-cell { background: none; border: none; color: inherit; font: inherit; padding: 0; cursor: text; text-align: left; }

.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.swatch { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; text-align: left; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: inherit; font: inherit; cursor: pointer; transition: border-color 0.2s; }
.swatch:hover { border-color: var(--line-2); }
.swatch i { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 10px; background: var(--c); border: 1px solid var(--line-2); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 40%, transparent); }
.swatch b { color: #fff; font-weight: 500; font-size: 0.9rem; }
.swatch span { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 1px; }
.swatch.type { cursor: default; }
.swatch.type i { font-style: normal; font-family: var(--display); color: var(--green); display: grid; place-items: center; background: var(--bg-2); box-shadow: none; }

.social-list { list-style: none; display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.social-list li { display: flex; justify-content: space-between; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.social-list li:last-child { border-bottom: none; }
.social-list a { color: #fff; text-decoration: none; font-weight: 500; }
.social-list a:hover { color: var(--green); }
.social-list span { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); overflow-wrap: anywhere; text-align: right; }

.perk-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.perk { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--panel); display: grid; gap: 6px; }
.perk b { font-family: var(--display); color: var(--green); letter-spacing: 2px; font-size: 0.9rem; text-transform: uppercase; }
.perk span { color: var(--muted); font-size: 0.9rem; }
.bot-card { display: flex; gap: 20px; align-items: flex-start; }
.bot-av { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 0.8rem; font-weight: 700; color: #000; background: var(--green); box-shadow: 0 0 22px rgba(34,255,136,0.4); }
.bot-av.violet { background: var(--purple); color: #fff; box-shadow: 0 0 22px rgba(192,38,211,0.5); }
.secret-rank { margin-top: 14px; border-color: rgba(163,255,60,0.45); box-shadow: 0 0 40px rgba(163,255,60,0.12); opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.secret-rank.in { opacity: 1; transform: none; }
.secret-rank .rank-name { color: #a3ff3c; }

.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--nav-h) + 30px); display: grid; gap: 4px; }
.legal-toc .card-num { margin-bottom: 10px; }
.legal-toc a { color: var(--muted); text-decoration: none; font-size: 0.85rem; padding: 6px 10px; border-radius: 8px; border-left: 2px solid transparent; }
.legal-toc a:hover { color: #fff; background: var(--panel); border-left-color: var(--green); }
.prose.legal { max-width: 760px; }
.prose.legal h2 { scroll-margin-top: calc(var(--nav-h) + 30px); font-size: 1rem; }
.prose.legal p { font-size: 1rem; }
.prose ul { margin: 0 0 20px 0; padding-left: 22px; color: #c4c6cf; line-height: 1.8; }
.prose li { margin-bottom: 8px; }
.prose li strong { color: #fff; }
.legal-switch { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

.footer-fine { margin-top: 22px; font-size: 0.72rem; color: var(--dim); line-height: 1.6; max-width: 760px; }

/* ---------- Footer robot ---------- */
.footer-peek { position: absolute; right: clamp(20px, 8vw, 120px); bottom: 100%; width: 96px; height: 100px; z-index: 3; }
.peek-clip { position: absolute; inset: -30px -20px 0 -20px; overflow: hidden; }
.peek-bot { position: absolute; left: 20px; bottom: -4px; width: 96px; padding: 0; background: none; border: none; cursor: pointer; transform: translateY(105%); transition: transform 0.7s cubic-bezier(.3,1.5,.5,1); filter: drop-shadow(0 0 14px rgba(192,38,211,0.45)); }
.footer-peek.up .peek-bot { transform: translateY(0); }
.footer-peek.up .peek-bot:hover { transform: translateY(-6px); }
.peek-bot:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 12px; }
.peek-bot svg { width: 100%; height: auto; display: block; }
.peek-say { position: absolute; right: 104px; bottom: 56px; white-space: nowrap; font-family: var(--mono); font-size: 0.74rem; color: #f6d8fb; background: #120a1a; border: 1px solid rgba(192,38,211,0.5); padding: 8px 12px; border-radius: 12px 12px 2px 12px; opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s; pointer-events: none; }
.footer-peek.talking .peek-say { opacity: 1; transform: none; }

/* ---------- Screensaver ---------- */
.saver { position: fixed; inset: 0; z-index: 2550; background: rgba(2,2,5,0.94); animation: saverIn 0.8s ease; }
.saver.out { opacity: 0; transition: opacity 0.4s ease; }
@keyframes saverIn { from { opacity: 0; } }
.saver-bot { position: absolute; left: 0; top: 0; width: 150px; will-change: transform; filter: drop-shadow(0 0 18px rgba(192,38,211,0.7)); }
.saver-bot svg { width: 100%; height: auto; display: block; }
.saver-tip { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-family: var(--mono); font-size: 0.72rem; color: var(--dim); letter-spacing: 2px; text-transform: uppercase; }

/* ---------- Developer commentary ---------- */
.dev-pin { position: absolute; top: 10px; right: 10px; z-index: 5; width: 26px; height: 26px; border-radius: 50%; border: none; background: var(--green); color: #000; font-family: var(--mono); font-weight: 700; font-size: 0.8rem; cursor: pointer; box-shadow: 0 0 0 4px rgba(34,255,136,0.25), 0 0 18px rgba(34,255,136,0.6); animation: pinPulse 1.8s ease-in-out infinite; }
@keyframes pinPulse { 50% { box-shadow: 0 0 0 8px rgba(34,255,136,0.08), 0 0 18px rgba(34,255,136,0.6); } }
.dev-pin.after { position: relative; top: auto; right: auto; display: block; margin: -18px auto 18px; }
.dev-tip { position: absolute; z-index: 2700; max-width: min(360px, calc(100vw - 24px)); padding: 14px 16px; border-radius: 12px; background: #07110c; border: 1px solid rgba(34,255,136,0.5); color: #d6ffe9; font-size: 0.86rem; line-height: 1.6; box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
.dev-tip span { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 2.5px; color: var(--green); margin-bottom: 6px; }

.hero-logo.poked { animation: poked 0.7s var(--ease); }
@keyframes poked { 0% { transform: rotate(0); } 25% { transform: rotate(-14deg) scale(1.08); } 50% { transform: rotate(10deg) scale(0.95); } 75% { transform: rotate(-5deg); } 100% { transform: none; } }

/* ---------- Halloween ---------- */
body.halloween { --green: #ff8a1f; --green-soft: rgba(255,138,31,0.12); }

@media (max-width: 980px) {
    .game-card.feature { flex-direction: column; }
    .game-card.feature .game-art { min-height: 0; aspect-ratio: 16 / 10; }
    .game-card.feature .game-art::after { background: linear-gradient(transparent 50%, #0a0b10); }
    .game-card.feature .game-info { padding: 28px 30px 32px; }
    .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .glance > div:nth-child(4n) { border-right: 1px solid var(--line); }
    .glance > div:nth-child(2n) { border-right: none; }
    .glance > div:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
    .glance > div:nth-last-child(-n+2) { border-bottom: none; }
    .swatches, .perk-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .legal-layout { grid-template-columns: 1fr; gap: 24px; }
    .legal-toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
    .legal-toc .card-num { width: 100%; }
    .legal-toc a { border: 1px solid var(--line); border-radius: 99px; font-size: 0.75rem; padding: 6px 12px; }
}
@media (max-width: 640px) {
    .catalog-3 { grid-template-columns: 1fr; }
    .swatches, .perk-row { grid-template-columns: 1fr; }
    .tracker li { flex-direction: column; gap: 2px; }
    .footer-peek { width: 72px; height: 76px; }
    .peek-bot { width: 72px; }
    .peek-say { right: 78px; }
    .saver-bot { width: 110px; }
    .bot-card { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .peek-bot { transition: none; }
    .dev-pin, .hero-logo.poked, .tracker li.now::before, .game-card.locked.decrypting .lock-glyph { animation: none; }
    .secret-rank { transition: none; }
}

/* =====================================================================
   BYTE, the studio robot companion
   ===================================================================== */
.footer-peek.duck .peek-bot { transform: translateY(105%) !important; transition-duration: 0.25s; }
.footer-peek.away .peek-bot { transform: translateY(105%) !important; }
.footer-peek.away .peek-say { display: none; }
.footer-peek.leap .peek-bot { transform: translateY(-140%) scale(0.6) !important; transition: transform 0.8s cubic-bezier(.3,1.5,.5,1); }

.byte { --x: 0px; --look: 0deg; position: fixed; right: calc(14px + env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 2540; width: 86px; transform: translateX(var(--x)); }
.byte-bot { display: block; width: 86px; padding: 0; background: none; border: none; cursor: pointer; filter: drop-shadow(0 0 14px rgba(192,38,211,0.5)) drop-shadow(0 6px 10px rgba(0,0,0,0.5)); }
.byte-bot:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 14px; }
.byte-svg { display: block; transform: rotate(var(--look)); transform-origin: 50% 90%; transition: transform 0.4s var(--ease); animation: byteBob 3.2s ease-in-out infinite; }
.byte-svg svg { width: 100%; height: auto; display: block; }
.byte.walking .byte-svg { animation: byteWalk 0.26s ease-in-out infinite; transform: none; }
.byte.dancing .byte-svg { animation: byteDance 0.34s ease-in-out infinite; }
.byte.hop .byte-bot { animation: byteHop 0.55s cubic-bezier(.3,1.6,.5,1); }
.byte.arrive { animation: byteArrive 1.2s cubic-bezier(.3,1.4,.5,1); }
.byte.leaving { animation: byteLeave 0.5s ease-in forwards; }
@keyframes byteBob { 50% { translate: 0 -4px; } }
@keyframes byteWalk { 50% { translate: 0 -3px; } }
@keyframes byteDance { 0%, 100% { rotate: -8deg; } 50% { rotate: 8deg; translate: 0 -6px; } }
@keyframes byteHop { 40% { transform: translateY(-22px) scale(1.04, 0.96); } 70% { transform: translateY(0) scale(1.06, 0.92); } }
@keyframes byteArrive { 0% { transform: translateY(160px) scale(0.6); opacity: 0; } 60% { opacity: 1; } 100% { transform: translateX(var(--x)); } }
@keyframes byteLeave { to { transform: translateY(160px) scale(0.6); opacity: 0; } }
.byte-bubble { position: absolute; right: 70px; bottom: 82px; width: max-content; max-width: min(280px, calc(100vw - 110px)); padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: #120a1a; border: 1px solid rgba(192,38,211,0.6); color: #f6d8fb; font-family: var(--mono); font-size: 0.76rem; line-height: 1.5; box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 18px rgba(192,38,211,0.25); opacity: 0; transform: translateY(8px) scale(0.96); transform-origin: 100% 100%; transition: opacity 0.25s, transform 0.25s var(--ease); pointer-events: none; cursor: pointer; }
.byte.speaking .byte-bubble { opacity: 1; transform: none; pointer-events: auto; }
.byte-heart { position: absolute; bottom: 70px; color: #e98bf7; font-size: 15px; pointer-events: none; text-shadow: 0 0 8px #c026d3; animation: byteHeart 1.6s ease-out forwards; }
@keyframes byteHeart { from { transform: translateY(0) scale(0.6); opacity: 1; } to { transform: translateY(-70px) scale(1.2); opacity: 0; } }
body.has-byte .toast-stack { right: auto; left: calc(20px + env(safe-area-inset-left)); }

.byte-panel { position: fixed; right: calc(14px + env(safe-area-inset-right)); bottom: calc(130px + env(safe-area-inset-bottom)); z-index: 2545; width: min(360px, calc(100vw - 28px)); max-height: min(520px, calc(100vh - 170px)); display: flex; flex-direction: column; border-radius: 18px; background: rgba(9,7,14,0.97); border: 1px solid rgba(192,38,211,0.5); box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 40px rgba(192,38,211,0.2); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s; }
.byte-panel.open { opacity: 1; visibility: visible; transform: none; }
.byte-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(192,38,211,0.25); }
.byte-mini { width: 40px; flex: none; }
.byte-mini svg { width: 100%; height: auto; display: block; }
.byte-head > div { flex: 1; min-width: 0; display: grid; gap: 3px; }
.byte-head b { font-family: var(--display); color: #fff; letter-spacing: 3px; font-size: 0.85rem; }
.byte-lvl { font-family: var(--mono); font-size: 0.66rem; color: var(--muted); letter-spacing: 1px; }
.byte-meter { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.byte-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), var(--green)); box-shadow: 0 0 8px var(--green); transition: width 0.6s var(--ease); }
.byte-close { background: none; border: 1px solid var(--line-2); color: var(--muted); width: 30px; height: 30px; border-radius: 8px; font-size: 1.1rem; cursor: pointer; }
.byte-close:hover { color: #fff; }
.byte-log { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.byte-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 0.86rem; line-height: 1.5; }
.byte-msg.bot { align-self: flex-start; background: rgba(192,38,211,0.14); border: 1px solid rgba(192,38,211,0.3); color: #f3dcf8; border-bottom-left-radius: 4px; }
.byte-msg.you { align-self: flex-end; background: rgba(34,255,136,0.1); border: 1px solid rgba(34,255,136,0.3); color: #d6ffe9; border-bottom-right-radius: 4px; }
.byte-msg .byte-act { margin: 3px 4px 3px 0; }
.byte-act, .byte-quick button { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.5px; padding: 7px 11px; border-radius: 99px; border: 1px solid rgba(34,255,136,0.4); background: rgba(34,255,136,0.06); color: var(--green); cursor: pointer; }
.byte-act:hover, .byte-quick button:hover { background: rgba(34,255,136,0.16); }
.byte-act:disabled { opacity: 0.45; cursor: not-allowed; color: var(--muted); border-color: var(--line-2); }
.byte-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--line); }
.byte-form { display: flex; gap: 8px; padding: 10px 16px 6px; }
.byte-form input { flex: 1; min-width: 0; background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); border-radius: 10px; color: #fff; font: inherit; font-size: 16px; padding: 9px 12px; outline: none; }
.byte-form input:focus { border-color: rgba(34,255,136,0.5); }
.byte-form button { font-family: var(--display); font-size: 0.7rem; letter-spacing: 2px; padding: 0 14px; border-radius: 10px; border: none; background: var(--green); color: #000; cursor: pointer; font-weight: 700; }
.byte-note { padding: 2px 16px 12px; font-size: 0.66rem; color: var(--dim); }
.byte-point { outline: 3px solid var(--green) !important; outline-offset: 6px; border-radius: 12px; animation: bytePoint 1s ease-in-out 5; }
@keyframes bytePoint { 50% { outline-color: var(--purple); outline-offset: 12px; } }

/* arcade additions */
.arcade-cheer { flex: 1; min-width: 0; color: #e98bf7; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 1px; text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arcade-cheer.pop { animation: cheerPop 0.5s var(--ease); }
@keyframes cheerPop { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: none; opacity: 1; } }
.arcade-title { margin-right: 0; }
.arcade-menu { background: none; border: 1px solid rgba(34,255,136,0.4); color: var(--green); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 1px; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.arcade-menu[hidden] { display: none; }
.arcade-pad { display: none; gap: 8px; justify-content: center; padding: 12px; border-top: 1px solid rgba(192,38,211,0.25); }
.arcade-pad button { flex: 1; max-width: 90px; height: 52px; border-radius: 12px; border: 1px solid rgba(34,255,136,0.4); background: rgba(34,255,136,0.06); color: var(--green); font-family: var(--display); font-size: 0.9rem; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.arcade-pad button:active { background: rgba(34,255,136,0.25); }
@media (hover: none), (pointer: coarse) { .arcade-pad:not([hidden]) { display: flex; } }

@media (max-width: 640px) {
    .byte { width: 66px; }
    .byte-bot { width: 66px; }
    .byte-bubble { right: 54px; bottom: 64px; }
    .byte-panel { right: 10px; left: 10px; width: auto; bottom: calc(100px + env(safe-area-inset-bottom)); max-height: calc(100vh - 140px); }
    body.has-byte .toast-stack { left: 10px; right: 10px; max-width: none; top: calc(76px + env(safe-area-inset-top)); bottom: auto; }
    .arcade-cheer { order: 9; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .byte-svg, .byte.walking .byte-svg, .byte.dancing .byte-svg { animation: none; }
    .byte.hop .byte-bot, .byte.arrive, .byte-heart, .byte-point { animation: none; }
}

/* arcade cabinet v2 */
.arcade-stage { display: flex; justify-content: center; align-items: center; background: #05030a; }
.arcade-pad button.wide { max-width: 130px; font-size: 0.8rem; letter-spacing: 1px; }
.arcade-pad button.on { background: rgba(34,255,136,0.25); box-shadow: 0 0 18px rgba(34,255,136,0.35); }
.arcade.small { padding: 0; place-items: stretch; }
.arcade.small .arcade-cab { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; border: 0; display: flex; flex-direction: column; }
.arcade.small .arcade-top { padding: calc(10px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) 10px calc(14px + env(safe-area-inset-left)); }
.arcade.small .arcade-stage { flex: 1; min-height: 0; }
.arcade.small .arcade-foot { display: none; }
.arcade.small .arcade-pad { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.arcade.land .arcade-cab { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); }
.arcade.land .arcade-top { grid-column: 1 / -1; flex-wrap: nowrap; gap: 14px; padding-top: calc(6px + env(safe-area-inset-top)); padding-bottom: 6px; }
.arcade.land .arcade-title { display: none; }
.arcade.land .arcade-cheer { order: 0; flex: 1; flex-basis: auto; }
.arcade.land .arcade-pad { display: grid; grid-template-columns: repeat(2, 64px); align-content: center; gap: 8px; border-top: 0; border-left: 1px solid rgba(192,38,211,0.25); padding: 10px calc(12px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) 12px; }
.arcade.land .arcade-pad[hidden] { display: none; }
.arcade.land .arcade-pad button { max-width: none; width: 64px; height: 56px; }
.arcade.land .arcade-pad button.wide { grid-column: 1 / -1; width: auto; max-width: none; }
.arcade.land .arcade-pad button:only-child { grid-column: 1 / -1; width: 136px; height: 120px; }
@media (max-width: 640px) { .arcade.small .arcade-title { display: none; } .arcade.small .arcade-top { gap: 10px 14px; } }
html.arcade-lock .byte, html.arcade-lock .byte-panel, html.arcade-lock .byte-bubble { visibility: hidden; }
html.arcade-lock .toast-stack, html.arcade-lock body.has-byte .toast-stack { top: calc(8px + env(safe-area-inset-top)); bottom: auto; left: 50%; right: auto; transform: translateX(-50%); width: max-content; max-width: min(380px, calc(100vw - 20px)); pointer-events: none; }
html.arcade-lock .toast-stack .toast { padding: 8px 14px; font-size: 0.7rem; }
html.arcade-lock .toast-stack .toast:not(:last-child) { display: none; }
