:root {
  --ink: #1e4f57;
  --text: #17373d;
  --muted: #55757a;
  --line: rgba(36, 94, 101, 0.14);
  --panel: rgba(255, 251, 245, 0.86);
  --panel-strong: rgba(242, 251, 248, 0.96);
  --teal: #245e65;
  --teal-soft: #4f9aa2;
  --mint: #d7f0e6;
  --gold: #f3c76a;
  --peach: #f6a37f;
  --sky: #b8e1eb;
  --shadow: 0 28px 70px rgba(48, 93, 92, 0.15);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 10%, rgba(184, 225, 235, 0.85), transparent 22%),
    radial-gradient(circle at 84% 14%, rgba(246, 163, 127, 0.42), transparent 18%),
    radial-gradient(circle at 70% 78%, rgba(215, 240, 230, 0.9), transparent 20%),
    linear-gradient(180deg, #f9f4ea 0%, #eff8f4 52%, #edf7fb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(36, 94, 101, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 94, 101, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 88%);
}

.page-shell {
  width: min(calc(100% - 28px), var(--max-width));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.topbar,
.hero-panel,
.launchpad-panel,
.lineup-panel,
.notes-panel {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border-radius: 26px;
  margin-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(53, 102, 110, 0.14));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-copy strong,
h1,
h2,
h3 {
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
}

.brand-copy strong {
  font-size: 1.45rem;
  color: var(--teal);
}

.brand-copy span,
.hero-text,
.spotlight-copy,
.spotlight-flavour,
.lineup-copy,
.status-panel p,
.note-card p {
  color: var(--muted);
  line-height: 1.7;
}

.topnav,
.hero-actions,
.control-strip,
.spotlight-actions,
.lineup-actions,
.spotlight-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topnav a,
.pill-button,
.button {
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.topnav a,
.pill-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--teal);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.topnav a:hover,
.topnav a:focus-visible,
.pill-button:hover,
.pill-button:focus-visible,
.button:hover,
.button:focus-visible,
.lineup-card:hover,
.lineup-card:focus-within {
  transform: translateY(-2px);
}

.main-layout {
  display: grid;
  gap: 22px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 154, 162, 0.18), transparent 70%);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-soft);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  color: var(--teal);
}

h1 {
  font-size: clamp(3rem, 8vw, 5.4rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.1rem);
}

h3 {
  font-size: clamp(1.65rem, 3vw, 2rem);
}

.hero-text {
  max-width: 62ch;
  margin: 18px 0 0;
}

.hero-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.status-panel,
.mini-stats article,
.spotlight-panel,
.lineup-card,
.note-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 251, 248, 0.96));
}

.status-panel {
  padding: 24px;
}

.status-chip,
.meta-pill,
.lineup-state,
.note-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 900;
}

.status-chip,
.lineup-state,
.note-label {
  padding: 8px 12px;
  font-size: 0.78rem;
}

.status-chip {
  background: rgba(79, 154, 162, 0.12);
  color: var(--teal);
  margin-bottom: 16px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini-stats article {
  padding: 18px 16px;
}

.mini-stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  font-size: 1.6rem;
}

.mini-stats span {
  color: var(--muted);
}

.launchpad-panel,
.lineup-panel,
.notes-panel {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.pill-button.is-active {
  background: linear-gradient(135deg, var(--teal-soft), var(--teal));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(79, 154, 162, 0.22);
}

.stage-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.stage-canvas {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 640px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(36, 94, 101, 0.14);
  background:
    radial-gradient(circle at 18% 18%, rgba(79, 154, 162, 0.22), transparent 18%),
    radial-gradient(circle at 78% 22%, rgba(243, 199, 106, 0.24), transparent 16%),
    linear-gradient(180deg, #eef9f5 0%, #e6f4f7 100%);
}

.stage-canvas canvas {
  display: block;
  max-width: 100%;
  height: auto;
  touch-action: none;
}

.node-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.stage-node {
  position: absolute;
  width: 168px;
  overflow: hidden;
  border: 2px solid rgba(36, 94, 101, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(67, 115, 118, 0.18);
  transform: translate(-50%, -50%);
  transition: transform 220ms ease, border-color 180ms ease, box-shadow 180ms ease;
  pointer-events: auto;
  cursor: pointer;
}

.stage-node.is-selected,
.stage-node:hover,
.stage-node:focus-visible {
  transform: translate(-50%, calc(-50% - 6px));
  border-color: rgba(36, 94, 101, 0.5);
  box-shadow: 0 22px 42px rgba(67, 115, 118, 0.24);
  outline: none;
}

.stage-node-status {
  position: absolute;
  top: -14px;
  left: 50%;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  transform: translateX(-50%);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: var(--teal);
  white-space: nowrap;
}

.stage-node-art {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
  object-position: top center;
  background: #dceff0;
}

.stage-node-footer {
  display: grid;
  gap: 4px;
  min-height: 66px;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 251, 248, 0.98));
}

.stage-node-name {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--teal);
}

.stage-node-meta {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--teal-soft);
}

.spotlight-panel {
  padding: 22px;
}

.spotlight-title-link,
.lineup-title-link,
.lineup-shot-link,
.spotlight-image-link {
  color: inherit;
  text-decoration: none;
}

.meta-pill {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
  background: rgba(79, 154, 162, 0.12);
  color: var(--teal);
}

.meta-pill-soft {
  background: rgba(184, 225, 235, 0.5);
  color: var(--teal);
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(215, 240, 230, 0.88);
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 800;
}

.spotlight-preview,
.lineup-shot {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e8f4f5, #d9edf0);
}

.spotlight-preview {
  margin: 18px 0 16px;
  border: 1px solid rgba(36, 94, 101, 0.12);
}

.spotlight-preview img,
.lineup-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.spotlight-flavour {
  margin: 0;
}

.lineup-grid,
.notes-grid {
  display: grid;
  gap: 16px;
}

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

.lineup-card,
.note-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.lineup-card.is-selected {
  border-color: rgba(36, 94, 101, 0.28);
  box-shadow: 0 18px 40px rgba(67, 115, 118, 0.14);
}

.lineup-state {
  background: rgba(79, 154, 162, 0.12);
  color: var(--teal);
}

.lineup-domain {
  margin: 6px 0 0;
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--teal-soft);
}

.lineup-copy {
  margin: 0;
}

.button {
  min-height: 48px;
  font-weight: 900;
}

.button-primary {
  background: linear-gradient(135deg, var(--teal-soft), var(--teal));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(79, 154, 162, 0.2);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.88);
}

.notes-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.note-label {
  background: rgba(243, 199, 106, 0.25);
  color: #8f6522;
}

.noscript-note {
  width: min(calc(100% - 28px), var(--max-width));
  margin: 0 auto 32px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff7ea;
  border: 1px solid rgba(143, 101, 34, 0.14);
  color: #7a5923;
}

@media (max-width: 1080px) {
  .hero-panel,
  .stage-shell,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .lineup-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 12ch;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 18px), var(--max-width));
    padding-top: 12px;
  }

  .topbar,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-panel,
  .launchpad-panel,
  .lineup-panel,
  .notes-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .mini-stats,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .stage-canvas {
    min-height: 500px;
  }

  .button,
  .topnav a {
    width: 100%;
  }

  .hero-actions,
  .spotlight-actions,
  .lineup-actions {
    flex-direction: column;
  }

  .brand-logo {
    width: 72px;
    height: 72px;
  }
}
