* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0f1710; color: #eaf0e6;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif; -webkit-user-select: none; user-select: none; }
.boot { padding: 40px; text-align: center; color: #9fb79a; }
.boot small { color: #6f8a6c; }

.wrap { display: flex; min-height: 100vh; gap: 0; }
.stage { position: relative; flex: 1 1 auto; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(120% 90% at 50% 0%, #23331f 0%, #0d140c 70%); padding: 12px; }
canvas { width: min(96vw, 900px); max-width: 100%; height: auto; aspect-ratio: 640 / 420;
    border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.55); touch-action: none; background: #10160e; }

.hud-top { position: absolute; top: 20px; left: 3%; right: 3%; display: flex; justify-content: space-between;
    align-items: center; pointer-events: none; }
.mood { pointer-events: none; background: rgba(12,20,10,.62); border: 1px solid rgba(150,190,140,.25);
    padding: 7px 13px; border-radius: 999px; font-size: 14px; color: #dcead3; backdrop-filter: blur(3px); }
.mood b { color: #b7e39a; }
.topbtns { display: flex; gap: 8px; pointer-events: auto; }
.ib { width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(150,190,140,.28);
    background: rgba(18,28,15,.7); color: #dcead3; font-size: 19px; cursor: pointer; }
.ib.on { background: #3f6b34; border-color: #7fc06a; }

.unlockbar { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: min(80%, 460px);
    display: flex; align-items: center; gap: 12px; background: rgba(10,18,9,.8); border: 1px solid rgba(150,190,140,.3);
    border-radius: 999px; padding: 10px 18px; backdrop-filter: blur(4px); }
.ul-label { font-size: 14px; color: #9fc290; white-space: nowrap; letter-spacing: .5px; }
.ul-range { flex: 1 1 auto; }

.panel { flex: 0 0 320px; max-width: 340px; background: #131c10; border-left: 1px solid #22301c;
    padding: 18px 18px 26px; overflow-y: auto; }
.panel h1 { margin: 0 0 2px; font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.panel h1 span { color: #8fd06a; }
.tag { margin: 0 0 14px; color: #86a17f; font-size: 12.5px; }
.seg { border-top: 1px solid #22301c; padding: 12px 0; }
.lab { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: #8fae86; margin-bottom: 8px; }
.note { color: #7c9676; font-size: 11.5px; margin: 6px 0 0; }
.foot { color: #6f8a6c; font-size: 11px; line-height: 1.5; margin-top: 10px; }

.row4 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
button { background: #1d2a17; color: #e7efe1; border: 1px solid #33482a; border-radius: 9px;
    padding: 10px 12px; font-size: 13.5px; cursor: pointer; transition: .12s; }
button:hover { border-color: #5f8e4c; }
button.on { background: #3f6b34; border-color: #7fc06a; color: #fff; }
button.wide { width: 100%; margin-top: 8px; }

input[type=range] { width: 100%; accent-color: #7fc06a; height: 26px; }

.bars { display: flex; flex-direction: column; gap: 7px; }
.bar { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #9fb79a; }
.bar span { flex: 0 0 58px; }
.bar i { display: block; height: 9px; border-radius: 5px; background: #6db06d; transition: width .1s linear; }
.evalnum { margin-top: 8px; font-size: 12px; color: #a9c4a0; }

.wrap.locked .stage { padding: 0; }
.wrap.locked canvas { width: 100vw; height: 100vh; border-radius: 0; aspect-ratio: auto; object-fit: cover; }

@media (max-width: 820px) {
    .wrap { flex-direction: column; }
    .panel { flex: 1 1 auto; max-width: none; border-left: none; border-top: 1px solid #22301c; }
}
