:root {
  --bg-soft: #140907;
  --card: rgba(25, 13, 8, 0.82);
  --card-strong: rgba(36, 18, 10, 0.95);
  --orange: #ff6a00;
  --orange-2: #ff9d21;
  --red: #e73312;
  --cream: #fff1d2;
  --text: #fff8ef;
  --muted: #cbb8a0;
  --border: rgba(255, 122, 24, 0.28);
  --shadow-fire: 0 24px 80px rgba(255, 90, 0, 0.24);
  --shadow-deep: 0 26px 90px rgba(0, 0, 0, 0.5);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --content-width: 1120px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 106, 0, 0.12), transparent 22%),
    radial-gradient(circle at 85% 14%, rgba(255, 157, 33, 0.12), transparent 20%),
    radial-gradient(circle at 70% 78%, rgba(231, 51, 18, 0.1), transparent 24%),
    linear-gradient(180deg, #120705 0%, var(--bg) 42%, #030101 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top, rgba(255, 167, 61, 0.08), transparent 30%),
    radial-gradient(circle at 50% 120%, rgba(255, 86, 0, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 16px);
  mix-blend-mode: screen;
  opacity: 0.65;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.24) 0.7px, transparent 0.75px),
    radial-gradient(rgba(255, 159, 54, 0.22) 0.65px, transparent 0.7px);
  background-size: 4px 4px, 7px 7px;
  background-position: 0 0, 2px 3px;
  mix-blend-mode: soft-light;
}

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

img {
  max-width: 100%;
  display: block;
}

.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;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #050302;
  animation: flamePulse 8s ease-in-out infinite alternate;
}

.background::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.68)),
    url("../assets/background.jpg") center/cover no-repeat;
  opacity: 1;
  filter: brightness(0.62) contrast(1.05);
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 106, 0, 0.12), transparent 22%),
    radial-gradient(circle at 85% 14%, rgba(255, 157, 33, 0.12), transparent 20%),
    radial-gradient(circle at 70% 78%, rgba(231, 51, 18, 0.09), transparent 24%),
    linear-gradient(180deg, rgba(18, 7, 5, 0.04) 0%, rgba(3, 1, 1, 0.26) 100%);
  opacity: 1;
  pointer-events: none;
  animation: flameGlow 8s ease-in-out infinite alternate;
}

@keyframes flamePulse {
  0% {
    opacity: 0.74;
    transform: scale(1.045);
  }
  100% {
    opacity: 0.93;
    transform: scale(1.02);
  }
}

@keyframes flameGlow {
  0% {
    opacity: 0.58;
  }
  100% {
    opacity: 0.68;
  }
}

.content,
.page-shell {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 14px 12px 22px;
  position: relative;
  z-index: 0;
}

.landing {
  display: grid;
  gap: 14px;
}

.hero {
  width: min(100%, 560px);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: clamp(1.5rem, 4vw, 2.2rem);
  background: rgba(8, 6, 5, 0.64);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.42),
    inset 0 0 34px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.hero--vote,
.hero--results {
  width: min(100%, 1040px);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(8, 6, 5, 0.64);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.42),
    inset 0 0 34px rgba(255, 255, 255, 0.04);
}

.hero::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -110px;
  top: -120px;
  background: radial-gradient(circle, rgba(255, 115, 0, 0.55), transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -75px auto;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 157, 33, 0.2), transparent 70%);
  filter: blur(8px);
}

.hero__inner,
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.hero__inner--wide {
  max-width: 860px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
}

.festival-logo {
  width: min(100%, 320px);
  max-height: 150px;
  object-fit: contain;
  margin: 0 auto;
  filter:
    drop-shadow(0 0 18px rgba(255, 69, 0, 0.85))
    drop-shadow(0 0 40px rgba(255, 140, 0, 0.45));
}

.hero__logo {
  width: min(100%, 280px);
  max-height: 140px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(255, 69, 0, 0.85))
    drop-shadow(0 0 40px rgba(255, 140, 0, 0.45));
}

.kicker,
.hero__eyebrow,
.vote-card__kicker,
.section-title__eyebrow,
.feature-card__tag,
.pill,
.ranking-item__badge,
.btn {
  font-family: Impact, Haettenschweiler, "Arial Black", system-ui, sans-serif;
}

.kicker,
.hero__eyebrow {
  color: var(--flame-yellow, var(--orange-2));
  color: var(--orange-2);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.8rem;
  text-align: center;
  text-shadow: 0 0 24px rgba(255, 69, 0, 0.85);
}

