/* ============================================================
   Brapen — Bright Cartoon Landing Page
   Style: chunky cartoon outlines + hard offset shadows + pastels
   Fonts: Fredoka (display) / Nunito (body), Vietnamese-ready
   ============================================================ */

:root {
  --bg: #FFF9F0;
  --surface: #FFFFFF;
  --ink: #2B2D42;
  --ink-soft: #5A5E7A;
  --orange: #FF6B35;
  --orange-d: #E85A24;
  --purple: #8B5CF6;
  --teal: #14B8A6;
  --pink: #EC4899;
  --yellow: #FBBF24;
  --blue: #0EA5E9;
  --red: #EF4444;
  --green: #22C55E;
  --tint: #FFF1E2;
  --tint-2: #EDF7FF;
  --radius: 20px;
  --radius-lg: 28px;
  --bd: 3px solid var(--ink);
  --shadow: 0 6px 0 rgba(43, 45, 66, .9);
  --shadow-sm: 0 4px 0 rgba(43, 45, 66, .9);
  --font-head: 'Fredoka', 'Nunito', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
  --header-h: 72px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
strong { font-weight: 800; }

::selection { background: var(--yellow); color: var(--ink); }

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

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}
.container--narrow { max-width: 840px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  padding: 15px 28px;
  border: var(--bd);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 rgba(43,45,66,.9); }

.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-d); }
.btn--ghost { background: var(--surface); color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; box-shadow: 0 6px 0 rgba(43,45,66,.35); }
.btn--white { background: #fff; color: var(--orange-d); }

.btn--sm { padding: 11px 20px; font-size: 15px; box-shadow: var(--shadow-sm); }
.btn--lg { padding: 18px 34px; font-size: 19px; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 240, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--bd);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: .3px;
}
.logo__text { color: var(--ink); }
.logo__text--light { color: #fff; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__link {
  font-weight: 800;
  font-size: 15.5px;
  color: var(--ink-soft);
  padding: 8px 2px;
  position: relative;
  transition: color .18s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 4px;
  border-radius: 4px;
  background: var(--orange);
  transition: right .22s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { right: 0; }
.nav__cta { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 10px;
  border: var(--bd);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.nav-toggle span {
  height: 3.5px;
  border-radius: 4px;
  background: var(--ink);
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 40px;
  background:
    radial-gradient(900px 420px at 85% -10%, #FFE8D6 0%, transparent 60%),
    radial-gradient(700px 380px at 0% 10%, #E0F2FE 0%, transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  z-index: 2;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: var(--bd);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  padding: 9px 18px;
  font-weight: 800;
  font-size: 14px;
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.14;
  letter-spacing: .2px;
  margin: 22px 0 18px;
}
.hl { position: relative; white-space: nowrap; }
.hl::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  bottom: .06em;
  height: .34em;
  z-index: -1;
  border-radius: 6px;
  transform: rotate(-1.2deg);
}
.hl--orange { color: var(--orange-d); }
.hl--orange::after { background: #FFE08A; }
.hl--purple { color: var(--purple); }
.hl--purple::after { background: #DDD6FE; }

.hero__sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 34em;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 30px 0 26px;
}
.hero__stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  color: var(--orange-d);
}
.hero__stats li:nth-child(2) strong { color: var(--purple); }
.hero__stats li:nth-child(3) strong { color: var(--teal); }
.hero__stats span { font-size: 14.5px; color: var(--ink-soft); font-weight: 700; }

.hero__art { position: relative; }
.hero-svg { width: 100%; height: auto; filter: drop-shadow(0 14px 0 rgba(43,45,66,.07)); }

.hero__wave { position: relative; z-index: 1; margin: 26px -20px -40px; }
.hero__wave svg { width: 100%; height: 60px; display: block; }

/* Floating decorations */
.hero__bg, .cta-banner__decor { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.shape {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 34px; height: 34px;
  opacity: .9;
  animation: shapeFloat 5.2s ease-in-out var(--d, 0s) infinite alternate;
  background-repeat: no-repeat;
  background-size: contain;
}
.shape--star {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.6 5.8 6.4.7-4.7 4.3 1.3 6.2L12 15.9 6.4 19l1.3-6.2L3 8.5l6.4-.7L12 2z' fill='%23FBBF24' stroke='%232B2D42' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.shape--circle {
  width: 26px; height: 26px;
  background: #A5F3FC;
  border: 3px solid var(--ink);
  border-radius: 50%;
}
.shape--triangle {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.5 21 20H3L12 3.5z' fill='%23F9A8D4' stroke='%232B2D42' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.shape--squiggle {
  width: 44px; height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 22'%3E%3Cpath d='M3 15q7-12 14 0t14 0 10-8' fill='none' stroke='%2314B8A6' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
.shape--dot {
  width: 16px; height: 16px;
  background: var(--purple);
  border: 3px solid var(--ink);
  border-radius: 50%;
}
.shape--dot-2 { background: var(--orange); }

@keyframes shapeFloat {
  from { transform: translateY(0) rotate(-4deg); }
  to   { transform: translateY(-14px) rotate(6deg); }
}

/* Hero SVG floaters */
.float-slow { animation: heroFloat 4.6s ease-in-out infinite alternate; transform-origin: 230px 210px; }
.float-1 { animation: heroFloat 3.4s ease-in-out infinite alternate; }
.float-2 { animation: heroFloat 4s ease-in-out .4s infinite alternate; }
.float-3 { animation: heroFloat 3.6s ease-in-out .8s infinite alternate; }
.float-4 { animation: heroFloat 4.2s ease-in-out .2s infinite alternate; }
@keyframes heroFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-12px); }
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--surface);
  padding: 42px 0 8px;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: var(--bd);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.trust__item:hover { transform: translateY(-3px); box-shadow: 0 7px 0 rgba(43,45,66,.9); }
.trust__icon {
  flex: 0 0 52px;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: var(--bd);
}
.trust__icon--orange { background: var(--orange); }
.trust__icon--teal { background: var(--teal); }
.trust__icon--purple { background: var(--purple); }
.trust__icon--pink { background: var(--pink); }
.trust__item strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 16.5px; }
.trust__item span { font-size: 13.5px; color: var(--ink-soft); font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tinted { background: var(--tint-2); }
#why.section { background: var(--surface); }
.section#how { background: var(--tint); }

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}
.section__head h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(27px, 3.6vw, 40px);
  line-height: 1.2;
  margin: 16px 0 12px;
}
.section__head p { color: var(--ink-soft); font-size: 17.5px; }

