/* ==========================================================================
   DRIMARO — Hand-Drawn Editorial Ink & Paper Zine Design System
   Inspired by dontlookup.app · Tiny Objects Fighting for Their Life
   ========================================================================== */

:root {
    --paper: #f4f3ef;
    --paper-2: #eae7df;
    --white: #ffffff;
    --ink: #14140f;
    --ink-soft: #4a483f;
    --ink-muted: #767264;

    --red: #c0342a;
    --red-soft: #f7dad7;
    --yellow: #f2c31a;
    --yellow-soft: #f8e08a;
    --blue: #9abeef;
    --blue-deep: #2b5a9b;
    --green: #4f8a4b;

    --display: 'Luckiest Guy', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
    --hero-display: 'Titan One', 'Luckiest Guy', ui-rounded, sans-serif;
    --body: 'Nunito', system-ui, -apple-system, sans-serif;
    --mono: 'Space Mono', ui-monospace, monospace;

    --radius-card: 20px 24px 19px 23px / 23px 19px 24px 20px;
    --radius-pill: 999px;

    --shadow-sm: 2.5px 3px 0 var(--ink);
    --shadow-md: 4px 5px 0 var(--ink);
    --shadow-lg: 6px 7px 0 var(--ink);
}

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

html {
    scroll-behavior: smooth;
    background: var(--paper);
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    line-height: 1.55;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    font-synthesis: none;
}

body.game-active {
    overflow: hidden;
    height: 100dvh;
}

/* Subtle paper grain overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.032;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

button,
a {
    font-family: inherit;
    color: inherit;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--blue-deep);
    outline-offset: 3px;
}

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

/* ==========================================================================
   Tactile Comic Buttons & Pills
   ========================================================================== */

.comic-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.72rem 1.45rem;
    border: 2.5px solid var(--ink);
    border-radius: 999px;
    font-family: var(--display);
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
    user-select: none;
}

.comic-pill:hover {
    transform: translate(-1.5px, -1.5px);
    box-shadow: 4px 4.5px 0 var(--ink);
}

.comic-pill:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--ink);
}

.btn-ink {
    background: var(--ink);
    color: var(--white);
}

.btn-ink:hover {
    background: #23231c;
}

.btn-paper {
    background: var(--white);
    color: var(--ink);
}

.btn-paper:hover {
    background: var(--yellow-soft);
}

.btn-red {
    background: var(--red);
    color: var(--white);
}

.btn-lg {
    padding: 0.92rem 1.85rem;
    font-size: 1.12rem;
    border-width: 3px;
    box-shadow: var(--shadow-md);
}

.btn-lg:hover {
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Floating Top Navigation
   ========================================================================== */

.site-nav {
    position: fixed;
    top: 16px;
    left: 20px;
    right: 20px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

body.game-active .site-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-14px);
}

.nav-brand,
.nav-links {
    pointer-events: auto;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.32rem 1rem 0.32rem 0.42rem;
    background: var(--white);
    border: 2.5px solid var(--ink);
    border-radius: 16px 20px 15px 19px / 20px 15px 19px 16px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    font-family: var(--display);
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.nav-brand:hover {
    transform: translate(-1px, -1px) rotate(-1deg);
    box-shadow: var(--shadow-md);
}

.nav-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    transition: transform 0.16s ease;
}

.nav-brand:hover .nav-logo {
    transform: rotate(-6deg) scale(1.06);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-pill {
    padding: 0.45rem 0.95rem;
    background: var(--white);
    border: 2.5px solid var(--ink);
    border-radius: 999px;
    font-family: var(--display);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 2px 2.5px 0 var(--ink);
    transition: transform 0.12s ease, background-color 0.15s ease;
}

.nav-pill:hover {
    background: var(--yellow-soft);
    transform: translate(-1px, -1px);
}

.nav-pill-play {
    background: var(--ink);
    color: var(--white);
}

.nav-pill-play:hover {
    background: var(--red);
    color: var(--white);
}

.sound-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2.5px solid var(--ink);
    background: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 2px 2.5px 0 var(--ink);
    font-size: 0.95rem;
    transition: transform 0.12s ease, background-color 0.15s ease;
}

