/* ==========================================================================
   777cX Game — main.css
   Shared layout, components and motion system.
   BEM-lite naming. Mobile-first: base -> 768px -> 1200px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset & base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-emerald-900);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); line-height: 1.16; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
  margin: 0 0 var(--space-4);
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

a {
  color: var(--color-emerald-700);
  text-decoration-color: rgba(12, 122, 67, 0.35);
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover { color: var(--color-emerald-600); }

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
li { margin-bottom: var(--space-2); color: var(--color-text-secondary); }

strong, b { color: var(--color-emerald-900); font-weight: 700; }

hr {
  border: 0;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-6) 0;
}

table { border-collapse: collapse; width: 100%; }

::selection {
  background: var(--color-emerald-200);
  color: var(--color-emerald-900);
}

/* --------------------------------------------------------------------------
   2. Accessibility helpers
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 50%;
  top: -80px;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--color-emerald-900);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: top var(--dur-base) var(--ease-out);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

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

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--color-emerald-600);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--container-max) + (var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: calc(var(--container-wide) + (var(--gutter) * 2));
}

.container--narrow {
  max-width: calc(var(--container-narrow) + (var(--gutter) * 2));
}

.section {
  position: relative;
  padding-block: var(--section-pad-y);
}

.section--soft { background: var(--color-bg-soft); }
.section--alt { background: var(--color-surface-alt); }

.section--edge-top {
  border-top: 1px solid var(--color-border);
}

.section__head {
  max-width: 760px;
  margin: 0 auto clamp(2.25rem, 1.4rem + 3vw, 3.5rem);
  text-align: center;
}

.section__head--left {
  margin-inline: 0;
  text-align: left;
}

.section__head p {
  font-size: var(--fs-lead);
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-emerald-700);
  background: var(--color-emerald-050);
  border: 1px solid var(--color-border);
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-emerald-600);
  box-shadow: 0 0 0 3px rgba(18, 154, 86, 0.16);
}

.eyebrow--gold {
  color: #7A5C05;
  background: #FCF6E4;
  border-color: #F0E2B4;
}

.eyebrow--gold::before {
  background: var(--color-gold-accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Thin gold-foil divider — used sparingly. */
.gold-rule {
  height: 1px;
  width: min(320px, 60%);
  margin: var(--space-6) auto;
  background: var(--gradient-gold-line);
  border: 0;
}

.gold-rule--left { margin-inline: 0; }

.grad-text {
  background: var(--gradient-emerald-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--color-text-secondary);
}

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

/* Organic emerald blob backdrops */
.blob {
  position: absolute;
  z-index: var(--z-blob);
  pointer-events: none;
  filter: blur(6px);
  opacity: 0.55;
}

.blob--float { animation: blobDrift 14s var(--ease-out) infinite alternate; }
.blob--float-slow { animation: blobDrift 20s var(--ease-out) infinite alternate-reverse; }

@keyframes blobDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(18px, -26px, 0) scale(1.06); }
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-lift: -3px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 1.02rem 1.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.btn svg { flex: none; }

.btn--primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 10px 24px rgba(12, 122, 67, 0.26), var(--shadow-inset-hair);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  color: #fff;
  background: var(--gradient-cta-hover);
  transform: translateY(var(--btn-lift));
  box-shadow: var(--shadow-emerald-glow-lg), 0 0 0 6px rgba(46, 204, 129, 0.14);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--color-emerald-800);
  border-color: var(--color-border-strong);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--color-emerald-900);
  border-color: var(--color-emerald-400);
  transform: translateY(var(--btn-lift));
  box-shadow: var(--shadow-emerald-glow);
}

.btn--dark {
  background: var(--color-emerald-900);
  color: #fff;
  box-shadow: 0 10px 24px rgba(6, 61, 38, 0.28);
}

.btn--dark:hover,
.btn--dark:focus-visible {
  color: #fff;
  background: var(--color-emerald-800);
  transform: translateY(var(--btn-lift));
  box-shadow: 0 16px 36px rgba(6, 61, 38, 0.34);
}

.btn--light {
  background: #fff;
  color: var(--color-emerald-800);
  box-shadow: 0 10px 26px rgba(3, 34, 20, 0.24);
}

