:root {
  color-scheme: dark;
  --bg-1: #050914;
  --bg-2: #0c1430;
  --surface: rgba(18, 26, 51, 0.72);
  --surface-strong: rgba(20, 30, 62, 0.88);
  --ink: #f2f5ff;
  --muted: #aab3de;
  --accent: #ff0000;
  --danger: #ff7f8c;
  --success: #7ef7a1;
  --ring: rgba(106, 162, 255, 0.55);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-xl: 0 30px 70px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 16px 40px rgba(5, 10, 30, 0.35);
  --transition: 200ms ease;
  --grid-gap: clamp(1rem, 2vw, 1.8rem);
}

@property --shagmeter-progress {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.5;
  background: radial-gradient(circle at top left, rgba(90, 118, 255, 0.12) 0, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(255, 133, 255, 0.12) 0, transparent 50%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
  color: var(--ink);
}

body.high-contrast {
  --surface: rgba(15, 21, 44, 0.95);
  --surface-strong: rgba(5, 9, 25, 0.95);
  --muted: #ffffff;
  background: #01030a;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.5rem, 4vw, 3.5rem);
  background: rgba(5, 10, 25, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.brand--bombo-hint {
  animation: brand-bombo-hint 0.5s ease;
}

.brand--bombo-hint .brand__mark {
  animation: brand-bombo-glow 0.5s ease;
}

.brand__mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-md);
}

.brand--bombo-hint .brand__mark,
.brand--bombo-hint {
  will-change: transform, box-shadow;
}

@keyframes brand-bombo-hint {
  0% {
    transform: scale(1) rotate(0deg);
  }
  30% {
    transform: scale(1.08) rotate(-2deg);
  }
  55% {
    transform: scale(0.95) rotate(2deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes brand-bombo-glow {
  0% {
    box-shadow: var(--shadow-md);
  }
  35% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2), 0 0 18px 6px var(--accent);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.12), 0 0 14px 4px var(--accent);
  }
  100% {
    box-shadow: var(--shadow-md);
  }
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__tag {
  font-size: 0.75rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 600;
}

.site-nav a {
  color: inherit;
  text-decoration: none;
  padding: 0.35rem 0.2rem;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.site-nav a:focus-visible,
.site-nav a:hover {
  color: var(--accent);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a:focus-visible::after,
.site-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: var(--grid-gap);
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.75rem;
}

.hero__title {
  margin: 0.5rem 0;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
}

.hero__lead {
  color: var(--muted);
  max-width: 40ch;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__media {
  margin: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.hero__media img {
  width: min(100%, 420px);
  border-radius: var(--radius-md);
}

.meter-hero__media {
  background: var(--surface);
}

.meter-section {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3rem);
}

.meter-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gap);
}

.meter-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.meter-card__header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.meter-card__header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.timeline--solo {
  margin: 0;
}

.shagmeter-card {
  position: relative;
  overflow: visible;
}

.shagmeter-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.04), transparent 60%);
}

.shagmeter-card.is-complete {
  box-shadow: 0 20px 50px rgba(255, 0, 70, 0.35);
  border-color: rgba(255, 255, 255, 0.18);
}

.shagmeter-card.is-complete .shagmeter__status {
  color: var(--success);
}

.shagmeter-card.is-exploding::after {
  background: radial-gradient(circle, rgba(255, 0, 90, 0.22), transparent 65%);
}

.shagmeter__goal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.shagmeter__goal label {
  font-weight: 600;
}

.shagmeter__goal-control {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.shagmeter__goal-control input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}

.shagmeter__goal-value {
  font-weight: 600;
}

.shagmeter__display {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto;
  width: min(320px, 70vw);
}

.shagmeter__core {
  --shagmeter-progress: 0;
  --shagmeter-progress-deg: calc(var(--shagmeter-progress) * 360deg);
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 60%),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 90px rgba(255, 0, 90, 0.18);
  overflow: hidden;
  z-index: 1;
  transition: --shagmeter-progress 0.6s ease;
}

