/* ==========================================================================
   Spinbetter BR — review site
   Pure CSS, no JavaScript. Mobile-first.
   Language switch: :target trick (#pt / #en anchors at top of <body>)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Brazil palette */
  --bg:            #061410;
  --bg-2:          #0b1f18;
  --bg-3:          #102a21;
  --line:          #1d4436;

  --lime:          #c8e419;
  --green:         #00c46a;
  --green-dark:    #009a53;
  --yellow:        #ffd400;
  --yellow-dark:   #e0bb00;
  --blue:          #1b2f8a;

  --text:          #eaf5ef;
  --text-dim:      #9fbdae;
  --white:         #ffffff;

  --radius:        14px;
  --radius-sm:     10px;
  --shadow:        0 10px 30px rgba(0, 0, 0, .45);
  --max:           1180px;

  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 12% -8%, rgba(0, 196, 106, .18), transparent 60%),
    radial-gradient(800px 460px at 92% 4%, rgba(255, 212, 0, .10), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* in-text internal links (cross-linking between pages) */
.ilink {
  color: var(--lime);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(200, 228, 25, .45);
}
.ilink:hover { color: var(--yellow); text-decoration-color: currentColor; }

h1, h2, h3, h4 {
  line-height: 1.22;
  margin: 0 0 .6em;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.01em;
}

h1 { font-size: 28px; }
h2 { font-size: 23px; }
h3 { font-size: 19px; }
h4 { font-size: 17px; }

p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 20px; }
li { margin-bottom: .45em; }

/* --------------------------------------------------------------------------
   3. LANGUAGE SWITCH
   Each language has its own URL: PT at "/", EN at "/en/".
   -------------------------------------------------------------------------- */

/* headings need breathing room when the browser jumps to an anchor */
.article h2[id],
.article h3[id],
section[id] { scroll-margin-top: 18px; }

/* switcher widget — inset track with a raised active pill */
.langsw {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .34), rgba(255, 255, 255, .02)), var(--bg-3);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, .5),
    0 1px 0 rgba(255, 255, 255, .05);
  flex: none;
}

.langsw a {
  display: block;
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: .07em;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.langsw a:hover { color: var(--white); background: rgba(255, 255, 255, .07); }

/* ---- active segment ---- */
.langsw a.active {
  color: #04150e;
  background: linear-gradient(180deg, #3dffab 0%, #00d774 55%, #00a95c 100%);
  box-shadow:
    0 2px 10px rgba(0, 231, 128, .45),
    inset 0 1px 0 rgba(255, 255, 255, .55);
}

.langsw a.active:hover {
  text-decoration: none;
  color: #04150e;
  background: linear-gradient(180deg, #3dffab 0%, #00d774 55%, #00a95c 100%);
}

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

section { padding: 34px 0; }
section > .wrap > h2 { margin-bottom: .8em; }

.lead { color: var(--text-dim); font-size: 17px; }
.muted { color: var(--text-dim); }
.center { text-align: center; }

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(6, 20, 16, .93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 62px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  flex: none;
}

.logo:hover { text-decoration: none; }
.logo img { display: block; width: auto; height: 30px; max-width: 170px; object-fit: contain; }

.hdr-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
}

/* ---- login / register ---- */
.hdr-auth {
  order: 2;
  width: 100%;
  display: flex;
  gap: 8px;
}

.hdr-auth .btn { flex: 1; }

.btn-sm {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  border-width: 1px;
  white-space: nowrap;
}

/* ---- burger checkbox (no JS) ---- */
.menu-chk {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-3);
  cursor: pointer;
}

.burger span,
.burger::before,
.burger::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .22s ease, opacity .22s ease;
}

.menu-chk:checked ~ .hdr-in .burger { border-color: var(--green); }
.menu-chk:checked ~ .hdr-in .burger::before { transform: translateY(7px) rotate(45deg); }
.menu-chk:checked ~ .hdr-in .burger span   { opacity: 0; }
.menu-chk:checked ~ .hdr-in .burger::after { transform: translateY(-7px) rotate(-45deg); }

