/* Alexander Casino — styles production (mobile-first) */

:root {
  --layout-max: 1320px;
  --font-antique: ui-serif, Georgia, "Palatino Linotype", Palatino, "Book Antiqua", "Times New Roman", Times, serif;
  --c-teal-900: #0a2428;
  --c-teal-800: #0c2f34;
  --c-teal-700: #0e3a40;
  --c-teal-text: #0b2f35;
  --c-page: #e8f1f5;
  --c-page-2: #eef5f8;
  --c-white: #ffffff;
  --c-orange: #f47b20;
  --c-orange-hover: #ff8f3d;
  --c-muted: #5c6f73;
  --c-line: #d5e3e8;
  --c-green-dot: #2ecc71;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --shadow-sm: 0 2px 8px rgba(10, 36, 40, 0.08);
  --shadow-md: 0 8px 22px rgba(10, 36, 40, 0.12);
  --shadow-pill: 0 4px 14px rgba(10, 36, 40, 0.12);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --header-h: 58px;
  --z-header: 40;
  --z-overlay: 50;
  --z-drawer: 60;
  --z-mobile-nav: 45;
  --dur: 0.22s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur: 0.01ms;
  }
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, sans-serif;
  background: var(--c-page);
  color: var(--c-teal-text);
  line-height: 1.45;
  min-height: 100dvh;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--c-orange);
  color: var(--c-white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  left: 8px;
}

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--c-teal-800);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header.is-scrolled {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "menu brand actions";
  align-items: center;
  gap: var(--space-3);
  min-height: var(--header-h);
  padding: var(--space-2) var(--space-4);
  max-width: var(--layout-max);
  margin: 0 auto;
}

.header__menu {
  grid-area: menu;
}

.header__brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.header__brand-logo--full {
  display: none;
  height: 34px;
  width: auto;
}

.header__brand-text {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1023px) {
  .header__brand-text {
    display: none;
  }
}

.header__utilities {
  display: none;
  align-items: center;
  gap: 2px;
}

.header__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header__profile {
  display: none;
}

.balance-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: #f4f8fa;
  border-radius: 999px;
  padding: 6px 12px 6px 8px;
  box-shadow: inset 0 0 0 1px rgba(10, 42, 46, 0.06);
  min-width: 0;
}

.balance-pill--dark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-white);
  box-shadow: none;
}

.balance-pill__info {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-orange);
  color: var(--c-white);
  font-size: 0.72rem;
  font-weight: 800;
  font-style: italic;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.balance-pill__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.balance-pill__label {
  font-size: 0.62rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.balance-pill--dark .balance-pill__label {
  color: rgba(255, 255, 255, 0.65);
}

.balance-pill__value {
  font-weight: 700;
  font-size: 0.9rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  padding: 12px 18px;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.cta-button--primary {
  background: var(--c-orange);
  color: var(--c-white);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12);
}

.cta-button--primary:hover {
  background: var(--c-orange-hover);
}

.cta-button--primary:active {
  transform: translateY(1px);
}

.header__deposit {
  padding-inline: 16px;
  white-space: nowrap;
  font-size: 0.95rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--c-white);
  transition: background var(--dur) var(--ease);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.icon-btn:focus-visible,
.cta-button:focus-visible,
a:focus-visible,
.mobile-nav__item:focus-visible,
.footer__lang:focus-visible,
.footer__links a:focus-visible,
.tabs-nav__link:focus-visible,
.drawer__link:focus-visible,
.drawer__close:focus-visible,
.game-card:focus-visible,
.stats-table:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 2px;
}

.icon-btn--round {
  background: var(--c-white);
  color: var(--c-teal-text);
  box-shadow: var(--shadow-pill);
  width: 40px;
  height: 40px;
}

.icon-btn--round:hover {
  background: #f0f7fa;
}

.icon {
  display: block;
  position: relative;
}

.icon--burger {
  width: 20px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  box-shadow: 0 -6px 0 var(--c-white), 0 6px 0 var(--c-white);
}

