/* INTUOR — shared visual system */
@font-face { font-family: Supreme; src: url('./fonts/supreme/Supreme-Extralight.woff2') format('woff2'); font-weight: 200; font-display: swap; }
@font-face { font-family: Supreme; src: url('./fonts/supreme/Supreme-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: Supreme; src: url('./fonts/supreme/Supreme-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Supreme; src: url('./fonts/supreme/Supreme-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Supreme; src: url('./fonts/supreme/Supreme-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Supreme; src: url('./fonts/supreme/Supreme-Extrabold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
:root {
  --intuor-bg: #020b09;
  --intuor-panel: #071713;
  --intuor-panel-2: #0b241e;
  --intuor-text: #f2eee3;
  --intuor-muted: #9eb1aa;
  --intuor-rule: rgba(202, 224, 216, .18);
  --intuor-accent: #69a99f;
  --intuor-blue: #315f88;
  --intuor-orange: #f09a4b;
  --intuor-alert: #e37255;
  --yellow: var(--intuor-orange);
  --sun: var(--intuor-orange);
  --mint: var(--intuor-accent);
  font-family: Supreme, sans-serif;
}

html, body { background: var(--intuor-bg); color: var(--intuor-text); }
html, body, button, input, select, textarea { font-family: Supreme, sans-serif !important; }
body:has(.home-screen), body:has(.modes-page), body:has(.app), body:has(.mode-screen), body:has(.end-screen) { background: var(--intuor-bg) !important; }

/* Shared wordmark treatment */
.brand, .home-brand {
  color: var(--intuor-text);
  font-weight: 900;
  letter-spacing: .19em;
}
.home-brand-mark, .brand-mark { display: none !important; }
.brand-home { appearance: none; position: relative; z-index: 12; width: 150px; height: 40px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; display: flex; align-items: center; pointer-events: auto !important; }
.brand-logo { width: 100%; height: auto; overflow: hidden; display: block; }
.brand-home:hover { opacity: .72; }

/* Game title screen */
.home-screen { background: var(--intuor-bg) !important; color: var(--intuor-text) !important; }
.launch-screen { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--intuor-bg); border-bottom: 1px solid rgba(220,255,250,.2); isolation: isolate; }
#homeGlobe { position: absolute; z-index: 1; inset: 0; }
.launch-shade { position: absolute; z-index: 2; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent 20%, rgba(1,18,36,.1) 58%, rgba(1,13,28,.48) 100%), linear-gradient(180deg, rgba(1,18,36,.08), transparent 58%, rgba(1,13,28,.54)); }
.launch-content { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; align-items: center; padding: clamp(36px, 5vh, 64px) 24px 42px; pointer-events: none; }
.launch-logo { width: min(780px, 72vw); height: auto; overflow: hidden; }
.launch-actions { margin-top: auto; display: flex; gap: 10px; pointer-events: auto; }
.launch-action { min-width: 210px; min-height: 56px; display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; padding: 0 18px; border: 1px solid var(--intuor-text); border-radius: 0; background: var(--intuor-text); color: var(--intuor-bg); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; cursor: pointer; }
.launch-action.secondary { background: rgba(2,11,9,.72); color: var(--intuor-text); border-color: var(--intuor-rule); }
.launch-action:hover, .launch-action:focus-visible { background: #58dfd2; border-color: #58dfd2; color: #031d48; outline: none; }
.launch-credit { margin-top: 16px; color: rgba(242,238,227,.55); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.modes-page { min-height: 100vh; background: var(--intuor-bg); color: var(--intuor-text); }
.modes-topbar { height: 76px; }
.modes-label { color: var(--intuor-muted); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.modes-content { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: clamp(54px, 8vw, 110px) 0 70px; }
.modes-content > h1 { margin: 10px 0 42px; font-size: clamp(54px, 9vw, 108px); line-height: .88; letter-spacing: -.055em; }
.modes-content .home-modes { padding: 0 !important; }

.home-modes {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1px !important;
  padding: 72px max(22px, 7vw) !important;
  background: var(--intuor-bg) !important;
}
.home-modes .mode-card {
  min-height: 190px;
  padding: 26px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--intuor-panel) !important;
  box-shadow: none !important;
}
.home-modes .mode-card:hover, .home-modes .mode-card:focus-visible { transform: none !important; outline: 1px solid var(--intuor-accent) !important; outline-offset: -1px; }
.mode-art { display: none !important; }
.mode-card-copy { height: 100% !important; padding: 0 !important; color: var(--intuor-text) !important; background: var(--intuor-panel) !important; border: 0; align-items: flex-end !important; }
.mode-card-copy h2 { letter-spacing: -.02em !important; }
.mode-card-copy span { color: var(--intuor-orange) !important; }
.home-footer { background: var(--intuor-bg) !important; color: var(--intuor-muted) !important; border-top: 1px solid var(--intuor-rule) !important; }
.home-footer button, .home-footer a { color: var(--intuor-muted) !important; }

/* Game screens */
.app, .mode-screen, .end-screen { background: var(--intuor-bg) !important; color: var(--intuor-text) !important; }
.mode-screen { padding: clamp(24px, 5vw, 68px) !important; }
.mode-screen .mode-inner { padding: 0 !important; background: transparent !important; color: var(--intuor-text) !important; border-radius: 0 !important; box-shadow: none !important; }
.mode-screen .mode-inner h1 { color: var(--intuor-text) !important; }
.mode-screen .mode-grid { gap: 1px !important; background: var(--intuor-rule); }
.mode-screen .mode-card { min-height: 230px !important; padding: 28px !important; color: var(--intuor-text) !important; background: var(--intuor-panel) !important; border: 0 !important; }
.mode-screen .mode-card h2 { color: var(--intuor-text) !important; opacity: 1 !important; }
.mode-screen .mode-card .eyebrow { color: var(--intuor-accent) !important; }
.mode-screen .mode-meta { color: var(--intuor-orange) !important; }
.mode-screen .utility-btn { color: var(--intuor-text) !important; border-color: var(--intuor-rule) !important; }
.topbar { background: var(--intuor-bg); border-color: var(--intuor-rule); }
.utility-btn, .clue-reveal, .map-toggle, .submit, .mode-card.round-count {
  border-radius: 0 !important;
  box-shadow: none !important;
}
.mode-screen .mode-card { background: var(--intuor-panel) !important; border: 1px solid var(--intuor-rule) !important; }

/* Editorial and learning pages */
body > .topbar {
  background: rgba(7,16,12,.97) !important;
  border-bottom: 1px solid var(--intuor-rule) !important;
}
body > .topbar a, body > .topbar button { border-radius: 0 !important; }
.story, .editor-note, .story-card, .sensor-card, .resolution-card, .pipe, .gis-card {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Latest From Orbit: the globe is the interface. */
body:has(#globe) .app::after { display: none !important; }
body:has(#globe) .topbar { background: transparent !important; border: 0 !important; backdrop-filter: none !important; }
body:has(#globe) .menu-button,
body:has(#globe) .filter-menu,
body:has(#globe) .filter-option,
body:has(#globe) .story-card,
body:has(#globe) .drawer-close,
body:has(#globe) .source-link,
body:has(#globe) .event-sources a { border-radius: 0 !important; }
body:has(#globe) .filter-menu,
body:has(#globe) .story-card,
body:has(#globe) .drawer { backdrop-filter: none !important; box-shadow: none !important; }
body:has(#globe) .filter-menu { background: rgba(7,16,12,.98) !important; }
body:has(#globe) .story-card { background: rgba(13,24,19,.96) !important; }
body:has(#globe) .hero-tag { background: var(--intuor-accent) !important; }

/* Curator is a workbench, not a second brand. */
body:has(#map) .topbar { background: var(--intuor-bg) !important; }
body:has(#map) .mbtn,
body:has(#map) input,
body:has(#map) select,
body:has(#map) textarea,
body:has(#map) button { border-radius: 0 !important; box-shadow: none !important; }

@media (max-width: 720px) {
  .launch-content { padding-top: 74px; }
  .launch-logo { width: 90vw; max-height: 18vh; }
  .launch-actions { width: 100%; flex-direction: column; }
  .launch-action { width: 100%; }
  .brand-home { width: 112px; }
  .modes-content { width: min(100% - 28px, 1180px); }
  .home-modes { grid-template-columns: 1fr !important; }
  .home-modes .mode-card { min-height: 150px; }
}