.section__tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  padding: 8px 18px;
  border: var(--bd);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.section__tag--orange { background: #FFE8D6; color: var(--orange-d); }
.section__tag--purple { background: #EDE9FE; color: var(--purple); }
.section__tag--teal { background: #CCFBF1; color: #0F766E; }
.section__tag--pink { background: #FCE7F3; color: var(--pink); }
.section__tag--blue { background: #E0F2FE; color: #0369A1; }

.section__more { text-align: center; margin-top: 48px; }

/* ---------- Games grid ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.game-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: var(--bd);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.game-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 12px 0 rgba(43,45,66,.9); }
.game-card:active { transform: translateY(2px); box-shadow: var(--shadow-sm); }

.game-card__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, var(--g1), var(--g2));
  border-bottom: var(--bd);
  overflow: hidden;
}
.game-card__thumb svg {
  width: 100%; height: 100%;
  transition: transform .3s ease;
}
.game-card:hover .game-card__thumb svg { transform: scale(1.06) rotate(-1deg); }

.game-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  flex: 1;
}
.game-card__body strong {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
}
.game-card__play {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 14.5px;
  color: var(--orange-d);
  transition: gap .18s ease;
}
.game-card:hover .game-card__play { gap: 12px; }

.chip {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
}
.chip--yellow { background: #FEF3C7; color: #92400E; }
.chip--green { background: #DCFCE7; color: #166534; }
.chip--blue { background: #DBEAFE; color: #1E40AF; }
.chip--red { background: #FEE2E2; color: #B91C1C; }
.chip--purple { background: #EDE9FE; color: #6D28D9; }
.chip--pink { background: #FCE7F3; color: #BE185D; }

/* ---------- Categories ---------- */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: var(--cb);
  border: var(--bd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px 20px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: 0 11px 0 rgba(43,45,66,.9); }
.cat-card:active { transform: translateY(2px); box-shadow: var(--shadow-sm); }
.cat-card__icon {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  background: var(--c);
  border: var(--bd);
  border-radius: 18px;
  margin-bottom: 12px;
}
.cat-card strong { font-family: var(--font-head); font-weight: 600; font-size: 19px; }
.cat-card > span:last-child { font-size: 14px; color: var(--ink-soft); font-weight: 700; }

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.why-card {
  position: relative;
  background: var(--surface);
  border: var(--bd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.why-card:hover { transform: translateY(-5px); box-shadow: 0 11px 0 rgba(43,45,66,.9); }
.why-card__num {
  position: absolute;
  top: 12px; right: 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 42px;
  color: var(--c);
  opacity: .22;
}
.why-card__icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: var(--bd);
  margin-bottom: 16px;
}
.why-card__icon--orange { background: var(--orange); }
.why-card__icon--purple { background: var(--purple); }
.why-card__icon--teal { background: var(--teal); }
.why-card__icon--pink { background: var(--pink); }
.why-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19.5px;
  margin-bottom: 8px;
}
.why-card p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step {
  position: relative;
  text-align: center;
  background: var(--surface);
  border: var(--bd);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 38px 26px 30px;
}
.step__bubble {
  display: inline-grid;
  place-items: center;
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--c);
  border: var(--bd);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  color: #fff;
  margin-bottom: 18px;
}
.step h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 8px;
}
.step p { color: var(--ink-soft); font-size: 15.5px; }

@media (min-width: 861px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 70px;
    left: calc(100% - 4px);
    width: 30px;
    border-top: 4px dashed var(--ink-soft);
  }
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 16px; }
.faq__item {
  background: var(--surface);
  border: var(--bd);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17.5px;
  transition: background-color .18s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: #FFF7EC; }
.faq__chev {
  flex: 0 0 30px;
  width: 30px; height: 30px;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  background: var(--yellow);
  position: relative;
  transition: transform .22s ease;
}
.faq__chev::before {
  content: "";
  position: absolute;
  left: 8px; top: 9px;
  width: 9px; height: 9px;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(45deg);
}
.faq__item[open] .faq__chev { transform: rotate(180deg); background: var(--orange); }
.faq__answer {
  padding: 0 22px 22px;
  color: var(--ink-soft);
}
.faq__answer a { color: var(--orange-d); font-weight: 800; text-decoration: underline; }

/* ---------- CTA banner ---------- */
.cta-banner { padding: 20px 0 100px; background: var(--surface); }
.cta-banner__box {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(500px 260px at 20% 0%, rgba(255,255,255,.25), transparent 60%),
    linear-gradient(135deg, #FF8A50, var(--orange) 55%, var(--orange-d));
  border: var(--bd);
  border-radius: 36px;
  box-shadow: 0 12px 0 rgba(43,45,66,.9);
  padding: 70px 30px;
}
.cta-banner__box > * { position: relative; z-index: 2; }
.cta-banner h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 12px;
  text-shadow: 0 3px 0 rgba(43,45,66,.25);
}
.cta-banner p { font-size: 18px; opacity: .95; margin-bottom: 30px; font-weight: 700; }
.cta-banner .shape { opacity: .55; }

/* ---------- Footer ---------- */
.footer {
  background: #23253A;
  color: #C7C9DC;
  padding-top: 72px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__brand p {
  margin: 18px 0 16px;
  font-size: 15px;
  max-width: 30em;
}
.footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.25);
  padding: 10px 18px;
  border-radius: 999px;
  transition: background-color .18s ease, border-color .18s ease;
}
.footer__mail:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.footer__col h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 700;
  transition: color .16s ease, transform .16s ease;
}
.footer__col a:hover { color: var(--yellow); transform: translateX(4px); }
.footer__bottom {
  border-top: 2px solid rgba(255,255,255,.12);
  padding-top: 22px;
  padding-bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 14px;
}
.footer__note { color: #9BA0BC; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { gap: 24px; }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .cats-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: calc(var(--header-h) + 3px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border-bottom: var(--bd);
    padding: 16px 20px 22px;
    box-shadow: 0 18px 0 rgba(43,45,66,.12);
    display: none;
  }
  .nav.open { display: flex; }
  .nav__link { padding: 13px 10px; font-size: 17px; border-radius: 12px; }
  .nav__link:hover { background: var(--tint); }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 10px; text-align: center; }
  .nav-toggle { display: flex; }

  .hero { padding-top: 46px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; margin: 8px auto 0; }
  .hero__sub { font-size: 17px; }
  .section { padding: 72px 0; }
  .steps { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .game-card__body { padding: 12px 13px 14px; }
  .game-card__body strong { font-size: 15.5px; }
  .game-card__play { font-size: 13px; }
  .chip { font-size: 10px; padding: 3px 8px; border-width: 2px; }
  .cats-grid, .why-grid, .trust__grid { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; }
  .hero__stats { gap: 24px; }
  .cta-banner__box { padding: 52px 20px; border-radius: 28px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Legal pages (privacy / terms) ---------- */
.legal { padding: 64px 0 96px; }
.legal__box {
  background: var(--surface);
  border: var(--bd);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 48px 52px;
}
.legal h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 8px;
}
.legal__updated {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-soft);
  background: var(--tint);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 28px;
}
.legal h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 21px;
  margin: 30px 0 10px;
  padding-left: 14px;
  border-left: 6px solid var(--orange);
  line-height: 1.35;
}
.legal p { color: var(--ink-soft); margin-bottom: 10px; }
.legal ul, .legal ol {
  list-style: disc;
  padding-left: 24px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.legal ol { list-style: decimal; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--orange-d); font-weight: 800; text-decoration: underline; }
