.place-button:disabled{cursor:not-allowed;opacity:.38}.place-button:disabled strong{font-size:9px;color:#a0a0a5}.place-button.visited{color:#d2b2b2}.place-button.selected{color:#ffc8c8}.overview-button:disabled{opacity:.42;cursor:not-allowed;background:#101116;border-color:#555}.overview-button i{font-size:7px;letter-spacing:0}.mode-controls button:disabled{opacity:.35;cursor:not-allowed}#objective{font-size:10px;line-height:1.7;color:#e5b17e;border-top:1px solid #ffffff20;margin:16px 0 0;padding-top:12px}#combatReticle{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:11px;height:11px;border:1px solid #f7dfca;border-radius:50%;box-shadow:0 0 9px #db5d2944;pointer-events:none}#combatReticle:after{content:'';position:absolute;left:4px;top:4px;width:1px;height:1px;background:white}#bossHUD{position:absolute;left:50%;top:108px;transform:translateX(-50%);width:300px;text-align:center;pointer-events:none;background:#08090aaa;padding:13px 18px;border:1px solid #913e3e66}#bossHUD>span{font-size:10px;letter-spacing:.16em;color:#dc8e7a}#bossHealth{display:flex;gap:5px;justify-content:center;margin:10px 0 6px}#bossHealth i{display:block;width:42px;height:4px;background:#d05136;box-shadow:0 0 9px #b5312455}#bossHealth i.empty{background:#403432;box-shadow:none}#bossHits{font-size:8px;color:#ccc}#hitFlash{position:absolute;left:50%;top:50%;width:45px;height:45px;transform:translate(-50%,-50%) rotate(45deg);border:2px solid #ffe7c2;opacity:0;pointer-events:none}#hitFlash.active{animation:hitMarker .24s ease-out}#touchAttack{position:absolute;right:25px;bottom:106px;min-height:62px;width:74px;border:1px solid #d16b50;background:#351c1880;color:#ffd6c5;font-size:9px;border-radius:50%;touch-action:none}#touchPortal{bottom:190px!important}#restartJourney{margin-top:18px;border:1px solid #a44b4b;padding:10px 15px;font-size:10px;color:#d67878}#endDialog{max-width:560px}#closeEnd{position:absolute;right:10px;top:8px;font-size:24px;width:44px}#finalLink{display:block;text-align:center;border:1px solid #c65e57;color:#efb6ad;padding:16px;margin-top:25px;font-size:12px}#journeyProgress{color:#db8b83}@keyframes hitMarker{from{opacity:.8;scale:.65}to{opacity:0;scale:1.4}}.reduced #hitFlash.active{animation:none;opacity:.35}@media(max-width:750px){#bossHUD{top:100px;width:240px;padding:9px 13px}#bossHUD>span{font-size:8px}#bossHealth i{width:32px}#objective{font-size:8px;margin-top:10px;padding-top:8px}.walking #placeCard{max-width:67%;top:166px}.walking #objective{max-width:210px}#touchAttack{bottom:96px;right:20px}#musicToggle{right:112px!important;bottom:61px!important}#portalAction{bottom:29%}#endDialog{padding:36px 24px}}
#audioDock{position:absolute;right:28px;bottom:60px;display:flex;align-items:center;gap:12px;background:#0b0c10dd;border:1px solid #794242;padding:5px 10px;pointer-events:auto}#audioDock #musicToggle{position:static!important;min-height:34px;border:0;padding:0 8px;font-size:9px}#audioDock #spotifyLink{font-size:8px;color:#d3a0a0}#audioDock #musicZone{font-size:8px;color:#aaa;max-width:145px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#exportMap{display:none!important}@media(max-width:750px){#audioDock{right:15px;bottom:50px;gap:8px;padding:3px 7px}#audioDock #musicZone{display:none}#audioDock #spotifyLink{font-size:7px}#audioDock #musicToggle{font-size:8px}}


/* v6 — combat HUD */
#hudHealth{position:absolute;left:34px;bottom:64px;width:230px;padding:10px 12px;border:1px solid #7b3a3a;background:#08090cd9;pointer-events:none;--hp:1}
#hudHealth .hud-row{display:flex;justify-content:space-between;align-items:baseline;font-size:8px;letter-spacing:.12em;color:#c79a90}
#hudHealth .hud-row b{font-size:12px;font-weight:500;color:#f1d6cc;letter-spacing:.04em}
#hudHealth .hud-bar{position:relative;height:5px;margin:7px 0 8px;background:#2a1d1c;overflow:hidden}
#hudHealth .hud-bar i{position:absolute;inset:0;transform-origin:left;transform:scaleX(var(--hp));background:linear-gradient(90deg,#b8322a,#ef8a5c);box-shadow:0 0 10px #e0573a88;transition:transform .18s}
#hudHealth.low .hud-bar i{background:#ff3b30;animation:hpPulse .8s ease-in-out infinite}
#hudHealth .hud-kills{color:#8f8a8a}#hudHealth .hud-kills b{font-size:10px;color:#d8c2bb}
#hurtVignette{position:fixed;inset:0;pointer-events:none;z-index:60;opacity:0;background:radial-gradient(ellipse at center,transparent 45%,#a3100acc 100%)}
#hurtVignette.active{animation:hurt .55s ease-out}
.critical #hurtVignette{opacity:.55;animation:critical 1.1s ease-in-out infinite}
#hurtDirection{position:fixed;left:50%;top:50%;width:0;height:0;pointer-events:none;z-index:61;opacity:0;transform:rotate(var(--angle,0rad))}
#hurtDirection i{position:absolute;left:-60px;top:-150px;width:120px;height:26px;border-top:3px solid #ff4a3a;border-radius:50% 50% 0 0;filter:drop-shadow(0 0 6px #ff3b30)}
#hurtDirection.active{animation:hurt 1s ease-out}
#deathScreen{position:fixed;inset:0;z-index:92;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:radial-gradient(ellipse,#3a0c0cd9,#050505f2);color:#d4a5a0;animation:deathIn .6s ease-out}
#deathScreen h2{font-size:clamp(34px,6vw,72px);font-weight:500;letter-spacing:.18em;color:#e63737;margin:18px 0;animation:code-offset 1s steps(2) infinite}
#deathScreen p:last-of-type{font-size:10px;letter-spacing:.14em}#deathScreen .death-hint{font-size:9px;color:#8f7d7a;margin-top:6px}
.final-kills{color:#e5b17e}
.reduced #deathScreen h2,.reduced #hurtVignette.active{animation:none}
@keyframes hurt{0%{opacity:1}100%{opacity:0}}
@keyframes critical{0%,100%{opacity:.35}50%{opacity:.6}}
@keyframes hpPulse{50%{opacity:.55}}
@keyframes deathIn{from{opacity:0}to{opacity:1}}
@media(max-width:750px){#hudHealth{left:18px;bottom:205px;width:150px;padding:7px 9px}#hudHealth .hud-row{font-size:6px}#hudHealth .hud-row b{font-size:10px}#hudHealth .hud-kills{margin-top:3px}#hurtDirection i{top:-120px}}
@media(max-height:650px) and (min-width:751px){#hudHealth{bottom:56px;width:200px;padding:8px 10px}}
/* Panels step back while you explore, and return on hover or on a new sector. */
#sidebar,#placeCard,.view-tools,.mode-controls,#audioDock{transition:opacity .45s}
.walking.calm #sidebar,.walking.calm #placeCard,.walking.calm .view-tools,.walking.calm .mode-controls{opacity:.16;transition:opacity 1.2s}
.walking.calm #audioDock{opacity:.5;transition:opacity 1.2s}
.walking.calm #sidebar:hover,.walking.calm #placeCard:hover,.walking.calm .view-tools:hover,.walking.calm .mode-controls:hover,.walking.calm #audioDock:hover{opacity:1;transition:opacity .2s}

/* Phones held sideways (and other short screens): compact HUD around the thumbs. */
@media(max-height:500px) and (min-width:751px){
header{padding:10px 16px;gap:12px}
.wordmark{font-size:17px}.wordmark span{display:none}
body[data-screen=map] header #backHome{margin-right:0;margin-left:auto;font-size:8px;min-height:30px;padding:0 8px}
#helpMap{min-height:30px;font-size:9px}
.mode-controls{right:200px;top:9px;padding:2px}.mode-controls button{min-height:26px;font-size:7px;padding:0 9px}

#menuToggle{display:block;position:absolute;left:16px;top:50px;font-size:7px;min-height:28px;padding:0 10px;border:1px solid #9e4242;background:#0b0d13d9;color:#d36060}
#sidebar{display:none;left:16px;top:84px;width:250px;max-height:calc(100vh - 100px);overflow:auto;background:#090c13f5;border:1px solid #743333;padding:12px;z-index:35;pointer-events:auto}
.menu-open #sidebar{display:block}
.side-heading,.sidebar-note{display:none}
.place-button{min-height:30px;padding:4px 8px}
.overview-button{padding:6px 10px;margin-bottom:8px}
.view-tools{display:none}
#placeCard{left:16px;right:auto;top:84px;width:auto;max-width:300px;padding:9px 12px}
#placeNumber{font-size:7px}#placeName{font-size:13px;margin:5px 0 4px}#placeDesc{display:none}
#objective{font-size:8px;margin-top:6px;padding-top:6px}
.menu-open #placeCard{display:none}
.map-footer{display:none}
#audioDock{top:50px;bottom:auto;right:16px;padding:2px 6px;gap:6px}
#audioDock #musicZone{display:none}#audioDock #spotifyLink{font-size:7px}#audioDock #musicToggle{font-size:7px;min-height:26px}
#joystickMap{bottom:18px;left:18px;width:100px;height:100px}
#joyKnob{left:30px;top:30px}
#hudHealth{left:132px;bottom:18px;width:160px;padding:6px 9px}
#hudHealth .hud-row{font-size:6px}#hudHealth .hud-row b{font-size:10px}#hudHealth .hud-bar{margin:5px 0 4px}#hudHealth .hud-kills{margin-top:3px}
#touchAttack{right:18px;bottom:18px}
#touchPortal{right:104px;bottom:24px!important;width:58px;height:58px}
#bossHUD{top:8px;width:220px;padding:6px 10px}#bossHUD>span{font-size:7px}#bossHealth{margin:5px 0 3px}#bossHealth i{width:30px}#bossHits{font-size:7px}
#portalAction{bottom:34%;font-size:9px;padding:9px 14px}
#toastMap{top:48px;font-size:9px;padding:9px 16px}
#hurtDirection i{top:-110px}
dialog{padding:24px 22px;max-height:92vh;overflow:auto}dialog h2{font-size:18px;margin:12px 0}dialog p{font-size:10px;line-height:1.7}
}

/* Lightning flash */
#boltFlash{position:fixed;inset:0;pointer-events:none;z-index:62;opacity:0;background:radial-gradient(ellipse at center,#f4ecff 0%,#b48cffcc 45%,#2a124400 100%)}
#boltFlash.active{animation:bolt .7s ease-out}
.reduced #boltFlash.active{animation:none}
@keyframes bolt{0%{opacity:.95}12%{opacity:.25}22%{opacity:.8}100%{opacity:0}}

/* v7 — pseudo, map, end screen */
.pseudo-form{display:flex;flex-direction:column;align-items:center;gap:8px;margin:0 auto 18px;pointer-events:auto}
.pseudo-form label{font-size:8px;letter-spacing:.2em;color:#c75252}
.pseudo-row{display:flex;border:1px solid #8c3636;background:#0a0b0fe6}
.pseudo-row input{background:none;border:0;color:#f0dcd6;font:13px var(--font);letter-spacing:.08em;padding:0 14px;width:200px;min-height:42px;outline:none}
.pseudo-row input::placeholder{color:#6d5c5c}
.pseudo-row button{font-size:10px;letter-spacing:.12em;color:#090909;background:#c93636;padding:0 16px}
#pseudoStatus{font-size:9px;color:#8e7d7d;min-height:12px;letter-spacing:.06em}
#pseudoStatus.ok{color:#9fe0a8}#pseudoStatus.bad{color:#ff7d6d}
#activateHelmet:disabled{opacity:.35;cursor:not-allowed}
#mapButton{position:absolute;right:34px;top:150px;border:1px solid #b44c4c;background:#08090ddd;color:#f07878;font-size:8px;letter-spacing:.08em;padding:0 12px;min-height:32px}
.hud-pseudo span{color:#e6b9a8;letter-spacing:.14em}
.hud-pseudo{margin-bottom:6px}
#mapOverlay{position:fixed;inset:0;z-index:85;display:flex;align-items:center;justify-content:center;background:#030305e6;backdrop-filter:blur(6px)}
.map-frame{position:relative;width:min(92vw,980px);height:min(88vh,860px);display:flex;flex-direction:column;border:1px solid #8c3636;background:#07080b;padding:14px}
.map-head{display:flex;align-items:center;gap:16px;margin-bottom:10px}.map-head b{font-size:10px;font-weight:400;color:#e5b17e;letter-spacing:.1em}
#closeMap{margin-left:auto;font-size:24px;width:44px;color:#ddd}
#mapSheet{flex:1;width:100%;min-height:0;display:block}
.map-legend{font-size:9px;color:#8f8a8a;margin:8px 0 0;letter-spacing:.05em}
#endDialog{max-height:94vh;overflow:auto}
.run-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:18px 0}
.run-stats div{border:1px solid #ffffff1f;padding:9px 10px;display:flex;flex-direction:column;gap:6px}
.run-stats span{font-size:7px;letter-spacing:.14em;color:#9b8f8f}.run-stats b{font-size:13px;font-weight:400;color:#f3d9d2}
.reward{border:1px solid #c65e57;padding:14px 16px;margin:16px 0;background:#2a10101f}
.reward p{margin:8px 0 12px}
#rewardForm{display:flex;flex-direction:column;gap:10px}
#rewardForm input[type=email]{background:#0b0c11;border:1px solid #ffffff2e;color:#f1e1dc;font:12px var(--font);padding:0 12px;min-height:42px}
.consent{margin:0!important;font-size:9px!important;color:#a9a2a4;align-items:flex-start!important}
#rewardForm button{border:1px solid #e0705c;color:#ffd2c5;background:#5c1d1666;font-size:11px;letter-spacing:.1em}
#rewardCode{font-size:clamp(20px,4vw,28px);letter-spacing:.14em;color:#ffe2b3;text-align:center;border:1px dashed #e5b17e;padding:14px;margin:10px 0;text-shadow:0 0 14px #ff7a3a88}
#rewardStatus{display:block;margin-top:8px;font-size:9px;color:#b9a7a7}
.board ol{margin:10px 0 0;padding-left:22px;font-size:10px;line-height:1.9;color:#cfc4c4}
.board li b{color:#ffd2c5;font-weight:400}
@media(max-width:750px){#mapButton{right:auto;left:150px;top:81px;min-height:33px;font-size:7px}.run-stats{grid-template-columns:repeat(2,1fr)}.pseudo-row input{width:150px}.map-frame{width:96vw;height:86vh;padding:10px}}
@media(max-height:500px) and (min-width:751px){#mapButton{right:auto;left:180px;top:50px;min-height:28px;font-size:7px}.pseudo-form{margin-bottom:8px}}

/* v0.9: jump and sprint. Buttons react on press (pointerdown), so they work while the other thumb holds the joystick. */
#touchJump,#touchSprint{position:absolute;border:1px solid #b9825a;background:#2b1d1580;color:#ffe2c8;font-size:8px;letter-spacing:.08em;touch-action:none;user-select:none;-webkit-user-select:none}
#touchJump{right:112px;bottom:60px;width:60px;height:60px;border-radius:50%}
#touchSprint{right:112px;bottom:140px;width:64px;min-height:30px;border-radius:15px}
#touchSprint.on{background:#c2541f;border-color:#ffb074;color:#fff}
#touchAttack.held,#touchJump.held{background:#a8442a;border-color:#ffb27c}
#touchAttack,#joystickMap{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
@media(max-width:750px){#touchJump{right:104px;bottom:60px}#touchSprint{right:104px;bottom:136px}}
@media(max-height:500px) and (min-width:751px){#touchJump{right:18px;bottom:100px;width:54px;height:54px}#touchSprint{right:84px;bottom:106px}}

/* Photo mode */
#photoButton{position:absolute;right:34px;top:190px;border:1px solid #b44c4c;background:#08090ddd;color:#f07878;font-size:8px;letter-spacing:.08em;padding:0 12px;min-height:32px}
#photoDialog{max-width:520px}#photoDialog img{display:block;width:100%;max-height:58vh;object-fit:contain;margin:12px 0;border:1px solid #5a2a2a;background:#000}
.photo-formats,.photo-actions{display:flex;gap:10px;margin-top:10px}.photo-formats button,.photo-actions button,.photo-actions a{flex:1;min-height:38px;border:1px solid #b44c4c;background:#120b0c;color:#f1c1b4;font:inherit;font-size:10px;letter-spacing:.08em;display:flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer}
.photo-formats button.selected{background:#5e2018;color:#fff}#photoShare{background:#a8381f!important;color:#fff!important}#photoHint{font-size:10px;color:#8f8f95;margin-top:10px}
@media(max-width:750px){#photoButton{right:auto;left:236px;top:81px;min-height:33px;font-size:7px}}
@media(max-height:500px) and (min-width:751px){#photoButton{right:auto;left:256px;top:50px;min-height:28px;font-size:7px}}
#rewardTrack{display:block;margin:12px 0;padding:12px;border:1px solid #c99b3c;background:#2a1e08;color:#ffd77a;text-align:center;text-decoration:none;letter-spacing:.08em;font-size:12px}#rewardTrack[hidden]{display:none}
/* Film grain for computers that render without the post-processing chain (low quality). Not on
   phones and tablets: a blended layer twice the size of the screen, moving over the 3D view, made
   Safari mix it with every frame (a full-screen pass of its own, the iPad lagged). */
#filmGrain{position:fixed;inset:-50%;pointer-events:none;z-index:4;opacity:0;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");mix-blend-mode:overlay}
body.film.lowfx:not(.touch)[data-screen=map] #filmGrain{opacity:.22;animation:grain .42s steps(5) infinite}
body.reduced #filmGrain{animation:none}
@keyframes grain{0%{transform:translate(0,0)}20%{transform:translate(-3%,2%)}40%{transform:translate(2%,-3%)}60%{transform:translate(-2%,-1%)}80%{transform:translate(3%,3%)}100%{transform:translate(0,0)}}

/* Map overlay: always closable, also on phones where the browser bars eat the viewport. */
.map-frame{max-height:calc(100dvh - 24px)}
#closeMap{position:fixed;top:max(12px,env(safe-area-inset-top));right:12px;z-index:90;width:48px;height:48px;font-size:28px;line-height:1;border:1px solid #c35656;background:#120c0ee6;color:#ffd8d8;border-radius:50%}
/* Touch screens: the sound controls move to the top right, clear of the jump / strike buttons. */
body.touch #audioDock{top:auto;right:auto;left:56%;transform:translateX(-50%);width:max-content;max-width:38vw;bottom:calc(8px + env(safe-area-inset-bottom));padding:0 4px;gap:4px;white-space:nowrap;border-color:#79424288}
body.touch #audioDock #spotifyLink,body.touch #audioDock #musicToggle{font-size:6.5px;min-height:22px;padding:0 4px;letter-spacing:.04em}
/* Touch screens on foot: the sector card folds into a small tab after a few seconds; tap it to unfold. */
body.touch #placeCard{transition:max-width .35s,padding .35s,opacity .45s;cursor:pointer}
body.touch #placeCard.folded{max-width:58%;padding:7px 11px}
body.touch #placeCard.folded #placeDesc,body.touch #placeCard.folded #objective,body.touch #placeCard.folded #walkHere{display:none}
body.touch #placeCard.folded #placeName{font-size:11px;margin:4px 0 0}
body.touch #placeCard.folded::after{content:'▾';position:absolute;right:8px;top:6px;font-size:9px;color:#c96c6c}
#arrivalVeil{position:fixed;inset:0;z-index:96;background:#030304;opacity:1;pointer-events:none}#arrivalVeil.lift{opacity:0;transition:opacity .9s ease}
/* Phones: a compact integrity gauge (label, value and a thin bar; no pseudo, no kill count). */
body.touch #hudHealth{width:auto;min-width:112px;padding:4px 7px}
body.touch #hudHealth .hud-pseudo{display:none}
body.touch #hudHealth .hud-row{font-size:5.5px;letter-spacing:.08em}body.touch #hudHealth .hud-row b{font-size:9px}
body.touch #hudHealth .hud-bar{height:3px;margin:3px 0 1px}

/* Phones: the creature count stays on screen, compact, under the health bar. */
body.touch #hudHealth .hud-kills{display:flex;justify-content:space-between;align-items:baseline;gap:6px;margin-top:3px;white-space:nowrap}body.touch #hudHealth .hud-kills span{font-size:6.5px!important;letter-spacing:.06em}body.touch #hudHealth .hud-kills b{font-size:9px!important;white-space:nowrap}
/* Tablets held sideways: the moving stick on the left, a camera stick on the right, and the buttons
   gathered around the right thumb (strike just beside the camera stick, jump above it, interact over
   it) so it slides from aiming to striking without stretching; sprint sits by the left thumb. */
#camStick{position:absolute;border:1px solid #a9a9b066;border-radius:50%;background:#120e154d;touch-action:none;pointer-events:auto;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
#camKnob{position:absolute;border:1px solid #ffffff77;background:#8f9ab880;border-radius:50%;pointer-events:none}
body.pad-land #joystickMap{left:40px;bottom:44px;width:150px;height:150px}
body.pad-land #joyKnob{left:49px;top:49px;width:52px;height:52px}
body.pad-land #camStick{right:40px;bottom:44px;width:150px;height:150px}
body.pad-land #camKnob{left:49px;top:49px;width:52px;height:52px}
body.pad-land #touchAttack{right:214px;bottom:54px;width:98px;min-height:98px;font-size:11px}
body.pad-land #touchJump{right:206px;bottom:176px;width:72px;height:72px;font-size:10px}
body.pad-land #touchPortal{right:79px;bottom:222px!important;width:72px;height:72px}
body.pad-land #touchSprint{left:214px;right:auto;bottom:70px;width:86px;min-height:42px;font-size:10px}
body.pad-land #hudHealth{left:330px;bottom:40px}
body.pad-land #placeCard{top:238px}

/* In play the style switch joins the map tools (in the header it pushed AIDE onto VUE LIBRE / AU
   SOL); the header one is for the home screen. */
body[data-screen=map] header #styleSwitch{display:none}
#styleMapButton{position:absolute;right:34px;top:230px;border:1px solid #a77ad6;background:#120a1ddd;color:#e2c8ff;font-size:8px;letter-spacing:.08em;padding:0 10px;min-height:32px;white-space:nowrap}
#styleMapButton b{color:#c99bff;font-weight:700}
#styleMapButton:hover,#styleMapButton:focus-visible{background:#7d45c4;color:#fff}
@media(max-width:750px){#styleMapButton{right:76px;top:117px;min-height:28px;font-size:7px;padding:0 7px}}
@media(max-height:500px) and (min-width:751px){#styleMapButton{right:auto;left:332px;top:50px;min-height:28px;font-size:7px}}
body[data-screen=home] #styleMapButton,body[data-screen=helmet] #styleMapButton{display:none}

/* Computers and tablets: CARTE, PHOTO and the style switch sit on the row of REPÈRES, to its left,
   above the sector card (in the column under it, the card covered all three). The sector list
   stops above the health gauge, and on a tablet held sideways the hint line under the joysticks
   and the gauge is not drawn. */
@media(min-width:751px) and (min-height:501px){
 #mapButton{right:321px;top:105px;min-height:32px}
 #photoButton{right:238px;top:105px;min-height:32px}
 #styleMapButton{right:170px;top:105px;min-height:32px}
 #sidebar{max-height:calc(100vh - 300px);overflow-y:auto}}
@media(min-width:751px) and (min-height:501px) and (max-height:650px){
 #mapButton,#photoButton,#styleMapButton{top:92px}
 #sidebar{max-height:calc(100vh - 250px)}}
body.pad-land .map-footer{display:none}
/* A tablet held upright (touch controls without the sideways layout): the health gauge above the
   joystick, as on phones (it sat under it). */
@media(min-width:751px){body.touch:not(.pad-land) #hudHealth{bottom:205px}}

/* Computers: the style switch above the sound box (bottom right), CARTE and PHOTO beside REPÈRES. */
@media(min-width:751px) and (min-height:501px){
 body:not(.touch) #styleMapButton{top:auto;right:28px;bottom:114px}
 body:not(.touch) #mapButton{right:253px}
 body:not(.touch) #photoButton{right:170px}}


/* In play, one slim row along the top, so the game keeps the whole screen: on the left, after
   ASCENT, small icons (sectors, map, photo, style, markers) and the compact integrity gauge; on the
   right, sound and Spotify, the view mode, home and help. Every control has its own place: the
   sector list opens under the row and the sector card sits below it. Phones held upright arrange
   the same controls on three short rows (below). */
#hudBar,#hudRight{display:contents}
body[data-screen=map]{--hb-h:36px;--hb-t:14px;--hb-l:max(22px,env(safe-area-inset-left));--hb-r:max(22px,env(safe-area-inset-right));--hb-brand:104px;--hb-hp:184px;--hb-mc:156px;--hb-under:calc(var(--hb-t) + var(--hb-h) + 10px)}
body[data-screen=map] header{padding:0!important;height:0;gap:0}
body[data-screen=map] .header-status{display:none!important}
body[data-screen=map] #brandHome{position:absolute;left:var(--hb-l);top:var(--hb-t);height:var(--hb-h);width:var(--hb-brand);font-size:calc(var(--hb-h)*.52);line-height:var(--hb-h);gap:0;white-space:nowrap;pointer-events:auto}
body[data-screen=map] #brandHome span{display:none}
body[data-screen=map] #helpMap{position:absolute!important;right:var(--hb-r);top:var(--hb-t);width:var(--hb-h);min-width:0!important;height:var(--hb-h);min-height:0!important;margin:0!important;padding:0!important;justify-content:center;pointer-events:auto}
body[data-screen=map] #helpMap span{display:none}
body[data-screen=map] #backHome{position:absolute!important;right:calc(var(--hb-r) + var(--hb-h) + 6px)!important;top:var(--hb-t)!important;width:var(--hb-h);height:var(--hb-h);min-height:0!important;margin:0!important;padding:0!important;font-size:0!important;border:1px solid #8e3c3c!important;background:#0b0d13d9 center/58% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eab4a2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11.5L12 5l8 6.5'/%3E%3Cpath d='M6.5 10v9.5h11V10'/%3E%3C/svg%3E")!important;pointer-events:auto}
body[data-screen=map] .mode-controls{height:var(--hb-h);padding:2px!important;box-sizing:border-box;pointer-events:auto}
body[data-screen=map] .mode-controls button{min-height:0!important;height:100%;font-size:8px!important;padding:0 10px!important}
body[data-screen=map] #hudBar{display:flex;position:absolute;left:calc(var(--hb-l) + var(--hb-brand) + 8px);top:var(--hb-t);height:var(--hb-h);gap:6px;align-items:stretch;z-index:21;pointer-events:none}
body[data-screen=map] #hudBar>button,body[data-screen=map] #hudBar .view-tools>button:not([hidden]){position:static!important;inset:auto!important;transform:none!important;display:flex!important;align-items:center;justify-content:center;flex:none;width:var(--hb-h)!important;min-width:0!important;height:var(--hb-h)!important;min-height:0!important;margin:0!important;padding:0!important;font-size:0!important;color:#eab4a2;border:1px solid #8e3c3c!important;background:#0b0d13d9 center/58% no-repeat;pointer-events:auto;box-sizing:border-box}
body[data-screen=map] #hudBar>button:hover,body[data-screen=map] #hudBar .view-tools>button:hover{border-color:#e0473a!important;background-color:#2a0d0bd9}
body[data-screen=map] #menuToggle{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eab4a2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h10'/%3E%3C/svg%3E")!important}
body[data-screen=map].menu-open #menuToggle{border-color:#e0473a!important;background-color:#2a0d0bd9}
body[data-screen=map] #mapButton{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eab4a2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6.5l6-2.5 6 2.5 6-2.5v13.5l-6 2.5-6-2.5-6 2.5z'/%3E%3Cpath d='M9 4v13.5M15 6.5V20'/%3E%3C/svg%3E")!important}
body[data-screen=map] #photoButton{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eab4a2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5h3.2l1.8-2.5h6l1.8 2.5H20v10.5H4z'/%3E%3Ccircle cx='12' cy='13.5' r='3.3'/%3E%3C/svg%3E")!important}
body[data-screen=map] #styleMapButton b{font-size:calc(var(--hb-h)*.44);font-weight:400;color:#c9a8ff}
body[data-screen=map] #styleMapButton span{display:none}
body[data-screen=map] #styleMapButton{border-color:#7d5bb5!important}
body[data-screen=map] #hudBar .view-tools{position:static!important;display:flex!important;gap:6px;opacity:1}
body[data-screen=map] #labelsBtn{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eab4a2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6-5.6-6-10.2a6 6 0 0 1 12 0C18 15.4 12 21 12 21z'/%3E%3Ccircle cx='12' cy='10.8' r='2.1'/%3E%3C/svg%3E")!important}
body[data-screen=map] #labelsBtn:not(.selected){opacity:.5}
body[data-screen=map] #cutawayBtn{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eab4a2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4l8 4-8 4-8-4z'/%3E%3Cpath d='M4 12l8 4 8-4M4 16l8 4 8-4'/%3E%3C/svg%3E")!important}
body[data-screen=map] #viewBadge{display:none}
body[data-screen=map] #hudHealth:not([hidden]){position:static!important;inset:auto!important;width:var(--hb-hp)!important;height:var(--hb-h);padding:0 9px!important;margin:0;box-sizing:border-box;display:grid;grid-template-columns:1fr auto;grid-template-areas:"bar val" "kill kill";align-content:center;column-gap:8px;row-gap:3px}
body[data-screen=map] #hudHealth .hud-pseudo{display:none}
body[data-screen=map] #hudHealth .hud-row:not(.hud-pseudo):not(.hud-kills){grid-area:val}
body[data-screen=map] #hudHealth .hud-row:not(.hud-pseudo):not(.hud-kills) span{display:none}
body[data-screen=map] #hudHealth .hud-row b{font-size:11px}
body[data-screen=map] #hudHealth .hud-bar{grid-area:bar;align-self:center;margin:0}
body[data-screen=map] #hudHealth .hud-kills{grid-area:kill;margin:0;font-size:7px!important;letter-spacing:.1em;white-space:nowrap;overflow:hidden;gap:6px}
body[data-screen=map] #hudHealth .hud-kills b{font-size:9px}
body[data-screen=map] #sidebar{display:none;position:absolute;left:var(--hb-l)!important;top:var(--hb-under)!important;width:260px;max-height:calc(100% - var(--hb-under) - 16px);overflow:auto;background:#090c13f5;border:1px solid #743333;padding:12px;z-index:35;pointer-events:auto;box-sizing:border-box}
body[data-screen=map].menu-open #sidebar{display:block}
body[data-screen=map].menu-open #placeCard{display:none}
body[data-screen=map] #placeCard{left:var(--hb-l)!important;right:auto!important;top:var(--hb-under)!important;bottom:auto!important;width:auto!important;max-width:min(300px,30vw)!important;padding:11px 14px!important;box-sizing:border-box}
body[data-screen=map] #bossHUD{top:var(--hb-under)!important}
body[data-screen=map] #toastMap{top:auto!important;bottom:62px;max-width:min(520px,40vw)!important;width:auto!important}
body[data-screen=map]:not(.touch) .map-footer{display:flex!important;left:var(--hb-l)!important;right:auto!important;bottom:14px!important;min-height:0!important;height:30px;max-width:calc(100% - var(--hb-l) - var(--hb-r));overflow:hidden;white-space:nowrap;border:0!important;gap:18px}
body[data-screen=map].touch .map-footer{display:none!important}
/* Sound and Spotify: two small icons in the row, left of the view mode. */
body[data-screen=map] #hudRight{display:flex;position:absolute;right:calc(var(--hb-r) + 2*var(--hb-h) + 12px);top:var(--hb-t);height:var(--hb-h);gap:6px;z-index:21;pointer-events:none}
body[data-screen=map] #audioDock,body[data-screen=map] .mode-controls{position:static!important;inset:auto!important;margin:0!important}
body[data-screen=map] #audioDock{height:var(--hb-h);width:auto!important;max-width:none!important;padding:0!important;gap:6px!important;border:0!important;background:none!important;transform:none!important}
body[data-screen=map] #audioDock #musicZone{display:none!important}
body[data-screen=map] #audioDock #spotifyLink,body[data-screen=map] #audioDock #musicToggle{display:block;width:var(--hb-h);height:var(--hb-h);min-height:0!important;padding:0!important;margin:0;font-size:0!important;border:1px solid #8e3c3c!important;background:#0b0d13d9 center/58% no-repeat;box-sizing:border-box;pointer-events:auto}
body[data-screen=map] #audioDock #spotifyLink{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eab4a2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 17.5V6l10-2v11.5'/%3E%3Ccircle cx='6.8' cy='17.5' r='2.3'/%3E%3Ccircle cx='16.8' cy='15.5' r='2.3'/%3E%3C/svg%3E")}
body[data-screen=map] #audioDock #musicToggle{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eab4a2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5h3.5L12 6v12l-4.5-3.5H4z'/%3E%3Cpath d='M16 9.5l5 5M21 9.5l-5 5'/%3E%3C/svg%3E")}
body[data-screen=map] #audioDock #musicToggle[aria-pressed=true]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eab4a2' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5h3.5L12 6v12l-4.5-3.5H4z'/%3E%3Cpath d='M15.5 9.2a4 4 0 0 1 0 5.6M18 7a7 7 0 0 1 0 10'/%3E%3C/svg%3E")}
body[data-screen=map] .mode-controls{width:var(--hb-mc);display:flex}
body[data-screen=map] .mode-controls button{flex:1;white-space:nowrap}
/* While you move, every control fades away (the gauge stays readable); it comes back as soon as
   you stop. */
body[data-screen=map] :is(#hudBar>button,#hudBar .view-tools,#hudHealth,#audioDock,.mode-controls,#brandHome,#helpMap,#backHome){transition:opacity .45s}
body[data-screen=map].walking.calm :is(#hudBar>button,#hudBar .view-tools,#audioDock,.mode-controls,#brandHome,#helpMap,#backHome){opacity:.22;transition:opacity 1.2s}
body[data-screen=map].walking.calm #hudHealth{opacity:.55;transition:opacity 1.2s}
/* Tablets held upright and other mid-width screens: a shorter gauge and view switch. */
@media(min-width:560px) and (max-width:900px){
body[data-screen=map]{--hb-hp:128px;--hb-mc:132px}
body[data-screen=map] #hudHealth .hud-kills span{display:none}
body[data-screen=map] #hudHealth .hud-kills b::before{content:'VAINCUES';font-size:7px;letter-spacing:.1em;color:#8f8a8a;margin-right:8px}
body[data-screen=map] #hudHealth .hud-kills{justify-content:flex-end}
}/* Phones held sideways: the same row, smaller and closer to the edges. */
@media(orientation:landscape) and (min-width:560px) and (max-height:500px){
body[data-screen=map]{--hb-h:30px;--hb-t:8px;--hb-l:max(12px,env(safe-area-inset-left));--hb-r:max(12px,env(safe-area-inset-right));--hb-brand:82px;--hb-hp:128px;--hb-mc:112px;--hb-under:calc(var(--hb-t) + var(--hb-h) + 8px)}
body[data-screen=map] .mode-controls button{font-size:7px!important;padding:0 7px!important}
body[data-screen=map] #placeCard{max-width:min(240px,30vw)!important;padding:8px 11px!important}
body[data-screen=map] #placeDesc{display:none}
body[data-screen=map] #bossHUD{width:200px;padding:6px 10px}
body[data-screen=map] #toastMap{bottom:14px;font-size:8px;padding:8px 12px}
body[data-screen=map].touch #joystickMap{bottom:14px!important}
body[data-screen=map] #placeCard{max-height:calc(100% - var(--hb-under) - 132px);overflow:hidden}
body[data-screen=map] #placeNumber{display:none}
body[data-screen=map] #hudHealth .hud-kills span{display:none}
body[data-screen=map] #hudHealth .hud-kills b::before{content:'VAINCUES';font-size:7px;letter-spacing:.1em;color:#8f8a8a;margin-right:8px}
body[data-screen=map] #hudHealth .hud-kills{justify-content:flex-end}
body[data-screen=map] #objective{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
}
/* The narrowest phones: the row starts at the edge, without the ASCENT name. */
@media(orientation:landscape) and (min-width:560px) and (max-width:680px){
body[data-screen=map] #brandHome{display:none}
body[data-screen=map] #hudBar{left:var(--hb-l)}
body[data-screen=map]{--hb-hp:96px;--hb-mc:104px}
}

/* Phones held upright: ASCENT, the view mode and help on the first row; the icons (sectors, map,
   photo, markers, sound, Spotify) in a line under ASCENT, home on their right; the gauge under
   them, the style button under home; the sector card, smaller, just below. */
@media(max-width:559px){
body[data-screen=map]{--hb-h:30px;--hb-t:max(12px,env(safe-area-inset-top));--hb-l:max(14px,env(safe-area-inset-left));--hb-r:max(14px,env(safe-area-inset-right));--hb-hp:150px;--hb-mc:132px;--hb-row2:calc(var(--hb-t) + 40px);--hb-row3:calc(var(--hb-row2) + 36px);--hb-under:calc(var(--hb-row3) + 40px)}
body[data-screen=map] #brandHome{width:auto;font-size:20px}
body[data-screen=map] #hudBar{left:var(--hb-l);right:var(--hb-r);top:var(--hb-row2)}
body[data-screen=map] #hudRight{display:contents}
body[data-screen=map] .mode-controls{position:absolute!important;right:calc(var(--hb-r) + var(--hb-h) + 6px)!important;top:var(--hb-t)!important}
body[data-screen=map] .mode-controls button{font-size:7px!important;padding:0 6px!important}
body[data-screen=map] #audioDock{position:absolute!important;left:calc(var(--hb-l) + 4*(var(--hb-h) + 6px))!important;top:var(--hb-row2)!important;display:flex}
body[data-screen=map] #backHome{top:var(--hb-row2)!important;right:var(--hb-r)!important;width:auto;padding:0 10px!important;font-size:8px!important;letter-spacing:.08em;background-image:none!important;color:#d9b8b0}
body[data-screen=map] #hudBar #styleMapButton{position:absolute!important;right:0!important;left:auto!important;top:calc(var(--hb-row3) - var(--hb-row2))!important;width:auto!important;padding:0 10px!important;gap:6px;font-size:8px!important;letter-spacing:.08em;color:#d8c4ff}
body[data-screen=map] #styleMapButton b{font-size:11px}
body[data-screen=map] #styleMapButton span{display:inline}
body[data-screen=map] #hudHealth:not([hidden]){position:absolute!important;left:0!important;top:calc(var(--hb-row3) - var(--hb-row2))!important}
body[data-screen=map] #placeCard{top:var(--hb-under)!important;max-width:64vw!important;padding:8px 11px!important}
body[data-screen=map] #placeNumber{font-size:7px}
body[data-screen=map] #placeName{font-size:13px;margin:4px 0 0}
body[data-screen=map] #sidebar{width:auto;right:var(--hb-r);max-height:62vh}
body[data-screen=map] #bossHUD{top:calc(var(--hb-under) + 70px)!important;width:220px}
body[data-screen=map] #toastMap{bottom:225px;max-width:90vw!important;font-size:8px}
}
/* Helmet screen: the call to action and the pseudo label read clearly over the helmet, on solid black. */
#activateHelmet{font-size:15px;font-weight:700;letter-spacing:.18em;color:#ff5a4a;background:#000000f0;padding:14px 32px;border:1px solid #e0473a;box-shadow:0 0 18px #e0473a55;text-shadow:0 0 10px #ff4a3a88}
#activateHelmet:not(:disabled):hover{background:#1a0605;color:#ff8a7a}
.pseudo-form label{font-size:10px;font-weight:700;letter-spacing:.22em;color:#ff6a5a;background:#000000e6;padding:5px 12px}
@media(max-width:750px){#activateHelmet{font-size:13px;padding:13px 22px}.pseudo-form label{font-size:9px}}
/* Before a pseudo is validated the button stays solid black (only its text and frame dim), so the
   helmet never shows through it. */
#activateHelmet:disabled{opacity:1;color:#9a4a42;border-color:#6a2a25;box-shadow:none;text-shadow:none}
#pseudoStatus{background:#000000d9;padding:4px 10px}
/* ASCENT — DRONE: no interface over the film; the sound is chosen over the loading animation. */
body.drone #toastMap,body.drone #objBanner,body.drone #portalAction,body.drone #combatReticle,body.drone #bossHUD,body.drone #mapOverlay,body.drone #helpDialog,body.drone #photoDialog,body.drone #endDialog,body.drone #boltFlash,body.drone #teleFade,body.drone #filmGrain,body.drone header,body.drone #homeScreen,body.drone #helmetScreen,body.drone #mapUI,body.drone #deathScreen,body.drone #hurtVignette,body.drone #hurtDirection,body.drone #styleVeil{display:none!important}
body.drone[data-screen=map]{cursor:none}
#droneStart .ds-keys{font:500 11px/1.5 'Source Code Pro',monospace;letter-spacing:.06em;opacity:.6;margin-top:10px}
#droneStart{position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;padding:20px;background:radial-gradient(ellipse at center,#000000b3 0%,#000000e6 70%);font-family:'Source Code Pro',monospace;transition:opacity .6s}
#droneStart.gone{opacity:0;pointer-events:none}
#droneStart .ds-panel{width:min(520px,100%);text-align:center;color:#d8d8dc}
#droneStart .ds-eye{font-size:10px;letter-spacing:.3em;color:#e0473a;margin:0 0 14px}
#droneStart h1{font-size:clamp(20px,4vw,30px);font-weight:600;letter-spacing:.06em;margin:0 0 10px;color:#f2f2f4}
#droneStart .ds-sub{font-size:11px;letter-spacing:.06em;color:#9a9aa2;margin:0 0 24px;line-height:1.6}
#droneStart .ds-list,#droneStart .ds-devices{display:flex;flex-direction:column;gap:10px}
#droneStart .ds-devices{margin-top:18px}#droneStart .ds-devices p{font-size:10px;letter-spacing:.2em;color:#e0473a;margin:0}
#droneStart button,#droneStart .ds-file{display:block;width:100%;padding:13px 16px;background:#000;border:1px solid #6a2a25;color:#ff6a5a;font:700 12px 'Source Code Pro',monospace;letter-spacing:.16em;text-align:left;cursor:pointer;box-sizing:border-box}
#droneStart button:hover,#droneStart .ds-file:hover{border-color:#e0473a;background:#1a0605;color:#ffb0a6}
#droneStart small{display:block;margin-top:4px;font-weight:400;font-size:9px;letter-spacing:.1em;color:#8a8a92}
#droneStart .ds-status{min-height:16px;margin:16px 0 0;font-size:10px;letter-spacing:.12em;color:#e0a090}
#droneStart .ds-out{margin-top:20px;text-align:left}#droneStart .ds-out p{font-size:10px;letter-spacing:.2em;color:#e0473a;margin:0 0 8px}
#droneStart .ds-screens{display:flex;flex-wrap:wrap;gap:8px}#droneStart .ds-screens button{width:auto;flex:1 1 140px;padding:9px 12px;font-size:10px}
#droneStart button.on{border-color:#ff5a4a;background:#2a0d0b;color:#ffd0c8}
#droneStart .ds-panel{max-height:100%;overflow:auto}
#droneStart .ds-app{margin-top:18px}#droneStart .ds-app button{border-color:#7d5bb5;color:#d8c4ff}
#droneStart .ds-offline{margin:10px 0 0;font-size:9px;letter-spacing:.16em;color:#8a8a92}#droneStart .ds-offline.ok{color:#9be7a6}
#droneStart .ds-launch{text-align:left}#droneStart .ds-ok{font-size:11px;letter-spacing:.2em;color:#9be7a6;margin:0 0 16px;text-align:center}
#droneStart .ds-lbl{font-size:10px;letter-spacing:.2em;color:#e0473a;margin:0 0 8px}
#droneStart .ds-go{margin-top:18px;text-align:center;border-color:#ff5a4a;color:#fff;background:#3a0d0b;font-size:13px;padding:16px}
/* ASCENT — DRONE: the album's lyrics over the film, thick red and glowing. */
@font-face{font-family:'Anton';font-style:normal;font-weight:400;font-display:block;src:url(assets/fonts/anton-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Anton';font-style:normal;font-weight:400;font-display:block;src:url(assets/fonts/anton-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* ASCENT — DRONE: the lyrics, one huge word at a time. */
#droneLyrics{position:fixed;inset:0;z-index:60;pointer-events:none;display:flex;align-items:center;justify-content:center;visibility:hidden}
#droneLyrics.on{visibility:visible}
#droneLyrics span{display:block;font-family:Anton,'Arial Narrow',Impact,sans-serif;font-weight:400;line-height:1;white-space:nowrap;color:#ff2e2a;letter-spacing:.005em;
 text-shadow:0 0 .025em #ff4a3a,0 0 .09em #ff201aa0,0 0 .22em #d0100855}
#droneLyrics span.new{animation:wordIn .09s ease-out}
#droneLyrics.kick span{animation:wordKick .12s ease-out}
/* On a red picture the words turn white; now and then a negative of the world behind; or smaller and a little see-through. */
#droneLyrics.white span{color:#fff;text-shadow:0 0 .025em #fff,0 0 .09em #ffffff90,0 0 .22em #ffffff40}
#droneLyrics.neg{mix-blend-mode:difference}#droneLyrics.neg span{color:#fff;text-shadow:none}
#droneLyrics.small span{opacity:.78}
/* Blow: one OH per "oh" sung, filling the screen as a negative of the world, blinking with the voice. */
#droneLyrics.oh{mix-blend-mode:difference}#droneLyrics.oh span{color:#fff;text-shadow:none;opacity:1;letter-spacing:0}
#droneLyrics.oh span.new{animation:ohIn .16s ease-out}
@keyframes ohIn{0%{transform:scale(1.07)}100%{transform:none}}
@keyframes wordIn{0%{transform:scale(1.035);filter:brightness(1.35)}100%{transform:none;filter:none}}
@keyframes wordKick{0%{filter:brightness(1.3)}100%{filter:none}}
/* ASCENT — DRONE on a wall of screens: the film's lyrics and logo span the whole wall. */
body.wall #droneLyrics{right:auto;bottom:auto;left:var(--wall-x);top:var(--wall-y);width:var(--wall-w);height:var(--wall-h)}
body.wall #droneLogo{left:calc(var(--wall-x) + var(--wall-w) / 2);top:calc(var(--wall-y) + var(--wall-h) / 2);width:min(calc(var(--wall-w) * .72),calc(var(--wall-h) * 2.4))}
/* ASCENT — DRONE: the POKEYZ logo, filled letters, now and then. */
#droneLogo{position:fixed;left:50%;top:50%;width:min(72vw,1250px);aspect-ratio:1484/405;transform:translate(-50%,-50%);z-index:59;pointer-events:none;opacity:0;--col:#ff1a10;--glow:#ff1a1088}
#droneLogo i{position:absolute;inset:0;-webkit-mask:var(--logo) center/contain no-repeat;mask:var(--logo) center/contain no-repeat;background:var(--col);display:none}
#droneLogo.on{opacity:1;animation:logoIn .45s ease-out,logoFlicker 3.1s steps(1) infinite .45s}
#droneLogo.on .lg-a{display:block;filter:drop-shadow(0 0 16px var(--glow))}
/* Negative: inside the letters the world is inverted. */
#droneLogo.m-negative{mix-blend-mode:difference;animation:logoIn .45s ease-out}#droneLogo.m-negative .lg-a{background:#fff;filter:none}
/* Slices: the logo torn into a few bands sliding sideways. */
#droneLogo.m-slices .lg-a{clip-path:inset(0 0 100% 0)}
#droneLogo.m-slices .lg-s{display:block;filter:drop-shadow(0 0 10px var(--glow));transition:transform .12s ease-out}
#droneLogo.on.kick{animation:logoKick .22s ease-out,logoFlicker 3.1s steps(1) .22s infinite}
#droneLogo.m-negative.kick{animation:logoKick .22s ease-out}
@keyframes logoIn{0%{opacity:0;transform:translate(-50%,-50%) scale(1.06);filter:blur(4px)}100%{opacity:1;transform:translate(-50%,-50%);filter:none}}
@keyframes logoFlicker{0%,100%{opacity:1}47%{opacity:.75}48%{opacity:1}}
@keyframes logoKick{0%{transform:translate(-50%,-50%) scale(1.035)}100%{transform:translate(-50%,-50%)}}

/* ASCENT — DRONE: the control room (régie) and the film's window. */
body.drone.regie canvas,body.drone.regie #helmetScreen,body.drone.regie #glitchTransition{visibility:hidden}
body.drone.regie{background:#050505}
#droneRegie{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:24px;background:radial-gradient(ellipse at 50% 30%,#1a0606 0%,#050505 70%);color:#e9e4df;font:500 13px/1.45 'Source Code Pro',monospace;overflow:auto}
#droneRegie .rg-panel{width:min(760px,100%);border:1px solid #ff2a1a55;background:#0b0808ee;padding:26px 28px;box-shadow:0 0 40px #ff1a1022}
#droneRegie .rg-film{display:flex;align-items:center;gap:10px;margin:6px 0 18px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
#droneRegie .rg-dot{width:10px;height:10px;border-radius:50%;background:#ff2a1a;box-shadow:0 0 10px #ff2a1a;animation:rgPulse 1.2s ease-in-out infinite}
#droneRegie.closed .rg-dot{background:#555;box-shadow:none;animation:none}
@keyframes rgPulse{50%{opacity:.35}}
#droneRegie .rg-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:18px}
#droneRegie .rg-grid>div{border:1px solid #ffffff1a;padding:10px 12px;min-height:54px}
#droneRegie .rg-grid .rg-wide{grid-column:1/-1}
#droneRegie small{display:block;font-size:10px;letter-spacing:.14em;opacity:.55;margin-bottom:4px}
#droneRegie [data-v]{font-weight:700;font-size:15px}
#droneRegie [data-v=line]{color:#ff3a2a}
#droneRegie .rg-bar{display:block;height:3px;background:#ffffff14;margin-top:8px}#droneRegie .rg-bar>i{display:block;height:100%;width:0;background:#ff2a1a;transition:width .25s}
#droneRegie .rg-actions,#droneRegie .rg-screens{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
#droneRegie button{font:700 12px 'Source Code Pro',monospace;letter-spacing:.08em;color:#f3eee9;background:#140c0c;border:1px solid #ff2a1a77;padding:10px 14px;cursor:pointer}
#droneRegie button:hover{background:#2a0d0b;border-color:#ff2a1a}
#droneRegie .rg-lbl{font-size:10px;letter-spacing:.14em;opacity:.55;margin:4px 0 8px}
#droneStart [data-k=remote].live{border-color:#ff2a1a;box-shadow:0 0 18px #ff2a1a55;color:#fff}
#droneRegie .rg-mode,#droneRegie .rg-extra{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
#droneRegie .rg-mode [aria-pressed=true],#droneRegie [data-c=strobeAuto][aria-pressed=true]{background:#3a0f0b;border-color:#ff2a1a}
#droneRegie .rg-sig{display:block;margin-top:4px;font-size:10.5px;letter-spacing:.08em;color:#7dff9a}#droneRegie .rg-sig.bad{color:#ff6a5a;animation:rgPulse 1s ease-in-out infinite}
#droneRegie [data-c=game]{border-color:#7dff9a99}
#droneRegie.notfull [data-c=full]{background:#ff2a1a;border-color:#ff2a1a;color:#fff;animation:rgPulse 1s ease-in-out infinite}#droneRegie.notfull .rg-filmtxt{color:#ffb3a8;text-transform:none;letter-spacing:0}
/* On/off switches (the automatic strobe). */
.rg-switch{display:inline-flex;align-items:center;gap:10px;cursor:pointer;font:700 12px 'Source Code Pro',monospace;letter-spacing:.08em;color:#f3eee9;padding:6px 4px;user-select:none}
.rg-switch input{position:absolute;opacity:0;width:1px;height:1px}
.rg-switch i{position:relative;flex:none;width:46px;height:24px;border-radius:12px;background:#2a2222;border:1px solid #ff2a1a77;transition:background .2s}
.rg-switch i::after{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#8a8080;transition:transform .2s,background .2s}
.rg-switch input:checked+i{background:#ff2a1a}.rg-switch input:checked+i::after{transform:translateX(22px);background:#fff}
.rg-switch input:focus-visible+i{outline:2px solid #fff;outline-offset:2px}
#droneRegie .rg-screens{flex-direction:column;align-items:stretch}
#droneRegie .rg-scr{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border:1px solid #ffffff1a;padding:8px 10px}
#droneRegie .rg-scr>span{flex:1;min-width:180px}
#droneRegie .rg-scr>b{font-size:11px;letter-spacing:.12em;opacity:.5;min-width:64px}#droneRegie .rg-scr>b.on{opacity:1;color:#7dff9a}
#droneRegie .rg-scr button{padding:7px 10px;font-size:11px}
#droneRegie .rg-note,#droneRegie .rg-hint{margin:0 0 12px;font-size:11px;line-height:1.5;opacity:.6}
#droneRegie .rg-remote{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;border:1px solid #ffffff1a;padding:10px 12px;margin-bottom:12px}
#droneRegie .rg-lib{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;border:1px solid #ffffff1a;padding:10px 12px;margin-bottom:12px}#droneRegie .rg-lib span{flex:1 1 260px;font-size:12px;color:#c9c9c9;overflow-wrap:anywhere}
#droneRegie .rg-remote label{font-size:10px;letter-spacing:.14em}
#droneRegie .rg-remote input{width:96px;margin-left:8px;padding:6px 8px;background:#140c0c;border:1px solid #ff2a1a77;color:#fff;font:700 15px 'Source Code Pro',monospace;letter-spacing:.3em;text-align:center}
#droneRegie .rg-remote [data-v=remote]{font-size:12px}
#droneRegie .rg-remote small{flex-basis:100%;margin:0;font-size:10.5px;letter-spacing:.02em;opacity:.6}#droneRegie .rg-remote small b{font-weight:700}
#droneRegie .rg-msg{min-height:1.4em;color:#ffb3a8}
@media (max-width:640px){#droneRegie .rg-grid{grid-template-columns:1fr 1fr}}
/* The film's screen never shows the pointer. */
body.vjfilm,body.vjfilm *{cursor:none!important}

/* the arena's goal: big, centred, for a few seconds */
#objBanner{position:fixed;left:50%;top:17%;transform:translate(-50%,-8px);z-index:60;max-width:min(640px,88vw);padding:14px 24px 16px;text-align:center;pointer-events:none;
 background:linear-gradient(180deg,rgba(26,6,8,.86),rgba(10,3,5,.82));border:1px solid rgba(230,55,55,.75);box-shadow:0 0 0 1px rgba(0,0,0,.6),0 12px 40px rgba(0,0,0,.55),0 0 24px rgba(230,55,55,.25);
 color:#ffe1d6;opacity:0;transition:opacity .5s ease,transform .5s ease}
#objBanner.show{opacity:1;transform:translate(-50%,0)}
#objBanner small{display:block;font-size:9px;letter-spacing:.32em;color:#e63737;margin-bottom:8px}
#objBanner b{display:block;font-size:13px;line-height:1.65;letter-spacing:.04em;font-weight:400}
@media (max-width:700px){#objBanner{top:12%;padding:12px 16px}#objBanner b{font-size:11px}}
