@tailwind base;
@tailwind components;
@tailwind utilities;

/* Self-hosted Web Fonts with font-display: swap */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bebas-neue-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/roboto-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/roboto-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/roboto-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/roboto-900.woff2') format('woff2');
}

:root {
  --ink: #f2f2f2;
  --paper: #15131b;
  --surface: #211d29;
  --pink: #e585ff;
  --blue: #3ebcff;
  --coral: #ff673e;
  --yellow: #ffd447;
  --white: #fff;
  --line: #49404e;
  --shadow: 0 18px 44px rgba(0, 0, 0, .28);
  --nav: #413e4a;
  --logo-accent: #ffd447;
}

[data-theme="light"] {
  --ink: #413e4a;
  --paper: #f2f2f2;
  --surface: #fff;
  --line: #d9cbd8;
  --shadow: 0 18px 44px rgba(65, 62, 74, .14);
  --nav: rgba(242, 242, 242, .96);
  --logo-accent: #e44e2c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Roboto, Arial, sans-serif;
  line-height: 1.55;
  transition: background .25s, color .25s;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  outline-offset: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
}

.topbar {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 5vw;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 5vw;
  gap: 24px;
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 190px;
  color: var(--ink);
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: .86;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-primary {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 32px;
  letter-spacing: .035em;
  white-space: nowrap;
}

.brand-secondary {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 16px;
  letter-spacing: .18em;
  color: var(--logo-accent);
  margin-top: 7px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.nav-links a:hover {
  color: var(--coral);
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  font-size: 25px;
  color: var(--ink);
  min-width: 44px;
  min-height: 44px;
}

.theme-toggle {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
}

.theme-toggle .mode-icon {
  font-size: 16px;
  line-height: 1;
}

.theme-toggle .mode-icon[hidden] {
  display: none;
}

.theme-toggle:hover {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-color: var(--ink);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  width: 100%;
  height: 4px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--coral), var(--yellow));
  transform-origin: left center;
}

.hero {
  min-height: 700px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--hero-scale, 1));
  opacity: var(--hero-opacity, 1);
  will-change: transform, opacity;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(65, 62, 74, .84), rgba(65, 62, 74, .18));
  z-index: 1;
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--hero-darkness, 0));
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1100px, 90%);
  color: #fff;
  padding: 95px 0 120px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 12px;
}

.hero h1,
.section-title {
  font-family: 'Bebas Neue', Impact, sans-serif;
  letter-spacing: .02em;
  font-weight: 400;
  line-height: .9;
  margin: 0;
}

.hero h1 {
  font-size: clamp(64px, 10.5vw, 150px);
  max-width: none;
  white-space: normal;
}

.hero h1 .hero-line {
  display: block;
  white-space: nowrap;
}

.hero-date {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 900;
  margin: 22px 0 8px;
}

.hero-copy {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 900;
  line-height: 1.12;
  max-width: none;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 25px;
  background: var(--coral);
  color: #211d29;
  border: 2px solid var(--coral);
  border-radius: 3px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: 13px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: .2s transform, .2s background;
}

.button:hover {
  background: #e44e2c;
  transform: translateY(-2px);
  color: #fff;
}

.button.blue {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--ink);
}

.button.blue:hover {
  background: #2cb2f5;
  color: #fff;
}

.back-to-top {
  position: fixed;
  right: 12px;
  bottom: 96px;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--coral);
  color: #211d29;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .24);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s, visibility .2s, transform .2s, background .2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #e44e2c;
  color: #fff;
}

.back-to-top:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, 90%);
  margin: auto;
}

.section {
  padding: 105px 0;
}

.section-kicker {
  color: #c56adc;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .18em;
  font-size: 13px;
}

.section-title {
  font-size: clamp(58px, 8vw, 104px);
  color: var(--ink);
}

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  overflow: visible;
}

.intro h2 {
  margin: 5px 0 20px;
}

.intro p {
  font-size: 18px;
  max-width: 520px;
}

.photo-frame {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: calc(100% + max(5vw, (100vw - 1180px) / 2));
  margin-right: calc(-1 * max(5vw, (100vw - 1180px) / 2));
  transform: translate3d(0, var(--ride-shift, 0px), 0) rotate(var(--ride-tilt, 0deg)) scale(var(--ride-scale, 1));
  transform-origin: right center;
  will-change: transform;
}

.photo-frame:before {
  display: none;
}

.photo-frame img {
  position: relative;
  z-index: 31;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}

.reveal.is-revealed {
  opacity: 1;
  transform: none;
}