.main-title,
.hero__title {
  margin: 0;
  color: var(--cream);
  text-transform: uppercase;
  text-align: center;
  line-height: 0.94;
  letter-spacing: 1px;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  text-shadow: 0 0 30px rgba(255, 69, 0, 0.45);
}

.lead,
.hero__lead,
.hero__subtitle {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.hero__subtitle {
  color: var(--cream);
  font-weight: 800;
  font-size: 1.02rem;
}

.vote-form,
.stack {
  display: grid;
  gap: 14px;
}

.input-group,
.field {
  display: grid;
  gap: 10px;
}

.field label {
  color: var(--cream);
  font-size: 0.98rem;
  font-weight: 800;
  text-align: left;
}

.form-input,
input[type="text"] {
  width: 100%;
  padding: 16px 20px;
  min-height: 56px;
  font-size: 1.05rem;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.96), rgba(10, 10, 10, 0.98));
  border: 3px solid var(--orange-2);
  border-radius: 18px;
  color: white;
  text-align: center;
  letter-spacing: 3px;
  font-weight: 900;
  text-transform: uppercase;
  outline: none;
  box-shadow:
    inset 0 4px 12px rgba(0, 0, 0, 0.6),
    0 0 0 rgba(255, 69, 0, 0);
}

.form-input::placeholder,
input[type="text"]::placeholder {
  color: rgba(255, 241, 210, 0.45);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.form-input:focus,
input[type="text"]:focus {
  border-color: var(--orange);
  box-shadow:
    0 0 0 6px rgba(255, 69, 0, 0.28),
    inset 0 4px 12px rgba(0, 0, 0, 0.6);
  transform: scale(1.01);
}

.btn,
button[type="submit"],
.button {
  width: 100%;
  padding: 16px 20px;
  min-height: 52px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  color: white;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(255, 69, 0, 0.55);
  transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease, filter 0.28s ease;
}

.btn:hover,
button[type="submit"]:hover,
.button:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 50px rgba(255, 69, 0, 0.75);
}

.button--ghost,
.secondary-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin-top: 0;
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 140, 0, 0.45);
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.secondary-link {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.button--ghost:hover,
.secondary-link:hover {
  background: rgba(255, 106, 0, 0.16);
  box-shadow: 0 0 22px rgba(255, 69, 0, 0.35);
  transform: translateY(-2px);
}

.button--small {
  width: auto;
  min-height: 40px;
  padding: 10px 14px;
  font-size: 0.88rem;
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.75;
  filter: grayscale(0.15);
}

.secondary-link {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.info {
  margin-top: 1.3rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.footer,
.site-footer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  color: var(--orange-2);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  font-weight: 800;
}

.site-footer a {
  color: var(--orange-2);
  text-decoration: none;
  transition: color 180ms ease, text-shadow 180ms ease, opacity 180ms ease;
}

.site-footer a:hover {
  color: var(--cream);
  text-shadow: 0 0 18px rgba(255, 106, 0, 0.4);
}

.vote-card,
.success-card,
.feature-card,
.foodtruck-card,
.ranking-item,
.ranking-empty,
.notice {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(25, 13, 8, 0.82), rgba(10, 5, 3, 0.94));
  box-shadow: var(--shadow-deep);
}

.vote-form-panel,
.results-panel {
  display: grid;
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.vote-card {
  padding: 16px;
  background:
    radial-gradient(circle at top, rgba(255, 106, 0, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(25, 13, 8, 0.88), rgba(10, 5, 3, 0.95));
}

.vote-card--inside {
  margin-top: 8px;
}

.vote-card__head {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.vote-card__kicker {
  width: fit-content;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.14);
  border: 1px solid rgba(255, 164, 75, 0.18);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.72rem;
  font-weight: 900;
}

.vote-card__title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.35rem, 3.5vw, 1.9rem);
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 1px;
}

.vote-card__lead {
  margin: 0;
  text-align: center;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

.vote-card__help {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  line-height: 1.55;
}

.vote-card__help::before {
  content: "i";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 157, 33, 0.16);
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 900;
}

.home-sections {
  display: grid;
  gap: 18px;
}

.section-title {
  display: grid;
  gap: 6px;
}

.section-title__eyebrow {
  margin: 0;
  color: var(--orange-2);
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 0.72rem;
  text-align: center;
}

.section-title h2 {
  margin: 0;
  text-align: center;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: clamp(1.25rem, 3.5vw, 1.7rem);
}

.section-title p {
  margin: 0;
  text-align: center;
  color: var(--muted);
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  gap: 10px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--orange), var(--orange-2));
}

