/* /games/ chrome: academy colours, day + night. Self-contained. */
:root{--bg:#F4F2EC;--card:#FFFFFF;--ink:#111111;--muted:#4A4540;--rule:#D9D5CC;--accent:#1F5F4A;--accent2:#A4502F;--dos:#0000AA;--dos-ink:#FFFFFF;--dos-hi:#FFFF55;--dos-dim:#AAAAAA;--dos-link:#55FFFF}
html[data-theme=dark]{--bg:#111111;--card:#1A1A1A;--ink:#EDEAE3;--muted:#A9A39A;--rule:#2C2C2C;--accent:#3BA88F;--accent2:#E0957A;--dos:#000000;--dos-ink:#AAAAAA;--dos-hi:#55FF55;--dos-dim:#777777;--dos-link:#55FFFF}
@media (prefers-color-scheme:dark){html:not([data-theme=light]){--bg:#111111;--card:#1A1A1A;--ink:#EDEAE3;--muted:#A9A39A;--rule:#2C2C2C;--accent:#3BA88F;--accent2:#E0957A;--dos:#000000;--dos-ink:#AAAAAA;--dos-hi:#55FF55;--dos-dim:#777777;--dos-link:#55FFFF}}
@font-face{font-family:PS2P;src:url(/games/phone/PressStart2P-Regular.ttf) format("truetype");font-display:swap}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
html,body{overflow-x:clip}
body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.55}
html[lang=en] [lang=ru],html[lang=ru] [lang=en]{display:none!important}
a{color:var(--accent)}
.wrap{max-width:52rem;margin:0 auto;padding:0 16px}
header.top{position:sticky;top:0;z-index:5;background:var(--bg);border-bottom:1px solid var(--rule)}
header.top .wrap{display:flex;align-items:center;gap:10px;min-height:56px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--ink);font-weight:700;margin-right:auto}
.brand img{width:30px;height:30px}
.navgames{color:var(--ink);text-decoration:none;font-weight:600;font-size:.9rem}
.theme-toggle{width:38px;height:38px;border-radius:50%;border:1px solid var(--rule);background:var(--card);color:var(--ink);display:grid;place-items:center;cursor:pointer;padding:0}
.theme-toggle svg{width:18px;height:18px;fill:currentColor;stroke:currentColor}
.theme-toggle .i-sun{display:none}
html[data-theme=dark] .theme-toggle .i-sun{display:block}html[data-theme=dark] .theme-toggle .i-moon{display:none}
@media (prefers-color-scheme:dark){html:not([data-theme=light]) .theme-toggle .i-sun{display:block}html:not([data-theme=light]) .theme-toggle .i-moon{display:none}}
.lang{display:flex;gap:4px}.lang button{min-width:40px;min-height:36px;border:1px solid var(--rule);background:var(--card);color:var(--ink);border-radius:8px;font-weight:700;cursor:pointer}
.lang button[aria-pressed=true]{background:var(--accent);color:#fff;border-color:var(--accent)}
h1{font-size:1.5rem;margin:1.4rem 0 .4rem}
.lead{color:var(--muted);margin:0 0 1rem}
.dos{background:var(--dos);color:var(--dos-ink);font-family:PS2P,ui-monospace,monospace;font-size:12px;line-height:1.9;padding:18px 16px;border:4px double var(--dos-dim);border-radius:2px;box-shadow:0 14px 30px -14px rgba(0,0,0,.5)}
.dos .bar{color:var(--dos-hi);margin:0 0 12px}
.dos ul{list-style:none;margin:0;padding:0}
.dos li{padding:10px 0;border-top:1px dashed var(--dos-dim)}
.dos a{color:var(--dos-link);text-decoration:none;font-size:14px}
.dos a:hover,.dos a:focus-visible{background:var(--dos-link);color:var(--dos)}
.dos .d{display:block;color:var(--dos-ink);font-size:11px;line-height:1.7;margin-top:4px;overflow-wrap:anywhere}
.dos .cur{animation:bl 1s steps(1) infinite}@keyframes bl{50%{opacity:0}}
.foot{margin:1.4rem 0 2.4rem;color:var(--muted);font-size:.9rem}