.btn--light:hover,
.btn--light:focus-visible {
  color: var(--color-emerald-900);
  transform: translateY(var(--btn-lift));
  box-shadow: 0 18px 40px rgba(3, 34, 20, 0.32);
}

.btn--gold {
  background: linear-gradient(135deg, #E7C763 0%, #D4AF37 55%, #B8942A 100%);
  color: #33270A;
  box-shadow: 0 10px 24px rgba(184, 148, 42, 0.32), var(--shadow-inset-hair);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  color: #241B04;
  transform: translateY(var(--btn-lift));
  box-shadow: 0 18px 38px rgba(184, 148, 42, 0.42);
}

/* Telegram button with real brand mark */
.btn--telegram {
  background: linear-gradient(135deg, #37B3E4 0%, #1E96C8 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 150, 200, 0.3), var(--shadow-inset-hair);
}

.btn--telegram:hover,
.btn--telegram:focus-visible {
  color: #fff;
  transform: translateY(var(--btn-lift));
  box-shadow: 0 18px 38px rgba(30, 150, 200, 0.42), 0 0 0 6px rgba(55, 179, 228, 0.16);
}

.btn--telegram-soft {
  background: #EAF7FD;
  color: #10668B;
  border-color: #BFE5F5;
}

.btn--telegram-soft:hover,
.btn--telegram-soft:focus-visible {
  color: #0B4F6C;
  background: #DAF1FB;
  transform: translateY(var(--btn-lift));
  box-shadow: 0 12px 28px rgba(30, 150, 200, 0.18);
}

.btn--lg { padding: 1.18rem 2.1rem; font-size: 1.02rem; }
.btn--sm { padding: 0.72rem 1.15rem; font-size: var(--fs-xs); }
.btn--block { display: flex; width: 100%; }

.btn__sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-top: 3px;
}

.btn__stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.btn-row--center { justify-content: center; }

/* Magnetic pointer offset is applied by JS via --mx/--my */
.btn--magnetic {
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
}

.btn--magnetic:hover,
.btn--magnetic:focus-visible {
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--btn-lift)), 0);
}

@media (prefers-reduced-motion: reduce) {
  .btn { --btn-lift: 0px; }
  .btn--magnetic { transform: none; }
  .btn--magnetic:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}

.header.is-stuck {
  border-bottom-color: var(--color-border);
  box-shadow: 0 6px 26px rgba(6, 61, 38, 0.07);
  background: rgba(255, 255, 255, 0.94);
}

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* --- Brand / logo lockup ---------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
  margin-right: auto;
}

.brand__logo {
  display: block;
  height: 40px;
  width: auto;
  border-radius: 10px;
  box-shadow:
    0 6px 18px rgba(6, 61, 38, 0.22),
    0 0 0 1px rgba(212, 175, 55, 0.42);
  transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base) var(--ease-out);
}

.brand:hover .brand__logo,
.brand:focus-visible .brand__logo {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 12px 26px rgba(6, 61, 38, 0.28),
    0 0 0 1px rgba(212, 175, 55, 0.75);
}

/* --- Desktop nav ------------------------------------------------------- */

.nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.nav__link:hover { color: var(--color-emerald-700); background: var(--color-emerald-050); }

.nav__link[aria-current="page"] {
  color: var(--color-emerald-800);
  background: var(--color-emerald-050);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 16px; height: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: var(--gradient-cta);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header__cta { display: none; }

/* --- Language switcher ------------------------------------------------- */

.langswitch {
  display: none;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}

.langswitch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  padding: 0.4rem 0.62rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.langswitch__btn:hover { color: var(--color-emerald-700); }

.langswitch__btn[aria-pressed="true"] {
  background: #fff;
  color: var(--color-emerald-800);
  box-shadow: 0 2px 8px rgba(6, 61, 38, 0.12);
}

/* Cross-fade when language content swaps */
main,
.footer,
.mobilebar {
  transition: opacity 220ms var(--ease-out);
}

html.is-langswitching main,
html.is-langswitching .footer,
html.is-langswitching .mobilebar { opacity: 0.35; }

@media (prefers-reduced-motion: reduce) {
  html.is-langswitching main,
  html.is-langswitching .footer,
  html.is-langswitching .mobilebar { opacity: 1; }
}

/* --- Hamburger --------------------------------------------------------- */

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--color-emerald-800);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile drawer ----------------------------------------------------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  visibility: hidden;
  pointer-events: none;
}

