#coin-game{box-sizing:border-box;position:relative;isolation:isolate;display:grid;place-items:center;width:100%;margin:auto;padding:0;border:0;background:transparent;color:#263332;font:16px/1.45 "Yu Gothic",Meiryo,system-ui,sans-serif}#coin-game *{box-sizing:border-box}#coin-game [hidden]{display:none!important}#coin-game .coin-frame{position:relative;width:var(--coin-size, min(100%,700px));height:var(--coin-size,700px);max-width:100%;aspect-ratio:1;display:grid;grid-template-rows:auto minmax(0,1fr) auto;border:1px solid #cbded4;border-radius:16px;background:#e5ede5;overflow:hidden;box-shadow:0 10px 32px #234d3310;container-type:inline-size}#coin-game button,#coin-game select{font:inherit;min-height:44px;min-width:44px;padding:8px 12px;color:#263332;background:#f4faf7;border:1px solid #a9cabc;border-radius:9px;font-weight:700;cursor:pointer;touch-action:manipulation}#coin-game button:hover:not(:disabled){background:#e7f7ef}#coin-game button:disabled{opacity:.55;cursor:default}#coin-game .coin-primary{background:#2f8f70;border-color:#2f8f70;color:#fff}#coin-game .coin-primary:hover:not(:disabled){background:#257358}#coin-game :focus-visible{outline:3px solid #167559;outline-offset:2px}#coin-game input{font:inherit;accent-color:#2f8f70}#coin-game input[type=range]{min-height:44px;min-width:44px;margin:0;touch-action:pan-y}#coin-game input[type=checkbox]{width:22px;height:22px;margin:0;accent-color:#2f8f70}#coin-game p{margin:0}#coin-game h2{margin:0;font-size:clamp(20px,3cqw,30px);line-height:1.35}#coin-game .coin-topbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;background:#fffefaed;z-index:2;min-width:0}#coin-game .coin-scores{display:flex;gap:10px;text-align:center;line-height:1.1}#coin-game .coin-scores>div{min-width:30px;display:grid;gap:3px}#coin-game .coin-scores span{font-size:14px;color:#47625d}#coin-game .coin-scores strong{font-size:20px;font-variant-numeric:tabular-nums}#coin-game .coin-toolbar{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}#coin-game .coin-toolbar button{font-size:14px;padding:8px}#coin-game .coin-scene{min-height:0;min-width:0;position:relative;overflow:hidden;background:#d8e3e6}#coin-game canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}#coin-game .coin-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:8px;background:#fffefaed;z-index:2}#coin-game .coin-chute{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 6px;align-items:center;min-width:0}#coin-game .coin-chute label,#coin-game .coin-chute output{font-size:14px;line-height:20px}#coin-game .coin-chute output{color:#47625d;font-variant-numeric:tabular-nums}#coin-game .coin-chute input,#coin-game .coin-chute button{grid-column:1/-1;width:100%;min-width:0}#coin-game #insert,#coin-game #insert1{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}#coin-game .key-hint{font:inherit;font-size:.85em;margin-left:5px;border:1px solid #ffffff80;padding:0 4px;border-radius:3px}#coin-game .coin-status{position:absolute;left:10px;right:10px;bottom:120px;z-index:4;background:#fffefaed;border-radius:8px;padding:7px 10px;font-size:14px;overflow-wrap:anywhere}#coin-game .coin-status:empty{display:none}#coin-game .coin-pause-note{position:absolute;top:12px;left:50%;transform:translateX(-50%);padding:7px 12px;border-radius:8px;background:#fffefaef;font-weight:700;white-space:nowrap}#coin-game .coin-overlay{position:absolute;inset:0;z-index:10;display:grid;place-items:center;padding:12px;background:#10242c38;overflow:hidden}#coin-game .coin-card{display:grid;gap:12px;width:min(460px,100%);max-height:100%;padding:20px;border:1px solid #cbded4;border-radius:16px;background:#f4faf7f2;color:#263332;box-shadow:0 4px 24px #0003;overflow:auto;overscroll-behavior:contain}#coin-game .coin-menu-card{text-align:center;width:min(400px,94%);gap:16px}#coin-game .coin-menu-card h2{font-size:clamp(24px,5cqw,34px)}#coin-game .coin-menu-card>#start{min-height:50px;font-size:18px}#coin-game .coin-eyebrow{font-size:14px;color:#667572}#coin-game .coin-menu-actions,#coin-game .coin-setting-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}#coin-game .coin-dialog header{display:flex;align-items:center;justify-content:space-between;gap:10px}#coin-game .coin-dialog header h2{font-size:22px}#coin-game .coin-sound-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}#coin-game .coin-sound-row>label{display:flex;align-items:center;gap:6px;min-height:44px;min-width:0}#coin-game .coin-sound-row input[type=range]{width:100%;flex:1;min-width:44px}#coin-game #volume-value{min-width:36px;font-size:14px;text-align:right}#coin-game .coin-mute{white-space:nowrap}#coin-game .coin-note{font-size:14px;color:#667572;line-height:1.45}#coin-game .coin-note:empty{display:none}#coin-game .coin-help-list{padding:0 0 0 1.25em;margin:0;display:grid;gap:10px}#coin-game .coin-exit-expanded{position:absolute;right:8px;top:8px;z-index:20;background:#fffefaef;font-size:14px}#coin-game .coin-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#coin-game[data-screen=loading] .coin-scene,#coin-game[data-screen=error] .coin-scene,#coin-game[data-screen=menu] .coin-scene,#coin-game[data-screen=play-menu] .coin-scene,#coin-game[data-screen=settings] .coin-scene,#coin-game[data-screen=help] .coin-scene,#coin-game[data-screen=payout] .coin-scene,#coin-game[data-screen=confirm] .coin-scene{position:absolute;inset:0}#coin-game.is-game-fullscreen{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;margin:0!important;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;overflow:hidden!important;background:#e5ede5!important;border:0!important;border-radius:0!important;z-index:9999!important;display:grid!important;place-items:center!important}#coin-game.is-game-fullscreen .coin-frame{border-radius:12px}
@container(max-width:420px){#coin-game .coin-card{padding:14px;gap:9px}#coin-game .coin-menu-card{gap:13px}#coin-game .coin-dialog header h2{font-size:20px}#coin-game .coin-controls{gap:8px;padding:6px 8px}#coin-game .coin-topbar{padding:6px 8px;gap:5px}#coin-game .coin-toolbar{gap:4px}#coin-game .coin-toolbar button{font-size:14px;padding:8px 6px}#coin-game .coin-scores{gap:7px}#coin-game .coin-scores strong{font-size:18px}#coin-game .coin-sound-row{gap:6px}#coin-game .coin-sound-row>label{font-size:14px}#coin-game .coin-help-list{font-size:15px;gap:7px}#coin-game .key-hint{display:none}}@media(pointer:coarse){#coin-game .key-hint{display:none}}

#coin-game .coin-payout-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#coin-game .coin-payout-cell{display:grid;gap:5px;padding:14px 6px;border:1px solid #a9cabc;border-radius:9px;background:#f4faf7;text-align:center;font-variant-numeric:tabular-nums}#coin-game .coin-payout-cell strong{font-size:clamp(20px,5cqw,30px);letter-spacing:.05em}#coin-game .coin-payout-cell span{font-size:18px}

#coin-game .coin-jackpot{position:absolute;left:50%;top:8px;transform:translateX(-50%);max-width:calc(100% - 20px);padding:7px 16px;border:2px solid #d4a63e;border-radius:12px;background:#fff7daee;color:#674814;font-size:clamp(17px,4cqw,25px);font-weight:800;white-space:nowrap;pointer-events:none;z-index:4;text-align:center}
#coin-game .coin-jackpot[data-kind=big],#coin-game .coin-jackpot[data-kind=special]{border-color:#dc8c21;background:#fff0bfef}
#coin-game .coin-payout-pending{position:absolute;right:8px;bottom:8px;padding:4px 8px;border-radius:7px;background:#fffefaed;font-size:13px;font-variant-numeric:tabular-nums;pointer-events:none;z-index:4}
#coin-game .coin-jackpot-confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:3}
#coin-game .coin-jackpot-confetti i{position:absolute;left:calc(4% + var(--i)*8%);top:-12px;width:5px;height:9px;background:#e6b846;animation:coin-confetti 2.6s ease-out both;transform:rotate(calc(var(--i)*31deg))}
#coin-game .coin-jackpot-confetti i:nth-child(3n){background:#70a99a}#coin-game .coin-jackpot-confetti i:nth-child(3n+1){background:#e59b76}
#coin-game .coin-payout-cell.is-winning{border-color:#b88118;background:#fff0bf;box-shadow:inset 0 0 0 1px #b88118}
@keyframes coin-confetti{from{opacity:.9;transform:translateY(0) rotate(0)}to{opacity:0;transform:translateY(240px) rotate(250deg)}}
@media(prefers-reduced-motion:reduce){#coin-game .coin-jackpot-confetti{display:none!important}}

#coin-game .coin-jackpot.coin-sr-only{width:1px;height:1px;padding:0;margin:-1px;border:0;background:transparent;box-shadow:none;transform:none;pointer-events:none}

/* Expanded mode uses the browser area; normal mode retains its square frame. */
#coin-game.is-game-fullscreen .coin-frame{width:var(--coin-width);height:var(--coin-height);aspect-ratio:auto}
#coin-game.is-game-fullscreen .coin-topbar{flex-wrap:nowrap}
#coin-game.is-game-fullscreen .coin-exit-expanded{min-height:44px;top:8px;right:8px;font-size:14px}
#coin-game.is-game-fullscreen .coin-overlay{padding-top:64px}
/* Transient status does not block the controls. */
#coin-game.is-game-fullscreen .coin-status{right:auto;width:calc(50% - 18px);max-width:28rem;bottom:132px;pointer-events:none}
/* Short landscape follows the other games: full scene with corner controls. */
@media(max-height:500px) and (min-width:600px){
 #coin-game.is-game-fullscreen .coin-frame{display:block}
 #coin-game.is-game-fullscreen .coin-scene{position:absolute;inset:0}
 #coin-game.is-game-fullscreen .coin-topbar,#coin-game.is-game-fullscreen .coin-controls{display:contents}
 #coin-game.is-game-fullscreen .coin-scores{position:absolute;left:8px;top:8px;z-index:2;gap:12px;padding:5px 9px;border-radius:8px;background:#fffefaed}
 #coin-game.is-game-fullscreen .coin-scores strong{font-size:18px}
 #coin-game.is-game-fullscreen .coin-scores span{font-size:12px}
 #coin-game.is-game-fullscreen .coin-toolbar{position:absolute;right:8px;top:8px;z-index:2;display:flex;gap:4px}
 #coin-game.is-game-fullscreen .coin-toolbar button{padding:6px 8px;font-size:13px}
 #coin-game.is-game-fullscreen .coin-chute{position:absolute;bottom:8px;z-index:2;width:140px;padding:5px 7px;border-radius:10px;background:#fffefae8}
 #coin-game.is-game-fullscreen .coin-chute:first-child{left:8px}
 #coin-game.is-game-fullscreen .coin-chute:last-child{right:8px}
 #coin-game.is-game-fullscreen .coin-chute button{font-size:14px;padding:6px}
 #coin-game.is-game-fullscreen .coin-chute label,#coin-game.is-game-fullscreen .coin-chute output{font-size:12px;line-height:16px}
 #coin-game.is-game-fullscreen .key-hint{display:none}
 #coin-game.is-game-fullscreen .coin-status{left:156px;width:calc(100% - 312px);max-width:none;bottom:8px;font-size:12px}
 #coin-game.is-game-fullscreen .coin-pause-note{top:62px}
 #coin-game.is-game-fullscreen .coin-payout-pending{right:8px;top:60px;bottom:auto;width:148px;font-size:12px;white-space:nowrap}
}

/* Play actions live in the paused menu; the active HUD stays small. */
#coin-game .coin-play-menu{width:min(360px,100%);gap:12px}
#coin-game .coin-play-menu-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#coin-game .coin-play-menu-actions>#play{grid-column:1/-1}
#coin-game .coin-play-menu header h2{font-size:22px}
#coin-game .coin-inserted{font-size:14px;color:#47625d;white-space:nowrap}
#coin-game.is-game-fullscreen .coin-overlay{padding-top:12px}
@media(max-height:500px) and (min-width:600px){#coin-game .coin-play-menu{padding:14px;gap:10px}}

/* Shared wallet information stays within the accepted compact HUD. */
#coin-game .coin-scores{min-width:0;max-width:calc(100% - 90px)}
#coin-game .coin-scores>div{min-width:0}
#coin-game #wallet-balance{font-size:clamp(12px,2.6cqw,20px);overflow-wrap:anywhere;max-width:17ch}
#coin-game .coin-menu-counts{display:grid;gap:3px;text-align:right;min-width:0}
#coin-game #wallet-menu-balance{overflow-wrap:anywhere}
#coin-game .coin-menu-counts .coin-inserted{white-space:normal}
#coin-game .coin-wallet-notice{position:absolute;left:10px;right:10px;top:62px;z-index:12;display:flex;align-items:center;justify-content:center;gap:8px;pointer-events:none}
#coin-game #wallet-status{max-width:34rem;padding:6px 9px;border-radius:8px;background:#fffefaef;font-size:14px;overflow-wrap:anywhere}
#coin-game #wallet-status:empty{display:none}
#coin-game #wallet-retry{pointer-events:auto;font-size:14px}
@media(max-height:500px) and (min-width:600px){#coin-game .coin-wallet-notice{left:158px;right:158px;top:8px}#coin-game #wallet-status{font-size:12px}#coin-game .coin-menu-counts{max-width:210px}}

/* Wallet recovery belongs to the visible modal, including its keyboard path. */
#coin-game .coin-dialog>.coin-wallet-notice{position:static;inset:auto;display:flex;flex-wrap:wrap;justify-content:flex-start;pointer-events:auto;z-index:auto}
#coin-game .coin-dialog>.coin-wallet-notice #wallet-status{flex:1 1 160px;max-width:100%}
