/* Wiggle Royale · Mac download site.
   Each section is one of the game's arenas (Meadow, Candy, Frost, the white boss stage, Desert, Cosmic). */

:root {
    --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --ink: #1F2A1A;
    --muted: #56634F;
    --card: #FFFFFF;
    --card-2: #F4FAEF;
    --line: #E1ECD9;
    --yellow: #FFE15A;
    --gold: #FFC83D;
    --outline: #1D3B12;
    --edge: #1D3B12;
    --green: #2FB86A;
    --link: #1F7A3E;
    --focus: #2F6BFF;
    --shadow: 0 8px 0 var(--edge), 0 22px 44px rgba(0, 0, 0, 0.2);
    --radius: 28px;
    --wrap: 1160px;
    --on-floor: #1D3B12;
    --floor-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);

    /* Arena floors: two tile colours, orb colours and the bumper wall stripes. */
    --meadow-a: #86D057; --meadow-b: #78C64A; --meadow-sky: #8FD8FF;
    --candy-a: #FFB8DD; --candy-b: #FFA6D3;
    --frost-a: #CBEAFF; --frost-b: #B8E0FF;
    --stage-a: #FFFFFF; --stage-b: #F3F4F8;
    --desert-a: #F3CE7E; --desert-b: #EBC26C;
    --cosmic-a: #34287A; --cosmic-b: #2C2170;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #F4F1FB;
        --muted: #BDB6D6;
        --card: #1D1736;
        --card-2: #251E45;
        --line: #322A58;
        --edge: #0B0619;
        --link: #9CF5BF;
        --focus: #8AB4FF;
        --shadow: 0 8px 0 var(--edge), 0 22px 44px rgba(0, 0, 0, 0.45);
        --on-floor: #FFFFFF;
        --floor-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);

        /* The same arenas at night. */
        --meadow-a: #24502C; --meadow-b: #1F4727; --meadow-sky: #16123A;
        --candy-a: #4C2244; --candy-b: #431D3C;
        --frost-a: #1E3656; --frost-b: #1A2F4C;
        --stage-a: #17142B; --stage-b: #131024;
        --desert-a: #4A3418; --desert-b: #412E15;
        --cosmic-a: #1E1650; --cosmic-b: #191246;
    }
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

/* Only seen when the page bounces past its ends: the footer colour below, the sky above (see .hero). */
html { background: #120C2E; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

[hidden] { display: none !important; }
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.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;
}