.shagmeter__core::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    var(--accent) var(--shagmeter-progress-deg),
    rgba(255, 255, 255, 0.08) var(--shagmeter-progress-deg)
  );
  filter: drop-shadow(0 0 25px rgba(255, 0, 90, 0.4));
}

.shagmeter__core::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: var(--surface-strong);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45);
}

.shagmeter__value {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 0.25rem;
  text-align: center;
}

.shagmeter__count {
  font-size: clamp(2.8rem, 6vw, 3.6rem);
  font-weight: 700;
}

.shagmeter__count-label {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--muted);
}

.shagmeter__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0;
}

.shagmeter__core.is-active .shagmeter__pulse {
  animation: shagmeter-pulse 1.6s ease-out;
}

.shagmeter__core.is-active::before {
  animation: shagmeter-core-flash 1.6s ease-out;
}

.shagmeter__eruption {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 0, 90, 0.45), transparent 60%);
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transform: translate(-50%, -50%) scale(0.75);
}

.shagmeter__eruption.is-active {
  animation: shagmeter-burst 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.shagmeter__status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}

.shagmeter__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.shagmeter__add-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 55%),
    linear-gradient(140deg, var(--accent), rgba(255, 117, 190, 0.95));
  box-shadow: 0 20px 45px rgba(255, 0, 90, 0.38);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.shagmeter__add-btn:hover,
.shagmeter__add-btn:focus-visible {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 26px 60px rgba(255, 0, 110, 0.48);
}

.shagmeter__add-btn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.3);
  opacity: 0.65;
}

.shagmeter-card.is-complete .shagmeter__add-btn {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 55%),
    linear-gradient(140deg, var(--success), rgba(190, 255, 214, 0.95));
  box-shadow: 0 26px 60px rgba(126, 247, 161, 0.45);
}

.shagmeter__actions-label {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.shagmeter__reset {
  border-radius: 999px;
}

@keyframes shagmeter-pulse {
  0% {
    opacity: 0.75;
    transform: scale(1);
  }
  70% {
    opacity: 0.25;
    transform: scale(1.35);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

@keyframes shagmeter-core-flash {
  0% {
    filter: drop-shadow(0 0 25px rgba(255, 0, 110, 0.5));
  }
  100% {
    filter: drop-shadow(0 0 10px rgba(255, 0, 110, 0.1));
  }
}

@keyframes shagmeter-burst {
  0% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1);
  }
  60% {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(6);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(14);
  }
}

.hero__media figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--grid-gap);
}

.status-card {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.status-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.status-card__title {
  margin: 0;
  font-size: 1.1rem;
}

.status-card__clock {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.status-card__label {
  margin: 0;
  color: var(--muted);
}

.status-card__count {
  font-size: 2rem;
  margin: 0;
  font-weight: 700;
}

.status-card__hint {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.status-card__swatch {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.status-card__swatch input[type="color"] {
  background: none;
  border: none;
  width: 48px;
  height: 32px;
  padding: 0;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-header__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
  font-size: 0.75rem;
  margin: 0;
}

.section-header h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-header__hint {
  color: var(--muted);
  max-width: 38ch;
  margin: 0;
}

.planner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap);
}

.planner__primary,
.planner__sidebar {
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-xl);
}

.planner__sidebar--main {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.78));
  z-index: 0;
}

.planner__sidebar--main::after {
  content: "";
  position: absolute;
  inset: -35% 40% auto -20%;
  height: 65%;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent) 0%, transparent 65%);
  opacity: 0.4;
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.planner__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.planner__intro {
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 52ch;
  font-size: 0.98rem;
  line-height: 1.6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--grid-gap);
}

.card-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.event-card {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  pointer-events: none;
  transition: border-color var(--transition);
}

.event-card:hover,
.event-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

.event-card.is-next::before {
  border-color: var(--ring);
}

