/* ==========================================================================
   Stone Labs Studios
   Sibling brand of mattjohnston.io. Tokens below are copied from its
   styles/main.css so the two sites read as one family.
   ========================================================================== */

:root {
    --bg-deep: #0a0a0f;
    --bg-surface: #12121a;
    --bg-elevated: #1a1a24;
    --accent-primary: #00f0ff;
    --accent-secondary: #7c3aed;
    --accent-tertiary: #f472b6;
    --accent-gold: #ffd700;
    --accent-success: #10b981;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --gradient-glow: linear-gradient(135deg, #00f0ff 0%, #7c3aed 50%, #f472b6 100%);
    --gradient-subtle: linear-gradient(180deg, rgba(124, 58, 237, 0.1) 0%, rgba(0, 240, 255, 0.05) 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --display: 'Outfit', sans-serif;
    --body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: var(--body);
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: clip;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

/* Keep drifting/dragged toys from ever creating sideways scroll (mobile Chrome zooms out otherwise) */
html { overflow-x: hidden; }
main, .site-footer { overflow-x: clip; }

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
ul { list-style: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 3px; border-radius: 8px; }
section[tabindex="-1"]:focus, section[tabindex="-1"]:focus-visible { outline: none; }

.skip-to-content {
    position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
    background: var(--accent-primary); color: #000; padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px; font-weight: 600; z-index: 10002;
    text-decoration: none; transition: top 0.2s;
}
.skip-to-content:focus { top: 0; }

.gradient-text {
    background: var(--gradient-glow);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientDrift 8s ease-in-out infinite;
}

@keyframes gradientDrift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ==========================================================================
   Background (grid, orbs, drifting shapes, cursor glow, canvases)
   ========================================================================== */

.bg-grid {
    position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none; z-index: 0;
}

.bg-orb {
    position: fixed; border-radius: 50%; filter: blur(100px);
    opacity: 0.4; pointer-events: none; z-index: 0;
}
.orb-1 { width: 600px; height: 600px; background: var(--accent-secondary); top: -200px; right: -200px; animation: float 20s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; background: var(--accent-primary); bottom: -100px; left: -100px; animation: float 25s ease-in-out infinite reverse; }
.orb-3 { width: 300px; height: 300px; background: var(--accent-tertiary); top: 50%; left: 50%; transform: translate(-50%, -50%); animation: pulse 15s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, 50px) scale(1.1); }
    50% { transform: translate(0, 100px) scale(1); }
    75% { transform: translate(-50px, 50px) scale(0.9); }
}
@keyframes pulse {
    0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.4; transform: translate(-50%, -50%) scale(1.2); }
}

.drifters { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.drifter {
    position: absolute; left: var(--x); bottom: -60px; width: 18px; height: 18px;
    opacity: 0; animation: drift var(--t, 28s) linear var(--dl, 0s) infinite;
}
.d-square { border: 2px solid rgba(0, 240, 255, 0.35); border-radius: 4px; }
.d-diamond { border: 2px solid rgba(244, 114, 182, 0.35); border-radius: 3px; width: 14px; height: 14px; }
.d-ring { border: 2px solid rgba(124, 58, 237, 0.45); border-radius: 50%; }
.d-plus::before, .d-plus::after {
    content: ''; position: absolute; left: 50%; top: 50%; background: rgba(0, 240, 255, 0.4); border-radius: 2px;
}
.d-plus::before { width: 18px; height: 3px; transform: translate(-50%, -50%); }
.d-plus::after { width: 3px; height: 18px; transform: translate(-50%, -50%); }

@keyframes drift {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-115vh) rotate(360deg); opacity: 0; }
}

.cursor-glow {
    position: fixed; width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
    pointer-events: none; transform: translate(-50%, -50%); z-index: 0;
    left: -500px; top: -500px; transition: opacity 0.3s ease;
}

#constellation, #fxCanvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none;
}
#constellation { z-index: 1; }
#fxCanvas { z-index: 9999; }

.click-ripple {
    position: fixed; border-radius: 50%; width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.4) 0%, transparent 70%);
    pointer-events: none; transform: translate(-50%, -50%) scale(0);
    animation: rippleExpand 0.6s ease-out forwards; z-index: 9998;
}
@keyframes rippleExpand { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* ==========================================================================
   Nav
   ========================================================================== */

a, button { min-height: 44px; min-width: 44px; }

.site-nav {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 1.5rem 4rem;
    display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
    z-index: 1000;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo, .footer-logo {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--display); font-size: 1.5rem; font-weight: 800;
    letter-spacing: -0.02em; text-decoration: none; white-space: nowrap;
}
.logo span, .footer-logo span {
    background: var(--gradient-glow);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.logo-mark {
    width: 36px; height: 30px; flex: none;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.35));
    transition: transform 0.5s var(--spring);
}
.logo:hover .logo-mark, .footer-logo:hover .logo-mark { transform: rotate(-18deg) translateY(-3px) scale(1.08); }
.twinkle { transform-origin: 40px 6px; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.6); } }

.nav-links { display: flex; gap: 3rem; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; font-weight: 500;
    transition: color 0.3s ease; position: relative;
    display: inline-flex; align-items: center;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 6px; left: 0; width: 0; height: 2px;
    background: var(--gradient-glow); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    padding: 0.75rem 1.75rem; background: var(--gradient-glow); border: none; border-radius: 100px;
    color: var(--bg-deep); font-family: var(--display); font-weight: 700; font-size: 0.9rem;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    display: inline-flex; align-items: center;
    transition: transform 0.3s var(--spring), box-shadow 0.3s ease;
}
.nav-cta:hover { transform: translateY(-2px) rotate(-2deg); box-shadow: 0 10px 40px rgba(0, 240, 255, 0.3); }
.nav-cta:active { transform: translateY(0) scale(0.94); }

.mobile-menu-btn {
    display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 5px; z-index: 1001;
}
.mobile-menu-btn span { width: 25px; height: 2px; background: var(--text-primary); transition: all 0.3s ease; border-radius: 2px; }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    display: none; position: fixed; inset: 0; height: 100dvh;
    background: rgba(10, 10, 15, 0.98); backdrop-filter: blur(20px);
    z-index: 999; flex-direction: column; justify-content: center; align-items: center; gap: 1.25rem;
    opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 0.3s ease, visibility 0s linear 0.3s; padding: 2rem;
}
.mobile-menu.active { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity 0.3s ease, visibility 0s; }
.mobile-menu a {
    font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: var(--text-primary);
    text-decoration: none; padding: 0.75rem 1.5rem; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform 0.3s var(--spring), background 0.3s ease;
}
.mobile-menu a:not(.btn-primary):hover { background: rgba(0, 240, 255, 0.08); transform: scale(1.05); }
.mobile-menu a.btn-primary { margin-top: 0.75rem; border-radius: 100px; color: var(--bg-deep); font-weight: 700; padding: 1rem 2.5rem; }

