/* ==========================================================================
   Random Encounters — лендінг конкурсу
   ========================================================================== */

:root {
  --bg: #0d0a11;
  --bg-alt: #120e18;
  --bg-elev: #191320;
  --bg-elev-2: #211a2b;

  --gold: #c9a170;
  --gold-bright: #eccd9b;
  --gold-dim: rgba(201, 161, 112, 0.24);
  --ember: #e0813c;

  --text: #ece5dc;
  --muted: #a2988e;

  --font-display: 'Forum', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);

  --d20-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12.02 4.93 18.49 16.1 5.55 16.1Z'/%3E%3Cpath d='M12.34 1 12.41 4.13 19.65 6.05Z'/%3E%3Cpath d='M11.66 1 11.59 4.13 4.35 6.05Z'/%3E%3Cpath d='M21.34 8.99 22.28 18.02 19.36 16.32Z'/%3E%3Cpath d='M2.66 8.99 1.72 18.02 4.64 16.32Z'/%3E%3Cpath d='M12.75 4.93 18.93 15.64 21.12 7.17Z'/%3E%3Cpath d='M11.25 4.93 5.07 15.64 2.88 7.17Z'/%3E%3Cpath d='M12.02 23 18.22 16.73 5.81 16.73Z'/%3E%3Cpath d='M19.05 16.73 13.72 22.25 21.97 18.52Z'/%3E%3Cpath d='M4.89 16.73 10.21 22.25 1.97 18.52Z'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 620px at 50% -180px, rgba(224, 129, 60, 0.16), transparent 70%),
    radial-gradient(900px 520px at 12% 22%, rgba(96, 74, 140, 0.14), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--gold-bright);
  text-decoration-color: var(--gold-dim);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

p {
  margin: 0 0 1.1em;
}

.svg-sprite {
  display: none;
}

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--gold);
  color: #17110b;
  border-radius: 0 0 var(--radius) 0;
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* ---------- Layout ---------- */

.container {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.container--narrow {
  width: min(800px, 100%);
  margin-inline: auto;
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.015));
  border-block: 1px solid rgba(255, 255, 255, 0.05);
}

.section--tight {
  padding: clamp(40px, 5vw, 64px) 0;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 28px;
  color: var(--gold-bright);
}

.section__title::after {
  content: '';
  display: block;
  width: 84px;
  height: 2px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section__title--center {
  text-align: center;
}

.section__title--center::after {
  margin-inline: auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 0.95rem/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn--primary {
  --btn-bg: linear-gradient(180deg, #d8b07c, #b98a53);
  --btn-fg: #1a1208;
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(201, 161, 112, 0.22);
}

.btn--primary:hover {
  box-shadow: 0 14px 34px rgba(201, 161, 112, 0.34);
}

.btn--gold {
  --btn-bg: rgba(201, 161, 112, 0.12);
  --btn-fg: var(--gold-bright);
  border-color: var(--gold);
}

.btn--gold:hover {
  --btn-bg: rgba(201, 161, 112, 0.22);
}

.btn--ghost {
  --btn-fg: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.8rem;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1rem;
}

.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(13, 10, 17, 0.55);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-stuck {
  background: rgba(13, 10, 17, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 70px;
}

.site-header__logo {
  flex: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--gold-bright);
  transition: color 0.18s ease;
}

.site-header__logo:hover {
  color: #fff;
}

.site-nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 4px 16px;
  justify-content: center;
}

.site-nav a {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0.82;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--gold-bright);
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--gold-dim);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--gold-bright);
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.first-screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 70px);
}

.hero {
  position: relative;
  display: flex;
  flex: 1;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
  /* Зверху місце під лого, знизу ~100px до стрічки спонсорів. */
  padding: clamp(80px, 9vw, 120px) 0 100px;
  text-align: center;
  background-color: var(--bg);
}

