/* Continuous movement, readable event staging and responsive play area. */
.reel.strip-running{display:block;position:relative;overflow:hidden}.reel-track{display:flex;flex-direction:column;will-change:transform}.reel-track .cell{flex-shrink:0}.reel-track .symbol{transition:none;filter:blur(.35px) drop-shadow(0 5px 3px #0007)}
.tile.revealed{animation:none}.tile{transform-style:preserve-3d}.field{perspective:900px}.tile>.symbol{opacity:.5}.tile.revealed .symbol{opacity:.4}.tile .tile-value{position:relative;text-shadow:0 2px 3px #000,0 0 12px #000}.flying-reward{position:fixed;z-index:150;pointer-events:none;font:900 35px var(--display);color:#ffe6a0;text-shadow:0 3px 0 #71421d,0 0 16px #ffac3766;white-space:nowrap}.blast-sprite{position:fixed;z-index:120;transform:translate(-50%,-50%);background:url('assets/explosion.webp') 0 0/400% 200% no-repeat;pointer-events:none;filter:drop-shadow(0 0 30px #ff9b3040)}
.frame-celebrate .character{background-image:url('assets/celebration.webp');background-size:400% 200%;animation:none!important}
.feature-blast.cinematic{background:radial-gradient(ellipse at 50% 55%,#174d54f5,#061820fc 80%);backdrop-filter:blur(6px);z-index:150;overflow:hidden}.feature-blast.cinematic.active{animation:cutin .22s ease-out both}.cinematic-inner{width:min(1050px,96vw);display:flex;align-items:center;justify-content:center;gap:10px;position:relative;z-index:121}.cinematic-actor{width:clamp(180px,35vw,420px);height:clamp(180px,35vw,420px);flex-shrink:0;filter:drop-shadow(0 12px 18px #0008)}.cinematic-copy{text-align:center}.cinematic-copy>span{display:block;font-size:14px;letter-spacing:2px;color:#efc77e;margin-bottom:22px}.cinematic-copy>strong{font:900 clamp(64px,11vw,142px)/.9 var(--display);display:block;transform:rotate(-5deg);color:#ffda79;text-shadow:0 5px #925021,0 9px #36292a,0 14px 26px #0007;-webkit-text-stroke:0}.cinematic.active .cinematic-actor{animation:foreman-enter .5s cubic-bezier(.2,.8,.2,1) both}.cinematic.active .cinematic-copy{animation:word-enter .5s .15s both}.cinematic.impact{background:radial-gradient(ellipse at 50% 55%,#a75726,#09222a 80%)}.cinematic.impact .cinematic-copy>strong{animation:impact-type .55s cubic-bezier(.16,.8,.3,1) both}.cinematic.depart{opacity:0;transition:opacity .22s}.cinematic .blast-sprite{z-index:120}
@keyframes cutin{from{opacity:0}to{opacity:1}}@keyframes foreman-enter{from{transform:translateX(-65px) rotate(-8deg);opacity:0}to{transform:translateX(0) rotate(0);opacity:1}}@keyframes word-enter{from{transform:translateY(22px) scale(.88);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}@keyframes impact-type{0%{transform:rotate(-5deg) scale(.96)}35%{transform:rotate(-3deg) scale(1.14)}100%{transform:rotate(-5deg) scale(1)}}
.crate-choice{transform-origin:50% 90%}.pick-modal[open] .crate-choice:not(.revealed){animation:crate-arrive .48s calc(var(--order,0)*.09s) cubic-bezier(.2,.8,.2,1) both}.crate-choice.selected:not(.revealed){animation:crate-anticipation .45s ease-in-out both}.crate-choice.revealed.selected{animation:reward-pop .4s ease-out}.crate-choice.rejected{transition:opacity .35s,filter .35s;filter:saturate(.4)}@keyframes crate-arrive{from{opacity:0;transform:translateY(30px) scale(.9)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes crate-anticipation{0%,100%{transform:rotate(0) scale(1.03)}25%{transform:rotate(-4deg) scale(1.02)}65%{transform:rotate(4deg) scale(1.05)}}@keyframes reward-pop{from{transform:scale(.93);filter:brightness(1.65)}to{transform:scale(1);filter:brightness(1)}}
.stage-hero{transition:background .4s}.field-announcement.visible{animation:level-arrive .42s ease-out}.field-announcement{z-index:5}.stage-step.current{transition:border-color .4s,background .4s}.bonus-modal{transition:border-color .35s,box-shadow .35s}@keyframes level-arrive{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}
.result-amount{display:block;width:100%;background:none;border:0;padding:0;line-height:1.1}.result-unit{display:block;font-size:13px;letter-spacing:1.5px;color:#e5d6ac;margin-top:-7px}.max-result{border:3px solid #ffe2a0;box-shadow:0 0 0 6px #714423,0 0 70px #ffb63e55,0 30px 100px #000d;background:radial-gradient(ellipse at 50% 0,#9b6828,#2b2825 65%,#0c252a)}.max-result h2{font-size:clamp(55px,8vw,84px);color:#ffe5a2}.max-result .result-amount{color:#ffe8a0;animation:max-glow 1.8s ease-in-out infinite alternate}.saved-result{border-color:#80d9ba}.saved-result h2{color:#b7ecd4;font-size:clamp(32px,5vw,46px);text-shadow:0 3px #183c35}@keyframes max-glow{from{text-shadow:0 4px #855326,0 0 20px #ffbd3433}to{text-shadow:0 4px #855326,0 0 36px #ffbd3477}}
.loading-panel{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#0b252d;gap:22px}.loading-panel img{width:min(360px,80vw);height:auto}.loading-panel>span{font:700 14px var(--body);letter-spacing:1px;color:#e8ce9c}.loading-track{width:180px;height:4px;border-radius:3px;background:#2f5053;overflow:hidden}.loading-track:after{content:'';display:block;width:50%;height:100%;background:#ffcf69;animation:load-travel 1s ease-in-out infinite alternate}.loading-panel button{padding:12px 28px;background:#ffca68;color:#17323a;border:0;border-radius:6px;font-weight:800}@keyframes load-travel{to{transform:translateX(100%)}}
/* Keep the main game usable without scrolling past an oversized masthead. */
@media(min-width:701px){.play-scene{min-height:0;padding-top:10px}.title-art{width:270px}.game-layout{max-width:1280px;grid-template-columns:minmax(140px,1fr) minmax(0,3.75fr) minmax(130px,.95fr)}.cell{aspect-ratio:1.22}.foreman{width:clamp(220px,23vw,300px)}.shift-note{height:28px;margin-top:12px}.controls{min-height:94px;padding:10px 24px}.topbar{height:58px}}
@media(max-width:1100px) and (min-width:701px){.game-layout{grid-template-columns:minmax(125px,.85fr) minmax(0,4fr)}.feature-panel{grid-column:2}.machine-top strong{font-size:12px}.speech{font-size:14px}.bonus-modal .tile{aspect-ratio:1.35}.bonus-workspace{grid-template-columns:minmax(0,1fr) 225px}.tile.revealed .tile-value{font-size:26px}}
@media(max-width:700px){.title-art{width:200px}.play-scene{padding-top:8px}.foreman-panel{min-height:130px}.foreman{width:116px;left:0}.speech{top:25px;left:99px;font-size:12px;max-width:120px}.feature-panel{margin-top:69px}.feature-preview b{font-size:14px}.topbar{height:46px}.demo-label{font-size:10px}.shift-note{height:25px}.controls{padding:10px 12px;min-height:124px}.controls>div>span{font-size:11px}.controls strong{font-size:21px}.spin{height:48px}.machine-top{height:29px}.machine-top>span{font-size:9px}.machine-top strong{font-size:9px}.cinematic-inner{flex-direction:column;gap:0}.cinematic-actor{width:200px;height:200px;margin-bottom:-8px}.cinematic-copy>span{font-size:12px;margin-bottom:15px;letter-spacing:1px}.cinematic-copy>strong{font-size:77px}.flying-reward{font-size:27px}.feature-dock-buttons button{font-size:13px}.tile-legend b{font-size:13px}.tile-legend small{font-size:12px}.next-stage-guide span{font-size:12px}.bonus-fine{font-size:12px!important}.bonus-stats span{font-size:10px}.bonus-commentary .bonus-message{font-size:13px!important}.bonus-footer small{font-size:11px}.stage-hero .eyebrow{font-size:10px}.stage-step small{font-size:9px}.stage-hero p{font-size:12px}.stage-hero{height:132px}.bonus-footer .primary{font-size:21px}.max-guide small{font-size:12px}.max-guide{gap:7px}.max-guide p{margin:4px 0}.modal p{font-size:15px}.pick-modal{overflow:auto;max-height:calc(100svh - 20px)}.pick-modal .modal-inner{padding-bottom:28px}}
@media(prefers-reduced-motion:reduce){.cinematic.active,.cinematic.active .cinematic-actor,.cinematic.active .cinematic-copy,.cinematic.impact .cinematic-copy>strong,.max-result .result-amount,.pick-modal[open] .crate-choice,.loading-track:after{animation:none!important}.cinematic.depart{transition:none}.flying-reward,.blast-sprite{display:none}}
.frame-celebrate .character{visibility:hidden}.celebration-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.bonus-actor,.cinematic-actor{position:relative}
.cinematic.depart{animation:none!important;opacity:0}
.result-actor{position:relative;width:150px;height:150px;margin:6px auto -12px;filter:drop-shadow(0 7px 5px #0006)}.result-modal .modal-inner:before{content:'';display:block;position:absolute;left:18px;right:18px;top:12px;height:7px;background:repeating-linear-gradient(-45deg,#eeb958 0 9px,#19373a 9px 18px);opacity:.8}.max-result{background:linear-gradient(#342822df,#0b2529ef),url('assets/stage-3.webp') center/cover}.max-result .result-actor{width:170px;height:170px}.result-modal h2{margin-top:4px}.result-modal .result-amount{margin:14px 0}.saved-result .result-actor{width:130px;height:130px}@media(max-width:700px){.result-actor,.max-result .result-actor{width:115px;height:115px}.result-modal .modal-inner{padding:28px 18px 22px}.result-modal .result-amount{font-size:60px}.max-result h2{font-size:52px}.result-unit{font-size:12px;letter-spacing:.6px}}
@media(max-width:700px){.stage-hero{height:auto;min-height:132px;align-items:center}.stage-hero-copy{min-width:0}.stage-hero .eyebrow{line-height:1.4}.stage-hero h2{font-size:31px;line-height:1}.stage-hero p{line-height:1.4}.stage-reward-sign{padding:8px}.stage-hero .level-badge{margin:4px 0 0}.stage-hero-copy .eyebrow{display:block}}

.controls{grid-template-columns:1fr 1fr 1fr auto auto auto}#auto-spin{min-width:70px}#auto-dialog select{display:block;width:100%;padding:14px;margin:14px 0 22px;background:#163c43;color:white;border:1px solid #91c6cd;border-radius:8px;font:inherit}#leaderboard-list p{padding:12px 0;border-bottom:1px solid #ffffff22}@media(max-width:600px){.controls{grid-template-columns:repeat(3,minmax(0,1fr))}.controls #spin{grid-column:1}.controls #auto-spin,.controls #speed{width:100%}}

@media(max-width:700px){.controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.controls #spin{grid-column:1;grid-row:2}.controls #auto-spin{grid-column:2;grid-row:2}.controls #speed{grid-column:3;grid-row:2}.controls .speed{font-size:14px;width:100%}.controls .spin{font-size:22px;min-width:0}}

.tile.pick-pending{opacity:1!important;outline:2px solid #ffd477;outline-offset:-3px;filter:brightness(1.15)}
