:root {
  --night: #0a0a0c;
  --charcoal: #121218;
  --gold: #c9a962;
  --gold-dim: #8a743f;
  --ivory: #f5f0e8;
  --danger: #f87171;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ivory);
  background: var(--night);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--ivory) 1px, transparent 1px),
    linear-gradient(90deg, var(--ivory) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 0;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
}

::selection {
  background: rgb(201 169 98 / 0.35);
  color: #fff;
}

/* ——— Layout ——— */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .wrap {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .wrap {
    padding-inline: 2rem;
  }
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-muted {
  background: rgb(18 18 24 / 0.75);
  border-block: 1px solid rgb(255 255 255 / 0.08);
}

.small-label {
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.06;
  margin: 0.45em 0 0;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0.35em 0 0;
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.65rem;
  margin: 0.35em 0 0;
}

.lead {
  font-size: 1.06rem;
  color: rgb(245 240 232 / 0.7);
}

.muted {
  color: rgb(245 240 232 / 0.62);
  font-size: 0.9rem;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
    backdrop-filter 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-solid {
  background: rgb(18 18 24 / 0.94);
  backdrop-filter: blur(12px);
  border-bottom-color: rgb(255 255 255 / 0.1);
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.35);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.95rem;
}

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: transform 0.3s var(--ease);
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ivory);
}

.logo-year {
  font-size: 0.55rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  border-radius: 4px;
  color: rgb(245 240 232 / 0.65);
  transition: all 0.3s var(--ease);
  border-bottom: 2px solid transparent;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--gold);
  background: rgb(201 169 98 / 0.08);
  border-bottom-color: var(--gold);
}

.btn-gold-full {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--gold);
  color: var(--night);
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 12px rgba(201, 169, 98, 0.2);
  min-height: 44px; /* iOS touch target minimum */
}

.btn-gold-full:hover {
  background: var(--ivory);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201, 169, 98, 0.3);
}

.btn-gold-full:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(201, 169, 98, 0.2);
}

@media (min-width: 640px) {
  .btn-gold-full {
    display: inline-flex;
  }
}

.btn-nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 4px;
  border: 1px solid rgb(255 255 255 / 0.15);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s var(--ease);
}

.btn-nav-toggle:hover {
  border-color: rgb(201 169 98 / 0.48);
  background: rgb(201 169 98 / 0.05);
}

@media (min-width: 1024px) {
  .btn-nav-toggle {
    display: none;
  }
}

.btn-nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--ivory);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.site-header.mobile-open .btn-nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.mobile-open .btn-nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.mobile-open .btn-nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-header .btn-nav-toggle span:nth-child(2) {
  margin: 0;
}

@media (min-width: 1024px) {
  .btn-nav-toggle {
    display: none;
  }
}

.nav-mobile-panel {
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  background: rgb(18 18 24 / 0.98);
  backdrop-filter: blur(14px);
  transition: max-height 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.mobile-open .nav-mobile-panel {
  max-height: 560px;
  border-top-color: rgb(255 255 255 / 0.1);
}

@media (min-width: 1024px) {
  .nav-mobile-panel {
    display: none;
  }
}

.nav-mobile {
  padding: 1.25rem 1rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-mobile a {
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.85rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  color: rgb(245 240 232 / 0.65);
  transition: all 0.3s var(--ease);
  min-height: 44px; /* iOS touch target minimum */
  display: flex;
  align-items: center;
}

.nav-mobile a:hover,
.nav-mobile a[aria-current="page"] {
  color: var(--gold);
  background: rgb(255 255 255 / 0.08);
}

.mobile-cta-wrap {
  padding: 1rem;
  padding-top: 0;
}

.mobile-cta {
  display: block;
  text-align: center;
  padding: 0.95rem;
  border-radius: 6px;
  background: var(--gold);
  color: var(--night);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 12px rgba(201, 169, 98, 0.2);
  cursor: pointer;
  min-height: 44px; /* iOS touch target minimum */
}

.mobile-cta:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(201, 169, 98, 0.2);
}

/* ——— Buttons ——— */
.btn-gold-inline {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.92rem 1.75rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
  border: none;
  background: var(--gold);
  color: var(--night);
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 12px rgba(201, 169, 98, 0.2);
}

.btn-gold-inline:hover {
  background: var(--ivory);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201, 169, 98, 0.3);
}

.btn-gold-inline:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(201, 169, 98, 0.2);
}