/* ---- nav wrapper (toggled by burger) ---- */
.nav-box {
  order: 3;
  width: 100%;
  display: none;
}

.menu-chk:checked ~ .hdr-in .nav-box { display: block; }

.nav {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr;
  width: 100%;
  margin: 8px 0 0;
  padding: 8px 0 10px;
  border-top: 1px solid var(--line);
}

.nav a {
  flex: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-3);
  border: 1px solid var(--line);
  white-space: nowrap;
  text-decoration: none;
}

.nav a:hover { color: var(--white); text-decoration: none; }
.nav a.on { color: #04150e; background: var(--yellow); border-color: var(--yellow); }

/* --------------------------------------------------------------------------
   5b. Back-to-top button
   Points at the page's own clean URL, so no fragment appears in the address bar.
   -------------------------------------------------------------------------- */
.totop {
  display: block;
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 0;
  color: #1a1000;
  background: linear-gradient(180deg, #ffef7a 0%, #ffc800 52%, #ff9c00 100%);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow:
    0 0 0 3px rgba(255, 200, 0, .14),
    0 8px 22px rgba(0, 0, 0, .5),
    0 4px 16px rgba(255, 170, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .7);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.totop:hover {
  text-decoration: none;
  transform: translateY(-3px);
  background: linear-gradient(180deg, #fff9b0 0%, #ffd824 52%, #ffae00 100%);
  box-shadow:
    0 0 0 4px rgba(255, 200, 0, .22),
    0 12px 28px rgba(0, 0, 0, .55),
    0 6px 22px rgba(255, 170, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .85);
}

.totop:active { transform: translateY(-1px); }

/* arrow drawn in CSS: rounded shaft + a real arrowhead, no glyph */
.arr {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  pointer-events: none;
}

/* shaft */
.arr::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1px;
  width: 3px;
  height: 14px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: currentColor;
}

/* head */
.arr::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-left: 3px solid currentColor;
  border-top: 3px solid currentColor;
  border-radius: 3px 0 0 0;
  transform: rotate(45deg);
}

.totop:hover .arr { animation: arr-nudge .7s ease-in-out infinite; }

@keyframes arr-nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  text-decoration: none;
}

/* primary CTA — bright yellow / gold, highest contrast on the dark layout */
.btn-main {
  color: #1a1000;
  background: linear-gradient(180deg, #ffef7a 0%, #ffc800 52%, #ff9c00 100%);
  border-color: rgba(255, 255, 255, .34);
  box-shadow:
    0 0 0 3px rgba(255, 200, 0, .22),
    0 10px 28px rgba(255, 170, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .65);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.btn-main:hover {
  background: linear-gradient(180deg, #fff9b0 0%, #ffd824 52%, #ffae00 100%);
  box-shadow:
    0 0 0 4px rgba(255, 200, 0, .32),
    0 14px 34px rgba(255, 170, 0, .72),
    inset 0 1px 0 rgba(255, 255, 255, .8);
}

/* secondary CTA — green, kept bright so the pair stays readable */
.btn-alt {
  color: #04150e;
  background: linear-gradient(180deg, #2bff9e 0%, #00d774 55%, #00a95c 100%);
  border-color: rgba(255, 255, 255, .28);
  box-shadow:
    0 0 0 3px rgba(0, 231, 128, .18),
    0 10px 26px rgba(0, 231, 128, .45),
    inset 0 1px 0 rgba(255, 255, 255, .55);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.btn-alt:hover {
  background: linear-gradient(180deg, #5cffb5 0%, #00e784 55%, #00bd67 100%);
  box-shadow:
    0 0 0 4px rgba(0, 231, 128, .26),
    0 14px 32px rgba(0, 231, 128, .6),
    inset 0 1px 0 rgba(255, 255, 255, .7);
}

.btn-ghost {
  color: var(--lime);
  background: rgba(200, 228, 25, .08);
  border-color: var(--lime);
  box-shadow: inset 0 0 18px rgba(200, 228, 25, .12);
}

.btn-ghost:hover {
  color: #141a00;
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 10px 26px rgba(200, 228, 25, .5);
}

.btn-lime {
  color: #141a00;
  background: linear-gradient(180deg, #eaff5a 0%, #ccec14 55%, #a8c400 100%);
  border-color: rgba(255, 255, 255, .3);
  box-shadow:
    0 0 0 3px rgba(200, 228, 25, .18),
    0 10px 26px rgba(200, 228, 25, .5),
    inset 0 1px 0 rgba(255, 255, 255, .6);
  text-transform: uppercase;
  letter-spacing: .09em;
}

.btn-lime:hover {
  background: linear-gradient(180deg, #f4ff8d 0%, #d9fb28 55%, #bade00 100%);
  box-shadow:
    0 0 0 4px rgba(200, 228, 25, .26),
    0 14px 32px rgba(200, 228, 25, .65),
    inset 0 1px 0 rgba(255, 255, 255, .75);
}

.btn-wide { display: block; width: 100%; }

/* small header buttons stay calmer than the in-page CTAs */
.btn-sm.btn-ghost {
  color: var(--white);
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}

.btn-sm.btn-ghost:hover {
  color: var(--white);
  background: transparent;
  border-color: var(--green);
  box-shadow: none;
}

/* --- inline CTA box inside the article --- */
.cta-box {
  margin: 26px 0;
  padding: 18px;
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(0, 231, 128, .16), transparent 70%),
    var(--bg-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
  border-radius: var(--radius);
}

.cta-box p {
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--white);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-row .btn { flex: 1 1 100%; }

@media (min-width: 600px) {
  .cta-row .btn { flex: 0 1 auto; }
}

/* --- closing CTA strip after the FAQ --- */
.cta-final {
  text-align: center;
  padding: 26px 18px;
  background:
    radial-gradient(520px 200px at 50% 0%, rgba(0, 196, 106, .20), transparent 70%),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cta-final h1,
.cta-final h2 { font-size: 20px; margin-bottom: .5em; }
.cta-final p  { color: var(--text-dim); margin-bottom: 16px; }
.cta-final .cta-row { justify-content: center; }

/* --------------------------------------------------------------------------
   6b. Promo block: banner + text + CTA
   -------------------------------------------------------------------------- */
.promo-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.promo-block .pb-img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  /* keep the top-left corner of the banner visible — that is where the logo sits */
  object-position: left top;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #0a0a0a, #1d1a05 55%, #3a2f05);
}

.promo-block h1,
.promo-block h2 { margin-bottom: .55em; }
.promo-block p:last-of-type { margin-bottom: 18px; }
.promo-block .btn { width: 100%; }

/* --------------------------------------------------------------------------
   6c. Article typography
   -------------------------------------------------------------------------- */
.article h2 { margin-top: 1.5em; }
.article h3 { margin-top: 1.4em; color: var(--green); }
.article > :first-child { margin-top: 0; }
.article .table-scroll { margin: 0 0 22px; }
.article ol,
.article ul { margin-bottom: 1.2em; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero { padding: 22px 0 30px; }

/* wide banner card: artwork on the right, copy + CTA on the left */
.hero-card {
  position: relative;
  isolation: isolate;
  min-height: 260px;
  display: flex;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
}

/* readability veil over the artwork — dense on the left, clear on the right */
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 20, 16, .78) 0%, rgba(6, 20, 16, .42) 55%, rgba(6, 20, 16, .12) 100%);
}

.hero-body { padding: 22px 18px; width: 100%; }

.hero h1,
.hero h2 {
  margin-bottom: .3em;
  font-size: 27px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .85), 0 4px 22px rgba(0, 0, 0, .7);
}

.hero-lead {
  margin-bottom: 18px;
  max-width: 34ch;
  font-size: 15px;
  color: var(--white);
  text-shadow: 0 2px 6px rgba(0, 0, 0, .85), 0 4px 18px rgba(0, 0, 0, .7);
}

.btn-hero {
  min-width: 220px;
  padding: 14px 36px;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
}

.card-b {
  padding-top: 24px;
  border-top: 3px solid var(--green);
}

.card-b:nth-child(2) { border-top-color: var(--yellow); }
.card-b:nth-child(3) { border-top-color: var(--blue); }

.card-b .amount {
  display: block;
  margin-bottom: 4px;
  font-size: 24px;
  font-weight: 800;
  color: var(--yellow);
}

.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

/* steps */
.steps { counter-reset: st; list-style: none; padding: 0; margin: 0; }

.steps li {
  counter-increment: st;
  position: relative;
  padding: 14px 16px 14px 58px;
  margin-bottom: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.steps li::before {
  content: counter(st);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 15px;
  color: #04150e;
  background: var(--green);
}

.steps b { color: var(--white); }

/* games */
.games { grid-template-columns: repeat(2, 1fr); }

.game {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-align: center;
}

.game img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-3);
}

.game span {
  display: block;
  padding: 9px 6px;
  font-size: 13px;
  font-weight: 700;
}

/* tick list */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   9. Tables (responsive)
   -------------------------------------------------------------------------- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--bg-3);
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }

/* --------------------------------------------------------------------------
   10. Promo code box
   -------------------------------------------------------------------------- */
.promo-box {
  text-align: center;
  padding: 26px 18px;
  border: 2px dashed var(--yellow);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.promo-code {
  display: inline-block;
  margin: 10px 0 14px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #1a1400;
  background: var(--yellow);
  user-select: all;
}

/* --------------------------------------------------------------------------
   10b. Table of contents (details/summary — closed by default, no JS)
   -------------------------------------------------------------------------- */
.toc {
  padding: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.toc > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 16px 46px 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  font-weight: 700;
  color: var(--white);
}

.toc > summary::-webkit-details-marker { display: none; }

.toc > summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.toc[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }

.toc ol {
  margin: 4px 0 6px;
  padding: 8px 18px 4px 36px;
  counter-reset: toc;
  list-style: none;
}

.toc li { margin-bottom: 10px; counter-increment: toc; position: relative; }

.toc li::before {
  content: counter(toc) ".";
  position: absolute;
  left: -24px;
  color: var(--lime);
  font-weight: 700;
}

.toc a { color: var(--text); }
.toc a:hover { color: var(--lime); }

/* --------------------------------------------------------------------------
   11. FAQ (details/summary — no JS)
   -------------------------------------------------------------------------- */
.faq details {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 46px 15px 16px;
  position: relative;
  font-weight: 700;
  color: var(--white);
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { background: var(--bg-3); }
.faq .ans { padding: 14px 16px 4px; color: var(--text-dim); }

/* --------------------------------------------------------------------------
   12. CTA strip
   -------------------------------------------------------------------------- */
.cta-strip {
  text-align: center;
  padding: 28px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-dark), var(--blue));
  box-shadow: var(--shadow);
}

.cta-strip h2 { margin-bottom: .5em; }
.cta-strip p { color: rgba(255, 255, 255, .85); }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.ftr {
  margin-top: 20px;
  padding: 28px 0 78px; /* extra space so the back-to-top button never covers text */
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 14px;
  color: var(--text-dim);
}

.ftr-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 16px;
}

.ftr-nav a { color: var(--text-dim); }
.ftr-nav a:hover { color: var(--green); }

.age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 50%;
  border: 2px solid #ff5252;
  color: #ff5252;
  font-weight: 800;
  font-size: 14px;
}

.disclaimer { font-size: 12.5px; line-height: 1.6; }

.copyright {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

/* banner placeholder look */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   14. Breakpoints
   -------------------------------------------------------------------------- */
/* ---- very small phones (<=380px) ---- */
@media (max-width: 380px) {
  .logo img { height: 24px; max-width: 132px; }
  .langsw a { padding: 6px 10px; font-size: 12px; }
  .burger { width: 40px; height: 40px; padding: 0 9px; }
  .btn-sm { padding: 9px 10px; font-size: 13px; }
  .promo-code { font-size: 21px; padding: 10px 18px; letter-spacing: .08em; }
}

/* ---- phones / tablets: burger menu is active up to 899px ---- */
@media (max-width: 899px) {
  /* open menu panel gets a subtle background */
  .menu-chk:checked ~ .hdr-in .nav-box {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}

@media (min-width: 600px) {
  h1 { font-size: 34px; }
  h2 { font-size: 27px; }

  /* tablets: open menu shows links in two columns */
  .nav { grid-template-columns: repeat(2, 1fr); }
  .nav a { text-align: center; }

  .totop { right: 18px; bottom: 18px; width: 50px; height: 50px; line-height: 48px; font-size: 21px; }

  .hero-card { min-height: 280px; }
  .hero-body { padding: 28px 30px; }
  .hero h1, .hero h2 { font-size: 34px; }
  .hero-lead { font-size: 16px; max-width: 44ch; }

  /* veil turns horizontal — artwork on the right stays visible */
  .hero-card::before {
    background:
      linear-gradient(90deg, rgba(6, 20, 16, .86) 0%, rgba(6, 20, 16, .7) 38%, rgba(6, 20, 16, .22) 68%, rgba(6, 20, 16, 0) 100%);
  }

  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .games { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 24px 22px; }
}

@media (min-width: 900px) {
  body { font-size: 17px; }
  h1 { font-size: 42px; }
  h2 { font-size: 30px; }

  section { padding: 46px 0; }

  /* ---- desktop menu: always visible, burger hidden ---- */
  .hdr-in { flex-wrap: nowrap; min-height: 74px; }
  .burger { display: none; }

  .nav-box {
    display: block;
    order: 0;
    width: auto;
    margin-left: auto;
    margin-right: 14px;
  }

  .menu-chk:checked ~ .hdr-in .nav-box { max-height: none; overflow: visible; }

  .nav {
    grid-auto-flow: column;
    grid-template-columns: none;
    width: auto;
    margin: 0;
    padding: 0;
    border-top: 0;
  }

  .nav a { padding: 9px 15px; border-radius: 999px; font-size: 14px; }

  .hdr-right { margin-left: 0; }

  .hdr-auth {
    order: 0;
    width: auto;
    margin-left: 10px;
    flex: none;
  }

  .hdr-auth .btn { flex: none; }

  .totop { right: 26px; bottom: 26px; width: 54px; height: 54px; line-height: 52px; font-size: 22px; }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .games { grid-template-columns: repeat(6, 1fr); }

  .promo-block { grid-template-columns: 1fr 1fr; gap: 34px; padding: 26px; }
  .promo-block .pb-img { aspect-ratio: 16 / 10; }

  .hero-card { min-height: 300px; }
  .hero-body { padding: 34px 48px; max-width: 58%; }
  .hero h1, .hero h2 { font-size: 40px; }
  .hero-lead { font-size: 17px; max-width: 48ch; }
  .hero-img { object-position: right center; }

  .hero-card::before {
    background:
      linear-gradient(90deg, rgba(6, 20, 16, .88) 0%, rgba(6, 20, 16, .7) 42%, rgba(6, 20, 16, .18) 70%, rgba(6, 20, 16, 0) 100%);
  }

  table { min-width: 0; }
  .table-scroll { overflow-x: visible; }
}

/* --------------------------------------------------------------------------
   15. A11y / motion
   -------------------------------------------------------------------------- */
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .totop { transition: none; }

  .btn:hover,
  .totop:hover { transform: none; }

  .totop:hover .arr { animation: none; }
}
