@import url('../public/fonts/fonts.css');
:root{color-scheme:dark;--bg:#080e17;--panel:#111c29;--text:#f3f1e9;--muted:#9baebb;--cyan:#59d5ed;--orange:#ffc15a;--line:#ffffff1c;font-family:Manrope,'Segoe UI',sans-serif;color:var(--text);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,a,input,select{-webkit-tap-highlight-color:transparent}button,input,select{font:inherit}button{color:inherit;cursor:pointer}button{transition:background .16s,border-color .16s,color .16s}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--orange);outline-offset:4px}button:disabled{opacity:.35;cursor:default}[hidden]{display:none!important}#game{position:fixed;inset:0;width:100%;height:100%;outline:none;touch-action:none}.vignette{position:fixed;inset:0;pointer-events:none;background:linear-gradient(0deg,#080e17 0%,transparent 20%,transparent 78%,#080e1788 100%)}.topbar{position:fixed;z-index:5;top:0;left:0;width:100%;height:96px;padding:0 4%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;gap:12px;align-items:center;color:var(--text);text-decoration:none;font-size:17px;font-weight:800;letter-spacing:-.6px;line-height:1}.brand-mark{display:block;font-size:38px;font-weight:800;letter-spacing:-7px;position:relative;width:43px}.brand-mark>span{font-size:23px;color:var(--orange);position:absolute;top:-5px;right:0}.brand-sub{display:block;letter-spacing:3px;font-size:8px;margin-top:8px;font-weight:500;color:var(--muted)}.top-center{font-size:10px;letter-spacing:2.7px;color:#b7c1c7;display:flex;gap:10px;align-items:center}.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--orange);box-shadow:0 0 15px #ffb14d88}.topbar nav{display:flex;align-items:center;gap:12px}.icon-button{position:relative;min-width:36px;height:36px;border:1px solid var(--line);background:#0b142078;border-radius:7px;font-size:21px;display:inline-grid;place-items:center}.icon-button:hover{background:#ffffff1c}.sound-slash{position:absolute;font-size:27px;left:15px;top:1px}.quiet-button{border:0;background:transparent;font-size:11px;color:#b7c7d2;padding:9px 5px}.quiet-button:hover{color:var(--orange)}kbd{font-family:inherit;display:inline-block;padding:3px 5px;font-size:9px;border:1px solid #ffffff26;border-bottom:2px solid #ffffff30;border-radius:4px;color:#c9d5da;background:#ffffff06;line-height:1.2;margin:0 2px}.menu{position:fixed;inset:96px 0 0;pointer-events:none}.menu button{pointer-events:auto}.hero{position:absolute;left:6%;top:8%;width:54%}.eyebrow{font-size:9px;font-weight:700;letter-spacing:2.4px;color:var(--muted);line-height:1.6}.hero .eyebrow{display:flex;gap:12px;align-items:center;color:var(--orange)}.tiny-cross{font-size:20px}.hero h1{font-family:'Barlow Condensed','Arial Narrow',Impact,sans-serif;font-size:clamp(110px,12.7vw,212px);font-weight:800;letter-spacing:-.02em;line-height:.91;margin:24px 0 23px}.title-dot{color:var(--orange)}.hero-subtitle{font-size:clamp(21px,2.35vw,35px);font-weight:700;letter-spacing:-1.2px;line-height:1.22}.hero-subtitle span{color:#93a5b2}.hero-description{font-size:11px;color:#a5b8c5;line-height:1.9;margin:22px 0 26px}.hero-actions{display:flex;gap:12px}.primary-button,.outline-button{display:flex;align-items:center;justify-content:space-between;gap:26px;font-size:12px;font-weight:800;min-height:49px;border-radius:7px;padding:0 23px}.primary-button{background:var(--orange);color:#171b20;border:1px solid var(--orange);box-shadow:0 3px 20px #fbb04012}.primary-button:hover{background:#ffda91}.primary-button>span:last-child{font-size:20px}.outline-button{border:1px solid #ffffff2b;background:#0d1926a1;font-weight:500}.outline-button:hover{background:#182a3d;border-color:#ffffff50}.mode-options{display:flex;gap:16px;margin-top:23px}.mode{background:transparent;border:0;color:#8298a8;font-size:10px;padding:5px 0;white-space:nowrap}.mode.active{color:var(--text)}.mode.active:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--orange);margin-right:7px}.mode:hover{color:var(--orange)}.start-tip{color:#627b8e;font-size:9px;margin-top:10px}.start-tip span{margin:0 9px}.scene-label{position:absolute;right:8%;bottom:25%;font-size:9px;letter-spacing:2px;color:#abc3d1}.scene-label .live-dot{margin-right:8px;background:var(--cyan)}.scene-label small{display:block;font-size:10px;letter-spacing:0;color:#617d91;margin:10px 0 0 15px}.menu-bottom{position:absolute;bottom:0;left:4%;right:4%;height:115px;border-top:1px solid var(--line);display:flex;align-items:center;gap:55px}.menu-bottom>div{display:flex;align-items:center;gap:14px}.menu-bottom strong{font-size:33px;font-weight:500;letter-spacing:-2px}.menu-bottom span{font-size:8px;letter-spacing:1.5px;color:#8fa5b5;max-width:90px;line-height:1.7}.menu-bottom p{margin-left:auto;text-align:right;font-size:10px;color:#788f9e;line-height:1.7}.fight-hud{position:fixed;top:112px;left:50%;transform:translateX(-50%);display:flex;align-items:start;gap:32px;width:720px;pointer-events:none}.fighter-panel{width:280px}.fighter-line{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:800;letter-spacing:2px}.fighter-line i{display:inline-block;width:7px;height:7px;background:var(--cyan);margin-right:8px;border-radius:50%}.fighter-line small{font-size:8px;color:#85a2b2;letter-spacing:0;margin-left:10px}.fighter-line strong{font-size:23px;color:var(--cyan)}.health-track{height:6px;background:#ffffff15;margin-top:8px;border-radius:5px;overflow:hidden}.health-track>div{width:100%;height:100%;background:var(--cyan);transition:width .15s}.energy-track{height:2px;background:#ffffff09;margin-top:5px}.energy-track>div{height:100%;background:#80e1f1;opacity:.55}.fighter-state{display:block;margin-top:7px;font-size:9px;color:#7394a9}.player-two .fighter-line i,.player-two .health-track>div,.player-two .energy-track>div{background:var(--orange)}.player-two .fighter-line strong{color:var(--orange)}.fight-center{text-align:center;min-width:70px}.fight-center b{display:block;font-family:'Barlow Condensed',Impact,sans-serif;font-size:29px;letter-spacing:1px;line-height:1}.fight-center>span{font-size:10px;color:#bdc8cd;display:block;margin:7px}.fight-center small{font-size:6px;letter-spacing:1px;white-space:nowrap;color:#617f91}.location{position:fixed;left:4%;top:225px;max-width:240px;pointer-events:none}.location button{pointer-events:auto;display:block;padding-left:0}.location h2{font-size:20px;font-weight:600;letter-spacing:-.8px;margin:7px 0}.location p{font-size:10px;color:#7994a7;line-height:1.7;max-width:225px}.context-tip{position:fixed;bottom:149px;left:50%;transform:translateX(-50%);font-size:11px;text-align:center;background:#0c1929de;border:1px solid #294659;padding:9px 16px;border-radius:6px;pointer-events:none;white-space:nowrap}.context-tip:empty{display:none}.actionbar{position:fixed;bottom:52px;left:50%;transform:translateX(-50%);display:flex;border:1px solid var(--line);padding:8px;background:#0b1621eb;backdrop-filter:blur(10px);border-radius:10px;gap:3px}.action-button{min-width:73px;width:76px;border:1px solid transparent;background:transparent;border-radius:5px;padding:7px 3px;color:#93aab8;font-size:8px;text-align:center;position:relative}.action-button b{display:block;font-size:16px;line-height:20px;color:#cfdae0;margin-bottom:4px}.action-button kbd{display:block;width:max-content;margin:5px auto 0;font-size:8px;padding:2px 4px;min-height:16px}.action-button:hover,.action-button.pressed{background:#ffffff0c;border-color:#ffffff18;color:#fff}.action-button:last-child b{color:var(--orange)}.game-bottom{position:fixed;bottom:16px;left:4%;right:4%;display:flex;justify-content:space-between;font-size:9px;color:#7190a2}.game-bottom>span>span{margin:0 10px;color:#365165}#performance{font-family:monospace;color:#77b5ba}#toast{position:fixed;top:200px;left:50%;transform:translate(-50%,-10px);z-index:12;padding:10px 20px;border:1px solid #ffffff25;background:#152433ee;box-shadow:0 10px 40px #0006;border-radius:6px;font-size:12px;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none}#toast.visible{opacity:1;transform:translate(-50%,0)}#travel-flash{position:fixed;inset:0;z-index:9;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#071421ed;opacity:0;pointer-events:none;transition:opacity .22s}#travel-flash.visible{opacity:1}#travel-flash>span{font-size:9px;letter-spacing:5px;color:var(--orange)}#travel-flash>strong{font-size:48px;margin:18px;letter-spacing:-2px;text-align:center}#travel-flash>small{font-size:11px;color:#819eaf}dialog{color:var(--text);background:#101c2a;border:1px solid #365065;border-radius:16px;padding:30px;max-width:850px;width:calc(100% - 40px);max-height:calc(100dvh - 70px);box-shadow:0 30px 180px #000c;scrollbar-color:#365064 #101c2a}dialog::backdrop{background:#050b14ba;backdrop-filter:blur(8px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:21px;gap:20px}.dialog-top h2{font-size:28px;letter-spacing:-1.2px;margin:6px 0 0}.dialog-top .icon-button{flex-shrink:0;font-size:25px}.explorer-dialog{max-width:1000px}.explorer-path{display:flex;align-items:center;gap:13px;font-size:10px;background:#08131f;padding:13px 15px;border-radius:6px;color:#a9c4d4}.explorer-path>span{color:#527b94}.explorer-path .path-count{margin-left:auto;color:var(--orange)}.explorer-tools{display:flex;gap:10px;margin:18px 0}.explorer-tools input{flex:1;min-width:0}input[type=search],select{padding:12px;border:1px solid #2b4358;border-radius:6px;background:#0b1622;color:var(--text);font-size:11px}input::placeholder{color:#7190a4}.hub-links{display:flex;gap:10px;margin-bottom:18px}.hub-links>button{background:#1d2c3b;border:1px solid #3b5163;padding:9px 14px;border-radius:5px;font-size:10px}.hub-links>button:hover{border-color:var(--orange)}.project-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.project-card{position:relative;border:1px solid #2a3b4b;border-radius:9px;overflow:hidden;background:#122232;display:flex;flex-direction:column;padding:0;text-align:left}.project-card:hover{border-color:var(--orange);background:#1a2f41}.project-preview{height:108px;width:100%;object-fit:cover;background:#0b1824}.project-placeholder{height:108px;width:100%;display:flex;align-items:center;justify-content:center;font-family:'Barlow Condensed',Impact,sans-serif;font-size:44px;background:radial-gradient(ellipse at 60% 100%,var(--project-color,#316987),#101b2b 80%);color:#ffffffe0}.project-card-copy{padding:13px}.project-card small{font-size:7px;color:#859fac;text-transform:uppercase;letter-spacing:1px;display:block;margin-bottom:6px}.project-card strong{font-size:12px;display:block;line-height:1.5}.project-card p{font-size:9px;color:#87a1b2;line-height:1.6;margin:6px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.project-card .enter{display:block;font-size:9px;color:var(--orange);margin-top:12px}.project-card.visited:after{content:'VISITÉ';position:absolute;right:7px;top:7px;font-size:6px;letter-spacing:1px;color:#c3f3dc;background:#0e312bef;padding:5px;border-radius:3px}.dialog-foot{font-size:9px;line-height:1.7;color:#7492a6;margin:20px 0 0}.help-intro{font-size:12px;line-height:1.8;color:#a1b8c6}.control-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:20px 0}.control-grid section{border:1px solid #2c4254;border-radius:7px;padding:15px}.control-grid h3{font-size:11px;color:var(--cyan);margin-top:0}.control-grid section+section h3{color:var(--orange)}.control-grid p{font-size:10px;color:#9db2bf;line-height:1.8}.moves-help{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:20px}.move-row{padding:10px 12px;border-bottom:1px solid #ffffff0e;display:grid;grid-template-columns:26px 1fr auto;align-items:center;gap:7px}.move-row>span{font-size:10px;color:var(--orange)}.move-row strong{font-size:11px;display:block}.move-row p{font-size:9px;color:#8ba6b7;margin:5px 0;line-height:1.5}.move-row small{font-size:8px;color:#7b99ad}details{border-top:1px solid var(--line);padding:17px 0;margin-bottom:10px;color:#a0b7c5;font-size:11px;line-height:1.8}summary{cursor:pointer;color:var(--text)}.check-setting{display:flex;align-items:center;gap:10px;margin:14px 0}.check-setting input{accent-color:var(--orange)}.pause-dialog{max-width:390px;text-align:center;padding:45px}.pause-dialog h2{font-size:34px;letter-spacing:-1px}.pause-dialog p{font-size:12px;color:#8ba5b6;line-height:1.8;margin-bottom:30px}.pause-dialog button{width:100%;margin:12px 0}.pause-dialog .quiet-button{margin-bottom:0}#touch-controls{display:none}body.playing .top-center{opacity:.5}body.playing .vignette{background:linear-gradient(0deg,#080e17b0,transparent 23%,transparent 72%,#080e1740)}
@media(min-width:1700px){.hero{top:11%}.hero-description{font-size:13px}.hero .eyebrow{font-size:11px}.mode{font-size:12px}.primary-button,.outline-button{min-height:56px;font-size:14px}}
@media(max-height:760px) and (min-width:801px){.hero{top:5%}.hero h1{font-size:130px;margin:12px 0}.hero-description{margin:14px 0}.hero-subtitle{font-size:24px}.menu-bottom{height:83px}.mode-options{margin-top:12px}.topbar{height:75px}.menu{top:75px}.fight-hud{top:88px}.location{top:180px}.hero .eyebrow{font-size:8px}.start-tip{margin-top:6px}}
@media(max-width:1000px){.top-center{display:none}.hero{left:5%;width:66%;top:9%}.hero h1{font-size:150px}.hero-description{font-size:10px}.scene-label{right:4%;bottom:24%}.menu-bottom{gap:30px}.hero-actions{gap:8px}.primary-button,.outline-button{padding:0 16px;gap:18px;font-size:11px}.location{max-width:180px;top:210px}.location p{display:none}.action-button{width:65px;min-width:54px}.fight-hud{width:650px;gap:24px}.project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.topbar{height:74px;padding:0 5%}.topbar nav{gap:7px}.topbar #help{font-size:0}.topbar #help kbd{font-size:11px}.brand{font-size:14px}.brand-sub{font-size:6px}.brand-mark{font-size:31px;width:36px}.icon-button{min-width:32px;height:32px}.menu{top:74px}.hero{top:5%;width:90%;left:6%}.hero h1{font-size:125px;margin:18px 0 15px}.hero .eyebrow{font-size:7px;letter-spacing:1.5px}.hero-subtitle{font-size:25px}.hero-description{max-width:290px;font-size:10px;margin:17px 0}.hero-actions{gap:9px}.primary-button,.outline-button{min-height:45px;font-size:10px;padding:0 13px;gap:15px}.mode-options{gap:13px;margin-top:18px}.mode{font-size:8px}.start-tip{font-size:8px}.menu-bottom{height:83px;gap:18px}.menu-bottom strong{font-size:24px}.menu-bottom span{font-size:6px;letter-spacing:1px;max-width:60px}.menu-bottom>div{gap:8px}.menu-bottom p{display:none}.scene-label{right:7%;bottom:18%;font-size:7px}.scene-label small{font-size:8px}.fight-hud{top:89px;width:90%;gap:15px}.fighter-panel{width:calc(50% - 35px)}.fighter-line{font-size:10px;letter-spacing:1px}.fighter-line strong{font-size:19px}.fighter-line small{margin-left:2px;font-size:7px}.fight-center{min-width:40px}.fight-center b{font-size:22px}.fight-center small{display:none}.location{top:169px;left:5%;max-width:190px}.location .eyebrow{font-size:6px}.location h2{font-size:15px;margin:4px 0}.location button{font-size:9px;padding:5px 0}.actionbar{bottom:100px;width:96%;flex-wrap:wrap;justify-content:center;padding:5px;gap:1px}.action-button{width:19%;min-width:0;padding:4px 0;font-size:7px}.action-button b{font-size:13px;line-height:15px;margin:0}.action-button kbd{display:none}.game-bottom{display:none}.context-tip{bottom:198px;font-size:9px;padding:7px 10px;max-width:94%;white-space:normal}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.project-preview,.project-placeholder{height:88px}.project-card-copy{padding:10px}.project-card strong{font-size:11px}.explorer-tools{flex-direction:column;gap:7px}.explorer-dialog{padding:20px}.dialog-top h2{font-size:23px}.hub-links{gap:6px;flex-wrap:wrap}.hub-links>button{font-size:9px;padding:8px}.explorer-path{font-size:8px;gap:9px}.control-grid{grid-template-columns:1fr}.moves-help{grid-template-columns:1fr}.help-intro{font-size:11px}dialog{padding:21px;max-height:calc(100dvh - 30px);width:calc(100% - 24px)}#touch-controls{position:fixed;left:3%;right:3%;bottom:14px;display:flex;justify-content:space-between;gap:10px}#touch-controls>div{display:flex;align-items:end;gap:5px;flex-wrap:wrap}#touch-controls button{background:#193147d9;border:1px solid #426077;color:#d2e4ec;border-radius:8px;height:44px;min-width:40px;font-size:11px;touch-action:none;user-select:none}#touch-controls button:active{background:#315875}.touch-actions{max-width:210px;justify-content:end}.touch-actions button{min-width:44px!important;font-size:8px!important}.touch-movement button{font-size:19px!important}#travel-flash>strong{font-size:31px}#toast{top:265px;font-size:10px;max-width:85%;text-align:center}}
@media(pointer:coarse) and (min-width:701px){#touch-controls{display:flex;position:fixed;bottom:10px;left:4%;right:4%;justify-content:space-between}#touch-controls>div{display:flex;gap:8px}#touch-controls button{height:48px;min-width:48px;touch-action:none;background:#142c42;border:1px solid #426077;border-radius:7px;color:white}.actionbar{bottom:76px}.game-bottom{display:none}.context-tip{bottom:172px}}
@media(max-height:550px){.hero{top:4%}.hero h1{font-size:82px;margin:7px 0}.hero-subtitle{font-size:19px}.hero-description{display:none}.hero-actions{margin-top:15px}.menu-bottom{height:58px}.mode-options{margin-top:9px}.scene-label{bottom:20%}.start-tip{display:none}.topbar{height:59px}.menu{top:59px}.fight-hud{top:70px}.location{top:145px}.actionbar{bottom:40px}.context-tip{bottom:127px}.game-bottom{bottom:10px}#touch-controls{bottom:5px}.action-button{padding:4px 2px}.action-button kbd{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
#hud{position:fixed;inset:0;pointer-events:none}#hud button{pointer-events:auto}.topbar{background:#080e17d9}body.playing .topbar{backdrop-filter:blur(8px)}
@media(max-width:700px) and (min-height:551px){.actionbar{bottom:118px}.context-tip{bottom:218px}}
.fighter-panel{padding:10px 12px;background:#091420e8;border:1px solid #324d6038;border-radius:8px;backdrop-filter:blur(8px)}.fight-center{padding-top:9px}.location{padding:12px 14px;background:linear-gradient(110deg,#091420f2,#091420aa);border-left:2px solid #59d5ed55;border-radius:0 7px 7px 0;backdrop-filter:blur(5px)}
@media(max-width:700px){.fighter-panel{padding:6px 7px}.fight-hud{gap:8px}.location{top:176px;padding:8px 10px}.fight-center{padding-top:6px}}

/* The same two button groups serve as keyboard legend and multitouch controls. */
#touch-controls{--control-color:var(--cyan);display:flex;position:fixed;left:4%;right:4%;bottom:38px;justify-content:space-between;align-items:end;pointer-events:none;gap:20px}
#touch-controls[data-player="1"]{--control-color:var(--orange)}
#touch-controls>.touch-cluster{display:block;width:152px;flex:none}
#touch-controls .touch-movement,#touch-controls .touch-actions{display:grid;grid-template-columns:repeat(3,48px);grid-template-rows:repeat(3,44px);gap:4px;max-width:none;justify-content:initial;align-items:stretch}
#touch-controls [data-control]{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;width:48px;min-width:44px;height:44px;margin:0;padding:3px 1px;background:#102536e8;border:1px solid #405c71;border-bottom-width:3px;border-radius:7px;color:#e9f3f6;box-shadow:0 3px 12px #0002;touch-action:none;user-select:none;-webkit-user-select:none;pointer-events:auto}
#touch-controls [data-control] b{font-size:14px;font-weight:800;line-height:17px;color:var(--control-color)}
#touch-controls [data-control] small{font-size:7px;font-weight:600;line-height:11px;letter-spacing:0;color:#b3c7d3;white-space:nowrap}
#touch-controls [data-control]:hover{background:#243e51;border-color:#678c9e}
#touch-controls [data-control].pressed,#touch-controls [data-control]:active{background:#31546a;border-color:var(--control-color);transform:translateY(1px);color:white}
#touch-controls .control-up{grid-column:2;grid-row:1}
#touch-controls .control-left{grid-column:1;grid-row:2}
#touch-controls .control-down{grid-column:2;grid-row:2}
#touch-controls .control-right{grid-column:3;grid-row:2}
#touch-controls .control-bottom{grid-column:2;grid-row:3}
#touch-controls .control-object{grid-column:1 / 4;grid-row:3;width:152px;flex-direction:row;gap:10px}
#touch-controls .control-object b{font-size:11px}
#touch-controls .control-object small{font-size:8px}
.control-caption{height:31px;display:flex;align-items:center;justify-content:space-between;margin-bottom:4px;font-size:8px;letter-spacing:1px;color:#abc2d0;text-shadow:0 1px 4px #05111d}
#touch-controls .player-selector{width:152px;height:30px;min-height:30px;border:1px solid #365267;border-radius:5px;background:#0a1c2dea;color:var(--control-color);font-size:9px;letter-spacing:1px;pointer-events:auto;touch-action:manipulation}
.control-caption:has(.player-selector:not([hidden]))>span{display:none}
.actionbar{bottom:73px;max-width:460px;width:max-content;min-height:0;display:flex;flex-direction:column;gap:6px;padding:11px 17px;text-align:center;pointer-events:none;box-shadow:none}
.actionbar strong{font-size:10px;font-weight:600;color:#cadbe4}
.actionbar>span{font-size:8px;line-height:1.6;color:#9eb8c9}
.context-tip{bottom:221px;max-width:calc(100vw - 40px);white-space:normal;line-height:1.6;background:#091a2aed;color:#e0edf4;border-color:#446277}
.game-bottom{font-size:8px;color:#a2bac9}
.fighter-state{color:#a7c1d1;line-height:1.5;min-height:14px}
.weapon-charges{display:block;color:#bdedfb;font-size:9px;line-height:1.6;margin-top:3px;letter-spacing:2px}
.player-two .weapon-charges{color:#ffe0a2}
.weapon-heat{height:3px;width:100%;margin-top:4px;background:#ffffff0d;border-radius:4px;overflow:hidden}
.weapon-heat>div{height:100%;background:linear-gradient(90deg,#ffc15a,#ff776b);border-radius:4px;transition:width .1s}
.help-crosses{background:#071623;border:1px solid #254359;border-radius:6px;padding:7px 14px}
.help-crosses pre{margin:0;font:600 15px/1.8 monospace;letter-spacing:4px;color:#e5f4ff}
.help-note{padding:12px 14px;border-left:2px solid var(--orange);background:#162a38;color:#bed0dc}
.weapon-help{display:grid;grid-template-columns:1fr 1fr;gap:8px 18px;margin:16px 0}
.weapon-help>div{border:1px solid #30495d;border-radius:6px;padding:11px 13px;background:#0b1b2a}
.weapon-help strong{font-size:11px;color:#dbeaf0}.weapon-help p{margin:5px 0 0;font-size:10px;line-height:1.6;color:#acc3d0}
.moves-help .move-row small{color:#a6bdcb}.moves-help .move-row p{color:#a6bdcb}.help-intro{color:#bbd0dd}
.hub-links{flex-wrap:wrap}.hub-links>button{min-height:44px}
.topbar .icon-button{min-width:44px;height:44px}.topbar #help{min-height:44px}.topbar #help>span{display:inline-block;margin-left:5px;border:1px solid #647d8a;border-radius:50%;font-size:11px;width:18px;line-height:17px;text-align:center}
@media(max-width:1000px){.actionbar{max-width:360px}.actionbar>span{max-width:310px}}
@media(max-width:700px){
  #touch-controls{left:3%;right:3%;bottom:16px;gap:12px}
  #touch-controls>.touch-cluster{width:140px}
  #touch-controls .touch-movement,#touch-controls .touch-actions{grid-template-columns:repeat(3,44px);gap:4px}
  #touch-controls [data-control]{width:44px;height:44px;min-width:44px}
  #touch-controls .control-object,#touch-controls .player-selector{width:140px}
  .control-caption{font-size:7px;letter-spacing:.8px;height:30px}
  .actionbar{display:none}.context-tip{bottom:210px;font-size:9px;padding:7px 11px;width:max-content;max-width:93%}
  .fight-hud{top:84px}.fighter-state{font-size:8px}.weapon-charges{font-size:8px;letter-spacing:1px}
  .location{top:174px;max-width:170px}.location h2{font-size:13px;line-height:1.25}.location .eyebrow{font-size:6px}.location button{min-height:30px}
  .topbar nav{gap:5px}.topbar #help{width:44px;font-size:0;padding:0}.topbar #help>span{font-size:14px;margin:0;width:21px;line-height:20px}.brand{gap:7px}
  .weapon-help{grid-template-columns:1fr}.help-crosses pre{font-size:14px}
  #toast{top:248px;font-size:10px;line-height:1.7}
}
@media(max-height:550px) and (min-width:701px){
  #touch-controls{bottom:12px;left:3%;right:3%}.game-bottom{display:none}.actionbar{bottom:23px;padding:8px 12px}.context-tip{bottom:190px}
  .control-caption{height:20px}.fight-hud{top:69px}.location{top:139px;padding:7px 10px;max-width:165px}.location .eyebrow{display:none}.location h2{font-size:15px;margin:0}.location p{display:none}.location button{font-size:9px;padding:6px 0}.fighter-panel{padding:6px 10px}.fight-center{padding-top:3px}
}
@media(prefers-reduced-motion:reduce){#touch-controls [data-control].pressed,#touch-controls [data-control]:active{transform:none}}
@media(max-height:500px) and (orientation:landscape){
  #touch-controls{left:12px;right:12px;bottom:8px}
  #touch-controls>.touch-cluster{width:140px}
  #touch-controls .touch-movement,#touch-controls .touch-actions{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,44px);gap:4px}
  #touch-controls [data-control]{width:44px;height:44px}
  #touch-controls .control-object{width:140px}
  .control-caption{height:0;margin:0}.control-caption>span{display:none}
  #touch-controls .player-selector{position:absolute;bottom:145px;left:0;width:140px;height:28px;min-height:28px}
  .fight-hud{top:61px;width:min(600px,calc(100% - 330px));gap:10px}.fighter-panel{width:calc(50% - 25px);padding:5px 7px}.fighter-line{font-size:9px;letter-spacing:1px}.fighter-line small{font-size:6px;margin-left:4px}.fighter-line strong{font-size:16px}.health-track{margin-top:4px;height:4px}.energy-track{margin-top:4px}.fighter-state{font-size:7px;line-height:1.25;min-height:9px;margin-top:5px}.fight-center{min-width:40px}.fight-center b{font-size:20px}.fight-center>span{font-size:9px;margin:3px}.fight-center small{display:none}
  .weapon-charges{font-size:7px;line-height:1.2;margin-top:2px}.weapon-heat{margin-top:3px;height:2px}
  .context-tip{bottom:52px;max-width:calc(100vw - 334px);font-size:8px;padding:5px 8px}.actionbar{display:none}.game-bottom{display:none}
  .location{left:13px;top:66px;max-width:145px;padding:7px 9px}.location h2{font-size:12px}.location p,.location .eyebrow{display:none}.location button{font-size:8px;min-height:23px;padding:4px 0}
  #toast{top:142px;font-size:9px;padding:7px 12px;max-width:calc(100% - 334px);line-height:1.6}
}
.fight-center{padding:9px;background:#0c2030ee;border:1px solid #36536770;border-radius:7px;box-shadow:0 3px 15px #07111a20}
.fight-center>span{color:#d4e5ed}.fight-center small{color:#a3bfce}
#touch-controls [data-control="jab"].weapon-ready{background:#124755;border:2px solid #87f0ef;color:#f3ffff;box-shadow:0 0 0 3px #52deda20}
#touch-controls [data-control="jab"].weapon-ready small{color:#fff;font-weight:800}
.context-tip.weapon-tip{border-color:#72ebe4;background:#0e303fee;color:#f3ffff;font-weight:700;font-size:12px;box-shadow:0 4px 22px #03131d60}
.actionbar.armed{border:1px solid #578d9e;background:#0c2231ed}
.actionbar.armed strong{color:#e3fafc;font-size:12px}
@media(min-width:701px) and (min-height:551px){.context-tip{bottom:128px;max-width:calc(100vw - 390px)}}
@media(max-width:700px){.context-tip.weapon-tip{font-size:10px;max-width:94%;line-height:1.5}.actionbar.armed{display:none}}
@media(max-width:700px){.fight-center{padding:6px 5px}}
@media(max-height:500px) and (orientation:landscape){.fight-center{padding:5px}}

/* Références et quatre pouvoirs d’un composant. */
.reference-dialog{max-width:1120px}.reference-dialog img{display:block;width:100%;height:auto;max-height:65vh;object-fit:contain;border:1px solid #3e5d70;border-radius:9px;background:#06111a}
#weapon-kit{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding-top:5px;max-width:440px}
#weapon-kit>span{font-size:9px;display:flex;gap:5px;align-items:center;line-height:1.4}#weapon-kit b{display:grid;place-items:center;width:23px;height:24px;flex:none;border:1px solid #6ba6b0;background:#173b48;border-radius:4px;color:#c7f8f3}
#touch-controls [data-control] small{max-width:43px;overflow:hidden;text-overflow:ellipsis}
.actionbar.armed:has(#weapon-kit:not([hidden])){bottom:54px;max-width:480px}#weapon-kit:not([hidden])+span{font-size:7px}
@media(min-width:701px) and (min-height:551px){.actionbar.armed{max-width:calc(100vw - 410px)}}
@media(max-width:700px){.reference-dialog{padding:17px}.reference-dialog img{max-height:54vh}}
@media(min-width:701px) and (min-height:551px){body.armed .context-tip{bottom:175px}}

/* Essai du premier monde : la page originale occupe le fond entier. */
body.screen-world.playing .location{top:auto;bottom:27px;left:50%;transform:translateX(-50%);padding:0;background:none;border:0;backdrop-filter:none;display:flex;align-items:center;justify-content:center;gap:14px;max-width:calc(100vw - 410px);white-space:nowrap}
body.screen-world.playing .location .eyebrow,body.screen-world.playing .location p,body.screen-world.playing .location #visit-project{display:none}
body.screen-world.playing .location h2{font-size:12px;margin:0;color:#d6ebee}
body.screen-world.playing .location h2{overflow:hidden;text-overflow:ellipsis;min-width:0}
body.screen-world.playing .location button{flex-shrink:0}
body.screen-world.playing .location button{font-size:10px;padding:5px 0;min-height:28px}
body.screen-world.playing .actionbar{bottom:79px;background:#091923b8;border-color:#2c4559}
body.screen-world.playing .context-tip{bottom:160px;font-size:10px}
body.screen-world.playing.armed .context-tip{bottom:200px}
body.screen-world.playing .fight-hud{top:82px}
body.screen-world.playing .game-bottom{display:none}
body.screen-world.playing .fight-center small{display:none}
body.screen-world.playing .fight-center{padding:5px 9px}
body.screen-world.playing #touch-controls [data-control="object"] small{max-width:none}
@media(max-height:550px) and (min-width:701px){body.screen-world.playing .fight-hud{width:350px;max-width:calc(100vw - 340px);gap:6px}body.screen-world.playing .fighter-panel{padding:7px}body.screen-world.playing .fighter-state{font-size:7px}}
@media(max-width:700px){body.screen-world.playing .location{bottom:188px;max-width:94%;gap:8px}body.screen-world.playing .location h2{font-size:10px}body.screen-world.playing .location button{font-size:8px}body.screen-world.playing .context-tip,body.screen-world.playing.armed .context-tip{bottom:222px;font-size:9px}}
@media(max-height:550px) and (min-width:701px){body.screen-world.playing .fight-hud{top:64px}body.screen-world.playing .location{bottom:12px;max-width:calc(100vw - 330px);gap:8px}body.screen-world.playing .location h2{font-size:9px}body.screen-world.playing .location button{font-size:8px}body.screen-world.playing .context-tip,body.screen-world.playing.armed .context-tip{bottom:53px;font-size:8px}}

/* La maison garde la même place pendant tous les voyages et défilements. */
.home-return{position:fixed;z-index:6;left:24px;top:184px;width:140px;height:46px;display:flex;align-items:center;gap:9px;padding:7px 11px;border:2px solid #ffd078;border-radius:9px;background:#101d2bf5;color:#fff5da;box-shadow:0 3px 16px #0006;text-align:left;touch-action:manipulation}
.home-return svg{width:28px;height:28px;fill:none;stroke:#ffd078;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.home-return span{font-size:11px;font-weight:800;line-height:1.25}.home-return small{display:block;color:#ffd078;font-size:8px;letter-spacing:1px;margin-bottom:3px}
.home-return:hover{background:#2d3945;border-color:#ffe9b8}.home-return:active{background:#43505d}
@media(max-width:700px){.home-return{left:12px;top:176px}}
@media(max-height:550px){.home-return{left:12px;top:138px}}

/* Le choix du départ reste visible avant de lancer la partie. */
.hero-actions .start-world-button{flex:0 1 240px;min-width:0;gap:18px;padding:7px 16px;text-align:left}
.start-world-copy{display:block;min-width:0;line-height:1.5}
.start-world-copy small{display:block;font-size:10px;color:#a7becd}
.start-world-copy strong{display:block;font-size:12px;font-weight:800;color:var(--orange);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.start-world-button svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:var(--orange);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.project-card[aria-pressed=true],.hub-links>button[aria-pressed=true]{border-color:var(--orange);background:#243242;box-shadow:inset 0 0 0 1px var(--orange)}
.scene-label{max-width:240px}
@media(max-width:700px){.hero-actions .primary-button{padding:0 12px;gap:10px}.hero-actions .start-world-button{flex:1;padding:8px 12px;gap:8px}.start-world-copy strong{font-size:11px}.start-world-copy small{font-size:9px}.scene-label{max-width:170px}}
@media(max-height:550px){
  #explorer{padding:16px 24px;max-height:calc(100dvh - 24px);width:calc(100% - 24px)}
  #explorer .dialog-top{margin-bottom:10px}
  #explorer .dialog-top h2{font-size:23px;margin-top:2px}
  #explorer .explorer-path,#explorer-intro{display:none}
  #explorer .explorer-tools{margin:10px 0}
  #explorer .hub-links{margin-bottom:12px}
  #explorer .project-preview,#explorer .project-placeholder{height:76px}
}