.reveal-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}

.reveal-group.is-revealed > * {
  opacity: 1;
  transform: none;
}

.reveal-group.is-revealed > *:nth-child(2) {
  transition-delay: .09s;
}

.reveal-group.is-revealed > *:nth-child(3) {
  transition-delay: .18s;
}

.reveal-group.is-revealed > *:nth-child(4) {
  transition-delay: .27s;
}

.ticket-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--yellow);
  color: #413e4a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .25s, visibility .25s, transform .25s;
}

.ticket-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.ticket-float:hover {
  color: #413e4a;
  transform: translateY(-2px);
}

.marquee-stack {
  position: relative;
  z-index: 40;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  padding: 18px 0;
}

.marquee-line {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(56px, 9.5vw, 132px);
  line-height: .78;
  letter-spacing: .015em;
  padding: 8px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  animation: marquee-left 26s linear infinite;
  will-change: transform;
}

.marquee-line:nth-child(2) {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--pink);
  animation-name: marquee-right;
  animation-duration: 22s;
}

.marquee-line:nth-child(3) {
  color: var(--blue);
  animation-duration: 30s;
}

.marquee-line span {
  padding-right: 56px;
}

.marquee-line span:after {
  content: '✦';
  font-family: Roboto, sans-serif;
  font-size: .25em;
  vertical-align: middle;
  margin-left: 56px;
  color: var(--coral);
}

@keyframes marquee-left {
  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.ride-band {
  min-height: 460px;
  background: linear-gradient(90deg, rgba(21, 19, 27, .84), rgba(21, 19, 27, .38)), url('../images/freak-out.webp') center/cover fixed;
  display: flex;
  align-items: center;
  color: #fff;
}

.ride-band.alt {
  background-image: linear-gradient(90deg, rgba(21, 19, 27, .82), rgba(21, 19, 27, .36)), url('../images/orbiter.webp');
}

.ride-band h2 {
  font-size: clamp(56px, 8vw, 110px);
  max-width: 680px;
  color: #fff;
}

.ride-band p {
  font-size: 18px;
  max-width: 500px;
}

.ride-band .age-copy {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 900;
  line-height: 1.2;
  max-width: none;
  white-space: nowrap;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.feature {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 215px;
  box-shadow: var(--shadow);
}

.feature:nth-child(2) {
  background: var(--blue);
  color: #30293a;
}

.feature:nth-child(3) {
  background: var(--yellow);
  color: #30293a;
}

.feature-icon {
  font-size: 32px;
  margin-left: 16px;
  color: currentColor;
  line-height: 1;
  display: inline-block;
  flex: 0 0 auto;
}

.feature h3 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 42px;
  font-weight: 400;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: currentColor;
}

.feature p {
  margin: 0;
}

.countdown {
  background: #2b2433 !important;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 96px 0;
  text-align: center;
}

.countdown .time strong,
.countdown .time span {
  color: var(--ink);
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 42px auto 0;
  max-width: 880px;
}

.time {
  padding: 8px 24px;
  background: transparent;
  border: 0;
  box-shadow: none;
  min-width: 0;
}

.time strong {
  display: block;
  font-family: 'Bebas Neue', Impact, sans-serif;
  color: var(--ink);
  font-size: clamp(72px, 8vw, 112px);
  font-weight: 400;
  line-height: .82;
  letter-spacing: .02em;
  white-space: nowrap;
}

.time span {
  display: block;
  margin-top: 16px;
  color: var(--ink);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.schedule {
  background: var(--blue);
  color: #211d29;
}

.schedule .section-title,
.schedule .section-kicker {
  color: #211d29;
}

.schedule-layout {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 70px;
  align-items: start;
}

.schedule h2 {
  margin: 5px 0;
}

.schedule-list {
  border-top: 0;
}

.schedule-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-bottom: 1px solid rgba(65, 62, 74, .35);
  padding: 19px 0;
  font-weight: 700;
}

.schedule-row span:last-child {
  text-align: right;
}

.tickets-section {
  background: var(--paper);
  color: var(--ink);
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 42px;
}

.ticket {
  background: var(--surface);
  padding: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  color: #413e4a;
}

.ticket:nth-child(1) {
  background: var(--pink);
}

.ticket:nth-child(2) {
  background: var(--yellow);
}

.ticket:nth-child(3) {
  background: var(--blue);
}

.ticket h3 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  margin: 0 0 14px;
}

.price {
  font-size: 34px;
  font-weight: 900;
  margin: auto 0 5px;
}

