/* ==========================================================================
   Knesset 99 – Elections hub landing page
   ========================================================================== */

@font-face {
  font-family: "doopro";
  src: url("../fonts/oedoopro-light-webfont.4ef01ad3823c.woff2") format("woff2"),
       url("../fonts/oedoopro-light-webfont.6045c9e22a8e.woff") format("woff");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "doopro";
  src: url("../fonts/oedoopro-regular-webfont.c36def7b576a.woff2") format("woff2"),
       url("../fonts/oedoopro-regular-webfont.bd368ba9de6f.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "doopro";
  src: url("../fonts/oedoopro-medium-webfont.ba7dacf3d7cd.woff2") format("woff2"),
       url("../fonts/oedoopro-medium-webfont.d3d5bb4a8a71.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}
/* Doo Pro has no bold cut – Heebo (variable 700–900) is used for bold display text */
@font-face {
  font-family: "heebo";
  src: url("../fonts/heebo-hebrew.eab05995363a.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "heebo";
  src: url("../fonts/heebo-latin.14af0c7ba993.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy-900: #071436;
  --navy-800: #0b1d4d;
  --navy-700: #14286a;
  --blue-600: #1e5bb8;
  --blue-500: #2563eb;
  --blue-100: #e3ecfb;
  --red-500: #e1252f;
  --ink: #14244f;
  --muted: #5b6785;
  --line: #d9e1ef;
  --bg: #eef2f8;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(11, 29, 77, .08);
  --shadow-hover: 0 8px 22px rgba(11, 29, 77, .16);
  --page-max: 1120px;
  --gutter: clamp(12px, 3vw, 24px);
  --font-bold: "heebo", "doopro", "Arial Hebrew", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "doopro", "Arial Hebrew", Arial, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

[hidden] { display: none !important; }

/* Uploaded single-colour icon, tinted with the current text colour like the SVG sprite icons */
.icon-img {
  display: block;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 6px; }

.page {
  background: linear-gradient(#f7f9fd, var(--bg) 600px);
  min-height: 100vh;
  overflow: hidden;
}

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

.hero {
  position: relative;
  color: #fff;
  background: var(--navy-800) var(--hero-img) center 35% / cover no-repeat;
  isolation: isolate;
}
.hero::before { /* legibility gradient + fade into page */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to left, rgba(7, 20, 54, .72) 0%, rgba(7, 20, 54, .25) 45%, rgba(7, 20, 54, 0) 70%),
    linear-gradient(to bottom, rgba(7, 20, 54, .15) 0%, rgba(7, 20, 54, .1) 55%, rgba(7, 20, 54, .55) 100%);
}

.hero__inner {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  min-height: clamp(340px, 38vw, 430px);
  padding: clamp(84px, 9vw, 120px) var(--gutter) clamp(64px, 7vw, 84px);
  display: grid;
  align-content: end;
  gap: clamp(12px, 1.6vw, 18px);
}

.hero__logo { position: absolute; top: clamp(18px, 3vw, 32px); left: var(--gutter); }
.hero__logo img { width: clamp(84px, 10vw, 120px); height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }

.hero__title {
  font-family: var(--font-bold);
  font-weight: 900;
  font-size: clamp(32px, 5.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -.01em;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .55);
}
.hero__title span { display: block; }

.countdown {
  justify-self: center;
  width: min(100%, 440px);
  padding: 10px 18px 14px;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(25, 61, 150, .78), rgba(11, 29, 77, .88));
  border: 1px solid rgba(129, 170, 255, .55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.countdown__label { font-family: var(--font-bold); font-weight: 800; font-size: clamp(17px, 2vw, 20px); margin-bottom: 8px; }
.countdown__units { display: flex; align-items: center; justify-content: center; gap: 8px; direction: ltr; }
.countdown__unit {
  flex: 1 1 0;
  max-width: 80px;
  padding: 6px 4px 5px;
  border-radius: 10px;
  background: rgba(7, 20, 54, .6);
  border: 1px solid rgba(129, 170, 255, .35);
}
.countdown__num {
  display: block;
  font-family: var(--font-bold);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.countdown__name { display: block; font-size: 14px; font-weight: 500; opacity: .85; }
.countdown__sep { font-family: var(--font-bold); font-weight: 800; font-size: 22px; opacity: .7; margin-top: -14px; }
.countdown.is-over { padding: 14px 18px; } /* message only: equal top/bottom space */
.countdown.is-over .countdown__label { margin: 0; }
.countdown.is-over .countdown__units { display: none; }

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

.content {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.card,
.section { /* every block sits on a white frame */
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section {
  --pad: clamp(14px, 2vw, 22px);
  padding: 16px var(--pad) calc(var(--pad) - 4px);
}

.section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-bold);
  font-weight: 800;
  font-size: clamp(19px, 2.1vw, 23px);
  color: var(--navy-800);
  margin-bottom: 12px;
}
.section__title svg { width: 22px; height: 22px; color: var(--blue-600); flex: none; }

/* ---------- Horizontal scroller ------------------------------------------ */

.scroller { position: relative; }
.scroller__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  padding: 4px 2px 10px;
}
.scroller__track::-webkit-scrollbar { display: none; }
/* Inside a framed block, let rows scroll edge-to-edge of the frame while lining up with its padding at rest */
.section .scroller__track,
.timeline .scroller__track {
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--pad);
  scroll-padding-inline: var(--pad);
}
.scroller__track > * { scroll-snap-align: start; flex: none; }

.scroller__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 30px;
  height: 30px;
  margin-top: -18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--blue-600);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.scroller__btn svg { width: 16px; height: 16px; }
.scroller__btn:hover { transform: scale(1.08); }
.scroller__btn:active { transform: scale(.95); }
.scroller__btn--prev { right: -6px; }
.scroller__btn--prev svg { transform: scaleX(-1); }
.scroller__btn--next { left: -6px; }
.scroller__btn[disabled] { opacity: 0; pointer-events: none; }
.scroller--arrows-out .scroller__btn--prev { right: -4px; }
.scroller--arrows-out .scroller__btn--next { left: -4px; }

@media (hover: none) { .scroller__btn { display: none; } }

/* ---------- Timeline ----------------------------------------------------- */

.timeline {
  --pad: 22px;
  margin-top: -44px; /* overlap the hero */
  padding: 18px var(--pad) 8px;
  position: relative;
  z-index: 1;
}
.timeline__track { gap: 0; padding-top: 18px; }
.timeline__step {
  position: relative;
  width: calc(100% / 10);
  min-width: 100px;
  display: flex;
}
.timeline__step::before { /* connector */
  content: "";
  position: absolute;
  top: 13px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.timeline__step:last-child::before { display: none; }
.timeline__step.is-done::before { background: var(--blue-600); }

.timeline__btn {
  flex: 1;
  padding: 0 5px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 0;
  border-radius: 10px;
  background: none;
  cursor: pointer;
}
.timeline__btn--static { cursor: default; }
button.timeline__btn:hover .timeline__title { color: var(--blue-500); }
button.timeline__btn:hover .timeline__num { transform: scale(1.12); border-color: var(--blue-500); }

.timeline__num {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--muted);
  transition: transform .15s, border-color .15s;
}
.timeline__step.is-done .timeline__num { background: var(--blue-100); border-color: var(--blue-600); color: var(--blue-600); }
.timeline__step.is-current .timeline__num {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, .18);
}
.timeline__step.is-current::after { /* "you are here" arrow */
  content: "";
  position: absolute;
  top: -17px;
  left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top: 8px solid var(--blue-500);
  border-bottom: 0;
  animation: nudge 1.4s ease-in-out infinite;
}
@keyframes nudge { 50% { transform: translateY(3px); } }

.timeline__icon { width: 24px; height: 24px; margin: 10px 0 6px; flex: none; color: var(--navy-700); }
.timeline__step.is-current .timeline__icon { color: var(--blue-500); }
.timeline__title { font-size: 13px; font-weight: 500; line-height: 1.2; transition: color .15s; }
.timeline__step.is-current .timeline__title { font-weight: 700; color: var(--blue-500); }
.timeline__date { margin-top: auto; padding-top: 4px; font-size: 12px; color: var(--muted); }

/* ---------- Timeline step popup ---------------------------------------- */

body:has(.step-modal[open]) { overflow: hidden; }

.step-modal {
  width: min(440px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  overflow: visible;
}
.step-modal::backdrop {
  background: rgba(7, 20, 54, .6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.step-modal[open] .step-modal__card { animation: modal-in .22s cubic-bezier(.2, .8, .3, 1); }
.step-modal[open]::backdrop { animation: fade-in .2s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }

.step-modal__card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 24px 60px rgba(7, 20, 54, .45);
}

.step-modal__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 84px;
  padding: 18px 20px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 120%, rgba(59, 130, 246, .55), transparent 60%),
    linear-gradient(135deg, var(--navy-700), var(--navy-900));
}
.step-modal__num {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-bold);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  background: #fff;
  color: var(--blue-500);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .15);
}
.step-modal__icon {
  position: absolute;
  left: 64px;
  top: 50%;
  width: 76px;
  height: 76px;
  transform: translateY(-50%) rotate(-8deg);
  color: #fff;
  opacity: .14;
  pointer-events: none;
}
.step-modal__status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
}
.step-modal__status[data-state="current"] { background: var(--blue-500); border-color: #6ea0ff; }
.step-modal__status[data-state="done"] { background: rgba(22, 163, 74, .3); border-color: rgba(74, 222, 128, .45); }
.step-modal__close {
  margin-inline-start: auto;
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  transition: background .15s;
}
.step-modal__close:hover { background: rgba(255, 255, 255, .26); }
.step-modal__close svg { width: 16px; height: 16px; }

.step-modal__body { padding: 20px 22px 22px; }
.step-modal__title {
  font-family: var(--font-bold);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  color: var(--navy-800);
}
.step-modal__title:focus { outline: none; }
.step-modal__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: var(--blue-100);
  color: var(--blue-600);
}
.step-modal__date svg { width: 16px; height: 16px; }
.step-modal__text { margin-top: 14px; font-size: 15px; line-height: 1.6; color: #2b3a5f; }
.rich-text > * + * { margin-top: .6em; }
.rich-text ul, .rich-text ol { padding-inline-start: 1.3em; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text a { color: var(--blue-600); text-decoration: underline; }
.rich-text strong { font-weight: 700; }
.step-modal__link { margin-top: 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: filter .15s, transform .15s;
}
.btn svg { width: 14px; height: 14px; }
.btn--blue { background: var(--blue-500); color: #fff; box-shadow: 0 4px 14px rgba(37, 99, 235, .35); }
.btn--blue:hover { filter: brightness(1.08); }
.step-modal__link { padding: 10px 22px; }

/* ---------- Parties ------------------------------------------------------ */

.parties { gap: 10px; }
.parties > li { width: calc((100% - 70px) / 8); min-width: 112px; } /* 8 fill the row, more scroll */
/* Center a short row; auto margins collapse to 0 once the row overflows, so scrolling still starts at the edge */
.parties > li:first-child { margin-inline-start: auto; }
.parties > li:last-child { margin-inline-end: auto; }
.party {
  width: 100%;
  padding: 12px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
button.party:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.party--static { cursor: default; } /* no candidates yet */
.party[aria-expanded="true"] { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(37, 99, 235, .18), var(--shadow-hover); }
.party__logo { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }

.candidates {
  margin-top: 6px;
  padding: 16px var(--pad) 12px;
  margin-inline: calc(var(--pad) * -1); /* full-bleed inside the section frame */
  margin-bottom: calc((var(--pad) - 4px) * -1);
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(#cfd8e6, #dfe6f1);
  animation: reveal .25s ease-out;
}
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } }
/* one scrolling row (shares .scroller / .scroller__track with the other rows) */
.candidates__list { gap: 12px; padding-top: 2px; padding-bottom: 6px; }
.candidates__list > .candidate { width: 132px; }
.candidates__list > .candidate:first-child { margin-inline-start: auto; } /* centre a short list */
.candidates__list > .candidate:last-child { margin-inline-end: auto; }
.candidate { text-align: center; }
.candidate__pos {
  position: absolute;
  top: 6px;
  inset-inline-start: 6px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-family: var(--font-bold);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: var(--blue-500);
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(11, 29, 77, .2);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.candidate__card {
  position: relative;
  height: 100%; /* equal heights per row; photo + two-line name give a ~3:4 card */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px 12px;
  border-radius: 10px;
  background: linear-gradient(170deg, #fff, #e9eef5);
  border: 1px solid #fff;
  box-shadow: var(--shadow);
}
.candidate__card--link { transition: transform .15s, box-shadow .15s; }
.candidate__card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.candidate__card--link:hover .candidate__name { color: var(--blue-500); }
/* Fixed text slots under the photo, so every card has the same layout:
   the name always takes 2 lines, the credit always takes 3 small lines – reserved even when empty. */
.candidate__name {
  flex: none;
  width: 100%;
  height: 2.4em;              /* exactly two lines; a one-line name sits in the middle */
  display: grid;
  place-items: center;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: var(--navy-800);
}
.candidate__name > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.candidate__credit {
  flex: none;
  height: 3.9em;              /* three lines of 1.3 */
  width: 100%;
  margin-top: -4px;
  padding: 0 2px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--muted);
}
.candidate__photo { display: block; width: 100%; }
.candidate__photo img, .candidate__avatar { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: center top; }
.candidate__avatar { display: grid; place-items: end center; overflow: hidden; background: #dde3ec; }
.candidate__placeholder { width: 74%; height: 84%; fill: #b4bfd1; }
.candidate__placeholder { width: 74%; height: 84%; fill: #b4bfd1; }

/* ---------- Explainers --------------------------------------------------- */

.explainers { gap: 10px; }
.explainers > li { width: calc((100% - 50px) / 6); min-width: 112px; }
.explainer {
  height: 100%;
  min-height: 104px;
  padding: 14px 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
a.explainer:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.explainer--static { cursor: default; }
.explainer__icon { width: 30px; height: 30px; color: var(--blue-600); }
.explainer__image { width: 34px; height: 34px; object-fit: contain; }
.explainer__title { font-weight: 700; font-size: 14px; line-height: 1.15; flex: 1; display: grid; place-items: center; }
.explainer__go { color: var(--blue-600); }
.explainer__go svg { width: 14px; height: 14px; }

/* ---------- Videos ------------------------------------------------------- */

.videos > li { width: calc((100% - 36px) / 4); min-width: 220px; } /* 4 visible, rest scroll */
.video { display: block; }
.video__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy-800);
  box-shadow: var(--shadow);
}
.video__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.video:hover .video__thumb img { transform: scale(1.05); }
.video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(225, 37, 47, .92);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  transition: transform .2s;
}
.video__play svg { width: 18px; height: 18px; margin-left: 3px; }
.video:hover .video__play { transform: scale(1.1); }

/* ---------- Video player popup ------------------------------------------- */

body:has(.video-modal[open]) { overflow: hidden; }

.video-modal {
  width: min(900px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
}
.video-modal::backdrop { background: rgba(7, 20, 54, .8); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.video-modal[open] .video-modal__card { animation: modal-in .22s cubic-bezier(.2, .8, .3, 1); }
.video-modal[open]::backdrop { animation: fade-in .2s ease-out; }
.video-modal__card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy-900);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.video-modal__player { aspect-ratio: 16 / 9; background: #000; }
.video-modal__player iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-modal__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
}
.video-modal__title { flex: 1; font-size: 15px; font-weight: 500; line-height: 1.4; }
.video-modal__title:focus { outline: none; }

/* ---------- Games -------------------------------------------------------- */

.games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* blocks fill in order: two per row */
  gap: 14px;
  align-items: stretch;
}
.game-list { display: grid; gap: 10px; align-content: stretch; }

.game-hero {
  display: grid;
  place-items: center;
  border-radius: 14px;
  transition: transform .2s;
}
.game-hero img { width: 100%; height: auto; transition: transform .3s ease; }
a.game-hero:hover img { transform: scale(1.03) rotate(-1deg); }

.game {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--tint);
  border: 1px solid color-mix(in srgb, var(--tone) 18%, transparent);
  transition: transform .15s, box-shadow .15s;
}
a.game:hover { transform: translateX(-3px); box-shadow: var(--shadow-hover); }
.game--static { cursor: default; }
.game--blue   { --tone: #2563eb; --tint: #e6efff; }
.game--purple { --tone: #6c3fd8; --tint: #efe9fd; }
.game--green  { --tone: #16a34a; --tint: #e5f6ea; }
.game__icon { flex: none; width: 52px; display: grid; place-items: center; }
.game__icon img { max-width: 100%; height: 40px; object-fit: contain; }
.game__text { flex: 1; min-width: 0; }
.game__title { display: block; font-family: var(--font-bold); font-weight: 800; font-size: 16px; color: var(--navy-800); }
.game__sub { display: block; font-size: 13px; color: var(--muted); }
.game__go {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--tone);
  box-shadow: var(--shadow);
}
.game__go svg { width: 14px; height: 14px; }

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

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px max(var(--gutter), (100% - var(--page-max)) / 2 + var(--gutter)) calc(18px + env(safe-area-inset-bottom));
  background: var(--navy-800);
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
}
.footer img { width: 72px; height: auto; }

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

@media (max-width: 900px) {
  .games { grid-template-columns: minmax(0, 1fr); }
  .videos > li { width: min(72%, 300px); min-width: 0; }
}

@media (max-width: 700px) {
  .hero { background-position: 30% center; }
  .hero::before {
    background: linear-gradient(to bottom, rgba(7, 20, 54, .55) 0%, rgba(7, 20, 54, .2) 45%, rgba(7, 20, 54, .7) 100%);
  }
  .hero__inner { min-height: 360px; padding-top: 76px; }
  .hero__title { font-size: clamp(26px, 8vw, 40px); }
  .countdown { padding: 8px 12px 12px; }
  .countdown__units { gap: 6px; }

  .timeline { --pad: 10px; padding: 14px var(--pad) 4px; }
  .timeline__step { min-width: 92px; }

  .step-modal { /* bottom sheet */
    width: 100%;
    margin: auto 0 0;
  }
  .step-modal__card { border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .step-modal[open] .step-modal__card { animation: sheet-in .28s cubic-bezier(.2, .8, .3, 1); }
  @keyframes sheet-in { from { transform: translateY(100%); } }
  .step-modal__link { display: flex; justify-content: center; }

  .candidates__list > .candidate { width: 112px; }
  .candidate__name { font-size: 13px; }

  .explainers > li { min-width: 104px; }

  .game__title { font-size: 15px; }

  .footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