.feature-card__tag,
.pill,
.ranking-item__badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 241, 210, 0.08);
  color: var(--cream);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 900;
}

.feature-card h3 {
  margin: 0;
  color: var(--cream);
  text-transform: uppercase;
  font-size: 0.98rem;
  letter-spacing: 0.8px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.foodtruck-grid {
  display: grid;
  gap: 14px;
  margin: 12px 0 4px;
  align-items: stretch;
}

.foodtruck-card-shell {
  position: relative;
  height: 100%;
  display: flex;
}

.foodtruck-card {
  display: grid;
  grid-template-rows: auto 1fr;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 122, 24, 0.24);
  background:
    linear-gradient(180deg, #050201 0%, rgba(24, 10, 5, 0.96) 55%, rgba(12, 5, 3, 0.98) 100%);
  border-radius: 26px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.45),
    0 0 36px rgba(255, 106, 0, 0.1),
    inset 0 0 40px rgba(255, 106, 0, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.foodtruck-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.48),
    0 0 28px rgba(255, 106, 0, 0.12),
    inset 0 0 40px rgba(255, 106, 0, 0.06);
}

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

.foodtruck-card:focus-visible {
  outline: 2px solid rgba(255, 157, 33, 0.9);
  outline-offset: 2px;
}

.foodtruck-card__media-wrap {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #000;
  position: relative;
  border-radius: 24px 24px 0 0;
  isolation: isolate;
}

.foodtruck-card__media-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, transparent 42%, rgba(0, 0, 0, 0.62) 100%);
  pointer-events: none;
  z-index: 1;
}

.foodtruck-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  background: #000;
}

.foodtruck-card__body {
  display: grid;
  gap: 6px;
  flex: 1 1 auto;
  padding: 1.2rem 1.25rem 1.3rem;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 106, 0, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(20, 8, 4, 0.98), rgba(8, 3, 2, 0.98));
}

.foodtruck-card__name {
  margin: 0;
  color: #fff1d2;
  font-family: Impact, Haettenschweiler, "Arial Black", system-ui, sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 0 18px rgba(255, 106, 0, 0.18);
}

.foodtruck-card__truck {
  margin: 0;
  color: #ff9d21;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.foodtruck-card__desc {
  margin: 0;
  color: #f0dfc4;
  line-height: 1.45;
  font-size: 0.94rem;
  overflow: visible;
  text-wrap: pretty;
}

.foodtruck-card.is-selected {
  border-color: rgba(255, 157, 33, 0.72);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.48),
    0 0 42px rgba(255, 106, 0, 0.22),
    inset 0 0 40px rgba(255, 157, 33, 0.08),
    var(--shadow-fire);
}

.foodtruck-card.is-selected .foodtruck-card__body {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 106, 0, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(24, 10, 5, 0.98), rgba(8, 3, 2, 0.98));
}

.vote-dialog {
  width: min(100vw - 24px, 760px);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.vote-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(7px);
}

.vote-dialog__panel {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #050201 0%, rgba(24, 10, 5, 0.98) 55%, rgba(12, 5, 3, 0.98) 100%);
  border: 1px solid rgba(255, 122, 24, 0.28);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.6),
    0 0 42px rgba(255, 106, 0, 0.16),
    inset 0 0 40px rgba(255, 106, 0, 0.05);
}

.vote-dialog__media {
  position: relative;
  background: #000;
  overflow: hidden;
}

.vote-dialog__media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.85;
  object-fit: cover;
  object-position: center;
}

.vote-dialog__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, transparent 38%, rgba(0, 0, 0, 0.68) 100%);
  pointer-events: none;
}

.vote-dialog__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.74);
  border: 1px solid rgba(255, 157, 33, 0.65);
  color: #ffcf79;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 24px rgba(255, 106, 0, 0.3);
}

.vote-dialog__body {
  display: grid;
  gap: 10px;
  padding: 1.25rem 1.3rem 1.3rem;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 106, 0, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(20, 8, 4, 0.98), rgba(8, 3, 2, 0.98));
}