.btn-outline {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.92rem 1.75rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
  border: 2px solid rgb(201 169 98 / 0.48);
  color: var(--ivory);
  background: transparent;
  transition: all 0.3s var(--ease);
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgb(201 169 98 / 0.1);
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: translateY(0);
}

.link-inline-gold {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--gold);
  transition: all 0.2s var(--ease);
  border-bottom: 1px solid transparent;
}

.link-inline-gold:hover {
  color: var(--ivory);
  border-bottom-color: var(--gold);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding-block: clamp(5rem, 12vw, 8rem);
  padding-top: 6.5rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.43);
}

.hero-bg-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(85%, 820px);
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 1;
  filter: brightness(1.0) contrast(1.1) saturate(1.1);
  pointer-events: none;
  user-select: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--night) 0%, rgb(10 10 12 / 0.65) 45%, transparent 100%),
    linear-gradient(
      to right,
      rgb(10 10 12 / 0.82) 0%,
      transparent 45%,
      rgb(10 10 12 / 0.35) 100%
    );
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .hero-inner {
    align-items: flex-end;
    grid-template-columns: 1fr minmax(380px, 480px);
  }
}

.tagline-accent {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-style: italic;
  margin-top: 0.35rem;
  color: rgb(245 240 232 / 0.88);
}

.hero-panel {
  border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(0 0 0 / 0.35);
  backdrop-filter: blur(12px);
  padding: 2rem;
}

@media (min-width: 1024px) {
  .hero-panel {
    padding: 2.5rem 3rem;
  }
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* ——— Countdown ——— */
.countdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  width: 100%;
}

.countdown-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgb(201 169 98 / 0.24);
  background: rgb(0 0 0 / 0.35);
  backdrop-filter: blur(12px);
}

.countdown-num {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  margin-top: 0;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.countdown-preface {
  margin: 0 0 1.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.55;
  color: rgb(245 240 232 / 0.82);
  max-width: 22rem;
  margin-inline: auto;
}

.aspect-video-wrap--dark {
  background: rgb(0 0 0 / 0.65);
}

.aspect-video--contain {
  object-fit: contain;
  max-height: min(70vh, 720px);
  margin-inline: auto;
}

.hero-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.88rem;
  color: rgb(245 240 232 / 0.85);
}

.hero-dl dt {
  color: rgb(201 169 98 / 0.78);
}

.footer-staff-link {
  color: inherit;
  opacity: 0.55;
  text-decoration: none;
  margin-left: 0.35rem;
  letter-spacing: 0.06em;
  font-size: 0.82em;
}

.footer-staff-link:hover {
  opacity: 1;
  color: var(--gold);
}

/* ——— Admin dashboard ——— */
.admin-wrap {
  max-width: 72rem;
  margin-inline: auto;
}

.admin-login-card {
  max-width: 26rem;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid rgb(201 169 98 / 0.28);
  background: rgb(0 0 0 / 0.35);
}

.admin-note {
  font-size: 0.75rem;
  color: rgb(245 240 232 / 0.55);
  margin-top: 1rem;
  line-height: 1.5;
}

.admin-section {
  margin-top: 3rem;
}

.admin-section h2 {
  margin-bottom: 1rem;
}

.admin-table-scroll {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 0.08);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.admin-table th,
.admin-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgb(255 255 255 / 0.07);
  vertical-align: top;
}

.admin-table th {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  background: rgb(0 0 0 / 0.45);
  white-space: nowrap;
}

.admin-table tbody tr:hover td {
  background: rgb(255 255 255 / 0.03);
}

.admin-empty {
  padding: 2rem;
  text-align: center;
  color: rgb(245 240 232 / 0.5);
  font-size: 0.9rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.admin-verify-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.admin-verify-link:hover {
  text-decoration: underline;
}

/* ——— Ticketing confirmation ——— */
.ticket-success-block {
  text-align: left;
}

.ticket-success-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

@media (min-width: 720px) {
  .ticket-success-grid {
    grid-template-columns: auto 1fr;
  }
}

.ticket-qr-side {
  text-align: center;
}

.ticket-qr-frame {
  display: inline-block;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgb(201 169 98 / 0.35);
  background: rgb(0 0 0 / 0.4);
}

.ticket-qr-img {
  display: block;
  border-radius: 6px;
}

.ticket-id-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  word-break: break-all;
  color: var(--gold);
  margin: 0;
}

.ticket-success-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.25rem;
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
}

.ticket-success-dl dt {
  color: rgb(201 169 98 / 0.75);
  margin: 0;
}

.ticket-success-dl dd {
  margin: 0;
  color: rgb(245 240 232 / 0.9);
}

