:root{--paper:#faf4e8;--jade:#2b665b;--ink:#2c4036;--line:#d8d4c4;--peach:#e9b199;--gold:#b28d43;--ease:cubic-bezier(.23,1,.32,1);font-family:'Avenir Next','Segoe UI',system-ui,sans-serif;color:var(--ink);background:#f3ecde;font-size:16px;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input{font:inherit;color:inherit}button{cursor:pointer;background:none;border:0;min-height:44px;touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--gold);outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2{font-family:Georgia,serif;font-weight:400;letter-spacing:-.04em}p{line-height:1.65}button:disabled{opacity:.5;cursor:default}.game-shell{height:100svh;display:grid;grid-template-rows:66px minmax(0,1fr) 39px}header{display:flex;justify-content:space-between;align-items:center;padding:0 28px;border-bottom:1px solid var(--line);background:var(--paper);z-index:5}.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:21px;letter-spacing:-.05em}.brand>span{color:var(--gold);font-size:29px}nav{display:flex;align-items:center;gap:12px}.text-button{font-size:13px;padding:8px 10px}.icon-button{border:1px solid var(--line);border-radius:22px;padding:8px 15px;font-size:13px}.lang{display:flex;background:#eee9da;border-radius:22px;padding:2px}.lang button{min-width:44px;min-height:40px;border-radius:20px;font-size:12px;font-weight:700}.lang button[aria-pressed=true]{background:var(--jade);color:white}main{display:grid;grid-template-columns:minmax(0,1fr) 310px;min-height:0}#world-wrap{position:relative;min-width:0;overflow:hidden;isolation:isolate}#world{height:100%;width:100%}#world canvas{display:block;width:100%;height:100%;touch-action:none}#world-labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}.world-tag{position:absolute;left:0;top:0;pointer-events:auto;display:flex;align-items:center;gap:6px;min-height:36px;background:#fffaebee;border:1px solid #c8bd9c;border-radius:22px;padding:5px 11px 5px 6px;box-shadow:0 2px 8px #4d4f3120;white-space:nowrap}.world-tag>span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--jade);color:white;font-size:17px}.world-tag small{font-size:12px}#character-bar{position:absolute;left:20px;bottom:18px;display:flex;align-items:center;gap:5px;background:#fcf7eceb;border:1px solid #d1ccba;padding:5px;border-radius:32px;max-width:calc(100% - 40px);flex-wrap:wrap}.character{display:flex;align-items:center;gap:7px;border-radius:24px;padding:6px 14px 6px 8px;font-size:13px;min-height:43px}.character.selected{background:var(--jade);color:white}.bean-icon{display:block;width:24px;height:29px;border-radius:48% 48% 42% 42%;background:linear-gradient(125deg,#b8e9db,#68bba8);box-shadow:inset -3px -3px 5px #447a5b20;position:relative}.bean-icon:after{content:'••';position:absolute;top:4px;left:5px;letter-spacing:4px;color:#243d33;font-size:11px}.bean-icon.mo{background:linear-gradient(125deg,#ffdec5,#e9a77e)}.inventory{font-size:12px;padding:4px 9px;color:#687060}#world-status{position:absolute;top:15px;left:20px;right:20px;font-size:13px;color:#734a31;background:#fff9eaec;border-radius:12px;padding:0 8px}#world-status:empty{display:none}#loading{position:absolute;inset:0;display:grid;place-content:center;gap:15px;text-align:center;padding:35px;background:var(--paper)}#loading[hidden]{display:none}aside{background:var(--paper);border-left:1px solid var(--line);padding:25px 23px;overflow-y:auto;overscroll-behavior:contain}.chapter-track{display:flex;gap:7px;margin-bottom:20px}.chapter-track span{width:26px;height:6px;background:#dedaca;border-radius:6px;font-size:0}.chapter-track .current{background:var(--gold)}.chapter-track .done{background:var(--jade)}.chapter-label{font-size:12px;color:#797a67}aside h1{font-size:35px;line-height:1.15;margin:8px 0 23px}.objective{display:flex;align-items:flex-start;gap:9px;border-top:1px solid var(--line);padding-top:19px}.objective h2{font:650 16px/1.5 'Avenir Next','Segoe UI',system-ui,sans-serif;letter-spacing:0}.objective-dot{width:7px;height:7px;flex:none;margin-top:9px;border-radius:50%;background:var(--gold)}.object-actions{display:flex;flex-direction:column;gap:7px;margin:16px 0 22px}.object-button{border:1px solid #c3d0bd;border-radius:12px;padding:11px 13px;background:#fefbf4;text-align:left;font-size:14px;min-height:47px;transition:background .16s var(--ease)}.object-button:hover{background:#e7eee0}.speech{padding:16px 0 0;border-top:1px solid var(--line);font-size:14px}.speech .speaker{display:block;color:var(--jade);font-weight:750;margin-bottom:7px}.speech.refusal{border-top-color:var(--gold)}.votes{display:flex;justify-content:space-between;margin:15px 0;font-size:13px}.votes b{color:var(--jade);font-weight:500}.result{font-size:14px;margin:18px 0}.primary,.secondary{display:block;width:100%;border-radius:24px;min-height:47px;padding:12px 21px;font-size:14px;font-weight:650;margin-top:15px;background:var(--jade);color:white}.secondary{border:1px solid #a9baa6;background:none;color:var(--jade)}footer{display:flex;align-items:center;justify-content:space-between;padding:0 27px;border-top:1px solid var(--line);background:var(--paper);font-size:11px;color:#737665}footer button{font-size:11px;min-height:35px}dialog{color:var(--ink);background:var(--paper);border:1px solid #d0c7ad;border-radius:24px;box-shadow:0 25px 100px #233a3340;padding:30px;max-width:530px;width:calc(100% - 30px);max-height:90svh;overflow-y:auto}dialog::backdrop{background:#2b42375c;backdrop-filter:blur(5px)}dialog h2{font-size:31px;margin:5px 40px 20px 0}dialog p{font-size:15px}dialog .dialog-close{position:absolute;right:16px;top:14px;padding:8px 12px;font-size:12px}#menu{max-width:440px;text-align:center;padding:26px 32px}#menu .menu-art{width:175px;height:175px;object-fit:cover;border-radius:50%;mix-blend-mode:multiply}#menu .menu-brand{font-size:13px;color:var(--jade);font-weight:750;margin:5px 0}#menu h1{font-size:47px;margin-bottom:15px}#menu p{font-size:15px}fieldset{border:0;padding:0;margin:23px 0 5px}legend{font-size:12px;color:#6b7565;width:100%;margin-bottom:8px}fieldset label{display:inline-block;margin:3px}fieldset input{position:absolute;opacity:0;width:1px;height:1px}fieldset span{display:block;border:1px solid #cdd0be;border-radius:24px;padding:10px 14px;font-size:13px}fieldset input:checked+span{border-color:var(--jade);background:#e0eadb;color:var(--jade);font-weight:650}fieldset input:focus-visible+span{outline:3px solid var(--gold)}.menu-buttons{margin-top:17px}#menu .primary{margin-top:10px}.cookie-dial{width:155px;height:155px;margin:20px auto;border:12px solid #eee3ca;border-radius:50%;background:conic-gradient(from -90deg,#76beae 0 var(--ratio),#f0bc9c var(--ratio) 100%);position:relative;box-shadow:0 3px 12px #5b493020}.cookie-dial:after{content:'🍪';font-size:62px;position:absolute;inset:0;display:grid;place-items:center}.split-labels{display:flex;justify-content:space-between;font-size:13px;margin:20px 0 10px}.split-labels output{font-weight:750}input[type=range]{width:100%;accent-color:var(--jade);min-height:44px}.pear-option{padding-top:15px}.tokens{display:flex;gap:9px;margin:18px 0}.token{flex:1;min-height:48px;border-radius:15px;border:2px solid transparent;font-size:13px;padding:10px}.token.shared{background:#d1e6dc}.token.own{background:#f4d7bf}.token[aria-pressed=true]{border-color:var(--jade)}.calendar-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.slot{border:1px solid #c9cfbc;border-radius:14px;min-height:124px;padding:12px;text-align:left;display:flex;flex-direction:column;gap:5px}.slot strong{font-size:14px}.slot small{font-size:11px;color:#75806e}.slot-content{display:flex;gap:4px;flex-wrap:wrap;margin-top:6px}.slot i{font-size:10px;line-height:1.5;font-style:normal;padding:3px 5px;border-radius:6px;background:#d1e6dc}.slot i.own{background:#f4d7bf}.time-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.time-options button{border:1px solid #bdc9b6;border-radius:14px;padding:15px 10px;font-size:14px}.time-options button[aria-pressed=true]{background:var(--jade);color:white}.setting{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:15px 0;font-size:15px}.setting input{width:22px;height:22px;accent-color:var(--jade)}.note{padding:17px 0;border-bottom:1px solid var(--line)}.note span{font-size:11px;color:#777b68}.note h3{font-size:17px;margin:7px 0}.note p{font-size:14px}.large{font-size:19px}.large .speech,.large .object-button,.large dialog p{font-size:18px}#diagnostics{position:fixed;left:6px;top:70px;background:#193d30dd;color:white;font:11px monospace;padding:6px;z-index:10}.collapsed>*:not(h1):not(.chapter-track){display:none}
@media(max-width:1000px){header{padding:0 18px}nav{gap:5px}main{grid-template-columns:minmax(0,1fr) 275px}aside{padding:20px 18px}aside h1{font-size:30px}.text-button{font-size:12px;padding:7px}}
@media(max-width:700px){.game-shell{height:auto;min-height:100svh;grid-template-rows:60px 1fr 40px}header{padding:0 14px}.brand{font-size:19px;gap:6px}.brand>span{font-size:25px}nav{gap:3px}nav .text-button{font-size:0;width:38px;padding:5px}nav .text-button:first-child:before{content:'▤';font-size:24px}nav .text-button:nth-child(2):before{content:'?';font-size:20px}.icon-button{font-size:0;width:36px;padding:5px;border:0}.icon-button:before{content:'Ⅱ';font-size:20px}.lang button{min-width:36px;min-height:40px}main{display:flex;flex-direction:column}#world-wrap{height:58svh;min-height:390px;width:100%}aside{border-left:0;border-top:1px solid var(--line);overflow:visible;padding:20px}.chapter-track{margin-bottom:11px}.chapter-label{font-size:11px}aside h1{font-size:30px;margin:6px 0 15px}.objective{padding-top:13px}.objective h2{font-size:15px}.object-actions{flex-direction:row;flex-wrap:wrap;margin:13px 0 17px}.object-button{flex:1;min-width:125px;font-size:13px}.speech{padding-top:13px;font-size:15px}#character-bar{left:12px;bottom:12px;max-width:calc(100% - 24px);border-radius:24px;padding:4px;gap:0}.character{padding:5px 10px 5px 5px;font-size:12px}.inventory{font-size:10px;padding:4px 6px}.world-tag{padding:4px 7px 4px 4px;gap:3px;min-height:34px}.world-tag small{font-size:10px}.world-tag>span{width:22px;height:22px;font-size:16px}footer{padding:0 18px}#menu{padding:23px;max-height:92svh}#menu .menu-art{width:135px;height:135px}#menu h1{font-size:40px}.tokens{gap:6px}dialog{padding:25px}.calendar-grid{gap:7px}.slot{padding:10px}.time-options button{font-size:13px}}
@media(max-width:370px){.brand>span{display:none}.lang button{min-width:32px}.inventory{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
.world-tag[data-go^="stone"] small,.world-tag[data-go^="cup"] small{display:none}
.world-tag[data-go^="stone"],.world-tag[data-go^="cup"]{padding:5px;min-width:38px;justify-content:center}
.menu-languages{position:absolute;top:10px;right:12px}.menu-languages .lang button{min-width:38px;min-height:36px}
footer button{min-height:44px}.game-shell{grid-template-rows:66px minmax(0,1fr) 44px}
@media(max-width:700px){.game-shell{grid-template-rows:66px 1fr 44px}.brand>span{display:none}.brand{font-size:18px}nav .text-button,.icon-button{width:44px;min-width:44px;min-height:44px}.lang button{min-width:44px;min-height:44px}}
.menu-languages .lang button{min-width:44px;min-height:44px}
#menu .menu-controls{font-size:12px;color:#627363;line-height:1.6;margin-top:12px}#world canvas{cursor:crosshair}