.drawer.is-open { visibility: visible; pointer-events: auto; }

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 61, 38, 0.42);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}

.drawer.is-open .drawer__scrim { opacity: 1; }

.drawer__panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(340px, 88vw);
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
  box-shadow: -24px 0 60px rgba(6, 61, 38, 0.18);
  padding: 1.15rem 1.35rem 2.5rem;
  overflow-y: auto;
  transform: translateX(102%);
  transition: transform var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.drawer__close {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  color: var(--color-emerald-800);
  font-size: 1.2rem;
  cursor: pointer;
}

.drawer__nav { display: flex; flex-direction: column; gap: 2px; }

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-emerald-900);
  text-decoration: none;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-fast) var(--ease-out);
}

.drawer__link:hover,
.drawer__link[aria-current="page"] { background: var(--color-emerald-050); }

.drawer__link::after {
  content: "→";
  color: var(--color-emerald-400);
  font-size: 0.95rem;
}

.drawer__label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.drawer .langswitch { display: inline-flex; }

/* --------------------------------------------------------------------------
   6. Glass cards & generic card patterns
   -------------------------------------------------------------------------- */

.glass {
  position: relative;
  background: var(--gradient-glass);
  border: 1px solid rgba(220, 238, 227, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), var(--shadow-inset-hair);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(1.35rem, 1rem + 1vw, 1.85rem);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.card--hover:hover {
  transform: translateY(-6px);
  border-color: var(--color-emerald-200);
  box-shadow: var(--shadow-card-lg), var(--shadow-emerald-glow);
}

.card__title { margin-bottom: 0.55rem; }
.card__text { margin-bottom: 0; font-size: var(--fs-sm); }

.grid {
  display: grid;
  gap: clamp(1rem, 0.7rem + 1vw, 1.6rem);
}

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

/* Icon circle: thin-line emerald stroke on mint fill */
.icon-circle {
  width: 54px; height: 54px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-emerald-050);
  border: 1px solid var(--color-border);
  color: var(--color-emerald-600);
  margin-bottom: var(--space-4);
  transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}

.icon-circle svg { width: 26px; height: 26px; }

.card--hover:hover .icon-circle {
  transform: scale(1.08) rotate(-4deg);
  background: #fff;
  box-shadow: var(--shadow-emerald-glow);
}

.icon-circle--sm { width: 42px; height: 42px; margin-bottom: 0; }
.icon-circle--sm svg { width: 20px; height: 20px; }

.icon-circle--gold {
  background: #FCF6E4;
  border-color: #F0E2B4;
  color: #B8942A;
}

/* Check list */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }

.checklist li {
  position: relative;
  padding-left: 2rem;
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.36em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-emerald-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23129A56' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid var(--color-border);
}

.checklist--gold li::before {
  background-color: #FCF6E4;
  border-color: #F0E2B4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8942A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* Pills / chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-emerald-800);
  background: var(--color-emerald-050);
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
}

.chip--gold { color: #7A5C05; background: #FCF6E4; border-color: #F0E2B4; }
.chip--muted { color: var(--color-text-secondary); background: #fff; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Data table */
.datatable {
  width: 100%;
  font-size: var(--fs-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}

.datatable th,
.datatable td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.datatable thead th {
  background: var(--color-surface-alt);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-emerald-800);
}

.datatable tbody tr:last-child td { border-bottom: 0; }
.datatable td { color: var(--color-text-secondary); }
.datatable td:first-child { color: var(--color-emerald-900); font-weight: 600; }

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

/* --------------------------------------------------------------------------
   7. Phone mockup (hero + download)
   -------------------------------------------------------------------------- */

.mockup {
  position: relative;
  width: min(300px, 78vw);
  margin-inline: auto;
  aspect-ratio: 300 / 610;
  z-index: var(--z-content);
}

.mockup--lg { width: min(330px, 80vw); }

.mockup__device {
  position: relative;
  height: 100%;
  border-radius: 44px;
  padding: 11px;
  background: linear-gradient(155deg, #0E5A38 0%, #063D26 42%, #021A10 100%);
  box-shadow:
    0 40px 80px rgba(6, 61, 38, 0.30),
    0 8px 22px rgba(6, 61, 38, 0.20),
    inset 0 0 0 1px rgba(212, 175, 55, 0.35),
    inset 0 2px 2px rgba(255, 255, 255, 0.22);
  animation: deviceFloat 8s var(--ease-out) infinite alternate;
}

.mockup__screen {
  position: relative;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #0B5A34;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.mockup__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  animation: screenScroll 22s linear infinite alternate;
}

.mockup__notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 22px;
  border-radius: var(--radius-pill);
  background: #04160D;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 3;
}

.mockup__glare {
  position: absolute;
  inset: 11px;
  border-radius: 34px;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.04) 32%, rgba(255, 255, 255, 0) 58%);
  z-index: 2;
}

