:root { --ink:#1f2430; --mute:#6b7280; --line:#e3e5ea; --bg:#f6f7f9; --card:#fff; --acc:#2f6fed; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color:var(--ink); background:var(--bg); line-height:1.5; }
.page { max-width:1100px; margin:0 auto; padding:28px 18px 60px; }
h1 { font-size:28px; margin:0 0 10px; }
h2 { font-size:20px; margin:36px 0 12px; }
.lead { color:#3b4252; max-width:860px; }
.cards { display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; margin-top:22px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px; display:flex; flex-direction:column; gap:10px; }
.card h3 { margin:0; font-size:18px; }
.card .idea { margin:0; color:#3b4252; font-size:14px; }
.card img { width:100%; border:1px solid var(--line); border-radius:8px; background:#f4f1ea; cursor:zoom-in; }
.card.now { grid-column: 1 / -1; max-width:420px; background:#fafafa; }
.card.now h3 span { font-weight:400; color:var(--mute); font-size:14px; }
.nums { display:grid; grid-template-columns: repeat(3,1fr); gap:8px; }
.nums div { background:var(--bg); border-radius:8px; padding:6px 8px; text-align:center; }
.nums b { display:block; font-size:20px; }
.nums small { color:var(--mute); font-size:11px; line-height:1.2; display:block; }
.btn { display:inline-block; background:var(--acc); color:#fff; text-decoration:none; padding:9px 14px; border-radius:8px; text-align:center; font-weight:600; margin-top:auto; }
.btn:hover { background:#1f56c4; }
table { border-collapse:collapse; width:100%; background:var(--card); border:1px solid var(--line); border-radius:8px; overflow:hidden; }
th, td { padding:9px 12px; border-bottom:1px solid var(--line); text-align:left; font-size:14px; }
th { background:#eef0f4; }
td.n, th.n { text-align:right; }
.table-wrap { overflow-x:auto; }
.controls { padding-left:20px; margin:0; } .controls li { margin:4px 0; }
.controls b { display:inline-block; min-width:56px; }
#lightbox { position:fixed; inset:0; background:rgba(20,22,28,.85); display:none; align-items:center; justify-content:center; z-index:10; cursor:zoom-out; padding:20px; }
#lightbox img { max-width:100%; max-height:100%; background:#f4f1ea; border-radius:6px; }
@media (max-width: 800px) { .cards { grid-template-columns: 1fr; } .card.now { max-width:none; } h1 { font-size:22px; } }

/* ходилка */
body.walk { overflow:hidden; background:#000; }
#view { position:fixed; inset:0; display:block; }
.hud { position:fixed; font-size:13px; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.7); z-index:3; }
#topleft { left:12px; top:12px; background:rgba(20,24,32,.62); padding:9px 12px; border-radius:10px; text-shadow:none; max-width:330px; }
#topleft .ttl { font-weight:700; font-size:15px; margin-bottom:4px; }
#topleft a { color:#9fc3ff; text-decoration:none; margin-right:6px; } #topleft a.cur { color:#fff; font-weight:700; text-decoration:underline; }
#topleft .back { display:block; margin-top:4px; }
#timer { left:12px; top:112px; background:rgba(20,24,32,.62); padding:9px 12px; border-radius:10px; max-width:380px; text-shadow:none; }
#timer .main { font-weight:600; } #timer ol { margin:6px 0 0; padding-left:20px; font-size:12px; color:#d5dbe6; }
#mini { right:12px; top:12px; width:260px; height:260px; border-radius:10px; border:1px solid rgba(0,0,0,.3); background:#f2efe8; }
#cross { left:50%; top:50%; width:6px; height:6px; margin:-3px 0 0 -3px; border-radius:50%; background:rgba(255,255,255,.8); box-shadow:0 0 2px #000; }
#hint { left:12px; bottom:10px; opacity:.85; }
#help { position:fixed; inset:0; z-index:8; background:rgba(15,18,26,.82); display:flex; align-items:center; justify-content:center; color:#fff; }
#help .box { background:#202633; border-radius:12px; padding:22px 28px; max-width:520px; }
#help h2 { margin:0 0 10px; } #help p { color:#aab; font-size:13px; margin-bottom:0; }
#vf { position:fixed; inset:0; z-index:4; pointer-events:none; display:none; }
#vf .frame { position:absolute; box-shadow:0 0 0 9999px rgba(0,0,0,.6); border:1px solid rgba(255,255,255,.35); }
#vf .c { position:absolute; width:26px; height:26px; border:3px solid #fff; }
#vf .c.tl { left:-2px; top:-2px; border-right:0; border-bottom:0; } #vf .c.tr { right:-2px; top:-2px; border-left:0; border-bottom:0; }
#vf .c.bl { left:-2px; bottom:-2px; border-right:0; border-top:0; } #vf .c.br { right:-2px; bottom:-2px; border-left:0; border-top:0; }
#vf .rec { position:absolute; left:18px; top:14px; color:#fff; font-weight:700; font-size:15px; display:flex; align-items:center; gap:6px; }
#vf .rec i { width:12px; height:12px; border-radius:50%; background:#e53935; display:inline-block; }
#vf .cap { position:absolute; left:0; right:0; bottom:12px; text-align:center; color:#fff; font-size:15px; text-shadow:0 1px 3px #000; padding:0 12px; }
@media (max-width: 700px) { #mini { width:150px; height:150px; } #timer { top:130px; max-width:260px; } }