.vote-dialog__kicker {
  color: var(--orange-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 900;
}

.vote-dialog__title {
  margin: 0;
  color: #fff1d2;
  font-family: Impact, Haettenschweiler, "Arial Black", system-ui, sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.vote-dialog__truck {
  margin: 0;
  color: #ff9d21;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.96rem;
}

.vote-dialog__truck::before {
  content: "Food truck";
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vote-dialog__desc {
  margin: 0;
  color: #f0dfc4;
  line-height: 1.5;
}

.vote-dialog__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 0.45rem;
}

.vote-dialog__confirm {
  width: auto;
  min-width: 160px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.success-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.2rem 1.25rem 1.25rem;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.65rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 24%, rgba(255, 244, 210, 0.18), transparent 18%),
    radial-gradient(circle at 86% 18%, rgba(255, 157, 33, 0.18), transparent 20%),
    linear-gradient(135deg, rgba(255, 106, 0, 0.72), rgba(255, 157, 33, 0.46) 36%, rgba(196, 106, 43, 0.28) 68%, rgba(40, 14, 5, 0.9) 100%);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(255, 106, 0, 0.16),
    inset 0 0 28px rgba(255, 157, 33, 0.08);
  border: 1px solid rgba(255, 183, 86, 0.45);
}

.success-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
}

.success-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 245, 205, 0.14), transparent 18%),
    radial-gradient(circle at 84% 18%, rgba(255, 106, 0, 0.22), transparent 20%),
    linear-gradient(135deg, rgba(255, 177, 74, 0.12), transparent 56%);
  pointer-events: none;
}

.success-card h2,
.success-card p {
  margin: 0;
}

.success-card h2 {
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: clamp(1.25rem, 3.6vw, 1.65rem);
  line-height: 1.02;
  color: var(--cream);
  text-shadow: 0 0 18px rgba(255, 106, 0, 0.12);
}

.success-card p {
  color: #fff1d2;
  line-height: 1.6;
  max-width: 44ch;
}

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

.section-head--center {
  justify-content: center;
  align-items: center;
}

.section-head > div {
  text-align: center;
}

.section-head h2 {
  margin: 0;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.22rem;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  text-align: center;
}

.ranking-empty {
  display: grid;
  gap: 10px;
  padding: 16px;
  color: var(--muted);
}

.ranking-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.ranking-card,
.ranking-item {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 106, 0, 0.35);
  background: linear-gradient(180deg, #050201 0%, rgba(24, 10, 5, 0.96) 55%, rgba(12, 5, 3, 0.98) 100%);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.55),
    0 0 36px rgba(255, 106, 0, 0.16),
    inset 0 0 40px rgba(255, 106, 0, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ranking-card:hover,
.ranking-item:hover {
  transform: translateY(-2px);
}

.ranking-card--first,
.ranking-item--first {
  border-color: rgba(255, 157, 33, 0.75);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.62),
    0 0 42px rgba(255, 106, 0, 0.28),
    inset 0 0 42px rgba(255, 157, 33, 0.08);
}

.ranking-card--second,
.ranking-item--second {
  border-color: rgba(255, 157, 33, 0.34);
}

.ranking-card--third,
.ranking-item--third {
  border-color: rgba(255, 157, 33, 0.26);
}

.ranking-media {
  position: relative;
  background: #000;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  isolation: isolate;
}

.ranking-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 42%, rgba(0, 0, 0, 0.62) 100%);
  pointer-events: none;
  z-index: 1;
}

.ranking-media__image {
  display: block;
  width: 100%;
  height: clamp(160px, 24vw, 240px);
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 0;
}

.ranking-media__overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.rank-medal {
  display: block;
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  width: 64px;
  height: 84px;
  z-index: 40;
  filter:
    drop-shadow(0 12px 20px rgba(0, 0, 0, 0.62))
    drop-shadow(0 0 18px rgba(255, 106, 0, 0.42));
  transform: rotate(7deg);
  transform-origin: center;
  pointer-events: none;
  overflow: visible;
}

.rank-medal__circle {
  position: relative;
  z-index: 3;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 245, 205, 0.95) 0 8%, transparent 9%),
    radial-gradient(circle at 50% 55%, rgba(255, 157, 33, 0.25), transparent 55%),
    linear-gradient(135deg, #2b1208 0%, #ff6a00 42%, #8b2508 100%);
  border: 4px solid #ffbf5b;
  box-shadow:
    inset 0 0 0 4px rgba(45, 15, 5, 0.95),
    inset 0 0 18px rgba(255, 220, 150, 0.35),
    0 0 28px rgba(255, 106, 0, 0.55);
}