/* ==========================================================================
   Buttons (gradient pills, mirrored from mattjohnston.io plus micro-interactions)
   ========================================================================== */

.btn-primary, .btn-secondary {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    padding: 1rem 2.5rem; border-radius: 100px;
    font-family: var(--display); font-size: 1rem; text-decoration: none; cursor: pointer;
    -webkit-user-select: none; user-select: none;
}
.btn-primary svg, .btn-secondary svg { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--spring); }

.btn-primary {
    background: var(--gradient-glow); background-size: 200% 100%; background-position: 0% 0%;
    border: none; color: var(--bg-deep); font-weight: 700;
    transition: transform 0.3s var(--spring), box-shadow 0.3s ease, background-position 0.5s ease;
}
.btn-primary::after {
    content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg); transition: left 0.6s ease;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 60px rgba(0, 240, 255, 0.4); background-position: 100% 0%; }
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover svg { transform: translateX(4px) rotate(-8deg); }
.btn-primary:active { transform: translateY(-1px) scale(0.96); box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3); }

.btn-secondary {
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); color: var(--text-primary); font-weight: 600;
    transition: transform 0.3s var(--spring), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.btn-secondary:hover {
    border-color: var(--accent-primary); background: rgba(0, 240, 255, 0.1);
    transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0, 240, 255, 0.15);
}
.btn-secondary:hover svg { transform: rotate(-12deg) scale(1.15); color: var(--accent-primary); }
.btn-secondary:active { transform: translateY(0) scale(0.96); }

.is-boing { animation: boing 0.5s var(--spring); }
@keyframes boing {
    0% { transform: scale(1); }
    30% { transform: scale(1.12, 0.88); }
    55% { transform: scale(0.94, 1.06); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 8rem 2rem 3rem; position: relative; z-index: 2;
}

.hero > * { animation: fadeInUp 0.8s ease both; }
.hero > :nth-child(2) { animation-delay: 0.1s; }
.hero > :nth-child(3) { animation-delay: 0.15s; }
.hero > :nth-child(4) { animation-delay: 0.2s; }
.hero > :nth-child(5) { animation-delay: 0.3s; }
.hero > :nth-child(6) { animation-delay: 0.4s; }
.hero > :nth-child(7) { animation-delay: 0.55s; }
.hero > :nth-child(8) { animation-delay: 0.65s; }
.hero > :nth-child(9) { animation-delay: 0.75s; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hero-profile { position: relative; margin-bottom: 2rem; z-index: 5; }

.hero-emblem, .figurine {
    touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none;
    background: none; border: 0; padding: 0;
}
.grab.is-grabbed { cursor: grabbing; z-index: 50; }
body.is-grabbing, body.is-grabbing * { cursor: grabbing !important; }

.hero-emblem {
    width: 140px; height: 140px; border-radius: 50%;
    display: grid; place-items: center; position: relative;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-deep), var(--bg-deep)) padding-box, var(--gradient-glow) border-box;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.3), 0 0 80px rgba(124, 58, 237, 0.2);
    transition: box-shadow 0.4s ease, scale 0.4s var(--spring);
}
.hero-emblem:hover { scale: 1.08; box-shadow: 0 0 60px rgba(0, 240, 255, 0.5), 0 0 120px rgba(124, 58, 237, 0.3); }
.hero-emblem.is-grabbed { scale: 1.12; }
.emblem-bob { display: grid; place-items: center; animation: breathe 4s ease-in-out infinite; }
.hero-emblem svg { width: 88px; height: 74px; filter: drop-shadow(0 8px 18px rgba(124, 58, 237, 0.45)); }

@keyframes breathe {
    0%, 100% { transform: translateY(0) rotate(-3deg) scale(1); }
    50% { transform: translateY(-6px) rotate(3deg) scale(1.04); }
}

.hero-profile-glow {
    position: absolute; top: 50%; left: 50%; width: 180px; height: 180px;
    background: var(--gradient-glow); border-radius: 50%; filter: blur(40px);
    opacity: 0.4; z-index: -1; transform: translate(-50%, -50%);
    animation: pulseGlow 4s ease-in-out infinite; pointer-events: none;
}
@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3); border-radius: 100px;
    font-size: 0.85rem; color: var(--accent-primary); margin-bottom: 2rem;
}
.hero-badge::before, .live-dot {
    content: ''; width: 8px; height: 8px; background: var(--accent-primary); border-radius: 50%;
    animation: blink 2s ease-in-out infinite; flex: none; display: inline-block;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-audience {
    font-family: var(--display); font-weight: 700; font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 0.2em; padding: 0.8rem 2rem; margin-bottom: 2rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05); border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px; color: var(--text-secondary); display: inline-block;
    backdrop-filter: blur(5px); position: relative; overflow: hidden;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--spring), box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.hero-audience:hover { color: var(--text-primary); border-color: rgba(255, 255, 255, 0.2); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.hero-audience::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: shine 4s infinite;
}
@keyframes shine { 0% { left: -100%; } 20% { left: 100%; } 100% { left: 100%; } }

.hero-title {
    font-family: var(--display); font-size: clamp(3rem, 8vw, 6rem); font-weight: 800;
    line-height: 1.05; letter-spacing: -0.03em; max-width: 900px; margin-bottom: 1.5rem;
}
.hero-title .gradient-text { display: inline-block; padding-bottom: 0.08em; }

.hero-subtitle { font-size: 1.25rem; color: var(--text-secondary); max-width: 600px; margin-bottom: 2.25rem; }

.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.25rem; }

.hero-hint {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1rem;
}
.hero-hint svg { width: 18px; height: 18px; color: var(--accent-primary); animation: wave 2.4s ease-in-out infinite; transform-origin: 70% 90%; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 80% { transform: rotate(10deg); } 90% { transform: rotate(-6deg); } }

.trust-strip {
    display: flex; align-items: center; justify-content: center; gap: 2rem;
    margin: 2rem 0 0; padding: 1.5rem 2rem;
    background: rgba(18, 18, 26, 0.6); border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 12px; backdrop-filter: blur(10px);
}
.trust-stat { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 140px; transition: transform 0.3s var(--spring); }
.trust-stat:hover { transform: translateY(-3px) scale(1.04); }
.trust-number {
    font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 1.2;
    background: var(--gradient-glow); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.trust-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem; }
.trust-divider { width: 1px; height: 40px; background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.3), transparent); }

/* ==========================================================================
   Ticker
   ========================================================================== */