/* ——— Ticket verify page ——— */
.verify-card {
  max-width: 32rem;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(0 0 0 / 0.35);
}

.verify-card h1 {
  font-size: 1.65rem;
  margin: 0 0 0.75rem;
}

.verify-card--ok {
  border-color: rgb(80 160 120 / 0.55);
  box-shadow: 0 0 0 1px rgb(80 160 120 / 0.12);
}

.verify-card--bad {
  border-color: rgb(180 80 80 / 0.45);
}

.verify-card--warn {
  border-color: rgb(201 169 98 / 0.4);
}

.verify-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.25rem;
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
}

.verify-dl dt {
  color: rgb(201 169 98 / 0.78);
  margin: 0;
}

.verify-dl dd {
  margin: 0;
}

/* ——— Cards & grids ——— */
.grid-4 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card-dark {
  border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(10 10 12 / 0.75);
  padding: 1.5rem;
  transition: all 0.3s var(--ease);
}

.card-dark:hover {
  border-color: rgb(201 169 98 / 0.45);
  background: rgb(10 10 12 / 0.85);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-dark .accent-line {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1rem;
}

.sponsor-logo {
  min-height: 7rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgb(255 240 248 / 0.1);
  background: linear-gradient(135deg, rgb(255 255 255 / 0.1), transparent);
  font-family: var(--font-display);
  font-size: 1rem;
  text-align: center;
  padding: 1rem;
  color: rgb(245 240 232 / 0.75);
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  background: var(--charcoal);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

@media (min-width: 980px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.footer-nav-sub {
  min-width: 150px;
}

.footer-nav-sub h4 {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

.footer-nav-sub ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav-sub li + li {
  margin-top: 0.48rem;
}

.footer-nav-sub a {
  font-size: 0.87rem;
  color: rgb(245 240 232 / 0.72);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav-sub a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding-top: 2rem;
  margin-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.09);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.72rem;
  color: rgb(245 240 232 / 0.42);
}

@media (min-width: 620px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ——— Forms ——— */
.page-hero-simple {
  padding-top: clamp(5.75rem, 12vw, 7rem);
}

.form-card {
  border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 0.12);
  background: rgb(18 18 24 / 0.55);
  backdrop-filter: blur(10px);
  padding: clamp(1.35rem, 4vw, 2.65rem);
  max-width: 720px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s var(--ease);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
}

.field label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgb(201 169 98 / 0.88);
  margin-bottom: 0.45rem;
}

.field label .req {
  color: rgb(251 146 146 / 0.82);
}

.input,
textarea,
select {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.78rem 0.95rem;
  border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(0 0 0 / 0.35);
  color: var(--ivory);
  outline: none;
  transition: all 0.3s var(--ease);
}

.input:hover,
textarea:hover,
select:hover {
  border-color: rgb(255 255 255 / 0.22);
  background: rgb(0 0 0 / 0.45);
}

.input:focus,
textarea:focus,
select:focus {
  border-color: rgb(201 169 98 / 0.65);
  background: rgb(0 0 0 / 0.5);
  box-shadow: 0 0 0 3px rgb(201 169 98 / 0.15);
}

.input::placeholder,
textarea::placeholder {
  color: rgb(245 240 232 / 0.28);
}

.field-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.73rem;
  color: rgb(245 240 232 / 0.42);
}

.field-error {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.73rem;
  color: rgb(251 146 146 / 0.95);
}

.field.is-invalid .input,
.field.is-invalid textarea,
.field.is-invalid select {
  border-color: rgb(248 113 113 / 0.58);
}

.field.is-invalid .field-error {
  display: block;
}

.field-row-2 {
  display: grid;
  gap: 1.85rem;
}

@media (min-width: 640px) {
  .field-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.checkbox-row label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  cursor: pointer;
  font-weight: normal;
  letter-spacing: normal;
  text-transform: none;
  font-size: 0.92rem;
  color: rgb(245 240 232 / 0.85);
}

.checkbox-row label strong {
  color: var(--ivory);
  display: block;
}

.checkbox-row span.sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.73rem;
  color: rgb(245 240 232 / 0.45);
}

.message-success {
  text-align: center;
  padding: clamp(4rem, 15vw, 7rem) 1rem;
  max-width: 38rem;
  margin-inline: auto;
}

.ticket-blocked-banner {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 8px;
  border: 1px solid rgb(201 169 98 / 0.45);
  background: rgb(40 28 12 / 0.55);
  color: rgb(245 240 232 / 0.95);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ——— Radio path ——— */
.path-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 760px) {
  .path-options {
    flex-direction: row;
  }
}