/* Floating badges around the device */
.mockup__badge {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  box-shadow: var(--shadow-card-lg);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-emerald-900);
  line-height: 1.25;
  white-space: nowrap;
}

.mockup__badge small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mockup__badge--bonus {
  top: 9%;
  right: calc(100% - 22px);
  animation: badgeFloatA 7s var(--ease-out) infinite alternate;
}

.mockup__badge--payout {
  bottom: 26%;
  left: calc(100% - 22px);
  animation: badgeFloatB 9s var(--ease-out) infinite alternate;
}

.mockup__badge--rating {
  bottom: 6%;
  right: calc(100% - 40px);
  animation: badgeFloatA 11s var(--ease-out) infinite alternate-reverse;
}

/* On narrow screens there is no room outside the device — tuck the badges in. */
@media (max-width: 559px) {
  .mockup__badge--bonus { right: auto; left: -6px; }
  .mockup__badge--payout { left: auto; right: -6px; }
  .mockup__badge--rating { right: auto; left: -6px; }
}

.mockup__ring {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  border: 1px dashed rgba(18, 154, 86, 0.28);
  animation: spinSlow 42s linear infinite;
  pointer-events: none;
}

.mockup__ring--2 {
  inset: -22%;
  border-style: solid;
  border-color: rgba(212, 175, 55, 0.22);
  animation-duration: 66s;
  animation-direction: reverse;
}

.mockup__glow {
  position: absolute;
  inset: -18% -22%;
  background: radial-gradient(closest-side, rgba(46, 204, 129, 0.30), rgba(46, 204, 129, 0) 72%);
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;
}

@keyframes deviceFloat {
  from { transform: translateY(-10px) rotate(-1.2deg); }
  to   { transform: translateY(12px) rotate(1.2deg); }
}

@keyframes screenScroll {
  from { object-position: top center; }
  to   { object-position: bottom center; }
}

@keyframes badgeFloatA {
  from { transform: translate3d(0, -8px, 0); }
  to   { transform: translate3d(6px, 10px, 0); }
}

@keyframes badgeFloatB {
  from { transform: translate3d(0, 10px, 0); }
  to   { transform: translate3d(-8px, -9px, 0); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mockup__device,
  .mockup__screen img,
  .mockup__badge,
  .mockup__ring,
  .blob--float,
  .blob--float-slow { animation: none !important; }
}

/* --------------------------------------------------------------------------
   8. Stats / counters
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.stat {
  background: #fff;
  padding: clamp(1.15rem, 0.9rem + 0.9vw, 1.8rem) 1rem;
  text-align: center;
  transition: background-color var(--dur-base) var(--ease-out);
}

.stat:hover { background: var(--color-emerald-050); }

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: var(--gradient-emerald-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 0.3rem;
}

.stat__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-text-secondary);
}

.stat__note {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   9. Game cards
   -------------------------------------------------------------------------- */

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.35rem);
}

.gamecard {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.gamecard:hover,
.gamecard:focus-visible {
  transform: scale(1.03);
  z-index: 2;
  border-color: var(--color-emerald-200);
  box-shadow: var(--shadow-card-lg), var(--shadow-emerald-glow);
}

.gamecard__media {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-surface-alt);
}

.gamecard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.gamecard:hover .gamecard__media img { transform: scale(1.09); }

.gamecard__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(6, 61, 38, 0) 40%, rgba(6, 61, 38, 0.72) 100%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}