.event-card__top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.event-card__label {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.event-card__meta {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.event-card__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.event-card__count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.45rem;
}

.event-card__actions {
  display: flex;
  gap: 0.5rem;
}

.event-card__actions .btn,
.event-card__actions button {
  flex: 1;
}

.pill {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.event-card[data-source="custom"]::before {
  border-color: rgba(255, 255, 255, 0.04);
}

.event-card[data-source="custom"] {
  border-color: rgba(255, 255, 255, 0.1);
}

.event-card[data-color] {
  border-left: 6px solid var(--card-accent, var(--accent));
}

.event-card[data-source="custom"] .pill {
  background: rgba(255, 255, 255, 0.12);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  position: relative;
  padding-left: 2.25rem;
}

.timeline[data-state="populated"]::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  left: 1.15rem;
  width: 2px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 50%, transparent) 0%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.02) 100%
  );
  pointer-events: none;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.15rem 1.35rem 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 42px -24px rgba(5, 11, 26, 0.9);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  backdrop-filter: blur(18px);
  isolation: isolate;
}

.timeline__item[data-color] {
  border-color: color-mix(in srgb, var(--timeline-accent) 35%, rgba(255, 255, 255, 0.18));
  background: linear-gradient(
      135deg,
      color-mix(in srgb, var(--timeline-accent) 20%, transparent) 0%,
      rgba(17, 24, 39, 0.35) 42%,
      rgba(255, 255, 255, 0.02) 100%
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.timeline__item[data-color]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at top right,
    color-mix(in srgb, var(--timeline-accent) 28%, transparent) 0%,
    transparent 60%
  );
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
}

.timeline__item:hover {
  transform: translateX(6px) translateY(-3px);
  box-shadow: 0 24px 54px -18px color-mix(in srgb, var(--timeline-accent, var(--accent)) 50%, rgba(4, 7, 18, 0.75));
  border-color: color-mix(in srgb, var(--timeline-accent, var(--accent)) 55%, rgba(255, 255, 255, 0.28));
}

.timeline__item.is-next {
  border-color: color-mix(in srgb, var(--timeline-accent, var(--accent)) 70%, rgba(255, 255, 255, 0.35));
  box-shadow: 0 28px 64px -16px color-mix(in srgb, var(--timeline-accent, var(--accent)) 65%, rgba(4, 7, 18, 0.75));
}

.timeline__item.is-next .timeline__countdown {
  color: color-mix(in srgb, var(--timeline-accent, var(--accent)) 80%, #ffffff 20%);
  text-shadow: 0 0 22px color-mix(in srgb, var(--timeline-accent, var(--accent)) 40%, transparent);
}

.timeline__item.is-next .timeline__eta {
  background: linear-gradient(135deg, color-mix(in srgb, var(--timeline-accent, var(--accent)) 35%, transparent) 0%, rgba(255, 255, 255, 0.04) 90%);
  border-color: color-mix(in srgb, var(--timeline-accent, var(--accent)) 45%, rgba(255, 255, 255, 0.2));
}

.timeline__decor {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 2.35rem;
  padding-top: 0.15rem;
}

.timeline__dot {
  position: relative;
  z-index: 1;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background: var(--timeline-accent, var(--accent));
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--timeline-accent, var(--accent)) 15%, transparent);
  transition: transform var(--transition), box-shadow var(--transition);
}

.timeline__item:hover .timeline__dot {
  transform: scale(1.08);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--timeline-accent, var(--accent)) 20%, transparent);
}

.timeline__glow {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--timeline-accent, var(--accent)) 38%, transparent) 0%,
    transparent 65%
  );
  transform: translateX(-50%);
  animation: timelinePulse 4.5s ease-in-out infinite;
  pointer-events: none;
}


.timeline__body {
  display: grid;
  gap: 0.85rem;
}

.timeline__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.35rem;
}

.timeline__header-main {
  display: grid;
  gap: 0.35rem;
  flex: 1;
}

.timeline__label {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
}

.timeline__eta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  min-width: 130px;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.timeline__countdown {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
}

.timeline__time {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.7);
}

.timeline__detail {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
  line-height: 1.45;
}

