/* v0.67: one map cluster, deliberate traversal controls, quiet diagnostics. */
:root{--cyan:#dfd7c4;--mint:#c6d7c6;--line:#e8e5d33d}
html,body{touch-action:none}button{font:inherit}button:focus-visible{outline:3px solid #fff;outline-offset:3px}
#hud{left:auto!important;right:24px!important;top:24px!important;width:225px!important;padding:12px 15px!important;border-radius:5px!important;background:#14212bd9!important;border:1px solid #e8e5d327!important;box-shadow:none!important;z-index:7}
#hud .brand,#hud .row,#hud .meter,#logStatus,#diag,#map2gis,#help,#tutorial,#mission,#routePanel,#routeToggle,#actionState{display:none!important}
#hud .stats{margin:0!important;display:flex;flex-wrap:wrap;align-items:center;gap:7px!important}#hud #speed{font-size:30px!important;line-height:1.2;font-weight:750;white-space:nowrap;flex:1}#hud #state{font-size:9px;max-width:70px}#hud #height{font-size:10px;white-space:nowrap}
#hud #placeLabel{display:block!important;position:static!important;transform:none!important;width:auto!important;max-width:none!important;margin:7px 0 0!important;padding:7px 0 0!important;border:0!important;border-top:1px solid #e8e5d327!important;background:none!important;box-shadow:none!important;white-space:normal!important;font-size:10px!important;line-height:1.4!important;color:#e1d7c4!important}
#pauseButton{position:fixed;z-index:12;left:24px;right:auto;top:24px;min-width:44px;height:44px;color:#f0e7d3;background:#14212bdb;border:1px solid #e8e5d340;border-radius:5px;cursor:pointer;font-size:18px}
#minimap{left:24px!important;right:auto!important;top:auto!important;bottom:78px!important;width:240px!important;height:150px!important;border-radius:5px!important;border:1px solid #e8e5d340!important;z-index:7}
#compass{position:fixed;left:24px;bottom:236px;width:240px;height:44px;z-index:8;display:flex;align-items:center;gap:12px;color:#e9e3d5;font:11px ui-monospace,monospace;pointer-events:none;text-shadow:0 1px 4px #000}
#compass .north{font-weight:800;border:1px solid #e8e5d34d;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;background:#14212bbd}#compassNeedle{display:inline-block;font:26px/1 system-ui;transform-origin:center;color:#e8c787}#compassBearing{font-size:10px;color:#cbd4d5}
#addressButton{display:block!important;position:fixed!important;left:24px!important;right:auto!important;top:auto!important;bottom:24px!important;width:240px!important;min-height:44px!important;z-index:20!important;padding:9px 12px!important;color:#f0dfbb!important;background:#14212be8!important;border:1px solid #e2c68e55!important;border-radius:5px;font-size:11px!important;letter-spacing:.04em!important;white-space:nowrap}
#addressPanel{left:50%!important;right:auto!important;top:50%!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:min(420px,calc(100vw - 32px))!important;box-sizing:border-box;z-index:25!important;padding:18px!important}
#addressPanel button,#addressPanel input{min-height:44px;box-sizing:border-box}#addressPanel #addressClose{width:44px;height:44px}#addressPanel>b{padding-right:46px}#addressPanel small{line-height:1.5;font-size:11px}
#prompt{left:50%!important;right:auto!important;top:auto!important;transform:translateX(-50%)!important;max-width:min(600px,70vw)!important;bottom:76px!important;white-space:normal!important;text-align:center;font-size:10px!important;font-weight:600!important;border-radius:4px!important;pointer-events:none}
#anchorHint{left:50%!important;top:auto!important;bottom:125px!important;transform:translateX(-50%)!important;max-width:70vw;text-align:center;white-space:normal;font-size:10px!important}
#releaseCue{position:fixed;bottom:157px;left:50%;transform:translateX(-50%);z-index:8;padding:8px 12px;border:1px solid #b4b9b455;border-radius:4px;background:#14212bd9;color:#cbd1ce;font:700 11px ui-monospace,monospace;pointer-events:none;white-space:nowrap}#releaseCue[hidden]{display:none!important}#releaseCue[data-phase=release]{background:#b6d0a9;color:#14212b;border-color:#ddedcf}
#controls{position:fixed;z-index:7;bottom:24px;left:50%;transform:translateX(-50%);display:flex;gap:14px;align-items:center;background:#14212bc9;padding:10px 14px;border-radius:4px;color:#d4dbdc;font-size:10px;white-space:nowrap}kbd{font:650 10px ui-monospace,monospace;color:#f6deb4;margin-right:4px}
.releaseWindow #eHint kbd,.releaseWindow [data-key=KeyE]{color:#d4ffc2!important;background:#31583b!important;box-shadow:0 0 0 2px #b5da99}
#welcome{position:fixed;z-index:15;inset:0;display:flex;align-items:center;padding:5vw;background:linear-gradient(90deg,#101c29f5,#101c29bc 37%,#101c2900 74%);color:#f0ede4}#welcome[hidden]{display:none}#welcome article{max-width:520px}#welcome .eyebrow{letter-spacing:.24em;font-size:11px;color:#e2c68e;margin-bottom:20px}#welcome h1{font:500 clamp(42px,6vw,84px)/.98 Georgia,serif;margin:0 0 24px;letter-spacing:-.04em}#welcome h1 em{font-weight:400;color:#e2c68e}#welcome p{max-width:390px;font-size:14px;line-height:1.65;color:#c2ccd0}#welcome .hint{font-size:12px;color:#aabac2;margin:24px 0;line-height:1.7}#welcome footer{margin-top:20px;color:#84969f;font-size:10px;max-width:390px;line-height:1.5}
#startButton{min-width:220px;min-height:52px;padding:12px 24px;background:#e2c68e;color:#15222c;border:0;border-radius:4px;font-size:14px;font-weight:700;cursor:pointer}#startButton:hover{background:#f7dfb3}
#places{display:flex;gap:8px;margin-top:18px;flex-wrap:wrap}#places button{min-height:44px;padding:8px 12px;border:1px solid #b7b6a54d;color:#e0e0d4;background:#182633a6;border-radius:4px;cursor:pointer;font-size:11px}#places button.active{border-color:#e2c68e;color:#e2c68e}
#welcome #logDownload{position:static;min-height:44px;margin-top:10px;padding:8px 0;border:0;background:none;color:#adb9bf;font-size:11px;cursor:pointer}
#touchControls{display:none}
@media(pointer:coarse){#controls{display:none}#touchControls{display:block;position:fixed;inset:0;z-index:8;pointer-events:none}#stick{position:absolute;left:20px;bottom:20px;width:100px;height:100px;border-radius:50%;background:#1324316b;border:1px solid #ffffff45;pointer-events:auto;touch-action:none}#stick i{position:absolute;width:38px;height:38px;border-radius:50%;background:#e2c68e9e;left:30px;top:30px;pointer-events:none}#touchActions{position:absolute;right:16px;bottom:20px;display:grid;grid-template-columns:repeat(3,58px);gap:8px;pointer-events:auto}#touchActions button{min-width:44px;height:54px;border:1px solid #e2c68e88;color:#f7e2bc;background:#142431b9;border-radius:8px;font-size:10px;touch-action:none}#touchActions button.held{background:#866d42}#welcome .hint{display:none}}
@media(max-width:760px),(pointer:coarse){#hud{top:12px!important;right:12px!important;width:170px!important;padding:9px 11px!important}#hud #speed{font-size:24px!important}#hud #state,#hud #height{font-size:8px!important}#hud #placeLabel{font-size:9px!important}#pauseButton{left:12px;top:12px}#minimap{left:12px!important;bottom:172px!important;width:146px!important;height:96px!important}#compass{left:12px;bottom:273px;width:146px;gap:8px}#addressButton{left:12px!important;bottom:122px!important;width:146px!important;font-size:10px!important}#controls{display:none}#releaseCue{bottom:171px;max-width:52vw;font-size:9px;white-space:normal;text-align:center;left:auto;right:12px;transform:none}#anchorHint{left:auto!important;right:12px!important;transform:none!important;bottom:225px!important;max-width:48vw;font-size:9px!important}#prompt{bottom:326px!important;max-width:88vw!important;font-size:10px!important}#welcome{padding:26px;background:linear-gradient(90deg,#101c29f5,#101c29cb)}#welcome h1{font-size:48px}#welcome p{font-size:13px}#welcome footer{font-size:9px;margin-top:12px}#welcome .eyebrow{font-size:9px;margin-bottom:14px}#places{margin-top:12px}}
@media(max-height:500px){#welcome{padding:16px 76px}#welcome article{max-width:650px}#welcome h1{font-size:34px;margin-bottom:8px}#welcome p{margin:6px 0;max-width:500px}#welcome .eyebrow{margin-bottom:8px}#welcome footer,#welcome .hint{display:none}#startButton{min-height:44px}#places{display:inline-flex;margin:6px 0 0 12px}#welcome #logDownload{margin:0 0 0 12px}#minimap{bottom:153px!important;width:146px!important;height:85px!important}#compass{bottom:240px;height:36px}#addressButton{bottom:105px!important}#stick{width:82px;height:82px;bottom:10px}#stick i{left:21px;top:21px}#touchActions{bottom:10px}#releaseCue{bottom:135px;font-size:9px}#anchorHint{bottom:189px!important}#prompt{bottom:14px!important;max-width:40vw!important}#controls{display:none}}

/* Menu tools participate in its layout, rather than floating over another button. */
#welcome #addressButton{position:static!important;display:inline-block!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;width:auto!important;min-width:220px!important;min-height:44px!important;margin:10px 8px 0 0!important;padding:10px 14px!important;font-size:11px!important;vertical-align:middle}
#welcome #logStatus{display:block!important;max-width:560px;margin-top:8px;font:11px/1.4 system-ui,sans-serif;letter-spacing:0;color:#b7c8bd;overflow-wrap:anywhere}


/* Mission notices retain horizontal centering while the shared on-state is active. */
#prompt{width:max-content;box-sizing:border-box}
#prompt.on{transform:translateX(-50%) translateY(-2px)!important}

/* A hazard cue is distinct from the ordinary rising-arc release window. */
#releaseCue[data-phase="avoid"]{color:#ffe2a6;border-color:#d6a75d;background:rgba(45,33,20,.94)}

#roofStartButton{display:block;min-height:52px;max-width:100%;padding:12px 18px;margin-top:10px;border:1px solid #e2c68e;border-radius:4px;background:#20313e;color:#f1d7a1;font-weight:700;cursor:pointer}#roofStartButton[hidden]{display:none}

/* Short menu screens keep every action in the viewport, without scroll containers. */
#welcome{padding:20px;overflow:hidden;justify-content:flex-start;align-items:center}
#welcome article{width:min(760px,100%);max-width:760px;max-height:none;margin:0;padding:22px;background:#14212beb;border:1px solid #a5b4bc44;border-radius:8px;overflow:visible;box-sizing:border-box}
#welcome .menuHeader{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}
#welcome .eyebrow{margin:0 0 7px;font-size:11px}
#welcome h1{font:500 36px/1.04 Georgia,serif;margin:0;letter-spacing:-.03em}
#welcome h2{font:600 20px/1.2 system-ui;margin:0 0 6px}
#welcome button{min-height:44px;min-width:44px;margin:0;padding:9px 12px;border:1px solid #bdad8b77;border-radius:4px;background:#20313e;color:#f1e5cc;font:600 14px/1.25 system-ui;cursor:pointer;box-sizing:border-box;white-space:normal}
#welcome button:disabled{opacity:.5}
#welcome #startButton{background:#e2c68e;color:#15222c}
#welcome [data-menu-screen]{display:grid;gap:12px}
#welcome [data-menu-screen][hidden],#welcome button[hidden]{display:none!important}
#welcome [data-menu-screen="main"]{grid-template-columns:1fr 1fr;column-gap:18px}
#welcome .menuLaunch{display:grid;gap:8px;grid-column:1;grid-row:1 / span 2;align-content:start}
#welcome .menuNavigation{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;align-items:start}
#welcome #menuLogTools{display:flex;flex-direction:column;gap:8px;min-width:0}
/* пульт звука в меню: кнопка и ползунок ≥44 px по высоте (свод п.29б, касание) */
#welcome .zvukPult{display:flex;flex-direction:column;gap:6px;padding:8px 0 4px;border-bottom:1px solid rgba(226,198,142,.25)}
#welcome #zvukVkl{min-height:44px;padding:8px 12px;border:1px solid #e2c68e;background:#31485a;color:#fff;font-size:14px;cursor:pointer}
#welcome #zvukVkl[aria-pressed="false"]{background:#2a2f36;color:#adb9bf}
#welcome #zvukVkl:disabled{opacity:.6;cursor:default}
#welcome .zvukGromk{display:flex;flex-direction:column;gap:2px;font-size:12px;color:#adb9bf}
#welcome .zvukGromk input{width:100%;min-height:44px;accent-color:#e2c68e}
#welcome #logDownload{order:-2;width:100%;padding:10px 12px;border:1px solid #e2c68e;background:#31485a;color:#fff;font-size:14px;margin:0}
#welcome #logStatus{order:-1;display:block!important;font:14px/1.3 system-ui;margin:0;max-width:100%;overflow-wrap:anywhere}
#welcome small{font:14px/1.35 system-ui;color:#c2ccd0}
#welcome #places{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0}
#welcome #places button{font-size:14px}
#welcome #addressButton{margin:0!important;min-width:180px!important;font-size:14px!important}
#welcome footer{display:flex;align-items:center;justify-content:space-between;gap:10px;font:14px/1.35 system-ui;margin:0;max-width:none}#welcome footer span{min-width:0}#welcome footer a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:44px;min-height:44px;padding:8px 12px;border:1px solid #bdad8b77;border-radius:4px;font:inherit;color:#f1e5cc;vertical-align:middle}
#welcome .menuMissionGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#welcome .controlGrid{display:grid;grid-template-columns:1.2fr 1fr;gap:18px}
#welcome .controlList{display:grid;gap:8px}
#welcome .controlList p{display:grid;grid-template-columns:98px 1fr;gap:10px;max-width:none;font:14px/1.3 system-ui;margin:0}
#welcome .lookPreference{font:14px/1.4 system-ui;display:flex;flex-direction:column;gap:8px;align-self:start}
#welcome .lookPreference>span{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
#invertLook{width:24px;height:24px;flex:0 0 24px;margin:0;accent-color:#e2c68e}
@media(max-width:600px){#welcome{padding:14px}#welcome article{padding:18px}#welcome h1{font-size:32px}#welcome [data-menu-screen="main"]{grid-template-columns:1fr}#welcome .menuLaunch{grid-column:auto;grid-row:auto}#welcome .menuNavigation{grid-template-columns:repeat(3,1fr)}#welcome #places{grid-template-columns:1fr 1fr}#welcome .controlGrid{grid-template-columns:1fr;gap:12px}#welcome .menuHeader{margin-bottom:14px}}
@media(max-height:500px){#welcome{padding:12px}#welcome article{padding:14px;width:min(800px,100%)}#welcome .menuHeader{margin-bottom:10px}#welcome h1{font-size:28px}#welcome .eyebrow{margin-bottom:4px}#welcome [data-menu-screen]{gap:8px}#welcome .controlList{gap:5px}#welcome .controlList p{grid-template-columns:95px 1fr;gap:8px}#welcome .menuLaunch{gap:6px}#welcome .menuNavigation button{padding:6px}#welcome #places{gap:6px}}

/* «← НА САЙТ» (site-shell, Рот 29.11): правее паузы, 44 px, видна и в меню */
#naSayt{position:fixed;z-index:30;left:76px;top:24px;height:44px;display:flex;align-items:center;padding:0 14px;color:#f0e7d3;background:#14212bdb;border:1px solid #e8e5d340;border-radius:5px;font:700 13px/1 system-ui,sans-serif;letter-spacing:.06em;text-decoration:none}
@media(max-width:760px),(pointer:coarse){#naSayt{top:12px;left:64px;font-size:12px;padding:0 10px}}

/* «Кольца над Питером» (29.11): панель цели и кнопка в меню */
#kolcaPanel{position:fixed;z-index:25;left:24px;top:80px;min-width:220px;padding:10px 14px;color:#f0e7d3;background:#14212bdb;border:1px solid #e2c68e66;border-radius:5px;font:600 13px/1.35 system-ui,sans-serif;pointer-events:none}
#kolcaPanel small{display:block;font-size:9px;letter-spacing:.14em;color:#e2c68e}#kolcaPanel b{display:block;font-size:15px;margin:2px 0 4px}
.kolcaRyad{display:flex;gap:10px;align-items:center}#kolcaStrelka{font-style:normal;font-size:22px;color:#e2c68e;display:inline-block;transition:transform .12s}
#kolcaFlash{color:#9fe0b0;font-weight:800;min-height:1em}
#kolcaStart{display:block;width:100%;min-height:44px;margin-top:10px;border:1px solid #e2c68e;background:#2a3d4c;color:#f0e7d3;font:700 15px system-ui,sans-serif;border-radius:5px;cursor:pointer}
@media(max-width:760px),(pointer:coarse){#kolcaPanel{left:12px;top:64px;min-width:0;max-width:200px;font-size:12px}#kolcaPanel b{font-size:13px}}
