:root {
    --ink: #21170e;
    --paper: #f4e5bb;
    --paper-deep: #d8bc7d;
    --red: #b62f2a;
    --red-dark: #76231f;
    --teal: #1c6866;
    --gold: #e8b84c;
    --night: #17120c;
    --white: #fff8dc;
}

* { box-sizing: border-box; }
html { background: #0d0a07; color-scheme: dark; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); font-family: Inter, system-ui, sans-serif; background: radial-gradient(circle at 50% 0, #4b3521 0, #17110b 46%, #090705 100%); overflow-x: hidden; }
button, select, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

body.android-app { min-width: 0; min-height: 100dvh; overflow: hidden; overscroll-behavior: none; background: #090705; user-select: none; -webkit-user-select: none; }
body.android-app .reel-skip, body.android-app .marquee, body.android-app .reel-footer { display: none; }
body.android-app .reel-shell { width: 100%; height: 100dvh; min-height: 0; padding: 0; grid-template-rows: 1fr; }
body.android-app .game-frame { width: min(100vw, calc(100dvh * 1.7778)); max-height: 100dvh; border-radius: 0; outline: 0; box-shadow: 0 0 0 1px #080503, inset 0 0 0 2px #d2ad64; }
body.android-app .version-stamp::after { content: " · ANDROID"; color: #f8e9bd; }
body.android-app .title-footer span { display: none; }

.reel-skip { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .75rem 1rem; color: var(--white); background: var(--red); border-radius: 0 0 .5rem .5rem; }
.reel-skip:focus { top: 0; }
.reel-shell { width: min(1560px, 100%); min-height: 100vh; margin: 0 auto; padding: clamp(.55rem, 1.5vw, 1.4rem); display: grid; grid-template-rows: auto 1fr auto; align-items: center; }
.marquee { width: min(1280px, 100%); margin: 0 auto .6rem; display: flex; align-items: center; justify-content: center; gap: clamp(.5rem, 2vw, 2rem); color: #e8d8aa; font: 700 clamp(.56rem, .85vw, .76rem)/1 Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; opacity: .74; }
.marquee i { width: 4px; height: 4px; background: var(--gold); transform: rotate(45deg); }
.marquee b { color: var(--gold); font-weight: 800; }

.game-frame { position: relative; width: min(1280px, calc((100vh - 106px) * 1.7778), 100%); aspect-ratio: 16 / 9; margin: auto; overflow: hidden; isolation: isolate; background: #21180f; border: clamp(5px, .65vw, 10px) solid #17100a; border-radius: clamp(5px, .8vw, 12px); outline: 1px solid #775934; box-shadow: 0 28px 80px #000c, inset 0 0 0 2px #d2ad64, inset 0 0 0 5px #412c19; }
#gameCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: var(--paper); touch-action: none; }
.film-layer { position: absolute; z-index: 3; inset: -20%; pointer-events: none; opacity: .18; mix-blend-mode: multiply; background-image: radial-gradient(circle at 19% 37%, #1e150b 0 1px, transparent 1.4px), radial-gradient(circle at 78% 66%, #5b3215 0 .8px, transparent 1.2px), repeating-linear-gradient(0deg, transparent 0 4px, #4a2a0c12 5px); background-size: 37px 41px, 53px 47px, 100% 5px; animation: grain .32s steps(2) infinite; }
.film-layer::before, .film-layer::after { content: ""; position: absolute; top: 5%; bottom: 5%; width: 1px; background: #25170c; opacity: .33; animation: scratch 4.8s linear infinite; }
.film-layer::before { left: 34%; }.film-layer::after { left: 74%; animation-delay: -2.1s; opacity: .2; }
@keyframes grain { 0% { transform: translate(-1%, 1%); } 25% { transform: translate(1%, -.5%); } 50% { transform: translate(.5%, 1%); } 75% { transform: translate(-.5%, -1%); } }
@keyframes scratch { 0%, 17%, 25%, 100% { transform: translateX(0); opacity: 0; } 18% { opacity: .45; } 24% { transform: translateX(7px); opacity: .14; } }
.iris { position: absolute; z-index: 70; inset: 0; pointer-events: none; background: #090603; clip-path: circle(0 at 50% 50%); transition: clip-path .72s cubic-bezier(.2,.85,.2,1); }
.iris.closed { clip-path: circle(72% at 50% 50%); }
.screen-flash { position: absolute; z-index: 45; inset: 0; pointer-events: none; background: #fff7d4; opacity: 0; }
.screen-flash.pop { animation: flash .22s ease-out; }
@keyframes flash { 0% { opacity: .8; } 100% { opacity: 0; } }

.hud { position: absolute; z-index: 20; inset: clamp(.7rem, 2vw, 1.55rem) clamp(.7rem, 2.2vw, 1.7rem) auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 1rem; color: var(--ink); pointer-events: none; text-shadow: 0 1px #f7e9bf; }
.player-hud { justify-self: start; min-width: 180px; }
.hud-kicker, .stage-hud span, .boss-hud span { display: block; font-size: clamp(.45rem, .72vw, .65rem); font-weight: 800; letter-spacing: .16em; }
.hearts { height: 26px; display: flex; gap: 4px; align-items: center; }
.hearts i { position: relative; width: clamp(14px, 1.45vw, 21px); height: clamp(14px, 1.45vw, 21px); background: var(--red); transform: rotate(45deg) scale(.84); border: 2px solid var(--ink); }
.hearts i::before, .hearts i::after { content: ""; position: absolute; width: 100%; height: 100%; border-radius: 50%; background: inherit; border: inherit; }
.hearts i::before { left: -54%; top: 0; border-right: 0; }.hearts i::after { left: 0; top: -54%; border-bottom: 0; }
.hearts i.empty { background: #a99a7d; opacity: .5; }
.super-cards { display: flex; gap: 3px; margin-top: 6px; }
.super-cards i { width: clamp(13px, 1.2vw, 18px); height: clamp(7px, .7vw, 11px); border: 1.5px solid var(--ink); background: #c6b486; border-radius: 2px; transform: skew(-10deg); }
.super-cards i.full { background: #e488a2; box-shadow: inset 0 0 0 2px #f4c4cf; }
.super-cards i.charging { background: linear-gradient(90deg,#e488a2 var(--charge),#c6b486 var(--charge)); }
.loadout-hud { display: block; margin-top: 5px; color: #5a432a; font-size: clamp(.35rem, .55vw, .52rem); font-weight: 800; letter-spacing: .09em; }
.stage-hud { justify-self: center; text-align: center; }
.stage-hud b { font: 400 clamp(.75rem, 1.4vw, 1.25rem)/1.1 'DM Serif Display', Georgia, serif; letter-spacing: .045em; }
.boss-hud { justify-self: end; min-width: clamp(150px, 19vw, 260px); text-align: right; }
.boss-meter { width: 100%; height: clamp(7px, .8vw, 11px); margin-top: 5px; padding: 2px; border: 2px solid var(--ink); background: #e5d2a2; border-radius: 10px; }
.boss-meter i { display: block; width: 100%; height: 100%; border-radius: 7px; background: var(--red); transition: width .16s; }

.announcer { position: absolute; z-index: 40; inset: 0; display: grid; place-content: center; text-align: center; color: #fff1c6; pointer-events: none; opacity: 0; text-shadow: 0 5px 0 #29170b, -2px 0 #29170b, 2px 0 #29170b; transform: scale(.75) rotate(-3deg); }
.announcer.show { animation: announce 2.25s ease both; }
.announcer small { font: 800 clamp(.6rem, 1.2vw, 1rem)/1 Inter; letter-spacing: .35em; }
.announcer strong { font: 400 clamp(3rem, 10vw, 9rem)/.75 'DM Serif Display', Georgia, serif; font-style: italic; letter-spacing: -.05em; }
.announcer em { font: 800 clamp(.55rem, 1vw, .9rem)/1 Inter; letter-spacing: .14em; text-transform: uppercase; }
@keyframes announce { 0% { opacity: 0; transform: scale(.6) rotate(-8deg); } 13%, 70% { opacity: 1; transform: scale(1) rotate(-3deg); } 100% { opacity: 0; transform: scale(1.3) rotate(3deg); } }

.game-menu { position: absolute; z-index: 30; inset: 0; display: none; color: var(--ink); }
.game-menu.active { display: flex; }
.title-menu { overflow: hidden; flex-direction: column; align-items: center; justify-content: center; padding: 5% 7% 3%; text-align: center; background: radial-gradient(circle at 50% 42%, #fae9b7 0 23%, #dec184 56%, #b28b50 100%); }
.title-menu::before { content: ""; position: absolute; inset: -20%; z-index: -1; opacity: .18; background: repeating-conic-gradient(from 0deg at 50% 50%, var(--red) 0deg 6deg, transparent 6deg 12deg); animation: title-rays 60s linear infinite; }
@keyframes title-rays { to { transform: rotate(1turn); } }
.title-menu::after { content: ""; position: absolute; inset: 2.5%; z-index: -1; border: clamp(2px, .35vw, 5px) double var(--ink); border-radius: 48% 48% 4% 4% / 9% 9% 4% 4%; pointer-events: none; }
.title-sun { position: absolute; left: 50%; top: 46%; width: 46%; aspect-ratio: 1; border: 3px solid #c23f31; border-radius: 50%; transform: translate(-50%, -50%); opacity: .2; box-shadow: 0 0 0 1.2vw #e1a848, 0 0 0 1.4vw #9a2b24; }
.picture-credit { position: absolute; top: 5.6%; left: 7%; right: 7%; margin: 0; display: flex; justify-content: space-between; font-size: clamp(.42rem, .65vw, .66rem); font-weight: 800; letter-spacing: .2em; }
.version-stamp { position: absolute; right: 6.5%; top: 11%; z-index: 3; margin: 0; padding: .55em .7em; color: #f8e9bd; border: 2px solid var(--ink); background: var(--red); box-shadow: 3px 3px var(--ink); font-size: clamp(.38rem, .6vw, .6rem); font-weight: 800; letter-spacing: .12em; transform: rotate(6deg); }.version-stamp b { color: var(--gold); font-size: 1.2em; }
.reel-logo { position: relative; z-index: 2; display: grid; transform: rotate(-2deg); }
.reel-logo span { font: 400 clamp(2.2rem, 7vw, 6.6rem)/.65 'DM Serif Display', Georgia, serif; font-style: italic; color: var(--teal); -webkit-text-stroke: clamp(1px, .18vw, 3px) var(--ink); letter-spacing: .06em; filter: drop-shadow(0 .32vw 0 #52321c); }
.reel-logo strong { font: 400 clamp(4.5rem, 14vw, 12rem)/.74 'DM Serif Display', Georgia, serif; font-style: italic; color: var(--red); -webkit-text-stroke: clamp(2px, .35vw, 5px) var(--ink); letter-spacing: -.07em; filter: drop-shadow(0 .52vw 0 #52321c); }
.reel-logo em { margin-top: clamp(.25rem, 1vw, .8rem); color: var(--ink); font: 800 clamp(.48rem, .95vw, .85rem)/1 Inter; text-transform: uppercase; letter-spacing: .28em; }
.title-cast { position: absolute; left: 8%; bottom: 15%; display: flex; align-items: center; gap: 1vw; transform: rotate(-6deg); text-align: left; font-size: clamp(.4rem, .65vw, .64rem); font-weight: 800; letter-spacing: .15em; }
.title-cast b { color: var(--red); font: 400 clamp(.8rem, 1.6vw, 1.5rem)/1 'DM Serif Display'; letter-spacing: .02em; }
.cast-windy { position: relative; width: clamp(34px, 5vw, 70px); height: clamp(34px, 5vw, 70px); border: 3px solid var(--ink); border-radius: 52% 48% 45% 50%; background: #f5e6b9; }
.cast-windy::before { content: ""; position: absolute; left: 62%; top: 30%; width: 58%; height: 24%; background: var(--gold); border: 3px solid var(--ink); border-left: 0; border-radius: 20% 80% 80% 20%; transform: rotate(-7deg); }
.cast-windy::after { content: "••"; position: absolute; left: 36%; top: 13%; font-size: clamp(.8rem, 1.3vw, 1.3rem); letter-spacing: 0; }
.menu-actions { position: relative; z-index: 4; margin-top: clamp(.7rem, 2.5vh, 1.5rem); display: flex; align-items: center; justify-content: center; gap: .55rem; flex-wrap: wrap; }
.menu-actions.stacked { flex-direction: column; width: min(320px, 75%); }.menu-actions.stacked .reel-btn { width: 100%; }
.reel-btn { min-height: clamp(34px, 4vw, 48px); padding: .65em 1.4em; color: var(--ink); border: 2px solid var(--ink); border-radius: 50% 46% 47% 51% / 10% 13% 9% 12%; background: #edd9a5; box-shadow: 0 4px 0 var(--ink); font: 800 clamp(.52rem, .8vw, .75rem)/1 Inter; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: transform .13s, background .13s; }
.reel-btn:hover, .reel-btn:focus-visible { background: #fff1c7; transform: translateY(-2px) rotate(-1deg); outline: 3px solid #fff7d0; outline-offset: 2px; }
.reel-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.reel-btn.primary { color: #fff2c8; background: var(--red); }.reel-btn.primary:hover { background: #d34338; }
.reel-btn.quiet { border-color: transparent; background: transparent; box-shadow: none; text-decoration: underline; text-underline-offset: 4px; }
.title-footer { position: absolute; z-index: 4; bottom: 5.5%; left: 5%; right: 5%; display: flex; justify-content: center; align-items: center; gap: clamp(.6rem, 2vw, 1.6rem); color: #5a432a; font-size: clamp(.4rem, .65vw, .61rem); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.title-footer span + span::before { content: "•"; margin-right: clamp(.6rem, 2vw, 1.6rem); }.title-footer button { border: 0; padding: 0; color: inherit; background: none; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }

.map-menu { flex-direction: column; padding: 4.5% 5%; background: linear-gradient(#e7d29b, #cba965); }
.map-menu::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(93deg, #411a0b0b 1px, transparent 1px), linear-gradient(#411a0b0b 1px, transparent 1px); background-size: 29px 29px; }
.map-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 3px double var(--ink); padding-bottom: 1.4%; text-align: center; }
.map-head p { margin: 0 0 .15rem; font-size: clamp(.4rem, .64vw, .62rem); font-weight: 800; letter-spacing: .2em; }.map-head h1 { margin: 0; font: 400 clamp(1.7rem, 3.7vw, 3.7rem)/.9 'DM Serif Display'; font-style: italic; }
.map-stamp { justify-self: start; padding: .55em .8em; border: 2px solid var(--red); color: var(--red); font-size: clamp(.4rem, .6vw, .6rem); font-weight: 800; letter-spacing: .13em; transform: rotate(-5deg); }
.icon-btn { width: clamp(28px, 3.2vw, 40px); aspect-ratio: 1; border: 2px solid currentColor; border-radius: 50%; background: transparent; font-size: clamp(1rem, 2vw, 1.8rem); line-height: 1; cursor: pointer; }.map-head .icon-btn { justify-self: end; }
.act-posters { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4%; align-items: center; padding: 2% 0 1.5%; }
.act-poster { position: relative; height: 95%; min-height: 0; overflow: hidden; padding: 4% 4% 3%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; color: var(--ink); border: clamp(2px, .32vw, 4px) solid var(--ink); background: #ebd9a8; box-shadow: .7vw .7vw 0 #5c3d22; cursor: pointer; transform: rotate(-1.4deg); transition: transform .2s, filter .2s; }
.act-poster:nth-child(2) { background: #a9c9bf; transform: rotate(1.2deg); }.act-poster:nth-child(3) { background: #e0a24d; transform: rotate(-.7deg); }
.act-poster:hover, .act-poster:focus-visible { transform: translateY(-.5vw) rotate(0); filter: saturate(1.12); outline: .35vw solid #fff0c2; outline-offset: -.65vw; }
.act-poster[disabled] { filter: grayscale(.8) contrast(.75); cursor: not-allowed; }.act-poster[disabled]::after { content: "LOCKED\A CLEAR PRIOR ACT"; white-space: pre; position: absolute; inset: 38% 10% auto; padding: .75em; color: #f7e7b8; background: #21170ed9; border: 2px solid var(--ink); font-size: clamp(.43rem, .7vw, .66rem); font-weight: 800; letter-spacing: .12em; transform: rotate(-6deg); }
.poster-no { position: absolute; top: 3%; left: 5%; font-size: clamp(.44rem, .72vw, .72rem); font-weight: 800; letter-spacing: .17em; }.poster-no::after { content: ""; display: inline-block; width: 4vw; height: 1px; margin-left: .7em; vertical-align: middle; background: currentColor; }
.poster-art { position: absolute; inset: 12% 11% 42%; display: block; }
.poster-midway { border: .35vw solid var(--ink); border-radius: 45% 45% 8% 8%; background: radial-gradient(circle at 50% 55%, var(--red) 0 8%, transparent 8.5%), conic-gradient(from 20deg, var(--red) 0 8deg, #efd696 8deg 17deg); box-shadow: inset 0 -2vw #79502c; }
.poster-midway::before { content: ""; position: absolute; left: 24%; right: 24%; bottom: 8%; height: 37%; border: .32vw solid var(--ink); border-radius: 45% 45% 12% 12%; background: var(--gold); }.poster-midway::after { content: "♪"; position: absolute; left: 39%; top: 22%; font: 400 clamp(2rem, 5vw, 5rem)/1 'DM Serif Display'; color: var(--red); transform: rotate(-12deg); }
.poster-moon { width: 68%; left: 16%; border: .35vw solid var(--ink); border-radius: 50%; background: #f4df9b; box-shadow: -.9vw .3vw 0 var(--ink), -1.2vw .4vw 0 #f4df9b; }
.poster-moon::before { content: ""; position: absolute; left: 38%; top: 30%; width: 12%; height: 11%; border-radius: 50%; background: var(--ink); box-shadow: 2.1vw .2vw 0 var(--ink); }.poster-moon::after { content: ""; position: absolute; left: 42%; bottom: 25%; width: 29%; height: 13%; border-bottom: .3vw solid var(--ink); border-radius: 50%; }
.poster-power { inset: 14% 12% 41%; border: .35vw solid var(--ink); border-radius: 50% 50% 10% 10%; background: repeating-linear-gradient(90deg, #d84b35 0 12%, #e6ae47 12% 24%); }
.poster-power::before { content: "⚡"; position: absolute; inset: 13% 20%; display: grid; place-items: center; color: #f6dd88; background: var(--ink); border-radius: 50%; font-size: clamp(2rem, 4.5vw, 5rem); }.poster-power::after { content: ""; position: absolute; left: 7%; right: 7%; bottom: -17%; height: 20%; border: .35vw solid var(--ink); background: #94622f; }
.act-poster strong { position: relative; z-index: 1; margin-top: auto; font: 400 clamp(1.1rem, 2.6vw, 2.8rem)/.77 'DM Serif Display'; font-style: italic; }.act-poster small { position: relative; z-index: 1; margin-top: .55em; font-size: clamp(.43rem, .68vw, .67rem); font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }.act-poster em { position: relative; z-index: 1; margin-top: .7em; padding-top: 3%; font-size: clamp(.42rem, .65vw, .62rem); font-style: normal; font-weight: 800; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.act-poster .grade-seal { position: absolute; right: 5%; top: 4%; width: clamp(24px, 3.5vw, 47px); aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--red); border-radius: 50%; color: var(--red); font: 400 clamp(.8rem, 1.8vw, 1.8rem)/1 'DM Serif Display'; transform: rotate(8deg); }
.act-poster .contract-seal { position: absolute; left: 5%; bottom: 3%; z-index: 2; color: var(--red-dark); font-size: clamp(.48rem,.85vw,.8rem); letter-spacing: .08em; }
.map-stats { display: flex; justify-content: center; gap: 7%; padding-top: 1.2%; border-top: 2px solid #5d472a; }.map-stats span { display: flex; align-items: baseline; gap: .6em; }.map-stats small { font-size: clamp(.4rem, .6vw, .6rem); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }.map-stats b { font: 400 clamp(.8rem, 1.4vw, 1.35rem)/1 'DM Serif Display'; }
.reel-case { min-height: clamp(28px, 3.8vw, 49px); display: flex; align-items: center; justify-content: center; gap: clamp(.3rem, .7vw, .7rem); color: #4e3821; }
.reel-case-label { font-size: clamp(.38rem, .58vw, .56rem); font-weight: 800; letter-spacing: .16em; }
.reel-case > i, .story-reels i { position: relative; width: clamp(17px, 2.1vw, 28px); aspect-ratio: 1; display: block; border: 2px solid #5e4a2d; border-radius: 50%; background: #a99469; opacity: .45; }
.reel-case > i::before, .story-reels i::before { content: ""; position: absolute; inset: 25%; border: 2px dotted currentColor; border-radius: 50%; }
.reel-case > i.recovered, .story-reels i.recovered { color: #fff0bb; border-color: var(--red-dark); background: var(--red); opacity: 1; box-shadow: 0 2px 0 #372314; }
.reel-case .story-recap-btn { margin: 0 0 0 .45rem; font-size: clamp(.38rem, .58vw, .56rem); }
.rush-btn { min-height: 27px; padding: .5em .8em; color: #f8e8b7; background: var(--teal); box-shadow: 0 3px var(--ink); font-size: clamp(.36rem, .55vw, .53rem); }.rush-btn[disabled] { opacity: .45; filter: grayscale(1); cursor: not-allowed; }

.story-menu { align-items: center; justify-content: center; padding: 5%; background: #17100ed9; backdrop-filter: blur(3px); }
.story-card { width: min(970px, 92%); min-height: 70%; display: grid; grid-template-columns: .92fr 1.08fr; overflow: hidden; color: var(--ink); border: clamp(4px, .6vw, 8px) double var(--ink); background: #ead49e; box-shadow: 0 1.4vw 0 #080503aa; transform: rotate(-.35deg); }
.story-art { position: relative; overflow: hidden; min-height: 360px; background: radial-gradient(circle at 35% 35%, #f1d779 0 8%, transparent 8.5%), repeating-conic-gradient(from 4deg at 35% 35%, #c64b33 0 8deg, #eabf61 8deg 17deg); border-right: 4px double var(--ink); }
.story-art::before { content: ""; position: absolute; inset: 6%; border: 3px solid #281b11; border-radius: 50% 50% 8% 8% / 12% 12% 8% 8%; opacity: .72; }
.story-art::after { content: "A GLITCH JUICE SERIAL"; position: absolute; left: 7%; right: 7%; bottom: 5%; padding: .65em; color: #f9e8b5; border: 2px solid #1f160f; background: #252019; text-align: center; font-size: clamp(.43rem, .65vw, .65rem); font-weight: 800; letter-spacing: .18em; }
.story-projector { position: absolute; left: 13%; bottom: 20%; width: 46%; height: 34%; border: clamp(4px, .45vw, 7px) solid var(--ink); border-radius: 22% 22% 8% 8%; background: #2a6662; box-shadow: inset 0 -1.2vw #17413f; }
.story-projector::before, .story-projector::after { content: ""; position: absolute; top: -45%; width: 45%; aspect-ratio: 1; border: clamp(3px, .4vw, 6px) solid var(--ink); border-radius: 50%; background: radial-gradient(circle, #2b2017 0 15%, #e5b64c 16% 23%, #246b67 24% 48%, #2b2017 49% 55%, #d9aa41 56% 62%, #246b67 63%); }
.story-projector::before { left: -2%; }.story-projector::after { right: -2%; }
.story-projector i { position: absolute; left: 24%; top: 24%; width: 30%; height: 36%; border: 4px solid var(--ink); border-radius: 50%; background: #f6e6b4; }
.story-projector i::after { content: ""; position: absolute; left: 100%; top: 28%; width: 80%; height: 34%; background: #e8b34b; clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 70%); }
.story-windy { position: absolute; right: 11%; bottom: 18%; width: 24%; aspect-ratio: .82; border: clamp(4px, .45vw, 7px) solid var(--ink); border-radius: 52% 48% 44% 48%; background: #f4e4b5; transform: rotate(7deg); }
.story-windy::before { content: ""; position: absolute; left: 68%; top: 33%; width: 72%; height: 24%; border: 4px solid var(--ink); border-left: 0; border-radius: 15% 80% 80% 15%; background: #dda33e; }
.story-windy::after { content: "••"; position: absolute; left: 28%; top: 17%; font: 800 clamp(1rem, 2.2vw, 2rem)/1 Inter; letter-spacing: .2em; }
.story-villain { display: none; position: absolute; right: 8%; top: 9%; width: 30%; aspect-ratio: 1; border: 5px solid var(--ink); border-radius: 48%; background: #bd3b2f; transform: rotate(8deg); }
.story-burst { position: absolute; right: 5%; top: 4%; width: clamp(50px, 7vw, 90px); aspect-ratio: 1; display: grid; place-items: center; color: #fbebbb; background: var(--red); border: 4px solid var(--ink); clip-path: polygon(50% 0,61% 28%,85% 15%,74% 40%,100% 50%,72% 60%,86% 86%,60% 72%,50% 100%,40% 72%,14% 86%,28% 60%,0 50%,28% 40%,15% 15%,40% 28%); font: 400 clamp(1.5rem, 4vw, 4rem)/1 'DM Serif Display'; }
.story-art.act-1 { background: repeating-conic-gradient(from 4deg at 35% 35%, #c64b33 0 8deg, #eabf61 8deg 17deg); }.story-art.act-2 { background: radial-gradient(circle at 38% 36%, #ead990 0 17%, #17303c 17.5% 36%, #416566 36.5%); }.story-art.act-3 { background: repeating-linear-gradient(115deg, #a43c2f 0 8%, #d99e3e 8% 16%, #312018 16% 24%); }
.story-art.act-1 .story-villain, .story-art.act-2 .story-villain, .story-art.act-3 .story-villain { display: block; }
.story-art.act-1 .story-villain::after { content: "♪"; position: absolute; inset: 0; display: grid; place-items: center; color: #f4dfaa; font: 400 clamp(2rem, 5vw, 5rem)/1 'DM Serif Display'; }
.story-art.act-2 .story-villain { background: #edda94; border-radius: 50% 0 50% 50%; }.story-art.act-2 .story-villain::after { content: "★"; position: absolute; inset: 0; display: grid; place-items: center; color: #21323a; font-size: clamp(1.8rem, 4vw, 4rem); }
.story-art.act-3 .story-villain { border-radius: 18%; background: #bd4932; }.story-art.act-3 .story-villain::after { content: "⚡"; position: absolute; inset: 0; display: grid; place-items: center; color: #f1cf62; font-size: clamp(2rem, 5vw, 5rem); }
.story-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.2rem, 4vw, 3.6rem); }
.story-copy h2 { margin: .2em 0 .3em; color: var(--red-dark); font: italic 400 clamp(2rem, 5vw, 4.8rem)/.86 'DM Serif Display'; }
.story-copy > p { margin: 0; font-size: clamp(.65rem, 1.05vw, 1rem); line-height: 1.55; }
.story-copy blockquote { margin: 1em 0 .3em; padding: .8em 0 .8em 1em; border-left: 4px solid var(--red); font: italic 400 clamp(.72rem, 1.2vw, 1.15rem)/1.35 'DM Serif Display'; }
.story-reels { display: flex; gap: .45rem; margin-top: .5rem; }.story-reels i { width: clamp(19px, 2.4vw, 30px); }
.assist-btn { color: #f7e7bb; background: var(--teal); }.assist-btn:hover { color: var(--ink); background: #79aaa3; }
.ending-note { color: var(--red-dark); font-family: 'DM Serif Display', Georgia, serif !important; font-style: italic !important; }

.pause-menu, .result-menu, .ending-menu { flex-direction: column; align-items: center; justify-content: center; padding: 7%; text-align: center; background: #e5cf97ed; backdrop-filter: blur(4px); }
.pause-menu::before, .result-menu::before, .ending-menu::before { content: ""; position: absolute; inset: 5%; z-index: -1; border: 4px double var(--ink); }
.menu-overline { font-size: clamp(.5rem, .8vw, .76rem); font-weight: 800; letter-spacing: .25em; }.pause-menu h2, .result-menu h2, .ending-menu h2, .game-panel h2 { margin: .2em 0 .15em; font: 400 clamp(2rem, 5vw, 4.8rem)/.9 'DM Serif Display'; font-style: italic; }
.result-layout { width: min(650px, 80%); display: grid; grid-template-columns: 1fr 2fr; gap: 6%; align-items: center; margin-top: 1.5%; }
.result-grade { display: grid; place-items: center; width: clamp(85px, 13vw, 165px); aspect-ratio: 1; color: var(--red); border: clamp(4px, .55vw, 8px) double var(--red); border-radius: 50%; font: 400 clamp(4rem, 10vw, 9rem)/1 'DM Serif Display'; transform: rotate(-8deg); }
.result-scorecard { margin: 0; border-top: 2px solid var(--ink); }.result-scorecard div { display: flex; justify-content: space-between; padding: .35em 0; border-bottom: 1px solid #725b38; font-size: clamp(.55rem, .9vw, .85rem); }.result-scorecard dt { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }.result-scorecard dd { margin: 0; font-weight: 800; }
.result-menu > p { margin: .7em 0 0; color: var(--red); font: italic 400 clamp(.65rem, 1vw, 1rem)/1 'DM Serif Display'; }
.contract-results { width: min(650px, 86%); display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; margin-top: .8rem; }.contract-results span { padding: .45em .55em; display: grid; grid-template-columns: auto 1fr; column-gap: .4em; align-items: center; border: 1px solid #80613b; background: #d8c188; opacity: .55; text-align: left; }.contract-results span.earned { color: #fff0bd; border-color: var(--red-dark); background: var(--red); opacity: 1; }.contract-results i { grid-row: 1 / 3; font-size: clamp(.8rem,1.4vw,1.3rem); }.contract-results b { font-size: clamp(.42rem,.65vw,.62rem); text-transform: uppercase; letter-spacing: .07em; }.contract-results small { font-size: clamp(.36rem,.55vw,.52rem); }
.ending-menu p { max-width: 700px; margin: .8em 0; font: 400 clamp(.7rem, 1.15vw, 1.05rem)/1.5 Inter; }.ending-stars { color: var(--gold); font-size: clamp(1rem, 2vw, 2rem); letter-spacing: .6em; text-shadow: 0 2px var(--ink); }.ending-cast { display: flex; gap: 3vw; margin: 1.5% 0; }.ending-cast span { font: 400 clamp(.7rem, 1.3vw, 1.2rem)/1 'DM Serif Display'; }.ending-cast i { display: block; margin-top: .4em; font: 700 clamp(.4rem, .6vw, .6rem)/1 Inter; text-transform: uppercase; letter-spacing: .08em; }
.ending-record { padding: .7em 1.2em; color: #f8e9bd; border: 2px solid var(--ink); background: var(--teal); font: 800 clamp(.55rem,.9vw,.85rem)/1 Inter; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-1deg); }

.game-panel { position: absolute; z-index: 65; left: 50%; top: 50%; width: min(760px, 88%); max-height: 88%; overflow-y: auto; padding: clamp(1.2rem, 3.3vw, 3rem); color: var(--ink); background: #eddbab; border: clamp(3px, .45vw, 6px) double var(--ink); box-shadow: 0 1.5vw 0 #23160dc0; transform: translate(-50%, -50%) rotate(-.5deg); }
.game-panel[hidden] { display: none; }.panel-close { position: absolute; right: 2.5%; top: 3.5%; }.game-panel h2 { font-size: clamp(1.8rem, 4vw, 3.8rem); }
.controls-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1rem; }.controls-grid > span { min-height: 110px; padding: .8rem; border: 1px solid #86663b; background: #f7e9bf; }.controls-grid b, .controls-grid small { display: block; }.controls-grid b { margin-top: .55em; font-size: clamp(.65rem, .9vw, .86rem); }.controls-grid small { margin-top: .25em; font-size: clamp(.52rem, .72vw, .7rem); line-height: 1.35; }.controls-grid kbd { display: inline-grid; place-items: center; min-width: 28px; height: 26px; padding: 0 .4em; margin-right: 3px; color: #f4dfac; background: var(--ink); border-radius: 4px; box-shadow: 0 3px #8f6432; font-size: .65rem; }.tip-copy, .credits-panel p { font-size: clamp(.59rem, .85vw, .82rem); line-height: 1.55; }.credits-panel a { color: var(--red-dark); font-weight: 800; }
.options-panel label { padding: .85rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #80623c; font-size: clamp(.58rem, .85vw, .82rem); font-weight: 800; }.options-panel label span small { display: block; margin-top: .25em; font-weight: 500; opacity: .75; }.options-panel input[type="range"] { accent-color: var(--red); width: 42%; }.options-panel select { min-width: 140px; padding: .5em; color: var(--ink); background: #fff1c7; border: 2px solid var(--ink); }.options-panel input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--red); }.text-button { margin-top: 1rem; padding: 0; color: var(--red-dark); border: 0; background: none; font-size: .7rem; font-weight: 800; text-decoration: underline; cursor: pointer; }
.loadout-panel { width: min(980px, 92%); }.loadout-intro { max-width: 700px; margin: .35rem 0 1rem; font-size: clamp(.56rem,.82vw,.78rem); line-height: 1.5; }.loadout-section { margin-top: .85rem; }.loadout-section > div:first-child { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .45rem; }.loadout-section > div:first-child > b { font-size: clamp(.48rem,.72vw,.7rem); letter-spacing: .18em; }.loadout-section > div:first-child > small { color: var(--red-dark); font-size: clamp(.45rem,.65vw,.62rem); font-weight: 800; }
.loadout-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .55rem; }.loadout-grid.charm-grid { grid-template-columns: repeat(4,1fr); }.loadout-card { position: relative; min-height: 118px; padding: .75rem; display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; align-content: center; color: var(--ink); border: 2px solid #795936; background: #f6e7bc; text-align: left; cursor: pointer; }.loadout-card:hover:not([disabled]),.loadout-card:focus-visible:not([disabled]) { outline: 3px solid #fff5d0; border-color: var(--red); transform: translateY(-2px); }.loadout-card.selected { color: #fff0c1; border-color: var(--ink); background: var(--teal); box-shadow: inset 0 0 0 3px #86b0a7; }.loadout-card[disabled] { filter: grayscale(.8); opacity: .55; cursor: not-allowed; }.loadout-card > i { grid-row: 1 / 4; width: 34px; height: 34px; display: grid; place-items: center; color: #fff0bd; border: 2px solid var(--ink); border-radius: 50%; background: var(--red); font-style: normal; font-size: 1.05rem; }.loadout-card > b { font: 400 clamp(.75rem,1.15vw,1.05rem)/1 'DM Serif Display'; }.loadout-card > small { margin-top: .25rem; font-size: clamp(.43rem,.62vw,.59rem); line-height: 1.35; }.loadout-card > em { margin-top: .35rem; color: var(--red-dark); font-size: clamp(.36rem,.52vw,.5rem); font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }.loadout-card.selected > em { color: #f7dda0; }
.pause-button { position: absolute; z-index: 26; right: 1.5%; top: 12%; width: clamp(28px, 3.1vw, 40px); aspect-ratio: 1; color: var(--ink); border: 2px solid var(--ink); border-radius: 50%; background: #f1dfa9bf; font-weight: 800; cursor: pointer; }

.touch-controls { position: absolute; z-index: 25; inset: auto 1.5% 2%; align-items: end; justify-content: space-between; pointer-events: none; }
.touch-controls > div { display: flex; gap: min(1.1vw, 9px); pointer-events: auto; }.touch-controls button { width: clamp(44px, 7vw, 76px); aspect-ratio: 1; display: grid; place-content: center; color: #fff4d0; border: 2px solid #21170e; border-radius: 50%; background: #3f2c20b8; box-shadow: inset 0 0 0 2px #f7e7b73b; font-size: clamp(.38rem, .65vw, .62rem); font-weight: 800; touch-action: none; user-select: none; }.touch-controls button span { font-size: clamp(.8rem, 1.5vw, 1.4rem); }.touch-controls button.active { transform: scale(.9); background: #a52f29dd; }.touch-actions button:nth-child(2) { width: clamp(52px, 8vw, 86px); background: #a52f29cf; }

.reel-footer { width: min(1280px, 100%); margin: .75rem auto 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #b9a581; font-size: clamp(.55rem, .72vw, .7rem); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.reel-footer a { color: #e4d0a3; text-decoration: none; }.reel-footer > span { opacity: .55; }.reel-footer div { justify-self: end; display: flex; gap: 1rem; }.reel-footer button { padding: 0; color: inherit; border: 0; background: none; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }.reel-footer a:hover, .reel-footer button:hover { color: #fff0c5; }
.no-script { margin: 2rem auto; color: white; text-align: center; }

@media (pointer: coarse), (max-width: 900px) { .touch-controls[hidden] { display: none; }.touch-controls:not([hidden]) { display: flex; }.pause-button { top: 15%; }.reel-footer > span { display: none; }.reel-footer { grid-template-columns: 1fr auto; } }
@media (max-width: 700px) and (orientation: portrait) {
    .reel-shell { min-height: 100svh; padding: .45rem; align-content: start; }
    .marquee { min-height: 25px; margin-bottom: .35rem; }
    .game-frame { width: 100%; margin-top: min(20vh, 130px); }
    .reel-footer { margin-top: .75rem; grid-template-columns: 1fr; gap: .75rem; text-align: center; }.reel-footer div { justify-self: center; }.reel-footer a { text-align: center; }
    .title-cast { display: none; }.title-footer span { display: none; }.picture-credit { top: 4%; }
    .menu-actions { margin-top: .45rem; gap: .3rem; }.reel-btn { min-height: 27px; padding: .55em 1em; box-shadow: 0 2px var(--ink); }
    .act-posters { gap: 1.5%; }.act-poster { box-shadow: 3px 3px var(--ink); }.map-menu { padding: 3.5% 4%; }.map-stats { display: none; }.reel-case { position: absolute; left: 4%; right: 4%; bottom: 2%; }.reel-case-label,.reel-case > i { display: none; }.reel-case .story-recap-btn { margin-left: .15rem; font-size: .34rem; }.rush-btn { min-height: 23px; font-size: .32rem; }
    .story-menu { padding: 2.5%; }.story-card { min-height: 90%; grid-template-columns: .72fr 1.28fr; }.story-art { min-height: 0; }.story-art::after { font-size: .28rem; }.story-copy { padding: .42rem .6rem; }.story-copy h2 { margin: .1em 0 .18em; font-size: clamp(1rem, 5vw, 1.45rem); }.story-copy > p { font-size: .48rem; line-height: 1.35; }.story-copy blockquote { margin: .28em 0 0; padding: .3em 0 .3em .5em; font-size: .54rem; }.story-copy .menu-overline { font-size: .34rem; }.story-copy .menu-actions { justify-content: flex-start; }.story-copy .reel-btn { font-size: .36rem; }.story-reels { display: none; }
    .controls-grid { grid-template-columns: repeat(2, 1fr); }.controls-grid > span { min-height: 85px; }
    .contract-results { width: 92%; gap: .2rem; margin-top: .35rem; }.contract-results span { padding: .25em; }.contract-results small { display: none; }.loadout-panel { width: 95%; padding: .7rem; }.loadout-panel h2 { font-size: 1.35rem; }.loadout-intro { display: none; }.loadout-section { margin-top: .35rem; }.loadout-grid,.loadout-grid.charm-grid { grid-template-columns: repeat(4,1fr); gap: .25rem; }.loadout-grid:not(.charm-grid) { grid-template-columns: repeat(3,1fr); }.loadout-card { min-height: 72px; padding: .3rem; grid-template-columns: 1fr; text-align: center; }.loadout-card > i { grid-row: auto; width: 22px; height: 22px; margin: 0 auto; font-size: .65rem; }.loadout-card > small,.loadout-card > em { display: none; }.loadout-card > b { margin-top: .2rem; font-size: .58rem; }
}
@media (max-height: 520px) { .marquee { display: none; }.reel-shell { padding: 0; }.game-frame { width: min(100vw, calc(100vh * 1.7778)); border-width: 3px; }.reel-footer { display: none; }.title-footer { bottom: 3%; }.pause-button { top: 10%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }.film-layer { animation: none; } }
body.reduced-motion .film-layer { animation: none; transform: none; } body.reduced-motion .film-layer::before, body.reduced-motion .film-layer::after { animation: none; } body.reduced-flashes .screen-flash { display: none; }