.timeline__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.timeline__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.timeline__count-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.timeline__progress {
  position: relative;
  margin-top: 0.25rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.timeline__progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--timeline-accent, var(--accent)) 0%, color-mix(in srgb, var(--timeline-accent, var(--accent)) 35%, #ffffff) 100%);
  transition: width var(--transition);
}

.timeline--compact .timeline__item {
  padding: 0.95rem 1.1rem 1.05rem 1.1rem;
  gap: 1rem;
}

.timeline--compact .timeline__label {
  font-size: 1rem;
}

.timeline--compact .timeline__detail {
  display: none;
}

.timeline--compact .timeline__eta {
  min-width: auto;
  align-items: flex-start;
}

.timeline--compact .timeline__countdown {
  font-size: 1.05rem;
}

.timeline--compact .timeline__pill {
  font-size: 0.68rem;
}

.timeline--compact .timeline__progress {
  margin-top: 0.15rem;
}

.timeline__item--empty {
  grid-template-columns: 1fr;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.timeline__item--empty .timeline__label {
  font-size: 1rem;
}

.timeline__item--empty .timeline__detail {
  color: rgba(255, 255, 255, 0.6);
}

.timeline__item--empty::after,
.timeline__item--empty .timeline__decor,
.timeline__item--empty .timeline__progress {
  display: none;
}

@media (max-width: 720px) {
  .timeline__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline__eta {
    align-items: flex-start;
    text-align: left;
    min-width: 0;
    width: 100%;
  }
}

@keyframes timelinePulse {
  0%,
  100% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline__item {
    transition: none;
  }
  .timeline__item:hover {
    transform: none;
  }
  .timeline__glow {
    animation: none;
  }
  .timeline__progress-fill {
    transition: none;
  }
}

.customize {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--grid-gap);
}

.customize__form,
.customize__board {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

label {
  font-weight: 600;
}

input,
select,
textarea,
button {
  font-family: inherit;
}

input[type="text"],
input[type="time"],
input[type="color"],
select,
textarea {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input[type="text"]:focus,
input[type="time"]:focus,
input[type="color"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(106, 162, 255, 0.3);
}

textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn,
button.btn,
button {
  border: none;
  cursor: pointer;
}

.btn {
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn--mini {
  font-size: 0.7rem;
  padding: 0.35rem 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  gap: 0.35rem;
}

.archive-teaser {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), rgba(255, 127, 140, 0.85));
  color: #050914;
  box-shadow: 0 12px 32px rgba(255, 0, 0, 0.35);
}

.archive-teaser::after {
  content: "";
  position: absolute;
  inset: -60% -40% auto;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 60%);
  transform: translateX(-60%);
  transition: transform var(--transition);
}

.archive-teaser:hover::after,
.archive-teaser:focus-visible::after {
  transform: translateX(0);
}

.archive-teaser span {
  font-size: 0.85rem;
}

.btn.primary {
  background: var(--accent);
  color: #050914;
  box-shadow: 0 18px 38px rgba(106, 162, 255, 0.45);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(106, 162, 255, 0.5);
}

.btn.outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--ink);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.btn.ghost:hover,
.btn.outline:hover,
.btn.ghost:focus-visible,
.btn.outline:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.btn.danger {
  background: rgba(255, 127, 140, 0.18);
  color: var(--danger);
}

.customize__board-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.customize__placeholder {
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.customize__placeholder img {
  width: min(100%, 420px);
}

.custom-empty {
  color: var(--muted);
  margin: 0;
}

.insights {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-xl);
  padding: clamp(1.8rem, 4vw, 2.6rem);
}

.insights__hub {
  margin-top: clamp(1.5rem, 3vw, 2.4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.75rem);
}