.icon--chart {
  width: 16px;
  height: 12px;
  border: 2px solid currentColor;
  border-top: none;
  border-radius: 0 0 3px 3px;
  position: relative;
}

.icon--chart::before,
.icon--chart::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 3px;
  background: currentColor;
  border-radius: 1px 1px 0 0;
}

.icon--chart::before {
  left: 2px;
  height: 6px;
}

.icon--chart::after {
  right: 2px;
  height: 9px;
}

.icon--search {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon--search::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  right: -3px;
  bottom: -1px;
  transform: rotate(45deg);
}

.icon--chat {
  width: 16px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.icon--chat::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: currentColor;
}

.icon--user {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon--user::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 20px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 0 0;
  border-bottom: none;
}

.icon--external {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.icon--external::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
}

.icon--chev-left {
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-right: 8px solid currentColor;
  transform: translateX(-2px);
}

.icon--chev-right {
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-left: 8px solid currentColor;
  transform: translateX(2px);
}

.icon--close {
  width: 18px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  border-radius: 2px;
}

.icon--close::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: rotate(-90deg);
  border-radius: 2px;
}

.icon--home {
  width: 16px;
  height: 14px;
  border: 2px solid currentColor;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
}

.icon--home::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: currentColor;
}

.icon--refresh {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-left-color: transparent;
}

.icon--user-tiny {
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.header__util {
  position: relative;
}

.header__util-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--c-green-dot);
  border-radius: 50%;
  border: 2px solid var(--c-teal-800);
}

/* ——— Overlay & drawer ——— */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 18, 22, 0.55);
  z-index: var(--z-overlay);
}

.overlay[hidden] {
  display: none;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(360px, 92vw);
  background: var(--c-teal-800);
  z-index: var(--z-drawer);
  padding: var(--space-5) var(--space-5) var(--space-8);
  overflow-y: auto;
  transform: translateX(-105%);
  transition: transform var(--dur) var(--ease);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.25);
}

.mobile-drawer:not([hidden]) {
  transform: translateX(0);
}

.mobile-drawer[hidden] {
  display: block;
  visibility: hidden;
  pointer-events: none;
}

.mobile-drawer:not([hidden]) {
  visibility: visible;
  pointer-events: auto;
}

.drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.drawer__brand img {
  max-width: 180px;
  height: auto;
}

.drawer__close {
  color: var(--c-white);
}

.drawer__balance {
  margin-bottom: var(--space-3);
}

.drawer__deposit {
  width: 100%;
  margin-bottom: var(--space-5);
}

.drawer__bonus-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  margin: 0 0 var(--space-2);
}

.drawer__progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.drawer__progress-bar {
  display: block;
  height: 100%;
  background: var(--c-orange);
  border-radius: inherit;
}

.drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer__link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--c-white);
  font-weight: 600;
  font-size: 0.95rem;
}

.drawer__link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.drawer__link--active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--c-orange);
}

.drawer__gem {
  color: #9fd4ff;
  font-size: 0.8rem;
}

.drawer__chev {
  margin-left: auto;
  opacity: 0.7;
}

/* ——— Main ——— */
.site-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

/* Blocs centrés sur --layout-max ; barres pleine largeur exclues */
.site-main > *:not(.tabs-nav):not(.seo-text):not(.footer) {
  width: min(100%, var(--layout-max));
  box-sizing: border-box;
}

.site-main > .tabs-nav,
.site-main > .seo-text,
.site-main > .footer {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

@media (min-width: 1024px) {
  .site-main {
    padding-bottom: var(--space-8);
  }
}

.anchor-target {
  display: block;
  height: 0;
  overflow: hidden;
}

/* ——— Hero ——— */
.hero {
  padding: var(--space-3) var(--space-4) 0;
  max-width: var(--layout-max);
  margin: 0 auto;
}

.hero__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #c8dce8 0%, #8eb4c8 55%, #6a9aad 100%);
  /* Mobile : cadre un peu plus haut pour garder le personnage lisible sur un visuel ultra-panoramique */
  aspect-ratio: 16 / 10;
  min-height: 210px;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: 42% 42%;
}