.gamecard:hover .gamecard__overlay,
.gamecard:focus-visible .gamecard__overlay { opacity: 1; }

.gamecard__play {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-emerald-900);
  background: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  transform: translateY(8px);
  transition: transform var(--dur-base) var(--ease-spring);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.gamecard:hover .gamecard__play { transform: translateY(0); }

.gamecard__tag {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(6, 61, 38, 0.78);
  backdrop-filter: blur(6px);
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius-pill);
}

.gamecard__tag--hot { background: linear-gradient(135deg, #D4AF37, #B8942A); color: #2B1F02; }

.gamecard__body {
  display: block;
  padding: 0.7rem 0.8rem 0.85rem;
}

.gamecard__name {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-emerald-900);
  margin: 0 0 0.2rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gamecard__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.gamecard__rtp { color: var(--color-emerald-700); }

/* Filter tabs */
.filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: var(--space-6);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.filters::-webkit-scrollbar { height: 4px; }
.filters::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 4px; }

.filters__btn {
  flex: none;
  appearance: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-text-secondary);
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 0.62rem 1.05rem;
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease-out);
}

.filters__btn:hover { color: var(--color-emerald-700); border-color: var(--color-emerald-200); }

.filters__btn[aria-pressed="true"] {
  color: #fff;
  background: var(--gradient-cta);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(12, 122, 67, 0.24);
}

/* --------------------------------------------------------------------------
   10. Accordion (FAQ)
   -------------------------------------------------------------------------- */

.accordion { display: grid; gap: 0.7rem; }

.acc {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.acc.is-open {
  border-color: var(--color-emerald-200);
  box-shadow: var(--shadow-card), var(--shadow-emerald-glow);
}

.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--color-emerald-900);
  padding: 1.15rem 1.25rem;
  line-height: 1.4;
}

.acc__icon {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--color-emerald-050);
  border: 1px solid var(--color-border);
  color: var(--color-emerald-600);
  transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}

.acc__icon svg { width: 15px; height: 15px; }

.acc.is-open .acc__icon {
  transform: rotate(180deg);
  background: var(--gradient-cta);
  color: #fff;
  border-color: transparent;
}

.acc__panel {
  height: 0;
  overflow: hidden;
  transition: height var(--dur-base) var(--ease-out);
}

