@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--red:#e63737;--text:#d1d3d5;--muted:#929397;--line:#dc30304a;--panel:#090a0dea;--font:'Source Code Pro',Consolas,monospace}*{box-sizing:border-box}html,body{margin:0;height:100%;width:100%;overflow:hidden;background:#050505;color:var(--text);font-family:var(--font)}button,a{-webkit-tap-highlight-color:transparent}button{font-family:inherit;color:inherit;border:0;background:none;cursor:pointer;min-height:44px}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:1px solid var(--red);outline-offset:5px}button:disabled{opacity:.4;cursor:wait}[hidden]{display:none!important}#mapCanvas{position:fixed;inset:0;width:100%;height:100%;touch-action:none;outline:none}.scan-screen{position:fixed;inset:0;z-index:2;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 3px,#00000018 4px);opacity:.45}body.toon[data-screen=map] .scan-screen{display:none}header{position:absolute;top:0;left:0;right:0;padding:25px 34px;display:flex;align-items:center;gap:22px;z-index:20;pointer-events:none}header>*{pointer-events:auto}.wordmark{font-size:23px;letter-spacing:.06em;font-weight:600;color:var(--red);display:flex;gap:16px;align-items:center}.wordmark span{font-size:10px;letter-spacing:.12em;font-weight:400;color:#c54949;border-left:1px solid var(--line);padding-left:16px}.header-status{margin-left:auto;display:flex;gap:10px;align-items:center;font-size:8px;letter-spacing:.1em;color:#999}.header-status i{width:4px;height:4px;background:#d64040;box-shadow:0 0 8px #d6404060}#helpMap,#backHome{font-size:10px;letter-spacing:.05em;color:#babaBC}#helpMap{min-width:44px;white-space:nowrap;padding:0 6px}#backHome{border-bottom:1px solid var(--line);padding:0 12px}#homeScreen,#helmetScreen{position:absolute;inset:0;pointer-events:none;z-index:3}#homeScreen button,#homeScreen a,#helmetScreen button{pointer-events:auto}.home-copy{position:absolute;left:8%;top:24%;max-width:520px}.eyebrow{font-size:9px;letter-spacing:.13em;color:var(--red)}h1{font-size:clamp(40px,5.5vw,82px);font-weight:500;line-height:1.02;letter-spacing:-.045em;color:var(--red);margin:26px 0 12px}.cursor{animation:blink 1.3s step-end infinite}.home-subtitle{font-size:11px;color:#8e3030;margin:0 0 38px}.home-statement{font-size:15px;line-height:1.8;color:#d34a4a}.home-description{font-size:11px;color:#8f9297;line-height:1.8;margin:24px 0}#tryHelmet{display:flex;align-items:center;justify-content:space-between;gap:45px;border:1px solid #cd3434;padding:15px 22px;color:#e14848;font-size:13px;transition:background .2s}#tryHelmet:hover{background:#db343414}#tryHelmet span{font-size:20px}#helmetStatus{font-size:8px;color:#723b3b;letter-spacing:.13em;margin-top:13px}.home-caption{position:absolute;right:10%;bottom:23%;font-size:8px;color:#8e8f94;display:flex;flex-direction:column;gap:7px;letter-spacing:.12em}.home-caption span:first-child{color:#c34848}.home-footer,.map-footer{position:absolute;bottom:0;left:34px;right:34px;min-height:57px;display:flex;align-items:center;gap:30px;border-top:1px solid var(--line);font-size:8px;color:#8e6d6d;letter-spacing:.06em}.home-footer span:nth-child(2){margin-left:auto;color:#656568}.home-footer a{color:#aa5151}.helmet-heading{position:absolute;left:0;top:16%;text-align:center;width:100%}.helmet-heading h2{font-size:20px;font-weight:400;color:#94969b;margin:12px}.helmet-instruction{position:absolute;bottom:12%;width:100%;text-align:center}#activateHelmet{font-size:12px;letter-spacing:.16em;color:#de4242;padding:10px 28px;border:1px solid var(--line)}#loadMessage{font-size:8px;letter-spacing:.15em;color:#8e5656}.helmet-instruction small{font-size:9px;color:#6b6d72}.screen-shade{position:fixed;inset:0;pointer-events:none;background:linear-gradient(0deg,#05060725,transparent 15%,transparent 86%,#05060733)}#mapUI{position:absolute;inset:0;pointer-events:none;z-index:4}#mapUI button,#mapUI a,#mapUI iframe{pointer-events:auto}.mode-controls{position:absolute;right:95px;top:25px;display:flex;border:1px solid var(--line);background:#07090dc9;padding:3px}.mode-controls button{font-size:9px;letter-spacing:.08em;min-height:35px;padding:0 18px}.mode-controls .selected{background:#bd2f2f;color:#090909}body[data-screen=map] header .header-status{display:none}body[data-screen=map] header #backHome{margin-left:auto;margin-right:315px}#sidebar{position:absolute;left:34px;top:136px;width:255px;padding-bottom:20px;border-bottom:1px solid var(--line)}.side-heading{font-size:9px;letter-spacing:.15em;color:#d35a5a;margin-bottom:21px}.overview-button{border:1px solid #dc4242;width:100%;padding:10px 13px;display:flex;gap:12px;align-items:center;font-size:10px;color:#e66f6f;background:#631e1e46;margin-bottom:14px}.overview-button span{font-size:20px}.overview-button i{font-style:normal;margin-left:auto}.place-button{display:flex;gap:13px;align-items:center;width:100%;text-align:left;padding:10px 12px;min-height:44px;border-left:1px solid #ffffff15}.place-button span{font-size:9px;color:#a25252}.place-button strong{font-size:10px;font-weight:400;line-height:1.6}.place-button i{font-style:normal;font-size:13px;margin-left:auto;opacity:0}.place-button.selected{border-left-color:#e54848;background:linear-gradient(90deg,#99292935,transparent);color:#ffafaf}.place-button:hover i{opacity:1}.sidebar-note{font-size:8px;line-height:1.8;color:#806969;letter-spacing:.08em;padding:20px 12px}#exportMap{border:1px solid #ffffff25;display:flex;align-items:center;width:100%;padding:0 12px;font-size:8px;letter-spacing:.08em;color:#999}#exportMap small{margin-left:auto}.view-tools{position:absolute;right:34px;top:105px;display:flex;align-items:center;gap:12px;font-size:8px;color:#ad9292}.view-tools button{border:1px solid #ffffff26;font-size:8px;letter-spacing:.06em;padding:0 12px;min-height:32px;background:#08090dbb}.view-tools .selected{color:#f07878;border-color:#b44c4c}#placeCard{position:absolute;right:34px;top:165px;width:320px;padding:20px;border:1px solid #ffffff1c;background:var(--panel);backdrop-filter:blur(12px)}#placeNumber{color:#e06969;font-size:8px;letter-spacing:.09em}#placeName{font-size:21px;line-height:1.35;font-weight:400;margin:17px 0 12px;color:#e1d8d8}#placeDesc{font-size:10px;line-height:1.85;color:#a5a4a9;margin:0}#walkHere{font-size:9px;letter-spacing:.06em;border-top:1px solid #fff2;padding:14px 0 0;margin-top:16px;width:100%;display:flex;justify-content:space-between;align-items:center}#walkHere span{font-size:20px}.walking #placeCard{background:#08090b99}.walking #placeDesc{font-size:9px}.walking #walkHere{display:none}.map-footer{font-size:8px;color:#bab0b0;min-height:48px;gap:25px}#coords{margin-left:auto}.world-label{position:absolute;transform:translate(-50%,-50%);border:1px solid #a8404080;background:#0b0c11df;display:flex;gap:9px;align-items:center;padding:5px 9px;min-height:30px;white-space:nowrap;box-shadow:0 2px 16px #0008}.world-label:after{content:'';position:absolute;left:50%;top:100%;width:1px;height:20px;background:#c8505088}.world-label span{font-size:8px;color:#d94f4f}.world-label b{font-weight:400;font-size:8px;letter-spacing:.06em}#labels{position:absolute;inset:0;pointer-events:none}#labels button{pointer-events:auto}#musicToggle{position:absolute;right:34px;bottom:67px;padding:0 14px;border:1px solid #b44e4e;font-size:9px;letter-spacing:.08em;background:#0d0d12e8;color:#f07474}#musicPanel{position:absolute;right:34px;bottom:120px;width:330px;padding:12px;border:1px solid #813838;background:#090b10f5;pointer-events:auto;backdrop-filter:blur(16px)}.music-top{display:flex;justify-content:space-between;align-items:center;font-size:8px;color:#b65151}.music-top button{min-height:28px;width:30px;font-size:20px}#musicZone{font-size:10px;color:#c2bebe;margin:6px 0 8px}#trackTabs{display:flex;gap:7px;margin-bottom:9px}#trackTabs button{min-height:28px;width:35px;font-size:9px;border:1px solid #ffffff25}#trackTabs .selected{border-color:#c54141;color:#e86e6e}.music-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:8px}.music-bottom small{font-size:7px;color:#929095}.music-bottom a{font-size:8px;color:#e18a8a}#spotifyHost{min-height:80px}#joystickMap{position:absolute;bottom:85px;left:25px;width:108px;height:108px;border:1px solid #a9a9b066;border-radius:50%;background:#120e154d;touch-action:none;pointer-events:auto}#joyKnob{position:absolute;left:34px;top:34px;width:40px;height:40px;border:1px solid #ffffff77;background:#af969680;border-radius:50%;pointer-events:none}#touchPortal{position:absolute;right:25px;bottom:145px;border:1px solid #bc8def;background:#2a193a88;border-radius:50%;width:65px;height:65px;font-size:23px}#portalAction{position:absolute;bottom:19%;left:50%;transform:translateX(-50%);padding:13px 24px;font-size:11px;color:#d5b4fa;background:#21142fdc;border:1px solid #a67bd2}#toastMap{position:absolute;top:95px;left:50%;transform:translate(-50%,-14px);opacity:0;transition:.25s;pointer-events:none;padding:13px 22px;border:1px solid #ffffff33;background:#101118f2;font-size:10px;text-align:center;max-width:80%;z-index:80}#toastMap.show{opacity:1;transform:translate(-50%,0)}#teleFade{position:fixed;inset:0;background:radial-gradient(ellipse,#8053c4,#170d29);opacity:0;pointer-events:none;transition:opacity .35s;z-index:90}#teleFade.active{opacity:1}#glitchTransition{position:fixed;inset:0;pointer-events:none;z-index:95;background:transparent;overflow:hidden}.code-tunnel{display:none;position:absolute;inset:-80%;background:repeating-radial-gradient(ellipse at center,transparent 0 5%,#a52c2c33 5.1% 5.3%,transparent 5.5% 10%);animation:tunnel 1.4s linear infinite;transform:perspective(200px)}#transitionCode{position:absolute;left:8%;top:20%;font:11px/2.1 var(--font);color:#dc4949;text-shadow:2px 0 #294749;animation:code-offset .7s steps(2) infinite}.glitch-label{position:absolute;top:48%;width:100%;text-align:center;color:#d23737;font-size:clamp(40px,8vw,100px);letter-spacing:.2em;animation:code-offset 1.1s steps(2) infinite}.glitch-label span{display:block;font-size:9px;letter-spacing:.25em;margin-top:24px;color:#956262}.reduced .code-tunnel,.reduced #transitionCode,.reduced .glitch-label,.reduced .cursor{animation:none}.reduced #teleFade{transition:none}.reduced .code-tunnel{opacity:.2}dialog{max-width:580px;width:calc(100% - 36px);padding:42px;background:#0b0d11f5;color:#b7b8be;border:1px solid #8c3636;backdrop-filter:blur(20px)}dialog::backdrop{background:#030305bd}dialog h2{font-size:24px;font-weight:400;color:#d74f4f;margin:23px 0}dialog p{font-size:11px;line-height:1.9}dialog small{font-size:9px;color:#797a82}
.gpu-info{margin:-12px 0 18px;font-size:10px!important;line-height:1.6!important;color:#8f9097;white-space:pre-line}dialog label{display:flex;align-items:center;gap:12px;margin:24px 0;font-size:11px}input{accent-color:#bd3636}#closeHelp{position:absolute;right:10px;top:8px;font-size:24px;width:44px}#menuToggle{display:none}.no-script{position:fixed;inset:25%;padding:30px;background:#090909;color:#e14848;z-index:99}@keyframes blink{50%{opacity:0}}@keyframes code-offset{0%,75%,100%{transform:translateX(0)}80%{transform:translateX(7px);text-shadow:-2px 0 #4e727a}90%{transform:translateX(-5px)}}@keyframes tunnel{from{transform:scale(.8) rotateZ(2deg)}to{transform:scale(1.25) rotateZ(-3deg)}}@media(max-width:750px){header{padding:16px 18px;gap:9px}.wordmark{font-size:20px;gap:0}.wordmark span{display:none}.header-status{font-size:6px;gap:6px}#backHome{font-size:8px;padding:0 7px;margin-left:auto}#helpMap{font-size:9px;min-width:33px;padding:0 4px}.home-copy{left:7%;top:17%;max-width:90%}.home-copy .eyebrow{font-size:7px}h1{font-size:42px;margin:18px 0 9px}.home-subtitle{font-size:9px;margin-bottom:19px}.home-statement{font-size:11px;line-height:1.7}.home-description{font-size:9px;margin:13px 0}#tryHelmet{font-size:11px;padding:12px 15px;gap:28px;position:fixed;bottom:12%;left:7%;right:7%}#helmetStatus{position:fixed;bottom:8%;left:7%;font-size:7px}.home-caption{right:7%;bottom:25%;font-size:6px}.home-footer{left:18px;right:18px;min-height:43px;font-size:6px;gap:12px}.home-footer span:nth-child(2){display:none}.home-footer a{margin-left:auto}.helmet-heading{top:16%}.helmet-heading h2{font-size:16px}.helmet-instruction{bottom:13%}#activateHelmet{font-size:10px;padding:10px 16px}.helmet-instruction small{font-size:8px}.mode-controls{right:55px;top:20px}.mode-controls button{font-size:7px;padding:0 10px;min-height:30px}body[data-screen=map] header #backHome{position:absolute;right:18px;top:75px;margin:0;font-size:7px;min-height:30px;border:0}body[data-screen=map] header #helpMap{margin-left:auto}#menuToggle{display:block;position:absolute;left:18px;top:81px;font-size:8px;min-height:33px;padding:0 12px;border:1px solid #9e4242;background:#0b0d13d9;color:#d36060}#sidebar{display:none;left:18px;top:125px;width:270px;max-height:65vh;overflow:auto;background:#090c13f5;border:1px solid #743333;padding:18px;z-index:35;pointer-events:auto}.menu-open #sidebar{display:block}.place-button{min-height:39px;padding:8px}.side-heading{margin-bottom:14px}.sidebar-note{display:none}#exportMap{margin-top:15px}.view-tools{right:18px;top:117px;gap:7px}.view-tools button{min-height:28px;font-size:7px;padding:0 8px}#viewBadge{display:none}#placeCard{left:18px;right:auto;top:163px;width:78%;padding:13px 15px;background:#090c12a9}#placeName{font-size:16px;margin:10px 0 7px}#placeDesc{font-size:9px}#placeNumber{font-size:7px}.walking #placeDesc,.walking #walkHere{display:none}.walking #placeCard{width:auto;max-width:77%}#walkHere{font-size:8px;min-height:32px;padding-top:8px;margin-top:10px}.map-footer{left:18px;right:18px;min-height:43px;font-size:6px;gap:12px}#controlHint{max-width:55%;line-height:1.8}.map-footer>span:last-child{display:none}#coords{font-size:6px}#musicToggle{right:18px;bottom:60px;font-size:8px;min-height:34px}#musicPanel{left:18px;right:18px;bottom:101px;width:auto;z-index:25}#portalAction{bottom:29%;font-size:9px;padding:10px 14px;max-width:90%;width:max-content}.world-label b{font-size:7px}.world-label{gap:6px;padding:4px 7px;min-height:28px}.world-label:after{height:12px}#toastMap{top:75px;max-width:90%;width:90%;font-size:9px}dialog{padding:36px 23px}dialog h2{font-size:21px}dialog p{font-size:10px}#transitionCode{top:25%;font-size:8px}.glitch-label{top:53%}}@media(max-height:650px) and (min-width:751px){.home-copy{top:20%}h1{font-size:52px;margin:18px 0 10px}.home-subtitle{margin-bottom:22px}.home-description{margin:15px 0}.home-statement{font-size:12px}.home-caption{bottom:25%}#sidebar{top:105px}.place-button{min-height:34px;padding:6px 10px}.side-heading{margin-bottom:12px}.sidebar-note{padding:12px;font-size:7px}#placeCard{top:145px;padding:15px}#placeName{font-size:18px}.view-tools{top:92px}header{padding-top:16px}.mode-controls{top:16px}#musicPanel{bottom:110px}}
#glitchTransition .glitch-label{opacity:0;animation:code-offset 1.1s steps(2) infinite,transfer-label 2.8s ease forwards}#glitchTransition #transitionCode{opacity:.55}
@keyframes transfer-label{0%,40%{opacity:0;filter:blur(6px)}55%{opacity:1;filter:blur(0)}85%{opacity:1}100%{opacity:0;letter-spacing:.6em}}
body.transferring #helmetScreen{opacity:0;transition:opacity .35s ease;pointer-events:none}

/* Instant helmet: a still of the 3D helmet, shown from the very first paint at exactly the place
   the live helmet will occupy, then faded out once the 3D helmet is drawn. */
#helmetPoster img{position:fixed;transform:translate(-50%,-50%);pointer-events:none;transition:opacity .7s ease;height:63.58vh;height:63.58dvh;left:calc(50vw + 41.6vh);left:calc(50vw + 41.6dvh);top:calc(52.29vh);top:calc(52.29dvh)}
@media (pointer:coarse){#helmetPoster img{height:37.14vh;height:37.14dvh;left:50vw;top:68.3vh;top:68.3dvh}}
body[data-screen]:not([data-screen=home]) #helmetPoster img,body.helmet-live #helmetPoster img{opacity:0}
/* Help button: a red-framed, clearly visible "? AIDE" that breathes softly on the first visit. */
#helpMap{display:inline-flex;align-items:center;gap:6px;border:1px solid #e0473a!important;background:#2a0d0bcc;color:#ffd9d2!important;padding:0 10px!important;min-height:30px;border-radius:2px;letter-spacing:.14em;font-size:9px!important;box-shadow:0 0 0 0 #e0473a66;animation:helpPulse 2.6s ease-in-out 3}
#helpMap b{font-size:15px;font-weight:800;color:#ff5b4c;letter-spacing:0;line-height:1}
#helpMap:hover,#helpMap:focus-visible{background:#e0473a;color:#fff!important}#helpMap:hover b,#helpMap:focus-visible b{color:#fff}
@keyframes helpPulse{50%{box-shadow:0 0 0 6px #e0473a00,0 0 14px #e0473a88}}
@media(max-width:750px){#helpMap span{display:none}#helpMap{padding:0 9px!important;min-width:34px}}
/* Golden helmet: the choice between −20 % and the exclusive track. */
#rewardChoice{border:1px solid #b8893a88;margin:0 0 10px;padding:8px 10px 6px;display:flex;flex-wrap:wrap;gap:6px 16px}
#rewardChoice legend{font-size:8px;letter-spacing:.18em;color:#e8c27a;padding:0 4px}
#rewardChoice label{display:flex;align-items:center;gap:6px;font-size:11px;color:#f3e2c4;cursor:pointer}
#rewardChoice input{accent-color:#e0a440}

/* The view switch sits left of the help button, never under it. */
.mode-controls{right:124px}
@media(max-width:750px){.mode-controls{right:62px}}
/* While the world finishes its preparation the helmet waits under a scanning line: compositor-only
   animation (transform), so it stays fluid even while the page is busy compiling shaders. */
#glitchTransition.syncing .glitch-label{animation:none;opacity:0}
#glitchTransition.syncing::after{content:'';position:absolute;left:8%;bottom:22%;width:84%;height:2px;background:linear-gradient(90deg,transparent,#dc4949 45%,#ffb3a6 50%,#dc4949 55%,transparent);opacity:.8;transform-origin:left;animation:sync-scan 1.3s ease-in-out infinite alternate;will-change:transform}
@keyframes sync-scan{from{transform:translateX(-30%) scaleX(.4)}to{transform:translateX(30%) scaleX(.4)}}
/* No double-tap zoom anywhere (the game's own surfaces already refuse every gesture), and no zoom
   on the pseudo field: iOS zooms into any field written smaller than 16 px. */
*{touch-action:manipulation}canvas,#joystickMap,#camStick,#touchAttack,#touchJump,#touchSprint{touch-action:none}
html,body{-webkit-text-size-adjust:100%;text-size-adjust:100%;overscroll-behavior:none}
body.touch input,body.touch textarea,body.touch select{font-size:16px!important}

/* Switch between the realistic version and the Alternative version (painted, animated-film look):
   the same game and the same progress, another page. */
#styleSwitch{display:inline-flex;align-items:center;gap:6px;border:1px solid #c58cff;background:#1e0f2ecc;color:#efe0ff;padding:0 10px;min-height:30px;border-radius:2px;letter-spacing:.14em;font-size:9px;text-decoration:none;white-space:nowrap;font-family:var(--font)}
#styleSwitch b{font-size:13px;color:#d8a6ff;line-height:1}
#styleSwitch:hover,#styleSwitch:focus-visible{background:#9b5de5;color:#fff}#styleSwitch:hover b,#styleSwitch:focus-visible b{color:#fff}
@media(max-width:750px){#styleSwitch{padding:0 8px;font-size:8px;letter-spacing:.08em}}
/* The veil drawn over the switch between the two styles, while the shaders are rebuilt. */
#styleVeil{position:fixed;inset:0;z-index:95;pointer-events:none;opacity:0;transition:opacity .3s ease;background:radial-gradient(circle at 50% 45%,#5b2a86 0%,#1a0b26 60%,#07040b 100%);display:flex;align-items:center;justify-content:center}
#styleVeil span{font-size:42px;color:#e6c8ff;opacity:.85;animation:veilSpin 1.2s linear infinite}
#styleVeil.on{opacity:1;pointer-events:auto}
@keyframes veilSpin{to{transform:rotate(360deg)}}
