:root {
  --bg: #1a1a1a;
  --text: #e9e7e2;
  --muted: #c9c5bd;
  --cone: #c49b68;
  --cone-line: #8f6b3f;
  --scoop-top: #f593b3;
  --scoop-middle: #a8f0d1;
  --scoop-base: #f2d7a1;
  --scoop-vanilla: #f7f2e8;
  --border: #dcd7cf;
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inconsolata", monospace;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  margin-top: 1rem;
}

.illustration {
  width: min(72vw, 360px);
  filter: drop-shadow(0 18px 40px var(--shadow));
  animation: float 6s ease-in-out infinite;
}

.ice-cream {
  width: 100%;
  height: auto;
  overflow: visible;
}

.cone-fill {
  fill: var(--cone);
  stroke: var(--cone-line);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cone-line {
  fill: none;
  stroke: var(--border);
  stroke-width: 3;
  stroke-dasharray: 9 6 12 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}

.ice-cream .scoops,
.ice-cream .drips {
  transform-box: fill-box;
  transform-origin: center;
}

.scoop-outline {
  fill: var(--scoop-vanilla);
  stroke: none;
  opacity: 0.95;
}

.scoop {
  stroke: none;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.25));
}

.scoop-left {
  fill: var(--scoop-top);
}

.scoop-right {
  fill: #a06a3d;
}

.scoops {
  animation: scoopsFloat 2.2s ease-in-out infinite;
}

.drip-set {
  --drip-duration: 1.8s;
  --drip-delay: 0s;
  --fall-distance: 60px;
  transform-box: fill-box;
  transform-origin: center top;
  color: var(--scoop-top);
}

.drip-set.drip-brown {
  color: #a06a3d;
}

.drip-line {
  stroke: currentColor;
  stroke-width: 6;
  stroke-linecap: round;
  animation: dripLineFall var(--drip-duration) ease-in-out infinite;
  animation-delay: var(--drip-delay);
}

.drip-set:nth-of-type(1) { --drip-delay: 0s; }
.drip-set:nth-of-type(2) { --drip-delay: 0.28s; }
.drip-set:nth-of-type(3) { --drip-delay: 0.58s; }
.drip-set:nth-of-type(4) { --drip-delay: 0.2s; }
.drip-set:nth-of-type(5) { --drip-delay: 0.46s; }

h1, h2 {
  font-family: "Michroma", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

h1 {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
}

h2 {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--border);
  margin-bottom: 8px;
}

.cta-row {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 14px 0 6px;
}

.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.nav-button {
  padding: 12px 18px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 200ms ease, box-shadow 200ms ease;
  display: inline-block;
}

.cta-button {
  width: min(86vw, 360px);
  padding: 14px 26px;
  border-width: 2px;
  font-family: "Michroma", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: #15120f;
  background: linear-gradient(135deg, var(--scoop-top), var(--scoop-base));
  border-color: #f4efe6;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.45);
}

.nav-button:hover,
.nav-button:focus-visible {
  color: #111;
  background: var(--border);
  border-color: #f4f0e7;
  outline: none;
}

.cta-button:hover,
.cta-button:focus-visible {
  color: #0f0d0b;
  background: linear-gradient(135deg, var(--scoop-base), #fff1d4);
  border-color: #fff4e7;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.55);
  transform: translateY(-2px);
}

.content {
  display: grid;
  gap: 32px;
}

section {
  padding: 4px 2px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 720px;
}

section p {
  margin: 0;
  font-size: 1rem;
}

.plot-page {
  gap: 32px;
}

.plot-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.plot-title {
  letter-spacing: 0.18em;
}

.back-link {
  align-self: center;
  padding: 10px 16px;
}

.plot-content {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--text);
  font-size: 1.02rem;
}

.cast-page {
  gap: 32px;
}

.cast-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cast-title {
  letter-spacing: 0.18em;
}

.cast-entries {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
}

.cast-bio {
  border: 1px solid var(--border);
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.cast-bio.is-open {
  background: rgba(255, 255, 255, 0.05);
  border-color: #f1ece3;
}

.cast-bio h3 {
  font-family: "Michroma", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cast-role {
  color: var(--muted);
  font-family: "Inconsolata", monospace;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}

.bio-preview {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.bio-full {
  display: none;
  color: var(--muted);
  line-height: 1.75;
}

.cast-bio.is-open .bio-full {
  display: block;
}

.cast-bio.is-open .bio-preview {
  display: none;
}

.bio-full p {
  margin: 0 0 12px;
}

.bio-full p:last-of-type {
  margin-bottom: 0;
}

.bio-toggle-row {
  margin-top: 12px;
}

.bio-toggle {
  color: var(--border);
  text-decoration: none;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
}

.bio-toggle:hover,
.bio-toggle:focus-visible {
  color: var(--text);
}

.objectives-page {
  gap: 28px;
}

.objectives-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.objectives-title {
  letter-spacing: 0.18em;
}

.objectives-intro,
.objectives-outro {
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.objectives-intro p,
.objectives-outro p {
  margin: 0;
}

.objectives-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
}

.objective-card {
  border: 1px solid var(--border);
  padding: 14px 16px 16px 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.objective-card h3 {
  font-family: "Michroma", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.objective-card p {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
  font-size: 1rem;
}

.schedule-page {
  gap: 32px;
}

.schedule-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.schedule-title {
  letter-spacing: 0.18em;
}

.schedule-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  color: var(--text);
}

.schedule-coming-soon {
  margin: 0;
  font-family: "Michroma", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.schedule-placeholder {
  border: 1px dashed var(--border);
  padding: 14px 16px;
  color: var(--muted);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.contact-block {
  border: 1px solid var(--border);
  padding: 16px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-block h2 {
  font-family: "Michroma", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.contact-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-button {
  padding: 10px 16px;
}

.script-page {
  gap: 32px;
}

.script-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.script-title {
  letter-spacing: 0.18em;
}

.script-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  color: var(--text);
}

.script-note {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.script-password {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
}

.script-password label {
  font-family: "Michroma", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--text);
}

.script-password input {
  padding: 10px 12px;
  background: #0f0f0f;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: "Inconsolata", monospace;
  font-size: 1rem;
}

.script-password input:focus {
  outline: 2px solid var(--border);
}

.script-submit {
  justify-self: start;
  padding: 10px 18px;
}

.script-download {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.download-button {
  padding: 12px 20px;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}

@media (min-width: 600px) {
  .plot-page {
    gap: 44px;
  }

  .plot-header {
    gap: 20px;
  }

  .cast-page {
    gap: 44px;
  }

  .cast-header {
    gap: 20px;
  }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@keyframes scoopsFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@keyframes dripLineFall {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(var(--fall-distance)); opacity: 1; }
  86% { transform: translateY(var(--fall-distance)); opacity: 1; }
  100% { transform: translateY(var(--fall-distance)); opacity: 0; }
}

@media (min-width: 900px) {
  .page {
    padding: 48px;
    gap: 52px;
  }

  .nav-button {
    font-size: 0.9rem;
  }

  .content {
    gap: 42px;
  }
}