.sound-btn:hover {
    background: var(--yellow-soft);
    transform: translate(-1px, -1px);
}

.sound-btn[aria-pressed="false"] {
    background: var(--paper-2);
    color: var(--ink-muted);
}

/* ==========================================================================
   Section 1: 100vh Interactive Hero & Canvas Arena
   ========================================================================== */

.hero {
    position: relative;
    height: 100dvh;
    min-height: 650px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--paper);
    background-image:
        linear-gradient(to right, rgba(20, 20, 15, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(20, 20, 15, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
}

#stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
    cursor: crosshair;
}

body.game-active #stage {
    touch-action: none;
}

.hero-wash {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(
        ellipse 62% 56% at 44% 48%,
        rgba(244, 243, 239, 0.9) 0%,
        rgba(244, 243, 239, 0.6) 55%,
        rgba(244, 243, 239, 0) 100%
    );
    transition: opacity 0.35s ease;
}

body.game-active .hero-wash,
body.game-active .hero-viewfinder {
    opacity: 0;
}

/* Storyboard / Camera Viewfinder Brackets */
.hero-viewfinder {
    position: absolute;
    inset: 14px;
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.vf-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: rgba(20, 20, 15, 0.55);
    border-style: solid;
    border-width: 0;
}

.vf-tl { top: 0; left: 0; border-top-width: 2.5px; border-left-width: 2.5px; }
.vf-tr { top: 0; right: 0; border-top-width: 2.5px; border-right-width: 2.5px; }
.vf-bl { bottom: 0; left: 0; border-bottom-width: 2.5px; border-left-width: 2.5px; }
.vf-br { bottom: 0; right: 0; border-bottom-width: 2.5px; border-right-width: 2.5px; }

.vf-rec,
.vf-scene {
    position: absolute;
    bottom: 8px;
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ink);
}

.vf-rec {
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.vf-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red);
    animation: recBlink 1.3s ease-in-out infinite;
}

@keyframes recBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.vf-scene {
    right: 12px;
}

.hero-overlay {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1240px;
    padding: 0 36px;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

body.game-active .hero-overlay {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    visibility: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) 315px;
    align-items: center;
    gap: 3rem;
}

.hero-copy {
    text-align: left;
}

.hero-stamp {
    display: inline-block;
    padding: 0.44rem 1.2rem;
    margin-bottom: 1.15rem;
    background: var(--yellow);
    border: 2.5px solid var(--ink);
    border-radius: 14px 18px 13px 17px / 17px 13px 18px 14px;
    box-shadow: var(--shadow-sm);
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transform: rotate(-1.4deg);
}

.hero-title {
    font-family: var(--hero-display);
    font-weight: 400;
    font-size: clamp(3.15rem, 7.1vw, 5.75rem);
    line-height: 0.96;
    letter-spacing: 0.01em;
    color: var(--ink);
    margin-bottom: 1.1rem;
}

.hero-title-line {
    display: block;
}

.title-survives {
    position: relative;
    display: inline-block;
    color: var(--red);
    -webkit-text-stroke: 2.8px var(--ink);
    paint-order: stroke fill;
    text-shadow: 4px 5px 0 var(--ink);
}

.peeking-chili {
    position: absolute;
    top: -0.64em;
    right: 0.14em;
    width: 0.88em;
    height: 0.96em;
    pointer-events: none;
    z-index: -1;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.peeking-chili.hop {
    transform: translateY(-10px) rotate(6deg);
}

.hero-subtitle {
    font-size: clamp(1.08rem, 1.8vw, 1.34rem);
    font-weight: 800;
    line-height: 1.38;
    color: var(--ink);
    max-width: 540px;
    margin: 0 0 1.65rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    pointer-events: auto;
}

.comic-sticker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.98rem 1.8rem;
    border: 3px solid var(--ink);
    border-radius: 16px;
    font-family: var(--display);
    font-size: 1.18rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
    user-select: none;
}

.comic-sticker:hover {
    transform: translate(-1.5px, -2px);
    box-shadow: var(--shadow-lg);
}

