/* DeepFrontiers globe — Interface v3.1.0, CSS de la légende / du cartouche */
:root {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #e7f3f8;
  background: #03080f;
}
* { box-sizing: border-box; }
html, body, #app { margin: 0; width: 100%; height: 100%; min-height: 550px; overflow: hidden; }
#app {
  position: relative;
  background: radial-gradient(ellipse 60% 72% at 57% 49%, #082235 0%, #030c16 56%, #02060b 100%);
}
#stage { position: absolute; inset: 0; touch-action: none; cursor: grab; }
#stage:active { cursor: grabbing; }
.ambient {
  pointer-events: none;
  position: absolute; left: 44%; top: 13%; width: 55vw; height: 72vh;
  transform: translateX(-15%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(30,128,175,.07), transparent 70%);
}
.brand {
  z-index: 3; position: absolute; top: 27px;
  left: clamp(18px,4vw,56px); display: flex; gap: 13px;
  align-items: center; pointer-events: none;
}
.brand-symbol {
  width: 40px; height: 40px; border: 1.5px solid #58c5ee; border-radius: 50%;
  display: grid; place-items: center; color: #6ad9ff; font-size: 25px;
  box-shadow: 0 0 20px #20759933;
}
.brand-title { font-size: 14px; letter-spacing: .23em; font-weight: 800; }
.brand-subtitle { font-size: 10px; color: #93aebe; letter-spacing: .02em; margin-top: 5px; }
.panel {
  z-index: 4; position: absolute; bottom: clamp(58px,8vh,100px);
  left: clamp(18px,4vw,56px); width: min(358px,calc(100vw - 36px));
  max-height: calc(100vh - 118px); overflow-y: auto;
  padding: 22px 23px 20px; background: rgba(5,19,32,.88);
  border: 1px solid #24495e; border-radius: 16px;
  box-shadow: 0 18px 55px #0007; backdrop-filter: blur(12px);
}
.eyebrow { color: #60c8eb; font-weight: 700; font-size: 10px; letter-spacing: .18em; }
h1 { font-size: 24px; font-weight: 720; letter-spacing: -.025em; margin: 12px 0 12px; line-height: 1.17; }
.intro { color: #b1c5d0; font-size: 12.7px; line-height: 1.6; margin: 0 0 15px; }
.legend { border-top: 1px solid rgba(105,147,172,.25); padding: 13px 0 13px; }
.legend h2 {
  color: #839eac; font-size: 9.5px; line-height: 1.2;
  font-weight: 750; letter-spacing: .15em; margin: 0 0 10px;
}
.legend ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.legend li { display: flex; align-items: center; gap: 14px; font-size: 11.5px; line-height: 1.3; color: #b5c8d1; }
.legend-symbol { flex: none; display: inline-block; width: 30px; }
.legend-line { height: 0; border-top: 2px solid; border-radius: 2px; }
.legend-maritime { border-color: #5bb3e0; box-shadow: 0 0 5px rgba(91,179,224,.38); }
.legend-road { border-color: #d6a04b; box-shadow: 0 0 4px rgba(214,160,75,.20); }
.legend-point { width: 7px; height: 7px; border-radius: 50%; margin-left: 11.5px; margin-right: 11.5px; }
.legend-port { background: #f1a0bb; box-shadow: 0 0 0 3px rgba(241,160,187,.14); }
.legend-city { background: #849cab; box-shadow: 0 0 0 2px rgba(132,156,171,.10); }
.legend-ice {
  height: 7px; border-radius: 2px;
  background: linear-gradient(90deg, #182b35, #8d9ca4 52%, #ecf4f7 100%);
  border: 1px solid rgba(220,237,242,.22);
}
.control-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; border-top: 1px solid rgba(105,147,172,.25);
  padding: 14px 0 0; font-size: 12px; color: #c8d9e0; cursor: pointer;
}
input[type="checkbox"] { accent-color: #5bc3e8; width: 16px; height: 16px; cursor: pointer; }
button {
  margin-top: 15px; background: #163d54; border: 1px solid #326b88;
  border-radius: 9px; width: 100%; padding: 10px;
  color: #e7f6fc; cursor: pointer;
}
button:hover { background: #20516a; }
button:focus-visible, input:focus-visible, .footer a:focus-visible {
  outline: 2px solid #70d5f5; outline-offset: 3px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.footer {
  z-index: 5; position: absolute; right: clamp(18px,3vw,46px); bottom: 17px;
  max-width: min(780px,calc(100% - 36px));
  padding: 6px 10px; border-radius: 6px; background: rgba(3,8,15,.65);
  color: #a4b4bf; font-size: 11px; line-height: 1.4; text-align: right;
}
.footer a { color: #b7d5e3; text-decoration: underline; text-underline-offset: 2px; }
.footer a:hover { color: #e4f6ff; }
.fatal {
  z-index: 10; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  max-width: min(700px,92vw); padding: 24px;
  background: #152532; border: 1px solid #d87a5b; border-radius: 15px;
  color: #f4c1b5; font-size: 14px; white-space: pre-wrap;
}
@media(max-width:800px) {
  .brand { top: 16px; left: 18px; }
  .panel { padding: 15px 17px; width: min(314px,calc(100vw - 36px)); bottom: 70px; max-height: calc(100vh - 154px); }
  h1 { font-size: 20px; }
  .intro { font-size: 12px; }
  .legend ul { gap: 7px; }
  .footer { right: 12px; left: 12px; bottom: 10px; max-width: none; font-size: 10px; text-align: center; }
}

/* Isolated site navigation and compact-screen access to the existing controls. */
.globe-nav { position: absolute; z-index: 6; top: 30px; right: clamp(18px,3vw,46px); display: flex; gap: 18px; font-size: 12px; }
.globe-nav a { color: #b7d5e3; text-underline-offset: 3px; }
.globe-nav a:focus-visible, summary:focus-visible { outline: 2px solid #70d5f5; outline-offset: 3px; }
.panel summary { display: none; cursor: pointer; color: #b7d5e3; font-size: 12px; }
.globe-help { color: #93aebe; font-size: 10px; line-height: 1.5; margin: 12px 0 0; }
@media (max-width: 800px), (max-height: 550px) {
  html, body, #app { min-height: 0; }
  .globe-nav { top: 74px; left: 18px; right: auto; }
  .panel { max-height: calc(100dvh - 184px); }
  .panel summary { display: list-item; }
  .panel details[open] summary { margin-bottom: 15px; }
}