.hero__image-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  cursor: pointer;
}

@media (min-width: 480px) {
  .hero__image-wrap {
    aspect-ratio: 2.2 / 1;
    max-height: min(48vw, 380px);
  }

  .hero__image {
    object-position: 44% 40%;
  }
}

@media (min-width: 768px) {
  .hero__image-wrap {
    aspect-ratio: 2.55 / 1;
    max-height: min(38vw, 420px);
  }

  .hero__image {
    object-position: 46% 38%;
  }
}

@media (min-width: 1024px) {
  :root {
    --layout-max: 1400px;
  }

  .site-header__inner {
    padding-inline: var(--space-3);
  }

  .hero {
    padding-inline: var(--space-3);
  }

  .benefits-row {
    padding-inline: var(--space-3);
  }

  .section {
    padding-inline: var(--space-3);
  }

  .tabs-nav__track {
    padding-inline: var(--space-3);
  }

  .hero__promo {
    padding-inline: var(--space-5);
  }

  .hero__image-wrap {
    /* Ratio natif du bannière (~1024:259) */
    aspect-ratio: 1024 / 259;
    max-height: min(32vw, 520px);
    min-height: 260px;
    border-radius: var(--radius-xl);
  }

  .hero__image {
    object-position: 48% 36%;
  }
}

@media (min-width: 1320px) {
  .hero__image {
    object-position: 50% 34%;
  }
}

.hero__promo {
  margin-top: var(--space-3);
  background: var(--c-teal-800);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.hero__promo-text {
  margin: 0 0 var(--space-4);
  color: var(--c-orange);
  font-weight: 800;
  font-size: clamp(0.95rem, 3.5vw, 1.35rem);
  line-height: 1.35;
}

.hero__promo-text--antique {
  font-family: var(--font-antique);
  letter-spacing: 0.02em;
  font-weight: 700;
}

.hero__promo-cta {
  min-width: 200px;
}

/* ——— Benefits ——— */
.benefits-row {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-4);
  max-width: var(--layout-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.benefit-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--c-teal-800);
  color: var(--c-white);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  min-height: 88px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow-sm);
}

.benefit-card__icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.benefit-card__text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

/* ——— Tabs ——— */
.tabs-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 25;
  background: var(--c-page-2);
  border-block: 1px solid var(--c-line);
  margin-top: var(--space-2);
}

.tabs-nav__track {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  padding: var(--space-3) var(--space-4);
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  max-width: var(--layout-max);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.tabs-nav__link {
  flex: 0 0 auto;
  scroll-snap-align: start;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--c-teal-text);
  padding-bottom: var(--space-2);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  opacity: 0.88;
}

.tabs-nav__link--active {
  color: var(--c-orange);
  border-color: var(--c-orange);
  opacity: 1;
}

/* ——— Sections ——— */
.section {
  padding: var(--space-6) var(--space-4);
  max-width: var(--layout-max);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.section__head--stats {
  flex-wrap: nowrap;
}

@media (max-width: 1023px) {
  .section__head--stats {
    flex-wrap: wrap;
  }

  .section__head--stats .stats-online {
    margin-left: auto;
  }

  .section__head--stats .section__actions--desktop-only {
    width: 100%;
    justify-content: flex-end;
  }
}

.section__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section__title-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.section__title-icon {
  color: var(--c-teal-700);
  font-size: 1.1rem;
}

.section__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.section__actions--desktop-only {
  display: none;
}

.section__lede {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.92rem;
}

.section--anchors {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.section--winners .section__head {
  margin-bottom: var(--space-3);
}

/* ——— Game rows & cards ——— */
.games-row {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
  .games-row--mosaic-mobile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }

  .games-row--mosaic-mobile .game-card {
    flex: none;
    width: 100%;
    max-width: none;
  }
}

.games-grid {
  display: grid;
  gap: var(--space-3);
}

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

.game-card {
  position: relative;
  flex: 0 0 46%;
  max-width: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.game-card--grid {
  flex: none;
  max-width: none;
  width: 100%;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10, 36, 40, 0.18);
}

.game-card__cover {
  width: 100%;
  aspect-ratio: 220 / 308;
  object-fit: cover;
}

.game-card__favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  color: var(--c-white);
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
}