.comic-sticker:active {
    transform: translate(2px, 2px);
    box-shadow: 1.5px 1.5px 0 var(--ink);
}

.btn-chili {
    background: var(--red);
    color: var(--white);
}

.btn-chili:hover {
    background: #d33d32;
}

.btn-sky {
    background: #dcecfb;
    color: var(--ink);
}

.btn-sky:hover {
    background: var(--yellow-soft);
}

/* Floating Scalloped Comic Ticket Card */
.hero-ticket {
    position: relative;
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: 14px;
    padding: 1.05rem 0.9rem;
    text-align: center;
    cursor: pointer;
    pointer-events: auto;
    transform: rotate(3.2deg);
    filter: drop-shadow(6px 7px 0 var(--ink));
    transition: transform 0.16s ease, filter 0.16s ease;
    overflow: visible;
}

.hero-ticket::before,
.hero-ticket::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    height: 10px;
    background-image: radial-gradient(circle at 8px 5px, var(--paper) 4px, var(--ink) 4px, var(--ink) 6.5px, transparent 6.5px);
    background-size: 18px 10px;
    background-repeat: repeat-x;
    pointer-events: none;
}

.hero-ticket::before {
    top: -6px;
}

.hero-ticket::after {
    bottom: -6px;
}

.hero-ticket:hover {
    transform: rotate(0.5deg) translateY(-4px);
    filter: drop-shadow(8px 10px 0 var(--ink));
}

.ticket-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.6rem;
    border-bottom: 2px dashed var(--ink);
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.72rem;
}

.ticket-art {
    border: 2.5px solid var(--ink);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin-bottom: 0.6rem;
}

.poster-img,
.ticket-art img,
.modal-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ticket-caption {
    font-family: var(--display);
    font-size: 1.15rem;
    line-height: 1.1;
}

.hero-hint {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--ink-muted);
    background: rgba(244, 243, 239, 0.85);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

body.game-active .hero-hint {
    opacity: 0;
}

/* ==========================================================================
   4-Corner Game HUD (Visible during PLAY: WHO SURVIVES?)
   ========================================================================== */

.game-hud {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    display: none;
}

body.game-active .game-hud {
    display: block;
}

/* Top-Left Ledger */
.hud-ledger {
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px 28px 26px 24px;
    min-width: 240px;
    background: radial-gradient(ellipse at 20% 20%, rgba(244, 243, 239, 0.95) 55%, rgba(244, 243, 239, 0) 100%);
    pointer-events: auto;
}

.hud-alive {
    font-family: var(--display);
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    line-height: 0.95;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.hud-score {
    font-family: var(--display);
    font-size: 1.18rem;
    letter-spacing: 0.03em;
    color: var(--ink-soft);
    margin: 0.25rem 0 0.5rem;
    font-variant-numeric: tabular-nums;
}

.hud-progress-track {
    width: 190px;
    height: 11px;
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 999px;
    overflow: hidden;
}

.hud-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--green);
    transition: width 0.2s linear;
}

.hud-meta {
    margin-top: 0.4rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink-soft);
    letter-spacing: 0.05em;
}

.hud-meta-mobile,
.dock-label-mobile {
    display: none;
}

/* Top-Center Alarm */
.hud-alarm {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--display);
    font-size: clamp(1rem, 2.2vw, 1.45rem);
    letter-spacing: 0.08em;
    color: var(--red);
    text-align: center;
    text-shadow: 0 2px 0 var(--paper), 0 0 12px rgba(244, 243, 239, 0.95);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
}

.hud-alarm.active {
    opacity: 1;
    animation: alarmPulse 0.7s ease-in-out infinite alternate;
}

.hud-tip {
    position: absolute;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--yellow);
    border: 2.5px solid var(--ink);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    padding: 0.36rem 1rem;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
    color: var(--ink);
    white-space: nowrap;
    pointer-events: none;
    display: none;
    z-index: 22;
}

.hud-tip.active {
    display: block;
    animation: fadeInScale 0.2s ease;
}

