:root {
  --bg: #070d1c;
  --bg-2: #121a33;
  --panel: #15203d;
  --text: #f5f7ff;
  --muted: #a9b4d0;
  --pink: #b50818;
  --pink-dark: #8f0612;
  --yellow: #ffcc33;
  --line: rgba(255, 255, 255, 0.12);
  --ok: #2ecc71;
  --danger: #ff6b6b;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top right, rgba(181, 8, 24, 0.22), transparent 34%),
    radial-gradient(circle at 20% 30%, rgba(255, 204, 51, 0.12), transparent 28%),
    linear-gradient(180deg, #050914 0%, var(--bg) 40%, #0a1022 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header, .site-footer {
  padding: 1rem 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(7, 13, 28, 0.82);
  border-bottom: 1px solid var(--line);
}
.site-header--float {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: auto;
  padding: 0.75rem 0.85rem 0 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
  pointer-events: none;
}
.site-header--float .nav {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
  justify-content: flex-end;
}
.site-header--float .hamburger,
.site-header--float .nav-links,
.site-header--float .nav-backdrop {
  pointer-events: auto;
}
.site-header--float .nav-spacer {
  display: none;
}
.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.brand {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 1.6rem;
  color: var(--text);
  text-decoration: none;
}

/* Hamburger */
.hamburger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  display: inline-grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
body.nav-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}
body.nav-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 45;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.nav-backdrop[hidden] {
  display: none !important;
}
.nav-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

/* Public nav drawer */
.nav-links {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 86vw);
  height: 100vh;
  margin: 0;
  padding: 1rem 1rem 1.5rem;
  background: #0b1224;
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 50;
  transform: translateX(105%);
  transition: transform 0.22s ease;
}
.nav-links.is-open {
  transform: translateX(0);
}
.nav-links a {
  color: #c9d3ef;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.8rem 0.75rem;
  border-radius: 10px;
}
.nav-links a:hover {
  color: #fff;
  background: #17233f;
}
body.nav-open {
  overflow: hidden;
}