.game-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: #f5d547;
  color: #2b2200;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 5px 8px;
  border-radius: 6px;
}

.game-card__jackpot-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.game-card__jackpot-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card--jackpot .game-card__cover {
  filter: saturate(1.05);
}

.game-card__price {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.82);
  color: var(--c-white);
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
}

.game-card__live {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: #c41e1e;
  color: var(--c-white);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 5px 8px;
  border-radius: 6px;
}

.game-card__live-meta {
  position: absolute;
  top: 10px;
  right: 46px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--c-white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}

.game-card__live-range {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-white);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
}

.game-card__drops {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(0, 40, 48, 0.88);
  color: #ffe08a;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 7px;
  border-radius: 6px;
  max-width: 62%;
  line-height: 1.2;
}

.game-card--mini .game-card__cover {
  filter: brightness(0.92) saturate(1.1);
}

.game-card__mini-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: var(--c-white);
  font-weight: 900;
  font-size: clamp(0.85rem, 3vw, 1.1rem);
  letter-spacing: 0.12em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

/* ——— Winners ——— */
.winners-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.winners-panel__hero {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: var(--space-3);
  align-items: center;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
}

.winners-panel__wreath {
  width: 72px;
  height: auto;
  object-fit: contain;
}

.winners-panel__thumb {
  border-radius: var(--radius-sm);
  width: 64px;
  height: auto;
}

.winners-panel__kicker {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  font-weight: 700;
}

.winners-panel__amount {
  margin: 4px 0;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--c-orange);
}

.winners-panel__note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--c-muted);
}

.winners-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.winners-list__item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: var(--space-3);
  align-items: center;
  background: var(--c-white);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}

.winners-list__cover {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.winners-list__text {
  margin: 0;
  font-size: 0.82rem;
  color: var(--c-teal-text);
  line-height: 1.35;
}

.mask {
  font-weight: 700;
}

.winners-list__sum {
  font-weight: 800;
  color: var(--c-orange);
  font-size: 0.95rem;
  white-space: nowrap;
}

/* ——— Stats ——— */
.stats-online {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-teal-800);
  color: var(--c-white);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.stats-online__icon {
  display: flex;
  color: var(--c-white);
}

.section__head--stats .section__title-row {
  flex: 1 1 auto;
}

.stats-table {
  display: none;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-line);
}

.stats-table__head,
.stats-table__row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.6fr 0.75fr 0.85fr;
  gap: var(--space-2);
  align-items: center;
  padding: 12px 16px;
  font-size: 0.86rem;
}

.stats-table__head {
  background: #f3f9fb;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--c-muted);
}

.stats-table__row:nth-child(even) {
  background: #fafcfd;
}

.stats-table__cell--game {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.stats-table__thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.stats-table__game-name {
  color: var(--c-orange);
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-table__cell--pay {
  font-weight: 800;
}

.stats-table__cell--up {
  color: #1a9b57;
}

.stats-table__cell--down {
  color: #c0392b;
}

.stats-arrow {
  margin-right: 4px;
}

.stats-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 600px) and (max-width: 1023px) {
  .stats-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
  }
}

.stats-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-line);
}

.stats-card__head {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-3);
}

.stats-card__head img {
  border-radius: 10px;
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.stats-card__game {
  margin: 0;
  font-weight: 800;
  color: var(--c-orange);
  font-size: 0.95rem;
}

.stats-card__player {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--c-muted);
}

.stats-card__dl {
  margin: 0;
  display: grid;
  gap: var(--space-2);
}

.stats-card__dl > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.88rem;
}

