@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');
:root{--bg:#f5f4ed;--paper:#fffef9;--ink:#263e34;--muted:#849088;--green:#315945;--line:#e1e5db;--gold:#d9b76a;--soft:#eaf0e5;--red:#b8644e;color-scheme:light;font-family:'Noto Sans KR',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,a,canvas{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.48}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid #ccaa5c;outline-offset:4px}a{color:inherit;text-decoration:none}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.hidden{display:none!important}.app-shell{max-width:1370px;padding:0 44px;margin:auto}.app-header{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:13px}.brand-mark{display:grid;place-items:center;width:44px;height:44px;background:var(--green);color:#f0e1b4;border-radius:14px}.brand-mark svg{width:29px;height:29px}.brand strong{font-size:20px;font-weight:800;letter-spacing:-1px;display:block}.brand small{display:block;font-size:8px;letter-spacing:2.4px;color:#748278;margin-top:4px}.header-actions{display:flex;align-items:center;gap:13px}.coin-balance{display:flex;gap:7px;align-items:center;margin-right:8px;color:#927033}.coin-balance svg{color:#b28c40;width:20px}.coin-balance strong{font-size:17px;font-variant-numeric:tabular-nums}.coin-balance small{color:#8d8f7d;font-size:11px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--line);border-radius:11px;background:var(--paper);font-weight:600;font-size:12px;padding:12px 17px;transition:background .18s,transform .18s}.button:hover{background:#eef1e7;transform:translateY(-1px)}.primary-button{background:var(--green);color:#fffdf1;border-color:var(--green)}.primary-button:hover{background:#244b37}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:39px;height:39px;border:0;border-radius:50%;background:transparent;color:#6b7d70}.icon-button:hover{background:#e7eadf}.text-button{border:0;background:none;display:inline-flex;align-items:center;gap:7px;font-size:11px;color:#728172;padding:5px}.text-button svg{width:17px;height:17px}.small-icon{width:15px!important;height:15px!important}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;margin:29px 0 22px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:600;color:#8b988b;margin:0 0 8px}.page-heading h1{font-size:23px;letter-spacing:-1px;font-weight:700;margin:0}.page-heading>.text-button{padding-bottom:3px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 252px;gap:24px;align-items:start}.game-card{border:1px solid #dce2d5;border-radius:20px;overflow:hidden;background:var(--paper);box-shadow:0 10px 40px #394a2b07}.round-heading{display:flex;justify-content:space-between;align-items:center;padding:19px 22px;height:86px}.round-label{display:flex;align-items:center;gap:12px}.level-number{font-weight:500;font-size:25px;font-variant-numeric:tabular-nums;color:#90a180;border-right:1px solid var(--line);padding-right:16px;line-height:34px}.small-label{font-size:9px;color:#83927d;font-weight:500;letter-spacing:.6px}.round-heading h2{font-size:16px;letter-spacing:-.5px;margin:3px 0 0;font-weight:700}.round-score{font-variant-numeric:tabular-nums;line-height:1.2;text-align:right}.round-score>strong{font-size:24px;color:#365c42}.round-score>span{font-size:12px;color:#a0a998;margin-left:4px}.round-score>small{font-size:9px;display:block;margin-top:6px;color:#8a9784}.field{position:relative;overflow:hidden;background:#c7d9bf;height:clamp(360px,43vw,510px);touch-action:none;isolation:isolate}.field canvas{display:block;width:100%;height:100%;cursor:crosshair;touch-action:none}.field-top{position:absolute;top:16px;left:17px;right:17px;display:flex;gap:7px;align-items:center;pointer-events:none}.field-pill{display:inline-flex;gap:6px;align-items:center;border:1px solid #fff9;background:#fffff1d9;backdrop-filter:blur(8px);border-radius:7px;color:#405845;padding:7px 9px;font-size:10px;font-weight:500;box-shadow:0 2px 8px #233c1b06}.field-pill svg{width:15px;height:15px}.field-pill strong{font-size:11px;font-weight:600;letter-spacing:.2px}.tiny-dot{width:5px;height:5px;background:#728b60;border-radius:100%}.zoom-button{margin-left:auto;pointer-events:auto;min-width:36px;justify-content:center;font-size:12px;font-variant-numeric:tabular-nums}.field-bottom{position:absolute;left:17px;right:17px;bottom:14px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}.field-bottom button{pointer-events:auto}.shot-counter{display:flex;align-items:center;gap:9px;background:#1e392a9e;color:#f6f7dc;padding:8px 10px;border-radius:8px;backdrop-filter:blur(6px);font-size:9px}.shot-counter>span:first-child{display:flex;gap:5px}.arrow-dot{display:block;width:3px;height:16px;background:#e7d49f;position:relative;border-radius:1px;transform:rotate(25deg)}.arrow-dot:before{content:'';position:absolute;top:-2px;left:-2px;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-bottom:5px solid #e7d49f}.arrow-dot.used{opacity:.23}.controls{padding:15px 21px 18px}.power-row{display:flex;align-items:center;gap:13px;font-size:10px;color:#8c9987;margin:0 3px 12px}.power-row>span{min-width:96px}.power-row>strong{font-weight:500;min-width:34px;text-align:right;font-variant-numeric:tabular-nums}.power-track{height:4px;flex:1;background:#e7ebdf;border-radius:8px;overflow:hidden}.power-track>span{display:block;height:100%;width:0;background:#b6bc7b;border-radius:8px;transition:background .2s}.side-panel{display:flex;flex-direction:column;gap:20px}.mission-panel{padding:22px 19px;border:1px solid var(--line);background:#edf0e6;border-radius:16px}.section-heading{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:600;letter-spacing:-.2px}.section-heading>svg{width:17px;height:17px;color:#7a8f6c}.section-heading>.text-button{margin-left:auto;font-size:9px}.mission-panel>p{font-size:13px;line-height:1.9;letter-spacing:-.5px;margin:17px 0 20px;word-break:keep-all;color:#5a6e52}.score-legend{display:flex;justify-content:space-between;font-size:9px;color:#7a8772;gap:3px}.score-legend>span{display:flex;gap:4px;align-items:center}.score-legend i{width:7px;height:7px;border-radius:50%}.gold{background:#e1b946}.red{background:#c87765}.blue{background:#799caf}.black{background:#5b6355}.white{background:#f8f8ed;border:1px solid #d2d7c5}.mission-progress{height:4px;background:#dce4d2;margin:19px 0 9px;border-radius:4px;overflow:hidden}.mission-progress>span{height:100%;width:0;display:block;background:#819b66;transition:width .3s}.mission-caption{display:flex;align-items:center;justify-content:space-between;font-size:8px;color:#839477}.loadout-panel{padding:0 4px}.loadout-panel>.section-heading{margin-bottom:12px}.equipped-item{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}.equipped-item canvas{width:64px;height:55px;background:#edeee5;border-radius:10px}.equipped-item>div{display:flex;flex-direction:column;gap:5px}.equipped-item .small-label{font-size:7px;letter-spacing:1.7px}.equipped-item strong{font-size:12px;font-weight:600}.equipped-item small{font-size:8px;color:#95a08d}.soft-button{width:100%;margin-top:14px;padding:10px 10px;font-size:10px;background:transparent;color:#708366;border-color:#dce2d3}.soft-button>svg:last-child{margin-left:auto}.field-note{position:relative;margin:0 5px;padding:6px 0 2px;color:#94a18b}.field-note>span{font-size:7px;letter-spacing:2px}.field-note p{font-size:11px;line-height:1.8;letter-spacing:-.4px;margin:7px 0}.field-note>svg{position:absolute;right:5px;bottom:4px;width:34px;height:34px;color:#c4cbb8;transform:rotate(-20deg)}.journey{margin-top:25px}.journey-heading{display:flex;align-items:center;gap:15px;margin-bottom:12px}.journey-heading .eyebrow{font-size:8px;margin:0;letter-spacing:1.5px}.journey-heading>span:nth-child(2){font-size:10px;color:#8d9984}.journey-heading>span:last-child{margin-left:auto;font-size:10px;color:#6f8361;letter-spacing:.5px}.journey-steps{display:grid;grid-template-columns:repeat(12,1fr);gap:8px}.journey-step{border:1px solid #e1e6d8;border-radius:10px;background:#f0f1e8;color:#a6af99;padding:10px 3px;min-height:50px;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center}.journey-step strong{font-size:13px;font-weight:500}.journey-step small{font-size:7px;white-space:nowrap}.journey-step svg{width:13px;height:13px}.journey-step.active{background:#345b44;color:#f6f3de;border-color:#345b44;box-shadow:0 4px 12px #31594517}.journey-step.done{background:#e9eddf;color:#668153;border-color:#d7e0ca}.journey-step:disabled{opacity:.65}.journey-step:not(:disabled):hover{border-color:#9aae83}footer{display:flex;align-items:center;gap:18px;padding:22px 0 23px;color:#9aa48f;font-size:9px}footer>span:first-child{display:flex;align-items:center;gap:6px}.status-dot{width:4px;height:4px;background:#a5b58d;border-radius:50%}footer .text-button{font-size:9px}footer .text-button svg{width:14px;height:14px}.keyboard-note{margin-left:auto;font-size:8px;color:#a5ad9a}.modal-backdrop{position:fixed;inset:0;background:#1834247d;backdrop-filter:blur(7px);z-index:100;display:flex;align-items:center;justify-content:center;padding:24px;overscroll-behavior:contain}.modal{position:relative;background:var(--paper);border:1px solid #fff9;border-radius:24px;padding:30px;width:min(760px,100%);max-height:calc(100dvh - 48px);overflow:auto;box-shadow:0 30px 100px #12361d38;animation:modal-in .2s ease}.modal.narrow{max-width:450px}.modal-close{position:absolute;right:15px;top:15px;z-index:2}.modal h2{margin:7px 0 8px;font-size:25px;letter-spacing:-1px}.modal-subtitle{color:#8c9980;font-size:11px;line-height:1.8;margin:0 0 22px;max-width:90%;word-break:keep-all}.shop-top{display:flex;justify-content:space-between;align-items:center;margin:23px 0 20px}.shop-tabs{display:flex;gap:5px;padding:4px;border-radius:11px;background:#edf0e5}.shop-tabs button{font-size:11px;border:0;background:none;border-radius:8px;padding:9px 20px;color:#87947c}.shop-tabs button.active{background:#fffef8;color:#3f613f;box-shadow:0 2px 5px #2c512b09}.shop-coins{display:flex;gap:6px;align-items:center;font-size:12px;color:#957738}.shop-coins svg{width:19px;height:19px}.shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.item-card{border:1px solid #e0e5d6;border-radius:15px;padding:17px;background:#fafbf5}.item-card.equipped{border-color:#8ea477;box-shadow:inset 0 0 0 1px #8ea477}.item-art{height:90px;position:relative;border-radius:9px;background:linear-gradient(140deg,#f0f2e6,#e9eddf);display:flex;justify-content:center;align-items:center;margin-bottom:13px}.item-art canvas{width:100%;height:90px}.item-tag{position:absolute;top:8px;left:10px;font-size:8px;letter-spacing:.5px;color:#829070}.item-owned{position:absolute;top:8px;right:10px;font-size:8px;color:#697f55}.item-card h3{font-size:14px;margin:0 0 6px;letter-spacing:-.3px}.item-card>p{font-size:10px;color:#8b9780;margin:0 0 12px;min-height:30px;line-height:1.7;word-break:keep-all}.item-stat{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#7b8a70;margin:6px 0}.item-stat strong{font-size:10px;color:#546e46;font-weight:500}.stat-track{height:4px;background:#e4e9da;border-radius:5px;overflow:hidden;margin:5px 0 13px}.stat-track span{display:block;height:100%;background:#94aa77;border-radius:5px}.item-actions{display:flex;gap:7px;margin-top:14px}.item-actions .button{font-size:10px;padding:9px 7px;border-radius:8px;flex:1;white-space:nowrap}.item-actions svg{width:14px;height:14px}.shop-footnote{font-size:9px;color:#98a28d;text-align:center;line-height:1.8;margin:19px 0 0}.result-emblem{margin:6px auto 14px;width:76px;height:76px;background:#edf0dc;border-radius:50%;display:grid;place-items:center;font-size:33px;color:#c3a354}.result-emblem svg{width:45px;height:45px;stroke-width:1.2}.result-content{text-align:center;padding-top:10px}.result-content .eyebrow{margin-top:13px}.result-content h2{font-size:27px;margin-top:9px}.result-content>p{font-size:12px;line-height:1.8;color:#89967d;word-break:keep-all}.result-stars{font-size:28px;letter-spacing:10px;color:#d0af62;margin:15px 0}.result-metrics{display:flex;justify-content:center;padding:18px 0;margin:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.result-metrics>div{flex:1;border-right:1px solid var(--line)}.result-metrics>div:last-child{border:0}.result-metrics small{display:block;font-size:9px;color:#93a085;margin-bottom:6px}.result-metrics strong{font-size:22px;font-weight:600}.result-metrics em{font-size:10px;font-style:normal;margin-left:4px;color:#9aa68b}.result-actions{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}.result-actions>.button{flex:1;min-width:120px}.help-steps{display:flex;flex-direction:column;gap:17px;margin:24px 0}.help-step{display:flex;gap:13px;align-items:flex-start}.help-step>span{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;border-radius:8px;background:#eaf0df;color:#6a8457;font-size:11px}.help-step strong{font-size:13px;display:block;margin:2px 0 6px}.help-step p{font-size:11px;color:#8a9880;margin:0;line-height:1.8;word-break:keep-all}.help-note{background:#eff1e6;padding:14px 16px;border-radius:10px;font-size:10px;line-height:1.9;color:#80916e;margin-top:20px}.stage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:24px}.stage-card{border:1px solid var(--line);background:#f4f5ec;border-radius:13px;display:flex;flex-direction:column;align-items:flex-start;padding:17px;text-align:left;gap:9px}.stage-card .stage-index{font-size:19px;color:#81986d;font-weight:500}.stage-card strong{font-size:12px}.stage-card small{font-size:9px;color:#94a085}.stage-card.active{background:#e8efdc;border-color:#a8ba94}.stage-card .stage-stars{color:#c1a35d;font-size:10px;letter-spacing:2px}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);max-width:90vw;z-index:150;background:#294934f5;color:#f5f6e6;font-size:12px;padding:13px 22px;border-radius:12px;box-shadow:0 8px 28px #18372425;text-align:center;animation:feedback-in .2s ease;white-space:pre-line}@keyframes feedback-in{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}@keyframes modal-in{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(min-width:1450px){.app-shell{padding:0 35px}.app-header{height:108px}.page-heading{margin-top:33px;margin-bottom:26px}.field{height:520px}.side-panel{gap:26px}.mission-panel{padding:26px 22px}.mission-panel>p{font-size:14px}.loadout-panel{padding:0 7px}}
@media(max-width:1050px){.app-shell{padding:0 25px}.game-layout{grid-template-columns:minmax(0,1fr) 220px;gap:18px}.side-panel{gap:18px}.mission-panel{padding:20px 16px}.field{height:440px}.journey-step small{display:none}}
@media(max-width:800px){.app-shell{padding:0 22px}.app-header{height:83px}.page-heading{margin:23px 0 18px}.page-heading h1{font-size:21px}.game-layout{grid-template-columns:minmax(0,1fr)}.side-panel{display:none}.field{height:clamp(350px,62vw,490px)}.journey{margin-top:20px}.journey-steps{gap:5px}.journey-step{min-height:43px;padding:8px 1px}.journey-step strong{font-size:11px}.keyboard-note{display:none}footer{justify-content:space-between;padding-top:16px}.journey-heading>span:nth-child(2){font-size:9px}.round-heading{height:78px;padding:15px 20px}.controls{padding:13px 18px 16px}}
@media(max-width:480px){.app-shell{padding:0 13px}.app-header{height:73px}.brand{gap:8px}.brand-mark{width:35px;height:35px;border-radius:11px}.brand-mark svg{width:25px;height:25px}.brand strong{font-size:16px;letter-spacing:-.7px}.brand small{font-size:6px;letter-spacing:1.5px;margin-top:3px}.header-actions{gap:5px}.header-actions>.button{font-size:10px;padding:9px 9px;gap:5px;border-radius:9px}.header-actions>.button svg{width:16px;height:16px}.header-actions>.icon-button{width:28px;height:32px}.header-actions>.icon-button svg{width:19px;height:19px}.coin-balance{gap:3px;margin-right:3px}.coin-balance svg{width:16px;height:16px}.coin-balance strong{font-size:13px}.coin-balance small{display:none}.page-heading{margin:19px 2px 15px;align-items:center}.eyebrow{font-size:7px;letter-spacing:1.4px;margin-bottom:7px}.page-heading h1{font-size:18px;letter-spacing:-.8px}.page-heading>.text-button{font-size:9px;gap:4px}.page-heading>.text-button svg{width:14px;height:14px}.page-heading .small-icon{display:none}.game-card{border-radius:16px}.round-heading{height:70px;padding:12px 15px}.level-number{font-size:22px;padding-right:12px;line-height:31px}.round-label{gap:10px}.round-heading h2{font-size:14px}.small-label{font-size:8px}.round-score>strong{font-size:22px}.round-score>span{font-size:10px}.round-score>small{font-size:8px}.field{height:clamp(300px,46dvh,470px)}.field-top{top:12px;left:12px;right:12px;gap:5px}.field-pill{font-size:9px;padding:6px 7px;gap:5px;border-radius:6px}.field-pill strong{font-size:10px}.field-pill svg{width:14px;height:14px}.field-bottom{left:12px;right:12px;bottom:12px}.shot-counter{font-size:8px;gap:8px;padding:7px 9px}.arrow-dot{height:14px}.controls{padding:12px 12px 13px}.power-row{font-size:9px;gap:8px;margin:0 2px 10px}.power-row>span{min-width:82px}.power-row>strong{min-width:27px}.journey{margin-top:18px}.journey-heading{gap:10px;margin-bottom:10px}.journey-heading .eyebrow{font-size:7px;letter-spacing:1px}.journey-heading>span:nth-child(2){font-size:8px;letter-spacing:-.4px}.journey-heading>span:last-child{font-size:8px}.journey-steps{gap:4px}.journey-step{border-radius:7px;min-height:34px;padding:7px 1px}.journey-step strong{font-size:9px}.journey-step svg{width:10px;height:10px}footer{font-size:7px;gap:5px;padding:14px 2px 20px}footer .text-button{font-size:8px;gap:4px}.modal-backdrop{padding:12px}.modal{max-height:calc(100dvh - 24px);padding:23px 18px;border-radius:20px}.modal h2{font-size:23px}.modal-subtitle{font-size:10px}.modal-close{right:9px;top:10px;width:33px;height:33px}.shop-top{margin:18px 0 15px}.shop-tabs button{font-size:10px;padding:8px 15px}.shop-grid{gap:9px}.item-card{padding:11px;border-radius:12px}.item-art{height:74px;margin-bottom:10px}.item-art canvas{height:74px}.item-tag{font-size:7px;top:7px;left:7px}.item-owned{font-size:7px;top:7px;right:7px}.item-card h3{font-size:12px}.item-card>p{font-size:9px;line-height:1.7;min-height:31px}.item-stat{font-size:8px}.item-stat strong{font-size:9px}.item-actions{gap:5px;flex-direction:column}.item-actions .button{font-size:9px;padding:9px 3px}.stage-grid{gap:8px}.stage-card{padding:13px 10px;gap:8px}.stage-card strong{font-size:10px}.stage-card small{font-size:8px}.stage-card .stage-index{font-size:17px}.result-content h2{font-size:24px}.result-content>p{font-size:11px}.result-actions>.button{font-size:11px}.result-stars{font-size:25px}}
@media(max-width:360px){.brand strong{font-size:14px}.page-heading h1{font-size:16px}.field{height:310px}.journey-heading>span:nth-child(2){display:none}}
.mobile-hint{display:none}
@media(max-width:800px){.mobile-hint{display:block;color:#8a987d;font-size:10px;line-height:1.8;margin:11px 5px 0;word-break:keep-all}}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}}

.draw-timing{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:-3px 3px 10px;font-size:9px;color:#8b9980;min-height:17px}.draw-timing strong{font-size:9px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;color:#8c774d}.draw-timing.steady{color:#36794d}.draw-timing.steady>span{font-weight:700}@media(max-width:480px){.draw-timing{font-size:8px;gap:5px;margin-bottom:9px}.draw-timing strong{font-size:8px}}

/* Independent equipment traits and readable 12-item catalogs. */
.shop-top{position:sticky;top:-1px;z-index:3;background:var(--paper);padding:10px 0;margin-top:13px}
.shop-tabs button{white-space:nowrap}
.shop-loadout{display:grid;grid-template-columns:1fr auto;gap:5px 12px;padding:13px 15px;margin:-4px 0 18px;background:#eef2e6;border-radius:11px;font-size:10px;color:#7b8a70}
.shop-loadout>span{grid-column:1/-1;font-size:9px}
.shop-loadout>strong{font-size:11px;color:var(--green);font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.shop-loadout>small{font-size:10px;align-self:center;white-space:nowrap}
.item-card{display:flex;flex-direction:column;min-width:0}
.item-card>.item-art{flex-shrink:0}
.item-traits{flex:1}
.item-stat{gap:8px;line-height:1.6}
.item-stat strong{text-align:right;overflow-wrap:anywhere}
.item-combination{margin-top:8px;padding-top:5px;border-top:1px solid var(--line)}
.loadout-speed{font-size:10px;color:#687d5a;margin:4px 0 13px}
@media(max-width:480px){.shop-tabs button{padding:9px 11px}.shop-loadout{grid-template-columns:1fr;gap:4px}.shop-loadout>span{grid-column:auto}.shop-loadout>small{font-size:10px}.item-card>p{min-height:0}.item-stat{font-size:10px}.item-stat strong{font-size:11px}}

.item-scope{padding-top:12px;margin-top:12px;border-top:1px dashed #ced9c6;display:flex;flex-direction:column;gap:6px;color:#546e46}
.item-scope>span{font-size:10px;font-weight:600}
.item-scope>small{font-size:9px;line-height:1.7;color:#8b9780}
.scope-button{font-size:10px;padding:9px 8px;border-radius:8px;background:#edf2e4;justify-content:center}
.scope-button svg{width:14px;height:14px}
.scope-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.scope-options .scope-button{min-width:0;min-height:48px;flex-direction:column;gap:3px;padding:8px 5px;line-height:1.35;white-space:normal;border:1px solid #d7e0cb}
.scope-options .scope-button strong{font-size:11px;font-weight:700;color:#3e5a32}
.scope-options .scope-button small{font-size:9px;font-weight:400;color:#76856a;overflow-wrap:anywhere}
.scope-options .scope-button[aria-pressed="true"]{background:#dfeccf;border-color:#92ab77;opacity:1;box-shadow:inset 0 0 0 1px #92ab7733}
.scope-options .scope-button[aria-pressed="true"] small{color:#456333;font-weight:700}
.scope-options .scope-button:disabled:not([aria-pressed="true"]){opacity:.55}
.laser-shop-button{min-height:43px;margin-top:9px;justify-content:center;flex-wrap:wrap;font-size:10px;line-height:1.5;background:#f6e9df;border:1px solid #ddbdab;color:#835441}

/* Two tactile sight turrets with rolling values; calibration precedes aiming. */
.laser-panel{margin:12px 0 0;padding:13px 14px;border:1px solid #c7d1ba;border-radius:12px;background:linear-gradient(135deg,#f1f3e9,#e8ede0);box-shadow:inset 0 1px 0 #ffffffb3;color:#41543a}
.laser-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.laser-panel-heading strong{font-size:12px;line-height:1.4}
#laserWeaponLabel{display:block;margin-top:2px;font-size:10px;color:#75836b;overflow-wrap:anywhere}
#laserToggleBtn{flex-shrink:0;min-height:32px;padding:6px 11px;border:1px solid #a7b595;border-radius:7px;background:#f7f8f0;font-size:10px;font-weight:700;color:#4f6740}
#laserToggleBtn[aria-pressed="true"]{background:#dbe6cf;border-color:#88a36f;color:#355325}
.laser-status{margin:7px 0 9px;font-size:10px;line-height:1.6;color:#69765e}
.laser-step-control{display:flex;align-items:center;gap:5px;margin-bottom:9px;font-size:9px;color:#7d886f}
.laser-step-control button{min-height:29px;padding:5px 10px;border:1px solid #c1ccb2;border-radius:6px;background:#f7f8ef;color:#617452;font-size:9px}
.laser-step-control button[aria-pressed="true"]{background:#4d6340;border-color:#4d6340;color:#fff9e8}
.laser-adjustments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.laser-axis{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:5px 7px;min-width:0;padding:8px;border:1px solid #ccd5bf;border-radius:10px;background:#f8f8ef9c;box-shadow:0 2px 5px #45513b08}
.laser-axis>strong,.laser-axis>label,.laser-axis-title,.laser-axis-label{grid-column:1/-1;font-size:10px;letter-spacing:.02em;font-weight:700;color:#526547}
.laser-gear{display:grid;place-items:center;width:64px;height:64px;padding:0;border:0;border-radius:50%;background:radial-gradient(circle at 38% 30%,#f2eddb 0,#d9d5c2 44%,#b0b4a1 64%,#dce1d2 66%,transparent 70%);color:#58664c;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;filter:drop-shadow(0 3px 2px #34432c26);outline-offset:3px}
.laser-gear:active{cursor:grabbing}
.laser-gear:focus-visible{outline:2px solid #7f9b61}
.laser-gear-rotor{display:block;width:62px;height:62px;transform-origin:50% 50%;will-change:transform;pointer-events:none;filter:drop-shadow(0 1px 0 #ffffff9c)}
.laser-odometer{display:flex;align-items:center;justify-content:center;gap:1px;min-width:0;padding:6px 4px;border-radius:6px;border:1px solid #263421;background:linear-gradient(#23331f,#3d4d32 53%,#263621);box-shadow:inset 0 2px 4px #0004,0 1px 0 #fff8;color:#f4eac9;font:600 15px/1.35 ui-monospace,SFMono-Regular,Consolas,monospace;font-variant-numeric:tabular-nums;font-feature-settings:"tnum";text-shadow:0 1px 1px #0009;user-select:none}
.laser-value-sign{flex-shrink:0;width:.65em;text-align:center;color:#c6d0aa}
.laser-digit{display:block;position:relative;flex:0 0 .66em;height:1.35em;overflow:hidden;text-align:center;border-left:1px solid #ffffff0a}
.laser-digit-strip{display:block;transition:transform .15s cubic-bezier(.2,.65,.25,1);will-change:transform}
.laser-digit-strip>span{display:block;height:1.35em;line-height:1.35em}
.laser-reset-button{display:block;margin:9px 0 0 auto;min-height:30px;padding:5px 10px;border:1px solid #bdc8ae;border-radius:6px;background:#f5f6eb;font-size:10px;color:#6a795d}
.laser-note{margin:8px 0 0;font-size:9px;line-height:1.6;color:#849076}
.laser-panel button:disabled{cursor:default;opacity:.46}
.laser-panel .laser-gear:disabled{filter:grayscale(.6) drop-shadow(0 1px 1px #34432c15)}
@media(max-width:480px){.laser-panel{padding:10px}.laser-adjustments{gap:6px}.laser-axis{grid-template-columns:52px minmax(0,1fr);gap:5px;padding:6px}.laser-gear{width:52px;height:52px}.laser-gear-rotor{width:50px;height:50px}.laser-odometer{font-size:12px;padding:6px 2px}.laser-panel-heading strong{font-size:11px}.laser-note{font-size:8px}}
@media(prefers-reduced-motion:reduce){.laser-digit-strip{transition:none}}

/* Fifty stages stay easy to scan without making the play area taller. */
.journey-steps{grid-template-columns:repeat(10,minmax(0,1fr));max-height:160px;overflow-y:auto;gap:7px;padding:3px 4px 7px;scrollbar-width:thin;scrollbar-color:#b3c0a2 transparent}
.journey-step{min-height:44px}
.stage-range-nav{display:flex;overflow-x:auto;gap:6px;position:sticky;top:48px;z-index:3;padding:10px 0;background:var(--paper);margin:10px 0 0}
.stage-range-nav button{flex:1 0 56px;border:1px solid var(--line);border-radius:8px;background:#eef2e6;padding:9px 5px;font-size:11px;font-variant-numeric:tabular-nums}
.stage-range-nav button{display:flex;min-width:0;flex-direction:column;align-items:center;gap:3px}.stage-range-nav button strong{font-size:12px;white-space:nowrap}.stage-range-nav button small{font-size:10px;color:var(--muted)}.stage-range-nav button:hover{background:#dce8ce}.stage-card[id^="stage-range-"]{scroll-margin-top:136px}
.stage-section-title{grid-column:1/-1;font-size:12px;color:#657f52;margin:12px 0 2px;scroll-margin-top:58px}
@media(max-width:800px){.journey-steps{grid-template-columns:repeat(5,minmax(0,1fr));max-height:153px;gap:5px}.journey-step strong{font-size:12px}.journey-step svg{width:14px;height:14px}}
@media(max-width:480px){.stage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stage-range-nav{gap:4px}.stage-range-nav button{font-size:10px;padding:10px 3px}.stage-section-title{font-size:11px}}

.weapon-filters{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 17px}
.weapon-filters button{border:1px solid var(--line);background:#f3f5ed;border-radius:8px;font-size:10px;padding:8px 12px}
.weapon-filters button.active{background:#e2ebd5;border-color:#a9bc91;color:#34512d;font-weight:700}
.rare-item .item-tag{color:#795ca0;background:#eee8f5}
@media(max-width:480px){.weapon-filters{gap:5px}.weapon-filters button{padding:8px 10px;font-size:9px}.shop-tabs button{padding:8px 12px}}

.ammo-dot{display:block;width:5px;height:15px;background:#e8cf8b;border-radius:3px 3px 1px 1px;border-bottom:3px solid #b49357}.ammo-dot.used{opacity:.2}


.event-ammo{display:grid;grid-template-columns:1fr auto;gap:8px 12px;align-items:center;margin-top:12px;padding:12px 14px;background:#f0f3e8;border:1px solid #dce4d1;border-radius:11px}
.ammo-balance{display:flex;gap:7px;align-items:baseline;color:#687e59;font-size:11px}.ammo-balance strong{font-size:22px;color:#345b44;font-variant-numeric:tabular-nums;font-weight:600}
.event-ammo>button{border:1px solid #c9d6ba;background:#e4ecd9;color:#47633a;font-size:11px;border-radius:8px;padding:9px 12px}.event-ammo>button:disabled{opacity:.45}
.event-ammo>p{grid-column:1/-1;font-size:10px;line-height:1.7;color:#7c8c70;margin:0;word-break:keep-all}.event-ammo>#ammoRetryBtn{grid-column:1/-1;background:#fffdf3}
.ammo-shop-balance{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}.ammo-shop-balance>div{padding:17px;background:#edf1e4;border-radius:12px}.ammo-shop-balance small{display:block;color:#839374;font-size:10px;margin-bottom:8px}.ammo-shop-balance strong{font-size:26px;font-weight:600;color:#345b44}.ammo-shop-balance em{font-size:11px;font-style:normal;margin-left:5px}
.ammo-rules{padding:15px 17px;border:1px solid #e0e6d5;border-radius:12px;font-size:11px;color:#74856a;line-height:1.9;margin:0 0 18px}.ammo-rules strong{color:#4f6d41}.ammo-rules p{margin:0 0 9px}.ammo-rules p:last-child{margin:0}
.ammo-purchase{width:100%;font-size:13px;padding:14px}.ammo-purchase-note{font-size:10px;color:#87967a;line-height:1.8;text-align:center;word-break:keep-all}.ammo-shop-link{width:100%;margin:0 0 18px;justify-content:space-between;background:#edf2e5;border-color:#d5dfc8;font-size:11px;padding:12px 14px}.ammo-shop-link strong{font-size:12px}
@media(max-width:480px){.event-ammo{padding:10px 12px;margin-top:10px}.ammo-balance strong{font-size:20px}.event-ammo>button{font-size:10px;padding:8px 10px}.event-ammo>p{font-size:9px}.ammo-rules{font-size:10px;padding:13px}.ammo-shop-balance>div{padding:14px}.ammo-shop-balance strong{font-size:24px}}

/* Equipment progression, stat comparison, and per-weapon steady windows. */
.shop-sort{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
.shop-sort label{flex-shrink:0;font-size:11px;font-weight:600;color:var(--green)}
.shop-sort select{max-width:100%;min-width:0;min-height:44px;padding:10px 32px 10px 12px;border:1px solid #cbd6bf;border-radius:9px;background:var(--paper);color:var(--green);font:inherit;font-size:11px;cursor:pointer}
.shop-sort select:focus-visible{outline:3px solid #ccaa5c;outline-offset:3px}
.shop-order-note{margin:0 0 18px;font-size:10px;color:#637653;line-height:1.8;word-break:keep-all;overflow-wrap:anywhere}
.shop-loadout>.shop-loadout-steady{grid-column:1/-1;font-size:10px;color:#4f7340;white-space:normal}
.item-price{display:flex;align-items:baseline;justify-content:space-between;gap:6px;margin:13px 0 0;font-size:10px;color:#7b8a70}
.item-price strong{color:var(--green);font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.item-card>p.item-budget,.item-scope>.item-budget{min-height:0;margin:7px 0 0;color:#92703a;font-size:10px;line-height:1.7;word-break:keep-all;overflow-wrap:anywhere}
.item-actions .button{min-height:42px;white-space:normal;line-height:1.6}
.item-scope .scope-button{white-space:normal;line-height:1.7;overflow-wrap:anywhere}
.loadout-speed{margin-bottom:4px}
.loadout-steady{font-size:10px;color:#4f7340;margin:0 0 13px;line-height:1.7}
@media(max-width:480px){
  .shop-sort{gap:8px}
  .shop-sort select{flex:1;font-size:10px;padding-left:9px;padding-right:24px}
  .shop-order-note{font-size:10px;line-height:1.8}
  .item-price{gap:4px;font-size:9px}
  .item-price strong{font-size:11px}
  .item-card>p.item-budget{font-size:10px}
  .item-actions .button{font-size:10px;gap:5px}
}
@media(max-width:360px){
  .shop-grid{grid-template-columns:minmax(0,1fr)}
  .item-card{padding:14px}
  .item-art{height:86px}
  .item-art canvas{height:86px}
  .item-card>p,.item-card>p.item-budget{font-size:10px}
  .item-price strong{font-size:12px}
}

/* Compact shop cards keep full specifications and attachments one tap away. */
.modal[data-view="shop"]{width:min(800px,100%);overflow-x:hidden}
.modal[data-view="shop"] .modal-close{position:sticky;display:flex;float:none;top:0;right:0;z-index:20;width:40px;height:40px;margin:0 -5px -40px auto}
.modal[data-view="shop"] .shop-layout{min-width:0;isolation:isolate}
.shop-layout .shop-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px;padding-right:48px}
.shop-layout .shop-heading>h2{min-width:0;margin:0;font-size:24px;line-height:1.4;white-space:nowrap}
.shop-layout>h2{max-width:calc(100% - 44px);margin:0;font-size:24px;line-height:1.4}
.shop-layout .shop-top{display:block;margin:8px 0 12px;padding:8px 44px 8px 0}
.shop-layout .shop-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;width:100%;padding:3px;border-radius:10px;min-width:0}
.shop-layout .shop-tabs button{min-height:44px;padding:8px 5px;font-size:11px;white-space:nowrap}
.shop-layout .shop-coins{min-width:0;gap:4px;font-size:11px;font-variant-numeric:tabular-nums}
.shop-layout .shop-coins svg{width:16px;height:16px}
.shop-layout .shop-coins strong{min-width:0;overflow:hidden;text-overflow:ellipsis}
.shop-layout .shop-loadout{display:block;margin:0 0 12px;padding:0;border:1px solid #dce5d3;border-radius:9px;background:#eef3e7}
.shop-layout .shop-loadout>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:9px 12px;list-style:none;cursor:pointer}
.shop-layout .shop-loadout>summary>span:first-child{flex:none;font-size:10px;color:#7b8971}
.shop-layout .shop-loadout>summary>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#365c42;font-weight:600}
.shop-layout .shop-loadout .item-detail-indicator{margin-left:auto}
.shop-layout .shop-loadout-body{padding:0 12px 11px;color:#6b7c60;font-size:11px;line-height:1.7}
.shop-layout .shop-loadout-body>strong,.shop-layout .shop-loadout-body>span{display:block;font-size:11px;font-weight:400}
.shop-layout .shop-controls{margin:0 0 12px}
.shop-layout .weapon-filters{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 10px}
.shop-layout .weapon-filters button{min-height:38px;padding:7px 12px;border-radius:8px;font-size:10px;white-space:nowrap}
.shop-layout .shop-sort{gap:8px;margin:0}
.shop-layout .shop-sort label{font-size:10px;color:#7a8970;font-weight:500}
.shop-layout .shop-sort select{flex:1;min-height:44px;padding:8px 28px 8px 11px;font-size:11px;border-radius:8px}
.shop-layout .shop-bullet-note{margin:2px 0 13px;color:#7b8b70;font-size:11px;line-height:1.7;word-break:keep-all}
.shop-layout .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px}
.shop-layout .item-card{display:block;min-width:0;padding:0;overflow:hidden;border:1px solid #dfe6d7;border-radius:12px;background:#fbfcf7}
.shop-layout .item-card.equipped{border-color:#9bb88b;box-shadow:inset 0 0 0 1px #9bb88b22;background:#f7faf2}
.shop-layout .item-card-summary{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;padding:13px}
.shop-layout .item-art{position:relative;display:flex;align-items:center;justify-content:center;height:90px;min-width:0;margin:0;border-radius:9px;background:linear-gradient(140deg,#f0f4e9,#e8efde)}
.shop-layout .item-art canvas{display:block;width:100%;height:100%;max-height:none;object-fit:contain}
.shop-layout .item-rank{position:absolute;left:7px;top:5px;font-size:9px;font-weight:600;letter-spacing:.04em;color:#8b9d7e}
.shop-layout .item-main{display:flex;flex-direction:column;min-width:0}
.shop-layout .item-meta{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:16px}
.shop-layout .item-tag{position:static;min-width:0;font-size:9px;line-height:1.4;letter-spacing:0;color:#7b8b6c;background:none}
.shop-layout .rare-item .item-tag{color:#836b9d}
.shop-layout .item-owned{position:static;flex:none;border-radius:4px;padding:2px 5px;background:#e8efde;color:#66804e;font-size:9px;line-height:1.4;white-space:nowrap}
.shop-layout .equipped .item-owned{background:#365c42;color:#fffdf1}
.shop-layout .item-card h3{margin:3px 0 0;font-size:14px;line-height:1.4;letter-spacing:-.3px;font-weight:700;word-break:keep-all;overflow-wrap:anywhere}
.shop-layout .item-quick{margin:4px 0 10px;color:#839076;font-size:10px;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere}
.shop-layout .item-purchase{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px;margin-top:auto}
.shop-layout .item-price{display:block;min-width:0;margin:0;line-height:1.4}
.shop-layout .item-price strong{font-size:11px;font-weight:600;color:#627c4f;white-space:nowrap}
.shop-layout .item-actions{display:flex;flex:none;flex-direction:row;margin:0;gap:0}
.shop-layout .item-actions .button{min-height:44px;min-width:84px;padding:8px 10px;border-radius:8px;font-size:11px;line-height:1.4;white-space:nowrap}
.shop-layout .item-actions .button:disabled{opacity:.6;transform:none}
.shop-layout .item-details{border-top:1px solid #e4eadc}
.shop-layout .item-details>summary,.shop-layout .shop-guide>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:10px 13px;list-style:none;cursor:pointer;color:#6e8160;font-size:11px;font-weight:500}
.shop-layout summary::-webkit-details-marker{display:none}
.shop-layout summary::marker{content:""}
.shop-layout summary:focus-visible{outline:3px solid #ccaa5c;outline-offset:-3px;border-radius:7px}
.shop-layout .item-detail-indicator{display:block;flex:none;min-width:13px;font-size:17px;line-height:1;text-align:center;color:#91a482;transition:transform .15s}
.shop-layout details[open]>summary>.item-detail-indicator{transform:rotate(45deg)}
.shop-layout .item-details[open]>summary{background:#f0f5e8;border-bottom:1px solid #e4eadc;color:#47683a}
.shop-layout .item-detail-body{padding:13px}
.shop-layout .item-description{margin:0 0 12px;color:#77876a;font-size:11px;line-height:1.8;word-break:keep-all}
.shop-layout .item-stat{gap:8px;font-size:11px;line-height:1.7}
.shop-layout .item-stat strong{font-size:11px;line-height:1.7}
.shop-layout .stat-track{height:3px;margin:4px 0 8px}
.shop-layout .item-combination,.shop-layout .item-list-price{margin-top:10px;padding-top:7px;border-top:1px solid #e3e9db}
.shop-layout .item-budget{margin:8px 0 0;color:#967645;font-size:11px;line-height:1.6}
.shop-layout .item-scope{margin-top:13px;padding-top:12px;gap:7px}
.shop-layout .item-scope>span{font-size:11px}
.shop-layout .item-scope>small{font-size:10px;line-height:1.6}
.shop-layout .scope-options{gap:7px}
.shop-layout .scope-options .scope-button{min-height:48px;font-size:11px}
.shop-layout .scope-options .scope-button small{font-size:10px}
.shop-layout .laser-shop-button{width:100%;min-height:48px;margin-top:10px;gap:3px;font-size:11px}
.shop-layout .laser-shop-button>strong,.shop-layout .laser-shop-button>small{display:block;width:100%}
.shop-layout .laser-shop-button>small{font-size:10px;font-weight:400}
.shop-layout .shop-guide{margin-top:15px;border-top:1px solid #dfe6d5}
.shop-layout .shop-guide>summary{padding:12px 2px;font-size:12px;min-height:46px}
.shop-layout .shop-order-note,.shop-layout .shop-footnote{margin:3px 0 12px;color:#7c8b71;font-size:11px;line-height:1.85;word-break:keep-all}
@media(max-width:600px){
  .shop-layout .shop-grid{grid-template-columns:minmax(0,1fr)}
  .shop-layout .weapon-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .shop-layout .weapon-filters button{min-height:38px;padding:7px 4px}
  .shop-layout .item-card-summary{grid-template-columns:96px minmax(0,1fr);gap:12px}
  .shop-layout .item-art{height:91px}
}
@media(max-width:380px){
  .shop-layout>h2,.shop-layout .shop-heading>h2{font-size:22px}
  .shop-layout .shop-top{gap:7px;padding-right:41px}
  .shop-layout .shop-tabs button{padding:8px 4px;font-size:10px}
  .shop-layout .shop-coins{gap:3px;font-size:10px}
  .shop-layout .shop-coins svg{width:13px;height:13px}
  .shop-layout .weapon-filters button{font-size:9px}
  .shop-layout .item-card-summary{grid-template-columns:72px minmax(0,1fr);gap:10px;padding:11px}
  .shop-layout .item-art{height:88px}
  .shop-layout .item-card h3{font-size:13px}
  .shop-layout .item-tag,.shop-layout .item-owned{font-size:8px}
  .shop-layout .item-quick{font-size:9px;margin-bottom:8px}
  .shop-layout .item-purchase{gap:6px}
  .shop-layout .item-price strong{font-size:10px}
  .shop-layout .item-actions .button{min-width:76px;padding:8px 7px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){.shop-layout .item-detail-indicator{transition:none}}

/* The playfield uses the space left by the toolbar and controls, not a fixed height. */
html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
.app-shell{width:100%;max-width:none;height:100vh;height:100dvh;min-height:0;margin:0;padding:6px 8px;display:flex;flex-direction:column;gap:6px;overflow:hidden}
.app-header{flex:0 0 44px;height:44px;min-width:0;border:0;gap:12px}
.brand{flex:none;gap:8px}.brand-mark{width:32px;height:32px;border-radius:10px}.brand-mark svg{width:24px;height:24px}.brand strong{font-size:16px}.brand small{display:none}
.header-actions{min-width:0;gap:6px}.coin-balance{min-width:0;gap:4px;margin:0 5px 0 0}.coin-balance strong{min-width:0;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.coin-balance small{font-size:10px}
.header-actions>.button,.header-actions>.text-button,.header-actions>.icon-button{min-height:40px;height:40px;padding:7px 10px;font-size:11px;white-space:nowrap;flex-shrink:0}
.header-actions>.icon-button{width:40px;padding:7px}.header-actions>.button svg,.header-actions>.text-button svg{width:19px;height:19px}
.app-shell>main{display:flex;flex:1;min-width:0;min-height:0}
.page-heading,.side-panel,.journey{display:none}
.game-layout{display:flex;flex:1;min-width:0;min-height:0;gap:0;align-items:stretch}
.game-card{display:grid;grid-template-rows:46px auto minmax(0,1fr) auto;flex:1;min-width:0;min-height:0;border-radius:12px;box-shadow:none}
.round-heading{grid-row:1;height:auto;min-width:0;padding:6px 12px;gap:10px}
.round-label{min-width:0;gap:9px}.level-number{font-size:22px;line-height:30px;padding-right:10px}.round-label>div{min-width:0}.round-label .small-label{display:none}.round-heading h2{font-size:14px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.round-label{flex:1}.round-label>div{flex:1}
.round-notes{height:12px;min-width:0;display:flex;align-items:center;gap:6px;overflow:hidden}
.flight-badge{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#768a6b;font-size:9px;line-height:12px;font-variant-numeric:tabular-nums;pointer-events:none}
.flight-badge.bullseye{color:#916522;font-weight:900;letter-spacing:.045em;text-shadow:0 0 9px #e4bc6570;animation:bullseye-badge-pop .25s ease-out both}
@keyframes bullseye-badge-pop{from{opacity:.4;transform:translateY(3px) scale(.91)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.flight-badge.bullseye{animation:none}}
.gear-recommendation{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#637b54;font-size:9px;line-height:12px;pointer-events:none}
.flight-badge:not(.hidden)~.gear-recommendation{display:none}
.stabilizer-badge{display:inline-flex;align-items:center;gap:3px;flex:none;color:#4c7b40;font-size:9px;font-weight:600;line-height:12px;white-space:nowrap;pointer-events:none}
.stabilizer-badge svg{width:11px;height:11px}
.round-score{flex:none;display:flex;align-items:baseline;gap:3px}.round-score>strong{font-size:22px}.round-score>span{font-size:11px;margin:0}.round-score>small{display:none}
/* Draw power and event reload share a fixed slot above the field. */
.gun-reload{grid-column:1;grid-row:2;min-width:0;height:34px;padding:3px 12px 8px;background:#eef3e7;border-top:1px solid #e2e9d9;display:flex;flex-direction:column;justify-content:center;gap:4px}
.gun-reload-copy{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-width:0;font-size:10px;line-height:1.2;color:#4e6d42}
.gun-reload-copy strong{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gun-reload-copy>span{flex:none;font-size:10px;font-weight:600;font-variant-numeric:tabular-nums;color:#637d54}
.gun-reload-track{width:100%;height:5px;flex:none;border-radius:5px;overflow:hidden;background:#dbe4cf}
.gun-reload-track>span{display:block;width:100%;height:100%;background:#789c61;border-radius:inherit}
.gun-reload.reloading{background:#f5efde}
.gun-reload.reloading .gun-reload-copy,.gun-reload.reloading .gun-reload-copy>span{color:#8b6b32}
.gun-reload.reloading .gun-reload-track{background:#e5dcc3}
.gun-reload.reloading .gun-reload-track>span{background:#bd964c}
.power-row.bow-power{grid-column:1;grid-row:2;min-width:0;min-height:34px;height:34px;margin:0;padding:7px 12px;border-top:1px solid #e2e9d9;background:#eef3e7;color:#4e6d42;font-size:10px}
.bow-power>span{white-space:nowrap;font-weight:600}
.bow-power>.power-track{min-width:30px;height:5px;background:#dbe4cf}
.bow-power>strong{color:#637d54;font-weight:600}
.gun-reload:not(.hidden)~.bow-power{display:none}
.field{grid-row:3;height:auto;min-width:0;min-height:0}.field canvas{position:absolute;inset:0;width:100%;height:100%}
/* An invisible input surface reserves the lower third for the aiming hand. */
.field canvas{cursor:default}
.aim-touchpad{position:absolute;left:0;right:0;bottom:0;height:calc(100% / 3);background:transparent;border:0;box-shadow:none;touch-action:none;pointer-events:auto;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;cursor:crosshair;z-index:1}
.aim-touchpad[data-laser="true"]{height:100%}
.aim-touchpad:focus:not(:focus-visible){outline:none}
.aim-touchpad:focus-visible{outline:none}
#gameCanvas.drawing+.aim-touchpad{cursor:grabbing}
.field-top,.field-bottom{z-index:2}
.field-top{top:10px;left:10px;right:10px}.field-bottom{left:10px;right:10px;bottom:10px}.field-pill{min-height:32px;font-size:10px}.zoom-button{min-width:40px}.field-bottom button{min-height:36px}
.controls{grid-row:4;display:grid;grid-template-columns:minmax(0,1fr);gap:5px;padding:7px 10px;min-width:0}
.power-row{margin:0;gap:8px;min-height:16px;font-size:10px;line-height:1.4}.power-row>span{min-width:0}.power-row>strong{min-width:30px}
.draw-timing{margin:0;min-height:16px;gap:5px;font-size:10px;line-height:1.4}.draw-timing strong{font-size:10px}.draw-timing>span{min-width:0}
/* Instructions and shot results occupy the same small row below the field. */
.control-status{position:relative;min-width:0;height:20px;flex-shrink:0;overflow:hidden;line-height:20px}
.control-copy{display:flex;align-items:baseline;gap:9px;min-width:0;height:100%;overflow:hidden;white-space:nowrap;color:#6f8164}
.control-copy strong{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:11px;font-weight:500}
.control-copy small{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:10px;color:#8c9982}
.shot-feedback{position:absolute;inset:0;display:flex;align-items:baseline;gap:8px;min-width:0;overflow:hidden;background:var(--paper);color:#42663e;pointer-events:none;line-height:20px}
.shot-feedback strong{flex-shrink:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:11px;white-space:nowrap}
.shot-feedback span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#7c8e70}
.shot-feedback.miss{background:var(--paper);color:#7c785e}.shot-feedback.gold{background:var(--paper);color:#987a35}
.mobile-hint{display:none}
.event-ammo{margin:0;padding:6px 9px;gap:3px 8px;border-radius:8px}.ammo-balance{font-size:10px;gap:5px}.ammo-balance strong{font-size:18px}.event-ammo>button{min-height:30px;padding:4px 8px;font-size:10px}.event-ammo>p{font-size:10px;line-height:1.4;word-break:normal;overflow-wrap:anywhere}
.app-shell>footer{flex:0 0 auto;min-height:14px;padding:0 3px;gap:8px;font-size:9px;line-height:1.4}.app-shell>footer>span:first-child{min-width:0}.keyboard-note{font-size:9px;white-space:nowrap}
.modal-backdrop{padding:12px}.modal{max-height:calc(100dvh - 24px);overscroll-behavior:contain}.modal-close{position:sticky;float:right;top:0;margin:-10px -5px 0 5px;background:var(--paper);width:40px;height:40px;z-index:5}
@media(max-width:780px){
  .app-header{gap:5px}.brand strong{display:none}.header-actions{flex:1;justify-content:flex-end;gap:4px}.coin-balance small{display:none}
  .header-actions>.button,.header-actions>.text-button,.header-actions>.icon-button{padding:6px;min-height:38px;height:38px}.header-actions>.icon-button{width:36px}
  .keyboard-note{display:none}
}
@media(max-width:480px){
  .app-shell{padding:4px;gap:4px}.app-header{flex-basis:42px;height:42px}.brand-mark{width:28px;height:28px}.brand-mark svg{width:22px;height:22px}.coin-balance{margin-right:2px}.coin-balance svg{display:none}
  .game-card{border-radius:9px;grid-template-rows:42px auto minmax(0,1fr) auto}.round-heading{padding:5px 10px}.round-heading h2{font-size:13px}.level-number,.round-score>strong{font-size:20px}
  .controls{padding:6px 8px;gap:4px}.control-copy small{display:none}.control-copy strong,.shot-feedback strong{font-size:10px}.shot-feedback span{font-size:9px}
  .field-top{gap:4px;top:8px;left:8px;right:8px}.field-bottom{left:8px;right:8px;bottom:8px}.field-pill{padding:5px 7px}.shot-counter{font-size:9px;padding:7px 8px;gap:6px}.shot-counter>span:first-child{gap:4px}
  .draw-timing,.draw-timing strong{font-size:9px}.power-row{font-size:9px}.app-shell>footer{font-size:8px;min-height:12px}
}
@media(min-width:900px) and (min-height:601px){
  .controls{grid-template-columns:minmax(180px,1fr) minmax(250px,1.3fr);gap:5px 24px;padding:8px 12px}
  .controls>.draw-timing{grid-column:1;grid-row:1}.controls>.control-status{grid-column:2;grid-row:1;align-self:center}
  .event-ammo{grid-column:1/-1;grid-template-columns:auto auto minmax(0,1fr) auto;gap:8px}.event-ammo>p{grid-column:auto}.event-ammo>#ammoRetryBtn{grid-column:auto}
}
/* A side rail preserves field height when the phone is held sideways. */
@media(min-width:600px) and (max-height:600px){
  .app-shell{padding:4px;gap:4px}.app-header{flex-basis:40px;height:40px}.game-card{grid-template-columns:minmax(0,1fr) clamp(220px,30vw,270px);grid-template-rows:38px auto minmax(0,1fr)}
  .round-heading{grid-column:1;grid-row:1;padding:3px 10px}.round-heading h2{font-size:13px}.level-number,.round-score>strong{font-size:19px}
  .field{grid-column:1;grid-row:3}.controls{grid-column:2;grid-row:1/-1;display:flex;flex-direction:column;gap:4px;padding:6px;min-height:0;overflow-y:auto;border-left:1px solid var(--line);scrollbar-width:thin}
  .power-row{font-size:9px;min-height:14px}.draw-timing,.draw-timing strong{font-size:9px}.draw-timing{min-height:14px}
  .event-ammo{flex-shrink:0;padding:5px;gap:3px 5px}.event-ammo>p{font-size:9px;line-height:1.35}.event-ammo>button{font-size:9px;min-height:28px}.ammo-balance{font-size:9px}.ammo-balance strong{font-size:16px}
  .app-shell>footer{min-height:12px;font-size:8px}
}
@media(min-width:600px) and (max-height:330px){
  .app-shell>footer{position:absolute;right:280px;left:8px;bottom:5px;z-index:3;pointer-events:none;color:#385443;background:#f5f4ede6;border-radius:3px;padding:1px 4px}.controls{padding:4px;gap:3px}.draw-timing,.draw-timing strong{font-size:8px}.event-ammo>p{font-size:8px}
}

/* A round-long consumable, exchanged only for targets broken in gun events. */
.header-actions>.stabilizer-open{gap:4px;padding-inline:8px;background:#edf3e4;border-color:#cbdcbc;color:#416339}
.header-actions #stabilizerCount{display:inline;font-variant-numeric:tabular-nums;min-width:8px;font-size:11px}
.header-actions>.stabilizer-open.active{background:#dceccb;border-color:#82a86b;color:#2b572e}
.stabilizer-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0 16px}
.stabilizer-summary>div{padding:15px 12px;background:#eef3e7;border:1px solid #dce5d0;border-radius:12px;min-width:0}
.stabilizer-summary small{display:block;font-size:11px;color:#76896a;margin-bottom:7px}
.stabilizer-summary strong{font-size:25px;font-weight:600;font-variant-numeric:tabular-nums;color:#315945;overflow-wrap:anywhere}
.stabilizer-summary em{font-size:11px;font-style:normal;color:#76896a;margin-left:4px}
.stabilizer-rules{padding:13px 15px;border-radius:11px;background:#f4f5eb;color:#6c805c;font-size:11px;line-height:1.85;word-break:keep-all}
.stabilizer-rules p{margin:0 0 6px}.stabilizer-rules p:last-child{margin-bottom:0}.stabilizer-rules strong{color:#3f6539}
.stabilizer-actions{display:grid;gap:9px;margin-top:16px}.stabilizer-actions .button{width:100%;min-height:44px;font-size:12px;white-space:normal;line-height:1.5}
.stabilizer-message{font-size:11px;line-height:1.75;color:#678159;word-break:keep-all;margin:12px 0 0}
@media(max-width:780px){.header-actions>.stabilizer-open{padding-inline:6px;gap:3px}.header-actions>.stabilizer-open svg{width:18px;height:18px}}
@media(max-width:360px){.app-header>.brand{display:none}.header-actions{justify-content:space-between;gap:3px}.stabilizer-summary>div{padding:12px 10px}.stabilizer-summary strong{font-size:22px}}

/* Keep the shop visible and group secondary controls in one readable menu. */
.header-actions>.shop-open{background:var(--green);border-color:var(--green);color:#fffdf1;font-weight:700;gap:6px;padding-inline:12px}
.header-actions>.shop-open:hover{background:#244b37}
.header-actions>.shop-open span,.header-actions>.menu-open span{display:inline}
.header-actions>.menu-open{gap:6px;border-color:#cad5c0;background:#f0f3e8;padding-inline:11px}
.header-actions>.menu-open:hover{background:#e4ecda}
.coin-balance{max-width:140px;flex:0 1 auto}
.game-menu h2{padding-right:26px}
.game-menu .modal-subtitle{margin-bottom:15px;max-width:100%;color:#718367}
.menu-stage-actions,.stage-result-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.menu-stage-actions>.stage-choice,.stage-result-actions>.stage-choice{min-width:0;min-height:78px;padding:12px 5px;display:flex;flex-direction:column;gap:6px;border-color:#ccd8bf;background:#f0f4e9;border-radius:12px;color:#365a3a;line-height:1.45;white-space:normal;word-break:keep-all}
.stage-choice>strong{display:block;font-size:13px;font-weight:700;letter-spacing:-.3px}
.stage-choice>small{display:block;font-size:11px;font-weight:400;opacity:.78}
.menu-stage-actions>.stage-choice:hover,.stage-result-actions>.stage-choice:hover{background:#e5eedb}
.menu-stage-actions>.primary-button,.stage-result-actions>.primary-button{background:var(--green);border-color:var(--green);color:#fffdf1}
.menu-stage-actions>.primary-button:hover,.stage-result-actions>.primary-button:hover{background:#244b37}
.menu-stage-actions>.stage-choice:disabled,.stage-result-actions>.stage-choice:disabled{opacity:.42;transform:none}
.menu-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}
.menu-action{min-width:0;min-height:70px;display:flex;align-items:center;gap:9px;padding:12px;border:1px solid #dce3d2;border-radius:12px;background:#fbfcf5;text-align:left}
.menu-action:hover{background:#edf3e4;border-color:#bccdaa}
.menu-action>svg{width:21px;height:21px;color:#6b885a}
.menu-action>span{display:flex;flex-direction:column;gap:4px;min-width:0}
.menu-action strong{font-size:12px;font-weight:600;color:#3f623b}
.menu-action small{font-size:10px;color:#7a8b70;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere}
.game-menu>.button{width:100%;min-height:44px;margin-top:0}
.modal[data-view="result"]{max-width:480px;padding:24px}
.result-content{padding-top:0}
.result-content .result-emblem{display:none}
.result-content>.eyebrow{margin:0 0 7px;font-size:9px}
.result-content h2{font-size:25px;margin:4px 0 8px}
.result-content>p{margin:7px 0;color:#74876b;font-size:12px;line-height:1.7}
.result-content .result-stars{font-size:19px;letter-spacing:5px;margin:8px 0}
.result-content .result-metrics{padding:14px 0;margin:16px 0 18px}
.result-content .result-metrics small{font-size:10px;margin-bottom:6px}
.result-content .result-metrics strong{font-size:24px}
.result-content>.result-note{font-size:10px;margin:12px 0;color:#8a967f}
.result-content>.result-shop-button{min-height:46px;margin:14px 0 7px;border-color:#9eb88a;background:#e4edd9;color:#365c35;font-size:13px;font-weight:700;justify-content:center;gap:8px}
.result-content>.result-shop-button>svg:last-child{margin-left:0}
.result-content>.result-shop-button:hover{background:#d8e6ca}
.result-content>.text-button{min-height:36px;justify-content:center;color:#6d8161;font-size:11px}
@media(max-width:780px){
  .coin-balance{flex:1;max-width:none;margin-right:auto}
  .header-actions>.shop-open{padding-inline:10px}
  .header-actions>.menu-open{padding-inline:9px}
}
@media(max-width:480px){
  .coin-balance small{display:inline;font-size:9px}
  .coin-balance strong{font-size:12px}
  .header-actions>.shop-open,.header-actions>.menu-open{font-size:11px;min-height:40px;height:40px}
  .header-actions>.shop-open svg,.header-actions>.menu-open svg{width:17px;height:17px}
  .modal[data-view="result"]{padding:21px 16px}
  .result-content h2{font-size:23px}
  .result-content>p{font-size:11px}
  .menu-stage-actions,.stage-result-actions{gap:6px}
  .stage-choice>strong{font-size:12px}
  .stage-choice>small{font-size:10px}
  .menu-action{padding:11px 9px;gap:7px;min-height:68px}
  .menu-action>svg{width:19px;height:19px}
  .menu-action strong{font-size:11px}
  .menu-action small{font-size:9px}
}
@media(max-width:360px){
  .header-actions>.shop-open{padding-inline:10px}
  .header-actions>.menu-open{padding-inline:9px}
  .modal[data-view="result"]{padding-block:16px}
  .result-content .result-metrics strong{font-size:22px}
}
@media(max-height:500px) and (min-width:600px){
  .modal[data-view="result"]{max-width:600px;padding:16px 22px}
  .result-content>.eyebrow,.result-content .result-stars{display:none}
  .result-content h2{font-size:21px;margin:0 0 4px}
  .result-content>p{font-size:10px;margin:4px 0}
  .result-content .result-metrics{padding:7px 0;margin:8px 0 10px}
  .result-content .result-metrics small{font-size:9px;margin-bottom:2px}
  .result-content .result-metrics strong{font-size:20px}
  .stage-result-actions>.stage-choice{min-height:60px;padding:8px 5px;gap:3px}
  .result-content>.result-note{margin:6px 0;font-size:9px}
  .result-content>.result-shop-button{width:calc(100% - 74px);min-height:38px;margin:4px 8px 0 0;font-size:11px}
  .result-content>.text-button{min-height:38px;padding-inline:7px;vertical-align:middle}
}
@media(max-height:330px) and (min-width:600px){
  .modal[data-view="result"]{padding:12px 18px}
  .result-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:8px 18px;text-align:center}
  .result-content>h2{grid-column:1;grid-row:1;align-self:end;margin:0;font-size:20px}
  .result-content>p:not([class]){grid-column:1;grid-row:2;margin:0;font-size:10px;line-height:1.6}
  .result-content .result-metrics{grid-column:1;grid-row:3;align-self:start;min-width:0;margin:0;padding:7px 0}
  .result-content .result-metrics strong{font-size:18px}
  .result-content .result-metrics em{font-size:9px;margin-left:2px}
  .result-content>.stage-result-actions{grid-column:2;grid-row:1/3;align-self:stretch}
  .result-content>.stage-result-actions>.stage-choice{min-height:76px;padding-inline:3px}
  .result-content>.stage-result-actions>.stage-choice>strong{font-size:12px}
  .result-content>.result-note{display:none}
  .result-content>.result-shop-button{grid-column:2;grid-row:3;align-self:center;justify-self:start;width:calc(100% - 64px);margin:0;min-height:40px}
  .result-content>.text-button{grid-column:2;grid-row:3;align-self:center;justify-self:end;width:56px;min-height:40px;margin:0}
  .result-content>[data-action="retry-ammo"]{grid-column:1/-1;grid-row:4;margin:0;min-height:36px}
}

/* Account coaching fits the existing shop and top draw gauge. */
.coach-shop-grid{grid-template-columns:minmax(0,1fr);max-width:440px;margin-inline:auto}.coach-shop-grid .item-art,.coach-shop-grid .item-art canvas{height:130px}.coach-shop-grid .item-card>p{font-size:12px;line-height:1.8}
@media(max-width:480px){.shop-tabs button{padding:8px}.coach-shop-grid .item-art,.coach-shop-grid .item-art canvas{height:115px}.coach-shop-grid .item-card>p{font-size:11px}}

.coach-purchase-note{font-size:10px;line-height:1.7;color:#7b8a70;word-break:keep-all}.coach-shop-grid .item-card>.soft-button{width:100%;font-size:11px;margin-top:8px}

/* A compact comic callout sits below the top HUD, outside the central aiming area. */
.coach-burst{position:absolute;top:50px;right:12px;width:108px;height:82px;z-index:3;pointer-events:none;user-select:none;-webkit-user-select:none;opacity:0;transform:rotate(-4deg) scale(.85);transform-origin:80% 20%}
.coach-burst,.coach-burst *{pointer-events:none}
.coach-burst__art{display:block;width:100%;height:100%;overflow:visible;fill:none;stroke:none}
.coach-burst__copy{position:absolute;inset:23% 16% 20%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#503313;white-space:nowrap;text-align:center}
.coach-burst__label{font-size:9px;line-height:1.05;font-weight:800;letter-spacing:.04em;color:#7d4b19}
.coach-burst__word{font-size:32px;line-height:1.05;font-weight:900;letter-spacing:-.06em;text-shadow:0 1px 0 #fff3c9,1px 2px 0 #d08e36}
.coach-burst.is-ready{opacity:1;transform:rotate(-4deg) scale(1);animation:coach-burst-pop .18s cubic-bezier(.18,.9,.28,1.25) both}
@keyframes coach-burst-pop{0%{opacity:0;transform:rotate(-9deg) scale(.72)}65%{opacity:1;transform:rotate(-2deg) scale(1.06)}100%{opacity:1;transform:rotate(-4deg) scale(1)}}
@media(max-width:480px){
  .coach-burst{top:46px;right:8px;width:94px;height:72px}
  .coach-burst__label{font-size:8px}.coach-burst__word{font-size:29px}
}
@media(max-width:360px){
  .coach-burst{width:82px;height:62px}
  .coach-burst__label{font-size:7.5px}.coach-burst__word{font-size:25px}
}
@media(min-width:600px) and (max-height:600px){
  .coach-burst{top:48px;right:8px;width:86px;height:66px}
  .coach-burst__label{font-size:8px}.coach-burst__word{font-size:26px}
}
@media(max-height:360px){
  .coach-burst{top:6px;right:60px;width:76px;height:58px}
  .coach-burst__label{font-size:7px}.coach-burst__word{font-size:24px}
}
@media(prefers-reduced-motion:reduce){
  .coach-burst,.coach-burst.is-ready{animation:none;transition:none;transform:none}
}

/* The timed event begins on an explicit action; its rewards share one panel. */
.event-ready-content{text-align:center}
.event-ready-summary{display:grid;grid-template-columns:1fr 1fr;gap:14px 10px;margin:22px 0;padding:18px 12px;background:#edf1e7;border-radius:14px}
.event-ready-summary small{display:block;color:#718068;font-size:11px;margin-bottom:6px}
.event-ready-summary strong{font-size:14px}
.event-start-button{width:100%;min-height:54px;margin:12px 0}
.event-ready-actions,.event-reward-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.event-ready-actions>.button,.event-reward-actions>.button{min-height:48px;padding:10px 8px;font-size:12px;line-height:1.5;white-space:normal}
.event-ready-content>.text-button{margin-top:10px}
.event-rewards{margin:14px 0 18px;padding:15px 12px;border:1px solid #dbe4d2;border-radius:14px;background:#f1f4eb}
.event-rewards h3{margin:0 0 8px;font-size:15px}
.event-rewards>p{margin:7px 0 12px;font-size:11px;line-height:1.7;color:#66745d}
.event-rewards>.stabilizer-message{margin:10px 0 0;font-size:10px}
.result-content.event-result{display:block}

/* Leave room for the modal's sticky close control when the shop is scrolled. */
.shop-top{padding-right:52px;gap:10px;flex-wrap:wrap}
.shop-coins{white-space:nowrap}
@media(max-height:500px) and (min-width:600px){
  .event-ready-summary{margin:12px 0;padding:12px;gap:8px}
  .event-start-button{min-height:44px;margin:8px 0}
  .event-rewards{margin:10px 0;padding:10px}
  .event-rewards h3{font-size:13px}.event-rewards>p{margin:5px 0 8px}
  .event-reward-actions>.button{min-height:42px;font-size:11px}
}
.modal[data-view="result"]:has(.game-result-card){padding:0;max-width:430px;background:transparent;border:0;box-shadow:none}
.result-content:has(.game-result-card){padding:0}
.game-result-card .stage-result-actions{margin:0}
.game-result-card .event-rewards{margin:0;padding:10px;font-size:12px}
.game-result-card .event-rewards h3{margin:0 0 5px;font-size:13px}
.game-result-card .event-rewards p{margin:5px 0;font-size:12px;line-height:1.5}
.game-result-card .event-reward-actions{gap:6px}
.game-result-card .event-reward-actions .button{padding:8px;min-height:40px;font-size:12px}
.game-result-card .text-button{margin:0}
.game-result-card .stage-choice{min-height:60px;padding:8px 5px;font-size:13px}
.game-result-card .stage-choice strong{font-size:13px;line-height:1.3}
.game-result-card .stage-choice small{font-size:10px;line-height:1.4;margin-top:4px}
.game-result-card .game-result-extra>.button{width:auto;margin:0;min-height:44px}

/* Trial controls remain outside the aiming area on small phones. */

/* Keep instructions in Help and give the remaining viewport to the range. */
.visually-hidden,.controls>.draw-timing,.control-copy{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.game-card{grid-template-columns:minmax(0,1fr);grid-template-rows:46px auto minmax(0,1fr) auto}
.round-heading,.power-row.bow-power,.gun-reload,.field,.controls{grid-column:1}
.controls{position:relative;grid-row:4;display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:0;overflow:visible;border:0}
.field-top{flex-wrap:nowrap}
.field-top>.field-pill:not(.wind-pill){flex-shrink:0;white-space:nowrap}
.field-top>.wind-pill{min-width:0}
.field-top #windLabel{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.launch-angle-pill{gap:4px;font-variant-numeric:tabular-nums}
.launch-angle-pill>strong{min-width:6.5ch;text-align:right;font-variant-numeric:tabular-nums}
.control-status{position:absolute;left:10px;right:10px;bottom:calc(100% + 52px);height:24px;overflow:visible;pointer-events:none;z-index:3}
.shot-feedback{padding:2px 8px;border-radius:7px;background:#fffdf2e8;box-shadow:0 2px 8px #243d2220}
.shot-feedback.miss,.shot-feedback.gold{background:#fffdf2e8}
.toast{pointer-events:none}
.laser-panel{grid-column:1;min-width:0;margin:0;padding:0 8px;border:0;border-radius:0;background:#eff3e8;box-shadow:none}
.laser-toolbar{height:36px;display:flex;align-items:center;justify-content:flex-end;gap:6px}
.laser-toolbar>button{height:30px;min-height:30px;padding:3px 11px;border:1px solid #bdcbb2;border-radius:6px;background:#fbfcf5;color:#395e37;font-family:inherit;font-size:11px;font-weight:600;line-height:1.3;white-space:nowrap}
.laser-toolbar>button[aria-pressed="true"]{background:#e3edd8;border-color:#9db888}
.laser-toolbar>button[aria-expanded="true"]{border-color:#688655;box-shadow:inset 0 0 0 1px #688655}
.laser-popover{position:fixed;top:70px;right:12px;z-index:25;width:min(420px,calc(100vw - 24px));max-height:calc(100vh - 86px);max-height:calc(100dvh - 86px);overflow-y:auto;overscroll-behavior:contain;padding:14px;border:1px solid #a8bc98;border-radius:14px;background:#f5f7ed;box-shadow:0 12px 38px #243b2950}
.laser-popover[hidden]{display:none}
.laser-popover .laser-panel-heading{margin:0 0 12px;gap:10px}
.laser-popover .laser-panel-heading>div{min-width:0}
.laser-popover .laser-panel-heading strong{font-size:14px}
.laser-popover .laser-panel-heading span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.laser-popover .laser-panel-heading>button{min-width:44px;min-height:36px;flex:none;padding:5px 10px;border:1px solid #bac9ae;border-radius:7px;background:#fffef7;color:#48633b;font-size:11px}
.laser-popover .laser-step-control{margin:0 0 10px}
.laser-popover .laser-step-control button{min-height:34px}
.laser-launch-angle{display:inline-flex;align-items:center;gap:3px;margin-left:auto;font-size:10px;white-space:nowrap}
.laser-launch-angle>strong{font-size:10px;font-weight:700;font-variant-numeric:tabular-nums}
.laser-popover .laser-adjustments{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.laser-popover .laser-axis{grid-template-columns:60px minmax(0,1fr);padding:8px;gap:6px}
.laser-popover .laser-axis-label{font-size:11px}
.laser-popover .laser-axis-label small{display:block;margin-top:3px;font-size:9px;font-weight:400}
.laser-popover .laser-gear{width:60px;height:60px}
.laser-popover .laser-gear-rotor{width:58px;height:58px}
.laser-popover .laser-odometer{font-size:13px;padding:6px 2px}
.laser-value-decimal{flex:0 0 .35em;text-align:center}
.laser-value-unit{flex:none;margin-left:1px;font-size:.85em;align-self:flex-start;line-height:1.3}
.laser-popover-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.laser-popover-actions .text-button{min-height:34px;font-size:11px}
.laser-popover .laser-reset-button{margin:0;min-height:34px}
.laser-popover .laser-note{margin:6px 0 0;font-size:10px;text-align:right}
.app-shell>.save-error{min-height:18px;padding:1px 5px;font-size:10px;color:#926333;background:#fff2d9;border-radius:4px}
@media(max-width:480px){
  .game-card{grid-template-rows:42px auto minmax(0,1fr) auto}
  .launch-angle-pill{gap:3px;padding:5px 6px;font-size:9px}
  .laser-popover{top:56px;right:8px;width:calc(100vw - 16px);max-height:calc(50dvh - 48px);padding:12px}
  .laser-popover .laser-axis{grid-template-columns:52px minmax(0,1fr);padding:6px;gap:5px}
  .laser-popover .laser-gear{width:52px;height:52px}
  .laser-popover .laser-gear-rotor{width:50px;height:50px}
  .laser-popover .laser-odometer{font-size:12px}
}
@media(max-height:600px) and (min-width:600px){
  .game-card{grid-template-rows:38px auto minmax(0,1fr) auto}
  .controls{grid-column:1;grid-row:4;display:grid;padding:0;border:0;overflow:visible}
  .field{grid-column:1;grid-row:3}
  .laser-popover{top:8px;max-height:calc(100dvh - 16px)}
}
@media(orientation:landscape){
  .laser-popover{top:8px;right:8px;width:min(360px,calc(50vw - 24px));max-height:calc(100dvh - 16px);padding:10px}
  .laser-popover .laser-axis{grid-template-columns:48px minmax(0,1fr);padding:6px;gap:5px}
  .laser-popover .laser-gear{width:48px;height:48px}
  .laser-popover .laser-gear-rotor{width:46px;height:46px}
  .laser-popover .laser-odometer{font-size:12px}
}
@media(orientation:landscape) and (max-width:600px){
  .laser-popover .laser-adjustments{grid-template-columns:minmax(0,1fr)}
}

/* Separate equipment, projectiles and optics without hiding purchase controls. */
.shop-layout .item-scope-link{width:100%;min-height:44px;margin-top:8px;padding:8px;font-size:11px}
.shop-layout .projectile-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.shop-layout .projectile-filters button{min-height:44px;font-size:12px}
.shop-scope-panel{padding:18px;border:1px solid var(--line);border-radius:14px;background:#f4f6ec}
.shop-scope-panel>label{display:block;margin-bottom:8px;font-size:13px;font-weight:700}
.shop-scope-panel>select{display:block;width:100%;min-width:0;min-height:46px;padding:10px;border:1px solid #cbd6c0;border-radius:9px;background:var(--paper);color:var(--ink);font:inherit;font-size:13px}
.shop-scope-panel>select:focus-visible{outline:3px solid #ccaa5c;outline-offset:3px}
.shop-scope-hint{font-size:12px;line-height:1.7;color:#687c5b;word-break:keep-all}
.shop-layout .shop-scope-panel .item-scope{margin-top:15px}
.shop-layout .shop-scope-panel .scope-button{min-height:70px}
.shop-layout .shop-scope-panel .scope-button strong{font-size:20px}
.shop-layout .shop-scope-panel .scope-button small{font-size:11px}

.shop-layout .shop-tabs button{font-size:13px}

/* Keep equipment purchases directly below all three round choices. */
.result-content:has(.game-result-card){display:block}
.result-content>.result-shop-button,.game-result-card .game-result-actions>.result-shop-button{display:flex;grid-column:1/-1;align-items:center;justify-content:center;width:100%;min-height:58px;padding:11px 14px;gap:12px;margin:10px 0 0;background:#28543e;border:1px solid #28543e;border-radius:12px;color:#fffdf1;box-shadow:0 3px 10px #214b3220}
.result-shop-button>span{display:flex;flex-direction:column;gap:3px}
.result-shop-button>span>strong{font-size:16px;line-height:1.3}
.result-shop-button>span>small{font-size:11px;font-weight:500;line-height:1.4;color:#e5efdb}
.result-content>.result-shop-button:hover,.game-result-card .game-result-actions>.result-shop-button:hover{background:#1d422e}
.game-result-card .game-result-actions>.result-shop-button{margin:0}
@media(max-height:520px){.game-result-card .game-result-icon{display:none}.result-content>.result-shop-button,.game-result-card .game-result-actions>.result-shop-button{min-height:48px;padding-block:8px}}
@media(max-height:330px) and (min-width:600px){.result-content>.result-shop-button{grid-column:2;grid-row:3;margin:0}.result-content>.text-button{grid-row:4}.result-content>[data-action="retry-ammo"]{grid-row:5}}

.shop-layout .shop-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
.shop-layout .shop-top{padding-right:0}
.shop-coin-panel{padding:18px;border:1px solid var(--line);border-radius:14px;background:#f4f6ec}
.shop-coin-panel h3{margin:0;font-size:18px}.shop-coin-panel>p{margin:8px 0 14px;font-size:13px;color:#59704d}
.shop-zu-balance{text-align:right}
.coin-pack-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.coin-pack-button{min-width:0;min-height:70px;flex-direction:column;gap:5px;padding:9px 5px}
.coin-pack-button strong{font-size:14px;white-space:nowrap}.coin-pack-button small{font-size:11px;color:#657756;white-space:nowrap}
.coin-pack-button[aria-pressed="true"]{background:#dfedce;border-color:#719553;box-shadow:inset 0 0 0 1px #719553}
.coin-exchange-button{width:100%;min-height:52px;margin-top:16px;padding-inline:8px;font-size:13px;white-space:nowrap}
.shop-coin-panel>.coin-exchange-notice{min-height:22px;line-height:1.6;margin:12px 0}
.shop-coin-save-note{font-size:11px;color:#78876c}
@media(max-width:380px){.coin-pack-options{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-coin-panel{padding:14px}.shop-layout .shop-tabs button{font-size:12px}}
/* The ranking shortcut belongs in the stage header, never beside the playfield.
   Re-showing .page-heading on narrow screens squeezes the entire range into a strip. */
.monthly-game-link{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:4px;min-width:44px;min-height:38px;padding:6px 9px;border:1px solid #afc7ae;border-radius:9px;background:#e7f0e3;color:#2c5b40;text-decoration:none;white-space:nowrap;font-size:11px;font-weight:700}
.monthly-game-link:hover{background:#dce9d7}.monthly-game-link:focus-visible{outline:3px solid #ccaa5c;outline-offset:2px}
@media(max-width:380px){.monthly-game-link{padding-inline:6px}.monthly-game-link span{display:none}}
