*{box-sizing:border-box}body{margin:0;background:#091611;color:#e7eadf;font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}header,main{max-width:1600px;margin:auto;padding:18px clamp(14px,2vw,28px)}header{display:flex;align-items:center;gap:18px;flex-wrap:wrap}header>a{font-weight:800;letter-spacing:.08em;color:#f3e6c4;text-decoration:none}a{color:#e0c58b}small{display:block;font-size:11px;letter-spacing:.22em;color:#d3bb7e;margin-bottom:6px}h1{font-size:clamp(30px,5vw,64px);line-height:.95;margin:0 0 14px;letter-spacing:-.05em}p{margin:0 0 14px}.stage{position:relative;border:1px solid #55675b;border-radius:18px;overflow:hidden;background:linear-gradient(180deg,#22352d,#16231f);box-shadow:0 18px 48px rgba(0,0,0,.35);isolation:isolate}#scene{display:block;width:100%;height:clamp(380px,76vh,920px);touch-action:none;outline-offset:-2px}#loading{position:absolute;inset:0;display:grid;place-items:center;background:#10201ce8;z-index:10;padding:24px;text-align:center}#loading[hidden]{display:none}.hud{position:absolute;top:14px;left:14px;display:grid;gap:7px;background:rgba(12,26,21,.72);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.16);padding:14px;border-radius:14px;max-width:min(330px,calc(100% - 200px));box-shadow:0 10px 30px rgba(0,0,0,.22)}.hud #position{font-size:13px;color:#cfdbc9}.hud #saved{font-size:12px;color:#e8d0a1}.hud button:not(:disabled){background:#e1c68c;color:#12221a;font-weight:800}.hud button:disabled{opacity:.45;cursor:default}.joystick{position:absolute;left:max(18px,env(safe-area-inset-left));bottom:max(18px,env(safe-area-inset-bottom));width:126px;height:126px;border-radius:50%;border:1px solid rgba(255,255,255,.25);background:radial-gradient(circle at 50% 42%,rgba(255,255,255,.16),rgba(14,30,24,.82) 62%,rgba(9,19,16,.92));display:grid;place-items:center;touch-action:none;user-select:none;-webkit-user-select:none;box-shadow:0 10px 28px rgba(0,0,0,.28)}.stick-knob{display:block;width:50px;height:50px;border-radius:50%;background:linear-gradient(145deg,#f0ddb0,#93784d);border:2px solid rgba(255,255,255,.6);box-shadow:0 4px 14px rgba(0,0,0,.45);pointer-events:none}.game-actions{position:absolute;right:max(16px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;max-width:calc(100% - 180px)}button,.tools a{font:inherit;padding:10px 14px;border:1px solid rgba(255,255,255,.24);border-radius:10px;background:rgba(16,33,27,.9);color:#fff;text-decoration:none;cursor:pointer;transition:.18s transform,.18s background,.18s border-color}button:hover,.tools a:hover{transform:translateY(-1px);background:rgba(23,44,37,.95);border-color:rgba(255,255,255,.35)}button:focus-visible,a:focus-visible{outline:2px solid #f0d08e;outline-offset:3px}.game-actions button[aria-pressed=true]{background:#dbc083;color:#12221b}.tools{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:14px}#status{min-height:1.4em;color:#dcc28d;margin-top:10px}#stations{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin-top:18px}#stations article{overflow:hidden;padding:0 0 14px;border:1px solid #405248;border-radius:14px;background:linear-gradient(180deg,#13221d,#0d1814)}#stations article img{display:block;width:100%;height:170px;object-fit:cover}#stations article h3,#stations article p,#stations article a{margin-left:14px;margin-right:14px}#toast{position:absolute;top:48%;left:50%;transform:translate(-50%,-50%);background:rgba(13,28,22,.9);color:#fff;padding:10px 16px;border-radius:10px;pointer-events:none;max-width:85%;box-shadow:0 10px 28px rgba(0,0,0,.35)}#toast:empty{display:none}.hint{position:absolute;left:50%;bottom:6px;transform:translateX(-50%);font-size:11px;color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.6);pointer-events:none;white-space:nowrap}.stage:fullscreen,.stage.expanded{position:fixed;inset:0;z-index:99999;width:100%;height:100vh;height:100dvh;border:0;border-radius:0;background:#091611}.stage:fullscreen #scene,.stage.expanded #scene{height:100%;min-height:0}#radar{position:absolute;right:14px;top:14px;width:146px;height:146px;border:1px solid rgba(224,227,207,.36);border-radius:14px;pointer-events:none;background:rgba(8,18,14,.38);backdrop-filter:blur(3px)}@media(max-width:700px){#scene{height:66vh;height:66dvh;min-height:340px}.hud{max-width:calc(100% - 126px);font-size:13px;padding:10px}.hud #position{font-size:12px}.joystick{width:104px;height:104px;left:12px;bottom:14px}.stick-knob{width:42px;height:42px}.game-actions{right:10px;bottom:16px;max-width:calc(100% - 128px);gap:6px}.game-actions button{font-size:12px;padding:8px 10px}.hint{display:none}#radar{width:96px;height:96px}.stage:fullscreen #scene,.stage.expanded #scene{height:100%;min-height:0}}@media(max-height:540px) and (orientation:landscape){#scene{height:76vh;min-height:240px}.stage:fullscreen #scene,.stage.expanded #scene{height:100%;min-height:0}.joystick{width:90px;height:90px}.stick-knob{width:38px;height:38px}#radar{width:82px;height:82px}}.k31-nav{display:flex;gap:12px;flex-wrap:wrap}
