:root{color-scheme:dark;--gold:#ffd169;--ivory:#f4f1e9;--muted:#adb1bb;--mono:"Space Mono",monospace;--display:"Barlow Condensed","Arial Narrow",sans-serif}
*{box-sizing:border-box}body{margin:0;background:#101115;color:var(--ivory);font:16px/1.5 "DM Sans",system-ui,sans-serif}body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 60% -45%,#272837,transparent 70%)}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible{outline:3px solid #99d6ff;outline-offset:4px}button:active{translate:0 1px}button:disabled{opacity:.5;cursor:wait}button,dialog{touch-action:manipulation}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.symbols{display:none}[hidden]{display:none!important}
.shell{width:calc(100% - clamp(38px,7.8vw,144px));max-width:1640px;margin:auto}.mast{height:clamp(76px,6.1vw,99px);display:flex;align-items:center;justify-content:space-between}.brand,.tools,.tool,.actions,.eyebrow,.location,.panel-heading,.brief-item,.control-grid>div,footer,footer>span,.keys,.hud-tile,.top-hud,.gaze,.prompt,.hud-pause,.close{display:flex;align-items:center}.brand{gap:11px}.brand img{width:39px;height:39px}.brand span{font:900 italic 33px/.9 var(--display);letter-spacing:.6px}.brand b{font:400 10px/1 var(--mono);letter-spacing:2.1px;padding:5px 6px 5px 8px;color:var(--gold);border:1px solid #6d5c37;border-radius:3px;margin:3px 0 0 -3px}.tools{gap:16px}.tool{justify-content:center;gap:9px;border:0;background:transparent;color:#d3d3da;font-size:13px;font-weight:600;border-radius:5px;min-height:38px}.tool:hover,.square:hover{background:#27292e;color:var(--gold)}.tool-split{height:19px;width:1px;background:#3b3c43}.tool svg{width:18px;height:18px}.sound{padding:0 8px}.sound-led{width:5px;height:5px;border-radius:50%;background:var(--gold)}.sound[aria-pressed=false] .sound-led{background:#747783}.square{width:37px;border:1px solid #36383e;background:#191b20}
.arena{isolation:isolate;border:1px solid #484d59;border-radius:8px;overflow:hidden;position:relative;height:clamp(460px,37.8vw,650px);background:#162846;box-shadow:0 12px 42px #0003}.art,.shade,#viewport,.vignette,#fireflies{position:absolute;inset:0;pointer-events:none}.art{z-index:-4;background:url(assets/dolina.webp) 72% 48%/cover no-repeat}.shade{z-index:-3;background:linear-gradient(90deg,rgba(6,12,22,.77),rgba(6,12,24,.48) 28%,transparent 57%),linear-gradient(0deg,#060b1680,transparent 20%)}.frame{width:15px;height:15px;position:absolute;z-index:4;pointer-events:none;border:solid #e6d29b99;border-width:0}.tl{left:8px;top:8px;border-top-width:1px;border-left-width:1px}.tr{right:8px;top:8px;border-top-width:1px;border-right-width:1px}.bl{left:8px;bottom:8px;border-bottom-width:1px;border-left-width:1px}.br{right:8px;bottom:8px;border-bottom-width:1px;border-right-width:1px}.cover{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;height:100%;width:max-content;max-width:100%;padding:20px 0 25px clamp(26px,4.25vw,84px)}.eyebrow,.location,footer,.objective,.gaze,.hud-tile,.dialog-mono{font-family:var(--mono)}.eyebrow{gap:11px;font-size:11px;letter-spacing:2.6px;color:var(--gold);font-weight:400}.tiny-rule{width:23px;height:2px;background:var(--gold)}h1{font:italic 900 clamp(84px,7.8vw,137px)/.8 var(--display);margin:19px 0 17px -.052em;letter-spacing:-.025em;padding-right:10px;color:#f7f4e8;text-shadow:1px 4px 0 #0f122b40}h1 em{font:inherit;color:#ffd063}.cover p{color:#dbdfe6;line-height:1.52;margin:4px 0 24px;font-size:clamp(15px,1.12vw,19px);text-shadow:0 2px 10px #000}.actions{gap:12px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;font-size:14px;line-height:1.2;font-weight:600;padding:0 21px;border:1px solid transparent;border-radius:5px;transition:background .16s,box-shadow .16s}.gold{background:var(--gold);border-color:#ffdb85;color:#232019;box-shadow:inset 0 -2px #c69336,0 3px 12px #0003}.gold:hover{background:#ffdd91;box-shadow:0 0 18px #ffc45140}.gold svg{width:16px;height:16px}.glass{border-color:#6d747e9c;background:#171f2bba;color:#e9eced;backdrop-filter:blur(6px)}.glass:hover{background:#2c3647}.glass svg{width:17px;height:17px}
.location{position:absolute;right:25px;bottom:21px;color:#eee9df;gap:8px;padding:6px 10px;font-size:10px;letter-spacing:1.7px;background:#10141dbd;border:1px solid #7a7e804d;border-radius:3px;backdrop-filter:blur(6px)}.location svg{width:14px;height:14px;color:var(--gold)}.panels{display:grid;grid-template-columns:minmax(0,1.42fr) minmax(0,1fr);gap:18px;margin:20px 0 0}.panel{border:1px solid #32353d;border-radius:7px;background:linear-gradient(120deg,#1b1d23,#181a20);padding:18px 23px 23px;min-width:0}.panel-heading{gap:10px;margin-bottom:18px}.panel-heading>svg{color:var(--gold);width:19px;height:19px}.panel-heading h2{margin:0;font:700 23px/1.1 var(--display);letter-spacing:.15px}.leader{height:1px;flex:1;background:#383b43;margin-left:4px}.brief-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.brief-item{align-items:flex-start;gap:12px}.badge-icon{flex-shrink:0;display:grid;place-items:center;height:36px;width:36px;background:#332d213f;color:var(--gold);border:1px solid #605039;border-radius:5px}.badge-icon svg{width:21px;height:21px}.blue{color:#9cb4ed;background:#242b3b70;border-color:#414d64}.brief-item h3{font:600 14px/1.3 "DM Sans",sans-serif;color:#efeee9;margin:0 0 5px}.brief-item p{color:#b3b4be;font-size:13px;line-height:1.5;margin:0;max-width:245px}.control-grid{display:grid;grid-template-columns:minmax(135px,1.4fr) minmax(68px,1fr);gap:11px 20px}.control-grid>div{gap:10px;font-size:13px;color:#b8b9c3}.keys{gap:3px}kbd{font:400 11px/20px var(--mono);display:inline-flex;align-items:center;justify-content:center;height:24px;min-width:24px;padding:0 5px;background:linear-gradient(#33363d,#292c33);border:1px solid #4d505a;border-bottom:2px solid #484c57;color:#e9e7e1;box-shadow:0 1px 0 #0b0d12;border-radius:4px}.touch-description{display:none}footer{justify-content:space-between;color:#93959e;font-size:10px;letter-spacing:1.2px;padding:19px 3px 22px}footer>span{gap:8px}footer>span:first-child{letter-spacing:.4px}footer i{width:6px;height:6px;background:#92ad8a;border-radius:50%}
#fireflies{z-index:-1;overflow:hidden}.spark{position:absolute;background:#ffdb83;border-radius:50%;width:2px;height:2px;box-shadow:0 0 5px 1px #ffc05599;animation:drift 8s infinite ease-in-out alternate}@keyframes drift{0%{transform:translate(0,0);opacity:.1}60%{opacity:.9}100%{transform:translate(15px,-13px);opacity:.3}}
#viewport{z-index:-2;display:none}#viewport canvas{display:block;width:100%;height:100%}.playing #viewport{display:block}.playing .art,.playing .shade,.playing #fireflies{display:none}.playing .vignette{background:linear-gradient(0deg,#070d1b70,transparent 18%,transparent 80%,#070d1b45);z-index:-1}.arena.danger{box-shadow:inset 0 0 70px #fc613466}.danger .vignette{box-shadow:inset 0 0 55px #ff784c66}.top-hud{position:absolute;top:19px;left:20px;right:20px;gap:7px}.hud-tile,.hud-pause,.gaze,.objective,.prompt{background:#0a101bd9;border:1px solid #717d8c7a;border-radius:5px}.hud-tile{gap:8px;font-size:13px;padding:7px 12px}.hud-tile svg,.prompt svg{color:var(--gold);width:17px}.hud-pause{margin-left:auto;justify-content:center;width:36px;height:36px}.hud-pause svg{width:15px}.gaze{position:absolute;top:20px;left:50%;transform:translateX(-50%);gap:8px;font-size:11px;padding:8px 13px;white-space:nowrap}.gaze svg{color:#a2c7ee;width:17px;height:17px}.gaze i{width:36px;height:4px;background:#363e49;border-radius:2px;overflow:hidden}.gaze i b{display:block;height:100%;background:#9abbe5}.warning svg,.warning i b{color:var(--gold)}.warning i b{background:var(--gold)}.watching{color:#ffb49d;border-color:#f09271}.watching svg{color:#ff9e7b}.watching i b{background:#fe9475}.objective{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);padding:7px 13px;color:#e4dcbd;font-size:11px;white-space:nowrap}.prompt{position:absolute;top:62%;left:50%;transform:translateX(-50%);gap:8px;padding:8px 12px;color:var(--gold);font-size:13px}.touchpad{display:none}
dialog{position:fixed;inset:0;margin:auto;width:min(435px,calc(100vw - 32px));padding:30px;border:1px solid #545660;border-radius:9px;color:var(--ivory);background:linear-gradient(145deg,#22262f,#15171d);box-shadow:0 18px 100px #000b}dialog::backdrop{background:#02050bc2;backdrop-filter:blur(5px)}dialog h2{font:900 italic 47px/.95 var(--display);text-transform:uppercase;margin:14px 0 18px}dialog .close{position:absolute;justify-content:center;top:12px;right:12px;width:32px;height:32px;background:#ffffff08;border:1px solid #434550;border-radius:4px}dialog .close svg{width:16px}dialog p{color:#c0c4ce;font-size:14px;line-height:1.6;margin:0 0 16px}dialog .actions{margin-top:23px}.manual-row{display:flex;gap:13px;align-items:flex-start;margin-top:14px}.manual-row svg{color:var(--gold);margin-top:3px}.manual-row p{margin:0}.manual-row strong{color:#f5f1df}.dialog-mono{color:var(--gold);font-size:11px;letter-spacing:1px}
@media(min-width:1600px){.panel{padding:25px 30px 30px}.brief-item p,.control-grid>div{font-size:15px}.brief-item h3{font-size:16px}}
@media(max-width:960px){.shell{width:calc(100% - 44px)}.panel{padding:17px}.panels{grid-template-columns:1.2fr 1fr;gap:12px}.brief-grid{gap:12px}.brief-item{display:block}.badge-icon{margin-bottom:8px}.control-grid{gap:12px}.cover{padding-left:32px}.gaze{top:64px}.arena{height:455px}}
@media(max-width:700px){.shell{width:calc(100% - 28px)}.mast{height:68px}.brand{gap:7px}.brand img{width:32px;height:32px}.brand span{font-size:29px}.brand b{font-size:8px;letter-spacing:1.4px}.tools{gap:7px}.tool-split{display:none}.sound span,.sound-led{display:none}.sound,.square{width:34px;height:34px;min-height:34px;border:1px solid #383a42;background:#1b1d22}.arena{height:clamp(490px,66svh,600px)}.art{background-size:auto 76%;background-position:72% 0;background-color:#07101f}.shade{background:linear-gradient(0deg,#070e1a 5%,#07101ef5 27%,#07101e69 62%,transparent 78%)}.cover{justify-content:flex-end;padding:20px 21px 29px}.eyebrow{font-size:10px;letter-spacing:2px}h1{font-size:clamp(75px,14vw,88px);margin:14px 0}.cover p{margin:2px 0 17px;font-size:14px}.button{min-height:43px;padding:0 15px;font-size:13px}.location{top:15px;left:16px;right:auto;bottom:auto;font-size:8px;padding:4px 7px;letter-spacing:1px}.location svg{width:12px}.panels{grid-template-columns:1fr;margin-top:13px}.brief-item{display:flex;gap:9px}.brief-grid{gap:18px}.brief-item h3{font-size:13px}.brief-item p{font-size:12px}.badge-icon{width:29px;height:31px}.badge-icon svg{width:17px}.control-grid{grid-template-columns:1.25fr 1fr}.panel-heading h2{font-size:21px}.panel-heading{margin-bottom:16px}.objective{bottom:18px}.gaze{top:62px}.top-hud{top:15px;left:14px;right:14px}footer{font-size:9px}.playing.arena{height:clamp(490px,74svh,720px)}}
@media(pointer:coarse), (any-pointer:coarse), (max-width:700px){.playing .touchpad{display:block}.touch-description{display:block;font-size:13px;color:var(--muted)}.control-grid{display:none}.touchpad button{border:1px solid #a8b5c399;background:#141d2bbd;color:#fbdf94;border-radius:7px;touch-action:none;user-select:none;-webkit-user-select:none}.touchpad button:active,.touchpad button.held{background:#696249}.dpad{position:absolute;bottom:16px;left:15px;display:grid;grid-template-columns:repeat(3,39px);grid-template-rows:repeat(2,38px);gap:3px}.up{grid-area:1/2}.left{grid-area:2/1}.down{grid-area:2/2}.right{grid-area:2/3}.touch-lamp{position:absolute;right:20px;bottom:21px;width:54px;height:54px}.touch-lamp svg{width:25px;height:25px}.objective{bottom:108px;max-width:94%;font-size:10px}.prompt kbd{display:none}}
@media(max-height:540px) and (orientation:landscape){.playing.arena{height:calc(100svh - 12px);min-height:260px}.arena:has(#hud:not([hidden])){scroll-margin:6px}.gaze{top:16px}.objective{bottom:10px}.prompt{top:54%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
:fullscreen .shell{max-width:1920px}
.wide-view .shell{width:calc(100% - 14px);max-width:none}.wide-view .arena{height:calc(100svh - 82px);min-height:360px}
/* During the expedition the view takes the available screen height. */
body:has(.arena.playing) .panels,body:has(.arena.playing) footer{display:none}
body:has(.arena.playing) .mast{height:58px}
body:has(.arena.playing) .shell{width:calc(100% - 32px);max-width:1920px}
.arena.playing{height:calc(100svh - 72px);min-height:300px;max-height:1160px}
.top-hud{top:18px;left:20px;right:20px}.mission span{font:600 12px "DM Sans",sans-serif;color:#d7d9d8}.gaze{top:20px}
.order{position:absolute;bottom:22px;left:23px;padding:11px 15px 12px 13px;border-left:2px solid #f5c761;background:linear-gradient(90deg,#060e18e8 0%,#07101bcc 72%,#06101a55);border-radius:0 4px 4px 0;display:flex;flex-direction:column;align-items:flex-start;pointer-events:none}
.order-where{font:10px var(--mono);text-transform:uppercase;color:var(--gold);letter-spacing:1.8px}.order strong{font:700 25px/1.2 var(--display);margin:3px 0;color:#fff7e1}.order>span:last-child{font-size:12px;color:#e0e4e9}
.waypoint{pointer-events:none;position:absolute;transform:translate(-50%,-100%);display:flex;flex-direction:column;align-items:center;filter:drop-shadow(0 1px 4px #070a0b)}
.waypoint span{background:#10151cda;color:#ffe5a8;border:1px solid #a88b588c;border-radius:3px;white-space:nowrap;margin-bottom:6px;padding:3px 8px;font:11px "DM Sans",sans-serif;font-weight:600}.waypoint i{width:9px;height:9px;border:1.6px solid #ffe093;transform:rotate(45deg);background:#6d512c}
.prompt{top:auto;bottom:27px;left:50%;transform:translateX(-50%);z-index:2;min-height:45px;padding:9px 19px;background:#ffd279;color:#201b13;border:1px solid #ffdf91;font-weight:600;box-shadow:0 2px 18px #0b0a0b77}.prompt svg{display:none}.prompt kbd{color:#2b2213;background:#f5c566;border-color:#a67b38;box-shadow:none}
.discovery{position:absolute;left:50%;top:21%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:13px;white-space:nowrap;color:#fee6b4;text-shadow:0 2px 6px #02050a,0 0 18px #121c23;font:700 clamp(22px,2.4vw,40px) var(--display);pointer-events:none}.discovery i{width:27px;height:1px;background:#edcf95}
.touch-lamp.ready{border-color:var(--gold);background:#87613b}
@media(max-width:760px){.gaze{top:62px}.order{left:16px;bottom:17px}.order strong{font-size:21px}.prompt{bottom:115px}.discovery{top:24%}}
@media(pointer:coarse), (any-pointer:coarse), (max-width:700px){body:has(.arena.playing) .shell{width:calc(100% - 12px)}body:has(.arena.playing) .mast{height:51px;padding:0 7px}.arena.playing{height:calc(100svh - 58px);min-height:280px}.order{bottom:107px;left:12px;padding:7px 10px}.order-where{font-size:8px}.order strong{font-size:19px}.order>span:last-child{font-size:11px}.prompt{bottom:33px;left:auto;right:15px;transform:none}.prompt svg{display:block;color:inherit}.touchpad:has(.touch-lamp.ready) .touch-lamp{visibility:hidden}.top-hud{left:12px;right:12px;top:13px}.gaze{top:60px}}
@media(max-height:520px) and (orientation:landscape){body:has(.arena.playing) .mast{display:none}.arena.playing{height:calc(100svh - 6px);margin-top:3px}.gaze{top:13px}.discovery{top:27%}.order{left:155px;bottom:12px}}
.echo-action{position:absolute;right:24px;bottom:26px;z-index:3;display:flex;align-items:center;gap:9px;padding:9px 14px;min-height:42px;border:1px solid #91b9c0;border-radius:5px;color:#c5fbff;background:#10212ce8;font-size:13px;font-weight:600;box-shadow:0 2px 14px #0005}.echo-action:hover{background:#21404b}.echo-action.pin{left:50%;right:auto;transform:translateX(-50%);border-color:#ffd17d;background:#ffce79;color:#262019}.echo-action.pin kbd{background:#eeb967;border-color:#ac823f;color:#282017}.echo-gaze{color:#a9f8ed;border-color:#69b2ab}.echo-gaze svg{color:#a9f8ed}.waypoint.cyan span{border-color:#72d5cf;color:#befffa}.waypoint.cyan i{border-color:#a0fff9;background:#297e7b}
.rewinding .order,.rewinding .touchpad,.rewinding .top-hud .hud-tile,.rewinding .gaze{opacity:0;pointer-events:none}.playing.rewinding .vignette{box-shadow:inset 0 0 64px #113a4938}
@media(pointer:coarse), (any-pointer:coarse), (max-width:700px){.echo-action{right:14px;bottom:81px;min-height:35px;padding:6px 10px;font-size:12px}.echo-action.pin{left:auto;right:15px;bottom:27px;transform:none}.echo-action kbd{display:none}}