.hero {
  padding: 2.5rem 0 2rem;
  display: grid;
  gap: 1.5rem;
}
.hero-card {
  background: linear-gradient(160deg, rgba(21, 32, 61, 0.95), rgba(12, 18, 38, 0.95));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(232, 48, 112, 0.35), transparent 70%);
  pointer-events: none;
}
.kicker {
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  margin: 0.35rem 0;
  line-height: 1.05;
}
h1 { font-size: clamp(2.4rem, 8vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.lede { color: var(--muted); max-width: 36rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: #b50818;
  color: white;
  box-shadow: 0 10px 30px rgba(181, 8, 24, 0.4);
}
.btn-primary:hover { background: #8f0612; text-decoration: none; color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--yellow); color: var(--yellow); text-decoration: none; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

.panel {
  background: rgba(21, 32, 61, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1rem 0 1.5rem;
}
.meta { color: var(--muted); font-size: 0.95rem; }

.search-input, .form-control, select, textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0c1428;
  color: var(--text);
  padding: 0.75rem 1rem;
  font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
label { display: block; margin: 0.85rem 0 0.35rem; font-weight: 600; }
.help { color: var(--muted); font-size: 0.85rem; }
.error-text { color: var(--danger); font-size: 0.9rem; margin-top: 0.25rem; }
.alert {
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin: 1rem 0;
}
.alert-error { background: rgba(255, 107, 107, 0.12); border: 1px solid rgba(255, 107, 107, 0.35); color: #ffd0d0; }
.alert-success { background: rgba(46, 204, 113, 0.12); border: 1px solid rgba(46, 204, 113, 0.35); color: #c9ffe0; }

.college-list { display: grid; gap: 0.75rem; margin-top: 1rem; }
.college-item {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  width: 100%;
  text-align: left;
  background: #0c1428;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  color: var(--text);
  cursor: pointer;
}
.college-item:hover, .college-item.is-selected {
  border-color: var(--pink);
  box-shadow: inset 0 0 0 1px rgba(232, 48, 112, 0.4);
}
.college-logo, .rank-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: #1a2748;
  flex-shrink: 0;
}
.college-logo.placeholder, .rank-logo.placeholder {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--yellow);
}
.empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.rank-list { display: grid; gap: 0.7rem; }
.rank-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: #0c1428;
  border: 1px solid var(--line);
}
.rank-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(255, 204, 51, 0.12);
  color: var(--yellow);
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 204, 51, 0.15);
  color: var(--yellow);
}
.badge-final { background: rgba(46, 204, 113, 0.15); color: #7dffa8; }

/* Live leaderboard — branded BG + white panel */
body.is-leaderboard {
  background: #000;
  min-height: 100vh;
}
body.is-leaderboard .landing-main {
  min-height: 100vh;
}
.leaderboard-screen {
  position: relative;
  min-height: 100vh;
  width: min(480px, 100%);
  margin: 0 auto;
  background: #000 var(--leaderboard-bg) top center / 100% auto no-repeat;
  display: flex;
  flex-direction: column;
}
.leaderboard-hero {
  flex: 0 0 auto;
  width: 100%;
  height: min(42vh, 360px);
  pointer-events: none;
}
.leaderboard-panel {
  flex: 0 1 auto;
  width: calc(100% - 2rem);
  max-width: 420px;
  margin: -1.25rem auto 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.15rem 1.15rem;
  box-sizing: border-box;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
}
.leaderboard-meta {
  margin: 0;
  text-align: center;
  color: rgba(0, 0, 0, 0.45);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.leaderboard-filters .form-control {
  background: #f3f3f5;
  border-color: rgba(0, 0, 0, 0.12);
  color: #111;
}
body.is-leaderboard .badge {
  background: #fde8eb;
  color: #b50818;
  align-self: flex-start;
}
body.is-leaderboard .badge-final {
  background: #e8f8ef;
  color: #146c3a;
}
.leaderboard-list {
  margin-top: 0.15rem;
  max-height: min(58vh, 560px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.is-leaderboard .rank-row {
  background: #f3f3f5;
  border-color: rgba(0, 0, 0, 0.08);
  color: #111;
}
body.is-leaderboard .rank-row strong {
  color: #111;
}
body.is-leaderboard .rank-row .meta {
  color: rgba(0, 0, 0, 0.55);
}
body.is-leaderboard .rank-num {
  background: #fde8eb;
  color: #b50818;
}
body.is-leaderboard .rank-logo.placeholder {
  background: #e8e8ee;
  color: #b50818;
}
.rank-main {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
}
.rank-bar {
  height: 6px;
  background: #e4e4ea;
  border-radius: 999px;
  margin-top: 0.35rem;
  overflow: hidden;
  max-width: 220px;
}
.rank-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #b50818, #ffcc33);
  border-radius: 999px;
}
.leaderboard-empty {
  text-align: center;
  color: rgba(0, 0, 0, 0.55);
  padding: 1.25rem 0.5rem;
}
@media (max-width: 480px) {
  .leaderboard-hero {
    height: min(38vh, 300px);
  }
}

.check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.9rem 0;
}
.check input { margin-top: 0.25rem; }

.admin-body { background: #101522; color: #eef2ff; }
.admin-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  position: relative;
}
.admin-side {
  position: fixed;
  top: 0;
  left: 0;
  width: min(300px, 86vw);
  height: 100vh;
  background: #0b1224;
  border-right: 1px solid var(--line);
  padding: 1.25rem;
  z-index: 50;
  transform: translateX(-105%);
  transition: transform 0.22s ease;
  overflow-y: auto;
}
.admin-side.is-open {
  transform: translateX(0);
}
.admin-side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.admin-nav a {
  display: block;
  color: #c9d3ef;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  margin-bottom: 0.25rem;
}
.admin-nav a:hover,
.admin-nav a.active {
  background: #17233f;
  color: #fff;
}
.admin-logout {
  margin-top: 1rem;
}
.admin-main {
  padding: 1.25rem;
  min-width: 0;
}
.admin-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: -0.25rem 0 1rem;
}
.admin-topbar-title {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: 1.35rem;
}
.admin-page-title {
  display: none;
}

@media (min-width: 961px) {
  .admin-shell {
    grid-template-columns: 240px 1fr;
  }
  .admin-side {
    position: sticky;
    transform: none;
    width: auto;
    height: 100vh;
  }
  .admin-side .nav-close,
  .admin-topbar .hamburger {
    display: none;
  }
  .admin-topbar-title {
    display: none;
  }
  .admin-page-title {
    display: block;
  }
  .admin-shell > .nav-backdrop {
    display: none !important;
  }
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.8rem; }
.stat {
  background: #15203d;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}
.stat strong { display: block; font-size: 1.6rem; margin-top: 0.25rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.7rem 0.55rem; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.92rem; }
th { color: var(--muted); font-weight: 700; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; align-items: end; }

/* Drag & drop upload */
.dropzone {
  position: relative;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: rgba(8, 14, 28, 0.9);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.dropzone:hover,
.dropzone:focus-visible {
  border-color: rgba(232, 48, 112, 0.7);
  outline: none;
}
.dropzone.is-dragover {
  border-color: var(--pink);
  background: rgba(232, 48, 112, 0.12);
  box-shadow: inset 0 0 0 1px rgba(232, 48, 112, 0.35);
}
.dropzone.is-error {
  border-color: var(--danger);
}
.dropzone-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.dropzone-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--yellow);
  font-size: 1.4rem;
  font-weight: 800;
}
.dropzone-title {
  margin: 0;
  font-weight: 700;
  color: #fff;
}
.dropzone-hint,
.dropzone-name {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.dropzone-preview {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0c1428;
}
.dropzone-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.dropzone-browse {
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.dropzone-clear {
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 107, 0.35);
  background: transparent;
  color: #ffd0d0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: none;
}
.dropzone.has-file .dropzone-clear {
  display: inline-flex;
  align-items: center;
}
.dropzone-current {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.65rem;
}
.dropzone-current img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}


@media (prefers-reduced-motion: no-preference) {
  .hero-card, .panel, .college-item, .rank-row, .poster-content {
    animation: rise 0.55s ease both;
  }
  .btn-primary, .btn-poster { transition: transform 0.18s ease, box-shadow 0.18s ease; }
  .btn-primary:hover, .btn-poster:hover { transform: translateY(-1px); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Poster-style event / location landing (banner only, no site header) */
body.is-landing {
  background: #120308;
  min-height: 100vh;
}
.landing-main {
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}
.poster-landing {
  width: min(480px, 100%);
  margin: 0 auto;
  padding: 0;
}
.poster-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 60vh;
  padding: 2rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}
.poster-frame {
  position: relative;
  width: 100%;
  background: #1a0508;
  display: block;
}
.poster-frame-link {
  text-decoration: none;
  color: inherit;
}
.poster-frame-link:hover .poster-image {
  filter: brightness(1.03);
}
.poster-image {
  display: block;
  width: 100%;
  height: auto;
}
.poster-closed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}
.btn-poster {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 340px);
  min-height: 52px;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: none;
  background: #b50818;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(181, 8, 24, 0.45);
}
.btn-poster:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.05);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.poster-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  padding: 0 1rem;
}
.poster-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}
.poster-locations {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}
.poster-locations h2 {
  margin-bottom: 0.35rem;
}