.price small {
  font-size: .45em;
  letter-spacing: .04em;
}

.muted {
  font-size: 18px;
  line-height: 1.4;
  color: #6d6974;
}

.ticket .muted {
  color: rgba(65, 62, 74, .82);
}

.ticket .button {
  margin-top: 18px;
  align-self: flex-start;
  box-shadow: none;
}

.ticket .button.is-disabled {
  background: #77717d;
  border-color: #77717d;
  color: #fff;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}

#location {
  background: #191722 !important;
}

.location img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  box-shadow: 12px 12px 0 var(--coral);
}

.location h2 {
  margin: 6px 0 16px;
}

.address {
  font-size: 21px;
  font-weight: 700;
}

.entertainment {
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.entertainment .section-title {
  color: var(--ink);
}

.entertainment p {
  font-size: 19px;
  max-width: 540px;
  margin: 18px auto 0;
}

.quotes {
  background: #25202f;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.quote {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 7px solid var(--coral);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.quote:nth-child(2) {
  border-top-color: var(--blue);
}

.quote:nth-child(3) {
  border-top-color: var(--pink);
}

.quote:nth-child(4) {
  border-top-color: var(--yellow);
}

.quote p {
  font-size: 17px;
  line-height: 1.45;
  margin: 0 0 26px;
}

.quote strong {
  display: block;
  color: var(--ink);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .12em;
}

.contact {
  background: #30293a;
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact .section-title {
  color: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 80px;
}

.vendor-links {
  display: grid;
  gap: 0;
  margin-top: 25px;
}

.vendor-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  background: transparent;
  border-top: 1px solid var(--line);
  font-weight: 900;
  transition: color .2s, padding .2s;
}

.vendor-links a:last-child {
  border-bottom: 1px solid var(--line);
}

.vendor-links a::after {
  content: 'Download ↗';
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral);
  white-space: nowrap;
}

.vendor-links a:hover {
  color: var(--coral);
  padding-left: 8px;
}

.form {
  display: grid;
  gap: 14px;
}

.field-label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 3px;
}

.form input,
.form textarea {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 15px;
  color: var(--ink);
  border-radius: 0;
}

.form input[name="website"] {
  position: absolute;
  left: -9999px;
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--ink);
  opacity: .62;
}

.form textarea {
  min-height: 130px;
  resize: vertical;
}

.form button {
  justify-self: start;
  cursor: pointer;
}

.success {
  display: none;
  font-weight: 900;
  margin-top: 12px;
}

.closing {
  position: relative;
  background-color: var(--coral);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='2.5' fill='%23ffffff' fill-opacity='0.16'/%3E%3C/svg%3E"), linear-gradient(135deg, #ff673e 0%, #f05a38 50%, #e14622 100%);
  background-size: 36px 36px, 100% 100%;
  color: #fff;
  text-align: center;
  padding: 120px 0 110px;
  isolation: isolate;
  overflow: hidden;
}

.closing:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 212, 71, .22), transparent 70%), linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .18) 100%);
}

.closing:after {
  content: '✦  ✦  ✦  ✦  ✦';
  position: absolute;
  top: 22px;
  left: 0;
  width: 100%;
  color: var(--yellow);
  font-size: clamp(16px, 2.5vw, 28px);
  letter-spacing: 1.2em;
  text-align: center;
  opacity: .7;
  z-index: -1;
}

.closing .wrap {
  position: relative;
  z-index: 1;
}

.closing .section-title {
  color: #fff;
}

.closing-title-rail {
  width: max-content;
  display: flex;
  white-space: nowrap;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(76px, 13vw, 190px);
  line-height: .8;
  letter-spacing: .01em;
  margin: 0 auto 44px;
  text-shadow: 5px 5px 0 rgba(65, 62, 74, .5);
  animation: marquee-left 24s linear infinite;
}

.closing-title-rail span {
  padding-right: 70px;
}

.closing-copy-card {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 0 20px;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: clamp(19px, 2.1vw, 27px);
  line-height: 1.45;
}

.closing-copy-card strong {
  display: block;
  color: var(--yellow);
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: .03em;
  margin-bottom: 10px;
}

.closing-copy-card p {
  max-width: none;
  margin: 0;
}

.closing .button {
  background: #fff;
  color: #211d29;
  border-color: #fff;
  box-shadow: 5px 5px 0 var(--ink);
}

.closing-cta-note {
  display: block;
  margin-top: 24px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}

