/* One clear visual language. Detail is available when the player asks for it. */
.polished{--panel:#fcf8ee;--panel2:#eee8da;--ink:#394739;--soft:#77816d;--green:#90a67a;--green2:#546d49;--shadow:0 8px 30px #2c382019;font-family:Verdana,sans-serif;}
body{background:#d8d6c6;}
.polished#wrap{width:100vw;height:100dvh;aspect-ratio:auto;}
.polished canvas,.polished .overlay,.polished #sensoryVeil{border-radius:0;}
.polished #hud{left:28px;right:auto;top:26px;z-index:12;}
.polished .hudBox::before{display:none;}
.polished #spoonsBox{padding:10px 14px;border:1px solid #fff7e4b3;background:#fbf7eadd;border-radius:30px;box-shadow:0 3px 12px #39452e0d;animation:none;}
.polished #spoons{flex-direction:row;align-items:center;gap:10px;}
.polished #spoons .spNum{font-size:11px;font-weight:normal;}
.polished #spoons .spGauge .spSeg{width:4px;height:11px;border-radius:3px;box-shadow:none;transform:none;}
.polished #energyLabel,.polished #statusIcons,.polished #objBox,.polished #keysHint,.polished #btnRow{display:none!important;}
#gameChrome{position:absolute;inset:24px 28px auto 210px;display:flex;align-items:center;justify-content:space-between;gap:20px;z-index:13;pointer-events:none;}
#locationName{font-size:12px;letter-spacing:.03em;color:#435039;background:#fcf8eeae;padding:9px 13px;border-radius:22px;}
#gameMenu{pointer-events:auto;border:1px solid #fff7e4b3;border-radius:28px;background:#fcf8eee8;color:#42543b;min-height:44px;padding:0 18px;font:600 12px Verdana,sans-serif;cursor:pointer;box-shadow:0 3px 12px #39452e0d;}
#gameMenu span{font-size:16px;padding-right:7px;}
.polished:not(.inGame) #hud,.polished:not(.inGame) #gameChrome,.polished:not(.inGame) #touchUI,.polished:not(.inGame) #hint{display:none!important;}
.polished.menuActive #gameChrome,.polished.menuActive #hud,.polished.menuActive #touchUI,.polished.menuActive #toasts,.polished.menuActive #hint{visibility:hidden;}
.polished #viewToggle{display:none;}
.polished #panelCard #viewToggle{position:static;display:inline-block;margin:8px 0;min-height:44px;}
.polished #viewStatus{bottom:24px;right:28px;top:auto;border-radius:18px;font-size:11px;background:#fcf8eedd;}
.polished #hint{bottom:24px;background:#fcf8eef0;color:#435039;box-shadow:0 3px 12px #39452e16;border:1px solid #fff7e4;max-width:min(560px,80%);font-size:12px;padding:10px 20px;border-radius:24px;}
.polished #toasts{bottom:76px;max-width:420px;width:80%;pointer-events:none;}
.polished .toast{background:#fcf8eef0;color:#435039;border:1px solid #fff7e4;font-size:12px;line-height:1.5;border-radius:18px;box-shadow:0 4px 18px #39452e12;padding:12px 18px;}
.polished .toast .tIco{display:none;}
.polished .overlay{background:#35432b60;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);}
.polished .card{background:#fcf8eef5;color:#394739;border:1px solid #fffdf7;border-radius:26px;box-shadow:0 22px 80px #17251125;padding:34px;max-width:680px;max-height:85dvh;text-align:left;line-height:1.6;}
.polished .card p{font-size:14px;line-height:1.65;}
.polished .card h1{font-family:Georgia,serif;font-size:32px;font-weight:normal;letter-spacing:-.7px;line-height:1.2;}
.polished .card h2{font-size:18px;font-weight:normal;line-height:1.4;margin-top:24px;}
.polished .card button{border:1px solid #dedecf;box-shadow:none;border-radius:13px;background:#edf0e3;color:#42563a;font-size:13px;min-height:44px;padding:11px 18px;}
.polished .card button.ghost{background:transparent;border-color:transparent;color:#69765f;}
.polished .card button:hover{background:#e4ead8;transform:none;}
.polished .card button.primaryAction{background:#61774f;color:#fffaf0;border-color:#61774f;}
.polished button:focus-visible,.polished select:focus-visible,.polished summary:focus-visible{outline:3px solid #59704a;outline-offset:4px;}
.polished .titleEyebrow{font-size:10px!important;letter-spacing:.19em;color:#7a876e;margin-bottom:14px;}
.polished #ovIntro{justify-content:flex-start;background:linear-gradient(90deg,#e7e3d5ed 0%,#e7e3d5dc 32%,#dbe0ca16 85%);backdrop-filter:none;-webkit-backdrop-filter:none;}
.polished #introCard{margin-left:8vw;width:480px;background:transparent;border:none;box-shadow:none;padding:30px 10px;max-height:94dvh;}
.polished #introCard h1{font-size:64px;letter-spacing:-3px;line-height:1.05;margin:18px 0 24px;}
.polished #introCard h1 span{display:block;font-family:Verdana,sans-serif;font-size:15px;letter-spacing:0;line-height:1.7;margin-top:20px;}
.polished .titleStory{color:#718064;margin-bottom:26px;}
.titleActions{display:flex;flex-direction:column;align-items:flex-start;gap:9px;}
.polished .titleActions button{min-width:230px;text-align:left;display:flex;justify-content:space-between;gap:30px;font-size:14px;padding:15px 21px;}
.titleSound{display:flex;gap:9px;align-items:center;font-size:12px;margin:23px 0;color:#617156;}
.titleSound input{accent-color:#61774f;}
.titleDetails{font-size:12px;color:#617156;max-width:380px;margin:12px 0;}
.titleDetails summary,.menuMore summary{cursor:pointer;padding:9px 0;}
.polished .titleDetails input[type=text]{width:130px;border:1px solid #cbd0bc;border-radius:8px;background:#fff9;padding:8px;}
.polished .titleDetails .opt{font-size:12px;}
.polished .saveSlots{display:flex;flex-wrap:wrap;gap:4px;}
.polished .saveSlots button{font-size:10px;padding:6px;min-height:38px;}
.polished .titleFoot{font-size:10px!important;line-height:1.7;color:#7b866f;margin-top:26px;}
.pauseHeader h1{margin-bottom:9px;}
.nextStep{background:#eef0e5;border-radius:15px;padding:15px 19px;margin:22px 0;}
.nextStep span{color:#7a876e;font-size:10px;letter-spacing:.1em;text-transform:uppercase;}
.nextStep p{margin:6px 0 0!important;}
.polished .resumeGame{width:100%;display:flex;justify-content:space-between;text-align:left;}
.menuGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0;}
.polished .menuGrid button{text-align:left;background:#f3f2e9;}
.menuGrid button span{display:inline-block;width:24px;font-size:18px;}
.careActions{display:flex;gap:10px;margin:18px 0;}
.polished .careActions button{font-size:12px;flex:1;background:#e9eddf;border:0;}
.menuMore{font-size:12px;color:#6e7c63;border-top:1px solid #e2e4d6;padding-top:5px;}
.polished .menuMore p{font-size:12px;}
.polished .quitGame{font-size:11px;margin-top:15px;padding-left:0;}
.panelToolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px;}
.panelToolbar select{min-height:44px;max-width:70%;border:1px solid #d7ddca;background:#f5f5eb;color:#4a5a40;border-radius:12px;padding:8px;font:13px Verdana,sans-serif;}
#panelTabs[hidden]{display:none!important;}
.noticeHistory p{padding:15px 0;border-bottom:1px solid #e2e5d9;}
.polished #panelClose{background:#fcf8ee;color:#435039;box-shadow:none;right:24px;top:22px;border:1px solid #e2e4d6;z-index:100;}
.polished #dlg{width:min(760px,90%);padding:25px 30px;background:#fcf8eef8;border:1px solid #fffdf7;border-radius:24px;box-shadow:0 16px 45px #26352028;bottom:25px;animation:none;}
.polished #dlgName{background:none;padding:0;border:none;box-shadow:none;color:#647c51;font-size:14px;}
.polished #dlgText{font-size:16px;line-height:1.75;}
.polished #dlgChoices{display:grid;gap:8px;margin-top:18px;}
.polished #dlgChoices button{text-align:left;background:#edf0e5;color:#40523a;border:1px solid #dce2ce;border-radius:12px;padding:13px 16px;line-height:1.6;font-size:14px;box-shadow:none;}
.polished #dlgNext{font-size:10px;color:#929c88;margin-top:13px;}
.polished #dlgFace{box-shadow:none;background:#e9eddf;border-radius:14px;width:52px;height:52px;}
.polished #joy{width:112px;height:112px;border:1px solid #fffae68c;background:#fcf8ee20;box-shadow:none;bottom:25px;left:22px;}
.polished #joyKnob{width:40px;height:40px;left:35px;top:35px;background:#fcf8eeba;box-shadow:0 3px 9px #35452b15;}
.polished #btnA{width:66px;height:66px;right:28px;bottom:48px;border:1px solid #fff7e47a;box-shadow:0 4px 16px #35452b16;background:#708760e6;font:17px Verdana,sans-serif;animation:none;}
.polished #btnA:not(.ready){opacity:.25;}
.polished.detailHud #objBox,.polished.detailHud #hudEnv,.polished.detailHud #statusIcons,.polished.detailHud #energyLabel{display:block!important;}
.polished.detailHud #objBox{position:absolute;top:55px;left:0;width:300px;max-width:70vw;font-size:11px;}
.polished.detailHud #btnRow{display:flex!important;}
.polished.hiContrast .card,.polished.hiContrast #dlg,.polished.hiContrast #hint,.polished.hiContrast .hudBox{background:#fffdf5;color:#263321;border:2px solid #455c38;}
.polished.hiContrast .muted,.polished.hiContrast .titleStory,.polished.hiContrast .titleFoot{color:#425339;}
.polished.fontL #dlgText{font-size:19px;}.polished.fontXL #dlgText{font-size:22px;}
.polished.fontL #hint{font-size:16px;}.polished.fontXL #hint{font-size:17px;}
.polished.reduceMotion *{animation:none!important;transition:none!important;}
@media(max-width:760px){
 .polished #hud{top:calc(16px + env(safe-area-inset-top));left:16px;}
 .polished #spoonsBox{padding:10px;}
 .polished #spoons{gap:6px;}.polished #spoons .spNum{font-size:10px;}
 .polished #spoons .spGauge .spSeg{width:3px;height:9px;}
 #gameChrome{top:calc(14px + env(safe-area-inset-top));left:178px;right:16px;gap:8px;}
 #locationName{font-size:10px;background:#fcf8eef0;padding:6px 8px;max-width:calc(100% - 78px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}
 #gameMenu{min-height:42px;padding:0 13px;font-size:11px;}#gameMenu span{padding-right:3px;font-size:13px;}
 .polished #introCard{margin:auto;padding:25px;width:92%;background:#edeadbef;border-radius:25px;max-height:88dvh;}
 .polished #introCard h1{font-size:46px;letter-spacing:-2px;}
 .polished #ovIntro{background:#b8c4a744;justify-content:center;}
 .polished .titleStory{font-size:12px;}
 .polished .card{padding:25px;width:92%;max-height:84dvh;border-radius:22px;}
 .polished .card h1{font-size:28px;}
 .polished #panelClose{right:10px;top:8px;min-height:40px;}
 .polished #hint{bottom:calc(135px + env(safe-area-inset-bottom));font-size:11px;max-width:75%;padding:9px 15px;}
 .polished #toasts{bottom:calc(185px + env(safe-area-inset-bottom));max-width:85%;}
 .polished #dlg{bottom:calc(15px + env(safe-area-inset-bottom));padding:20px;width:94%;max-height:80dvh;overflow:auto;}
 .polished #dlgText{font-size:14px;line-height:1.65;}
 .polished #dlgChoices button{font-size:13px;padding:11px 13px;}
 .polished #viewStatus{bottom:160px;right:18px;max-width:75%;}
}

.polished .toast{text-shadow:none;}
.polished.touchBig #joy{width:156px;height:156px;}
.polished.touchBig #joyKnob{width:56px;height:56px;left:49px;top:49px;}
.polished.touchBig #btnA{width:88px;height:88px;font-size:22px;}
.polished.fontL .card p{font-size:16px;}
.polished.fontXL .card p{font-size:18px;}

/* Compact welcome; primary actions stay above optional details. */
.polished #introCard h1{font-size:clamp(32px,7vw,56px);margin:12px 0 18px;}
.polished #introCard h1 span{margin-top:10px;}
.polished .titleStory{margin-bottom:18px;}
.polished .titleSound{margin:15px 0 8px;}
.polished .titleFoot{margin-top:14px;}
.polished .titleDetails{margin:4px 0;}
.polished .titleDetails select{min-height:44px;max-width:65%;}
.polished .titleDetails summary{min-height:44px;box-sizing:border-box;}
.polished .menuGrid{grid-template-columns:repeat(3,minmax(0,1fr));}
.polished .menuGrid button{padding:11px 8px;text-align:center;}
.polished .menuGrid button span{display:none;}
.polished #btnA{font-size:14px;}
@media(max-width:760px){
 .polished #introCard{box-sizing:border-box;padding:22px;}
 .polished #introCard h1{font-size:38px;}
 .polished .titleActions button{min-width:0;width:100%;}
 .polished .titleActions{align-items:stretch;}
}
@media(max-height:500px){
 .polished #introCard{padding:12px 22px;}
 .polished #introCard h1{font-size:32px;margin:8px 0;}
 .polished #introCard .titleEyebrow,.polished #introCard h1 span{display:none;}
 .polished #introCard .titleStory{margin:6px 0 10px;}
}
