:root { --ink:#0e1212; --ink2:#161c1c; --paper:#efe6d2; --muted:#b8ad97; --gold:#d4ad5f; --red:#a8322c; --jade:#5fa58f; --bar:44px; }
* { box-sizing:border-box; }
html, body { margin:0; height:100%; background:var(--ink); color:var(--paper); font:15px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; overflow:hidden; }
#bar { height:var(--bar); display:flex; align-items:center; justify-content:space-between; padding:0 12px; background:linear-gradient(#141a1a,#0e1212); border-bottom:1px solid #2c2a24; gap:12px; }
.brand { display:flex; align-items:center; gap:10px; min-width:0; white-space:nowrap; }
.brand img { width:28px; height:28px; }
.brand .name { font-weight:700; letter-spacing:.06em; color:var(--gold); font-size:16px; }
.badge { font-size:12px; color:#1b1408; background:var(--gold); border-radius:3px; padding:2px 8px; font-weight:700; letter-spacing:.02em; }
.ver { color:var(--muted); font-size:12px; }
#tools { display:flex; gap:6px; }
#tools button { background:#1d2524; color:var(--paper); border:1px solid #3a3a30; border-radius:4px; padding:6px 12px; font:inherit; font-size:13px; cursor:pointer; }
#tools button:hover:not(:disabled) { border-color:var(--gold); }
#tools button:disabled { opacity:.45; cursor:default; }
#tools button.on { background:var(--red); border-color:var(--red); }
#stage { position:absolute; top:var(--bar); left:0; right:0; bottom:0; background:#000; }
#unity-canvas { width:100%; height:100%; display:block; background:#0b0f10; outline:none; }
.overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding:16px; background:radial-gradient(ellipse at 50% 35%, #1d2725 0%, #0b0f10 70%); overflow:auto; }
.overlay.dim { background:rgba(6,8,8,.82); }
.overlay[hidden] { display:none; }
.panel { width:min(720px,100%); text-align:center; padding:28px 28px 22px; background:rgba(14,18,18,.82); border:1px solid #3b3426; border-radius:8px; box-shadow:0 20px 60px rgba(0,0,0,.6); }
.panel.small { width:min(560px,100%); }
.panel.left { text-align:left; }
.panel h2 { margin:0 0 10px; color:var(--gold); font-size:20px; }
.logo { width:min(420px,80%); height:auto; display:block; margin:0 auto 6px; }
.logo.sm { width:min(260px,70%); }
.tag { margin:4px 0 6px; font-size:17px; }
.proto { margin:0 auto 18px; color:var(--muted); max-width:520px; font-size:14px; }
.play { background:linear-gradient(#b23a32,#8c2a25); color:#fff; border:1px solid #d2564b; border-radius:6px; padding:14px 40px; font:inherit; font-size:20px; font-weight:700; letter-spacing:.04em; cursor:pointer; box-shadow:0 6px 18px rgba(168,50,44,.35); }
.play:hover { filter:brightness(1.1); }
.play:focus-visible, #tools button:focus-visible, .ghost:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.ghost { background:transparent; color:var(--paper); border:1px solid #5a5240; border-radius:6px; padding:14px 26px; font:inherit; font-size:17px; cursor:pointer; }
.row { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:8px; }
.meta { color:var(--muted); font-size:13px; margin:12px 0 4px; }
.warn { margin:12px auto 0; max-width:560px; text-align:left; background:#3a2a14; border:1px solid #7a5a26; border-radius:6px; padding:8px 12px; font-size:13px; }
.warn p { margin:4px 0; }
.keys { display:grid; grid-template-columns:repeat(3,1fr); gap:6px 18px; margin:18px auto 0; max-width:520px; font-size:13px; color:var(--muted); text-align:left; }
.keys b { color:var(--paper); }
.bar { height:10px; background:#232b2a; border-radius:5px; overflow:hidden; margin:16px 0 10px; border:1px solid #3b3426; }
#fill { height:100%; width:0; background:linear-gradient(90deg,#8c2a25,var(--gold)); transition:width .25s; }
#status { margin:0; font-size:15px; }
.hint { color:var(--muted); font-size:13px; margin:10px 0 0; }
#help ul { margin:8px 0 12px 18px; padding:0; }
#help li { margin:6px 0; }
#error-text { font-family:Consolas, monospace; font-size:13px; background:#1a1010; border:1px solid #4a2a26; border-radius:4px; padding:8px; text-align:left; word-break:break-word; }
@media (max-width:820px) { .ver, .badge .long { display:none; } }
@media (max-width:560px) { .badge { display:none; } }
@media (max-width:640px) { #tools button { padding:6px 8px; font-size:12px; } .keys { grid-template-columns:repeat(2,1fr); } .play { padding:12px 28px; font-size:18px; } }
@media (max-height:520px) { .logo { width:220px; } .keys { display:none; } .panel { padding:16px; } }