.resource-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-xl);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.resource-section--secondary {
  background: linear-gradient(165deg, rgba(16, 24, 52, 0.92), rgba(8, 15, 34, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.archive-section {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.archive-box {
  width: min(100%, 1100px);
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-xl);
  padding: clamp(1.8rem, 4vw, 3.4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.6rem);
  min-height: clamp(600px, 90vh, 960px);
  position: relative;
  overflow: hidden;
}

.archive-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 60ch;
  margin: 0;
}

.archive-header__eyebrow {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.archive-header__description {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.archive-video-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.2vw, 1.8rem);
  overflow-y: auto;
  padding-right: 0.75rem;
  margin-right: -0.75rem;
}

.archive-video {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
  padding: clamp(1rem, 2.6vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.archive-video__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.archive-video__title {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
}

.archive-video__description {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.archive-video__frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  position: relative;
}

.archive-video__player {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
  background: #000;
}

.archive-video__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.archive-video__placeholder span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .archive-section {
    padding: clamp(1rem, 6vw, 2rem) 0;
  }

  .archive-box {
    min-height: auto;
    gap: 1.5rem;
  }

  .archive-video-list {
    margin-right: 0;
    padding-right: 0;
  }
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--grid-gap);
}

.resource-card {
  position: relative;
  padding: clamp(1.4rem, 2.6vw, 1.8rem);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top right, rgba(106, 162, 255, 0.18), transparent 60%), var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  isolation: isolate;
}

.resource-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  pointer-events: none;
}

.resource-card:hover,
.resource-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
}

.resource-card:hover::after,
.resource-card:focus-within::after {
  border-color: rgba(106, 162, 255, 0.4);
}

.resource-card__badge {
  align-self: flex-start;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-card__title {
  margin: 0;
  font-size: 1.25rem;
}

.resource-card__meta {
  margin: 0;
  color: var(--muted);
}

.resource-card__actions {
  margin-top: auto;
}

.btn.download {
  background: linear-gradient(130deg, rgba(106, 162, 255, 0.95), rgba(170, 118, 255, 0.95));
  color: #050914;
  box-shadow: 0 18px 38px rgba(106, 162, 255, 0.45);
}

.btn.download:hover,
.btn.download:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 46px rgba(106, 162, 255, 0.55);
}

.resource-guidance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--grid-gap);
}

.resource-note {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: clamp(1.1rem, 2vw, 1.6rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

.resource-note h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.resource-note p {
  margin: 0;
  color: var(--muted);
}

.gallery-hero__media {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.gallery-hero__placeholder {
  width: min(100%, 420px);
  padding: clamp(2rem, 4vw, 2.8rem);
  border-radius: var(--radius-md);
  border: 2px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--muted);
}

.gallery-hero__placeholder span {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-xl);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--grid-gap);
}

.gallery-card {
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
  padding: clamp(1.4rem, 2.6vw, 1.8rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-card:hover,
.gallery-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
}

.gallery-card__frame {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gallery-card__frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
  cursor: zoom-in;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-card__frame img:hover,
.gallery-card__frame img:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
}

.gallery-card__placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius-md);
  border: 2px dashed rgba(255, 255, 255, 0.22);
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.gallery-card__placeholder span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: normal;
  text-transform: none;
}

.gallery-card__caption {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
}

.gallery-card__description {
  margin: 0;
  color: var(--muted);
}

.gallery-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: rgba(2, 6, 18, 0.7);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 40;
}

.gallery-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-modal__dialog {
  position: relative;
  width: min(640px, 100%);
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-xl);
}

.gallery-modal__image {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.gallery-modal__caption {
  display: grid;
  gap: 0.65rem;
  opacity: 0;
  transform: translateY(16px);
}

.gallery-modal__caption.animate-in {
  animation: galleryFadeIn 360ms ease forwards;
}

.gallery-modal__title {
  margin: 0;
  font-size: clamp(1.4rem, 3.2vw, 1.8rem);
  font-weight: 700;
}

.gallery-modal__description {
  margin: 0;
  color: var(--muted);
}

.gallery-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.gallery-modal__close:hover,
.gallery-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.03);
}

@keyframes galleryFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .resource-card {
    padding: 1.2rem;
  }

  .resource-note {
    padding: 1rem;
  }
}