/* College selection — branded background, no site chrome */
body.is-colleges {
  background: #000;
  min-height: 100vh;
}
body.is-colleges .landing-main {
  min-height: 100vh;
}
.colleges-screen {
  position: relative;
  min-height: 100vh;
  width: min(480px, 100%);
  margin: 0 auto;
  background: #000 var(--colleges-bg) top center / 100% auto no-repeat;
  display: flex;
  flex-direction: column;
}
.colleges-hero {
  flex: 0 0 auto;
  width: 100%;
  /* Keep the branded headline zone of the background visible */
  height: min(42vh, 360px);
  pointer-events: none;
}
.colleges-panel {
  flex: 0 1 auto;
  width: calc(100% - 2rem);
  max-width: 420px;
  margin: -1.25rem auto 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.15rem 1.15rem;
  box-sizing: border-box;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
}
.colleges-meta {
  margin: 0;
  text-align: center;
  color: rgba(0, 0, 0, 0.45);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.colleges-search {
  margin: 0;
}
.colleges-search .search-input {
  width: 100%;
  background: #f3f3f5;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  color: #111;
}
.colleges-search .search-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}
.colleges-list {
  margin-top: 0.35rem;
  max-height: min(52vh, 480px);
  overflow-y: auto;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}
body.is-colleges .college-item {
  background: #f3f3f5;
  border-color: rgba(0, 0, 0, 0.1);
  color: #111;
}
body.is-colleges .college-item strong {
  color: #111;
}
body.is-colleges .college-item .meta {
  color: rgba(0, 0, 0, 0.55);
}
body.is-colleges .college-item:hover,
body.is-colleges .college-item.is-selected {
  border-color: #b50818;
  background: #fde8eb;
  box-shadow: inset 0 0 0 1px rgba(181, 8, 24, 0.25);
}
body.is-colleges .college-logo.placeholder {
  background: #e8e8ee;
  color: #b50818;
}
.colleges-empty {
  text-align: center;
  color: rgba(0, 0, 0, 0.55);
  padding: 1.25rem 0.5rem;
}
.colleges-actions {
  margin-top: 0.75rem;
  position: sticky;
  bottom: 0;
  padding-top: 0.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 35%);
}
body.is-colleges .colleges-panel .alert-error {
  background: #fde8eb;
  border: 1px solid rgba(181, 8, 24, 0.35);
  color: #8f0612;
}
body.is-colleges .colleges-panel .alert-success {
  background: #e8f8ef;
  border: 1px solid rgba(46, 204, 113, 0.35);
  color: #146c3a;
}
@media (max-width: 480px) {
  .colleges-hero {
    height: min(38vh, 300px);
  }
}

