#woodPanel{position:fixed;z-index:28;right:18px;bottom:20px;width:min(350px,calc(100vw - 24px));padding:16px 18px;background:linear-gradient(140deg,#30473a,#243a32);border:1px solid #b4a16d;border-radius:17px;box-shadow:0 12px 35px #0004;color:#f0dfba}#woodPanel[hidden]{display:none}#woodPanel .wood-heading{display:flex;justify-content:space-between;align-items:center}#woodTitle{font:24px KaiTi,serif;margin:4px 0}.wood-heading small{font-size:11px;color:#c3c5a1}.wood-heading button{font-size:24px;border:0;color:inherit;padding:0 6px}#woodCanvas{display:block;width:100%;height:105px;background:transparent;border:0;touch-action:none}#woodPanel progress{display:block;width:100%;height:7px;accent-color:#d0ad64;margin:9px 0}#woodStatus{font-size:13px;min-height:20px;line-height:1.5;margin:4px 0}#woodHold,#woodThrow,#woodAgain{width:100%;padding:12px;border-radius:10px;font-size:15px;touch-action:none;user-select:none;-webkit-user-select:none;background:#bba36d;color:#20372a;border:1px solid #e0c989}#woodHold:active{background:#d5bd82}#woodThrow[hidden],#woodAgain[hidden],#woodHold[hidden]{display:none}#woodPanel>small{display:block;font-size:10px;color:#b7c4ad;margin-top:7px}.wood-audio{display:flex;align-items:center;font-size:11px;gap:5px;margin-top:8px}.wood-audio input{accent-color:#c7ae76}.hearth-heat{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:5px 12px;margin:5px 0 12px;font-size:11px;color:#c3c6a9}.hearth-heat strong{color:#e5bc72;font-weight:500;margin-left:7px}.hearth-heat meter{width:100%;height:9px}.hearth-heat small{grid-column:1/-1;font-size:10px}.wood-open #restPanel{max-height:160px}.wood-open #restPanel>:not(.rest-heading):not(.hearth-heat){display:none!important}.wood-open .hearth-heat{display:grid!important}.wood-open #restPanel{left:18px;transform:none;width:340px}.wood-open #restFold{display:none}@media(max-width:700px){#woodPanel{right:12px;bottom:max(12px,env(safe-area-inset-bottom));padding:12px 15px;width:calc(100vw - 24px)}#woodCanvas{height:90px}#woodTitle{font-size:21px}.wood-open #restPanel{display:none!important}.wood-open #chatPanel{max-width:190px}.wood-open #menuToggle{z-index:24}#woodPanel>small{font-size:11px}}

/* Keep the character and the fire in view; detailed controls live beside the scene. */
#restQuickWood{display:none;color:#283b2d!important;background:#c5ab70!important;border-color:#e4ce95!important;font-weight:bold;white-space:nowrap}.rest-folded #restQuickWood{display:block}#restAdd.wood-primary{background:#bda46d;color:#263a2c;border-color:#e1cc92;font-weight:bold}.rest-folded #restPanel{width:min(590px,calc(100vw - 28px));max-height:85px;padding:10px 14px}.rest-folded .rest-heading{gap:6px}.rest-folded .rest-heading>div{margin-right:auto}.rest-folded .rest-heading h2{font-size:18px}.rest-folded #restFold{margin-left:0}body.wood-open #restPanel{display:none!important}
@media(min-width:701px){body:not(.rest-folded) #restPanel{left:auto;right:16px;bottom:16px;transform:none;width:300px;max-height:calc(100dvh - 145px);padding:14px}.rest-actions{grid-template-columns:repeat(2,1fr)}#restAdd.wood-primary{grid-column:1/-1}.rest-modes{flex-wrap:wrap}.rest-modes button{min-width:75px}.rest-bottom{flex-wrap:wrap}#woodPanel{width:300px;right:16px;bottom:16px}#woodCanvas{height:90px}}
@media(max-width:700px){.rest-folded #restPanel{width:calc(100vw - 20px);padding:9px 10px}.rest-folded .rest-heading h2{font-size:16px!important}.rest-folded .rest-heading>button{font-size:11px!important;padding:7px 8px!important}.rest-folded .rest-heading{gap:4px}#restAdd.wood-primary{grid-column:1/-1}}