.legal strong { color: var(--ink); }

@media (max-width: 640px) {
  .legal__box { padding: 30px 22px; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 800;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--orange-d); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb strong { color: var(--ink); }

/* ---------- Player page ---------- */
.container--wide { max-width: 1080px; }
.player-section { padding: 40px 0 90px; }

.player {
  background: var(--surface);
  border: var(--bd);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.player__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1B1D2E;
  overflow: hidden;
}
.player__stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player__stage:fullscreen { aspect-ratio: auto; background: #000; }
.player__poster {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.player__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
}
.player__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,29,46,.05), rgba(27,29,46,.55));
}
.player__bigplay {
  position: relative;
  z-index: 2;
  width: 92px; height: 92px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  border: 4px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 8px 0 rgba(43,45,66,.9);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.player__poster:hover .player__bigplay {
  transform: scale(1.08);
  background: var(--orange-d);
}
.player__poster:active .player__bigplay {
  transform: translateY(4px);
  box-shadow: 0 3px 0 rgba(43,45,66,.9);
}
.player__hint {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(35,37,58,.85);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
}
.player__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-top: var(--bd);
}
.player__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.player__meta h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(21px, 3vw, 28px);
}
.player__about {
  margin-top: 30px;
  background: var(--surface);
  border: var(--bd);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 28px;
}
.player__about h2, .related h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 23px;
  margin-bottom: 12px;
}
.player__about p { color: var(--ink-soft); margin-bottom: 10px; }
.player__tips { font-size: 14.5px; }
.related { margin-top: 44px; }
.related .games-grid { margin-top: 18px; }

/* ---------- Category page ---------- */
.catpage { padding-top: 40px; }
.catpage__head { margin-bottom: 24px; }
.catpage__head h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 6px;
}
.catpage__head p { color: var(--ink-soft); font-size: 17px; }

.catnav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}
.catpill {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 20px;
  background: var(--surface);
  border: var(--bd);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, background-color .16s ease, color .16s ease;
}
.catpill:hover { transform: translateY(2px); }
.catpill.active { background: var(--ink); color: #fff; }

/* ---------- Image thumbs in cards (feed games) ---------- */
.game-card__thumb--img { position: relative; }
.game-card__thumb--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.game-card:hover .game-card__thumb--img img { transform: scale(1.06); }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
  font-weight: 700;
  padding: 40px 0;
}

@media (max-width: 640px) {
  .player__hint { font-size: 12px; bottom: 12px; }
  .player__bar { padding: 14px 16px; }
  .player__about { padding: 20px 18px; }
}