/* Vote form — branded background, no site chrome */
body.is-vote {
  background: #050203;
  min-height: 100vh;
}
body.is-vote .landing-main {
  min-height: 100vh;
}
.vote-screen {
  position: relative;
  min-height: 100vh;
  width: min(480px, 100%);
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(5, 2, 3, 0) 0%, rgba(5, 2, 3, 0.15) 55%, #050203 92%),
    #050203 var(--vote-bg) top center / 100% auto no-repeat;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}
.vote-brand {
  flex: 0 0 auto;
  width: 100%;
  /* Leave logo + headline visible; form sits in the red dome */
  height: clamp(168px, 28vh, 230px);
  pointer-events: none;
}
.vote-panel {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: calc(100% - 2rem);
  max-width: 420px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.15rem 1.15rem;
  box-sizing: border-box;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
}
.vote-college {
  text-align: center;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: #f3f3f5;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.vote-college .meta {
  color: rgba(0, 0, 0, 0.5);
}
.vote-college strong {
  display: block;
  margin: 0.15rem 0 0.4rem;
  font-size: 1.08rem;
  color: #111;
}
.vote-college a {
  color: #b50818;
  font-size: 0.9rem;
}
.vote-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0.35rem;
}
.vote-fields {
  display: grid;
  gap: 0.3rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
}
body.is-vote .form-control,
body.is-vote select {
  background: #f3f3f5;
  border-color: rgba(0, 0, 0, 0.12);
  color: #111;
  margin-bottom: 0.15rem;
}
body.is-vote .form-control::placeholder {
  color: rgba(0, 0, 0, 0.4);
}
body.is-vote label {
  margin-top: 0.2rem;
  color: rgba(0, 0, 0, 0.75);
}
body.is-vote .help {
  color: rgba(0, 0, 0, 0.5);
  margin: 0 0 0.25rem;
}
body.is-vote .check {
  color: rgba(0, 0, 0, 0.8);
  margin-top: 0.45rem;
  align-items: flex-start;
}
body.is-vote .check a {
  color: #b50818;
}
body.is-vote .error-text {
  color: #b50818;
}
body.is-vote .vote-panel .alert-error {
  background: #fde8eb;
  border: 1px solid rgba(181, 8, 24, 0.35);
  color: #8f0612;
}
.vote-actions {
  margin-top: 0.65rem;
  padding: 0.55rem 0 0;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 40%);
}
.vote-actions .btn {
  min-height: 52px;
  border-radius: 999px;
  background: #b50818;
  box-shadow: 0 12px 28px rgba(181, 8, 24, 0.35);
}
@media (max-width: 480px) {
  .vote-brand {
    height: clamp(150px, 26vh, 200px);
  }
  .vote-fields {
    padding: 0.85rem 0.85rem 0.25rem;
  }
}

