@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  font-family: "DM Sans", sans-serif;
  background: #090d18;
  color: #f3f2ed;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --muted: #9da2ae;
  --line: rgba(235, 239, 249, 0.13);
  --acid: #c9ef74;
  --mono: "DM Mono", monospace;
  --display: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse at 75% 4%, rgba(35, 57, 78, 0.3), transparent 34rem),
    #090d18;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.page {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}

.masthead,
.brand,
.source-link,
.masthead-links,
.stage-topline,
.stage-bottomline,
.control-deck,
.primary-controls,
.slider-heading,
.slider-scale,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.masthead {
  height: 74px;
  border-bottom: 1px solid var(--line);
}

.masthead-links {
  justify-content: flex-end;
  gap: 20px;
}

.brand {
  justify-content: flex-start;
  gap: 12px;
  text-decoration: none;
  font: 500 10px var(--mono);
  letter-spacing: 0.1em;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(201, 239, 116, 0.65);
  border-radius: 50%;
  color: var(--acid);
  font: 600 15px var(--display);
}

.brand-divider {
  padding: 0 4px;
  color: #676d7a;
}

.source-link {
  gap: 8px;
  color: #b6bbc5;
  font: 10px var(--mono);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.source-link:hover,
.note-source a:hover {
  color: var(--acid);
}

.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding: 58px 0 32px;
}

.eyebrow,
.note-index,
.stage-label,
.frame-label,
.stage-bottomline,
.slider-scale,
.footer {
  font: 9px var(--mono);
  letter-spacing: 0.1em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--muted);
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px rgba(201, 239, 116, 0.56);
}

h1 {
  margin: 0;
  font: 600 clamp(46px, 7vw, 76px) / 0.94 var(--display);
  letter-spacing: -0.07em;
}

h1 em {
  color: var(--acid);
  font-weight: 400;
}

.intro-copy {
  width: min(330px, 40%);
  margin: 0 4px 7px 0;
  color: #b7bbc5;
  font-size: 14px;
  line-height: 1.7;
}

.stage-shell {
  padding: 1px;
  border: 1px solid rgba(224, 232, 241, 0.2);
  background: linear-gradient(135deg, rgba(201, 239, 116, 0.28), rgba(91, 126, 156, 0.05) 42%, rgba(201, 239, 116, 0.1));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #050814;
  isolation: isolate;
}

.weather-video,
.game-layer,
.stage-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.weather-video {
  object-fit: cover;
  background: #050814;
}

.game-layer {
  z-index: 2;
  touch-action: manipulation;
  cursor: crosshair;
}

.game-layer:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: -5px;
}

.stage-vignette {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 5, 14, 0.68), transparent 19%, transparent 76%, rgba(2, 5, 14, 0.73));
}

.stage-topline,
.stage-bottomline {
  position: absolute;
  z-index: 3;
  right: 20px;
  left: 20px;
  color: rgba(245, 247, 248, 0.86);
  pointer-events: none;
}

.stage-topline {
  top: 17px;
}

.stage-label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.stage-label .live-dot {
  width: 6px;
  height: 6px;
}

.frame-label {
  color: rgba(233, 239, 243, 0.65);
}

.stage-bottomline {
  bottom: 17px;
  font-size: 8px;
  color: rgba(235, 238, 241, 0.72);
}

.impact-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.impact-key i {
  display: inline-block;
  width: 14px;
  height: 5px;
  border-radius: 4px;
}

.key-low {
  margin-left: 5px;
  background: #42c8ee;
}

.key-high {
  background: #ff6138;
}

.stage-prompt {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 10px 15px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(235, 239, 249, 0.3);
  border-radius: 30px;
  background: rgba(7, 11, 20, 0.7);
  color: #fff;
  font-size: 12px;
  text-align: center;
  pointer-events: none;
  backdrop-filter: blur(8px);
  transition: opacity 180ms ease;
}

.stage-prompt.is-hidden {
  opacity: 0;
}

.control-deck {
  align-items: stretch;
  flex-direction: column;
  gap: 36px;
  min-height: 96px;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--line);
}