.acc__inner {
  padding: 0 1.25rem 1.3rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.acc__inner p:last-child,
.acc__inner ul:last-child { margin-bottom: 0; }

.acc__inner p,
.acc__inner li { font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   11. Screenshot slider
   -------------------------------------------------------------------------- */

.shots { position: relative; }

.shots__viewport {
  overflow: hidden;
  padding: 0.5rem 0 1.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.shots__track {
  display: flex;
  gap: clamp(0.9rem, 0.6rem + 1vw, 1.5rem);
  transition: transform 560ms var(--ease-out);
  will-change: transform;
}

.shots__item {
  flex: 0 0 auto;
  width: clamp(178px, 46vw, 250px);
}

.shots__frame {
  position: relative;
  border-radius: 26px;
  padding: 8px;
  background: linear-gradient(155deg, #0E5A38 0%, #063D26 45%, #021A10 100%);
  box-shadow: 0 20px 44px rgba(6, 61, 38, 0.22), inset 0 0 0 1px rgba(212, 175, 55, 0.3);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.shots__item:hover .shots__frame {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(6, 61, 38, 0.3), var(--shadow-emerald-glow);
}

.shots__frame img {
  width: 100%;
  aspect-ratio: 560 / 1176;
  object-fit: cover;
  border-radius: 19px;
  background: var(--color-surface-alt);
}

.shots__cap {
  display: block;
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-top: 0.7rem;
}

.shots__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.shots__arrow {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-emerald-800);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all var(--dur-fast) var(--ease-out);
}

.shots__arrow:hover:not(:disabled) {
  background: var(--gradient-cta);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-emerald-glow);
}

.shots__arrow:disabled { opacity: 0.4; cursor: default; }
.shots__arrow svg { width: 18px; height: 18px; }

.shots__dots { display: flex; gap: 0.4rem; }

.shots__dot {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-border-strong);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}

.shots__dot[aria-current="true"] {
  width: 26px;
  border-radius: var(--radius-pill);
  background: var(--gradient-cta);
}

/* --------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */

.ctaband {
  position: relative;
  overflow: hidden;
  background: var(--gradient-band);
  color: #fff;
  padding-block: clamp(3rem, 2rem + 4vw, 5.25rem);
}

.ctaband::before,
.ctaband::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ctaband::before {
  width: 460px; height: 460px;
  top: -220px; right: -120px;
  background: radial-gradient(closest-side, rgba(46, 204, 129, 0.45), transparent 72%);
}

.ctaband::after {
  width: 380px; height: 380px;
  bottom: -200px; left: -100px;
  background: radial-gradient(closest-side, rgba(212, 175, 55, 0.28), transparent 72%);
}

.ctaband__inner { position: relative; z-index: 1; text-align: center; }
.ctaband h2 { color: #fff; }
.ctaband p { color: rgba(255, 255, 255, 0.82); font-size: var(--fs-lead); }
.ctaband .eyebrow {
  color: #EAFBF1;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}
.ctaband .eyebrow::before { background: var(--color-gold-accent); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22); }

.ctaband__note {
  margin: var(--space-5) 0 0;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.62);
}

/* --------------------------------------------------------------------------
   13. Page hero (inner pages)
   -------------------------------------------------------------------------- */

.pagehero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  padding-block: clamp(2.75rem, 2rem + 3.6vw, 4.75rem);
  border-bottom: 1px solid var(--color-border);
}

.pagehero__inner { position: relative; z-index: var(--z-content); max-width: 760px; }
.pagehero--center .pagehero__inner { margin-inline: auto; text-align: center; }
.pagehero p { font-size: var(--fs-lead); margin-bottom: 0; }
.pagehero .btn-row { margin-top: var(--space-5); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.pagehero--center .crumbs { justify-content: center; }
.crumbs li { margin: 0; color: var(--color-text-muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--color-border-strong); }
.crumbs a { color: var(--color-text-secondary); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--color-emerald-600); }

/* --------------------------------------------------------------------------
   14. Prose (legal / long-form)
   -------------------------------------------------------------------------- */

.prose { max-width: 76ch; }
.prose h2 { margin-top: var(--space-8); scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-6); font-size: 1.15rem; }
.prose p, .prose li { font-size: var(--fs-sm); }
.prose ul { padding-left: 1.15rem; }

.prose__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  background: var(--color-emerald-050);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.callout {
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-emerald-600);
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.2rem;
  margin: var(--space-5) 0;
}

.callout p:last-child { margin-bottom: 0; }
.callout__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-emerald-900);
  margin-bottom: 0.35rem;
  font-size: var(--fs-sm);
}

.callout--gold { border-left-color: var(--color-gold-accent); background: #FDFAF0; }
.callout--warn { border-left-color: var(--color-error); background: #FDF4F4; }

/* Table of contents */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.toc__title {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }

.toc li { margin: 0; counter-increment: toc; }

.toc a {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 0.45rem 0.5rem 0.45rem 1.7rem;
  border-radius: var(--radius-xs);
  position: relative;
}

.toc a::before {
  content: counter(toc);
  position: absolute;
  left: 0.4rem;
  color: var(--color-emerald-400);
  font-weight: 800;
}

.toc a:hover { background: var(--color-emerald-050); color: var(--color-emerald-800); }

.layout-aside { display: grid; gap: var(--space-6); }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  overflow: hidden;
  background: #04281A;
  color: rgba(255, 255, 255, 0.72);
  padding-top: clamp(3rem, 2.2rem + 3vw, 4.5rem);
  font-size: var(--fs-sm);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient-gold-line);
}

.footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.footer a:hover { color: var(--color-emerald-400); }
.footer p { color: rgba(255, 255, 255, 0.62); }

.footer__grid {
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
}

.footer__brandcol { max-width: 380px; }

.footer__logo {
  height: 42px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.45);
  margin-bottom: var(--space-4);
}

.footer__title {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-4);
}

.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer__list li { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: var(--fs-xs); }

.footer__list a {
  font-size: var(--fs-xs);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer__social { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-4); }

.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-5);
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
}

