:root{color-scheme:light;--paper:#f5eddb;--paper-light:#fff9e9;--ink:#302a23;--muted:#817565;--red:#b8352d;--red-dark:#8e231d;--line:rgba(74,49,27,.2);--serif:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;--sans:"Yu Gothic UI","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;font-family:var(--sans);color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overscroll-behavior:none}body{overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:wait;opacity:.48}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #efb536;outline-offset:4px}button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.game{height:100vh;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}.masthead{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px max(28px,env(safe-area-inset-right)) 17px max(28px,env(safe-area-inset-left));background:var(--paper);z-index:5;border-bottom:1px solid var(--line)}.identity{display:flex;gap:15px;align-items:center}.brand-mark{color:var(--red);display:block;width:43px;height:43px;transform:rotate(-8deg)}.brand-mark svg{width:100%;height:100%;stroke:currentColor;stroke-width:2}.eyebrow{font-weight:700;font-size:10px;letter-spacing:.25em;margin:0 0 3px}.identity .eyebrow{color:var(--red)}h1{font-family:var(--serif);font-size:30px;line-height:1.15;letter-spacing:.08em;margin:0;font-weight:900}.title-note{font-family:var(--sans);font-size:11px;font-weight:500;letter-spacing:0;margin-left:4px;color:var(--muted)}.header-actions{display:flex;align-items:center;gap:6px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid transparent;background:transparent;color:var(--ink);border-radius:50%;transition:background .15s}.icon-button:hover{background:#e8ddc9}.icon-button[aria-pressed=false]{color:#9c9182}.icon-button .sound-off{display:none}.icon-button[aria-pressed=false] .sound-wave{display:none}.icon-button[aria-pressed=false] .sound-off{display:block}.icon-button[aria-pressed=false] rect{stroke-dasharray:2 2}
.arena{position:relative;isolation:isolate;overflow:hidden;min-height:0;background:#54483e}#game-canvas{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair;outline-offset:-5px}.stage-vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(22,18,17,.32),transparent 20%,transparent 78%,rgba(22,18,17,.26))}.hud{position:absolute;left:28px;right:28px;top:22px;display:flex;justify-content:space-between;gap:16px;pointer-events:none;color:#fff5da;text-shadow:0 2px 5px #38291d80}.hud-label{display:block;font-size:11px;font-weight:600;letter-spacing:.1em;margin-bottom:3px}.ammo-line{display:flex;align-items:baseline;gap:4px}.ammo-line strong{font-family:var(--serif);font-size:38px;font-weight:700;line-height:1}.ammo-unit{font-size:13px}.ammo-dots{display:inline-flex;align-items:center;gap:5px;margin-left:10px;align-self:center}.ammo-dots>*{display:block;width:8px;height:15px;border-radius:3px 3px 2px 2px;background:#efd39c;border:1px solid #fff0d4;box-shadow:inset 0 -3px #a67745}.ammo-dots>.spent,.ammo-dots>.used,.ammo-dots>[data-used=true]{opacity:.18;box-shadow:none}.money-block{text-align:right}.money-line{display:flex;align-items:baseline;justify-content:end;gap:6px;font-variant-numeric:tabular-nums}.money-line strong{font-family:var(--serif);font-size:36px;line-height:1.1;letter-spacing:.02em}.yen-sign{font-size:23px;font-family:var(--serif)}
.crosshair{position:absolute;width:34px;height:34px;transform:translate(-50%,-50%);pointer-events:none;border:1px solid #fff9e9b3;border-radius:50%;filter:drop-shadow(0 1px 2px #0008);z-index:2}.crosshair::before,.crosshair::after{content:"";position:absolute;background:#fff4d8;left:50%;top:50%;transform:translate(-50%,-50%)}.crosshair::before{height:1px;width:44px}.crosshair::after{height:44px;width:1px}.crosshair span{position:absolute;inset:13px;border-radius:50%;background:var(--red);z-index:1}.score-pop{position:absolute;left:50%;top:28%;transform:translate(-50%,-50%);color:#ffeb9f;text-shadow:0 2px 0 #7d3328,0 2px 9px #3a201d;font-family:var(--serif);font-weight:900;font-size:30px;pointer-events:none;z-index:3;white-space:nowrap}.score-pop{opacity:0}.score-pop.pop,.score-pop.active,.score-pop.show{animation:score-rise 1.4s ease-out both}@keyframes score-rise{0%{opacity:0;translate:0 12px;scale:.8}15%{opacity:1;scale:1.1}50%{opacity:1;scale:1}100%{opacity:0;translate:0 -22px}}
.loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#eee4d1;z-index:10;color:var(--muted);font-size:13px;letter-spacing:.1em}.loading-target{height:38px;width:38px;border:2px solid var(--red);border-radius:50%;position:relative;animation:load-pulse 1.2s ease-in-out infinite}.loading-target::before{content:"";position:absolute;inset:7px;border:2px solid var(--red);border-radius:50%}.loading-target::after{content:"";position:absolute;inset:14px;background:var(--red);border-radius:50%}@keyframes load-pulse{50%{opacity:.35;transform:scale(.9)}}.error-panel{position:absolute;inset:0;background:var(--paper);z-index:12;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:28px}.error-panel h2{font-family:var(--serif);font-size:24px}.error-panel p{font-size:14px;line-height:1.8;max-width:400px}
.intro{position:absolute;inset:0;z-index:4;display:flex;align-items:end;justify-content:center;padding:28px;pointer-events:none;background:linear-gradient(180deg,transparent 28%,#21140c35 80%)}.intro-card{pointer-events:auto;text-align:center;width:390px;max-width:100%;padding:25px 32px 20px;background:var(--paper-light);box-shadow:0 8px 35px #22170d33;position:relative}.intro-card::before,.intro-card::after{content:"";position:absolute;left:8px;right:8px;height:2px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.intro-card::before{top:8px}.intro-card::after{bottom:8px}.intro-kicker{display:flex;align-items:center;justify-content:center;gap:12px;font-family:var(--serif);color:var(--red);font-size:12px;letter-spacing:.25em;margin:0 0 13px;font-weight:700}.intro-kicker span{height:1px;width:23px;background:var(--red);opacity:.55}.intro h2{font-family:var(--serif);font-size:34px;font-weight:900;line-height:1.45;letter-spacing:.08em;margin:0 0 10px}.intro-question{font-size:13px;letter-spacing:.06em;margin:0 0 19px}.intro-caption{font-size:10px;letter-spacing:.08em;color:var(--muted);margin:12px 0 0}.button{display:flex;align-items:center;justify-content:center;gap:12px;border:1px solid transparent;min-height:48px;width:100%;padding:12px 18px;font-weight:700;font-size:14px;letter-spacing:.04em;border-radius:2px;transition:background .15s,transform .15s}.button:active:not(:disabled){transform:translateY(1px)}.button-primary{background:var(--red);color:var(--paper-light);border-color:var(--red)}.button-primary:hover:not(:disabled){background:var(--red-dark);border-color:var(--red-dark)}.button-outline{border-color:#ad9c83;background:transparent;color:var(--ink)}.button-outline:hover:not(:disabled){background:#e7ddc8}
.result{position:absolute;inset:0;z-index:5;display:flex;justify-content:end;align-items:center;padding:24px;pointer-events:none;background:linear-gradient(90deg,transparent 30%,#21140c28)}.receipt{width:344px;max-width:100%;max-height:100%;overflow-y:auto;overscroll-behavior:contain;background:var(--paper-light);pointer-events:auto;padding:25px 26px 20px;box-shadow:0 6px 30px #21140c40;scrollbar-width:none}.receipt-heading{display:flex;align-items:center;justify-content:space-between;height:20px;color:var(--red)}.receipt-heading .eyebrow{margin:0}.receipt-seal{font-family:var(--serif);font-weight:900;display:flex;align-items:center;justify-content:center;border:2px solid var(--red);width:42px;height:42px;font-size:17px;transform:rotate(9deg);margin-top:18px}.receipt h2{font-family:var(--serif);font-size:30px;letter-spacing:.1em;margin:6px 0 8px}.receipt-note{font-size:11px;color:var(--muted);margin:0 0 22px}.receipt-total{display:flex;flex-direction:column;gap:3px;padding:15px 0 14px;border-top:3px double var(--ink);border-bottom:3px double var(--ink);margin-bottom:15px}.receipt-total>span{font-size:11px;letter-spacing:.12em}.receipt-total strong{font-family:var(--serif);font-size:34px;color:var(--red);line-height:1.2;letter-spacing:.02em;font-variant-numeric:tabular-nums}.receipt-rows{font-size:12px;line-height:1.65}.receipt-rows:empty{display:none}.receipt-row{display:flex;justify-content:space-between;gap:15px;margin:8px 0}.receipt-label{min-width:0}.receipt-amount{white-space:nowrap;font-variant-numeric:tabular-nums}.receipt-rows dl{margin:0}.receipt-rows div:not(.receipt-row){display:flex;justify-content:space-between;gap:12px;margin:8px 0}.receipt-rows dt,.receipt-rows dd{margin:0}.receipt-rows>p{display:flex;justify-content:space-between;gap:12px;margin:8px 0}.receipt-fees{border-top:1px dashed #bdb19c;margin-top:13px;padding-top:4px}.receipt-actions{display:grid;gap:9px;margin-top:22px}.receipt-actions .button{font-size:13px;min-height:44px}.save-status{font-size:11px;line-height:1.65;color:var(--red);margin:8px 0 0;min-height:0}.save-status:empty{display:none}.receipt-footnote{text-align:center;font-family:var(--serif);font-size:10px;color:var(--muted);margin:17px 0 0;letter-spacing:.04em}
.game-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:54px;padding:9px max(28px,env(safe-area-inset-right)) max(9px,env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left));background:var(--paper);border-top:1px solid var(--line);z-index:5}.game-footer p{font-size:12px;line-height:1.6;margin:0}.keyboard-hint{margin-left:18px;font-size:10px;color:var(--muted)}.text-button{margin-left:auto;background:none;color:#685c4e;display:flex;align-items:center;justify-content:center;gap:7px;min-height:36px;border:0;font-size:11px;white-space:nowrap;padding:4px 0 4px 10px}.text-button svg{width:15px;height:15px}.text-button:hover{color:var(--red)}.text-button:disabled{cursor:default;opacity:.35}
dialog{color:var(--ink);background:var(--paper-light);border:0;padding:25px 30px 27px;max-width:480px;width:calc(100% - 36px);max-height:calc(100dvh - 36px);overflow:auto;box-shadow:0 12px 70px #19120f59}dialog::backdrop{background:#231b18a6;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-heading .eyebrow{color:var(--red)}.dialog-heading .icon-button{margin:-12px -17px -10px 0}dialog h2{font-family:var(--serif);font-size:27px;margin:15px 0 20px;letter-spacing:.03em}dialog p,dialog li{font-size:13px;line-height:1.9}dialog p{margin:13px 0}.help-list{padding-left:20px;margin:18px 0}.help-list li{padding-left:2px;margin:6px 0}.help-list li::marker{color:var(--red)}.about-game{border-top:1px solid var(--line);margin-top:24px;padding-top:11px}.about-game p{color:var(--muted);font-size:11px}.about-game a{color:var(--red);font-size:12px;text-underline-offset:4px}.about-game ul{padding-left:17px}.about-game li{font-size:11px;color:var(--muted)}
@media(min-width:1500px){.masthead,.game-footer{padding-left:40px;padding-right:40px}.hud{left:40px;right:40px;top:28px}.intro{padding-bottom:40px}.intro-card{width:420px;padding:28px 38px 24px}.intro h2{font-size:39px}.result{padding:32px}.receipt{width:360px;padding:30px}}
@media(max-width:700px){.masthead{padding:13px 16px;gap:8px}.identity{gap:10px}.brand-mark{width:33px;height:33px}h1{font-size:24px;letter-spacing:.04em}.eyebrow{font-size:8px;letter-spacing:.18em}.title-note{font-size:9px;margin-left:1px}.header-actions{gap:0}.icon-button{width:36px;height:38px}.icon-button svg{width:19px;height:19px}.hud{left:17px;right:17px;top:17px}.hud-label{font-size:9px;margin-bottom:5px}.ammo-line strong{font-size:31px}.ammo-unit{font-size:11px}.ammo-dots{gap:3px;margin-left:5px}.ammo-dots>*{width:5px;height:11px}.money-line{gap:4px}.money-line strong{font-size:29px}.yen-sign{font-size:20px}.intro{padding:20px 24px 25px}.intro-card{width:330px;padding:22px 25px 19px}.intro h2{font-size:31px;line-height:1.4}.intro-kicker{font-size:11px;margin-bottom:12px}.intro-question{font-size:12px;margin-bottom:17px}.button{min-height:46px;font-size:13px}.game-footer{padding:8px 16px max(8px,env(safe-area-inset-bottom));min-height:54px;gap:8px}.game-footer p{font-size:10px;max-width:250px}.keyboard-hint{display:none}.text-button{font-size:10px;gap:4px;padding-left:5px;min-height:35px}.text-button svg{width:14px;height:14px}.result{align-items:end;justify-content:center;padding:0 12px 12px;background:linear-gradient(180deg,transparent 20%,#21140c24)}.receipt{width:100%;max-width:420px;max-height:65%;padding:18px 23px 17px}.receipt-heading{height:15px}.receipt h2{font-size:24px;margin:5px 0}.receipt-seal{width:34px;height:34px;font-size:14px;margin-top:14px}.receipt-note{font-size:10px;margin-bottom:12px}.receipt-total{padding:9px 0;margin-bottom:11px;flex-direction:row;align-items:baseline;justify-content:space-between}.receipt-total strong{font-size:29px}.receipt-total>span{font-size:10px}.receipt-rows{font-size:11px}.receipt-row,.receipt-rows div:not(.receipt-row){margin:5px 0}.receipt-fees{margin-top:9px}.receipt-actions{margin-top:13px;grid-template-columns:1.2fr 1fr;gap:8px}.receipt-actions .button{font-size:11px;padding:9px 8px;min-height:42px;gap:5px}.receipt-actions .button svg{width:17px;height:17px}.receipt-footnote{font-size:9px;margin-top:12px}.score-pop{font-size:25px}}
@media(max-width:370px){.masthead{padding-left:12px;padding-right:10px}.identity{gap:7px}.brand-mark{width:28px;height:28px}h1{font-size:22px}.icon-button{width:32px}.title-note{display:none}.hud{left:12px;right:12px}.ammo-dots{gap:2px;margin-left:3px}.money-line strong{font-size:25px}.intro-card{padding-left:20px;padding-right:20px}.intro h2{font-size:28px}.game-footer{padding-left:12px;padding-right:12px}}
@media(max-height:560px) and (orientation:landscape){.masthead{padding:7px 20px}.identity{gap:9px}.brand-mark{width:30px;height:30px}.identity .eyebrow{font-size:7px}h1{font-size:23px}.icon-button{height:34px;width:36px}.game-footer{min-height:37px;padding:3px 20px max(3px,env(safe-area-inset-bottom))}.game-footer p{font-size:10px}.keyboard-hint{display:none}.text-button{min-height:29px}.hud{top:12px;left:20px;right:20px}.hud-label{font-size:8px;margin-bottom:2px}.ammo-line strong{font-size:27px}.ammo-dots>*{height:11px;width:6px}.money-line strong{font-size:28px}.yen-sign{font-size:18px}.intro{justify-content:end;padding:12px 20px}.intro-card{width:265px;padding:16px 20px 15px}.intro h2{font-size:25px;line-height:1.35;margin-bottom:6px}.intro-kicker{font-size:9px;margin-bottom:6px}.intro-question{font-size:11px;margin-bottom:10px}.intro-caption{font-size:9px;margin-top:8px}.intro .button{min-height:39px;padding:8px 14px;font-size:12px}.result{padding:10px 18px;align-items:center;justify-content:end}.receipt{width:310px;max-height:100%;padding:15px 20px}.receipt h2{font-size:23px}.receipt-note{margin-bottom:12px}.receipt-total{padding:8px 0;margin-bottom:8px;flex-direction:row;align-items:baseline;justify-content:space-between}.receipt-total strong{font-size:26px}.receipt-total>span{font-size:10px}.receipt-rows{font-size:10px}.receipt-row,.receipt-rows div:not(.receipt-row){margin:4px 0}.receipt-fees{margin-top:7px}.receipt-actions{grid-template-columns:1.2fr 1fr;gap:7px;margin-top:12px}.receipt-actions .button{font-size:10px;min-height:37px;padding:7px 5px;gap:4px}.receipt-actions .button svg{width:16px;height:16px}.receipt-footnote{font-size:8px;margin-top:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Expandable itemized receipt. */
/* Damage names appear only after a charged hit; never while aiming. */
.damage-callouts{position:absolute;right:27px;top:108px;z-index:3;display:flex;flex-direction:column;align-items:flex-end;gap:12px;width:min(320px,34%);pointer-events:none}.damage-callout{text-align:right;color:#fff4d8;max-width:100%;text-shadow:0 2px 4px #22140de0,0 0 12px #22140d90;animation:damage-arrive .2s ease-out both}.damage-name{display:block;font-size:12px;font-weight:700;letter-spacing:.04em;line-height:1.6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.damage-amount{display:block;font-family:var(--serif);font-size:24px;font-weight:900;line-height:1.2;font-variant-numeric:tabular-nums}.tier-medium .damage-amount{font-size:31px;color:#ffd999}.tier-large .damage-amount{font-size:42px;color:#ffe48b}.tier-large .damage-name{font-size:14px;color:#fff0b2}@keyframes damage-arrive{from{opacity:0;translate:0 7px;scale:.96}to{opacity:1;translate:0 0;scale:1}}
.receipt{display:flex;flex-direction:column;overflow:hidden;max-height:100%;height:min(660px,100%)}.receipt-heading,.receipt h2,.receipt-note,.receipt-total,.roll-heading,.receipt-actions,.save-status,.receipt-footnote{flex-shrink:0}.roll-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 5px;color:var(--muted);font-size:10px}.roll-button{background:none;border:0;text-decoration:underline;text-underline-offset:3px;color:#75644f;font-size:10px;padding:7px 0 7px 8px;min-height:30px}.roll-button:disabled{text-decoration:none;cursor:default;opacity:.6}.result-scroll{min-height:70px;flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;scroll-behavior:auto;padding:0 6px 2px 0;position:relative}.result-scroll:focus-visible{outline-offset:-2px}.primary-items .receipt-row{padding:10px 0;margin:0;border-bottom:1px solid #bdb19c50;font-size:12px;line-height:1.65;align-items:baseline}.primary-items .receipt-label{overflow-wrap:anywhere;min-width:0}.primary-items .receipt-amount{font-weight:700;color:#9b3328}.primary-items .receipt-row:first-child .receipt-amount{font-size:16px}.receipt-actions{margin-top:16px}
@media(max-width:700px){.damage-callouts{right:16px;top:91px;width:min(230px,57%);gap:11px}.damage-name{font-size:10px}.damage-amount{font-size:21px}.tier-medium .damage-amount{font-size:27px}.tier-large .damage-amount{font-size:34px}.tier-large .damage-name{font-size:12px}.receipt{height:min(480px,65%);max-height:65%}.receipt-note{margin-bottom:10px}.receipt-total{margin-bottom:6px}.roll-heading{font-size:9px;margin-bottom:3px}.roll-button{font-size:9px;min-height:28px;padding-top:5px;padding-bottom:5px}.primary-items .receipt-row{padding:8px 0;font-size:11px}.primary-items .receipt-row:first-child .receipt-amount{font-size:14px}.receipt-actions{margin-top:10px}.result-scroll{min-height:70px}}
@media(max-height:560px) and (orientation:landscape){.damage-callouts{right:20px;top:75px;width:260px;gap:8px}.damage-name{font-size:9px}.damage-amount{font-size:19px}.tier-medium .damage-amount{font-size:24px}.tier-large .damage-amount{font-size:30px}.tier-large .damage-name{font-size:11px}.receipt{height:100%;max-height:100%}.receipt-note{margin-bottom:8px}.receipt h2{margin-top:3px;margin-bottom:4px}.receipt-total{margin-bottom:3px}.receipt-footnote{display:none}.roll-heading{font-size:9px;margin-bottom:1px}.roll-button{font-size:9px;min-height:23px;padding:3px 0 3px 7px}.result-scroll{min-height:52px}.primary-items .receipt-row{font-size:10px;padding:6px 0}.primary-items .receipt-row:first-child .receipt-amount{font-size:12px}.receipt-actions{margin-top:8px}}
@media(prefers-reduced-motion:reduce){.damage-callout{animation:none}}
.damage-callouts .damage-name{white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip}

/* Result actions keep their own space; only the item list consumes spare height. */
.result-scroll{min-height:0}.receipt{min-height:0}
@media(max-width:700px){.receipt{height:min(540px,100%);max-height:100%}.result-scroll{min-height:0}}
@media(max-height:700px) and (orientation:portrait){.receipt-note,.receipt-footnote{display:none}.receipt{padding-top:16px;padding-bottom:16px}.receipt-total{padding-top:7px;padding-bottom:7px}}
@media(max-height:560px) and (orientation:landscape){.receipt-heading,.receipt-note,.receipt-footnote{display:none}.receipt h2{font-size:23px;line-height:1.15;margin:0 0 8px}.receipt-total{padding:5px 0;margin-bottom:4px}.result-scroll{min-height:0}.receipt{height:100%;max-height:100%}}

/* Equal side tracks keep the clock centred independently of the total's digits. */
.hud{display:grid;grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr);--hud-money-size:36px}.ammo-block{min-width:0}.money-block{container-type:inline-size}.money-line strong{font-size:min(var(--hud-money-size),calc(100cqw / var(--money-width,1)));white-space:nowrap}
@media(max-width:700px){.hud{--hud-money-size:29px}}
@media(max-width:370px){.hud{--hud-money-size:25px}}
@media(max-height:560px) and (orientation:landscape){.hud{--hud-money-size:28px}}
/* The clock fits between ammunition and damage without adding a control panel. */
.settling-indicator{position:absolute;left:max(18px,env(safe-area-inset-left));bottom:max(18px,env(safe-area-inset-bottom));z-index:4;pointer-events:none;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#2920188c}.settling-indicator>span:first-child{width:19px;height:19px;border:2px solid #fff3d44a;border-top-color:#fff3d4;border-radius:50%;animation:settlement-spin .8s linear infinite}@keyframes settlement-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.settling-indicator>span:first-child{animation:none;border-right-color:#fff3d4}}.release-history{margin:18px 0}.release-history>summary{cursor:pointer;font-size:12px;font-weight:600}
.time-block{align-self:flex-start;text-align:center;min-width:69px;padding:4px 10px 6px;background:#291b195c;border:1px solid #fff1d54d;border-radius:3px}.time-block .hud-label{font-size:9px;letter-spacing:.06em}.time-block strong{display:block;font-size:26px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:.03em}.time-block.is-urgent{color:#fff4ce;background:#9b2e27db;border-color:#ffe7a6;box-shadow:0 0 0 1px #9b2e27aa}.time-block.is-urgent strong{font-weight:900}.money-block{min-width:0}
@media(max-width:700px){.hud{gap:8px}.time-block{min-width:54px;padding:4px 6px 5px}.time-block .hud-label{font-size:8px;margin-bottom:4px}.time-block strong{font-size:21px}.ammo-dots{display:none}}
@media(max-height:560px) and (orientation:landscape){.time-block{min-width:58px;padding:3px 7px 4px}.time-block .hud-label{font-size:7px;margin-bottom:3px}.time-block strong{font-size:21px}}

/* Result controls stay separate from the tappable roll and retain manual swiping. */
.result{pointer-events:auto}.result-scroll{scrollbar-width:none;padding-right:0}.result-scroll::-webkit-scrollbar,.receipt::-webkit-scrollbar{display:none;width:0;height:0}.receipt-actions{grid-template-columns:1fr 1fr;gap:8px}.receipt-actions #again-button{grid-column:1/-1}.receipt-actions a{text-decoration:none}.share-button svg{fill:currentColor;stroke:none;width:18px;height:18px}.roll-button{min-height:36px;padding:8px 4px 8px 12px;text-decoration:none;font-weight:700}
@media(min-width:701px){.arena{margin-bottom:max(0px,env(safe-area-inset-bottom))}}
@media(max-width:700px){.arena{margin-bottom:env(safe-area-inset-bottom,0px)}.receipt-actions{grid-template-columns:1fr 1fr}.receipt-actions .button{font-size:11px;min-height:42px}.result{padding-bottom:max(12px,env(safe-area-inset-bottom))}}
@media(max-width:420px){.identity{gap:8px}.brand-mark{width:30px;height:30px}h1{font-size:22px}.header-actions .icon-button{width:34px;height:40px}}
@media(max-height:560px) and (orientation:landscape){.receipt-actions{grid-template-columns:1fr 1fr 1fr}.receipt-actions #again-button{grid-column:auto}.receipt-actions .button{font-size:10px;min-height:37px;padding:7px 5px}}

.result[data-empty="true"] .receipt{height:auto}.result[data-empty="true"] .result-scroll{display:none}

/* The final amount is the result headline. */
.receipt-total{flex-direction:column;align-items:flex-start;gap:6px;padding:16px 0;margin-bottom:12px}.receipt-total strong{display:block;font-size:50px;line-height:1.1;letter-spacing:0;white-space:nowrap}
@media(max-width:700px){.receipt-total{padding:12px 0;gap:6px}.receipt-total strong{font-size:clamp(36px,10.5vw,46px)}}
@media(max-height:560px) and (orientation:landscape){.receipt-total{padding:7px 0;gap:3px;margin-bottom:6px}.receipt-total strong{font-size:36px}}

/* Keep the final amount and its item names legible over the frozen scene. */
.receipt-total>span{font-size:18px;font-weight:800;letter-spacing:.12em;color:var(--ink)}.primary-items .receipt-row{font-size:14px;padding:12px 0}.primary-items .receipt-label{font-weight:700}.primary-items .receipt-amount{font-size:15px}.primary-items .receipt-row:first-child .receipt-amount{font-size:17px}
@media(max-width:700px){.receipt-total>span{font-size:16px}.primary-items .receipt-row{font-size:13px;padding:10px 0}.primary-items .receipt-amount{font-size:14px}.primary-items .receipt-row:first-child .receipt-amount{font-size:16px}}
@media(max-height:560px) and (orientation:landscape){.receipt-total>span{font-size:15px}.primary-items .receipt-row{font-size:12px;padding:8px 0}.primary-items .receipt-amount{font-size:13px}.primary-items .receipt-row:first-child .receipt-amount{font-size:15px}}

/* A short result tray leaves the destroyed scene visible on a phone. */
#again-button{touch-action:manipulation}
@media(max-width:700px) and (orientation:portrait){
  .receipt{height:min(280px,42%);max-height:42%;padding:12px 14px}
  .receipt-total{flex-direction:row;align-items:baseline;justify-content:space-between;gap:8px;padding:8px 0;margin-bottom:6px}
  .receipt-total>span{flex-shrink:0;letter-spacing:.06em}
  .receipt-total strong{font-size:clamp(28px,9vw,36px)}
  .primary-items .receipt-row{padding:8px 0}
  .receipt-actions{grid-template-columns:1.2fr 1fr 1fr;gap:6px;margin-top:8px}
  .receipt-actions #again-button{grid-column:auto}
  .receipt-actions .button{min-height:44px;padding:8px 5px;letter-spacing:0}
}

.portal-link{display:flex;align-items:center;justify-content:center;gap:9px;flex-shrink:0;min-height:40px;margin-top:5px;color:#ac2c61;text-decoration:none;font-size:12px;line-height:1.4}.portal-link strong{font-weight:800}.portal-link:hover strong{text-decoration:underline;text-underline-offset:3px}@media(max-width:700px){.portal-link{font-size:11px;gap:7px;margin-top:2px}}
