:root {
  --bg: #080707;
  --ink: #111010;
  --panel: rgba(15, 14, 15, 0.9);
  --panel-strong: rgba(8, 7, 7, 0.72);
  --line: rgba(255, 255, 255, 0.13);
  --text: #fff8ee;
  --muted: #bbb2a6;
  --pink: #ff006b;
  --gold: #f6c768;
  --green: #22c58b;
  --cyan: #59c7de;
  --danger: #ff6b6b;
  --radius: 8px;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 72%);
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 7, 7, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font-weight: 900;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand span {
  white-space: nowrap;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topnav a,
.topnav button {
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  padding: 10px 11px;
  font-size: 13px;
  font-weight: 900;
}

.topnav a:hover,
.topnav button:hover,
.topnav a.active,
.topnav button.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: center;
  padding: clamp(24px, 5vw, 62px) clamp(16px, 4vw, 54px);
  overflow: hidden;
}

.hero-art,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-art {
  background-image: url("/nightlife-awards/assets/hero-nightlife-awards.webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(1.06) contrast(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 7, 7, 0.92) 0%, rgba(8, 7, 7, 0.72) 38%, rgba(8, 7, 7, 0.38) 68%, rgba(8, 7, 7, 0.72) 100%),
    linear-gradient(0deg, rgba(8, 7, 7, 0.94) 0%, rgba(8, 7, 7, 0.08) 45%, rgba(8, 7, 7, 0.42) 100%);
}

.hero-content,
.action-panel,
.route-card-grid {
  position: relative;
  z-index: 1;
}

.hero-content {
  min-width: 0;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 720px;
  font-family: var(--font-display);
  font-size: clamp(54px, 10vw, 126px);
  line-height: 0.9;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.7);
}

h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.18;
}

.hero-lede {
  max-width: 660px;
  margin-bottom: 24px;
  color: #e5d8ca;
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-actions .primary,
.hero-actions .ghost {
  width: auto;
  min-width: min(210px, 100%);
  padding-inline: 18px;
}

.page-hero {
  min-height: min(560px, calc(100svh - 72px));
  grid-template-columns: minmax(0, 820px);
  align-items: end;
}

.page-hero .hero-content {
  padding-top: clamp(58px, 8vw, 118px);
  padding-bottom: clamp(24px, 5vw, 56px);
}

.route-card-grid {
  width: 100%;
  max-width: 560px;
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.route-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(15, 14, 15, 0.72);
  padding: 18px;
  backdrop-filter: blur(18px);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.route-card:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 199, 104, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.route-card svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.route-card span {
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-card strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.05;
}

.event-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
}

.event-strip div,
.countdown div,
.category-grid article,
.rules-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.event-strip div {
  min-height: 88px;
  padding: 15px;
  backdrop-filter: blur(10px);
}

.event-strip span,
.countdown span,
.leader-metrics span,
label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.event-strip span,
.countdown span {
  display: block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.2;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(74px, 104px));
  gap: 10px;
  margin-top: 12px;
}

.countdown div {
  padding: 13px 14px;
  background: rgba(8, 7, 7, 0.56);
}

.countdown strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.action-panel {
  width: 100%;
  max-width: 560px;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  padding: clamp(16px, 2.4vw, 24px);
  backdrop-filter: blur(22px);
}

.panel-head {
  margin-bottom: 18px;
}

.panel-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  min-height: 46px;
  margin-bottom: 20px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.segmented button {
  min-width: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.segmented button.active {
  background: var(--text);
  color: var(--bg);
}

.view-form,
.wizard-step {
  display: none;
}

.view-form.active,
.wizard-step.active {
  display: block;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.wizard-steps span {
  position: relative;
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.wizard-steps span.active {
  color: var(--bg);
  background: var(--gold);
  border-color: transparent;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: block;
  min-width: 0;
}

label span {
  display: block;
  margin-bottom: 7px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
  padding: 13px 14px;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.74) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.74) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

select option {
  color: #111;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(246, 199, 104, 0.14);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.checkline {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 14px 0 18px;
}

.checkline input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--pink);
}

.checkline span {
  margin: 0;
  line-height: 1.45;
}

.wizard-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
}

#wizard-submit {
  display: none;
}

#wizard-submit.active {
  display: inline-flex;
}

#wizard-next.hidden,
#wizard-back.hidden {
  display: none;
}

.primary,
.ghost,
.inline-action,
.leader-action,
.mobile-dock a,
.mobile-dock button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--radius);
  font-weight: 900;
  min-height: 46px;
}

.primary {
  width: 100%;
  border: 0;
  background: var(--pink);
  color: white;
  padding: 13px 18px;
}

.primary:disabled,
.leader-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.ghost,
.inline-action,
.leader-action {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 11px 14px;
}

.primary svg,
.ghost svg,
.inline-action svg,
.leader-action svg,
.mobile-dock svg,
.category-grid svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.result {
  margin-top: 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 14px;
  min-height: 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
}

.result:empty {
  display: none;
}

.result strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}

.result.success {
  border-color: rgba(34, 197, 139, 0.28);
  background: rgba(34, 197, 139, 0.08);
}

