@charset "UTF-8";

#minimap { position: absolute; top: 176px; right: 4.5%; width: 268px; padding: 12px; border: 1px solid #c5dfcd30; border-radius: 14px; background: #102635e8; box-shadow: 0 8px 28px #0003; backdrop-filter: blur(12px); pointer-events: none; }
#globe-map { position: absolute; top: 462px; right: 4.5%; width: 220px; padding: 12px; border: 1px solid #c5dfcd30; border-radius: 14px; background: #102635e8; box-shadow: 0 8px 28px #0003; backdrop-filter: blur(12px); pointer-events: none; }
#globe-map canvas { display: block; width: 100%; height: auto; }
#globe-map[data-size="large"] { width: 400px; }
.map-heading .globe-size { font-size: 13px; margin-right: 6px; }
.globe-caption { margin: 0; color: #adc5c4; font-size: 10px; text-align: center; }
#globe-map.collapsed .map-heading { margin-bottom: 0; }
body[data-view="ground"] #globe-map, body[data-view="external"] #globe-map { top: 392px; }
@media (min-width: 701px) and (min-height: 481px) and (max-height: 740px) {
  #globe-map { top: 456px; width: 146px; padding: 8px; }
  body[data-view="ground"] #globe-map, body[data-view="external"] #globe-map { top: 392px; width: 180px; }
}
@media (max-width: 700px) {
  #globe-map, body[data-view="ground"] #globe-map, body[data-view="external"] #globe-map { top: 210px; left: 12px; right: auto; width: clamp(130px, 36vw, 154px); padding: 10px; }
}
@media (max-width: 700px) and (max-height: 700px) {
  #globe-map, body[data-view="ground"] #globe-map, body[data-view="external"] #globe-map { top: 187px; width: 130px; padding: 8px; }
}
@media (min-width: 701px) and (max-height: 480px) {
  #globe-map { top: 92px; right: calc(4.5% + 194px); width: 154px; padding: 8px; }
  body[data-view="ground"] #globe-map, body[data-view="external"] #globe-map { top: 88px; left: 160px; right: auto; }
}
.map-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 11px; color: #e0e9d7; }
.map-heading > span { display: flex; align-items: center; gap: 7px; }
.map-heading i { width: 6px; height: 6px; background: #ffe19b; border-radius: 50%; }
.map-heading button { width: 24px; height: 24px; padding: 0; border: 1px solid #c5dfcd30; border-radius: 6px; background: #c7dcae10; color: #e0e9d7; cursor: pointer; pointer-events: auto; font-size: 16px; }
.map-heading .map-drag-handle { display: flex; align-items: center; gap: 7px; flex: 1; width: auto; min-width: 0; border: 0; background: transparent; font-size: inherit; cursor: grab; touch-action: none; user-select: none; }
.map-drag-handle svg { width: 9px; height: 12px; fill: none; stroke: #adc5c4; stroke-width: 2; stroke-linecap: round; }
#minimap.dragging .map-drag-handle { cursor: grabbing; }
#minimap canvas { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid #c5dfcd24; }
.map-coordinates { margin: 8px 0 0; color: #adc5c4; font-size: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.placement-ghost { position: fixed; z-index: 10; transform: translate(-50%, -100%); pointer-events: none; filter: drop-shadow(0 3px 7px #0008); }
.placement-ghost svg { width: 44px; height: 66px; }
.placement-ghost.invalid { opacity: .65; filter: drop-shadow(0 0 6px #f08b77); }
body.placing-explorer #world { cursor: crosshair; }
#minimap.collapsed .map-heading { margin-bottom: 0; }
@media (max-width: 700px) { #minimap { top: 210px; right: 16px; width: clamp(154px, 48vw, 208px); padding: 10px; } .map-heading { font-size: 10px; gap: 6px; } }
@media (max-width: 700px) and (max-height: 700px) { #minimap { top: 187px; right: 12px; width: 154px; padding: 8px; } .map-heading { margin-bottom: 4px; } .map-heading button { width: 20px; height: 20px; } .map-coordinates { margin-top: 4px; } body[data-view="ground"] .walk-location, body[data-view="external"] .walk-location { bottom: 210px; } }
@media (min-width: 701px) and (max-height: 480px) { #minimap { top: 126px; right: 4.5%; width: 180px; padding: 8px; } .map-heading { margin-bottom: 4px; } .map-coordinates { margin-top: 4px; } }

:root { color-scheme: dark; font-family: "Segoe UI", Arial, sans-serif; color: #f0eee6; background: #090f20; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid #b3edc5; outline-offset: 6px; }
summary:focus-visible { outline: 2px solid #b3edc5; outline-offset: 4px; }
[hidden] { display: none !important; }
.universe { position: relative; min-height: 640px; height: 100svh; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 42% 46%, #163045 0, #0c1c2f 29%, #090f20 66%); }
.nebula { position: absolute; inset: 0; pointer-events: none; opacity: .6; background: radial-gradient(ellipse at 83% 4%, #34406c35, transparent 46%), radial-gradient(ellipse at 57% 88%, #314a4e24, transparent 40%); }
.nebula::after { content: ""; position: absolute; width: 65vw; height: 65vw; top: 48%; left: 42%; transform: translate(-50%, -50%); border: 1px solid #bddbdb08; border-radius: 50%; box-shadow: 0 0 0 70px #badce603, 0 0 0 140px #badce602; }
#world { position: absolute; width: 100%; height: 100%; inset: 0; display: block; touch-action: none; cursor: grab; outline: none; }
#world:active { cursor: grabbing; }
#world:focus-visible { outline: 1px solid #a3d7c677; outline-offset: -5px; }
.topbar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 36px 4.5%; pointer-events: none; }
.brand { color: #f3f1e9; font-size: 24px; font-weight: 700; letter-spacing: .3px; text-decoration: none; text-shadow: 0 1px 6px #0912208c; pointer-events: auto; }
.edition { display: flex; align-items: center; gap: 12px; font-size: 9px; letter-spacing: 2.1px; color: #b1bebf; }
.live-dot { height: 5px; width: 5px; border-radius: 50%; background: #b6dbaf; box-shadow: 0 0 10px #a4e5a12a; }
.edition-number { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #c3e1d824; border-radius: 50%; margin-left: 10px; color: #d2e1d3; font-size: 10px; letter-spacing: 0; }
.touch-hint { display: none; }
/* A barra de carregar (pedido de 14/10/2026), no lugar do planeta enquanto ele monta. O preenchimento
   desliza por transform: assim o navegador o anima mesmo com a página presa montando o planeta. */
.loading { position: absolute; top: 47%; left: 42%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 14px; width: min(380px, 80vw); color: #c8e1d6; text-align: center; transition: opacity .4s; }
.loading[data-done] { opacity: 0; }
.loading-title { margin: 0; font-size: 17px; }
.loading-track { width: 100%; height: 14px; border: 1px solid #c9dfb766; border-radius: 999px; background: #142131d9; overflow: hidden; }
.loading-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5fbf86, #c9e9a8); transform: translateX(-100%); transition: transform .3s linear; will-change: transform; }
.loading-percent { font-size: 24px; font-weight: 700; color: #e6f0dc; font-variant-numeric: tabular-nums; }
.error { position: absolute; top: 50%; left: 42%; transform: translate(-50%, -50%); width: min(360px, 84vw); padding: 24px; background: #142537; border: 1px solid #adcbb64a; border-radius: 16px; }
.error h2 { font-size: 18px; font-weight: 500; }
.error p { color: #b9c6c9; font-size: 13px; line-height: 1.6; }
.error button { padding: 10px 14px; border: none; border-radius: 7px; color: #0f242a; background: #c7dcae; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.orbit-heading { display: flex; align-items: center; gap: 8px; }
.orbit-heading strong { font-size: 13px; font-weight: 500; letter-spacing: .3px; }
.orbit-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #b5cbbc; }
.orbit-heading button { margin-left: auto; width: 28px; height: 26px; border: 1px solid #b8d3d32b; border-radius: 6px; color: #d4dfce; background: #bad2c50d; cursor: pointer; font-size: 12px; }
.orbit-panel p { margin: 8px 0 12px; font-size: 11px; line-height: 1.5; color: #a4b5bd; }
.eclipse-actions { display: flex; gap: 7px; }
.eclipse-actions button { flex: 1; padding: 10px 5px; border: 1px solid #c5d9cb29; border-radius: 7px; background: #cfddc70c; color: #d8e3cd; font-size: 12px; cursor: pointer; }
.eclipse-actions button:hover, .orbit-heading button:hover { background: #cfddc723; }
.orbit-panel[data-event="solar"] .orbit-status-dot { background: #f5c777; box-shadow: 0 0 10px #f5c77760; }
.orbit-panel[data-event="lunar"] .orbit-status-dot { background: #d78566; box-shadow: 0 0 10px #d7856660; }
@media (max-width: 700px) {
  .universe { min-height: 560px; }
  .topbar { padding: 24px 24px; }
  .brand { font-size: 20px; }
  .edition { font-size: 0; gap: 0; }
  .edition-number { margin-left: 12px; font-size: 9px; width: 28px; height: 28px; }
  .loading, .error { left: 50%; top: 53%; }
  .nebula::after { left: 50%; top: 53%; width: 100vw; height: 100vw; }
}
@media (pointer: coarse) { .desktop-hint { display: none; } .touch-hint { display: inline; } }
@media (max-height: 680px) and (min-width: 701px) { .universe { min-height: 460px; } .topbar { padding-top: 22px; } }
@media (max-height: 480px) and (min-width: 701px) { .universe { min-height: 360px; } .topbar { padding-top: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

body[data-view="ground"] .edition, body[data-view="external"] .edition { display: none; }
body[data-view="ground"] .universe, body[data-view="external"] .universe { min-height: 0; }
body[data-view="ground"] .brand { filter: drop-shadow(0 1px 4px #142534); }
#walking-hud { position: absolute; inset: 0; pointer-events: none; }
.view-switch { position: absolute; top: 35px; right: 4.5%; display: flex; gap: 4px; padding: 5px; border-radius: 13px; background: #102635e8; border: 1px solid #c5dfcd30; box-shadow: 0 6px 24px #0002; pointer-events: auto; }
.view-switch button { background: transparent; color: #c6d5ce; border: 0; border-radius: 8px; padding: 12px 18px; font-size: 12px; cursor: pointer; }
.view-switch button[aria-pressed="true"] { background: #c7dcae; color: #193638; }
.view-switch button:hover { box-shadow: inset 0 0 0 1px #c7dcae66; }
.view-switch > span { border-left: 1px solid #c7dcae26; margin: 8px 4px; }
/* The eclipses seen from the ground: two buttons in plain sight, to the left of the clock.
   The `top` follows the clock: bar padding plus the shift the clock gets while walking. */
.sky-watch { display: none; position: absolute; top: 104px; right: calc(4.5% + 166px); align-items: center; gap: 4px; padding: 5px; border-radius: 11px; background: #102635e8; border: 1px solid #c5dfcd30; pointer-events: auto; }
body[data-view="ground"][data-environment="planet"] .sky-watch { display: flex; }
.sky-watch button { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 0; border-radius: 7px; background: transparent; color: #dae4d6; font-size: 11px; white-space: nowrap; cursor: pointer; }
.sky-watch button:hover { background: #c7dcae25; }
.sky-watch button:focus-visible { outline: 2px solid #c7dcae; outline-offset: 1px; }
.sky-watch .sky-title { display: none; padding: 0 2px 0 7px; color: #a7bcb5; letter-spacing: .3px; }
.sky-watch .sky-short { display: none; }
.sky-watch small { position: absolute; top: calc(100% + 6px); right: 0; width: 220px; padding: 9px 11px; border-radius: 9px; background: #102635f5; border: 1px solid #c5dfcd30; color: #e6d5ad; font-size: 10px; line-height: 1.5; }
.walk-location { position: absolute; left: 50%; bottom: 86px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: #102635da; border: 1px solid #bdd5c820; border-radius: 30px; font-size: 11px; white-space: nowrap; }
.walk-help { position: absolute; bottom: 34px; left: 0; right: 0; text-align: center; font-size: 11px; color: #e0e8dd; text-shadow: 0 1px 5px #000; }
.walk-help kbd { font: inherit; color: #eddfb6; }
.walk-help .desktop-hint > span { margin: 0 10px; opacity: .5; }
/* Com um controle de videogame ligado (src/gamepad.js marca body[data-gamepad]), a dica de baixo é a
   dele, em qualquer lugar e em qualquer tela; as outras dicas somem. No celular só os botões, pra
   caber numa linha ao lado do botão Qualidade. */
.pad-hint, .pad-hint .pad-short { display: none; }
body[data-gamepad="on"] .walk-help > span:not(.pad-hint) { display: none; }
body[data-gamepad="on"] .walk-help .pad-hint { display: inline; }
.walk-help .pad-long > span, .walk-help .pad-short > span { margin: 0 10px; opacity: .5; }
@media (max-width: 700px) { .pad-hint .pad-long { display: none; } .pad-hint .pad-short { display: inline; } .walk-help .pad-short > span { margin: 0 3px; } body[data-gamepad="on"] .walk-help { text-align: left; } }
.walk-zoom { position: absolute; right: 4.5%; bottom: 80px; display: flex; flex-direction: column; gap: 6px; pointer-events: auto; }
.walk-zoom button { width: 42px; height: 42px; font-size: 21px; border-radius: 10px; background: #102635da; border: 1px solid #c5dfcd30; color: #dce7d3; cursor: pointer; }
body[data-view="ground"] .walk-zoom { display: none; }
.joystick-wrap { display: none; position: absolute; bottom: 65px; left: 25px; text-align: center; }
#joystick { position: relative; display: grid; place-items: center; width: 112px; height: 112px; border: 1px solid #e2ecd459; border-radius: 50%; background: #10263566; pointer-events: auto; touch-action: none; user-select: none; }
#joystick span { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #dce9d880; background: #d1e2c966; box-shadow: 0 3px 12px #0002; }
#joystick i { position: absolute; top: 6px; font-style: normal; color: #dce9d899; }
.joystick-wrap small { display: block; font-size: 8px; letter-spacing: 1.5px; margin-top: 10px; text-shadow: 0 1px 4px #000; color: #d7e2d5; }
@media (pointer: coarse) { .joystick-wrap { display: block; } .walk-location { bottom: 235px; } }
/* Na corrida da Mini Pista, arrastar a tela troca de faixa: o círculo de andar some (src/racetrack/lane-swipe.js). */
body[data-steering='drag'] .joystick-wrap { display: none; }
@media (max-width: 700px) {
  .view-switch { top: 86px; left: 20px; right: 20px; justify-content: center; }
  .view-switch button { padding: 12px 13px; font-size: 11px; flex: 1; }
  .walk-help { bottom: 25px; padding: 0 16px; font-size: 10px; }
  .walk-help .desktop-hint > span { margin: 0 3px; }
}
@media (min-width: 701px) and (max-height: 480px) { .view-switch { top: 18px; } .walk-location { bottom: 78px; } .joystick-wrap { bottom: 45px; } .walk-help { bottom: 15px; } }

.topbar { z-index: 2; }
.day-controls { position: relative; pointer-events: auto; align-self: flex-start; color: #dae4d6; }
.day-controls summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 11px 13px; min-width: 158px; border: 1px solid #c5dfcd30; border-radius: 11px; background: #102635eb; cursor: pointer; font-size: 11px; }
.day-controls summary::-webkit-details-marker { display: none; }
.day-controls summary > span:last-child { margin-left: auto; color: #a7bcb5; }
.day-icon { width: 10px; height: 10px; border-radius: 50%; background: #f0d794; box-shadow: 0 0 10px #f0d79455; }
.day-controls[data-phase="night"] .day-icon { background: #b4cbea; box-shadow: inset 3px -1px #102635; }
.day-controls[data-phase="dawn"] .day-icon, .day-controls[data-phase="dusk"] .day-icon { background: #eda77e; }
.day-options { position: absolute; top: calc(100% + 8px); right: 0; width: 258px; padding: 14px; background: #102635f5; border: 1px solid #c5dfcd30; border-radius: 12px; box-shadow: 0 8px 32px #0004; }
.day-options p { margin: 0 0 12px; font-size: 12px; }
.day-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.day-options button, .day-window .day-presets button { padding: 10px 6px; border: 1px solid #c5dfcd25; border-radius: 7px; color: #d9e4d3; background: #c7dcae0d; cursor: pointer; font-size: 11px; }
.day-options button:hover, .day-window .day-presets button:hover { background: #c7dcae25; }
#day-toggle { width: 100%; margin-top: 10px; }
.day-options small { display: block; margin-top: 11px; color: #a7bcb5; font-size: 9px; line-height: 1.5; }
body[data-view="ground"] .day-controls, body[data-view="external"] .day-controls { top: 68px; }
@media (max-width: 700px) {
  .day-controls summary { min-width: 133px; padding: 9px 10px; gap: 7px; font-size: 10px; }
  body[data-view="ground"] .day-controls, body[data-view="external"] .day-controls { top: 125px; }
}
@media (min-width: 701px) and (max-height: 480px) {
  body[data-view="ground"] .day-controls, body[data-view="external"] .day-controls { top: 65px; }
  .day-options { padding: 10px; }
}
@media (max-width: 700px) and (max-height: 700px) and (orientation: portrait) {
  body[data-view="ground"] .walk-location { top: auto; left: auto; right: 12px; bottom: 88px; transform: none; max-width: 104px; padding: 8px 9px; font-size: 10px; white-space: normal; }
}

/* O título do lugar fechado onde o Kaco está (uma casa, uma cidade) e a ajuda de cada um. */
.place-title { display: none; align-items: center; padding: 0 14px; font-size: 12px; font-weight: 500; color: #dce7d3; }
.house-help, .city-help { display: none; }
body[data-environment="house"] .walk-help .desktop-hint, body[data-environment="city"] .walk-help .desktop-hint { display: none; }
body[data-environment="house"] .house-help, body[data-environment="city"] .city-help { display: inline; }
.walk-help .city-help > span { margin: 0 10px; opacity: .5; }
@media (pointer: coarse) { body[data-environment="house"] .house-help, body[data-environment="city"] .city-help { display: none; } }
@media (max-width: 700px) { .walk-help .city-help > span { margin: 0 3px; } }
/* O botão do E: entrar na cidade, entrar na casa, sair, chamar o elevador. */
.place-interact { position: absolute; bottom: 135px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; background: #e6d5ad; color: #243c3a; border: 1px solid #fff0cf; border-radius: 12px; box-shadow: 0 5px 24px #0004; pointer-events: auto; cursor: pointer; font-size: 13px; }
.place-interact kbd { display: grid; place-items: center; width: 27px; height: 27px; background: #fff5da; border: 1px solid #ae9c79; border-radius: 6px; font: inherit; font-weight: 600; }
.place-interact:hover { background: #f3e5c3; }
.place-interact:focus-visible { outline: 3px solid #f6cb74; outline-offset: 4px; }
/* Dentro de um lugar somem os mapas, o zoom de fora e a troca de câmera; na casa some também a plaquinha do chão. */
body[data-environment="house"] #minimap, body[data-environment="house"] #globe-map,
body[data-environment="house"] .walk-zoom, body[data-environment="house"] .walk-location,
body[data-environment="house"] .view-switch [data-walk-view],
body[data-environment="city"] #minimap, body[data-environment="city"] #globe-map,
body[data-environment="city"] .walk-zoom, body[data-environment="city"] .view-switch [data-walk-view] { display: none; }
body[data-environment="house"] .place-title, body[data-environment="city"] .place-title { display: flex; }
.place-interact:disabled { cursor: default; opacity: .85; }
body[data-environment="house"] .place-title, body[data-environment="city"] .place-title { max-width: 360px; line-height: 1.5; }
@media (max-width: 700px) { body[data-environment="house"] .place-title, body[data-environment="city"] .place-title { max-width: 65%; font-size: 10px; padding: 0 7px; } body[data-environment="house"] .place-interact, body[data-environment="city"] .place-interact { max-width: 180px; } }
@media (pointer: coarse) { .place-interact { left: auto; right: 18px; bottom: 138px; transform: none; font-size: 12px; } .place-interact kbd { display: none; } }
@media (max-width: 700px) and (max-height: 700px) and (orientation: portrait) { .place-interact { bottom: 148px; right: 12px; max-width: 150px; } }
@media (max-width: 700px) { #globe-map[data-size="large"], body[data-view="ground"] #globe-map[data-size="large"], body[data-view="external"] #globe-map[data-size="large"] { width: min(330px, 84vw); } }
/* On the phone the eclipse buttons go to the left of the clock, with short names to fit. */
@media (max-width: 700px) {
  .sky-watch { top: 149px; left: 24px; right: auto; padding: 3px; }
  .sky-watch button { padding: 7px 8px; font-size: 10px; }
  .sky-watch .sky-title { display: inline; font-size: 10px; }
  .sky-watch .sky-long { display: none; }
  .sky-watch .sky-short { display: inline; }
  .sky-watch small { left: 0; right: auto; width: min(220px, 70vw); }
}
@media (max-width: 363px) { .sky-watch .sky-title { display: none; } }
@media (min-width: 701px) and (max-height: 680px) { .sky-watch { top: 90px; } }
@media (min-width: 701px) and (max-height: 480px) { .sky-watch { top: 81px; } }

/* A estação de trem (plano 4): vista de cima, com o dinheiro e o nível à vista no alto, à esquerda. */
body[data-environment="station"] #minimap, body[data-environment="station"] #globe-map, body[data-environment="station"] .view-switch [data-walk-view] { display: none; }
body[data-environment="station"] .place-title { display: flex; max-width: 360px; line-height: 1.5; }
body[data-environment="station"] .walk-help .desktop-hint { display: none; }
.station-help { display: none; }
body[data-environment="station"] .station-help { display: inline; }
.walk-help .station-help > span { margin: 0 10px; opacity: .5; }
body[data-view="ground"][data-environment="station"] .walk-zoom { display: flex; }
.station-hud { display: none; position: absolute; top: 104px; left: 4.5%; align-items: center; gap: 8px; pointer-events: none; }
body[data-environment="station"] .station-hud { display: flex; }
.station-money, .station-level { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: #102635da; border: 1px solid #bdd5c820; border-radius: 30px; font-size: 12px; color: #dce7d3; white-space: nowrap; }
.station-money i { width: 18px; height: 11px; border-radius: 2px; background: #8fd18a; border: 1px solid #e6f6d8; box-shadow: 1px 1px 0 #5a9a56; }
.station-money strong { font-size: 14px; color: #f3e5c3; }
.station-level progress { width: 110px; height: 8px; accent-color: #c7dcae; }
.station-level small { color: #a7bcb5; font-size: 10px; }
.station-reset { padding: 9px 12px; border: 1px solid #c5dfcd30; border-radius: 30px; background: #102635da; color: #c6d5ce; font-size: 11px; cursor: pointer; pointer-events: auto; }
.station-reset:hover { box-shadow: inset 0 0 0 1px #c7dcae66; }
.station-reset.armed { background: #e6d5ad; color: #243c3a; border-color: #fff0cf; }
.station-note { color: #a7bcb5; font-size: 9px; }
.station-toast { position: absolute; top: 34%; left: 50%; transform: translateX(-50%); margin: 0; padding: 12px 22px; background: #e6d5ad; color: #243c3a; border: 1px solid #fff0cf; border-radius: 14px; font-size: 18px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 24px #0004; pointer-events: none; }
body:not([data-environment="station"]) .station-toast { display: none; }
/* O aviso da cidade quando um carro buzina pro Kaco que atravessa errado (city/honk-warning.js). */
.city-toast { position: absolute; top: 24%; left: 50%; transform: translateX(-50%); margin: 0; padding: 12px 20px; max-width: min(560px, calc(100vw - 32px)); background: #fff3c4; color: #3b2a12; border: 2px solid #e0a81e; border-radius: 14px; font-size: 18px; font-weight: 700; line-height: 1.35; text-align: center; box-shadow: 0 6px 24px #0004; pointer-events: none; }
.city-toast[hidden] { display: none; }
@media (max-width: 700px) {
  .station-hud { top: 86px; left: 12px; gap: 5px; }
  .station-money, .station-level { padding: 7px 10px; font-size: 10px; gap: 6px; }
  .station-money strong { font-size: 12px; }
  .station-level progress { width: 64px; }
  .station-reset { padding: 7px 9px; font-size: 10px; }
  .station-note { display: none; }
  .walk-help .station-help > span { margin: 0 3px; }
  body[data-environment="station"] .place-title { max-width: 65%; font-size: 10px; padding: 0 7px; }
}
@media (pointer: coarse) { body[data-environment="station"] .station-help { display: none; } }

/* A vista do planeta pra criança (pedido de 14/10/2026): o planeta grande, puxado pra esquerda no
   computador, o "Explorar" embaixo dele e uma faixa de atalhos grandes (à direita no computador,
   embaixo no celular). Cada atalho com janelinha abre a sua ao lado da faixa, uma por vez
   (src/planet-dock.js põe o nome dela em body[data-dock-window]). O relógio e o globo pequeno ficam
   só pra caminhada. O meio do planeta no computador (42%) é o PLANET_SHIFT_LEFT de src/main.js. */
/* O "Explorar" (pedidos de 14/10/2026): "muito maior, com brilho", o miolo exatamente o da faixa de
   atalhos (o mesmo vidro escuro e borrado) e a borda meio laranja, que brilha em volta. Um reflexo
   atravessa o botão de tempos em tempos (com movimento reduzido ele não passa). */
.planet-explore { position: absolute; left: 42%; bottom: 40px; transform: translateX(-50%); z-index: 1; overflow: hidden; min-width: 440px; padding: 28px 72px; border: 2px solid #f0a050c4; border-radius: 28px; background: #142131d9; backdrop-filter: blur(18px); box-shadow: 0 0 34px #f0a05047, 0 8px 32px #03081225; color: #fff; font-size: 34px; font-weight: 700; letter-spacing: .6px; text-shadow: 0 1px 8px #0912208c; cursor: pointer; transition: background .18s, border-color .18s, box-shadow .18s; }
.planet-explore::after { content: ""; position: absolute; z-index: -1; top: -30%; bottom: -30%; left: -45%; width: 30%; background: linear-gradient(90deg, transparent, #ffffff40, transparent); transform: skewX(-20deg); animation: explore-shine 5s ease-in-out 1.5s infinite; pointer-events: none; }
a.planet-explore { text-align: center; text-decoration: none; }
.planet-explore:hover { background: #1c2b3be6; border-color: #f6b36e; box-shadow: 0 0 46px #f0a05066, 0 8px 32px #03081225; }
@keyframes explore-shine { 0%, 60% { left: -45%; } 85%, 100% { left: 125%; } }
@media (prefers-reduced-motion: reduce) { .planet-explore::after { display: none; } }
/* Enquanto o planeta monta, só o título e a barra aparecem. */
body:not([data-ready]) .planet-side, body:not([data-ready]) .planet-explore { visibility: hidden; }

/* A coluna da direita: a faixa de atalhos e, embaixo dela, o Kaco de arrastar (24/10/2026). As duas
   peças ficam centradas juntas na altura, pra o Kaco nunca sair da tela por baixo. */
.planet-side { position: absolute; right: 4.5%; top: 50%; transform: translateY(-50%); z-index: 1; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.planet-dock { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid #b8d3d326; border-radius: 20px; background: #142131d9; backdrop-filter: blur(18px); box-shadow: 0 8px 32px #03081225; }
.dock-button { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 132px; padding: 18px 8px 14px; border: 0; border-radius: 14px; color: #bbc9cc; background: transparent; font-size: 15px; white-space: nowrap; cursor: pointer; transition: background .18s, color .18s; }
.dock-button:hover { background: #cde4d61a; color: #fff; }
.dock-button svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dock-button .dock-fill { fill: currentColor; stroke: none; }
.dock-button[aria-expanded="true"] { color: #fff; background: #cde4d633; box-shadow: inset 0 0 0 1px #c5dfcd55; }
/* O Kaco de arrastar e soltar no planeta (pedido de 24/10/2026): até então morava na janelinha do Mapa,
   que saiu da faixa. O mesmo vidro da faixa; a dica de baixo troca de texto durante o arrasto
   (src/explorer-placement.js) e reserva duas linhas pra coluna não pular. */
.kaco-dock { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px 10px; border: 1px solid #b8d3d326; border-radius: 20px; background: #142131d9; backdrop-filter: blur(18px); box-shadow: 0 8px 32px #03081225; color: #bbc9cc; font-size: 14px; text-align: center; cursor: grab; touch-action: none; user-select: none; transition: background .18s, color .18s, border-color .18s; }
.kaco-dock svg { width: 44px; height: 66px; filter: drop-shadow(0 3px 6px #0006); }
.kaco-dock:hover { background: #1c2b3be6; color: #fff; }
.kaco-dock[aria-pressed="true"] { border-color: #ffe19b; color: #fff; cursor: grabbing; }
/* A dica não manda na largura da coluna (contain): ela quebra em duas linhas na largura da faixa. */
.kaco-dock small { display: block; align-self: stretch; min-height: 2.6em; color: #adc5c4; font-size: 11px; line-height: 1.3; contain: inline-size; }
#fullscreen.active { color: #c9dfb7; }

.dock-window { display: none; position: absolute; right: calc(4.5% + 166px); top: 50%; transform: translateY(-50%); z-index: 1; width: 320px; padding: 16px; background: #102635f5; border: 1px solid #c5dfcd30; border-radius: 14px; box-shadow: 0 8px 32px #0006; }
.dock-window-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 16px; color: #e0e9d7; }
.dock-window-heading strong, .dock-window .orbit-heading strong { font-size: 16px; font-weight: 500; }
.dock-window p { font-size: 13px; }
.dock-window .eclipse-actions button, .day-window .day-presets button { padding: 14px 6px; font-size: 15px; }
/* A lista das cidades prontas: um botão por cidade, com a cara dos botões de dia e noite. */
.cities-window .city-list { display: grid; gap: 6px; }
.cities-window .city-list button { padding: 14px 10px; border: 1px solid #c5dfcd25; border-radius: 7px; color: #d9e4d3; background: #c7dcae0d; cursor: pointer; font-size: 15px; text-align: left; }
.cities-window .city-list button:hover { background: #c7dcae25; }
.dock-close { width: 30px; height: 30px; padding: 0; border: 1px solid #b8d3d32b; border-radius: 7px; color: #d4dfce; background: #bad2c50d; font-size: 14px; line-height: 1; cursor: pointer; pointer-events: auto; }
.dock-close:hover { background: #cfddc723; }
.orbit-heading .dock-close { margin-left: 4px; }

body[data-view="overview"][data-dock-window="eclipse"] #eclipse-window,
body[data-view="overview"][data-dock-window="cities"] #cities-window,
body[data-view="overview"][data-dock-window="day"] #day-window,
body[data-view="overview"][data-dock-window="racing"] #racing-window,
body[data-view="overview"][data-dock-window="places"] #places-window,
body[data-view="overview"][data-dock-window="city-choices"] #city-choices-window { display: block; }
/* As categorias do celular (28/10/2026): Corrida, Lugares e Cidades só aparecem lá (bloco do celular, abaixo); no
   computador cada atalho segue à vista na faixa. A janelinha de uma categoria mostra as escolhas em
   duas colunas, com a cara dos atalhos da faixa e o tamanho grande de criança. */
.dock-group { display: none; }
.dock-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.dock-choices .dock-button { width: auto; min-width: 0; padding: 16px 6px 12px; border: 1px solid #c5dfcd25; background: #c7dcae0d; font-size: 15px; }
.dock-choices .dock-button svg { width: 36px; height: 36px; }
/* O mapa plano é da caminhada: na vista do planeta fica guardado (até 24/10/2026 abria pelo atalho Mapa). */
body[data-view="overview"] #minimap { display: none; }
body[data-view="overview"] .day-controls, body[data-view="overview"] #globe-map,
body:not([data-view="overview"]) .planet-side, body:not([data-view="overview"]) .planet-explore { display: none; }

/* No celular o planeta fica no meio, a faixa embaixo com os atalhos repartindo a largura, o Kaco de
   arrastar ao lado dela (só o boneco e o nome) e o "Explorar" logo acima. A janelinha aberta entra
   entre os dois e empurra o "Explorar" pra cima (src/planet-dock.js mede a altura dela em
   --dock-window-space); fechou, ele desce de volta. */
@media (max-width: 700px) {
  .universe { background: radial-gradient(ellipse at 50% 46%, #163045 0, #0c1c2f 29%, #090f20 66%); }
  .planet-side { top: auto; bottom: max(18px, env(safe-area-inset-bottom)); left: 12px; right: 12px; transform: none; flex-direction: row; align-items: stretch; gap: 6px; }
  .planet-dock { flex: 1; min-width: 0; flex-direction: row; gap: 2px; padding: 5px; border-radius: 16px; }
  .dock-button { flex: 1; width: auto; min-width: 0; gap: 5px; padding: 10px 0 8px; border-radius: 11px; font-size: 11px; }
  .dock-button svg { width: 28px; height: 28px; }
  .kaco-dock { flex: 0 0 auto; width: 52px; gap: 3px; padding: 6px 2px 5px; border-radius: 16px; font-size: 11px; }
  .kaco-dock svg { width: 28px; height: 42px; }
  .kaco-dock .kaco-dock-verb, .kaco-dock small { display: none; }
  .planet-explore { left: 50%; bottom: calc(max(18px, env(safe-area-inset-bottom)) + 88px + var(--dock-window-space, 0px)); min-width: min(320px, calc(100vw - 48px)); padding: 22px 40px; border-radius: 24px; font-size: 28px; transition: bottom .25s ease, background .18s, border-color .18s, box-shadow .18s; }
  .dock-window { top: auto; bottom: calc(max(18px, env(safe-area-inset-bottom)) + 88px); left: 12px; right: 12px; transform: none; width: auto; }
  /* Pedido de 15/10/2026, só no celular: "Dia e noite" sai da faixa. */
  .planet-dock [data-dock-window="day"] { display: none; }
  /* 28/10/2026: as categorias entram e os atalhos que moram nelas saem da faixa: fica Corrida, Lugares,
     Cidades, Cartas e Eclipse. A Tela cheia sai também (no app instalado, que é o que ele usa, ela já não
     aparecia). E o Kaco de arrastar entra na faixa (pedido dele, "coloque o Kaco aqui"): a coluna inteira
     vira uma barra só, com o vidro dela, e o Kaco fica do tamanho de um atalho. */
  .planet-dock .dock-group { display: flex; }
  .planet-dock .dock-grouped, .planet-dock #fullscreen { display: none; }
  .planet-side { gap: 2px; padding: 5px; border: 1px solid #b8d3d326; border-radius: 16px; background: #142131d9; backdrop-filter: blur(18px); box-shadow: 0 8px 32px #03081225; }
  /* A barra se reparte por igual entre os atalhos e o Kaco: a faixa pesa cinco (os cinco atalhos à vista) e o
     Kaco um; quando o Instalar aparece (no navegador, antes de instalar o app), a faixa pesa seis. */
  .planet-side .planet-dock { flex: 5 1 0; padding: 0; border: 0; border-radius: 0; background: none; backdrop-filter: none; box-shadow: none; }
  .planet-side:has(#install-app:not([hidden])) .planet-dock { flex-grow: 6; }
  .planet-side .kaco-dock { flex: 1 1 0; width: auto; min-width: 0; gap: 5px; padding: 10px 0 8px; border: 0; border-radius: 11px; background: transparent; backdrop-filter: none; box-shadow: none; }
  .planet-side .kaco-dock svg { width: 20px; height: 30px; }
  .planet-side .kaco-dock[aria-pressed="true"] { box-shadow: inset 0 0 0 1px #ffe19b; }
}
/* Computador de tela baixa (notebook, celular deitado): o "Explorar" desce pra não encostar no planeta e,
   abaixo de 980 de altura, os atalhos voltam ao tamanho pequeno pra faixa caber em pé. */
@media (min-width: 701px) and (max-height: 800px) {
  .planet-explore { bottom: 20px; min-width: 380px; padding: 22px 60px; font-size: 28px; }
}
/* A coluna em pé no tamanho grande: oito atalhos (840 de altura) ou nove com o Instalar (945), mais o
   Kaco de arrastar embaixo (150 com a folga): abaixo de 1120 de altura tudo fica no tamanho pequeno
   (antes do Kaco, 24/10/2026, o corte era 980; antes do castelo, 620). */
@media (min-width: 701px) and (max-height: 1120px) {
  .planet-dock { gap: 4px; padding: 6px; border-radius: 16px; }
  .dock-button { width: 74px; gap: 5px; padding: 10px 4px 8px; border-radius: 11px; font-size: 11px; }
  .dock-button svg { width: 22px; height: 22px; }
  .kaco-dock { gap: 3px; padding: 8px 6px 6px; border-radius: 16px; font-size: 11px; }
  .kaco-dock svg { width: 32px; height: 48px; }
  .kaco-dock small { font-size: 10px; }
  .dock-window { right: calc(4.5% + 100px); }
}
@media (min-width: 701px) and (max-height: 620px) {
  .planet-explore { min-width: 280px; padding: 15px 40px; border-radius: 20px; font-size: 22px; }
}

/* As pistas da Corrida com foto (02/11/2026, pedido dele: "uma thumb da pista junto com o nome"): a foto enche o
   botão e o nome fica por cima, no pé, numa sombra que deixa ler em qualquer pista. A janelinha alarga pra foto caber
   grande; em tela baixa ela rola por dentro. */
.racing-window { width: 380px; max-height: calc(100vh - 48px); overflow-y: auto; }
.dock-choices .track-choice { position: relative; overflow: hidden; padding: 0; aspect-ratio: 3 / 2; border-radius: 12px; }
.track-choice img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.track-choice:hover img { transform: scale(1.05); }
.track-choice span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 7px; background: linear-gradient(transparent, #050d16d9); color: #fff; font-size: 15px; font-weight: 600; text-shadow: 0 1px 4px #000a; }
@media (max-width: 700px) {
  .racing-window { width: auto; max-height: calc(100dvh - 200px); }
}

/* A interface só da corrida (02/11/2026, pedido dele: "deixar só o que o Pedro tá usando"; ligada pelo
   data-interface="corrida" do body). Na vista do planeta ficam o Sonhar e a Corrida, que abre as pistas em qualquer
   tela; saem os outros atalhos e o Kaco de arrastar (a Qualidade fica, pedido dele no mesmo dia). No celular a Corrida
   ocupa a barra, com o carrinho ao lado do nome, e o Sonhar dá a vez às pistas enquanto elas estão abertas. */
body[data-interface="corrida"] .planet-dock > :not([data-dock-window="racing"]),
body[data-interface="corrida"] .kaco-dock { display: none; }
body[data-interface="corrida"] .planet-dock [data-dock-window="racing"] { display: flex; }
@media (max-width: 700px) {
  body[data-interface="corrida"] .planet-dock [data-dock-window="racing"] { flex-direction: row; justify-content: center; gap: 10px; padding: 12px 0; font-size: 17px; }
  body[data-interface="corrida"] .planet-dock [data-dock-window="racing"] svg { width: 30px; height: 30px; }
  body[data-interface="corrida"][data-dock-window="racing"] .planet-explore { display: none; }
}

/* A Corrida ao lado do Sonhar (03/11/2026, pedido dele com print, no computador: "traz pra cá o botão de corrida",
   "abrindo grande as miniaturas das pistas"). Só com a interface da corrida e só no computador: o botão Corrida da
   faixa da direita sai, e o .planet-race fica à direita do Sonhar, do mesmo tamanho, escuro com a borda dourada. Ele
   abre as oito pistas grandes em cima do planeta, quatro por linha, entre o som (no alto) e os dois botões (embaixo).
   O Sonhar mede 300 de largura (enchanted.css): o .planet-race começa 16 depois da metade dele. */
.planet-race { display: none; }
@media (min-width: 701px) {
  body[data-interface="corrida"] .planet-side { display: none; }
  body[data-interface="corrida"][data-view="overview"][data-ready] .planet-race { display: flex; }
  .planet-race { position: absolute; left: calc(42% + 166px); bottom: 40px; z-index: 1; align-items: center; justify-content: center; gap: 12px; min-width: 300px; padding: 21px 42px; border: 1px solid #ffdf9e; border-radius: 19px; background: #132e36f5; box-shadow: 0 8px 32px #010c1944; color: #f6efd9; font: inherit; font-size: 24px; cursor: pointer; transition: background .18s; }
  .planet-race:hover, .planet-race[aria-expanded="true"] { background: #1d4045f5; }
  .planet-race:focus-visible { outline: 3px solid #f4cf73; outline-offset: 3px; }
  .planet-race svg { width: 32px; height: 32px; fill: none; stroke: #e1cc9f; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .planet-race .planet-race-wheel { fill: #e1cc9f; stroke: none; }

  /* As pistas grandes: a janelinha da Corrida vira um painel centrado, com a largura que deixa as duas linhas caberem
     na altura (as fotos são 3 por 2). */
  body[data-interface="corrida"] #racing-window { top: 140px; bottom: auto; left: 50%; right: auto; transform: translateX(-50%); z-index: 2; width: min(93.4vw, calc((100svh - 358px) * 3 + 80px)); max-height: calc(100svh - 260px); }
  body[data-interface="corrida"] #racing-window .dock-choices { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  body[data-interface="corrida"] #racing-window .track-choice span { padding: 30px 10px 12px; font-size: 20px; }
  body[data-interface="corrida"][data-dock-window="racing"] .world-invitation { display: none; }
}

/* As pistas entrando uma de cada vez (03/11/2026, pedido dele: "faz o menu abrir animado cada thumb"). A cada vez que
   o painel abre, ele aparece num instante e as pistas sobem do pé até o lugar delas, na ordem de leitura, 55 ms uma
   depois da outra: passam um tiquinho do lugar e assentam. A foto chega um pouco depois, de mais perto, e o nome sobe
   por último, pra a pista parecer ter peso. Só no computador; quem pediu menos movimento no aparelho não vê. */
@media (min-width: 701px) and (prefers-reduced-motion: no-preference) {
  body[data-interface="corrida"] #racing-window { animation: racing-panel-enter .2s ease-out both; }
  body[data-interface="corrida"] #racing-window .track-choice { animation: track-choice-enter .52s calc(80ms + var(--order, 0) * 55ms) both; }
  body[data-interface="corrida"] #racing-window .track-choice img { animation: track-photo-settle .7s calc(140ms + var(--order, 0) * 55ms) ease-out both; }
  body[data-interface="corrida"] #racing-window .track-choice span { animation: track-name-enter .3s calc(260ms + var(--order, 0) * 55ms) ease-out both; }
  #racing-window .track-choice:nth-child(2) { --order: 1; }
  #racing-window .track-choice:nth-child(3) { --order: 2; }
  #racing-window .track-choice:nth-child(4) { --order: 3; }
  #racing-window .track-choice:nth-child(5) { --order: 4; }
  #racing-window .track-choice:nth-child(6) { --order: 5; }
  #racing-window .track-choice:nth-child(7) { --order: 6; }
  #racing-window .track-choice:nth-child(8) { --order: 7; }
}
@keyframes racing-panel-enter { from { opacity: 0; scale: .97; } to { opacity: 1; scale: 1; } }
@keyframes track-choice-enter {
  0% { opacity: 0; translate: 0 34px; scale: .82; animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  58% { opacity: 1; translate: 0 -6px; scale: 1.04; animation-timing-function: ease-in-out; }
  80% { translate: 0 2px; scale: .99; animation-timing-function: ease-out; }
  100% { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes track-photo-settle { from { scale: 1.18; } to { scale: 1; } }
@keyframes track-name-enter { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@media (min-width: 701px) and (max-height: 800px) {
  .planet-race { bottom: 20px; }
}
@media (min-width: 701px) and (max-height: 500px) {
  .planet-race { left: calc(42% + 126px); min-width: 220px; padding: 13px 30px; font-size: 20px; }
  .planet-race svg { width: 26px; height: 26px; }
  body[data-interface="corrida"] #racing-window { top: 72px; max-height: calc(100svh - 170px); }
}
