:root{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#253c36;background:#f7f4ec;font-synthesis:none;--accent:#d87443}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,select{cursor:pointer}button,a,input,select{touch-action:manipulation}button{border:1px solid #dadfd5;border-radius:11px;background:#fffdf7;color:inherit;min-height:40px;padding:8px 12px}button:hover{border-color:#89998a}button:disabled{opacity:.5;cursor:wait}.primary{background:#295b49;color:#fff;border-color:#295b49}a{color:#365e50}#app{width:min(960px,100%);margin:auto;height:100dvh;min-height:540px;padding:16px 24px;display:flex;flex-direction:column;gap:10px}header{display:flex;align-items:center;justify-content:space-between;gap:10px}h1{font-size:clamp(19px,3vw,27px);letter-spacing:-.7px;margin:0}header p{margin:2px 0 0;font-size:12px;color:#768174}.locale{max-width:112px;border:0;background:transparent;padding:6px}.nav{display:flex;gap:6px}.nav button{flex:1;font-size:14px;min-height:39px}.nav button[aria-current=true]{background:#e1e8dc;border-color:#9eaf9b}.meta{display:flex;justify-content:space-between;font-size:12px;color:#6c7a6c;min-height:18px}.dots{display:flex;gap:4px}.dots span{width:25px;height:4px;display:block;background:#d7dcd0;border-radius:3px}.dots .on{background:var(--accent)}.game{display:flex;flex:1;min-height:0;flex-direction:column;gap:9px}.frame{flex:1;min-height:120px;position:relative;display:flex;align-items:center;justify-content:center;background:#ebe6d9;border:1px solid #dfdacd;border-radius:14px;overflow:hidden}.frame img{width:100%;height:100%;object-fit:contain;min-height:0}.frame .img-error{position:absolute;background:#fff9ed;padding:12px;border-radius:10px;max-width:90%}.clue-caption{font-size:13px;line-height:1.3;margin:0;color:#697461}.notice{font-size:13px;min-height:18px;margin:0}.notice:empty{display:none}.input-row{display:flex;gap:7px;position:relative}input{min-width:0;flex:1;width:100%;padding:10px 12px;border:1px solid #ccd4c7;border-radius:10px;background:#fffdf7;min-height:44px}.suggestions{position:absolute;bottom:100%;left:0;right:0;z-index:3;padding:4px;margin:0 0 4px;list-style:none;background:#fffdf7;border:1px solid #c9d1c2;border-radius:12px;box-shadow:0 5px 24px #23332624;max-height:min(260px,42dvh);overflow:auto}.suggestions li button{width:100%;text-align:left;border:0;border-radius:7px;min-height:38px;font-size:14px}.actions{display:flex;gap:6px;align-items:center}.actions>*{flex:1;min-width:0}.actions button{font-size:13px}.quiet{background:transparent;border:0;text-decoration:underline;color:#6c7765}.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.choices button{font-size:13px;line-height:1.2;min-height:42px}.small{font-size:11px;color:#73806e;line-height:1.3}.result{background:#e6ebdf;border-radius:12px;padding:10px 13px;display:flex;flex-direction:column;gap:6px}.result h2{font-size:18px;margin:0}.result-line{display:flex;justify-content:space-between;gap:5px;font-size:12px}.result strong{font-size:22px}.bonus-row{display:flex;gap:5px}.bonus-row select{min-width:0;flex:1;border:1px solid #ccd4c7;background:#fffdf7;border-radius:8px;padding:7px;font-size:13px}.bonus-row button{font-size:12px;padding:5px 7px}.source{font-size:11px;line-height:1.3;margin:0}.source a{overflow-wrap:anywhere}.guide{display:flex;justify-content:space-between;align-items:center;font-size:12px;background:#f0e8d9;padding:7px 9px;border-radius:9px}.guide button{min-height:28px;padding:2px 6px;font-size:11px}.score-panel{flex:1;min-height:0;overflow:auto;padding:12px 0}.score-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.score-card{padding:18px;background:#e6ebdf;border-radius:14px}.score-card strong{display:block;font-size:30px}.score-panel h2{font-size:19px}.score-panel p{font-size:14px;line-height:1.55}.share-output{width:100%;max-height:85px;white-space:pre-wrap;overflow:auto;font-size:11px;margin:0}.daily-intro{margin:auto;max-width:500px;text-align:center}.daily-intro h2{font-size:27px}.daily-intro p{line-height:1.5}.review-select{max-width:100%;font-size:12px;padding:4px}.footer{font-size:10px;display:flex;justify-content:space-between;gap:8px;color:#7c8777;min-height:14px}.footer a{color:inherit}.screen-reader{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}:focus-visible{outline:3px solid #d98a54;outline-offset:2px}@media(max-width:560px){#app{padding:10px 12px calc(8px + env(safe-area-inset-bottom));gap:7px}header p{font-size:11px}.locale{font-size:12px;max-width:96px}.nav button{font-size:12px;padding:5px;min-height:36px}.game{gap:7px}.frame{border-radius:11px}.choices{grid-template-columns:repeat(2,1fr)}.choices button{font-size:12px;min-height:37px;padding:5px}.actions button{font-size:11px;padding:5px;min-height:37px}.result{padding:8px 10px;gap:5px}.result h2{font-size:16px}.result-line{font-size:11px}.result strong{font-size:20px}.bonus-row select{font-size:12px}.footer{font-size:9px}.guide{font-size:11px;padding:5px 7px}.clue-caption{font-size:12px}.notice{font-size:12px}.input-row button{font-size:13px;white-space:nowrap}.score-card{padding:12px}.score-card strong{font-size:24px}}
@media(max-height:650px){#app{gap:5px;padding-top:7px}.guide{display:none}.game{gap:5px}.result{padding:6px 9px}.frame{min-height:75px}header p{display:none}.notice{font-size:11px}.source{font-size:10px}.nav button{min-height:32px}.actions button{min-height:33px}.clue-caption{font-size:11px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .12s,border-color .12s}}