.insight-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border-radius: var(--radius-md);
  color: inherit;
  text-decoration: none;
  background: linear-gradient(
      135deg,
      color-mix(in srgb, var(--tile-accent, var(--accent)) 18%, rgba(255, 255, 255, 0.06)) 0%,
      rgba(255, 255, 255, 0.02) 100%
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 42px -24px rgba(5, 11, 26, 0.9);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition),
    background var(--transition);
  backdrop-filter: blur(18px);
  isolation: isolate;
  overflow: hidden;
  min-height: 168px;
}

.insight-tile__glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 75% 15%,
    color-mix(in srgb, var(--tile-accent, var(--accent)) 45%, transparent) 0%,
    transparent 70%
  );
  opacity: 0.75;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity var(--transition), transform var(--transition);
}

.insight-tile__icon {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--tile-accent, var(--accent)) 65%, rgba(255, 255, 255, 0.08)) 0%,
    color-mix(in srgb, var(--tile-accent, var(--accent)) 28%, rgba(10, 16, 30, 0.95)) 100%
  );
  box-shadow: 0 18px 42px -26px color-mix(in srgb, var(--tile-accent, var(--accent)) 55%, rgba(2, 5, 14, 0.75));
  color: #ffffff;
  transition: transform var(--transition), box-shadow var(--transition);
}

.insight-tile__icon svg,
.insight-tile__icon img {
  width: 65px;
  height: 65px;
}

.insight-tile__icon img {
  object-fit: contain;
}

.insight-tile__label {
  position: relative;
  z-index: 1;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.insight-tile__hint {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 22ch;
}

.insight-tile:hover {
  transform: translateX(6px) translateY(-3px);
  border-color: color-mix(in srgb, var(--tile-accent, var(--accent)) 55%, rgba(255, 255, 255, 0.26));
  box-shadow: 0 24px 54px -18px color-mix(in srgb, var(--tile-accent, var(--accent)) 50%, rgba(4, 7, 18, 0.75));
  background: linear-gradient(
      135deg,
      color-mix(in srgb, var(--tile-accent, var(--accent)) 28%, rgba(255, 255, 255, 0.12)) 0%,
      rgba(255, 255, 255, 0.04) 100%
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.insight-tile:hover .insight-tile__icon {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 24px 54px -20px color-mix(in srgb, var(--tile-accent, var(--accent)) 62%, rgba(4, 7, 18, 0.72));
}

.insight-tile:hover .insight-tile__glow {
  opacity: 0.95;
  transform: scale(1.05);
}

.insight-tile:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--tile-accent, var(--accent)) 55%, rgba(255, 255, 255, 0.4));
  outline-offset: 4px;
}


.audio-lounge {
  position: relative;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(circle at 85% 85%, color-mix(in srgb, var(--accent) 32%, transparent) 0%, transparent 70%),
    linear-gradient(155deg, rgba(9, 14, 38, 0.88), rgba(5, 9, 26, 0.9));
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
}

.audio-lounge::before {
  content: "";
  position: absolute;
  inset: -30% 55% 40% -15%;
  background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--accent) 65%, transparent) 0%, transparent 70%);
  filter: blur(120px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.audio-lounge__layout {
  position: relative;
  display: flex;
  justify-content: center;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border-radius: calc(var(--radius-lg) - 6px);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.08), transparent 65%),
    linear-gradient(160deg, rgba(7, 12, 32, 0.95), rgba(11, 19, 45, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.audio-lounge__layout::before {
  content: "";
  position: absolute;
  inset: -25% -15% 35% 40%;
  background: radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--accent) 45%, transparent) 0%, transparent 70%);
  opacity: 0.6;
  transform: translate3d(0, 0, 0);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}

.audio-lounge__layout::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 65%);
  opacity: 0.35;
  pointer-events: none;
}

.audio-lounge--playing .audio-lounge__layout::before {
  opacity: 0.85;
  transform: scale(1.05);
}

