@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--bg:#071820;--panel:#10262e;--muted:#8ca6ad;--mint:#76efd0;--orange:#ffbd75}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#e7f3f2;font-family:Inter,Arial,sans-serif;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:600 13px Inter,Arial;cursor:pointer;color:inherit;background:#18363f;border:1px solid #34515a;border-radius:6px;padding:12px 18px;touch-action:manipulation}button:hover{border-color:var(--mint)}button:focus-visible{outline:2px solid white;outline-offset:3px}button.primary,#begin{background:var(--mint);border-color:var(--mint);color:#07251f}header{height:68px;margin:0 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #25404a}.brand{color:#dbecea;text-decoration:none;font-size:32px;display:flex;align-items:center;gap:12px}.brand span{font-size:15px;font-weight:700;letter-spacing:2px}.brand b{font-weight:400;color:var(--muted)}.edition{font-size:10px;letter-spacing:2px;color:var(--muted)}.edition span{margin:0 15px;color:#43636d}.quiet{background:transparent;padding:8px 11px;color:#abc2c8}main{padding:0 32px}.missionbar{height:105px;display:flex;align-items:center;justify-content:space-between;gap:20px}.eyebrow{color:var(--mint);font-size:10px;letter-spacing:2px;font-weight:600}h1{font-family:'Barlow Condensed',Arial;font-size:30px;margin:7px 0;font-weight:500}.stats{display:flex;gap:32px;align-items:center}.stats small{display:block;font-size:9px;letter-spacing:1px;color:var(--muted)}.stats strong{font-family:'Barlow Condensed',Arial;font-size:32px;font-weight:500;display:block;margin-top:4px}.stats strong span{font-size:17px;color:var(--muted);margin-left:3px}#arena{height:calc(100dvh - 224px);min-height:240px;position:relative;overflow:hidden;border:1px solid #2a444e;border-radius:10px;background:#0b232c}canvas{width:100%;height:100%;display:block}.maptag{position:absolute;top:18px;left:20px;font-size:9px;letter-spacing:1.6px;color:#bbd5da;pointer-events:none}.maptag i{display:inline-block;width:5px;height:5px;background:var(--mint);border-radius:50%;margin-right:7px}.maptag span{margin-left:20px;color:#668994}#status{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);font-size:12px;color:#b5cfd4;text-align:center;pointer-events:none;background:#071820cf;padding:8px 14px;border-radius:20px;white-space:nowrap}footer{height:50px;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted);gap:12px}.dot{width:6px;height:6px;border-radius:50%;display:inline-block;margin:0 5px 1px 13px}.dot:first-child{margin-left:0}.green{background:var(--mint)}.amber{background:var(--orange)}.gray{background:#65808b}.modelnote{font-size:9px}.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#04141ca8;backdrop-filter:blur(6px);z-index:5;padding:20px;overflow:auto}.overlay:empty{display:none}.card{max-width:740px;width:100%;padding:30px 36px;background:linear-gradient(130deg,#132e38f5,#0c202af5);border:1px solid #3a5762;border-radius:12px;box-shadow:0 20px 100px #0007}.card h2{font-family:'Barlow Condensed',Arial;font-size:46px;line-height:1.05;font-weight:500;margin:12px 0 16px}.card p{font-size:13px;line-height:1.75;color:#b7cdd2;max-width:610px}.card .actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}.pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.tile{border:1px solid #34505b;border-radius:7px;padding:14px 16px;font-size:12px;color:#adc4ca;line-height:1.6}.tile b{display:block;color:#edf6f4;font-size:14px;margin-bottom:4px}.tile em{color:var(--mint);font-style:normal}.tiny{font-size:10px!important;color:#7897a1!important}.results{width:100%;border-collapse:collapse;font-size:13px;margin-top:20px}.results th,.results td{text-align:left;padding:10px 8px;border-bottom:1px solid #2c4853}.results th{color:#a6c1c9;font-size:11px;font-weight:500}.results td:last-child{color:var(--mint)}#practicebar{position:absolute;top:14px;right:15px;display:flex;align-items:center;gap:15px;font-size:10px;color:var(--mint)}#practicebar[hidden]{display:none}#touch{position:absolute;left:20px;right:20px;bottom:20px;display:flex;justify-content:space-between;align-items:end;pointer-events:none}#touch button{pointer-events:auto;user-select:none;touch-action:none;background:#102d37bb;border-color:#4f7e8b77;width:44px;height:42px;padding:0;font-size:21px}#touch button.active,#hover.active{background:#317b71;color:white;border-color:var(--mint)}.dpad{display:grid;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,42px);gap:3px}.dpad button:first-child{grid-column:2}.dpad button:nth-child(2){grid-row:2;grid-column:1}.dpad span{grid-row:2;grid-column:2}.dpad button:nth-child(4){grid-row:2;grid-column:3}.dpad button:last-child{grid-row:3;grid-column:2}#rotation{display:flex;gap:6px;margin-bottom:8px}#touch #hover{width:94px;font-size:15px}#hover span{font-size:10px;margin-left:4px}.leftcontrols{min-width:94px}@media(pointer:fine){#touch{opacity:.7}.dpad{display:none}#rotation{display:none}}@media(max-width:900px){header{margin:0 16px;height:52px}.edition{display:none}main{padding:0 16px}.missionbar{height:86px}h1{font-size:24px}.stats{gap:18px}.stats strong{font-size:26px}.stats small{font-size:8px}#arena{height:calc(100dvh - 176px)}footer{height:38px}#keyhint,.modelnote{display:none}.card{padding:24px}.card h2{font-size:34px}.maptag span{display:none}#status{bottom:10px;font-size:10px;max-width:52%;white-space:normal}}@media(max-height:560px){header{height:38px}.missionbar{height:60px}h1{font-size:21px;margin:3px 0}.eyebrow{font-size:8px}.stats strong{font-size:24px;margin:0}.stats{gap:20px}#arena{height:calc(100dvh - 125px);min-height:180px}footer{height:27px}.card{padding:16px 24px;max-width:700px}.card h2{font-size:30px;margin:7px 0}.card p{font-size:11px;margin:7px 0}.pair{margin:10px 0;gap:8px}.tile{padding:9px 12px;font-size:10px}.tile b{font-size:12px}.card .actions{margin-top:12px}.card button{padding:9px 14px}.tiny{font-size:9px!important}.maptag{top:12px;left:12px}#practicebar{top:8px}#practicebar button{padding:8px 12px}#touch{bottom:12px}.results th,.results td{padding:6px}}@media(max-width:550px) and (orientation:portrait){.missionbar{height:110px;align-items:start;padding-top:15px;flex-wrap:wrap;gap:2px}.missionbar h1{font-size:21px}.stats{width:100%;justify-content:space-between}.stats strong{font-size:21px}.stats small{font-size:7px}#arena{height:calc(100dvh - 200px)}.brand span{font-size:11px}.card h2{font-size:31px}.pair{grid-template-columns:1fr}.card{padding:20px}.tile{padding:9px}.card p{font-size:12px}#practicebar{left:12px;right:12px;top:35px;justify-content:space-between}.maptag{font-size:8px}#status{bottom:158px;max-width:85%}.results{font-size:11px}.results th{font-size:9px}}
.card{max-height:100%;overflow:auto;overscroll-behavior:contain}button:disabled{opacity:.4}.overlay{align-items:safe center}
@media(max-width:900px){#touch{opacity:1}.dpad{display:grid}#rotation{display:flex}.overlay{position:fixed;inset:0;padding:12px;z-index:20}.card{max-height:calc(100dvh - 24px)}}
@media(max-height:560px){.card h2 br{display:none}.card .pair{margin:8px 0}.card h2{font-size:28px}.card .actions{margin-top:10px}}
#inspection{font-size:24px;white-space:nowrap}#inspection span{font-size:12px}@media(max-height:560px),(max-width:550px){#inspection{font-size:19px}#inspection span{font-size:10px}}
.header-actions{display:flex;align-items:center;gap:8px}#endmission{color:#f1c291;border-color:#785d42}@media(max-width:550px){header{margin:0 10px}.header-actions{gap:5px}.header-actions button{font-size:10px;padding:8px}.brand{gap:6px}.brand span{font-size:10px;letter-spacing:1px}}
.mission-health{position:absolute;top:42px;left:20px;display:flex;gap:9px;pointer-events:none;font-size:9px;letter-spacing:.7px}.mission-health span{background:#071820d9;border:1px solid #46616b;border-radius:4px;padding:7px 9px}#hull{color:#76efd0}#hull.critical{color:#ff8b76;border-color:#bd6557}#routegate{color:#9aafc4}#routegate.unlocked{color:#76efd0}#arena.damaged{box-shadow:inset 0 0 40px #f45e5077;border-color:#f08b75}.tile b.inline{display:inline;font-size:inherit}@media(max-width:550px) and (orientation:portrait){.mission-health{top:80px;left:12px;font-size:8px}}@media(max-height:560px){.mission-health{top:38px;left:12px;font-size:8px}.mission-health span{padding:5px 7px}}
#touch .dpad button{font-size:14px;font-weight:700}.mission-health{flex-wrap:wrap;max-width:calc(100% - 40px)}#fins{color:#eec38e}@media(max-width:550px) and (orientation:portrait){.mission-health{gap:4px;font-size:7px}.mission-health span{padding:5px 6px}}
.desktop-controls{flex:1;min-width:190px;text-align:center;color:#c4d9dc;font-size:12px;line-height:1.7}.desktop-controls small{display:block;color:var(--mint);font-size:9px;letter-spacing:1.4px;margin-bottom:3px}#keyhint{white-space:pre-line}@media(min-width:901px){.missionbar>div:first-child{flex:0 1 32%;min-width:0}.missionbar .stats{flex-shrink:0;gap:22px}.missionbar h1{font-size:clamp(23px,2.2vw,30px)}}@media(max-width:1100px) and (min-width:901px){.desktop-controls{font-size:10px;min-width:160px}.missionbar{gap:12px}.missionbar .stats{gap:14px}}@media(max-width:900px){.desktop-controls{display:none}}@media(max-height:560px) and (min-width:901px){.desktop-controls{font-size:10px;line-height:1.35}.desktop-controls small{font-size:8px;margin-bottom:1px}}
.throttle,.steering{display:none} @media (pointer:coarse),(max-width:900px){#touch button{width:64px;height:58px;font-size:18px}#touch.conventional .leftcontrols,#touch.conventional .dpad{display:none}#touch.conventional .throttle{display:flex;flex-direction:column;gap:10px;pointer-events:auto}#touch.conventional .steering{display:flex;gap:14px;pointer-events:auto}#touch.conventional .throttle button,#touch.conventional .steering button{width:78px;height:66px;font-size:17px}#touch:not(.conventional) .dpad{grid-template-columns:repeat(3,64px);grid-template-rows:repeat(3,58px);gap:8px}#touch:not(.conventional) #hover{width:138px;height:58px}#touch:not(.conventional) #rotation{gap:10px}#touch{bottom:14px;left:14px;right:14px} } @media(max-height:450px){#touch.conventional .throttle button,#touch.conventional .steering button{width:68px;height:54px}#touch button{width:54px;height:48px}#touch:not(.conventional) .dpad{grid-template-columns:repeat(3,54px);grid-template-rows:repeat(3,48px);gap:5px}}

.brand img{display:block;width:160px;height:auto;max-height:44px;object-fit:contain;object-position:left center}@media(max-height:560px){.brand img{width:125px;max-height:32px}}@media(max-width:550px){.brand img{width:120px;max-height:34px}}

.jet-horizontal,.jet-vertical{display:none}
@media (pointer:coarse),(max-width:900px){
  #touch:not(.conventional) .dpad{display:none}
  #touch:not(.conventional) .jet-horizontal{display:flex;gap:10px;pointer-events:auto}
  #touch:not(.conventional) .jet-vertical{display:flex;flex-direction:column;gap:10px;pointer-events:auto}
  #touch:not(.conventional) .leftcontrols{position:absolute;bottom:138px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;min-width:0}
  #touch:not(.conventional) #rotation{margin:0;gap:8px}
  #touch:not(.conventional) #hover{width:110px}
  #touch:not(.conventional) .jet-horizontal button,#touch:not(.conventional) .jet-vertical button{width:68px;height:60px}
}
@media (max-height:450px){
  #touch:not(.conventional) .leftcontrols{bottom:110px}
  #touch:not(.conventional) .jet-horizontal button,#touch:not(.conventional) .jet-vertical button{width:56px;height:48px}
  #touch:not(.conventional) #hover{height:48px;width:95px}
}

/* Compact navigation shares the game header, preserving the play area. */
header { position: relative; z-index: 30; gap: 12px; }
.site-menu { position: relative; margin-right: auto; }
.site-menu summary { cursor: pointer; list-style: none; border: 1px solid #34515a; border-radius: 6px; padding: 9px 11px; font: 700 15px/1 Inter,Arial,sans-serif; color: #dbecea; white-space: nowrap; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary span { font-size: 10px; letter-spacing: 1px; margin-left: 4px; }
.site-menu summary:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.site-menu nav { position: absolute; left: 0; top: calc(100% + 8px); width: 225px; max-height: calc(100dvh - 55px); overflow-y: auto; background: #10262e; border: 1px solid #34515a; border-radius: 7px; box-shadow: 0 15px 45px #0009; }
.site-menu nav a { display: block; padding: 12px 16px; color: #e7f3f2; text-decoration: none; font-size: 12px; border-bottom: 1px solid #25404a; }
.site-menu nav a:hover, .site-menu nav a:focus-visible { background: #24515a; }
@media(max-width:550px){.site-menu summary { padding: 8px; } .site-menu summary span { display: none; } header { gap: 6px; }}
@media(max-height:560px){.site-menu summary { padding: 6px 9px; } .site-menu nav a { padding: 9px 16px; }}

/* Keep JETTE touch controls together on the left, away from the survey. */
@media (pointer:coarse),(max-width:900px) {
  #touch:not(.conventional) .leftcontrols { left: 0; bottom: 70px; transform: none; display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 146px; }
  #touch:not(.conventional) #rotation { display: flex; gap: 10px; }
  #touch:not(.conventional) #rotation button { width: 68px; height: 54px; }
  #touch:not(.conventional) #hover { order: -1; width: 146px; height: 50px; }
}
@media (max-height:450px) {
  #touch:not(.conventional) .leftcontrols { bottom: 56px; width: 122px; gap: 6px; }
  #touch:not(.conventional) #rotation { gap: 10px; }
  #touch:not(.conventional) #rotation button { width: 56px; height: 44px; }
  #touch:not(.conventional) #hover { width: 122px; height: 44px; }
}

/* Status sits below the survey map, leaving the return route unobstructed. */
footer #status { position: static; transform: none; max-width: none; background: none; padding: 0; border-radius: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; flex: 1 1 auto; min-width: 0; font-size: 11px; }
footer > div { flex: 0 0 auto; }
@media(max-width:900px) { footer #status { font-size: 10px; } }
@media(max-width:550px) { footer > div { display: none; } footer #status { font-size: 10px; } }

#readybar { position: absolute; top: 14px; right: 15px; display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .4px; color: #e7f3f2; padding: 7px 8px 7px 12px; background: #071820e8; border: 1px solid #4f7e8b; border-radius: 7px; }
#readybar[hidden] { display: none; }
#readybar button { background: var(--mint); color: #07251f; border-color: var(--mint); }
@media(max-height:560px) { #readybar { top: 8px; right: 8px; padding: 4px 5px 4px 8px; } #readybar button { padding: 8px 12px; } }
@media(max-width:550px) and (orientation:portrait) { #readybar { top: 35px; right: 12px; } }