.rank-medal__circle::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 238, 190, 0.55);
}

.rank-medal__circle strong {
  position: relative;
  z-index: 2;
  font-family: Impact, Haettenschweiler, "Arial Black", system-ui, sans-serif;
  font-size: 1.75rem;
  line-height: 1;
  color: #fff1d2;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.45),
    0 0 12px rgba(255, 245, 210, 0.25);
}

.rank-medal__hash {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 15px;
  font-size: 0.75rem;
  font-weight: 900;
  color: rgba(255, 241, 210, 0.85);
}

.rank-medal__ribbons {
  position: absolute;
  left: 14px;
  top: 46px;
  width: 34px;
  height: 38px;
  z-index: 1;
}

.rank-medal__ribbons span {
  position: absolute;
  top: 0;
  width: 18px;
  height: 42px;
  background: linear-gradient(180deg, #7a1f0a, #ff4500 55%, #3a0c04);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  border: 1px solid rgba(255, 157, 33, 0.45);
}

.rank-medal__ribbons span:first-child {
  left: 0;
  transform: rotate(9deg);
}

.rank-medal__ribbons span:last-child {
  right: 0;
  transform: rotate(-9deg);
  background: linear-gradient(180deg, #3a0c04, #c73510 55%, #210603);
}

.rank-medal--first {
  animation: medalPulse 2.8s ease-in-out infinite alternate;
}

.rank-medal--first .rank-medal__circle {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 220, 0.95) 0 8%, transparent 9%),
    radial-gradient(circle at 50% 55%, rgba(255, 221, 110, 0.35), transparent 56%),
    linear-gradient(135deg, #5a2606 0%, #ff9d21 42%, #ff4500 100%);
  border-color: #ffd27a;
}

.rank-medal--second .rank-medal__circle {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.8) 0 8%, transparent 9%),
    linear-gradient(135deg, #1a1d22 0%, #b9c0c8 48%, #4b515a 100%);
  border-color: #e2e7ee;
}

.rank-medal--second .rank-medal__circle strong,
.rank-medal--second .rank-medal__hash {
  color: #111;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.rank-medal--third .rank-medal__circle {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 235, 205, 0.8) 0 8%, transparent 9%),
    linear-gradient(135deg, #2b1007 0%, #c46a2b 48%, #6f260d 100%);
  border-color: #ffb074;
}

@keyframes medalPulse {
  from {
    filter:
      drop-shadow(0 14px 22px rgba(0, 0, 0, 0.62))
      drop-shadow(0 0 18px rgba(255, 106, 0, 0.38));
  }

  to {
    filter:
      drop-shadow(0 14px 22px rgba(0, 0, 0, 0.62))
      drop-shadow(0 0 34px rgba(255, 157, 33, 0.72));
  }
}

@media (prefers-reduced-motion: reduce) {
  .rank-medal--first {
    animation: none;
  }
}

.leader-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.74);
  border: 1px solid rgba(255, 157, 33, 0.7);
  color: #ffcf79;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 24px rgba(255, 106, 0, 0.35);
  pointer-events: none;
}

.ranking-card--first .leader-chip,
.ranking-item--first .leader-chip {
  border-color: rgba(255, 231, 180, 0.8);
}

.ranking-body {
  padding: 1.35rem 1.5rem 1.5rem;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 106, 0, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(20, 8, 4, 0.98), rgba(8, 3, 2, 0.98));
  display: grid;
  gap: 0.55rem;
}

.ranking-title {
  margin: 0;
  color: #fff1d2;
  font-family: Impact, Haettenschweiler, "Arial Black", system-ui, sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 0 22px rgba(255, 106, 0, 0.25);
}

.ranking-truck {
  margin: 0.25rem 0 0.7rem;
  color: #ff9d21;
  font-weight: 900;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ranking-description {
  margin: 0;
  color: #f0dfc4;
  line-height: 1.45;
  font-size: 0.98rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-progress {
  height: 8px;
  margin-top: 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ranking-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff4500, #ff8c00);
  box-shadow: 0 0 16px rgba(255, 106, 0, 0.65);
}

.ranking-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.45rem;
}

.votes-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.24), rgba(255, 140, 0, 0.12));
  border: 1px solid rgba(255, 157, 33, 0.45);
  color: #fff1d2;
  box-shadow: 0 0 22px rgba(255, 106, 0, 0.18);
}

