:root{color-scheme:dark;--bg:#080f14;--text:#bac7c9;--dim:#62767f;--green:#7fc490;--line:#bdded412}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--bg)}
body{font-family:Consolas,'Cascadia Code','SFMono-Regular',monospace;color:var(--text);font-size:12px}
.terminal{position:relative;width:100%;height:100%;height:100dvh;isolation:isolate}
.topbar{position:absolute;z-index:2;top:0;left:0;right:0;height:40px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;pointer-events:none}
h1{font-size:12px;font-weight:400;letter-spacing:.5px;margin:0;white-space:nowrap}.prompt{color:var(--green);padding-right:13px}.cursor{color:var(--green);animation:blink 1.2s steps(1) infinite}
.live{font-size:10px;color:var(--dim);display:flex;align-items:center;gap:8px;white-space:nowrap}.live>span:first-child{width:5px;height:5px;border-radius:50%;background:var(--green);box-shadow:0 0 9px #7fc49070}
#scene{display:block;width:100%;height:100%;touch-action:none;cursor:grab}#scene:active{cursor:grabbing}
.hud{position:absolute;top:48px;left:24px;right:24px;display:flex;justify-content:space-between;gap:20px;font-size:10px;color:#6e848c;pointer-events:none;letter-spacing:.4px;font-variant-numeric:tabular-nums}
.greeting{position:absolute;top:var(--greeting-y,80%);left:0;right:0;text-align:center;font-size:clamp(24px,2.5vw,34px);font-weight:600;line-height:1.15;letter-spacing:.22em;color:#ffe6a2;opacity:0;transition:opacity 1.5s;pointer-events:none;text-shadow:0 0 12px #f0c56d55,0 0 28px #e6b54b30}.greeting.visible{opacity:1}
.bottom{position:absolute;bottom:max(20px,env(safe-area-inset-bottom));left:20px;right:20px;display:flex;flex-direction:column;align-items:center;gap:14px}
.toolbar{display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid #c6e7dc1c;background:#0b151ced;box-shadow:0 10px 35px #0003;border-radius:9px;padding:7px 10px;backdrop-filter:blur(10px)}
.developer-credit{display:inline-flex;align-items:center;gap:6px;min-height:20px;padding:1px 8px;font-size:11px;line-height:18px;letter-spacing:.5px;color:#9cadb2;text-decoration:none;border-radius:4px}.developer-credit span{color:#e8d29a}.developer-credit:hover{color:#d9e3df}.developer-credit:hover span{color:#fff0bf;text-shadow:0 0 12px #e6c57466}.developer-credit:focus-visible{outline:1px solid #e8d29a;outline-offset:4px}
button{font:inherit;font-size:11px;color:#a2b4bb;border:1px solid transparent;border-radius:5px;background:transparent;min-height:36px;padding:7px 12px;display:flex;align-items:center;gap:8px;cursor:pointer;transition:background .15s,color .15s;white-space:nowrap}button:hover{background:#c6e7dc0a;color:#e5efe9}button:focus-visible{outline:1px solid #8fcca1;outline-offset:2px}button[aria-pressed=true]{color:#9ac6a7}button[aria-pressed=false]{color:#536773}.icon{font-size:17px;line-height:1;color:inherit}.separator{width:1px;height:18px;background:#b5d5d41c;margin:0 5px}.hints{display:flex;align-items:center;justify-content:space-between;width:min(100%,615px);color:#526771;font-size:9px;gap:16px}kbd{font:inherit;color:#84959b}.toast{position:absolute;bottom:115px;left:50%;transform:translateX(-50%);padding:10px 15px;border-radius:5px;background:#14262b;color:#bcddc8;opacity:0;transition:opacity .2s;pointer-events:none;font-size:11px;white-space:nowrap}.toast.visible{opacity:1}
@keyframes blink{50%{opacity:0}}
@media(max-width:640px){.topbar{height:57px;padding:0 19px}h1{font-size:10px;letter-spacing:0}.prompt{padding-right:8px}.live{font-size:9px;gap:6px}.hud{top:75px;left:20px;right:20px;font-size:8px;gap:10px}.bottom{left:12px;right:12px;gap:12px;bottom:max(18px,env(safe-area-inset-bottom))}.toolbar{width:100%;max-width:430px;gap:0;padding:5px 6px;justify-content:space-around}.toolbar button{flex-direction:column;gap:4px;padding:8px 5px;min-width:40px;min-height:47px;font-size:8px}.icon{font-size:17px}.separator{margin:0 3px;height:23px}.hints{font-size:8px;gap:8px;width:min(100%,430px)}.hint-extra{display:none}.greeting{font-size:clamp(19px,5.5vw,24px);letter-spacing:.16em}}
@media(max-height:500px){.topbar{height:42px}.hud{top:53px}.bottom{bottom:10px;gap:6px}.toolbar{padding:2px 7px}.toolbar button{flex-direction:row;min-height:29px;padding:4px 8px}.hints{display:none}.greeting{font-size:16px}}
@media(prefers-reduced-motion:reduce){.cursor{animation:none}.greeting,button,.toast{transition:none}}