@keyframes alarmPulse {
    from {
        transform: translateX(-50%) scale(1);
    }
    to {
        transform: translateX(-50%) scale(1.04);
    }
}

/* Top-Right Chaos / Heat Panel */
.hud-chaos-wrap {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 245px;
    pointer-events: auto;
}

.hud-chaos-box {
    background: var(--white);
    border: 2.5px solid var(--ink);
    border-radius: 18px 22px 16px 20px / 20px 16px 22px 18px;
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0.9rem;
}

.chaos-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.chaos-value {
    font-family: var(--display);
    font-size: 1.45rem;
    line-height: 1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.chaos-label {
    display: block;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--ink-muted);
    letter-spacing: 0.06em;
}

.chaos-btns {
    display: flex;
    gap: 0.35rem;
}

.chaos-btn {
    width: 32px;
    height: 32px;
    border: 2.5px solid var(--ink);
    border-radius: 9px;
    background: var(--white);
    font-family: var(--display);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 1.5px 2px 0 var(--ink);
}

.chaos-btn:hover {
    background: var(--yellow-soft);
}

.chaos-btn:active {
    transform: translate(1px, 1px);
    box-shadow: none;
}

.chaos-meter {
    position: relative;
    height: 11px;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 999px;
    overflow: visible;
}

.chaos-meter-fill {
    height: 100%;
    width: 25%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--yellow), var(--red));
    transition: width 0.2s ease;
}

.chaos-tick {
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: 62%;
    width: 3px;
    background: var(--red);
    border-radius: 2px;
}

.chaos-hint {
    margin-top: 0.35rem;
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--ink-muted);
    text-align: center;
}

/* Yellow Comic Coachmark Bubble */
.hud-coachmark {
    position: relative;
    margin-top: 12px;
    padding: 0.65rem 0.85rem;
    background: var(--yellow);
    border: 2.5px solid var(--ink);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    font-size: 0.82rem;
    line-height: 1.35;
    cursor: pointer;
    animation: dropBob 1.8s ease-in-out infinite;
}

.hud-coachmark::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 34px;
    width: 14px;
    height: 14px;
    background: var(--yellow);
    border-top: 2.5px solid var(--ink);
    border-left: 2.5px solid var(--ink);
    transform: rotate(45deg);
}

.hud-coachmark strong {
    display: block;
    font-family: var(--display);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
}

.hud-coachmark.hidden {
    display: none;
}

@keyframes dropBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Bottom-Left Controls & Threat Meter */
.hud-bottom-left {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    pointer-events: auto;
}

.hud-exit-btn,
.hud-help-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2.5px solid var(--ink);
    background: var(--white);
    font-family: var(--display);
    font-size: 1.35rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hud-exit-btn:hover {
    background: var(--red-soft);
}

.hud-help-btn:hover {
    background: var(--yellow-soft);
}

.threat-pill {
    position: relative;
    width: 240px;
    height: 44px;
    background: var(--white);
    border: 2.5px solid var(--ink);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.threat-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: var(--yellow);
    transition: width 0.2s ease, background-color 0.2s ease;
    z-index: 0;
}

.threat-fill.critical {
    background: var(--red);
}

.threat-text {
    position: relative;
    z-index: 1;
    font-family: var(--display);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--ink);
}

/* Bottom-Right Action Dock */
.hud-dock {
    position: absolute;
    bottom: 16px;
    right: 20px;
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    pointer-events: auto;
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.dock-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 20px 24px 18px 22px / 22px 18px 24px 20px;
    border: 2.5px solid var(--ink);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
}

.dock-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    background: var(--yellow-soft);
    box-shadow: var(--shadow-md);
}

.dock-btn.is-active {
    background: var(--ink);
    color: var(--white);
}

.dock-btn.on-cooldown {
    opacity: 0.55;
    cursor: not-allowed;
}

.dock-btn svg {
    width: 30px;
    height: 30px;
}

.dock-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    border: 2px solid var(--white);
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dock-cd {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(20, 20, 15, 0.65);
    color: var(--white);
    font-family: var(--display);
    font-size: 1.05rem;
    display: none;
    align-items: center;
    justify-content: center;
}