.audio-player {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border-radius: clamp(26px, 4vw, 36px);
  background: linear-gradient(158deg, rgba(6, 11, 30, 0.92), rgba(12, 20, 45, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 90px rgba(5, 10, 30, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.audio-player::before {
  content: "";
  position: absolute;
  inset: -20% -25% 55% 20%;
  background: radial-gradient(circle at 25% 25%, color-mix(in srgb, var(--accent) 55%, transparent) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.65;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.audio-player::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 60%);
  pointer-events: none;
  opacity: 0.35;
}

.audio-player:hover {
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 50px 110px rgba(5, 10, 30, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.audio-player.is-playing::before {
  opacity: 0.85;
  transform: scale(1.05);
}

.audio-player__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(1.5rem, 3vw, 2.6rem);
  width: 100%;
  aspect-ratio: 16 / 9;
}

.audio-player__artwork {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: clamp(18px, 3vw, 28px);
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(circle at 80% 85%, color-mix(in srgb, var(--accent) 45%, transparent) 0%, transparent 65%),
    rgba(9, 14, 36, 0.85);
  box-shadow: 0 30px 70px rgba(5, 10, 30, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.audio-player__art-shadow {
  position: absolute;
  inset: 70% 10% -20% 10%;
  background: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.45), transparent 70%);
  filter: blur(32px);
  opacity: 0.8;
  pointer-events: none;
}

.audio-player__art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transform: scale(1.02);
}

.audio-player__art-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2), transparent 65%);
  opacity: 0.4;
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}

.audio-player.is-playing .audio-player__art-glow {
  opacity: 0.65;
  transform: scale(1.06);
  animation: audioArtPulse 6s ease-in-out infinite;
}

.audio-player__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}

.audio-player__headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.audio-player__status-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.audio-player__status {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.audio-player__status code {
  font-size: 0.95rem;
}

.audio-player__empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 34ch;
}

.audio-player__signal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, rgba(255, 255, 255, 0) 70%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 30px rgba(5, 10, 30, 0.55);
  animation: audioSignal 2.8s ease-in-out infinite;
}

.audio-player__info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.audio-player__title {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.audio-player__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.audio-player__selector {
  display: grid;
  gap: 0.6rem;
}

.audio-player__label {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.audio-player__select {
  position: relative;
  display: flex;
  align-items: center;
}

.audio-player__select select {
  width: 100%;
  padding: 1rem 1.1rem;
  padding-right: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(140deg, rgba(10, 16, 36, 0.95), rgba(7, 10, 26, 0.92));
  color: inherit;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.audio-player__select select:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.audio-player__select select:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 50%, rgba(255, 255, 255, 0.4));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}

.audio-player__select select:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.audio-player__select-caret {
  position: absolute;
  right: 1.2rem;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid currentColor;
  opacity: 0.65;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.audio-player__select select:focus-visible + .audio-player__select-caret {
  opacity: 1;
  transform: translateY(-2px);
}

.audio-player__waveform {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.35rem;
  height: clamp(64px, 10vw, 96px);
  align-items: end;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.audio-player__waveform span {
  display: block;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), color-mix(in srgb, var(--accent) 60%, rgba(4, 10, 26, 0.3)));
  height: calc(18% + (var(--wave-index) * 1.6%));
  opacity: 0.45;
  transform-origin: bottom center;
  transition: opacity var(--transition);
}

.audio-player.is-playing .audio-player__waveform span {
  animation: audioWave 2.8s ease-in-out infinite;
  animation-delay: calc(var(--wave-index) * 0.08s);
  opacity: 0.95;
}

.audio-player__controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.audio-player__control {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 18px 40px rgba(4, 10, 26, 0.45);
  color: inherit;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.audio-player__control:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 26px 56px rgba(4, 10, 26, 0.55);
}

.audio-player__control:active {
  transform: translateY(0);
  box-shadow: 0 16px 34px rgba(4, 10, 26, 0.45);
}

.audio-player__control:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent), 0 18px 40px rgba(4, 10, 26, 0.45);
}

.audio-player__control--ghost {
  padding: 0.85rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(4, 10, 26, 0.4);
}

.audio-player__control--ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.audio-player__control--ghost:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent), 0 18px 40px rgba(4, 10, 26, 0.45);
}