.hero__bg {
  position: absolute;
  /* Запас з боків — той простір, у який їде картинка при паралаксі.
     Не менший за MAX_SHIFT у script.js, інакше на вузькому екрані
     край блоку заїде всередину героя і оголить смугу фону. */
  inset: 0 calc(-1 * max(7%, 52px));
  z-index: 0;
  background: url('assets/main-image.jpg') center 30% / cover no-repeat;
  transform: translate3d(var(--parallax, 0px), 0, 0);
  will-change: transform;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(78% 62% at 50% 58%, rgba(13, 10, 17, 0.05), transparent 72%),
    linear-gradient(180deg,
      rgba(13, 10, 17, 0.1) 0%,
      rgba(13, 10, 17, 0.02) 28%,
      rgba(13, 10, 17, 0.08) 74%,
      var(--bg) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 70px;
}

.hero__logo {
  width: min(660px, 90%);
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.85));
}

.hero__lead {
  max-width: 34ch;
  margin: 26px 0 26px;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.hero__dates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.hero__dates li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 150px;
  padding: 12px 22px;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.hero__dates span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__dates strong {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 400;
  color: var(--gold-bright);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------- Countdown ---------- */

.countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 8px 0 30px;
}

.countdown__label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.countdown__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 84px;
  padding: 10px 16px;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  background: rgba(13, 10, 17, 0.4);
}

.countdown__value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

.countdown__name {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.countdown__over {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* ---------- Sponsor strip ---------- */

.sponsor-strip {
  padding: 26px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
}

.sponsor-strip__list {
  display: flex;
  flex-wrap: wrap;
  /* Логотипи різної висоти — рівняємо по центру, як у рядку макета. */
  align-items: center;
  justify-content: center;
  gap: 24px clamp(26px, 5vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sponsor-strip__list li,
.sponsor-strip__list a {
  display: block;
}

.sponsor-strip__list img {
  width: auto;
  height: 12vh;
  object-fit: contain;
  opacity: 0.78;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sponsor-strip__list a:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

/* ---------- Dice ---------- */

.dice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  margin: 42px 0 26px;
}

.die-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-alt));
  box-shadow: var(--shadow);
}

/* Тексти підказок різної довжини, тому картки вирівнюємо по спільних рядках
   сітки: опис, «сцена» з результатом, кнопка і список варіантів збігаються
   по висоті незалежно від того, скільки рядків займає текст. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 940px) {
    .dice {
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: auto auto auto auto;
    }

    .die-card {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
      row-gap: 0;
    }
  }
}

.die-card__head {
  position: relative;
}

.die-card__badge {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.die-card__icon {
  position: absolute;
  top: -4px;
  right: 0;
  width: 42px;
  height: 42px;
  fill: var(--gold);
  stroke: none;
  opacity: 0.35;
}

.die-card__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
}

.die-card__hint {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.die-card__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 138px;
  margin: 6px 0 18px;
  padding: 18px 16px;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  background:
    radial-gradient(120px 80px at 50% 40%, rgba(201, 161, 112, 0.1), transparent 70%),
    rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.die-card__value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  line-height: 1.1;
  text-align: center;
  color: var(--gold-bright);
}

.die-card__value--text {
  font-size: clamp(1.35rem, 3.4vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.die-card__caption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.die-card__flash {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(224, 129, 60, 0.16);
  border: 1px solid rgba(224, 129, 60, 0.5);
  color: #f3b57c;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  animation: pop-in 0.35s ease;
}

.die-card__stage.is-rolling .die-card__value {
  color: var(--text);
  opacity: 0.75;
  filter: blur(0.4px);
}

.die-card__stage.is-landed {
  animation: land-flash 0.6s ease;
}

.die-card__stage.is-landed .die-card__value {
  animation: land-pop 0.45s cubic-bezier(0.2, 1.5, 0.4, 1);
}

@keyframes land-flash {
  0% {
    border-color: var(--gold-bright);
    box-shadow: 0 0 0 0 rgba(201, 161, 112, 0.5);
  }

  100% {
    border-color: var(--gold-dim);
    box-shadow: 0 0 0 18px rgba(201, 161, 112, 0);
  }
}

@keyframes land-pop {
  0% {
    transform: scale(0.82);
  }

  60% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.btn--roll {
  width: 100%;
}

.btn--roll svg {
  fill: currentColor;
  stroke: none;
  transition: transform 0.2s ease;
}

.btn--roll:hover svg {
  transform: rotate(-18deg);
}

.btn--roll.is-rolling svg {
  animation: tumble 0.6s linear infinite;
}

@keyframes tumble {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.die-card__options {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 8px;
  margin-top: 18px;
}

.die-card__options--list {
  flex-direction: column;
}

.option {
  flex: 0 1 auto;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font: 500 0.86rem/1.35 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.option:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.option[aria-pressed='true'],
.option.is-highlight {
  border-color: var(--gold);
  background: rgba(201, 161, 112, 0.16);
  color: var(--gold-bright);
}

.option.is-highlight {
  transition: none;
}

.die-card__options--list .option {
  width: 100%;
}

.option__title {
  display: block;
  font-weight: 600;
}

.option__hint {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.option[aria-pressed='true'] .option__hint {
  color: rgba(236, 205, 155, 0.75);
}

/* ---------- Dice summary ---------- */

.dice-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(201, 161, 112, 0.1), rgba(224, 129, 60, 0.05));
}