.stats-card__dl dt {
  margin: 0;
  color: var(--c-muted);
  font-weight: 600;
}

.stats-card__dl dd {
  margin: 0;
  font-weight: 700;
}

.stats-card__pay {
  font-weight: 800;
}

.stats-card__pay--up {
  color: #1a9b57;
}

.stats-card__pay--down {
  color: #c0392b;
}

/* ——— Contenu éditorial (SEO) ——— */
.seo-text {
  background: var(--c-page-2);
  border-top: 1px solid var(--c-line);
  padding: var(--space-8) var(--space-4);
}

.seo-text__inner {
  max-width: 820px;
  margin: 0 auto;
}

.seo-text__h1 {
  margin: 0 0 var(--space-6);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--c-teal-text);
  letter-spacing: -0.02em;
}

.seo-text__h2 {
  margin: var(--space-8) 0 var(--space-3);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--c-teal-800);
}

.seo-text__h2:first-of-type {
  margin-top: var(--space-5);
}

.seo-text__h3 {
  margin: var(--space-5) 0 var(--space-2);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-teal-text);
}

.seo-text p {
  margin: 0 0 var(--space-4);
  color: #2f4550;
  font-size: 0.98rem;
  line-height: 1.65;
}

.seo-text__tables {
  margin: var(--space-8) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.seo-text__table-title {
  margin: 0 0 var(--space-3);
  font-size: 1rem;
  font-weight: 800;
  color: var(--c-teal-800);
}

.seo-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.seo-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--c-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.seo-table th,
.seo-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line);
}

.seo-table thead th {
  background: #f0f6f8;
  font-weight: 800;
  color: var(--c-teal-text);
  font-size: 0.82rem;
}

.seo-table tbody tr:last-child td {
  border-bottom: none;
}

.seo-faq {
  margin-top: var(--space-8);
}

.seo-faq__item {
  background: var(--c-white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  border: 1px solid var(--c-line);
  overflow: hidden;
}

.seo-faq__item summary {
  padding: 14px 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  color: var(--c-teal-text);
}

.seo-faq__item summary::-webkit-details-marker {
  display: none;
}

.seo-faq__item summary::after {
  content: "+";
  float: right;
  font-weight: 900;
  color: var(--c-orange);
}

.seo-faq__item[open] summary::after {
  content: "–";
}

.seo-faq__item p {
  padding: 0 16px 14px;
  margin: 0;
  font-size: 0.92rem;
}

.seo-faq__item summary:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: -2px;
}

/* ——— Footer ——— */
.footer {
  background: var(--c-teal-900);
  color: rgba(255, 255, 255, 0.88);
  padding: var(--space-8) var(--space-4) calc(var(--space-8) + env(safe-area-inset-bottom, 0px));
  margin-top: var(--space-6);
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.footer__wordmark {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1rem;
}

.footer__langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.footer__lang {
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--c-white);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__lang--active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-6);
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer__links a {
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.92;
}

.footer__subtitle {
  margin: 0 0 var(--space-3);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.footer__carousel {
  margin-bottom: var(--space-6);
}

.footer__carousel-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer__carousel-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-white);
  font-size: 1.2rem;
  line-height: 1;
}

.footer__carousel-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.footer__carousel-track {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 0;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.provider-pill {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__carousel--pay .provider-pill--icon img {
  max-height: 30px;
  width: auto;
  display: block;
  filter: none;
}

.provider-pill--text {
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--c-white);
}

.footer__carousel--pay .provider-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.footer__carousel--games .provider-pill--studio {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  min-height: 40px;
  padding: 8px 14px;
}

.footer__age {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin: 0 auto var(--space-4);
}

.footer__legal {
  margin: 0 auto;
  max-width: 820px;
  font-size: 0.72rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
}

/* ——— Mobile bottom nav ——— */
.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-mobile-nav);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  gap: 2px;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  background: var(--c-teal-800);
  border-top: 2px solid rgba(244, 123, 32, 0.35);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
}