.dock-btn.on-cooldown .dock-cd {
    display: flex;
}

.dock-label {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.66rem;
    letter-spacing: 0.03em;
    color: var(--ink);
    background: rgba(244, 243, 239, 0.88);
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
}

.hud-kbd-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--ink-muted);
    background: rgba(244, 243, 239, 0.85);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* Quick Visual Guide Overlay */
.game-guide {
    position: absolute;
    inset: 0;
    z-index: 32;
    background: rgba(244, 243, 239, 0.92);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.game-guide.open {
    display: flex;
    animation: fadeInScale 0.2s ease;
}

.guide-card {
    width: 100%;
    max-width: 760px;
    max-height: 90dvh;
    overflow-y: auto;
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: 24px;
    box-shadow: 7px 9px 0 var(--ink);
    padding: 1.5rem 1.6rem;
    text-align: center;
}

.guide-title {
    font-family: var(--display);
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.guide-sub {
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 1.15rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
    margin-bottom: 1.15rem;
    text-align: left;
}

.guide-step {
    background: var(--paper);
    border: 2.5px solid var(--ink);
    border-radius: 16px;
    padding: 0.85rem;
}

.guide-art {
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 12px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
}

.guide-art svg {
    width: 100%;
    height: 100%;
}

.guide-step h3 {
    font-family: var(--display);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.guide-step p {
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--ink-soft);
    line-height: 1.38;
}

.guide-legend {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.legend-chip {
    padding: 0.3rem 0.75rem;
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.72rem;
}

.legend-danger {
    background: var(--red-soft);
    color: var(--red);
}

.legend-safe {
    background: #dcecfb;
    color: var(--blue-deep);
}

/* Game Result Overlay (Win / Lose) */
.game-result {
    position: absolute;
    inset: 0;
    z-index: 30;
    background: rgba(244, 243, 239, 0.88);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.game-result.open {
    display: flex;
    animation: fadeInScale 0.25s ease;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.result-card {
    max-width: 560px;
}

.result-title {
    font-family: var(--display);
    font-size: clamp(2.8rem, 7vw, 4.8rem);
    line-height: 0.94;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.result-title.is-lose {
    color: var(--red);
}

.result-sub {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 1.1rem;
}

.result-stats {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    background: var(--white);
    border: 2.5px solid var(--ink);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    font-family: var(--display);
    font-size: 1rem;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.result-reel-link {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blue-deep);
    text-decoration: underline;
}

/* ==========================================================================
   Editorial Sections & Comic Dividers
   ========================================================================== */

.comic-divider {
    width: 100%;
    height: 32px;
    overflow: hidden;
    line-height: 0;
}

.comic-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

.band {
    padding: 80px 24px;
    position: relative;
}

.band-tinted {
    background: var(--paper-2);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-eyebrow {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 999px;
    box-shadow: 2px 2px 0 var(--ink);
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.section-title {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.section-lead {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink-soft);
    max-width: 560px;
    margin: 0 auto;
}

/* ==========================================================================
   Section 2: Episodes Grid & Modal
   ========================================================================== */

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}

.filter-tab {
    padding: 0.5rem 1.15rem;
    background: var(--white);
    border: 2.5px solid var(--ink);
    border-radius: 999px;
    box-shadow: 2.5px 3px 0 var(--ink);
    font-family: var(--display);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.12s ease, background-color 0.15s ease;
}

.filter-tab:hover {
    background: var(--yellow-soft);
    transform: translate(-1px, -1px);
}

.filter-tab.active {
    background: var(--ink);
    color: var(--white);
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

.episode-card {
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-align: left;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.episode-card:hover {
    transform: translate(-2px, -4px) rotate(-0.6deg);
    box-shadow: 7px 8px 0 var(--ink);
}

.episode-card.hidden-card {
    display: none;
}

.episode-poster {
    position: relative;
    aspect-ratio: 10 / 11;
    border: 2.5px solid var(--ink);
    border-radius: 14px;
    overflow: hidden;
    background: var(--paper);
    margin-bottom: 0.85rem;
}

.episode-poster svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ep-badge-row {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.ep-pill {
    padding: 0.2rem 0.55rem;
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.68rem;
    box-shadow: 1.5px 2px 0 var(--ink);
}

.episode-title {
    font-family: var(--display);
    font-size: 1.25rem;
    line-height: 1.12;
    margin-bottom: 0.35rem;
}

.episode-hook {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.episode-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.55rem;
    border-top: 2px dashed var(--paper-2);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--red);
}

.episodes-cta {
    text-align: center;
    margin-top: 2.4rem;
}

/* Episode Detail Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(20, 20, 15, 0.65);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.open {
    display: flex;
    animation: fadeIn 0.18s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 720px;
    background: var(--paper);
    border: 3px solid var(--ink);
    border-radius: 24px;
    box-shadow: 8px 10px 0 var(--ink);
    padding: 1.6rem;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    max-height: 90dvh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2.5px solid var(--ink);
    background: var(--white);
    font-family: var(--display);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--ink);
}

.modal-close:hover {
    background: var(--red-soft);
}

.modal-art {
    border: 2.5px solid var(--ink);
    border-radius: 16px;
    background: var(--white);
    overflow: hidden;
    aspect-ratio: 10 / 11;
}

.modal-art svg {
    width: 100%;
    height: 100%;
    display: block;
}

.modal-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-ep-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 0.25rem 0.65rem;
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.72rem;
    margin-bottom: 0.65rem;
}

.modal-title {
    font-family: var(--display);
    font-size: 1.85rem;
    line-height: 1.05;
    margin-bottom: 0.65rem;
}

.modal-desc {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 1.15rem;
}

.odds-box {
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 14px;
    padding: 0.7rem 0.9rem;
    margin-bottom: 1.25rem;
}

.odds-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
}

.odds-track {
    position: relative;
    height: 12px;
    background: var(--paper-2);
    border: 2px solid var(--ink);
    border-radius: 999px;
    overflow: visible;
}

.odds-fill {
    height: 100%;
    background: var(--red);
    border-radius: 999px;
    transition: width 0.35s ease;
}

.odds-tick {
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: 50%;
    width: 3px;
    background: var(--ink);
}

.modal-links {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.modal-links .comic-pill {
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
    gap: 0.45rem;
}

.modal-links .comic-pill svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

/* ==========================================================================
   Section 3: Meet The Cast & Next Victim Poll
   ========================================================================== */

.cast-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
    margin-bottom: 3rem;
}

.cast-card {
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
    position: relative;
}

.cast-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cast-card.poked {
    animation: cardShake 0.36s ease;
}

@keyframes cardShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg) scale(1.02); }
    50% { transform: rotate(3deg) scale(1.02); }
    75% { transform: rotate(-2deg); }
}

.cast-stage {
    position: relative;
    height: 156px;
    background: var(--paper);
    border: 2.5px solid var(--ink);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    overflow: visible;
}

.cast-card[data-cast="chili"] .cast-stage { background: #fde8e4; }
.cast-card[data-cast="soap"] .cast-stage { background: #e4f1fd; }
.cast-card[data-cast="corn"] .cast-stage { background: #fef3cf; }
.cast-card[data-cast="garlic"] .cast-stage { background: #f6f1e4; }

.cast-stage svg,
.cast-sprite {
    width: 128px;
    height: 128px;
    object-fit: contain;
    display: block;
    transition: transform 0.16s ease;
}

.cast-card:hover .cast-stage svg,
.cast-card:hover .cast-sprite {
    transform: scale(1.07) rotate(-2deg);
}

.cast-bubble {
    position: absolute;
    top: -12px;
    right: 8px;
    padding: 0.25rem 0.6rem;
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 12px;
    box-shadow: 2px 2px 0 var(--ink);
    font-family: var(--body);
    font-weight: 800;
    font-size: 0.74rem;
    max-width: 160px;
    text-align: center;
    z-index: 3;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.cast-card.poked .cast-bubble {
    background: var(--yellow);
    transform: scale(1.08);
}

.cast-name {
    font-family: var(--display);
    font-size: 1.4rem;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.cast-role {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink-muted);
    margin-bottom: 0.85rem;
}

.stat-row {
    margin-bottom: 0.5rem;
}

.stat-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.stat-track {
    height: 9px;
    background: var(--paper-2);
    border: 1.8px solid var(--ink);
    border-radius: 999px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 999px;
}

.stat-fill.red { background: var(--red); }
.stat-fill.yellow { background: var(--yellow); }
.stat-fill.blue { background: var(--blue); }
.stat-fill.green { background: var(--green); }

.cast-nemesis {
    margin-top: auto;
    padding-top: 0.6rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--red);
}

/* Next Victim Poll Box */
.poll-box {
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    padding: 1.8rem;
    max-width: 880px;
    margin: 0 auto;
}

.poll-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.poll-title {
    font-family: var(--display);
    font-size: 1.65rem;
    line-height: 1.05;
}

.poll-total {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.28rem 0.7rem;
    background: var(--yellow-soft);
    border: 2px solid var(--ink);
    border-radius: 999px;
}

.poll-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
}

.poll-option {
    position: relative;
    overflow: hidden;
    text-align: left;
    padding: 0.9rem 1rem;
    background: var(--paper);
    border: 2.5px solid var(--ink);
    border-radius: 14px;
    box-shadow: 2.5px 3px 0 var(--ink);
    cursor: pointer;
    transition: transform 0.12s ease;
}

.poll-option:hover {
    transform: translate(-1px, -1px);
}

.poll-option.voted {
    background: var(--white);
    border-color: var(--ink);
    box-shadow: 3.5px 4px 0 var(--ink);
}

.poll-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: var(--yellow-soft);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}

.poll-option.voted .poll-bar {
    background: var(--yellow);
}

.poll-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.poll-name {
    font-weight: 800;
    font-size: 0.95rem;
}

.poll-pct {
    font-family: var(--display);
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Section 4: Follow & Collab Hub + Footer
   ========================================================================== */

.follow-wrap {
    text-align: center;
}

.follow-headline {
    font-family: var(--display);
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 0.96;
    margin-bottom: 1rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.1rem;
    max-width: 1080px;
    margin: 2.2rem auto 2.5rem;
}

.social-card {
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    padding: 1.35rem 1rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.15s ease;
}

.social-card:hover {
    transform: translate(-2px, -4px);
    box-shadow: var(--shadow-lg);
    background: var(--yellow-soft);
}

.social-card i {
    font-size: 2rem;
}

.social-name {
    font-family: var(--display);
    font-size: 1.15rem;
}

.social-handle {
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--ink-muted);
}

.collab-strip {
    max-width: 720px;
    margin: 0 auto 3rem;
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.collab-info {
    text-align: left;
}

.collab-info strong {
    display: block;
    font-family: var(--display);
    font-size: 1.2rem;
}

.collab-info span {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.collab-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.collab-actions .comic-pill {
    padding: 0.55rem 1rem;
    font-size: 0.86rem;
}

.site-footer {
    border-top: 2.5px solid var(--ink);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.footer-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.footer-top-link {
    text-decoration: none;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--white);
    box-shadow: 2px 2px 0 var(--ink);
}

.footer-top-link:hover {
    background: var(--yellow-soft);
}

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

@media (max-width: 1060px) {
    .episodes-grid,
    .cast-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 1.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-ticket {
        display: none;
    }
}

@media (max-width: 820px) {
    .modal-card {
        grid-template-columns: 1fr;
        max-width: 440px;
    }

    .hud-chaos-wrap {
        width: 195px;
    }

    .hud-alarm {
        top: auto;
        bottom: 92px;
        font-size: 1rem;
    }

    .hud-tip {
        top: auto;
        bottom: 122px;
        white-space: normal;
        max-width: calc(100% - 28px);
        text-align: center;
        font-size: 0.7rem;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .hud-kbd-hint {
        display: none;
    }
}

@media (max-width: 600px) {
    .site-nav {
        top: 10px;
        left: 12px;
        right: 12px;
    }

    .nav-pill:not(.nav-pill-play) {
        display: none;
    }

    .hero {
        min-height: 580px;
    }

    .hero-overlay {
        padding: 0 16px;
    }

    .hero-title {
        font-size: clamp(2.45rem, 11vw, 3.2rem);
    }

    .vf-rec,
    .vf-scene {
        display: none;
    }

    .hero-hint {
        font-size: 0.68rem;
        bottom: 12px;
        white-space: normal;
        max-width: calc(100% - 32px);
        text-align: center;
        line-height: 1.35;
    }

    .hud-meta-desktop,
    .chaos-label-desktop,
    .dock-label-desktop {
        display: none;
    }

    .hud-meta-mobile,
    .dock-label-mobile {
        display: inline;
    }

    .hud-ledger {
        top: 10px;
        left: 10px;
        padding: 4px 8px 6px;
        min-width: 0;
        max-width: calc(100% - 172px);
        border-radius: 12px;
        background: rgba(244, 243, 239, 0.92);
    }

    .hud-ledger-top {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 6px;
    }

    .hud-alive {
        font-size: 1.25rem;
        line-height: 1;
    }

    .hud-score {
        font-size: 0.78rem;
        margin: 0;
    }

    .hud-progress-track {
        width: 128px;
        height: 7px;
        margin-top: 4px;
    }

    .hud-meta {
        margin-top: 3px;
        font-size: 0.66rem;
        line-height: 1.2;
    }

    .hud-chaos-wrap {
        top: 10px;
        right: 10px;
        width: auto;
    }

    .hud-chaos-box {
        padding: 6px 8px;
        border-radius: 16px;
        box-shadow: var(--shadow-sm);
    }

    .chaos-row {
        gap: 8px;
        margin-bottom: 0;
    }

    .chaos-value {
        font-size: 1.05rem;
        line-height: 1;
    }

    .chaos-label {
        font-size: 0.56rem;
        margin-top: 2px;
    }

    .chaos-btns {
        gap: 4px;
    }

    .chaos-btn {
        width: 28px;
        height: 28px;
        border-width: 2px;
        border-radius: 8px;
        font-size: 1rem;
        box-shadow: 1.5px 1.5px 0 var(--ink);
    }

    .chaos-meter,
    .chaos-hint,
    .hud-coachmark {
        display: none !important;
    }

    .hud-alarm {
        top: 88px;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100% - 24px);
        white-space: normal;
        font-size: 0.96rem;
    }

    .hud-tip {
        top: auto;
        bottom: 136px;
        max-width: calc(100% - 24px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.62rem;
        line-height: 1.2;
        padding: 0.22rem 0.68rem;
        border-width: 1.8px;
        box-shadow: 1.5px 2px 0 var(--ink);
    }

    .hud-bottom-left {
        bottom: 92px;
        left: 12px;
        right: 12px;
        gap: 8px;
    }

    .hud-exit-btn,
    .hud-help-btn {
        width: 36px;
        height: 36px;
        font-size: 1.05rem;
    }

    .threat-pill {
        flex: 1;
        width: auto;
        height: 36px;
        padding: 0 0.85rem;
    }

    .threat-text {
        font-size: 0.85rem;
    }

    .hud-dock {
        left: 12px;
        right: 12px;
        bottom: 12px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        align-items: start;
        gap: 8px;
    }

    .dock-item {
        width: 100%;
        gap: 4px;
    }

    .dock-btn {
        width: 100%;
        height: 50px;
        border-radius: 16px;
    }

    .dock-btn svg {
        width: 25px;
        height: 25px;
    }

    .dock-badge {
        top: -6px;
        right: -4px;
        width: 20px;
        height: 20px;
        font-size: 0.68rem;
    }

    .dock-label {
        display: inline-block;
        font-size: 0.6rem;
        padding: 1px 6px;
    }

    .episodes-grid,
    .cast-grid,
    .poll-grid,
    .social-grid {
        grid-template-columns: 1fr;
    }

    .collab-strip {
        justify-content: center;
        text-align: center;
    }

    .collab-info {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