.dice-summary__label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dice-summary__text {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  line-height: 1.3;
  color: var(--gold-bright);
}

.dice-summary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dice-note {
  margin-top: 26px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Prizes ---------- */

.prizes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.prizes--places {
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 20px;
}

.prizes--places .prize {
  flex: 1 1 240px;
  min-width: 0;
}

.prize {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
}

/* Гран-прі — колаж компактніший за текст, обидва вертикально по центру. */
.prize--grand {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 40px;
  width: 100%;
  padding: 28px 36px 28px 20px;
  border-color: var(--gold-dim);
  background:
    linear-gradient(180deg, rgba(201, 161, 112, 0.1), transparent 55%),
    var(--bg-elev-2);
  box-shadow: var(--shadow);
}

.prize__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  gap: 16px;
}

/* Колажі — png з альфою: без підсвітки чорні предмети (монітор, фігурка дракона)
   зливалися б із темною карткою. */
.prize__media {
  position: relative;
}

.prize--grand .prize__media {
  flex: 0 1 580px;
  max-width: 580px;
  min-width: 0;
}

.prize__media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(56% 52% at 50% 56%,
      rgba(201, 161, 112, 0.28),
      rgba(201, 161, 112, 0.08) 52%,
      transparent 72%);
}

.prize__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.55));
}

.prize__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prize__icon {
  flex: none;
  width: 28px;
  height: 28px;
  fill: var(--gold);
  stroke: none;
  opacity: 0.8;
}

.prize--grand .prize__icon {
  width: 34px;
  height: 34px;
  opacity: 1;
}

.prize__place {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.prize--grand .prize__place {
  font-size: 1.7rem;
}

.prize__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prize__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 0.94rem;
  line-height: 1.5;
}

.prize__list li:last-child {
  margin-bottom: 0;
}

.prize__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}

.prize__list a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
}

.prize__list a:hover {
  color: var(--gold-bright);
  border-bottom-color: currentColor;
}

.prizes-bonus {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 20px 0 0;
  padding: 20px 26px;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(201, 161, 112, 0.12), rgba(224, 129, 60, 0.07));
  color: var(--text);
}

.prizes-bonus strong {
  color: var(--gold-bright);
  font-weight: 700;
}

.prizes-bonus__icon {
  flex: none;
  width: 34px;
  height: 34px;
  fill: var(--gold);
  stroke: none;
}

.prizes-bonus__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prizes-bonus__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.prizes-bonus__list li:last-child {
  margin-bottom: 0;
}

