/* style.css — Shipping Forecast */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #000;
  --text:    rgba(255,255,255,0.6);
  --text-hi: rgba(255,255,255,0.92);
  --text-lo: rgba(255,255,255,0.35);
  --accent:  rgba(255,255,255,0.55);
  --font:    'Georgia', 'Times New Roman', serif;
  --mono:    'Courier New', monospace;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
}

/* ── Entry screen ─────────────────────────────────────────── */

#entry {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 10;
}

#entry h1 {
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: normal;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-hi);
}

#entry p {
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  letter-spacing: 0.1em;
  color: var(--text);
  max-width: 28rem;
  text-align: center;
  line-height: 1.7;
}

#enter-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--text-hi);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.75rem 2.5rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

#enter-btn:hover {
  border-color: var(--text-hi);
  color: #fff;
}

#enter-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ── Main app ─────────────────────────────────────────────── */

#app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Area name — large, quiet */
#area-name {
  font-size: clamp(3rem, 12vw, 9rem);
  font-weight: normal;
  letter-spacing: 0.04em;
  color: var(--text-lo);
  text-align: center;
  line-height: 1;
  transition: color 8s ease;
  user-select: none;
  padding: 0 1rem;
}

#area-name.active {
  color: rgba(255,255,255,0.06);
}

#area-index {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: clamp(0.6rem, 1.5vw, 0.75rem);
  letter-spacing: 0.2em;
  color: var(--text-lo);
  text-align: center;
}

/* Synopsis */
#synopsis {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-lo);
  text-align: center;
  line-height: 1.6;
  margin-top: 1.5rem;
}

/* Progress dots */
#area-list {
  position: fixed;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  max-width: 24rem;
}

.area-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-lo);
  transition: background 2s ease;
}

.area-dot.current {
  background: var(--accent);
}

/* Mute */
#mute-btn {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  appearance: none;
  background: transparent;
  border: 1px solid var(--text-lo);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

#mute-btn:hover {
  border-color: var(--accent);
  color: var(--text-hi);
}

/* Meta — bottom right */
#meta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-lo);
  line-height: 1.8;
}

/* Error */
#error-msg {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(255,80,80,0.6);
  letter-spacing: 0.05em;
}

/* Static canvas overlay */
#static-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  mix-blend-mode: screen;
}

/* Hidden utility */
[hidden] { display: none !important; }

@media (max-width: 480px) {
  #synopsis { display: none; }
  #area-name { font-size: clamp(2.5rem, 18vw, 5rem); }
}
