/* Viewport FX z=30; opaque typing surface z=50. Never animate the typing plate. */
#screen-fx{position:fixed;inset:0;z-index:30;pointer-events:none;contain:strict;--fx-color:#c9362c}.fx-wash,.fx-led{position:absolute;inset:0;opacity:0}.fx-wash{background:radial-gradient(ellipse,transparent 40%,color-mix(in srgb,var(--fx-color) 30%,transparent));}.fx-led{border:9px dashed var(--fx-color);box-shadow:inset 0 0 0 2px #18170e}.board-fx{position:absolute;inset:0;z-index:20;pointer-events:none;display:none;overflow:hidden}.fx-copy{position:absolute;left:3%;right:3%;top:31%;text-align:center;z-index:2;line-height:1.2;color:#ffe8a1;text-shadow:3px 4px #6a1714,-2px -2px #2a1409;transform:rotate(-3deg)}.fx-copy small{display:block;font:800 2.6cqw/1.6 var(--ui-font);letter-spacing:.16em}.fx-copy strong{display:block;font:1000 17cqw/1.2 var(--effect-font);letter-spacing:-.08em;-webkit-text-stroke:1px #fbe5a2;paint-order:stroke fill}.fx-copy span{display:block;margin-top:10px;font:900 4.2cqw/1.4 var(--ui-font);letter-spacing:.02em}.fx-rays{position:absolute;inset:-40%;opacity:.65;background:repeating-conic-gradient(#e5b74466 0deg 4deg,transparent 4deg 14deg);transform:rotate(12deg)}
.board[data-fx=REACH] .board-fx,.board[data-fx=HOT] .board-fx,.board[data-fx=JACKPOT] .board-fx,.board[data-fx=PREMIUM] .board-fx,.board[data-fx=RUSH] .board-fx{display:block}.board[data-fx=REACH] .fx-copy{top:64%;background:#521a16e8;border-block:2px solid #f07153}.board[data-fx=REACH] .fx-copy strong{font-size:10cqw;color:#ffbc94;-webkit-text-stroke:0}.board[data-fx=REACH] .fx-rays{display:none}.board[data-fx=HOT] .fx-copy{top:60%;background:#a96810ed;border-block:3px solid #ffe38a;animation:fx-snap 100ms steps(2,end)}.board[data-fx=HOT] .fx-copy strong{font-size:13cqw}.board[data-fx=HOT] .fx-rays{opacity:.18}
#screen-fx[data-fx=REACH] .fx-led{opacity:.6;animation:led-step .4s steps(1,end) infinite}#screen-fx[data-fx=HOT],#screen-fx[data-fx=JACKPOT],#screen-fx[data-fx=PREMIUM]{--fx-color:#edb834}#screen-fx[data-fx=HOT] .fx-led,#screen-fx[data-fx=JACKPOT] .fx-led,#screen-fx[data-fx=PREMIUM] .fx-led{opacity:1;animation:led-step .24s steps(1,end) infinite}#screen-fx[data-fx=HOT] .fx-wash,#screen-fx[data-fx=JACKPOT] .fx-wash,#screen-fx[data-fx=PREMIUM] .fx-wash{opacity:.8}
.board[data-fx=DECISION] .reel-panel{visibility:hidden}.board[data-fx=DECISION]{box-shadow:inset 0 0 0 999px #0008}.board[data-fx=JACKPOT] .board-fx,.board[data-fx=PREMIUM] .board-fx{background:#59160ecf;border:5px solid #ffe191}.board[data-stage=dark] .board-fx{background:#030403}.board[data-stage=dark] .fx-copy,.board[data-stage=white] .fx-copy,.board[data-stage=gold] .fx-copy{visibility:hidden}.board[data-stage=white] .board-fx{background:#fff4cf}.board[data-stage=gold] .board-fx{background:#edb834}.board[data-stage=text] .fx-copy{animation:fx-snap 90ms steps(2,end)}.board:not([data-stage=rays]) .fx-rays{visibility:hidden}.board[data-fx=PREMIUM] .fx-rays{background:repeating-conic-gradient(#ed535caa 0deg 5deg,#e7c34eaa 5deg 10deg,#55bc88aa 10deg 15deg,#628cceaa 15deg 20deg,transparent 20deg 25deg)}.board[data-fx=RUSH] .board-fx{background:#123e2de0;border:4px solid #d6bc62}.board[data-fx=RUSH] .fx-copy strong{color:#a4efbf;font:1000 20cqw/1.2 Arial,sans-serif;-webkit-text-stroke:1px #f6d66f}.board[data-fx=RUSH] .fx-rays{background:repeating-conic-gradient(#53c99066 0deg 4deg,transparent 4deg 18deg);visibility:visible}#screen-fx[data-fx=RUSH]{--fx-color:#38875e}#screen-fx[data-fx=RUSH] .fx-led{opacity:.65}#screen-fx.miss-pulse{box-shadow:inset 0 0 0 6px #ae3b2d}
.group-row[data-notice-phase=attack]{background:#796022;border-color:#fff0b1;box-shadow:inset 0 0 0 2px #dfb650}.group-row[data-notice-phase=peak]{border-color:#ffe798;background:#4f411d;box-shadow:0 0 0 2px #dfb650}.group-row[data-notice-phase=decay]{border-color:#dfb650;background:#343122}.group-row.notified{border-color:#af923e}.group-row[data-notice-phase=peak] .group-notice:empty:before{content:'大当たり！'}.group-row[data-notice-phase=attack] .group-select{color:#fff6d9}
@keyframes led-step{50%{border-style:solid;border-width:5px}}@keyframes fx-snap{from{transform:rotate(-3deg) scale(1.15)}to{transform:rotate(-3deg) scale(1)}}
.flash-off #screen-fx .fx-wash,.flash-off #screen-fx .fx-led,.reduced #screen-fx .fx-wash{display:none}.flash-off .board[data-stage=white] .board-fx{background:#59160e}.flash-off .fx-led,.flash-off .fx-copy,.reduced .fx-led,.reduced .fx-copy{animation:none!important}.reduced .fx-rays{display:none}.reduced #screen-fx .fx-led{opacity:.25!important}.reduced .group-row[data-notice-phase]{box-shadow:none}.measure-mode #screen-fx{display:none}.measure-result .machine-bezel{filter:brightness(.45)}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.flash-weak #screen-fx .fx-wash{opacity:.3}.flash-weak #screen-fx .fx-led{opacity:.5}.board[data-shake=true][data-stage=text] .reel-frame-art{animation:reel-impact 140ms steps(2,end)}@keyframes reel-impact{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}

/* Jackpot viewport light follows the same staged timeline as the board. */
#screen-fx:is([data-stage=dark],[data-stage=white],[data-stage=gold],[data-stage=text]) .fx-led{visibility:hidden}#screen-fx[data-stage=dark] .fx-wash{visibility:hidden}