.votes-pill strong {
  color: #ff9d21;
  font-size: 1.35rem;
  line-height: 1;
}

.votes-pill span {
  color: #f0dfc4;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.notice {
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.notice--error {
  border: 1px solid rgba(255, 77, 61, 0.3);
  color: #ffd2ce;
  background: rgba(255, 77, 61, 0.12);
}

.notice--success {
  border: 1px solid rgba(36, 209, 126, 0.28);
  color: #c9ffe5;
  background: rgba(36, 209, 126, 0.12);
}

.hero__copy {
  display: grid;
  gap: 12px;
}

.hero__subtitle,
.hero__lead,
.hero__eyebrow {
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  width: fit-content;
  margin: 0 auto 6px;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 158, 37, 0.22);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.22), rgba(255, 157, 33, 0.08));
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.76rem;
  font-weight: 900;
}

@media (min-width: 700px) {
  .content,
  .page-shell {
    padding: 18px 16px 30px;
  }

  .hero {
    width: min(100%, 560px);
    padding: clamp(1.5rem, 4vw, 2.2rem);
  }

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

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

@media (min-width: 1040px) {
  .hero {
    width: min(100%, 560px);
  }

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

  .ranking-list {
    gap: 14px;
  }

  .landing {
    gap: 22px;
  }

  .foodtruck-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .foodtruck-card {
    border-radius: 22px;
  }

  .foodtruck-card__media-wrap {
    border-radius: 22px 22px 0 0;
  }

  .foodtruck-card__media-wrap::before {
    top: 10px;
    right: 10px;
    min-width: 44px;
    height: 24px;
    font-size: 0.62rem;
  }

  .foodtruck-card__body {
    padding: 1rem 1rem 1.1rem;
    gap: 5px;
  }

  .foodtruck-card__name {
    font-size: clamp(1.05rem, 5vw, 1.3rem);
  }

  .foodtruck-card__truck {
    font-size: 0.72rem;
  }

  .foodtruck-card__desc {
    font-size: 0.92rem;
  }

  .vote-dialog {
    width: min(100vw - 16px, 760px);
  }

  .vote-dialog__body {
    padding: 1rem 1rem 1.1rem;
  }

  .vote-dialog__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .vote-dialog__confirm,
  .vote-dialog .button--ghost {
    width: 100%;
  }

  .success-card {
    padding: 0.95rem 1rem 1.02rem;
  }

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

  .section-head > div {
    text-align: center;
  }

  .section-head p {
    font-size: 0.92rem;
    line-height: 1.35;
    text-wrap: balance;
  }

  .section-head .button--small {
    width: 100%;
    min-height: 48px;
    padding-left: 16px;
    padding-right: 16px;
    white-space: nowrap;
  }

  .ranking-card,
  .ranking-item {
    border-radius: 22px;
  }

  .ranking-media {
    border-radius: 22px 22px 0 0;
  }

  .ranking-media__image {
    height: clamp(150px, 48vw, 210px);
  }

  .rank-medal {
    top: 10px;
    right: 10px;
    left: auto;
    width: 58px;
    height: 76px;
    transform: rotate(8deg);
  }

  .rank-medal__circle {
    width: 56px;
    height: 56px;
  }

  .rank-medal__circle strong {
    font-size: 1.45rem;
  }

  .rank-medal__ribbons {
    left: 11px;
    top: 42px;
    width: 30px;
    height: 34px;
  }

  .rank-medal__ribbons span {
    width: 16px;
    height: 38px;
  }

  .leader-chip {
    left: 12px;
    bottom: 12px;
    padding: 0.45rem 0.7rem;
    font-size: 0.72rem;
  }

  .ranking-body {
    padding: 1.05rem 1.1rem 1.15rem;
  }

  .ranking-title {
    font-size: clamp(1.25rem, 6vw, 1.8rem);
  }

  .ranking-truck {
    margin: 0.15rem 0 0.55rem;
    font-size: 0.84rem;
  }

  .ranking-description {
    font-size: 0.95rem;
    -webkit-line-clamp: 3;
  }

  .ranking-progress {
    margin-top: 0.55rem;
    height: 7px;
  }

  .ranking-footer {
    margin-top: 0.35rem;
  }

  .votes-pill {
    padding: 0.55rem 0.8rem;
  }

  .votes-pill strong {
    font-size: 1.2rem;
  }
}