.skip {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    padding: 10px 16px; font-weight: 900; color: var(--outline); background: var(--yellow);
    border: 3px solid var(--outline); border-radius: 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* ------------------------------------------------------------------ Arenas */

.arena {
    --a: var(--meadow-a); --b: var(--meadow-b);
    position: relative;
    padding: clamp(64px, 9vw, 112px) 0;
    background-color: var(--a);
    background-image:
        radial-gradient(circle at 7% 18%, #FFD21F 0 7px, transparent 8px),
        radial-gradient(circle at 94% 12%, #FF9F1C 0 9px, transparent 10px),
        radial-gradient(circle at 89% 62%, #FFD21F 0 6px, transparent 7px),
        radial-gradient(circle at 4% 74%, #7CFFB2 0 7px, transparent 8px),
        radial-gradient(circle at 52% 95%, #5AF7FF 0 6px, transparent 7px),
        repeating-conic-gradient(var(--a) 0 25%, var(--b) 0 50%);
    background-size: auto, auto, auto, auto, auto, 88px 88px;
}
.arena.candy { --a: var(--candy-a); --b: var(--candy-b); }
.arena.frost { --a: var(--frost-a); --b: var(--frost-b); }
.arena.stage { --a: var(--stage-a); --b: var(--stage-b); }
.arena.desert { --a: var(--desert-a); --b: var(--desert-b); }
.arena.cosmic { --a: var(--cosmic-a); --b: var(--cosmic-b); --on-floor: #FFFFFF; --floor-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); }

/* The padded walls around every arena, in that arena's colours. */
.arena + .arena::before {
    content: "";
    position: absolute; left: 0; right: 0; top: -9px; height: 18px; z-index: 3;
    background: repeating-linear-gradient(90deg, var(--wall-a, #E8453C) 0 44px, var(--wall-b, #FFFFFF) 44px 88px);
    border-block: 3px solid var(--edge);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12);
}
.arena.candy { --wall-a: #FF5C8D; }
.arena.frost { --wall-a: #2E86DE; }
.arena.stage { --wall-a: #FF4D5E; --wall-b: #2A0E1E; }
.arena.desert { --wall-a: #D9894A; --wall-b: #FFF0D2; }
.arena.cosmic { --wall-a: #FF4FD8; --wall-b: #00E5FF; }
.arena.meadow { --wall-a: #E8453C; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 5vw, 52px); }

/* Big outlined headings, like the game's banners. */
.title {
    margin: 0;
    font-size: clamp(34px, 5.4vw, 58px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.005em;
    text-wrap: balance;
    color: #FFFFFF;
    text-shadow:
        0.05em 0 0 var(--outline), -0.05em 0 0 var(--outline), 0 0.05em 0 var(--outline), 0 -0.05em 0 var(--outline),
        0.036em 0.036em 0 var(--outline), -0.036em 0.036em 0 var(--outline), 0.036em -0.036em 0 var(--outline), -0.036em -0.036em 0 var(--outline),
        0 0.1em 0 var(--outline), 0 0.16em 0.3em rgba(0, 0, 0, 0.25);
}
.title .hl { color: var(--yellow); }

.lead {
    display: inline-block;
    margin: 18px 0 0;
    padding: 6px 18px;
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 800;
    color: var(--outline);
    background: rgba(255, 255, 255, 0.86);
    border: 3px solid var(--outline);
    border-radius: 999px;
}
@media (prefers-color-scheme: dark) {
    .lead { color: var(--ink); background: rgba(16, 11, 38, 0.82); border-color: var(--edge); }
}

/* ------------------------------------------------------------------ Cards & buttons */

.card {
    position: relative;
    background: var(--card);
    border: 3px solid var(--edge);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.btn {
    --btn-bg: var(--yellow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 22px;
    font: inherit;
    font-weight: 900;
    font-size: 17px;
    line-height: 1.2;
    color: var(--outline);
    text-decoration: none;
    background: var(--btn-bg);
    border: 3px solid var(--outline);
    border-radius: 18px;
    box-shadow: 0 5px 0 var(--outline);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--outline); filter: brightness(1.04); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--outline); }
.btn.green { --btn-bg: #7ED957; }
.btn.white { --btn-bg: #FFFFFF; }
.btn svg { flex: none; width: 1.2em; height: 1.2em; }
.btn[aria-disabled="true"] { cursor: default; filter: saturate(0.4); opacity: 0.85; transform: none; box-shadow: 0 5px 0 var(--outline); }

.btn-xl {
    gap: 16px;
    padding: 16px 30px 16px 24px;
    font-size: clamp(21px, 2.6vw, 26px);
    border-radius: 24px;
    box-shadow: 0 7px 0 var(--outline), 0 18px 34px rgba(0, 0, 0, 0.22);
    text-align: left;
}
.btn-xl:hover { box-shadow: 0 9px 0 var(--outline), 0 22px 40px rgba(0, 0, 0, 0.25); }
.btn-xl:active { box-shadow: 0 2px 0 var(--outline); }
.btn-xl .ico {
    display: grid; place-items: center; flex: none;
    width: 52px; height: 52px;
    color: #FFFFFF; background: var(--green);
    border: 3px solid var(--outline); border-radius: 16px;
}
.btn-xl .ico svg { width: 28px; height: 28px; }
.btn-xl b { display: block; }
.btn-xl small { display: block; margin-top: 3px; font-size: 14px; font-weight: 800; opacity: 0.78; }

.btn-sm { padding: 7px 16px; font-size: 15px; border-radius: 14px; box-shadow: 0 4px 0 var(--outline); }
.btn-sm:hover { box-shadow: 0 5px 0 var(--outline); }

/* ------------------------------------------------------------------ Top bar */

.topbar {
    position: fixed; inset: 0 0 auto; z-index: 50;
    display: flex; align-items: center; gap: 18px;
    height: 68px;
    padding: 0 max(16px, calc((100% - var(--wrap)) / 2));
    transition: background-color 0.25s, box-shadow 0.25s, backdrop-filter 0.25s;
}
.topbar.solid {
    background: var(--card);
    background: color-mix(in srgb, var(--card) 82%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    backdrop-filter: saturate(1.6) blur(16px);
    box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(0, 0, 0, 0.1);
}
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 900; font-size: 19px; color: var(--on-floor); text-decoration: none; white-space: nowrap;
}
.brand img { width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--outline); }
.topbar.solid .brand { color: var(--ink); }
.topbar nav { display: flex; gap: 4px; margin-left: auto; }
.topbar nav a {
    padding: 8px 12px; border-radius: 12px;
    font-weight: 800; font-size: 15px; color: var(--on-floor); text-decoration: none;
}
.topbar nav a:hover { background: rgba(255, 255, 255, 0.3); }
.topbar.solid nav a { color: var(--ink); }
.topbar.solid nav a:hover { background: var(--card-2); }
.topbar .btn-sm { visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
.topbar.show-cta .btn-sm { visibility: visible; opacity: 1; transform: none; }

@media (max-width: 860px) {
    .topbar nav { display: none; }
    .topbar .btn-sm { margin-left: auto; }
}

/* ------------------------------------------------------------------ Hero */

.hero {
    --a: var(--meadow-a); --b: var(--meadow-b);
    padding: 112px 0 clamp(72px, 10vw, 120px);
    overflow: hidden;
    box-shadow: 0 -100vh 0 100vh var(--meadow-sky);
    background-image:
        linear-gradient(180deg, var(--meadow-sky) 0, transparent 420px),
        repeating-conic-gradient(var(--a) 0 25%, var(--b) 0 50%);
    background-size: auto, 88px 88px;
}
.hero-snake { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-inner { text-align: center; }

.studio {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0;
    font-weight: 900; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--on-floor); text-shadow: var(--floor-shadow);
}
footer .studio { color: #FFFFFF; text-shadow: none; }
.studio .kvc { letter-spacing: 0.02em; font-size: 18px; text-transform: none; }
.studio .kvc span { color: #1D1D2A; background: var(--gold); border-radius: 6px; padding: 0 6px; text-shadow: none; margin-left: 1px; }

/* The game's logo: yellow WIGGLE, white ROYALE, thick dark-green outline with a drop below. */
.logo {
    margin: 12px 0 0;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0.01em;
    user-select: none;
}
.logo .w, .logo .r {
    display: block;
    text-shadow:
        0.07em 0 0 var(--outline), -0.07em 0 0 var(--outline), 0 0.07em 0 var(--outline), 0 -0.07em 0 var(--outline),
        0.05em 0.05em 0 var(--outline), -0.05em 0.05em 0 var(--outline), 0.05em -0.05em 0 var(--outline), -0.05em -0.05em 0 var(--outline),
        0 0.13em 0 var(--outline), 0 0.2em 0.35em rgba(0, 0, 0, 0.3);
}
.logo .w { font-size: clamp(64px, 13vw, 140px); color: var(--yellow); transform: rotate(-2deg); }
.logo .r { font-size: clamp(52px, 10.6vw, 114px); color: #FFFFFF; margin-top: 0.06em; animation: wobble 1.8s ease-in-out infinite alternate; }
@keyframes wobble { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }

.for-mac {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 22px 0 0;
    padding: 6px 18px 6px 12px;
    font-size: 17px; font-weight: 900; letter-spacing: 0.04em;
    color: #FFFFFF; background: #1D1D2A;
    border: 3px solid var(--outline); border-radius: 999px;
    box-shadow: 0 4px 0 var(--outline);
    transform: rotate(-1.5deg);
}
.for-mac svg { width: 20px; height: 20px; }

.tagline {
    max-width: 640px;
    margin: 22px auto 0;
    font-size: clamp(18px, 2.3vw, 22px);
    font-weight: 800;
    line-height: 1.45;
    color: var(--on-floor);
    text-shadow: var(--floor-shadow);
}

.cta { margin-top: 32px; display: grid; justify-items: center; gap: 14px; }
.cta .alt, .cta .note {
    margin: 0;
    font-size: 15px; font-weight: 800; color: var(--on-floor);
    text-shadow: var(--floor-shadow);
}
.cta .alt a, .cta .note a, .cta .note button {
    color: inherit; font: inherit; font-weight: 900;
    background: none; border: 0; padding: 0; cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px;
}
.cta .note {
    max-width: 520px; padding: 10px 16px;
    color: #FFFFFF; background: rgba(29, 29, 42, 0.78); border-radius: 16px; text-shadow: none;
}

.trust {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    margin: 26px 0 0; padding: 0; list-style: none;
}
.trust li {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 14px;
    font-size: 14px; font-weight: 800;
    color: var(--outline); background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--outline); border-radius: 999px;
}
.trust svg { width: 17px; height: 17px; color: var(--green); }
@media (prefers-color-scheme: dark) {
    .trust li { color: var(--ink); background: rgba(16, 11, 38, 0.85); border-color: #000; }
    .trust svg { color: #7CFFB2; }
}

.hint {
    margin: 18px 0 0;
    font-size: 14px; font-weight: 800; color: var(--on-floor); opacity: 0.85;
    text-shadow: var(--floor-shadow);
}

/* The Mac window with gameplay. */
.showcase { position: relative; margin-top: clamp(44px, 6vw, 70px); }
.mac {
    position: relative; z-index: 1;
    max-width: 1000px; margin: 0 auto;
    background: #1E1E24;
    border: 3px solid var(--edge);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 0 var(--edge), 0 40px 80px rgba(0, 0, 0, 0.35);
}
.mac-bar {
    display: flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 14px;
    background: linear-gradient(#3A3A42, #2E2E35);
    border-bottom: 1px solid #000;
}
.mac-bar i { width: 13px; height: 13px; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); }
.mac-bar i:nth-child(2) { background: #FEBC2E; }
.mac-bar i:nth-child(3) { background: #28C840; }
.mac-bar span { flex: 1; margin-right: 59px; text-align: center; font-size: 13px; font-weight: 700; color: #C9C9D1; }
.mac-screen { position: relative; aspect-ratio: 16 / 9; background: #F2F4F8; }
.mac-screen video, .mac-screen img { width: 100%; height: 100%; object-fit: cover; }
.play-toggle {
    position: absolute; right: 14px; bottom: 14px;
    display: grid; place-items: center;
    width: 44px; height: 44px;
    color: #FFFFFF; background: rgba(20, 16, 40, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 50%;
    cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.play-toggle svg { width: 18px; height: 18px; }

.chip {
    position: absolute; z-index: 2;
    padding: 8px 16px;
    font-size: clamp(14px, 1.6vw, 18px); font-weight: 900; white-space: nowrap;
    color: var(--outline); background: var(--yellow);
    border: 3px solid var(--outline); border-radius: 999px;
    box-shadow: 0 5px 0 var(--outline);
    animation: bob 3.2s ease-in-out infinite;
}
.chip.c1 { left: max(0px, calc(50% - 560px)); top: 14%; transform: rotate(-6deg); --r: -6deg; }
.chip.c2 { right: max(0px, calc(50% - 560px)); top: 30%; background: #FF4D5E; color: #FFFFFF; --r: 5deg; animation-delay: -1.1s; }
.chip.c3 { left: max(10px, calc(50% - 530px)); bottom: 12%; background: #7ED957; --r: 4deg; animation-delay: -2.2s; }
@keyframes bob {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50% { transform: translateY(-10px) rotate(var(--r, 0deg)); }
}
@media (max-width: 700px) { .chip { display: none; } }

/* ------------------------------------------------------------------ Marquee */

/* A tilted banner across the seam between the hero and the next arena. */
.marquee-wrap { position: relative; z-index: 4; overflow: hidden; margin: -48px 0; padding: 30px 0; pointer-events: none; }
.marquee {
    margin: 0 -60px;
    padding: 14px 0;
    background: var(--yellow);
    border-block: 3px solid var(--outline);
    transform: rotate(-1.6deg);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.12);
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee ul { display: flex; margin: 0; padding: 0; list-style: none; }
.marquee li {
    display: flex; align-items: center;
    padding: 0 22px;
    font-size: clamp(16px, 2vw, 21px); font-weight: 900; letter-spacing: 0.05em; white-space: nowrap;
    color: var(--outline);
}
.marquee li::after { content: "✦"; margin-left: 44px; color: #FF7A1C; }
@keyframes marquee { to { transform: translateX(-33.3333%); } }

/* ------------------------------------------------------------------ How to play */

.steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px);
    margin: 0; padding: 0; list-style: none; counter-reset: step;
}
.step { overflow: hidden; display: flex; flex-direction: column; }
.step-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 3px solid var(--edge); background: #EEE; }
.step-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.step:hover .step-media img { transform: scale(1.05); }
.step-body { padding: 22px 24px 26px; }
.step h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 22px; font-weight: 900; line-height: 1.2; }
.step h3::before {
    counter-increment: step; content: counter(step);
    display: inline-grid; place-items: center; flex: none;
    width: 36px; height: 36px;
    font-size: 18px; color: var(--outline); background: var(--yellow);
    border: 3px solid var(--outline); border-radius: 50%;
}
.step p { margin: 0; color: var(--muted); }
.num-tag {
    display: inline-block; padding: 0 8px; border-radius: 8px;
    font-weight: 900; color: #FFFFFF; border: 2px solid var(--outline);
}
.num-tag.g { background: #2FB86A; }
.num-tag.r { background: #FF4D5E; }

.controls { margin-top: clamp(22px, 3vw, 32px); padding: clamp(22px, 3vw, 32px); display: grid; grid-template-columns: auto 1fr; gap: 18px 36px; align-items: center; }
.controls h3 { margin: 0; font-size: 24px; font-weight: 900; line-height: 1.15; }
.controls h3 small { display: block; margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--muted); }
.controls ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.controls li { display: grid; gap: 10px; justify-items: center; padding: 16px 10px; text-align: center; font-size: 15px; font-weight: 800; background: var(--card-2); border-radius: 18px; }
.keys { display: flex; gap: 5px; align-items: center; justify-content: center; flex-wrap: wrap; min-height: 72px; }
.keys.wasd { display: grid; grid-template-columns: repeat(3, auto); align-content: center; }
.keys.wasd .up { grid-column: 2; }
.keys.wasd kbd:not(.up) { grid-row: 2; }
kbd {
    display: inline-grid; place-items: center;
    min-width: 34px; height: 34px; padding: 0 8px;
    font-family: var(--font); font-size: 14px; font-weight: 900;
    color: var(--ink); background: var(--card);
    border: 2px solid var(--edge); border-radius: 9px;
    box-shadow: 0 3px 0 var(--edge);
}
kbd.wide { min-width: 86px; }
.mouse-ico { width: 30px; height: 44px; color: var(--ink); }

/* ------------------------------------------------------------------ Features */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(16px, 2vw, 24px); }
.tile { padding: clamp(22px, 2.6vw, 30px); overflow: hidden; }
.tile h3 { margin: 0 0 6px; font-size: 23px; font-weight: 900; line-height: 1.2; }
.tile p { margin: 0; color: var(--muted); }
.tile.span-3 { grid-column: span 3; }
.tile.span-2 { grid-column: span 2; }
.tile.span-4 { grid-column: span 4; }
.tile.span-6 { grid-column: span 6; }
.icon-badge {
    display: inline-grid; place-items: center;
    width: 48px; height: 48px; margin-bottom: 14px;
    font-size: 24px; background: var(--yellow);
    border: 3px solid var(--outline); border-radius: 15px;
}

.modes { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.modes li { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: var(--card-2); border-radius: 16px; }
.modes li b { display: block; font-weight: 900; }
.modes li span { font-size: 15px; color: var(--muted); line-height: 1.4; }
.modes .m-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; font-size: 22px; border-radius: 12px; border: 2px solid var(--edge); }

/* Little striped snakes in real skin colours. */
.noodles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 18px 0 0; padding: 0; list-style: none; }
.noodle { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; }
.noodle i {
    position: relative; flex: none;
    width: 92px; height: 26px;
    border: 2.5px solid var(--edge); border-radius: 999px;
    background: repeating-linear-gradient(90deg, var(--c1) 0 13px, var(--c2) 13px 26px, var(--c3, var(--c1)) 26px 39px, var(--c2) 39px 52px);
    box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.14), inset 0 4px 0 rgba(255, 255, 255, 0.35);
}
.noodle i::before, .noodle i::after {
    content: ""; position: absolute; top: 4px; width: 9px; height: 9px;
    background: radial-gradient(circle at 60% 55%, #111 0 2.3px, #FFF 2.8px);
    border: 1.5px solid var(--edge); border-radius: 50%;
}
.noodle i::before { right: 4px; }
.noodle i::after { right: 15px; }
.more-skins { margin-top: 16px !important; font-size: 15px; }

.arenas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.arenas figure { margin: 0; }
.arenas img, .arenas .secret {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    border: 3px solid var(--edge); border-radius: 16px;
}
.arenas figcaption { margin-top: 6px; font-size: 13px; font-weight: 900; text-align: center; }
.arenas .secret {
    display: grid; place-items: center;
    font-size: 30px; font-weight: 900; color: #FFFFFF;
    background: radial-gradient(circle at 30% 30%, #6A5CFF, #2B1E66 70%);
    text-shadow: 0 0 12px #FF4FD8;
}

.powerups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.powerups li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-weight: 800; font-size: 15px; background: var(--card-2); border-radius: 14px; }
.powerups li span { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; border: 2px solid var(--edge); font-size: 17px; }
.powerups li span.x2 { font-size: 14px; font-weight: 900; color: var(--outline); }

.langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.langs li { padding: 5px 12px; font-size: 14px; font-weight: 800; background: var(--card-2); border: 2px solid var(--line); border-radius: 999px; }

.checks { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.checks li::before {
    content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px;
    background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
    border: 2px solid var(--edge); border-radius: 50%;
}

/* ------------------------------------------------------------------ Bosses */

.clash { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(34px, 5vw, 56px); }
.clash-art { position: relative; }
.clash-art::before {
    content: ""; position: absolute; inset: 8% 4% 2%;
    background: radial-gradient(closest-side, rgba(255, 77, 94, 0.35), transparent);
    filter: blur(10px);
}
.clash-art img { position: relative; width: 100%; filter: drop-shadow(0 22px 22px rgba(0, 0, 0, 0.22)); }
.vs {
    position: absolute; left: 4%; top: 2%;
    padding: 6px 16px; font-size: 22px; font-weight: 900; color: #FFFFFF;
    background: #FF4D5E; border: 3px solid var(--outline); border-radius: 14px;
    box-shadow: 0 5px 0 var(--outline); transform: rotate(-6deg);
}
.clash-copy .title { text-align: left; }
.clash-copy p { margin: 18px 0 0; font-size: 19px; font-weight: 700; color: var(--ink); }
.rule {
    display: flex; gap: 14px; align-items: center;
    margin-top: 22px; padding: 16px 18px;
    font-weight: 800;
    background: var(--card); border: 3px solid var(--edge); border-radius: 20px; box-shadow: 0 5px 0 var(--edge);
}
.rule .meter { flex: none; display: flex; align-items: center; gap: 6px; font-weight: 900; }
.rule .meter span { padding: 2px 10px; border-radius: 10px; color: #FFFFFF; border: 2px solid var(--outline); }

.bosses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); margin: 0; padding: 0; list-style: none; }
.boss { --c: #FF4D5E; padding: 18px 18px 22px; text-align: center; overflow: hidden; }
.boss::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 58%;
    background: radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--c) 34%, transparent), transparent 70%);
}
.boss-art { position: relative; height: 128px; display: grid; place-items: center; }
.boss-art img { max-height: 118px; width: auto; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.25)); }
/* Bosses you haven't met yet show as glowing silhouettes. */
.boss.locked .boss-art img { filter: brightness(0) drop-shadow(0 0 2px var(--c)) drop-shadow(0 0 16px var(--c)); opacity: 0.92; }
.boss.locked .boss-art::after {
    content: "?"; position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 46px; font-weight: 900; color: #FFFFFF; text-shadow: 0 0 14px var(--c), 0 3px 0 var(--outline);
}
.boss .lvl {
    position: relative; display: inline-block; margin-top: 10px; padding: 2px 12px;
    font-size: 13px; font-weight: 900; letter-spacing: 0.06em; color: #FFFFFF;
    background: var(--c); border: 2px solid var(--outline); border-radius: 999px;
}
.boss h3 { position: relative; margin: 10px 0 4px; font-size: 19px; font-weight: 900; line-height: 1.2; letter-spacing: 0.02em; }
.boss p { position: relative; margin: 0; font-size: 15px; color: var(--muted); line-height: 1.45; }
.boss.blizzard { --c: #2E9BEA; }
.boss.venom { --c: #2DBE3E; }
.boss.shadow { --c: #8A4DFF; }
.bosses-note { margin: 22px 0 0; text-align: center; font-weight: 800; color: var(--muted); }

/* ------------------------------------------------------------------ Gallery */

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(120px, 15vw, 190px); grid-auto-flow: dense; gap: clamp(10px, 1.6vw, 18px); margin: 0; padding: 0; list-style: none; }
.gallery li { min-width: 0; }
.gallery li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery li:nth-child(6) { grid-column: 3 / span 2; grid-row: span 2; }
.shot {
    position: relative; display: block; width: 100%; height: 100%; padding: 0;
    overflow: hidden; cursor: zoom-in;
    background: #000; border: 3px solid var(--edge); border-radius: 22px;
    box-shadow: 0 6px 0 var(--edge);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shot:hover { transform: translateY(-3px) rotate(-0.4deg); box-shadow: 0 9px 0 var(--edge); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.shot:hover img { transform: scale(1.06); }
.shot span {
    position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
    padding: 4px 12px; font-size: 13px; font-weight: 900; text-align: left; color: #FFFFFF;
    background: rgba(20, 16, 40, 0.68); border-radius: 999px;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

.lightbox {
    width: min(100vw - 80px, 1280px); max-width: none; max-height: calc(100vh - 24px);
    padding: 0; overflow: visible;
    color: #FFFFFF; background: transparent; border: 0;
}
.lightbox::backdrop { background: rgba(8, 6, 20, 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: pop 0.22s ease; }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 20px; border: 3px solid #000; background: #000; }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-weight: 800; }
.lightbox figcaption small { opacity: 0.7; white-space: nowrap; }
.lb-btn {
    position: absolute; top: 50%; z-index: 2;
    display: grid; place-items: center; width: 52px; height: 52px; margin-top: -48px;
    color: var(--outline); background: var(--yellow);
    border: 3px solid var(--outline); border-radius: 50%; box-shadow: 0 4px 0 var(--outline);
    cursor: pointer;
}
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev { left: -18px; }
.lb-next { right: -18px; }
.lb-close { top: -18px; right: -18px; margin: 0; width: 46px; height: 46px; }
@media (max-width: 640px) {
    .lightbox { width: calc(100vw - 24px); }
    .lb-prev { left: 6px; } .lb-next { right: 6px; } .lb-close { right: 6px; top: -56px; }
}
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }

/* ------------------------------------------------------------------ Install */

.install { display: grid; grid-template-columns: 1fr; gap: clamp(18px, 2.4vw, 26px); }
.tabs { display: inline-flex; gap: 6px; padding: 6px; margin: 0 auto 26px; background: rgba(255, 255, 255, 0.86); border: 3px solid var(--outline); border-radius: 18px; }
@media (prefers-color-scheme: dark) { .tabs { background: rgba(16, 11, 38, 0.85); border-color: var(--edge); } }
.tabs button {
    padding: 8px 16px; font: inherit; font-weight: 900; font-size: 15px;
    color: var(--ink); background: transparent; border: 0; border-radius: 12px; cursor: pointer;
}
.tabs button[aria-selected="true"] { color: var(--outline); background: var(--yellow); box-shadow: inset 0 0 0 2px var(--outline); }
.tab-center { text-align: center; }

.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 26px); margin: 0; padding: 0; list-style: none; counter-reset: how; }
.how > li { padding: 0 0 24px; overflow: hidden; display: flex; flex-direction: column; }
.how .scene { min-height: 190px; display: grid; place-items: center; padding: 18px; background: var(--card-2); border-bottom: 3px solid var(--edge); }
.how h3 { display: flex; gap: 12px; align-items: center; margin: 20px 22px 6px; font-size: 20px; font-weight: 900; line-height: 1.25; }
.how h3::before {
    counter-increment: how; content: counter(how);
    display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px;
    font-size: 17px; color: var(--outline); background: var(--yellow);
    border: 3px solid var(--outline); border-radius: 50%;
}
.how p { margin: 0 22px; color: var(--muted); font-size: 16px; }

/* Mini macOS mock-ups for the install steps. */
.finder { width: 100%; max-width: 260px; background: var(--card); border: 2px solid var(--line); border-radius: 12px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14); overflow: hidden; font-size: 12px; }
.finder-bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: var(--card-2); border-bottom: 1px solid var(--line); font-weight: 800; color: var(--muted); }
.finder-bar i { width: 9px; height: 9px; border-radius: 50%; background: #FF5F57; }
.finder-bar i:nth-child(2) { background: #FEBC2E; }
.finder-bar i:nth-child(3) { background: #28C840; margin-right: 6px; }
.finder-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-weight: 800; }
.finder-row.sel { color: #FFFFFF; background: #2F6BFF; }
.finder-row .meta { margin-left: auto; font-weight: 700; opacity: 0.7; }
.file-ico { width: 30px; height: 30px; flex: none; border-radius: 7px; }
.pkg-ico {
    display: grid; place-items: center; width: 30px; height: 30px; flex: none;
    background: linear-gradient(135deg, #C98B4A, #9B6431); border-radius: 6px; border: 1.5px solid #6B4423;
    box-shadow: inset 0 9px 0 rgba(255, 255, 255, 0.18);
}
.pkg-ico::after { content: ""; width: 10px; height: 30px; background: #E8C27A; opacity: 0.7; }
.zip-ico { display: grid; place-items: center; width: 26px; height: 30px; flex: none; background: #E7E9EF; border: 1.5px solid #B8BCC8; border-radius: 4px; }
.zip-ico::after { content: ""; width: 4px; height: 20px; background: repeating-linear-gradient(#6B6F7B 0 3px, transparent 3px 6px); }

.installer { width: 100%; max-width: 280px; display: grid; grid-template-columns: 92px 1fr; background: var(--card); border: 2px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14); font-size: 11px; }
.installer ol { margin: 0; padding: 10px 8px 10px 22px; background: var(--card-2); color: var(--muted); font-weight: 700; line-height: 1.8; }
.installer ol .on { color: var(--ink); font-weight: 900; }
.installer div { display: grid; align-content: space-between; padding: 12px; gap: 12px; }
.installer p { margin: 0 !important; font-size: 11.5px !important; color: var(--ink) !important; font-weight: 700; line-height: 1.35; }
.installer .mbtn { justify-self: end; padding: 4px 12px; color: #FFFFFF; font-weight: 800; background: #2F6BFF; border-radius: 6px; }

.drag { display: flex; align-items: center; gap: 12px; }
.drag img, .app-tile img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2); }
.drag svg { width: 40px; height: 40px; color: var(--muted); }
.folder { width: 70px; height: 56px; position: relative; background: linear-gradient(#69B7F7, #3D93E8); border-radius: 6px 6px 8px 8px; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18); }
.folder::before { content: ""; position: absolute; left: 0; top: -8px; width: 30px; height: 12px; background: #5BA8F2; border-radius: 5px 5px 0 0; }
.folder::after { content: "A"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 22px; color: rgba(255, 255, 255, 0.75); }
.folder-label { display: block; margin-top: 6px; font-size: 11px; font-weight: 800; text-align: center; color: var(--muted); }

.alert { width: 100%; max-width: 250px; padding: 14px 14px 12px; text-align: center; background: var(--card); border: 2px solid var(--line); border-radius: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16); font-size: 11.5px; line-height: 1.35; }
.alert img { width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 9px; }
.alert b { display: block; font-size: 12px; }
.alert small { display: block; margin-top: 5px; color: var(--muted); font-weight: 600; }
.alert .row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.alert .row span { padding: 4px 0; font-weight: 800; background: var(--card-2); border-radius: 6px; }
.alert .row span.go { color: #FFFFFF; background: #2F6BFF; box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.3); }

.app-tile { display: grid; justify-items: center; gap: 8px; font-size: 12px; font-weight: 800; }
.app-tile .launch { display: flex; gap: 12px; align-items: center; }
.app-tile .ghost { width: 50px; height: 50px; border-radius: 13px; background: var(--line); opacity: 0.8; }

.side > *, .mobile > *, .clash > *, .bento > *, .steps > *, .how > * { min-width: 0; }
.side { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(18px, 2.4vw, 26px); margin-top: clamp(18px, 2.4vw, 26px); }
.panel { padding: clamp(22px, 3vw, 32px); }
.panel h3 { margin: 0 0 4px; font-size: 22px; font-weight: 900; }
.panel > p { margin: 0 0 16px; color: var(--muted); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0; }
.facts dt, .facts dd { margin: 0; padding: 10px 0; border-top: 2px solid var(--line); }
.facts dt { padding-right: 18px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.facts dd { font-weight: 800; min-width: 0; }
.hash { display: flex; gap: 8px; align-items: center; }
.hash code { min-width: 0; overflow-wrap: anywhere; font-family: var(--mono); font-size: 13px; font-weight: 600; line-height: 1.45; }
.copy {
    flex: none; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; font: inherit; font-size: 13px; font-weight: 900;
    color: var(--ink); background: var(--card-2); border: 2px solid var(--line); border-radius: 10px; cursor: pointer;
}
.copy:hover { border-color: var(--edge); }
.copy svg { width: 15px; height: 15px; }
.copy.done { color: #FFFFFF; background: var(--green); border-color: var(--green); }
.term { margin-top: 16px; padding: 14px 16px; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: #D8F5D0; background: #12101F; border-radius: 16px; overflow-x: auto; }
.term .c { color: #8C86A8; }
.term .row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.term code { min-width: 0; overflow-wrap: anywhere; }
.term .copy { color: #FFFFFF; background: #2A2640; border-color: #3B3558; }

/* ------------------------------------------------------------------ FAQ */

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--card); border: 3px solid var(--edge); border-radius: 22px; box-shadow: 0 5px 0 var(--edge); overflow: hidden; }
.faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 18px 22px; font-size: 18px; font-weight: 900; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px;
    font-size: 22px; line-height: 1; color: var(--outline); background: var(--yellow);
    border: 2.5px solid var(--outline); border-radius: 50%; transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq code { font-family: var(--mono); font-size: 0.86em; padding: 1px 6px; background: var(--card-2); border-radius: 6px; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ iPhone & iPad, final call */

.mobile { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.mobile-copy .title { text-align: left; }
.mobile-copy p { margin: 18px 0 26px; font-size: 19px; font-weight: 700; color: var(--on-floor); text-shadow: var(--floor-shadow); }
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 440px; }
.phone {
    width: clamp(130px, 15vw, 190px); aspect-ratio: 414 / 900;
    padding: 7px; background: #111; border-radius: 30px;
    border: 3px solid #000; box-shadow: 0 30px 50px rgba(0, 0, 0, 0.4), inset 0 0 0 2px #333;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 23px; }
.phone:nth-child(1) { transform: rotate(-9deg) translate(30px, 10px); }
.phone:nth-child(2) { position: relative; z-index: 1; transform: translateY(-24px); width: clamp(150px, 17vw, 214px); }
.phone:nth-child(3) { transform: rotate(9deg) translate(-30px, 10px); }

.final { text-align: center; padding-top: clamp(64px, 9vw, 110px); }
.final .cta { margin-top: 26px; }

footer {
    padding: 34px 0 42px;
    color: #CFC8EA;
    background: #120C2E;
    border-top: 3px solid #000;
    font-size: 15px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: #FFFFFF; font-weight: 800; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .studio { font-size: 13px; }

/* ------------------------------------------------------------------ After-download sheet */

.sheet {
    width: min(100vw - 24px, 620px); max-width: none; padding: 0;
    color: var(--ink); background: var(--card);
    border: 3px solid var(--edge); border-radius: 30px; box-shadow: 0 10px 0 var(--edge), 0 40px 80px rgba(0, 0, 0, 0.4);
}
.sheet::backdrop { background: rgba(10, 8, 26, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet[open] { animation: pop 0.22s ease; }
.sheet-head { position: relative; padding: 26px 28px 20px; text-align: center; background: linear-gradient(var(--meadow-sky), var(--meadow-a)); border-bottom: 3px solid var(--edge); }
.sheet-head img { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 18px; border: 3px solid var(--outline); animation: hop 0.9s ease-in-out 2; }
@keyframes hop { 50% { transform: translateY(-10px) rotate(-4deg); } }
.sheet-head h2 { margin: 0; font-size: 26px; font-weight: 900; color: #FFFFFF; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); }
.sheet-head p { margin: 4px 0 0; font-weight: 800; color: #FFFFFF; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.sheet-body { padding: 22px 28px 26px; }
.sheet ol { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.sheet ol li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--card-2); border-radius: 18px; }
.sheet ol li::before {
    counter-increment: s; content: counter(s);
    flex: none; display: grid; place-items: center; width: 30px; height: 30px;
    font-weight: 900; color: var(--outline); background: var(--yellow);
    border: 2.5px solid var(--outline); border-radius: 50%;
}
.sheet ol b { display: block; }
.sheet ol span { color: var(--muted); font-size: 15px; }
.sheet-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 18px; font-size: 15px; font-weight: 700; color: var(--muted); }
.x {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    display: grid; place-items: center; width: 38px; height: 38px;
    color: var(--outline); background: #FFFFFF; border: 2.5px solid var(--outline); border-radius: 50%; cursor: pointer;
}
.x svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ Scroll reveal */

/* Only hidden once site.js is running, so nothing stays invisible if the script can't load. */
.reveal { transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1.2); }
.reveal-on .reveal:not(.in) { opacity: 0; transform: translateY(26px); }

/* ------------------------------------------------------------------ Smaller screens */

@media (max-width: 980px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .tile.span-2, .tile.span-3, .tile.span-4 { grid-column: span 1; }
    .tile.span-6, .tile.wide { grid-column: 1 / -1; }
    .controls { grid-template-columns: 1fr; }
    .clash, .mobile { grid-template-columns: 1fr; }
    .clash-copy .title, .mobile-copy .title { text-align: center; }
    .clash-copy, .mobile-copy { text-align: center; }
    .bosses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .side { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .steps, .how { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr; }
    .controls ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .gallery li:nth-child(6) { grid-column: 1 / -1; grid-row: span 1; }
    .arenas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .phones { min-height: 0; padding-top: 30px; }
    .phone { width: 30vw; border-radius: 22px; padding: 5px; }
    .phone img { border-radius: 17px; }
    .phone:nth-child(2) { width: 35vw; }
    .phone:nth-child(1) { transform: rotate(-9deg) translate(18px, 8px); }
    .phone:nth-child(3) { transform: rotate(9deg) translate(-18px, 8px); }
    .btn-xl { padding: 14px 22px 14px 16px; }
    .btn-xl .ico { width: 46px; height: 46px; }
    .facts { grid-template-columns: 1fr; }
    .facts dt { padding-bottom: 0; }
    .facts dd { border-top: 0; padding-top: 2px; }
}

@media (max-width: 420px) {
    .bosses { grid-template-columns: 1fr; }
    .noodles, .powerups { grid-template-columns: 1fr; }
    .trust li { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .marquee-track { transform: none; }
}

@media print {
    .topbar, .hero-snake, .marquee, .chip, video, .play-toggle { display: none !important; }
}