.ticker {
    position: relative; z-index: 2; overflow: hidden;
    border-top: 1px solid rgba(0, 240, 255, 0.12); border-bottom: 1px solid rgba(0, 240, 255, 0.12);
    background: rgba(0, 240, 255, 0.03);
}
.ticker-track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group {
    display: flex; align-items: center; gap: 2.5rem; padding: 0.85rem 1.25rem; white-space: nowrap;
    color: var(--text-secondary); font-size: 0.92rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.ticker-group b { color: var(--accent-primary); font-weight: 700; }
.ticker-group svg { width: 14px; height: 14px; color: var(--accent-tertiary); flex: none; }
.ticker-group svg:nth-of-type(3n+2) { color: var(--accent-gold); }
.ticker-group svg:nth-of-type(3n) { color: #a78bfa; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: 8rem 2rem; position: relative; z-index: 2; }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }
.section-label {
    font-family: var(--display); font-size: 0.9rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.2em; color: var(--accent-primary); margin-bottom: 1rem;
}
.section-title { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 1rem; }
.section-subtitle { color: var(--text-secondary); font-size: 1.1rem; }

/* Scroll reveal: only hides things when JS is running */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s var(--spring); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Flagship feature card
   ========================================================================== */

.feature-card {
    --rx: 0deg; --ry: 0deg; --lift: 0px; --mx: 50%; --my: 50%;
    max-width: 1200px; margin: 0 auto; position: relative;
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center;
    padding: 2.5rem;
    background: rgba(18, 18, 26, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.12); border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
    transition: transform 0.5s var(--spring), border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(600px circle at var(--mx) var(--my), rgba(0, 240, 255, 0.08), transparent 45%), var(--gradient-subtle);
    opacity: 0.6; transition: opacity 0.3s ease;
}
.feature-card:hover { --lift: -6px; border-color: rgba(0, 240, 255, 0.35); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 240, 255, 0.08); }
.feature-card:hover::before { opacity: 1; }

.feature-art { position: relative; }
.feature-art-frame {
    display: block; border-radius: 20px; overflow: hidden; position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 50px rgba(124, 58, 237, 0.15);
}
.feature-art-frame::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 15, 0.55));
}
.feature-art-frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.8s ease; }
.feature-art-frame:hover img { transform: scale(1.05); }

.art-chip {
    position: absolute; top: 14px; left: 14px; z-index: 3;
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.45rem 0.85rem; border-radius: 100px;
    background: rgba(10, 10, 15, 0.75); border: 1px solid rgba(0, 240, 255, 0.3);
    backdrop-filter: blur(8px); font-size: 0.78rem; font-weight: 500; color: var(--text-primary);
    pointer-events: none;
}
.art-chip svg { width: 15px; height: 15px; color: var(--accent-primary); }

.figurine { position: absolute; z-index: 4; line-height: 0; }
.figurine img { width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.figurine--pengi { width: 190px; right: -34px; bottom: -48px; }
.figurine--lacey { width: 128px; left: -26px; bottom: -30px; }
.figurine-bob { display: block; animation: bob 3.6s ease-in-out infinite; }
.figurine--lacey .figurine-bob { animation-duration: 3s; animation-delay: -1.2s; }
.figurine--pengi img { filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(0, 240, 255, 0.25)); }
.figurine--lacey img { filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 18px rgba(255, 215, 0, 0.3)); }
.figurine { transition: scale 0.35s var(--spring); }
.figurine:hover { scale: 1.07; }
.figurine.is-grabbed { scale: 1.12; }

@keyframes bob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

.feature-copy { position: relative; z-index: 2; }
.feature-eyebrow {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-family: var(--display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--accent-primary); margin-bottom: 1rem;
}
.feature-title { font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.feature-title .gradient-text { display: block; width: fit-content; padding-bottom: 0.06em; }
.feature-pitch { color: var(--text-secondary); font-size: 1.08rem; line-height: 1.7; margin-bottom: 0.75rem; }
.feature-pitch:first-of-type { color: var(--text-primary); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0; }
.chip {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 0.9rem; border-radius: 100px; font-size: 0.82rem; font-weight: 500;
    background: rgba(124, 58, 237, 0.12); border: 1px solid rgba(124, 58, 237, 0.3); color: var(--text-primary);
    transition: transform 0.3s var(--spring), border-color 0.3s ease, background 0.3s ease;
}
.chip:hover { transform: translateY(-2px) rotate(-2deg) scale(1.05); border-color: rgba(0, 240, 255, 0.5); background: rgba(0, 240, 255, 0.1); }
.chip svg { width: 15px; height: 15px; color: var(--accent-primary); }

.feature-status {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--display); font-weight: 700; font-size: 1rem; margin-bottom: 1.5rem;
    color: var(--accent-gold);
}
.feature-status svg { width: 18px; height: 18px; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.feature-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.feature-ctas .btn-primary, .feature-ctas .btn-secondary { padding: 0.9rem 1.8rem; }

.shots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.shot {
    display: block; border-radius: 16px; overflow: hidden; position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08); background: var(--bg-elevated);
    transition: transform 0.35s var(--spring), border-color 0.3s ease, box-shadow 0.3s ease;
}
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; transition: transform 0.6s ease; }
.shot:hover { transform: translateY(-6px) rotate(-1deg); border-color: rgba(124, 58, 237, 0.55); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(124, 58, 237, 0.2); }
.shot:nth-child(2):hover { transform: translateY(-6px) rotate(1deg); }
.shot:hover img { transform: scale(1.08); }

/* ==========================================================================
   Workshop
   ========================================================================== */

.workshop-grid {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: center;
}

.cart-stage { display: grid; place-items: center; position: relative; padding: 1rem 0 2rem; }
.cart {
    position: relative; width: 230px; height: 270px; cursor: pointer;
    border-radius: 22px 22px 14px 14px;
    background: linear-gradient(160deg, #1d1d2a, #12121a 60%);
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.45), 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(124, 58, 237, 0.25);
    animation: cartFloat 5s ease-in-out infinite;
    transition: box-shadow 0.3s ease, scale 0.35s var(--spring);
    display: flex; flex-direction: column; align-items: center; padding: 16px 18px 18px;
}
.cart:hover { scale: 1.05; box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.6), 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(0, 240, 255, 0.3); }
.cart:active { scale: 0.97; }
.cart.is-shaking { animation: cartShake 0.5s ease, cartFloat 5s ease-in-out 0.5s infinite; }
.cart-grip {
    width: 70%; height: 22px; border-radius: 6px; margin-bottom: 14px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 4px, transparent 4px 10px);
}
.cart-label {
    position: relative; flex: 1; width: 100%; border-radius: 12px; overflow: hidden;
    display: grid; place-items: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(0, 240, 255, 0.25), transparent 50%),
        radial-gradient(circle at 80% 90%, rgba(244, 114, 182, 0.25), transparent 50%),
        #0d0d14;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.cart-q {
    font-family: var(--display); font-weight: 900; font-size: 6rem; line-height: 1;
    background: var(--gradient-glow); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.5));
    animation: qWobble 3s ease-in-out infinite;
}
.cart-scan {
    position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px);
}
.cart-scan::after {
    content: ''; position: absolute; left: 0; right: 0; height: 40%;
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.12), transparent);
    animation: scan 3.2s linear infinite;
}
.cart-lock {
    margin-top: 14px; display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent-gold); padding: 0.3rem 0.75rem; border-radius: 100px;
    background: rgba(255, 215, 0, 0.08); border: 1px solid rgba(255, 215, 0, 0.3);
}
.cart-lock svg { width: 14px; height: 14px; }
.cart-shadow {
    width: 160px; height: 18px; border-radius: 50%; margin-top: 26px;
    background: radial-gradient(closest-side, rgba(124, 58, 237, 0.45), transparent);
    animation: shadowPulse 5s ease-in-out infinite;
}