.primary-controls {
  justify-content: flex-start;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:not(:disabled):active {
  transform: translateY(1px);
}

.button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button-primary {
  min-width: 152px;
  background: var(--acid);
  color: #11170b;
}

.button-primary:not(:disabled):hover {
  background: #d9ff8c;
}

.button-icon {
  font-size: 16px;
  line-height: 1;
}

.button-secondary,
.button-video {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: #e8e9e9;
}

.sound-icon {
  color: var(--acid);
}

.button-secondary:not(:disabled):hover,
.button-video:not(:disabled):hover {
  border-color: rgba(201, 239, 116, 0.5);
  background: rgba(201, 239, 116, 0.08);
}

.button-video {
  margin-left: 7px;
  color: #b7bbc5;
}

.play-icon {
  color: var(--acid);
  font-size: 10px;
}

.sliders {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.sound-design {
  width: 100%;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.sound-design summary {
  width: fit-content;
  color: #e8e9e9;
  cursor: pointer;
  font: 11px var(--mono);
  letter-spacing: 0.04em;
}

.sound-design summary::marker {
  color: var(--acid);
}

.sound-design-note {
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 11px;
}

.sound-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sound-select {
  display: grid;
  gap: 8px;
  color: #d9dce1;
  font-size: 11px;
}

.sound-select select {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #101725;
  color: #e8e9e9;
}

.slider-control {
  display: grid;
  gap: 10px;
}

.slider-heading {
  color: #d9dce1;
  font-size: 11px;
}

.slider-heading output {
  color: var(--acid);
  font: 11px var(--mono);
}

.slider-control input {
  width: 100%;
  height: 3px;
  margin: 0;
  appearance: none;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--acid), rgba(201, 239, 116, 0.25));
  cursor: pointer;
}

.slider-control input::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  appearance: none;
  border: 2px solid #11170b;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 1px var(--acid);
}

.slider-control input::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 2px solid #11170b;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 1px var(--acid);
}

.slider-scale {
  color: #7d8491;
  font-size: 7px;
}

.interaction-status {
  min-height: 18px;
  margin: 9px 0 0;
  color: #8d95a2;
  font: 9px var(--mono);
  letter-spacing: 0.025em;
}

.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 36px 0 48px;
}

.note-card {
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.note-index {
  color: #858c99;
  font-size: 8px;
}

.note-card h2 {
  margin: 17px 0 8px;
  font: 500 16px var(--display);
  letter-spacing: -0.03em;
}

.note-card p {
  max-width: 330px;
  margin: 0;
  color: #9da3af;
  font-size: 11px;
  line-height: 1.65;
}

.note-source a {
  display: inline-block;
  margin-top: 12px;
  color: #d1d6dc;
  font-size: 10px;
  text-decoration-color: rgba(201, 239, 116, 0.55);
  text-underline-offset: 4px;
}

.footer {
  min-height: 55px;
  border-top: 1px solid var(--line);
  color: #747c8a;
  font-size: 8px;
}

@media (max-width: 820px) {
  .page {
    width: min(100% - 36px, 700px);
  }

  .intro {
    gap: 24px;
    padding-top: 44px;
  }

  .intro-copy {
    width: 42%;
    font-size: 12px;
  }

  .control-deck {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .sliders {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sound-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notes {
    gap: 20px;
  }

}

@media (max-width: 560px) {
  .page {
    width: calc(100% - 28px);
  }

  .masthead {
    height: 62px;
  }

  .brand {
    gap: 8px;
    font-size: 8px;
  }

  .brand-mark {
    width: 25px;
    height: 25px;
  }

  .source-link {
    font-size: 8px;
  }

  .intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 36px 0 22px;
  }

  h1 {
    font-size: clamp(48px, 16vw, 68px);
  }

  .intro-copy {
    width: min(360px, 100%);
    margin: 0;
    font-size: 12px;
  }

  .stage-topline,
  .stage-bottomline {
    right: 9px;
    left: 9px;
  }

  .stage-topline {
    top: 9px;
  }

  .stage-bottomline {
    bottom: 9px;
    font-size: 6px;
  }

  .stage-label,
  .frame-label {
    font-size: 6px;
  }

  .stage-label {
    gap: 5px;
  }

  .stage-label .live-dot {
    width: 5px;
    height: 5px;
  }

  .stage-prompt {
    padding: 7px 10px;
    font-size: 9px;
  }

  .control-deck {
    padding: 13px 0;
  }

  .primary-controls {
    width: 100%;
    flex-wrap: wrap;
    gap: 7px;
  }

  .button {
    min-height: 38px;
    padding: 0 11px;
    font-size: 10px;
  }

  .button-primary {
    min-width: 130px;
  }

  .button-video {
    margin-left: 0;
  }

  .sliders {
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sound-controls {
    grid-template-columns: 1fr;
  }

  .slider-heading {
    font-size: 9px;
  }

  .slider-scale {
    font-size: 6px;
  }

  .notes {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 25px 0 32px;
  }

  .note-card {
    padding-top: 12px;
  }

  .note-card h2 {
    margin-top: 10px;
    font-size: 14px;
  }

  .footer {
    font-size: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