.audio-player__icon {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.audio-player__icon--pause {
  display: none;
}

.audio-player.is-playing .audio-player__icon--play {
  display: none;
}

.audio-player.is-playing .audio-player__icon--pause {
  display: block;
}

.audio-player__progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
}

.audio-player__time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

.audio-player__progress-track {
  position: relative;
  --audio-progress: 0%;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.audio-player__progress-track input[type="range"] {
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: none;
  margin: 0;
  cursor: pointer;
}

.audio-player__progress-track input[type="range"]:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.audio-player__progress-track input[type="range"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent);
}

.audio-player__progress-track input[type="range"]::-webkit-slider-runnable-track {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 65%, rgba(255, 255, 255, 0.1)) var(--audio-progress, 0%), rgba(255, 255, 255, 0.16) var(--audio-progress, 0%));
}

.audio-player__progress-track input[type="range"]::-moz-range-track {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 65%, rgba(255, 255, 255, 0.1)) var(--audio-progress, 0%), rgba(255, 255, 255, 0.16) var(--audio-progress, 0%));
}

.audio-player__progress-track input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid rgba(7, 12, 30, 0.75);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 55%, rgba(5, 10, 30, 0.5));
  margin-top: calc((14px - 22px) / 2);
}

.audio-player__progress-track input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid rgba(7, 12, 30, 0.75);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 55%, rgba(5, 10, 30, 0.5));
}

.audio-player__volume {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.audio-player__volume-icon {
  width: 30px;
  height: 30px;
  fill: currentColor;
  color: var(--muted);
}

.audio-player__volume-box {
  position: relative;
  flex: 1;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, transparent) var(--audio-volume, 80%), rgba(255, 255, 255, 0.14) var(--audio-volume, 80%));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.audio-player__volume-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 65%);
  opacity: 0.35;
  pointer-events: none;
}

.audio-player__volume-slider {
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: none;
  margin: 0;
  cursor: pointer;
}

.audio-player__volume-slider:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent);
}

.audio-player__volume-slider::-webkit-slider-runnable-track {
  height: 100%;
  border-radius: inherit;
  background: transparent;
}

.audio-player__volume-slider::-moz-range-track {
  height: 100%;
  border-radius: inherit;
  background: transparent;
}

.audio-player__volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid rgba(7, 12, 30, 0.75);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 55%, rgba(5, 10, 30, 0.5));
}

.audio-player__volume-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid rgba(7, 12, 30, 0.75);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 55%, rgba(5, 10, 30, 0.5));
}

.audio-player__motto {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
  padding: 0.95rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes audioSignal {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 15%, transparent);
  }
  55% {
    transform: scale(1.1);
    box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 8%, transparent);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 transparent;
  }
}

@keyframes audioWave {
  0%,
  100% {
    transform: scaleY(0.85);
  }
  40% {
    transform: scaleY(1.3);
  }
  60% {
    transform: scaleY(0.95);
  }
}

@keyframes audioArtPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

@media (max-width: 1024px) {
  .audio-player__stage {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .audio-player__stage {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    aspect-ratio: 9 / 16;
    gap: clamp(1.2rem, 5vw, 2.2rem);
  }

  .audio-player__artwork {
    max-width: min(420px, 90vw);
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .audio-player {
    padding: clamp(1.2rem, 5vw, 2rem);
  }

  .audio-player__controls {
    gap: 0.65rem;
  }

  .audio-player__control {
    width: 54px;
    height: 54px;
    border-radius: 18px;
  }

  .audio-player__control--ghost {
    flex: 1 0 100%;
    justify-content: center;
  }

  .audio-player__progress {
    gap: 0.9rem;
  }

  .audio-player__waveform {
    height: clamp(72px, 30vw, 110px);
  }
}


.site-footer {
  padding: 2rem clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.back-to-top {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* Responsive tweaks */
@media (max-width: 960px) {
  .site-header {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .site-nav {
    flex: 1 1 100%;
    justify-content: center;
  }

  .planner {
    grid-template-columns: 1fr;
  }

  .customize {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-nav {
    flex-wrap: wrap;
  }

  .hero__actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .status-card__count {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