/* Thank-you / success screen */
body.is-success {
  background: #000;
  min-height: 100vh;
}
body.is-success .landing-main {
  min-height: 100vh;
}
.success-screen {
  position: relative;
  min-height: 100vh;
  width: min(480px, 100%);
  margin: 0 auto;
  background: #000 var(--success-bg) top center / 100% auto no-repeat;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}
.success-brand {
  flex: 0 0 auto;
  width: 100%;
  /* Keep OYE HOYE / YOUR VOTE IS IN artwork visible */
  height: clamp(220px, 38vh, 320px);
  pointer-events: none;
}
.success-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 0.25rem 1.35rem 1.25rem;
  position: relative;
  z-index: 1;
}
.success-thanks {
  margin: 0.35rem 0 0;
  font-family: var(--font-display, "Bebas Neue", Impact, sans-serif);
  font-size: clamp(1.7rem, 6vw, 2.15rem);
  letter-spacing: 0.03em;
  color: #fff;
  font-weight: 700;
}
.success-line {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
}
.success-college {
  margin: 0.35rem 0 0.85rem;
  font-family: var(--font-display, "Bebas Neue", Impact, sans-serif);
  font-size: clamp(1.55rem, 5.5vw, 2rem);
  letter-spacing: 0.04em;
  color: #b50818;
  font-weight: 700;
  line-height: 1.15;
  max-width: 18ch;
}
.success-note {
  margin: 0.5rem 0 1.25rem;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.45;
}
.success-actions {
  width: 100%;
  display: grid;
  gap: 0.65rem;
  margin-top: auto;
}
.success-actions .btn {
  min-height: 48px;
  border-radius: 999px;
}
@media (max-width: 480px) {
  .success-brand {
    height: clamp(200px, 36vh, 280px);
  }
}