.path-card {
  flex: 1;
  cursor: pointer;
}

.path-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.path-card-inner {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.05rem;
  border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 0.12);
  background: rgb(10 10 12 / 0.45);
  transition: border-color 0.2s, background 0.2s;
  height: 100%;
}

.path-card:hover .path-card-inner {
  border-color: rgb(201 169 98 / 0.38);
}

.path-card input:focus-visible + .path-card-inner {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.path-card input:checked + .path-card-inner {
  border-color: rgb(201 169 98 / 0.65);
  background: rgb(255 255 255 / 0.06);
}

.path-card-title {
  display: block;
  font-weight: 600;
  color: var(--ivory);
  font-size: 0.95rem;
}

.path-card-meta {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.73rem;
  color: rgb(245 240 232 / 0.48);
  line-height: 1.5;
}

/* ——— Timeline ——— */
.timeline {
  position: relative;
  border-left: 1px solid rgb(255 255 255 / 0.13);
  padding-left: clamp(2rem, 4vw, 2.85rem);
  margin-left: 0.4rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: calc(-1px - (clamp(2rem, 4vw, 2.85rem) / 2));
  top: 0.38rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  box-shadow: 0 0 24px rgb(201 169 98 / 0.75);
}

.timeline-time {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ——— Gallery ——— */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 840px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-grid img {
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(16%);
}

.aspect-video-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.09);
}

.aspect-video {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 0;
  display: block;
}

/* ——— FAQ ——— */
.faq-section {
  max-width: 42rem;
  margin-inline: auto;
}

.faq-row {
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.faq-trigger {
  width: 100%;
  padding: 1.35rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.18rem;
  text-align: left;
  transition: color 0.2s var(--ease);
}

.faq-trigger:hover {
  color: var(--gold);
}

.faq-icon {
  font-size: 1.85rem;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-row.open .faq-icon {
  transform: rotate(45deg);
}

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s var(--ease);
}

.faq-row.open .faq-body {
  grid-template-rows: 1fr;
}

.faq-body-inner {
  overflow: hidden;
}

.faq-answer {
  padding-bottom: 1.65rem;
  font-size: 0.92rem;
  color: rgb(245 240 232 / 0.65);
  line-height: 1.62;
}

.faq-intro {
  max-width: 42rem;
  margin-inline: auto;
}

.border-y-faint {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

/* ——— Tickets ——— */
.ticket-grid {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 860px) {
  .ticket-grid {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  }
}

.tier-select {
  text-align: left;
  cursor: pointer;
}

.tier-card {
  height: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 7px;
  border: 1px solid rgb(255 255 255 / 0.13);
  background: rgb(0 0 0 / 0.28);
  transition: all 0.3s var(--ease);
}

.tier-select input:checked + .tier-card {
  border-color: rgb(201 169 98 / 0.65);
  background: rgb(201 169 98 / 0.08);
  box-shadow: 0 0 0 2px rgb(201 169 98 / 0.2);
}

.tier-select:hover .tier-card {
  border-color: rgb(255 255 255 / 0.22);
  background: rgb(0 0 0 / 0.38);
}
.tier-select:focus-within .tier-card {
  outline: 2px solid rgb(201 169 98 / 0.45);
  outline-offset: 3px;
}

.tier-muted {
  color: rgb(245 240 232 / 0.65);
}

/* ——— Judge cards ——— */
.judge-card {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(18 18 24 / 0.45);
}

.judge-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  filter: grayscale(38%) brightness(0.93);
}

/* ——— Page split ——— */
.split-2 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .split-2 {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 380px);
  }
}

/* Mobile-specific improvements */
@media (max-width: 639px) {
  /* Ensure proper text sizing on small screens */
  body {
    font-size: 14px;
  }

  /* Improve spacing on mobile */
  .section {
    padding-block: clamp(2.5rem, 6vw, 4rem);
  }

  /* Ensure buttons are properly sized for touch */
  button,
  .btn-gold-inline,
  .btn-outline,
  input,
  textarea,
  select {
    min-height: 44px;
  }

  /* Improve modal responsiveness */
  .vote-modal {
    max-height: 95vh;
    margin: 1rem;
  }

  .vote-modal-body {
    padding: 1rem;
  }

  /* Ensure partner cards stack properly on mobile */
  article {
    break-inside: avoid;
  }

  /* Improve grid layouts on mobile */
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Ensure images don't overflow */
  img {
    max-width: 100%;
    height: auto;
  }
}
