:root{font-family:Arial,'Yu Gothic',Meiryo,sans-serif;color:#203439;background:#dce2e5;font-synthesis:none}*{box-sizing:border-box}html,body,#app{margin:0;width:100%;height:100%;overflow:hidden}button,select,input,a{font:inherit;-webkit-tap-highlight-color:transparent}button,a,select{touch-action:manipulation}button{cursor:pointer;border:0;color:inherit}button:disabled{cursor:wait;opacity:.45}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #327b7a;outline-offset:4px}[hidden]{display:none!important}#app{position:relative}#scene{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:grab}#scene:active{cursor:grabbing}header{position:absolute;z-index:2;top:0;left:0;width:100%;padding:26px 35px;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}.wordmark{font-size:24px;font-weight:800;letter-spacing:5px;line-height:1}.wordmark span{display:block;letter-spacing:2px;font-size:8px;margin-top:10px;font-weight:500}nav{display:flex;align-items:center;gap:10px;pointer-events:auto}select{font-size:12px;max-width:110px;border:0;background:transparent;color:#29464a;padding:10px 2px}.icon-button{width:35px;height:35px;padding:8px;background:transparent;border-radius:50%}.icon-button:hover{background:#c8d7d7}.icon-button svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#sound[aria-pressed=true]{opacity:.4}#hud{position:absolute;left:50%;top:28px;transform:translateX(-50%);display:flex;gap:18px;align-items:center;font-variant-numeric:tabular-nums;font-size:15px}#clock{min-width:65px;font-weight:700;font-size:22px;text-align:right}#progress{display:flex;gap:3px}#progress i{display:block;width:4px;height:18px;background:#bbc9cb}#progress i.on{background:#286c6c}#intro{position:absolute;left:38px;top:130px;pointer-events:none}.eyebrow{font-size:9px;letter-spacing:2.5px;font-weight:700;color:#587478;margin:0 0 15px}h1{font-size:clamp(28px,3.2vw,49px);font-weight:700;letter-spacing:-2px;line-height:1.15;margin:0 0 14px}#introLine{font-size:13px;line-height:1.7;color:#52686d;margin:0;max-width:350px}footer{position:absolute;bottom:28px;left:38px;right:38px;display:flex;align-items:end;justify-content:space-between;pointer-events:none}footer>*{pointer-events:auto}#itemIndex{font-size:9px;letter-spacing:2px;color:#617b7e}#itemName{font-size:20px;font-weight:500;margin:7px 0 3px}#itemPrice{font-size:13px;color:#6d8284}#productInfo{pointer-events:none}.primary,.secondary{border-radius:4px;padding:16px 25px;font-size:14px;line-height:1.4;font-weight:600}.primary{background:#205b5d;color:#f5f9f4;min-width:185px}.primary:hover{background:#164c50}.primary:active,.secondary:active{transform:translateY(1px)}.secondary{border:1px solid #b2c6c6;background:#eef4ef;color:#295255}#scanState{display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:1px;color:#547377}#scanState i{width:7px;height:7px;border-radius:50%;background:#8daaa4}#scanState.reading i{background:#158e6a}#scanTarget{position:absolute;pointer-events:none;width:120px;height:72px;color:#2ca88b;transform:translate(-50%,-50%)}#scanTarget svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2}#toast{position:absolute;left:50%;bottom:100px;transform:translateX(-50%);font-size:14px;font-weight:600;color:#1d715e;pointer-events:none;white-space:nowrap}#loading{position:absolute;inset:0;z-index:20;background:#e1e7e9;display:flex;flex-direction:column;gap:15px;align-items:center;justify-content:center;letter-spacing:3px;font-size:10px}.loading-mark{display:grid;place-items:center;border:1px solid #537478;width:58px;height:58px;font-family:Georgia,serif;font-size:35px;letter-spacing:0}#reload{padding:12px 20px;background:#215b5d;color:#fff;letter-spacing:0}dialog{color:#244044;background:#f8faf5;border:1px solid #bfcdcb;border-radius:6px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 30px);padding:27px;width:370px}dialog::backdrop{background:#1b313655}dialog h2{font-size:20px;line-height:1.4;margin:4px 0 20px}.dialog-heading{display:flex;align-items:start;justify-content:space-between;gap:15px}.close-button{background:transparent;font-size:27px;line-height:1;padding:0 2px}.setting-row{display:flex;align-items:center;justify-content:space-between;font-size:15px;gap:18px;padding:17px 0;border-top:1px solid #d4dfd9}.setting-row input{accent-color:#286c6c;width:21px;height:21px}#produceNote{font-size:12px;color:#6b8280;line-height:1.7}#pauseDialog{text-align:center}#pauseDialog .primary{width:100%}#panel{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}#panel button{background:#e8eee2;border:1px solid #c5d2c4;padding:14px;font-size:14px}#panel button span{display:block;width:48px;height:48px;border-radius:50%;background:#ab352c;margin:0 auto 10px}#panel button[data-wrong] span{background:#b4bf79}#result{width:385px;padding:25px 26px;text-align:center;border-bottom:5px dotted #b5c5bf}.receipt-top{letter-spacing:3px;font-size:17px;font-weight:700;padding-bottom:17px;border-bottom:1px dashed #b9c8c0}.receipt-top span{display:block;letter-spacing:2px;font-size:8px;margin-top:8px}#result h2{font-weight:400;font-size:17px;margin:23px 0 5px}#resultTime{font-size:47px;font-weight:700;letter-spacing:-1px;font-variant-numeric:tabular-nums}#resultDetail{font-size:12px;color:#6b817b;margin:10px 0 18px}#receiptLines{max-height:150px;overflow:auto;text-align:left;font-size:11px;border-top:1px dashed #bdcbc2;padding-top:10px}#receiptLines>div{display:flex;justify-content:space-between;padding:3px 0}#totalRow{display:flex;justify-content:space-between;border-top:1px dashed #bdcbc2;padding-top:11px;margin:13px 0;font-size:12px}#result button{display:block;width:100%;margin-top:9px;padding:12px}#result img{width:100%;margin-top:15px}#shareHint{font-size:10px;color:#768980;line-height:1.6}#result a{display:block;color:#3d6b61;font-size:11px;padding:6px}#result a[hidden]{display:none}.manual-needed #manual{border-color:#386e60;background:#f0edc8}.failure #toast{color:#b24236}
@media(max-width:700px){header{padding:20px 18px}.wordmark{font-size:20px}.wordmark span{font-size:6px;letter-spacing:1px;margin-top:7px}nav{gap:1px}.icon-button{width:30px;height:32px;padding:7px}select{font-size:10px;width:78px;padding:8px 0}#hud{top:76px;font-size:13px;gap:13px}#clock{font-size:19px;min-width:57px}#progress{gap:2px}#progress i{height:13px;width:3px}#intro{left:22px;top:auto;bottom:134px;max-width:80%}.eyebrow{font-size:7px;letter-spacing:2px;margin-bottom:11px}h1{font-size:32px;letter-spacing:-1px}#introLine{font-size:11px;max-width:260px}footer{left:20px;right:20px;bottom:24px;align-items:center}#productInfo{max-width:48%}#itemName{font-size:15px}#itemIndex{font-size:7px;letter-spacing:1px}#itemPrice{font-size:11px}.primary,.secondary{padding:13px 15px;font-size:12px;min-width:0}#start{width:172px}#scanState{font-size:8px;gap:6px;max-width:45%}#toast{bottom:100px;font-size:12px}#manual{max-width:50%;font-size:10px;padding:12px}dialog{padding:23px}#resultTime{font-size:41px}#result{padding:20px 23px}#receiptLines{max-height:125px}}
@media(max-height:520px) and (orientation:landscape){header{padding:12px 20px}.wordmark span{display:none}.wordmark{font-size:18px}#hud{top:18px}.icon-button{width:28px;height:28px}footer{bottom:14px;left:22px;right:22px}#intro{left:22px;top:78px;bottom:auto}h1{font-size:28px;margin-bottom:7px}#introLine{font-size:10px}.eyebrow{font-size:7px;margin-bottom:8px}#itemName{font-size:15px;margin:3px 0}#toast{bottom:70px}dialog{max-height:calc(100dvh - 18px)}#result{width:460px}#receiptLines{display:none}#resultTime{font-size:33px}#result h2{margin:12px 0 0}#resultDetail{margin:5px 0 8px}#result button{padding:8px;margin-top:6px}.receipt-top{font-size:13px;padding-bottom:9px}.receipt-top span{display:none}#totalRow{padding-top:8px;margin:7px 0}#shareHint{margin:7px 0}#result a{padding:3px}}
#result .text-button{font-size:10px;padding:5px;background:transparent;color:#66837d;font-weight:400}
@media(max-width:700px) and (orientation:portrait){#intro{max-width:calc(100% - 44px)}h1{font-size:28px}}
@media(max-width:700px) and (max-height:760px) and (orientation:portrait){#intro{bottom:95px}h1{font-size:26px}}
@media(max-width:700px) and (max-height:520px) and (orientation:landscape){#hud{left:45%}#intro{max-width:190px}h1{font-size:23px}}

@media(max-width:700px) and (max-height:520px) and (orientation:landscape){#productInfo{background:#dce2e5;padding:5px 8px;margin-left:-8px;border-radius:2px}}
#score{font-size:24px;font-weight:700;min-width:92px}#count{font-size:11px;white-space:nowrap;color:#526e6c}#progress{width:88px;height:4px;background:#b7c7c8;overflow:hidden}#progress i{display:block;width:100%;height:100%;background:#327b74;transform-origin:left;transition:background .2s}body.urgent #progress i{background:#bb5a3e}body.urgent #clock{color:#a84c37}#bestResult{font-size:11px;color:#527a68;margin:4px 0 12px}#resultTime{font-size:45px}#result.new-best #bestResult{color:#9b7130;font-weight:700}body.paused #scene{visibility:hidden}#progress{gap:0}#resultDetail{line-height:1.6}
@media(max-width:700px){#hud{gap:12px;width:calc(100% - 44px);justify-content:center}#score{font-size:22px;min-width:87px}#progress{width:65px;height:4px}#clock{min-width:48px}}
@media(max-width:700px) and (max-height:520px) and (orientation:landscape){#hud{width:auto;left:47%;gap:10px}#score{font-size:17px;min-width:60px}#count{font-size:9px}#progress{width:35px}#clock{font-size:17px;min-width:42px}}
#scene:focus{outline:none}
#queueMonitor{position:absolute;z-index:2;border:5px solid #3f4a49;border-radius:8px;pointer-events:none;box-shadow:0 3px 10px #20323522;overflow:hidden}#queueMonitor::after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(transparent 0 3px,#243d3e10 3px 4px)}#queueMonitor i{position:absolute;z-index:1;right:6px;top:5px;width:4px;height:4px;border-radius:50%;background:#c76651}
@media(max-width:700px){#storyThought{left:auto!important;right:14px;top:116px!important;width:calc(100% - 155px)!important;max-width:none!important;transform:none!important;font-size:13px!important}}
@media(max-width:700px) and (min-height:761px) and (orientation:portrait){#intro{bottom:105px}}
#intro h1{text-shadow:0 0 10px #dce2e5,0 1px #dce2e5}

/* Inner thoughts occupy the quiet space below the clock, never the item. */
#introLine{white-space:pre-line;max-width:395px;font-size:13px}#storyShade{position:absolute;inset:0;pointer-events:none;z-index:1;background:radial-gradient(ellipse at center,transparent 47%,rgba(20,29,33,.10) 100%);opacity:0;transition:opacity .6s}body.story-worry #storyShade{opacity:1}#storyThought{position:absolute;z-index:3;top:58px;left:50%;transform:translateX(-50%);max-width:calc(100% - 36px);margin:0;text-align:center;font-size:16px;line-height:1.5;color:#fff;text-shadow:0 1px 4px #152d34,0 0 8px #152d34;pointer-events:none}#storyCoda{position:absolute;z-index:4;inset:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding:30px 24px;background:linear-gradient(transparent 60%,rgba(220,226,229,.95));cursor:pointer}#storyCodaLine{font-size:17px;line-height:1.7;max-width:650px;text-align:center;margin:0 0 17px;text-wrap:balance}#storySkip{font-size:12px;padding:10px 23px;background:#eef4efdb}#storyResult{font-size:18px;line-height:1.6;margin:15px 0 5px}#storyAfterword{font-size:12px;line-height:1.6;color:#61766f;margin:0 0 13px}html[lang=ko] #introLine,html[lang=ko] #storyThought,html[lang=ko] #storyCodaLine,html[lang=ko] #storyResult,html[lang=ko] #storyAfterword{word-break:keep-all}#result h2{font-size:14px;margin-top:16px}
@media(max-width:700px){#introLine{font-size:12px;line-height:1.65;max-width:345px}#storyThought{top:109px;width:calc(100% - 36px);font-size:15px}#storyCodaLine{font-size:16px;max-width:345px}#storyResult{font-size:17px}#storyAfterword{font-size:11px}#result{max-height:calc(100dvh - 24px)}}
@media(max-width:700px) and (max-height:520px) and (orientation:landscape){#storyThought{top:46px;font-size:14px}#introLine{font-size:11px}#intro{max-width:250px}#storyCoda{padding:12px 25px}#storyCodaLine{font-size:14px;max-width:650px;margin-bottom:6px}#storyResult{margin:7px 0 2px;font-size:15px}#storyAfterword{margin-bottom:5px;font-size:10px}}
@media(prefers-reduced-motion:reduce){#storyShade{transition:none}}
