[hidden]{display:none!important}
:root{--ink:#fff7e6;--panel:rgba(18,10,34,.82);--edge:rgba(255,220,160,.28);--green:#7dff4a;--orange:#ff9a2e}
*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:#0f0b18;color:var(--ink);font:600 14px/1.3 Bahnschrift,"Segoe UI",system-ui,sans-serif}
#view{position:fixed;inset:0;width:100%;height:100%;display:block;outline:none}
header{position:fixed;left:12px;top:10px;right:calc(var(--side,320px) + 22px);display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:7px 10px;background:var(--panel);border:1px solid var(--edge);border-radius:14px;backdrop-filter:blur(6px)}
header b{letter-spacing:.06em;color:var(--green);margin-right:auto}
header button{background:#2b1a4a;color:var(--ink);border:1px solid var(--edge);border-radius:9px;padding:6px 10px;font:inherit;cursor:pointer}
header button:hover,header button:focus-visible{border-color:var(--green);outline:none}
header button:disabled{opacity:.5;cursor:default}#play{background:#2c6a1e}#collect{background:#8a4a10}
#score{font-variant-numeric:tabular-nums;font-size:18px;min-width:96px;text-align:right}#combo{color:var(--orange);min-width:76px}
#sidebar{position:fixed;right:10px;top:10px;bottom:10px;width:var(--side,320px);height:calc(100% - 20px);border-radius:16px;border:1px solid var(--edge);background:#140c24;box-shadow:0 10px 40px rgba(0,0,0,.5)}
body.noSidebar #sidebar{display:none}body.noSidebar header{right:12px}
#hint{position:fixed;left:12px;bottom:12px;max-width:calc(100% - var(--side,320px) - 40px);padding:6px 10px;background:var(--panel);border:1px solid var(--edge);border-radius:10px;font-size:12px;opacity:.85}
body.noSidebar #hint{max-width:calc(100% - 24px)}
#menu{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);min-width:300px;display:flex;flex-direction:column;gap:8px;padding:18px;background:rgba(14,8,28,.95);border:1px solid var(--edge);border-radius:16px;z-index:5}
#menu h2{margin:0 0 6px;color:var(--green);font-family:"Cooper Black",Georgia,serif}#menu button{background:#2b1a4a;color:var(--ink);border:1px solid var(--edge);border-radius:10px;padding:9px;font:inherit;cursor:pointer}
#menu button:focus-visible,#menu button:hover{border-color:var(--green);outline:none}.row{display:flex;gap:8px;align-items:center}.row span{flex:1}.row b{min-width:64px;text-align:center}.row button{width:40px}
#loading{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:radial-gradient(circle at 50% 40%,#3a1a66,#0f0b18);z-index:9}
#loading b{font:900 38px "Cooper Black",Georgia,serif;color:var(--green);text-align:center}#joke{opacity:.8}#progress{color:var(--orange)}
#toast{position:fixed;left:50%;bottom:56px;transform:translateX(-50%);padding:9px 16px;background:#2a1240;border:1px solid var(--orange);border-radius:12px;z-index:4}
body.minimal header,body.minimal #hint{display:none}
@media (max-width:820px){:root{--side:200px}header b{display:none}}
body.embedded #sidebar{top:58px;height:calc(100% - 68px)}
