:root {
  --bg-base: #0f1419;
  --bg-deep: #0a0f15;
  --panel: #f3f1ec;
  --ink: #17191c;
  --muted: #5b6168;
  --line: #d6cec2;
  --accent: #b14d2f;
  --accent-soft: #f2d2c7;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: "Avenir Next", "Trebuchet MS", "Gill Sans", sans-serif;
  background: radial-gradient(circle at 20% 10%, #1d2b3b 0%, transparent 40%),
    linear-gradient(145deg, var(--bg-base), var(--bg-deep));
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.orb-a {
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(177, 77, 47, 0.35), rgba(177, 77, 47, 0));
  top: -10rem;
  right: -8rem;
}

.orb-b {
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(131, 201, 255, 0.22), rgba(131, 201, 255, 0));
  bottom: -12rem;
  left: -8rem;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 2rem 2rem;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), #000 30%, #000 70%, rgba(0, 0, 0, 0.2));
}

.topbar {
  width: min(1120px, 94vw);
  margin: 1.5rem auto 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: end;
  color: #f8f4ec;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: #f5d4ca;
}

.topbar h1 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.2rem, 3.8vw, 2rem);
  font-weight: 750;
}

.runline {
  margin: 0.35rem 0 0;
  color: #fbe8df;
  font-size: 0.9rem;
}

.meta {
  min-width: min(420px, 100%);
}

.meta p {
  margin: 0 0 0.4rem;
  text-align: right;
  font-size: 0.9rem;
  color: #fbe8df;
}

.progress-track {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  height: 0.66rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #d27152, #f2d2c7);
  transition: width 240ms ease;
}

.deck {
  width: min(1120px, 94vw);
  margin: 0 auto;
  padding: 2.2rem;
  background: color-mix(in hsl, var(--panel), #fff 10%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.config-panel {
  width: min(1120px, 94vw);
  margin: 0 auto 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.config-panel h2 {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
  color: #fbe8df;
}

.details-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: end;
}

.details-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #f3ede5;
}

.details-form input {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 0.5rem 0.55rem;
  background: rgba(8, 12, 18, 0.45);
  color: #fff;
}

.details-form input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-actions {
  display: flex;
  gap: 0.55rem;
}

.readonly-notice {
  margin: 0.7rem 0 0;
  color: #f5d4ca;
  font-size: 0.85rem;
}

.slide {
  display: none;
  min-height: min(66vh, 640px);
  animation: reveal 260ms cubic-bezier(0.23, 1, 0.32, 1);
}

.slide.is-active {
  display: block;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kicker {
  display: inline-block;
  padding: 0.3rem 0.56rem;
  border-radius: 0.45rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
}

h2 {
  margin: 0.7rem 0;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  line-height: 1.15;
}

h3 {
  margin: 0 0 0.5rem;
}

.lead {
  margin: 0.6rem 0 1rem;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  max-width: 66ch;
}

.panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.slide-visual {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  margin: 0.6rem 0 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.slide-visual-contain {
  object-fit: contain;
}

.map-panel {
  width: 100%;
  margin: 0.6rem 0 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.map-frame {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

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

ul,
ol {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

li {
  margin: 0.45rem 0;
}

.timeline {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.timeline li {
  border-left: 4px solid var(--accent);
  padding: 0.66rem 0.8rem;
  background: #fff;
  border-radius: 0 10px 10px 0;
}

.note {
  margin-top: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.matrix {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.media-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.9rem;
}

.media-video {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #000;
  min-height: 280px;
}

.media-grid {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 0.6rem;
}

.media-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.single-media {
  width: 100%;
  max-height: 320px;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #fff;
}

.media-caption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.cell {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.label {
  margin: 0;
  color: var(--accent);
  font-weight: 800;
}

.warning-list {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: 12px;
  padding: 1rem 1rem 1rem 1.4rem;
}

.controls {
  width: min(1120px, 94vw);
  margin: 0.9rem auto 1.4rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: center;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 0.68rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.06);
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.status {
  color: #f6e8e1;
  text-align: center;
  font-weight: 600;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

@media (max-width: 840px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .meta p {
    text-align: left;
  }

  .columns,
  .matrix {
    grid-template-columns: 1fr;
  }

  .media-layout {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
  }

  .details-form {
    grid-template-columns: 1fr;
  }

  .deck {
    padding: 1.2rem;
  }

  .slide {
    min-height: 58vh;
  }
}