.result.error {
  border-color: rgba(255, 107, 107, 0.32);
  background: rgba(255, 107, 107, 0.08);
  color: #ffd3d3;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.status-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.status-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.status-grid strong {
  overflow-wrap: anywhere;
  font-size: 16px;
}

.vote-target {
  min-height: 112px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.empty-state,
.mini-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.target-name {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.target-name h3 {
  margin-bottom: 4px;
}

.target-name p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.rank-pill,
.status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
}

.rank-pill {
  color: var(--bg);
  background: var(--gold);
}

.vote-bundles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(112px, 1.3fr);
  gap: 8px;
  margin-bottom: 14px;
}

.vote-bundles button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  min-height: 46px;
  font-weight: 900;
}

.vote-bundles button.active {
  border-color: var(--pink);
  background: rgba(255, 0, 107, 0.16);
}

.vote-bundles label span {
  margin-bottom: 6px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.copy-field code {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.26);
  color: var(--gold);
}

.section-band {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 80px) 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.category-grid.expanded {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-grid article {
  min-height: 138px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.category-grid svg {
  color: var(--gold);
  margin-bottom: 16px;
}

.category-grid strong,
.category-grid span {
  display: block;
}

.category-grid strong {
  line-height: 1.15;
}

.category-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.board-status {
  margin-bottom: 12px;
  color: var(--muted);
}

.leaderboard-list {
  display: grid;
  gap: 10px;
}

.leader-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(210px, 0.55fr) 150px;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.leader-rank {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 0, 107, 0.16);
  color: var(--pink);
  font-weight: 900;
}

.leader-main {
  min-width: 0;
}

.leader-titleline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-bottom: 5px;
}

.leader-main h3 {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leader-main p,
.leader-metrics span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
}

.status-pill.live {
  border-color: rgba(34, 197, 139, 0.36);
  color: #bff9df;
  background: rgba(34, 197, 139, 0.1);
}

.status-pill.pending {
  border-color: rgba(246, 199, 104, 0.28);
  color: var(--gold);
  background: rgba(246, 199, 104, 0.1);
}

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

.leader-metrics div {
  min-width: 0;
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.leader-metrics strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  line-height: 1;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rules-grid article {
  min-height: 192px;
  padding: 20px;
}

.rules-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--cyan);
  font-weight: 900;
}

.rules-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.mobile-dock {
  display: none;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-content {
    padding-top: 20px;
  }

  .action-panel {
    justify-self: stretch;
    max-width: none;
  }

  .route-card-grid {
    justify-self: stretch;
    max-width: none;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(8, 7, 7, 0.96) 0%, rgba(8, 7, 7, 0.42) 48%, rgba(8, 7, 7, 0.76) 100%),
      linear-gradient(90deg, rgba(8, 7, 7, 0.86), rgba(8, 7, 7, 0.36));
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-grid.expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 66px;
    padding: 0 14px;
  }

  .brand span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topnav a {
    display: none;
  }

  .topnav a.nav-cta {
    display: inline-flex;
  }

  .topnav button {
    padding: 9px 10px;
  }

  .hero {
    min-height: 0;
    padding: 22px 12px 28px;
  }

  .page-hero .hero-content {
    padding-top: 42px;
    padding-bottom: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .primary,
  .hero-actions .ghost {
    width: 100%;
  }

  .hero-art {
    background-image: url("/nightlife-awards/assets/hero-nightlife-awards-mobile.webp");
    background-position: center top;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(8, 7, 7, 0.34) 0%, rgba(8, 7, 7, 0.5) 34%, rgba(8, 7, 7, 0.78) 64%, rgba(8, 7, 7, 0.96) 100%),
      linear-gradient(90deg, rgba(8, 7, 7, 0.72) 0%, rgba(8, 7, 7, 0.42) 54%, rgba(8, 7, 7, 0.64) 100%);
  }

  h1 {
    font-size: clamp(48px, 17vw, 76px);
  }

  .hero-lede {
    font-size: 16px;
  }

  .event-strip,
  .status-grid,
  .rules-grid,
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .event-strip div {
    min-height: 72px;
  }

  .countdown {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .action-panel {
    padding: 14px;
  }

  .panel-head h2 {
    font-size: 30px;
  }

  .segmented,
  .wizard-steps {
    grid-template-columns: 1fr;
  }

  .route-card-grid {
    grid-template-columns: 1fr;
  }

  .route-card {
    min-height: 112px;
  }

  .wizard-actions {
    grid-template-columns: 1fr;
  }

  .vote-bundles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vote-bundles label {
    grid-column: 1 / -1;
  }

  .section-band {
    width: min(100vw - 24px, 1180px);
    padding: 42px 0;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .category-grid.expanded {
    grid-template-columns: 1fr;
  }

  .category-grid article {
    min-height: 128px;
  }

  .leader-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .leader-metrics,
  .leader-action {
    grid-column: 2;
  }

  .leader-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leader-titleline {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .copy-field {
    grid-template-columns: 1fr;
  }

  .mobile-dock {
    position: sticky;
    bottom: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px max(8px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    border-top: 1px solid var(--line);
    background: rgba(8, 7, 7, 0.9);
    backdrop-filter: blur(18px);
  }

  .mobile-dock a,
  .mobile-dock button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    padding: 8px 6px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .event-strip strong,
  .status-grid strong {
    font-size: 15px;
  }
}