.prizes-bonus__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.prizes-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* ---------- Rules ---------- */

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.spec__label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spec__value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold-bright);
}

.spec__note {
  color: var(--muted);
  font-size: 0.85rem;
}

.rules-note {
  color: var(--muted);
  font-style: italic;
}

.dice-list {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.dice-list li {
  position: relative;
  padding: 0 0 0 38px;
  margin-bottom: 14px;
}

.dice-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background-color: var(--gold);
  -webkit-mask: var(--d20-mask) center / contain no-repeat;
  mask: var(--d20-mask) center / contain no-repeat;
}

.rules-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Judges ---------- */

.judges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 940px;
  margin: 12px auto 0;
  padding: 0;
  list-style: none;
}

.judge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.judge__photo {
  display: block;
  width: min(220px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold-dim);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.judge__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.judge:hover .judge__photo {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.judge__name {
  margin-top: 18px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.judge__name:hover {
  color: var(--gold-bright);
}

.judge__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.judge__link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.judge__link:hover {
  color: var(--gold-bright);
}

/* ---------- Sponsors ---------- */

.sponsors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-alt));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sponsor-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
}

.sponsor-card__logo {
  display: flex;
  align-items: center;
  min-height: 58px;
  margin-bottom: 14px;
}

.sponsor-card__logo img {
  width: auto;
  height: 56px;
  max-width: none;
  object-fit: contain;
  opacity: 0.92;
}

.sponsor-card__logo .logo--square {
  height: 56px;
  max-width: none;
  max-height: none;
}

.sponsor-card__name {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.sponsor-card__text {
  flex: 1;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.sponsor-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--gold-bright);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.sponsor-card__link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.sponsor-card__link:hover {
  text-decoration: underline;
}

/* ---------- Media partners marquee ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: marquee var(--marquee-duration, 42s) linear infinite;
}

.marquee__group {
  display: flex;
  flex: none;
  gap: 26px;
}

/* На телефоні :hover липає після тапу по посиланню — стрічка лишається
   на паузі, доки не торкнешся чогось іншого. Пауза лише для миші. */
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee__track {
    animation-play-state: paused;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    /* Зсув рівно на одну копію набору — тому стик непомітний. */
    transform: translateX(calc(-1 * var(--marquee-shift, 50%)));
  }
}

.media-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.media-logo:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.media-logo svg {
  width: 30px;
  height: 30px;
  fill: var(--gold);
  stroke: none;
  opacity: 0.45;
}

.media-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.media-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ---------- FAQ ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq__item[open],
.faq__item:hover {
  border-color: var(--gold-dim);
}