.mobile-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--c-white);
  font-size: 0.62rem;
  font-weight: 600;
  min-width: 0;
  position: relative;
  padding: 4px 2px;
}

.mobile-nav__item--active {
  color: var(--c-orange);
}

.mobile-nav__item--active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: var(--c-orange);
}

.mobile-nav__badge {
  position: absolute;
  top: 2px;
  right: 18%;
  background: var(--c-green-dot);
  color: #06331a;
  font-size: 0.58rem;
  font-weight: 900;
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid var(--c-teal-800);
}

.mobile-nav__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ——— Tablet ——— */
@media (min-width: 600px) {
  .game-card {
    flex: 0 0 28%;
    max-width: 200px;
  }

  .benefits-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .benefit-card {
    flex-direction: column;
    text-align: center;
    min-height: 180px;
    padding: var(--space-4);
  }

  .benefit-card__icon {
    width: 88px;
    height: 88px;
  }
}

/* ——— Desktop ——— */
@media (min-width: 1024px) {
  :root {
    --header-h: 64px;
  }

  .site-header__inner {
    grid-template-columns: auto auto 1fr auto auto;
    grid-template-areas: "menu brand . utilities actions";
  }

  .header__menu {
    grid-area: menu;
  }

  .header__brand {
    grid-area: brand;
  }

  .header__utilities {
    grid-area: utilities;
    display: flex;
    justify-self: end;
    margin-right: var(--space-3);
  }

  .header__actions {
    grid-area: actions;
  }

  .header__profile {
    display: grid;
  }

  .header__brand-logo--mini {
    display: none;
  }

  .header__brand-logo--full {
    display: block;
  }

  .header__brand-text {
    display: none;
  }

  .mobile-nav {
    display: none;
  }

  .games-row .game-card {
    flex: 0 0 18%;
    max-width: 200px;
  }

  .winners-panel {
    display: grid;
    grid-template-columns: minmax(0, 340px) 1fr;
    align-items: stretch;
  }

  .stats-table {
    display: block;
  }

  .stats-cards {
    display: none;
  }

  .section__actions--desktop-only {
    display: flex;
  }

  .section__head--stats .section__title-row {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (min-width: 1200px) {
  .games-grid--two {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

body.drawer-open {
  overflow: hidden;
}

body.knight-run-modal-open {
  overflow: hidden;
}

/* ——— Mini-jeu chevalier (canvas) ——— */
.section--knight-run {
  padding-bottom: var(--space-6);
}

.knight-run {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.knight-run__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--c-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-line);
  font-size: 0.9rem;
}

.knight-run__topbar-label {
  color: var(--c-muted);
}

.knight-run__topbar-value {
  font-weight: 700;
  color: var(--c-teal-text);
}

.knight-run__panel {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(165deg, #f6fafc 0%, #eceff2 48%, #e6e9ee 100%);
  border-radius: var(--radius-lg);
  border: 1px solid #d0d8e0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.knight-run__hud {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: #fafafa;
  border-bottom: 1px solid #e2e2e2;
  font-size: 0.85rem;
}

.knight-run__hud-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--c-teal-text);
}

.knight-run__coin-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #7c5cff, #ff4d9d, #ffd23f, #7c5cff);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #333;
  flex-shrink: 0;
}

.knight-run__hud-center {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.knight-run__lives {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;
  min-height: 1.25rem;
}

.knight-run__heart {
  font-size: 0.95rem;
  line-height: 1;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.knight-run__heart--full {
  color: #e63946;
  text-shadow: 0 0 6px rgba(230, 57, 70, 0.45);
}

.knight-run__heart--empty {
  color: #c5cdd1;
  text-shadow: none;
  transform: scale(0.92);
  opacity: 0.55;
}

.knight-run__round {
  display: block;
  font-size: 0.75rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.knight-run__timer {
  font-weight: 800;
  font-size: 1.05rem;
  font-family: ui-monospace, "Cascadia Code", Menlo, monospace;
}

.knight-run__hud-right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.knight-run__score-label {
  display: block;
  font-size: 0.7rem;
  color: var(--c-muted);
  text-transform: uppercase;
}

.knight-run__score {
  font-weight: 800;
  font-size: 1rem;
  font-family: ui-monospace, "Cascadia Code", Menlo, monospace;
  letter-spacing: 0.06em;
}

.knight-run__canvas-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 160px;
  padding-block: var(--space-2);
  background: linear-gradient(180deg, #d8e8f0 0%, #e4eef4 35%, #e8eaee 100%);
  cursor: pointer;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 640px) {
  .knight-run__canvas-wrap {
    min-height: clamp(200px, 58vw, 280px);
    padding-block: var(--space-3);
  }
}

.knight-run__canvas-wrap:focus-visible {
  box-shadow: inset 0 0 0 3px var(--c-orange);
}

.knight-run__canvas-wrap canvas {
  display: block;
  flex: 0 0 auto;
  max-width: 100%;
  width: auto;
  height: auto;
  vertical-align: middle;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(10, 36, 40, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  image-rendering: auto;
}

.knight-run__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4);
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  z-index: 2;
}

/* display:flex выше перебивает атрибут [hidden] в браузере — без этого оба оверлея видны одновременно */
.knight-run__overlay[hidden] {
  display: none !important;
}

.knight-run__overlay--dim {
  background: rgba(245, 245, 245, 0.88);
  z-index: 3;
}

/* Стартовая обложка */
.knight-run__overlay--cover {
  padding: 0;
  gap: 0;
  background: #1a2a30;
  overflow: hidden;
}

.knight-run__cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
  user-select: none;
}

.knight-run__cover-ui {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  margin-top: auto;
  width: 100%;
  text-align: center;
  background: linear-gradient(to top, rgba(10, 28, 34, 0.82) 0%, rgba(10, 28, 34, 0) 100%);
  padding-bottom: var(--space-5);
}

.knight-run__cover-ui .knight-run__overlay-hint {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  max-width: 320px;
}

.knight-run__canvas-wrap .cta-button--primary {
  color: var(--c-white);
  text-shadow: 0 1px 1px rgba(10, 36, 40, 0.25);
}

.knight-run__overlay-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--c-teal-text);
}