@keyframes cartFloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes shadowPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.8); opacity: 0.6; } }
@keyframes cartShake {
    0%, 100% { transform: translateX(0) rotate(0); }
    20% { transform: translateX(-10px) rotate(-6deg); }
    40% { transform: translateX(9px) rotate(5deg); }
    60% { transform: translateX(-6px) rotate(-3deg); }
    80% { transform: translateX(4px) rotate(2deg); }
}
@keyframes qWobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) scale(1.05); } }
@keyframes scan { from { top: -40%; } to { top: 100%; } }

.workshop-copy .section-title { text-align: left; }
.workshop-lede { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.75; margin-bottom: 1.75rem; max-width: 560px; }

.dossier {
    display: grid; gap: 0.6rem; margin-bottom: 2rem; max-width: 420px;
    padding: 1.1rem 1.25rem; border-radius: 16px;
    background: rgba(18, 18, 26, 0.85); border: 1px solid rgba(124, 58, 237, 0.25);
}
.dossier div { display: flex; align-items: center; gap: 1rem; }
.dossier dt {
    width: 92px; flex: none; font-family: var(--display); font-weight: 700; font-size: 0.75rem;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-secondary);
}
.dossier dd { flex: 1; font-weight: 500; }
.redacted {
    display: inline-block; width: 150px; max-width: 100%; height: 1.05em; vertical-align: middle; border-radius: 3px;
    background: linear-gradient(90deg, #26263a 0%, #3a3a55 50%, #26263a 100%); background-size: 200% 100%;
    animation: redact 2.4s ease-in-out infinite;
}
.redacted--short { width: 96px; }
@keyframes redact { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.dossier-live { color: var(--accent-success); display: inline-flex; align-items: center; gap: 0.5rem; }
.dossier-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-success); animation: blink 2s ease-in-out infinite; }

/* ==========================================================================
   About
   ========================================================================== */