.footer__badge--gold { color: #F2E3B0; border-color: rgba(212, 175, 55, 0.35); background: rgba(212, 175, 55, 0.1); }

.footer__seo {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-block: var(--space-5);
}

.footer__seo p {
  font-size: 0.72rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.42);
  margin: 0;
}

.footer__disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-block: var(--space-5);
  display: grid;
  gap: var(--space-4);
}

.footer__age {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(214, 69, 69, 0.75);
  color: #FF8B8B;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
}

.footer__disclaimer-row { display: flex; gap: var(--space-4); align-items: flex-start; }
.footer__disclaimer p { font-size: var(--fs-xs); margin: 0; line-height: 1.8; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-block: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom-links { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --------------------------------------------------------------------------
   16. Floating action button + mobile bar
   -------------------------------------------------------------------------- */

.fab {
  position: fixed;
  right: clamp(12px, 3vw, 24px);
  bottom: calc(var(--mobilebar-h) + 14px);
  z-index: var(--z-fab);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.05rem 0.72rem 0.72rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #37B3E4 0%, #1E96C8 100%);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(30, 150, 200, 0.4);
  animation: fabBreath 3.4s var(--ease-out) infinite;
}

.fab:hover,
.fab:focus-visible {
  color: #fff;
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 20px 44px rgba(30, 150, 200, 0.5);
}

.fab__icon {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.fab__icon svg { width: 18px; height: 18px; }
.fab__text { display: none; }

@keyframes fabBreath {
  0%, 100% { box-shadow: 0 14px 32px rgba(30, 150, 200, 0.4), 0 0 0 0 rgba(55, 179, 228, 0.5); }
  50%      { box-shadow: 0 14px 32px rgba(30, 150, 200, 0.4), 0 0 0 14px rgba(55, 179, 228, 0); }
}

.mobilebar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky);
  height: var(--mobilebar-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 24px rgba(6, 61, 38, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobilebar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--color-text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}

.mobilebar__item svg { width: 21px; height: 21px; }
.mobilebar__item:hover { color: var(--color-emerald-600); }
.mobilebar__item[aria-current="page"] { color: var(--color-emerald-700); }

.mobilebar__item--cta { color: var(--color-emerald-700); }

.mobilebar__item--cta svg {
  border-radius: 50%;
  background: var(--gradient-cta);
  color: #fff;
  padding: 4px;
  width: 26px; height: 26px;
  margin-top: -2px;
  box-shadow: 0 6px 16px rgba(12, 122, 67, 0.34);
  animation: barPulse 2.8s var(--ease-out) infinite;
}

@keyframes barPulse {
  0%, 100% { box-shadow: 0 6px 16px rgba(12, 122, 67, 0.34), 0 0 0 0 rgba(46, 204, 129, 0.5); }
  55%      { box-shadow: 0 6px 16px rgba(12, 122, 67, 0.34), 0 0 0 10px rgba(46, 204, 129, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .fab, .mobilebar__item--cta svg { animation: none; }
}

body { padding-bottom: var(--mobilebar-h); }

/* --------------------------------------------------------------------------
   17. Scroll reveal
   -------------------------------------------------------------------------- */

/* Content is only hidden when JavaScript is available to reveal it again —
   the `js` class is set by a tiny inline script in <head>. */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   18. Breakpoints
   -------------------------------------------------------------------------- */

@media (min-width: 560px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fab__text { display: inline; }
  .brand__logo { height: 44px; }
}

@media (min-width: 768px) {
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .games-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .header__cta { display: inline-flex; }
  .footer__disclaimer { grid-template-columns: 1fr; }
}

@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  .nav { display: flex; }
  .langswitch { display: inline-flex; }
  .hamburger { display: none; }
  .drawer { display: none; }
  .mobilebar { display: none; }
  body { padding-bottom: 0; }
  .fab { bottom: clamp(16px, 3vw, 32px); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .games-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; }
  .layout-aside { grid-template-columns: 260px minmax(0, 1fr); gap: var(--space-8); align-items: start; }
  .brand__logo { height: 46px; }
}

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

/* Print */
@media print {
  .header, .footer, .mobilebar, .fab, .drawer, .ctaband { display: none !important; }
  body { padding: 0; }
}