.knight-run__overlay-hint {
  margin: 0;
  max-width: 280px;
  font-size: 0.9rem;
  color: var(--c-muted);
  line-height: 1.4;
}

.knight-run__overlay-hint kbd {
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--c-line);
  background: var(--c-white);
  font-size: 0.8em;
}

.knight-run__btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.knight-run__btn--ghost {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  color: var(--c-teal-text);
}

.knight-run__rules {
  padding: var(--space-2) var(--space-3) var(--space-3);
  font-size: 0.8rem;
  color: var(--c-muted);
}

.knight-run__rules summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--c-teal-700);
  list-style: none;
}

.knight-run__rules summary::-webkit-details-marker {
  display: none;
}

.knight-run__rules summary::after {
  content: " ›";
  opacity: 0.6;
}

.knight-run__rules[open] summary::after {
  content: " ˅";
}

.knight-run__rules p {
  margin: var(--space-2) 0 0;
  max-width: 52ch;
}

.knight-run__modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(10, 36, 40, 0.45);
}

.knight-run__modal[hidden] {
  display: none;
}

.knight-run__modal-card {
  max-width: 400px;
  width: 100%;
  padding: var(--space-6);
  background: var(--c-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-line);
}

.knight-run__modal-kicker {
  margin: 0 0 var(--space-1);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-orange);
  font-weight: 700;
}

.knight-run__modal-title {
  margin: 0 0 var(--space-3);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--c-teal-text);
}

.knight-run__modal-text {
  margin: 0 0 var(--space-5);
  color: var(--c-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.knight-run__modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: flex-end;
}

@media (min-width: 720px) {
  .knight-run {
    padding: 0 var(--space-6);
  }
}