.faq__question {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  margin: 6px 0 0 auto;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.faq__item[open] .faq__question::after {
  transform: rotate(-135deg);
}

.faq__answer {
  padding: 0 22px 20px;
  color: var(--muted);
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Final CTA ---------- */

.final-cta {
  padding: clamp(60px, 9vw, 110px) 0;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(224, 129, 60, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.final-cta__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  fill: var(--gold);
  stroke: none;
}

.final-cta__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.final-cta__text {
  max-width: 46ch;
  margin: 0 auto 26px;
  color: var(--muted);
}

.final-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Кнопки різні за довжиною тексту — рівняємо по найширшій. */
.final-cta__actions .btn {
  width: min(100%, 33rem);
  line-height: 1.3;
  text-align: center;
}

/* Іконка на всю висоту підпису у два рядки. */
.final-cta__actions .btn svg {
  width: 30px;
  height: 30px;
}

/* ---------- Terms ---------- */

.terms {
  counter-reset: terms;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

/* Юридичний текст читають вибірково, тому він іде на всю ширину контейнера
   і дрібнішим кеглем: довші рядки й нижчий інтерліньяж стискають блок удвічі. */
.terms__item {
  counter-increment: terms;
  position: relative;
  padding-left: 42px;
  margin-bottom: 12px;
}

.terms__item:last-child {
  margin-bottom: 0;
}

.terms__item::before {
  content: counter(terms);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-display);
  font-size: 0.86rem;
  color: var(--gold-bright);
}

.terms__title {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.terms__item p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.terms__item p:last-child {
  margin-bottom: 0;
}

.terms__item strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.28);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.site-footer__logo {
  width: auto;
  height: 84px;
  opacity: 0.9;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
}

.site-footer__nav a {
  color: var(--text);
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0.8;
}

.site-footer__nav a:hover {
  color: var(--gold-bright);
  opacity: 1;
}

.site-footer__note,
.site-footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

/* Восьмий пункт меню поруч із кнопкою вже не міститься в один рядок. Кнопку
   прибираємо раніше за меню: подати роботу можна ще з героя, правил і фіналу. */
@media (max-width: 1180px) {
  .site-header__cta {
    display: none;
  }
}

@media (max-width: 960px) {
  .prize--grand {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 18px;
    padding: 24px;
  }

  .prize--grand .prize__media {
    flex: 1 1 100%;
    max-width: 320px;
    margin-inline: auto;
  }

  .prize--grand .prize__body {
    flex: 1 1 100%;
  }

  .site-header__cta {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    background: rgba(13, 10, 17, 0.98);
    border-bottom: 1px solid transparent;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  /* Вісім пунктів на низькому екрані впритул до ліміту висоти — краще нехай
     список прокручується, ніж останній пункт обріжеться. */
  .site-nav.is-open {
    max-height: 70vh;
    overflow-y: auto;
    padding: 10px 20px 20px;
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  /* У випадному меню місця вистачає — лишаємо звичний розмір. */
  .site-nav a {
    width: 100%;
    padding: 12px 0;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(1180px, 100% - 32px);
  }

  .dice-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .dice-summary__actions {
    width: 100%;
  }

  .dice-summary__actions .btn {
    flex: 1;
  }

  /* У портреті cover лишав би від панорами вузьку смужку тулуба: щоб уміститись
     по висоті, картинку доводилось збільшувати втричі. Тому кладемо її стрічкою
     на всю ширину екрана, а верх і низ розчиняємо у фоні.
     Градієнт-шар має ту саму геометрію, що й картинка, тож розтушовує рівно її краї. */
  .hero__bg {
    --band-w: 180vw;
    --band-h: 90vw;
    background:
      linear-gradient(180deg,
        var(--bg) 0%,
        rgba(13, 10, 17, 0) 32%,
        rgba(13, 10, 17, 0) 62%,
        var(--bg) 100%) 50% 60% / 100% var(--band-h) no-repeat,
      url('assets/main-image-sm.jpg') 45% 60% / var(--band-w) auto no-repeat;
  }

  .hero__inner {
    margin-top: 0;
  }

  /* Гарантований проміжок між лого і плитками дат. */
  .hero__dates {
    padding-top: 28px;
  }

  .sponsor-strip__list {
    gap: 18px 24px;
  }

  .sponsor-strip__list img {
    height: 56px;
  }

  /* Картки спонсорів займали б пів екрана — гортаємо їх убік. */
  .sponsors {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Вихід за поля контейнера, щоб стрічка скролилась від краю до краю. */
    margin-inline: -16px;
    padding: 0 16px 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dim) transparent;
  }

  .sponsors .sponsor-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }

  .countdown__unit {
    min-width: 68px;
    padding: 8px 10px;
  }

  .countdown__value {
    font-size: 1.4rem;
  }

  .countdown__name {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  /* На вузькому екрані підпис і так переноситься — іконка лише крала б місце. */
  .final-cta__actions .btn svg {
    display: none;
  }

  .terms__item {
    padding-left: 36px;
  }

  .terms__item::before {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }

  .judges {
    gap: 10px;
  }

  .judge__name {
    margin-top: 10px;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }

  .judge__link {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee__track {
    animation: none;
  }
}