.about { background: rgba(18, 18, 26, 0.72); border-top: 1px solid rgba(255, 255, 255, 0.04); border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.about-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 4rem; align-items: center; }
.about-lede { font-size: 1.25rem; line-height: 1.65; color: var(--text-primary); margin-bottom: 1rem; max-width: 620px; }
.about-lede a, .sheet-rows a {
    color: var(--accent-primary); text-decoration: none; font-weight: 600;
    background: linear-gradient(var(--accent-primary), var(--accent-primary)) left bottom / 0% 2px no-repeat;
    transition: background-size 0.3s ease, color 0.3s ease;
}
.about-lede a:hover, .sheet-rows a:hover { background-size: 100% 2px; color: #7df8ff; }
.about-body { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; margin-bottom: 2rem; max-width: 620px; }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.value {
    --rx: 0deg; --ry: 0deg; --lift: 0px;
    padding: 1.25rem 1.25rem 1.1rem; border-radius: 18px; position: relative; overflow: hidden;
    background: rgba(10, 10, 15, 0.6); border: 1px solid rgba(0, 240, 255, 0.12);
    transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
    transition: transform 0.35s var(--spring), border-color 0.25s ease, box-shadow 0.25s ease;
}
.value::before {
    content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.25s ease; pointer-events: none;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(124, 58, 237, 0.05));
}
.value:hover { --lift: -6px; border-color: rgba(0, 240, 255, 0.35); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(0, 240, 255, 0.08); }
.value:hover::before { opacity: 1; }
.value-icon {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 0.7rem;
    color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
    animation: floaty 4s ease-in-out infinite;
}
.value:nth-child(2) .value-icon { animation-delay: 0.4s; }
.value:nth-child(3) .value-icon { animation-delay: 0.8s; }
.value:nth-child(4) .value-icon { animation-delay: 1.2s; }
.value-icon svg { width: 22px; height: 22px; }
.value:hover .value-icon { animation-play-state: paused; transform: rotate(-10deg) scale(1.12); transition: transform 0.3s var(--spring); }
.value h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.3rem; position: relative; }
.value p { color: var(--text-secondary); font-size: 0.93rem; line-height: 1.5; position: relative; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.sheet {
    --rx: 0deg; --ry: 0deg; --lift: 0px;
    position: relative; padding: 1.75rem; border-radius: 22px;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid transparent;
    background-image: linear-gradient(rgba(14, 14, 21, 0.96), rgba(14, 14, 21, 0.96)), var(--gradient-glow);
    background-origin: border-box; background-clip: padding-box, border-box;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 50px rgba(124, 58, 237, 0.15);
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
    transition: transform 0.4s var(--spring), box-shadow 0.3s ease;
}
.sheet:hover { --lift: -6px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 240, 255, 0.18); }
.sheet-head { display: flex; align-items: center; gap: 0.9rem; padding-bottom: 1.1rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.sheet-mark { width: 54px; height: 45px; flex: none; animation: floaty 3.6s ease-in-out infinite; filter: drop-shadow(0 6px 14px rgba(124, 58, 237, 0.45)); }
.sheet-kicker {
    font-family: var(--display); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
    background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sheet-name { font-family: var(--display); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.sheet-rows { display: grid; gap: 0.55rem; margin-bottom: 1.35rem; }
.sheet-rows div { display: flex; gap: 1rem; align-items: baseline; font-size: 0.95rem; }
.sheet-rows dt { width: 78px; flex: none; color: var(--text-secondary); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--display); }
.sheet-rows dd { color: var(--text-primary); }

.stats { display: grid; gap: 0.6rem; }
.stat { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 0.75rem; }
.stat-name { font-family: var(--display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); }
.stat-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.stat-fill { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--gradient-glow); transition: width 1.2s var(--spring); box-shadow: 0 0 12px rgba(0, 240, 255, 0.4); }
.stats.is-filled .stat-fill { width: var(--v); }
.stat:nth-child(2) .stat-fill { transition-delay: 0.12s; }
.stat:nth-child(3) .stat-fill { transition-delay: 0.24s; }
.stat:nth-child(4) .stat-fill { transition-delay: 0.36s; }
.stat-max {
    font-family: var(--display); font-weight: 800; font-size: 0.7rem; letter-spacing: 0.08em;
    background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
html:not(.js) .stat-fill { width: var(--v); }

/* ==========================================================================
   Newsletter CTA
   ========================================================================== */

.cta-container {
    max-width: 900px; margin: 0 auto; text-align: center; padding: 5rem 3rem;
    background: var(--bg-surface); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 32px;
    position: relative;
}
.cta-container::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: var(--gradient-subtle); opacity: 0.5; pointer-events: none;
}
.cta-container::after {
    content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: var(--gradient-glow); opacity: 0.35;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.cta-container > * { position: relative; z-index: 1; }
.cta-icon {
    width: 72px; height: 72px; margin: 0 auto 1.5rem; border-radius: 50%;
    display: grid; place-items: center; color: var(--bg-deep);
    background: var(--gradient-glow); box-shadow: 0 0 40px rgba(0, 240, 255, 0.3);
    animation: breathe 4s ease-in-out infinite;
}
.cta-icon svg { width: 32px; height: 32px; }
.cta h2 { font-family: var(--display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1rem; }
.cta p { color: var(--text-secondary); font-size: 1.15rem; margin: 0 auto 1.75rem; max-width: 520px; }

.signup {
    display: flex; gap: 0.6rem; max-width: 520px; margin: 0 auto;
    padding: 0.4rem; border-radius: 100px;
    background: rgba(10, 10, 15, 0.8); border: 1px solid rgba(0, 240, 255, 0.2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--spring);
}
.signup:focus-within { border-color: rgba(0, 240, 255, 0.6); box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.1), 0 0 40px rgba(0, 240, 255, 0.15); transform: translateY(-2px); }
.signup.is-error { animation: cartShake 0.45s ease; border-color: rgba(244, 114, 182, 0.7); }
.signup-input {
    flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
    padding: 0 1.1rem; font: 500 1rem var(--body); color: var(--text-primary);
}
.signup-input::placeholder { color: var(--text-secondary); opacity: 0.85; }
.signup-btn { padding: 0.8rem 1.6rem; flex: none; }
.signup-status { min-height: 1.6em; margin: 1rem auto 0 !important; font-size: 0.95rem !important; color: var(--accent-primary) !important; }
.signup-status.is-error { color: var(--accent-tertiary) !important; }

.press-line {
    display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.4rem;
    margin: 1.5rem auto 0 !important; font-size: 0.95rem !important; color: var(--text-secondary) !important;
    padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.07); max-width: 520px !important; width: 100%;
}
.press-line svg { width: 14px; height: 14px; color: var(--accent-gold); }
.press-placeholder { color: var(--text-secondary); font-style: italic; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { padding: 4rem 2rem 2rem; border-top: 1px solid rgba(255, 255, 255, 0.05); position: relative; z-index: 2; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 3rem; }
.footer-brand { flex: 1; min-width: 220px; }
.footer-logo { margin-bottom: 0.4rem; }
.footer-tagline { color: var(--text-secondary); font-size: 0.9rem; }
.footer-columns { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-column { min-width: 120px; }
.footer-column-title { font-family: var(--display); font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); letter-spacing: 0.1em; margin-bottom: 0.6rem; }
.footer-column-links li { margin-bottom: 0.1rem; }
.footer-column-links a {
    color: var(--text-secondary); text-decoration: none; font-size: 0.9rem;
    display: inline-flex; align-items: center; min-height: 36px;
    transition: color 0.3s ease, transform 0.3s var(--spring);
}
.footer-column-links a:hover { color: var(--accent-primary); transform: translateX(4px); }
.footer-coming-soon { color: var(--text-secondary); font-size: 0.9rem; opacity: 0.75; display: inline-flex; min-height: 36px; align-items: center; }
.footer-bottom {
    max-width: 1200px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center; color: var(--text-secondary); font-size: 0.8rem; line-height: 1.7;
}
.footer-egg { margin-top: 0.5rem; letter-spacing: 0.08em; }

/* ==========================================================================
   Gamification: HUD, gems, achievements, toasts
   ========================================================================== */

.game-hud {
    position: fixed; top: 100px; right: 20px; z-index: 998;
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
    opacity: 0; transform: translateX(100px); pointer-events: none;
    transition: opacity 0.5s var(--spring), transform 0.5s var(--spring);
}
.game-hud.visible { opacity: 1; transform: translateX(0); }

.xp-container {
    background: rgba(18, 18, 26, 0.95); border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 12px; padding: 12px 16px; min-width: 170px; backdrop-filter: blur(10px);
}
.xp-container.is-bump { animation: hudBump 0.45s var(--spring); }
@keyframes hudBump { 0% { transform: scale(1); } 40% { transform: scale(1.08); box-shadow: 0 0 30px rgba(0, 240, 255, 0.35); } 100% { transform: scale(1); } }
.level-display { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.level-badge {
    font-family: var(--display); font-weight: 800; font-size: 0.75rem;
    background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.xp-text { font-size: 0.7rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.xp-bar { height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; overflow: hidden; }
.xp-fill { height: 100%; background: var(--gradient-glow); border-radius: 3px; width: 0%; transition: width 0.5s var(--spring); }

.gem-counter {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(18, 18, 26, 0.95); border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: 12px; padding: 7px 12px; backdrop-filter: blur(10px);
    font-family: var(--display); font-size: 0.8rem; color: var(--text-secondary); font-variant-numeric: tabular-nums;
}
.gem-counter svg { width: 16px; height: 16px; }
.gem-counter b { color: var(--text-primary); }
.gem-counter.is-bump { animation: hudBump 0.45s var(--spring); }
.gem-counter:focus { outline: none; }
.gem-counter:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 3px; }

.streak-container {
    background: rgba(18, 18, 26, 0.95); border: 1px solid rgba(255, 215, 0, 0.3); border-radius: 12px;
    padding: 7px 12px; display: flex; align-items: center; gap: 8px; backdrop-filter: blur(10px);
    opacity: 0; transform: scale(0.8); transition: opacity 0.3s var(--spring), transform 0.3s var(--spring);
}
.streak-container.active { opacity: 1; transform: scale(1); }
.streak-label { font-family: var(--display); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; color: var(--text-secondary); }
.streak-count {
    font-family: var(--display); font-weight: 800; font-size: 1.05rem;
    background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    display: inline-block; animation: fireWiggle 0.5s ease-in-out infinite;
}
@keyframes fireWiggle { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

.gem {
    position: absolute; left: min(var(--gx), calc(100% - 52px)); top: var(--gy); z-index: 6;
    width: 44px; height: 44px; display: grid; place-items: center;
    background: none; border: 0; cursor: pointer; border-radius: 50%;
    animation: gemFloat 3.2s ease-in-out infinite;
    transition: scale 0.3s var(--spring), opacity 0.3s ease;
}
.gem svg { width: 22px; height: 22px; filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.7)); opacity: 0.85; }
.gem::after {
    content: ''; position: absolute; inset: 8px; border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.35); animation: gemPing 2.4s ease-out infinite;
}
.gem:hover { scale: 1.3; }
.gem:hover svg { opacity: 1; }
.gem.collected { animation: gemCollect 0.5s var(--spring) forwards; pointer-events: none; }
@keyframes gemFloat { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-8px) rotate(8deg); } }
@keyframes gemPing { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes gemCollect { 0% { transform: scale(1); opacity: 1; } 40% { transform: scale(1.6) rotate(20deg); opacity: 1; } 100% { transform: scale(0) rotate(90deg) translateY(-30px); opacity: 0; visibility: hidden; } }

.achievement-container {
    position: fixed; bottom: 30px; right: 30px; z-index: 10000;
    display: flex; flex-direction: column; gap: 10px; pointer-events: none; align-items: flex-end;
}
.achievement-toast {
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.98) 0%, rgba(26, 26, 36, 0.98) 100%);
    border: 2px solid; border-image: var(--gradient-gold) 1; border-radius: 16px;
    padding: 14px 20px; display: flex; align-items: center; gap: 14px;
    animation: achievementSlide 0.5s var(--spring) forwards;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2); backdrop-filter: blur(20px);
    max-width: calc(100vw - 24px);
}
.achievement-toast.exit { animation: achievementExit 0.3s ease-in forwards; }
@keyframes achievementSlide { from { opacity: 0; transform: translateX(100px) scale(0.9); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes achievementExit { to { opacity: 0; transform: translateX(100px) scale(0.9); } }
.achievement-icon {
    width: 46px; height: 46px; flex: none; background: var(--gradient-gold); border-radius: 50%;
    display: grid; place-items: center; color: #1a1206; animation: iconPop 0.5s ease-out 0.2s both;
}
.achievement-icon svg { width: 24px; height: 24px; }
@keyframes iconPop { 0% { transform: scale(0) rotate(-180deg); } 100% { transform: scale(1) rotate(0deg); } }
.achievement-content { flex: 1; min-width: 0; }
.achievement-title { font-family: var(--display); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-gold); margin-bottom: 2px; }
.achievement-name { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--text-primary); }
.achievement-xp {
    font-family: var(--display); font-weight: 700; font-size: 0.9rem; white-space: nowrap;
    background: var(--gradient-glow); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.level-up-toast-container {
    position: fixed; top: 200px; right: 20px; z-index: 10001;
    display: flex; flex-direction: column; gap: 10px; pointer-events: none; align-items: flex-end;
}
.level-up-toast {
    background: rgba(18, 18, 26, 0.95); border: 1px solid var(--accent-gold); border-radius: 12px;
    padding: 16px 24px; display: flex; flex-direction: column; align-items: center; gap: 4px;
    backdrop-filter: blur(10px); box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    animation: toastSlideIn 0.5s var(--spring) forwards; min-width: 200px; text-align: center;
}
.level-up-toast.exit { animation: toastSlideOut 0.3s ease-in forwards; }
@keyframes toastSlideIn { from { opacity: 0; transform: translateX(100%) scale(0.8); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes toastSlideOut { to { opacity: 0; transform: translateX(100%) scale(0.8); } }
.level-up-toast-header { font-family: var(--display); font-size: 0.9rem; font-weight: 700; color: var(--accent-gold); text-transform: uppercase; letter-spacing: 0.1em; }
.level-up-toast-level {
    font-family: var(--display); font-size: 2.5rem; font-weight: 900; line-height: 1.1;
    background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.level-up-toast-subtitle { font-size: 0.85rem; color: var(--text-secondary); }

.floating-xp {
    position: fixed; font-family: var(--display); font-weight: 800; font-size: 1.2rem;
    color: var(--accent-gold); pointer-events: none; z-index: 10000; white-space: nowrap;
    transform: translate(-50%, -50%); animation: floatUp 1s ease-out forwards;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
@keyframes floatUp { to { transform: translate(-50%, calc(-50% - 60px)); opacity: 0; } }

.easter-egg-badge {
    position: fixed; bottom: 20px; left: 20px; z-index: 1000;
    background: var(--gradient-gold); color: var(--bg-deep); padding: 8px 16px; border-radius: 100px;
    font-family: var(--display); font-weight: 700; font-size: 0.8rem;
    display: flex; align-items: center; gap: 8px;
    transform: translateY(120px); transition: transform 0.5s var(--spring);
}
.easter-egg-badge svg { width: 18px; height: 18px; }
.easter-egg-badge.visible { transform: translateY(0); }

.toast {
    position: fixed; left: 50%; bottom: 28px; z-index: 10001;
    display: inline-flex; align-items: center; gap: 0.6rem; max-width: calc(100vw - 32px);
    padding: 0.8rem 1.2rem; border-radius: 100px;
    background: rgba(18, 18, 26, 0.96); border: 1px solid rgba(0, 240, 255, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(0, 240, 255, 0.15);
    font-size: 0.92rem; color: var(--text-primary);
    opacity: 0; transform: translate(-50%, 30px) scale(0.9); pointer-events: none;
    transition: opacity 0.3s ease, transform 0.4s var(--spring);
}
.toast svg { width: 16px; height: 16px; color: var(--accent-primary); flex: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
    .site-nav { padding: 1.25rem 2rem; }
    .nav-links { gap: 2rem; }
}

@media (max-width: 960px) {
    .feature-card { grid-template-columns: 1fr; gap: 3.5rem; padding: 1.75rem; }
    .feature-art { max-width: 640px; width: 100%; margin: 0 auto; }
    .workshop-grid, .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .cart-stage { order: 2; }
    .sheet { max-width: 520px; width: 100%; margin: 0 auto; }
}

@media (max-width: 860px) {
    .nav-links { display: none; }
    .js .nav-cta { display: none; }
    .js .mobile-menu-btn { display: flex; }
    .js .mobile-menu { display: flex; }
    html:not(.js) .nav-cta { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
}

@media (max-width: 768px) {
    .site-nav { padding: 0.9rem 1.25rem; }
    .logo { font-size: 1.25rem; }
    .logo-mark { width: 30px; height: 25px; }
    .hero { padding: 7rem 1.25rem 2.5rem; }
    .hero-emblem { width: 120px; height: 120px; }
    .hero-emblem svg { width: 76px; height: 64px; }
    .hero-audience { font-size: 0.72rem; letter-spacing: 0.16em; padding: 0.7rem 1.25rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .trust-strip { flex-direction: column; gap: 0.5rem; padding: 0.9rem 1.25rem; }
    .trust-divider { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent); }
    .trust-number { font-size: 1.35rem; }
    .trust-label { font-size: 0.7rem; }
    .section { padding: 5rem 1.25rem; }
    .section-header { margin-bottom: 2.5rem; }
    .figurine--pengi { width: 132px; right: -10px; bottom: -40px; }
    .figurine--lacey { width: 96px; left: -8px; bottom: -26px; }
    .shots { gap: 0.6rem; }
    .shot { border-radius: 12px; }
    .cta-container { padding: 3.5rem 1.25rem; border-radius: 26px; }
    .values { grid-template-columns: 1fr 1fr; }
    .site-footer { padding: 3rem 1.25rem 2rem; }
    .footer-columns { gap: 2.5rem; }

    .game-hud { top: auto; bottom: 16px; right: 12px; flex-direction: row; align-items: center; gap: 6px; }
    .xp-container { min-width: 128px; padding: 7px 10px; }
    .level-display { margin-bottom: 5px; }
    .level-badge { font-size: 0.65rem; }
    .xp-text { font-size: 0.62rem; }
    .gem-counter { padding: 6px 9px; font-size: 0.72rem; }
    .streak-container { position: absolute; bottom: calc(100% + 6px); right: 0; }
    .achievement-container { top: 76px; bottom: auto; right: 12px; left: 12px; align-items: stretch; }
    .achievement-toast { padding: 10px 14px; gap: 10px; }
    .achievement-icon { width: 38px; height: 38px; }
    .achievement-name { font-size: 0.95rem; }
    .level-up-toast-container { top: auto; bottom: 76px; right: 12px; }
    .level-up-toast { min-width: 150px; padding: 10px 18px; }
    .level-up-toast-level { font-size: 1.9rem; }
    .easter-egg-badge { bottom: 76px; left: 12px; }
    .toast { bottom: 84px; }
    .cursor-glow { display: none; }
}

@media (max-width: 520px) {
    .hero-title { font-size: clamp(2.6rem, 13vw, 3.4rem); }
    .hero-cta-group { width: 100%; max-width: 340px; }
    .hero-cta-group a, .hero-cta-group button { flex: 1 1 100%; justify-content: center; }
    .feature-card { padding: 1.25rem 1.1rem 1.5rem; border-radius: 22px; }
    .feature-ctas a, .feature-ctas button { flex: 1 1 100%; justify-content: center; }
    .shots { grid-template-columns: 1fr 1fr; }
    .shots .shot:first-child { grid-column: 1 / -1; }
    .values { gap: 0.7rem; }
    .value { padding: 1rem 0.9rem 0.95rem; border-radius: 16px; }
    .value-icon { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 0.55rem; }
    .value-icon svg { width: 19px; height: 19px; }
    .value h3 { font-size: 1.02rem; }
    .value p { font-size: 0.85rem; line-height: 1.45; }
    .signup { flex-direction: column; border-radius: 22px; padding: 0.5rem; }
    .signup-input { padding: 0.8rem 0.9rem; text-align: center; }
    .signup-btn { width: 100%; }
    .dossier dt { width: 78px; }
    .cart { width: 200px; height: 236px; }
    .cart-q { font-size: 5rem; }
    .sheet { padding: 1.35rem; }
    .sheet-rows div { flex-direction: column; gap: 0.1rem; }
    .footer-content { gap: 2rem; }
}

@media (max-width: 360px) {
    .values { grid-template-columns: 1fr; }
    .logo { font-size: 1.08rem; gap: 0.45rem; }
    .xp-container { min-width: 108px; }
}

/* ==========================================================================
   Reduced motion: keep the toys, lose the motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0s !important;
    }
    .drifters, .cursor-glow { display: none; }
    .ticker-track { width: auto; flex-wrap: wrap; justify-content: center; }
    .ticker-group + .ticker-group { display: none; }
    .ticker-group { flex-wrap: wrap; justify-content: center; white-space: normal; gap: 0.75rem 1.5rem; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Oct 2026: games, trailer, team, contact
   ========================================================================== */

button.btn-primary { border: 0; font-family: inherit; cursor: pointer; }
.hero-subtitle { max-width: 680px; }
.hero-link { color: var(--text-primary); font-weight: 600; text-decoration: none; background: linear-gradient(90deg, #00f0ff, #f472b6) 0 100% / 100% 2px no-repeat; padding-bottom: 1px; transition: color 0.2s ease; }
.hero-link:hover { color: #7df8ff; }
.games-anchor { position: relative; top: -40px; }

/* Looping gameplay video inside the feature art frame */
.loop-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #0d1422; }
.feature-art-frame--video .loop-video { transition: transform 0.8s ease; }
.feature-art-frame--video:hover .loop-video { transform: scale(1.04); }
.feature-art-frame--video::after { z-index: 1; }

.play-btn {
    position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem;
    background: transparent; border: 0; cursor: pointer; color: #fff;
}
.play-btn-disc {
    width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center;
    background: var(--gradient-glow); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14), 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 50px rgba(0, 240, 255, 0.45);
    animation: playPulse 2.6s ease-in-out infinite; transition: transform 0.35s var(--spring);
}
.play-btn-disc svg { width: 30px; height: 30px; margin-left: 4px; }
.play-btn-label {
    font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 0.35rem 0.9rem; border-radius: 100px; background: rgba(10, 10, 15, 0.7); backdrop-filter: blur(6px);
}
.play-btn:hover .play-btn-disc { transform: scale(1.12) rotate(-6deg); }
.play-btn:active .play-btn-disc { transform: scale(0.94); }
@keyframes playPulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14), 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 240, 255, 0.35); } 50% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.06), 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 70px rgba(244, 114, 182, 0.5); } }
.art-chip .live-dot { width: 7px; height: 7px; background: #ff4d6d; }

.platforms { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.6rem; }
.platforms li {
    display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.85rem; border-radius: 12px;
    font-family: var(--display); font-weight: 700; font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.3s var(--spring), border-color 0.3s ease, background 0.3s ease;
}
.platforms li:hover { transform: translateY(-3px) rotate(1.5deg); border-color: rgba(255, 215, 0, 0.55); background: rgba(255, 215, 0, 0.08); }
.platforms svg { width: 16px; height: 16px; color: var(--accent-gold); }

/* Puck Pups card */
.game-card {
    --rx: 0deg; --ry: 0deg; --lift: 0px; --mx: 50%; --my: 50%;
    max-width: 1200px; margin: 0 auto; position: relative;
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; padding: 2.5rem;
    background: rgba(18, 18, 26, 0.85); border: 1px solid rgba(255, 215, 0, 0.14); border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); backdrop-filter: blur(12px);
    transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
    transition: transform 0.5s var(--spring), border-color 0.3s ease, box-shadow 0.3s ease;
}
.game-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(600px circle at var(--mx) var(--my), rgba(255, 215, 0, 0.07), transparent 45%);
}
.game-card:hover { --lift: -6px; border-color: rgba(255, 215, 0, 0.4); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 40px rgba(255, 215, 0, 0.08); }
.game-card-copy { position: relative; z-index: 2; order: -1; }
.game-card-art { position: relative; }
.rink-frame {
    position: relative; border-radius: 20px; overflow: hidden; border: 3px solid #fff;
    box-shadow: 0 0 0 6px rgba(60, 120, 255, 0.35), 0 20px 50px rgba(0, 0, 0, 0.45);
    rotate: 1.5deg; transition: rotate 0.4s var(--spring), transform 0.4s var(--spring);
}
.game-card:hover .rink-frame { rotate: 0deg; transform: scale(1.02); }
.feature-eyebrow--gold { color: var(--accent-gold); }
.live-dot--gold { background: var(--accent-gold); }
.game-card .shots img { aspect-ratio: 16 / 9; }
.game-card .shot { margin: 0; }

.slap-puck {
    position: absolute; left: -18px; bottom: -22px; z-index: 4; width: 64px; height: 64px; border: 0; cursor: pointer;
    display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3a3a48, #101016 70%);
    color: #1a1a22; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.15);
    animation: puckBob 3.2s ease-in-out infinite; transition: scale 0.3s var(--spring);
}
.slap-puck svg { width: 40px; height: 40px; color: #2a2a35; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.25)); }
.slap-puck:hover { scale: 1.12; }
.slap-puck.is-shot { animation: puckShot 0.75s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes puckBob { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-10px) rotate(8deg); } }
@keyframes puckShot {
    0% { transform: translate(0, 0) rotate(0); }
    45% { transform: translate(min(46vw, 520px), -160px) rotate(540deg) scale(0.7); opacity: 1; }
    46% { opacity: 0; }
    54% { transform: translate(0, 30px) scale(0.6); opacity: 0; }
    100% { transform: translate(0, 0) rotate(0); opacity: 1; }
}
.goal-count {
    position: absolute; right: 12px; bottom: -34px; font-family: var(--display); font-weight: 800; font-size: 0.8rem;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary);
}
.goal-count b { color: var(--accent-gold); }

/* Team */
.team { max-width: 1200px; margin: 5rem auto 0; }
.team-title { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.team-card {
    --rx: 0deg; --ry: 0deg; --lift: 0px;
    display: flex; gap: 1.75rem; align-items: center; max-width: 760px; padding: 1.75rem;
    background: rgba(26, 26, 36, 0.85); border: 1px solid rgba(124, 58, 237, 0.25); border-radius: 22px;
    transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
    transition: transform 0.5s var(--spring), border-color 0.3s ease;
}
.team-card:hover { --lift: -4px; border-color: rgba(0, 240, 255, 0.4); }
.team-avatar {
    flex: none; width: 104px; height: 104px; border-radius: 30px; display: grid; place-items: center;
    background: var(--gradient-glow); box-shadow: 0 14px 30px rgba(124, 58, 237, 0.35); rotate: -4deg;
    transition: rotate 0.4s var(--spring);
}
.team-card:hover .team-avatar { rotate: 4deg; }
.team-avatar span { font-family: var(--display); font-weight: 900; font-size: 2.2rem; color: #0a0a0f; }
.team-name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; }
.team-role { color: var(--accent-primary); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.6rem; }
.team-bio { color: var(--text-secondary); line-height: 1.7; margin-bottom: 0.6rem; }
.team-links { display: flex; flex-wrap: wrap; gap: 0.6rem; font-size: 0.95rem; }
.team-links a { color: var(--text-primary); text-decoration: none; border-bottom: 1px solid rgba(0, 240, 255, 0.5); }
.team-links a:hover { color: #7df8ff; }

/* Contact */
.contact-line { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 2.25rem !important; }
.contact-btn span { text-transform: none; }
.newsletter-lede { font-size: 1rem !important; margin-bottom: 1rem !important; }

/* Trailer dialog */
.trailer-dialog { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; margin: auto; overflow: visible; }
.trailer-dialog::backdrop { background: rgba(5, 5, 10, 0.86); backdrop-filter: blur(6px); }
.trailer-frame { position: relative; border-radius: 20px; overflow: hidden; background: #000; border: 1px solid rgba(0, 240, 255, 0.3); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(124, 58, 237, 0.3); }
.trailer-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.trailer-cap { padding: 0.75rem 1rem; font-size: 0.85rem; color: var(--text-secondary); background: var(--bg-surface); }
.trailer-close {
    position: absolute; top: 10px; right: 10px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; background: rgba(10, 10, 15, 0.8); color: #fff; transition: transform 0.3s var(--spring);
}
.trailer-close:hover { transform: rotate(90deg) scale(1.1); }
.trailer-close svg { width: 20px; height: 20px; }

.footer-bottom p + p { margin-top: 0.4rem; }

@media (max-width: 960px) {
    .game-card { grid-template-columns: 1fr; gap: 3rem; padding: 1.75rem; }
    .game-card-copy { order: 0; }
    .game-card-art { max-width: 640px; width: 100%; margin: 0 auto; }
}
@media (max-width: 520px) {
    .game-card { padding: 1.25rem 1.1rem 1.5rem; border-radius: 22px; }
    .team-card { flex-direction: column; align-items: flex-start; padding: 1.35rem; }
    .play-btn-disc { width: 62px; height: 62px; }
    .slap-puck { width: 52px; height: 52px; left: -6px; }
    .contact-line a { flex: 1 1 100%; }
    .play-btn-label { display: none; }
}

/* Pause/play control for the muted gameplay loops (WCAG 2.2.2) */
.has-loop-toggle { position: relative; }
.loop-toggle { position: absolute; top: 10px; right: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: rgba(8,10,20,0.6); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); transition: transform 0.25s ease, background 0.2s ease; }
.loop-toggle:hover { transform: scale(1.1); background: rgba(8,10,20,0.85); }
.loop-toggle:focus-visible { outline: 2px solid #00f0ff; outline-offset: 2px; }
.loop-toggle span { font-size: 12px; line-height: 1; letter-spacing: -1px; font-weight: 800; }
