/* "Space" look (preview). Same layout and readable fonts as the site; the map's palette,
   a faint pixel starfield, pixel-cut card corners and pixel labels tie the pages to the world view. */
@import url("https://fonts.googleapis.com/css2?family=Silkscreen&display=swap");

:root:not([data-theme="light"]) body.space {
  --bg: #0A0D1B;
  --panel: rgba(17, 22, 42, 0.84);
  --panel-2: rgba(26, 33, 64, 0.9);
  --border: rgba(122, 142, 222, 0.18);
  --border-strong: rgba(122, 142, 222, 0.34);
  --text: #E8ECF6;
  --text-2: #96A0BC;
  --accent: #3DE8FF; --accent-text: #5FEAFF;
  --hurt: #FF5A4A; --hurt-text: #FF7A6A;
  --helped: #3DDC84; --helped-text: #4BE894;
  --unclear: #FFD23F; --unclear-text: #FFD23F;
  --glow: 0 0 0 1px rgba(61, 232, 255, 0.45), 0 0 26px rgba(61, 232, 255, 0.16);
  background: var(--bg);
}
.space-sky { position: fixed; inset: 0; width: 100vw; height: 100vh; image-rendering: pixelated; pointer-events: none; z-index: 0; opacity: .75; }
@media (max-width: 640px) { .space-sky { opacity: .5; } }
:root[data-theme="light"] .space-sky { display: none; }
body.space > main, body.space > footer, body.space > .ticker { position: relative; z-index: 1; }
body.space > header { position: relative; z-index: 2; }
:root:not([data-theme="light"]) body.space .site-header { background: rgba(10, 13, 27, 0.82); backdrop-filter: blur(8px); }
:root:not([data-theme="light"]) body.space .ticker { background: rgba(10, 13, 27, 0.7); }

/* pixel-cut corners instead of round ones */
body.space { --cut: polygon(0 6px, 2px 6px, 2px 2px, 6px 2px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 2px, calc(100% - 2px) 2px, calc(100% - 2px) 6px, 100% 6px,
  100% calc(100% - 6px), calc(100% - 2px) calc(100% - 6px), calc(100% - 2px) calc(100% - 2px), calc(100% - 6px) calc(100% - 2px), calc(100% - 6px) 100%,
  6px 100%, 6px calc(100% - 2px), 2px calc(100% - 2px), 2px calc(100% - 6px), 0 calc(100% - 6px)); }
body.space .card, body.space .map-card, body.space .stage { border-radius: 0; clip-path: var(--cut); backdrop-filter: blur(3px); }
body.space .stage[aria-pressed="true"] { box-shadow: none; }
body.space .card:hover { box-shadow: none; border-color: var(--accent); }

/* pixel labels: small, uppercase, only where text is short */
body.space .eyebrow, body.space .type-chip, body.space .section-head .muted.mono, body.space .px-label {
  font-family: "Silkscreen", var(--mono); font-weight: 400; letter-spacing: 0.06em;
}
body.space .eyebrow { font-size: 13px; }
body.space .type-chip { font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.px-icon { image-rendering: pixelated; width: 16px; height: 16px; flex: none; }
body.space .sev i { border-radius: 0; }

/* the globe hero */
.globe-box { position: relative; width: 100%; max-width: 540px; margin: 0 auto; }
.globe-box canvas { display: block; width: 100%; aspect-ratio: 1 / 1; cursor: grab; image-rendering: pixelated; touch-action: pan-y; }
.globe-box canvas:active { cursor: grabbing; }
.globe-cap { text-align: center; font: 500 13px var(--sans); color: var(--text-2); margin-top: 4px; }
.globe-cap a { color: var(--accent-text); }
.world-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 12px 18px; font: 600 15px var(--sans);
  color: #0A0D1B; background: var(--accent); clip-path: var(--cut); }
.world-cta:hover { text-decoration: none; filter: brightness(1.08); }
:root[data-theme="light"] .world-cta { color: #fff; background: #0E7490; }
@media (max-width: 860px) { body.space .hero-grid { grid-template-columns: 1fr; gap: 8px; } body.space .hero-grid > div:last-child { order: -1; } .globe-box { max-width: 340px; } body.space .hero { padding-top: 18px; } }