/* Certificate share page — data only inside template box AFTER white slogan */
body.is-certificate {
  background: #000;
  min-height: 100vh;
}
body.is-certificate .landing-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-screen {
  --cert-w: 941;
  --cert-h: 1672;
  position: relative;
  /* Keep template aspect so % positions match the artwork */
  width: min(100vw, 430px, calc(100vh * 941 / 1672));
  height: min(100vh, calc(min(100vw, 430px) * 1672 / 941));
  margin: 0 auto;
  background: #000 var(--cert-bg) center / 100% 100% no-repeat;
  overflow: hidden;
}
.cert-card {
  position: absolute;
  z-index: 2;
  /* Full inner black panel AFTER white slogan */
  top: 55.5%;
  left: 12.5%;
  right: 12.5%;
  bottom: 20.8%;
  padding: 2.2% 2.5% 1.8%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 0.15rem;
}
.cert-name {
  margin: 0;
  color: #b50818;
  font-family: "Oswald", "Bebas Neue", Impact, sans-serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 8.5vw, 2.55rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  max-width: 100%;
  word-break: break-word;
  flex-shrink: 0;
}
.cert-sub {
  margin: 0;
  color: #fff;
  font-size: clamp(0.7rem, 2.5vw, 0.85rem);
  font-weight: 500;
  flex-shrink: 0;
}
.cert-college-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
}
.cert-logo {
  width: clamp(46px, 12vw, 60px);
  height: clamp(46px, 12vw, 60px);
  border-radius: 50%;
  object-fit: cover;
  margin: 0;
  background: #fff;
  border: 2px solid #b50818;
  flex-shrink: 0;
}
.cert-logo-fallback {
  display: grid;
  place-items: center;
  color: #b50818;
  background: #fff;
  font-weight: 800;
  font-size: clamp(1.2rem, 4.5vw, 1.55rem);
}
.cert-college {
  margin: 0;
  color: #fff;
  font-family: "Oswald", "Bebas Neue", Impact, sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 4.6vw, 1.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  text-align: left;
  max-width: 12ch;
}
.cert-foot {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.6rem, 2.1vw, 0.74rem);
  line-height: 1.2;
  max-width: 30ch;
  flex-shrink: 0;
}
.cert-error {
  position: absolute;
  top: 2%;
  left: 6%;
  right: 6%;
  z-index: 3;
  margin: 0;
}
.cert-actions {
  position: absolute;
  z-index: 3;
  left: 8%;
  right: 8%;
  bottom: 3.8%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  /* Cover pink buttons baked into the template art */
  padding: 0.35rem 0.2rem;
  background: #000;
  border-radius: 999px;
}
.cert-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  color: #fff !important;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(0.78rem, 3vw, 0.92rem);
  min-height: clamp(44px, 8vw, 52px);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #b50818 !important;
  background-image: none !important;
  box-shadow: 0 10px 24px rgba(181, 8, 24, 0.5);
}
.cert-btn:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.06);
}
.cert-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Buy tickets — full poster */
body.is-tickets {
  background: #000;
  min-height: 100vh;
}
body.is-tickets .landing-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tickets-screen {
  --tickets-w: 576;
  --tickets-h: 1024;
  position: relative;
  width: min(100vw, 430px, calc(100vh * 576 / 1024));
  height: min(100vh, calc(min(100vw, 430px) * 1024 / 576));
  margin: 0 auto;
  background: #000 var(--tickets-bg) center / 100% 100% no-repeat;
  overflow: hidden;
}
.tickets-hotspot {
  position: absolute;
  z-index: 2;
  display: block;
  border-radius: 999px;
  /* Invisible hit area over poster buttons */
  background: transparent;
}
.tickets-hotspot--book {
  left: 14%;
  right: 14%;
  top: 72.5%;
  height: 7.2%;
}
.tickets-hotspot--enquire {
  left: 22%;
  right: 22%;
  top: 90.5%;
  height: 5.2%;
}
.tickets-fallback-note {
  position: absolute;
  z-index: 3;
  left: 8%;
  right: 8%;
  bottom: 1.2%;
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
body.has-float-nav .hamburger {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Campaign Info / FAQ */
body.is-info {
  background: #000;
  min-height: 100vh;
}
body.is-info .landing-main {
  min-height: 100vh;
}
.info-screen {
  position: relative;
  min-height: 100vh;
  width: min(480px, 100%);
  margin: 0 auto;
  background:
    radial-gradient(ellipse 80% 28% at 50% -8%, rgba(181, 8, 24, 0.35), transparent 70%),
    #000;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 0 0;
}
.info-brand {
  text-align: center;
  padding: 0.35rem 1rem 0.85rem;
}
.info-brand-logo {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 2.9rem);
  letter-spacing: 0.06em;
  color: #f2efe8;
  line-height: 0.95;
}
.info-brand-sub {
  margin: 0.45rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.info-brand-sub span {
  display: block;
  width: 2.4rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.75);
}
.info-body {
  flex: 1 1 auto;
  width: calc(100% - 2rem);
  max-width: 420px;
  margin: 0 auto;
  padding: 0.15rem 0 1.25rem;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}
.info-title {
  margin: 0 0 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 7vw, 2.35rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b50818;
  line-height: 1;
}
.info-accordion {
  display: grid;
  gap: 0.55rem;
}
.info-acc-item {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: #050505;
  overflow: hidden;
}
.info-acc-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}
.info-acc-item summary::-webkit-details-marker {
  display: none;
}
.info-acc-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.18s ease;
  margin-top: -0.15rem;
}
.info-acc-item[open] .info-acc-chevron {
  transform: rotate(225deg);
  margin-top: 0.2rem;
}
.info-acc-body {
  padding: 0 0.95rem 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.45;
}
.info-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  padding: 1.25rem 0.5rem;
}
.info-actions {
  margin-top: 1rem;
}
.info-footer-band {
  margin-top: auto;
  padding: 2.75rem 1.25rem 2rem;
  background:
    radial-gradient(120% 90% at 50% 120%, #b50818 0%, #8f0612 42%, transparent 70%);
  text-align: center;
}
.info-footer-band p {
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  max-width: 16ch;
}