body.page-404 {
  background-image: linear-gradient(135deg, rgba(21, 19, 27, 0.45), rgba(21, 19, 27, 0.25)), url('../images/404.webp');
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
}

[data-theme="light"] body.page-404 {
  background-image: linear-gradient(135deg, rgba(247, 244, 247, 0.55), rgba(247, 244, 247, 0.35)), url('../images/404.webp');
}

/* 404 Main Stage Content */
.main-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 5vw;
  position: relative;
  z-index: 2;
}

.error-card {
  background: rgba(33, 29, 41, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: min(720px, 100%);
  padding: 50px 40px;
  text-align: center;
  border-radius: 8px;
  position: relative;
}

[data-theme="light"] .error-card {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(65, 62, 74, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.fun-badge {
  display: inline-block;
  background: var(--pink);
  color: #211d29;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.error-code {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(90px, 19vw, 160px);
  line-height: .85;
  letter-spacing: .02em;
  color: var(--yellow);
  margin: 0 0 10px;
  text-shadow: 4px 4px 0 var(--coral);
  animation: thrill-spin 4s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes thrill-spin {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(-3.5deg) scale(1.03);
  }
  75% {
    transform: rotate(3.5deg) scale(0.97);
  }
}

.error-title {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(34px, 6.5vw, 52px);
  line-height: .95;
  margin: 0 0 16px;
  color: var(--ink);
  letter-spacing: .02em;
}

.error-desc {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  opacity: .9;
  max-width: 530px;
  margin: 0 auto 28px;
}

.countdown-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed var(--yellow);
  border-radius: 6px;
  padding: 14px 22px;
  margin: 0 auto 30px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

[data-theme="light"] .countdown-box {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--coral);
}

.timer-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  color: #211d29;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

footer {
  background: #413e4a;
  color: #f2f2f2;
  padding: 50px 0 25px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
}

.footer-brand {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 42px;
  line-height: 1;
}

footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: .86;
  text-transform: uppercase;
  color: #f2f2f2;
}

footer .footer-brand .brand-primary {
  font-size: 32px;
}

footer .footer-brand .brand-secondary {
  font-size: 16px;
  color: var(--yellow);
  margin-top: 7px;
}

.footer-share {
  font-size: 17px;
  line-height: 1.45;
}

.social {
  display: flex;
  gap: 20px;
  font-weight: 700;
  align-items: center;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(242, 242, 242, .45);
  border-radius: 50%;
  font-size: 20px;
  transition: background .2s, color .2s, transform .2s;
}

.social a:hover {
  background: var(--yellow);
  color: #413e4a;
  transform: translateY(-2px);
}

.hashtag-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 3px;
}

.hashtag-link:hover {
  color: var(--yellow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.copyright {
  font-size: 12px;
  color: #bcb6c4;
  margin-top: 35px;
}

/* Light Theme Overrides */
[data-theme="light"] body {
  background: #f7f4f7;
  color: #413e4a;
}

[data-theme="light"] .nav {
  background: rgba(255, 255, 255, .94);
}

[data-theme="light"] .marquee-stack {
  background: #f7f4f7;
}

[data-theme="light"] #festival {
  background: #f7f4f7;
}

[data-theme="light"] .countdown {
  background: #ebe7ee !important;
  color: #413e4a;
}

[data-theme="light"] .countdown .section-title,
[data-theme="light"] .countdown .time strong,
[data-theme="light"] .countdown .time span {
  color: #413e4a;
}

[data-theme="light"] #location {
  background: #edf3f5 !important;
  color: #413e4a;
}

[data-theme="light"] .tickets-section {
  background: #f7f4f7;
  color: #413e4a;
}

[data-theme="light"] .quotes {
  background: #e9e5ee;
  color: #413e4a;
}

[data-theme="light"] .contact {
  background: #f1edf3;
  color: #413e4a;
}

[data-theme="light"] .entertainment {
  background: #e8e2eb;
  color: #413e4a;
}

[data-theme="light"] .entertainment .section-title {
  color: #413e4a;
}

[data-theme="light"] .feature,
[data-theme="light"] .quote,
[data-theme="light"] .form input,
[data-theme="light"] .form textarea {
  background: #fff;
  color: #413e4a;
}

[data-theme="light"] .feature:nth-child(2) {
  background: #9bddff;
}

[data-theme="light"] .feature:nth-child(3) {
  background: #ffe68a;
}

[data-theme="light"] .ticket:nth-child(1) {
  background: #efc0fb;
}

[data-theme="light"] .ticket:nth-child(2) {
  background: #ffe68a;
}

[data-theme="light"] .ticket:nth-child(3) {
  background: #9bddff;
}

[data-theme="light"] .section-kicker {
  color: #84359a;
}

[data-theme="light"] .muted {
  color: #5b5661;
}

[data-theme="light"] .form input::placeholder,
[data-theme="light"] .form textarea::placeholder {
  color: #6c6670;
}

[data-theme="light"] footer {
  background: #35323e;
  color: #f7f4f7;
}

/* Responsive & Media Queries */
@media(min-width:801px) {
  .photo-frame {
    width: min(calc(100% + max(5vw, (100vw - 1180px) / 2)), 900px);
  }

  .ride-band {
    min-height: 560px;
    padding: 96px 0;
  }

  .hero {
    min-height: clamp(800px, 88vh, 1000px);
  }

  .hero:before {
    background: linear-gradient(110deg, rgba(21, 19, 27, .92), rgba(21, 19, 27, .62) 48%, rgba(21, 19, 27, .3));
  }

  .hero:after {
    background: rgba(0, 0, 0, var(--hero-darkness, 0));
  }
}

@media(max-width:800px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 69px;
    left: 0;
    right: 0;
    background: var(--nav);
    padding: 18px 5vw;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .brand {
    min-width: 0;
  }

  .brand-primary {
    font-size: 28px;
  }

  .brand-secondary {
    font-size: 14px;
    margin-top: 6px;
  }

  .hero {
    min-height: 650px;
  }

  .hero:before {
    background: linear-gradient(110deg, rgba(21, 19, 27, .92), rgba(21, 19, 27, .62) 48%, rgba(21, 19, 27, .3));
  }

  .hero:after {
    background: rgba(0, 0, 0, var(--hero-darkness, 0));
  }

  .hero h1 {
    font-size: clamp(52px, 12vw, 96px);
  }

  .hero-copy {
    white-space: normal;
  }

  .intro,
  .schedule-layout,
  .location,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .feature-grid,
  .ticket-grid {
    grid-template-columns: 1fr;
  }

  .quote-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 75px 0;
  }

  .ride-band {
    background-attachment: scroll;
  }

  .ride-band .age-copy {
    white-space: normal;
  }

  .footer-inner {
    display: block;
  }

  .social {
    margin-top: 25px;
  }

  body.page-404 {
    background-attachment: scroll;
  }

  .error-card {
    padding: 40px 24px;
  }

  .ticket-float {
    right: 12px;
    bottom: 18px;
    padding: 11px 14px;
  }

  .back-to-top {
    bottom: 78px;
  }

  .schedule-list {
    border-top: 2px solid #211d29;
  }

  .marquee-stack {
    padding: 12px 0;
  }

  .marquee-line {
    font-size: clamp(52px, 15vw, 88px);
    padding: 9px 0;
  }

  .marquee-line span {
    padding-right: 38px;
  }

  .marquee-line span:after {
    margin-left: 38px;
  }

  .theme-toggle {
    align-self: flex-start;
  }

  .countdown {
    padding: 76px 0;
  }

  .timer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 32px;
    width: 100%;
    max-width: none;
  }

  .time {
    padding: 8px 0;
    min-width: 0;
  }

  .time strong {
    font-size: clamp(34px, 10vw, 80px);
    letter-spacing: 0;
  }

  .time span {
    font-size: clamp(8px, 2.6vw, 11px);
    margin-top: 13px;
    letter-spacing: .02em;
  }

  .photo-frame {
    right: 0;
    width: 100%;
    margin-right: 0;
    z-index: 1;
  }

  .photo-frame img {
    width: 100%;
    height: auto;
  }
}

@media(max-width:480px) {
  .hero h1 {
    font-size: clamp(42px, 11.5vw, 76px);
  }

  .hero-content {
    padding-top: 55px;
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }

  .schedule-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .schedule-row span:last-child {
    text-align: left;
  }

  .topbar {
    font-size: 12px;
    padding: 9px 3vw;
    letter-spacing: .06em;
  }

  .section-title {
    font-size: 64px;
  }

  .closing-title-rail {
    font-size: 84px;
    margin-bottom: 30px;
  }

  .closing-title-rail span {
    padding-right: 42px;
  }

  .closing p {
    font-size: 21px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-group > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee-line,
  .closing-title-rail {
    animation: none;
  }

  .error-code {
    animation: none;
  }

  .hero-video {
    transform: none !important;
    opacity: 1 !important;
  }

  .ticket-float,
  .back-to-top {
    transition: none;
  }
}

