/* ============================================================
   JMH Developers — landing styles v2 (bold kids-brand look)
   ============================================================ */
:root {
  --violet: #5B3DF5;
  --violet-deep: #4326E0;
  --violet-dark: #33208F;
  --ink: #2B1B54;
  --ink-soft: #4A3B78;
  --muted: #6A5F94;

  --pink: #FF4D9D;
  --pink-deep: #E82C82;
  --yellow: #FFC531;
  --yellow-deep: #E0A308;
  --aqua: #23D5AE;
  --aqua-deep: #0FB18E;
  --orange: #FF8A3D;
  --blue: #47A8FF;

  --cream: #FFF7EC;
  --lavender: #F1EDFF;
  --mint: #E2FAF1;
  --surface: #FFFFFF;
  --line: #EBE2D2;

  --r-lg: 32px;
  --r-md: 24px;
  --r-sm: 16px;

  --shadow-sm: 0 3px 12px rgba(43, 27, 84, 0.08);
  --shadow-md: 0 14px 34px rgba(43, 27, 84, 0.14);
  --shadow-lg: 0 28px 64px rgba(43, 27, 84, 0.22);

  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- keyboard accessibility ---------- */
.skip-link {
  position: fixed;
  top: -80px; left: 16px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 13px 24px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}
.hero :focus-visible, .hard :focus-visible, .footer :focus-visible,
.header:not(.scrolled) :focus-visible, .platform-card :focus-visible {
  outline-color: var(--yellow);
}

/* ---------- typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.section { padding: 96px 0; position: relative; }

.section-head { max-width: 780px; margin-bottom: 56px; position: relative; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 16px; font-weight: 600; }
.section-head p { color: var(--muted); font-size: 19px; }

/* kicker chip */
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
  transform: rotate(-2deg);
  box-shadow: var(--shadow-sm);
}
.kicker--pink { background: #D6176F; }
.kicker--violet { background: var(--violet); }
.kicker--aqua { background: #0B8368; }
.kicker--yellow { background: var(--yellow); color: var(--ink); }
.kicker--orange { background: #C25207; }

/* squiggle-underlined accent word */
.squiggle {
  position: relative;
  white-space: nowrap;
}
.squiggle::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -0.12em;
  height: 0.22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 14 2, 26 12, 38 7 S 62 2, 74 8 S 100 12, 118 5' fill='none' stroke='%23FFC531' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.squiggle--pink::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 14 2, 26 12, 38 7 S 62 2, 74 8 S 100 12, 118 5' fill='none' stroke='%23FF4D9D' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}
.squiggle--aqua::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 14 2, 26 12, 38 7 S 62 2, 74 8 S 100 12, 118 5' fill='none' stroke='%2323D5AE' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* phones: the hero phrase is too long for nowrap — let it wrap, drop the underline */
@media (max-width: 640px) {
  .hero h1 .squiggle { white-space: normal; }
  .hero h1 .squiggle::after { display: none; }
}

/* ---------- waves ---------- */
.wave { display: block; width: 100%; height: 72px; margin-bottom: -1px; }
.wave svg { display: block; width: 100%; height: 100%; }
@media (max-width: 680px) { .wave { height: 42px; } }

/* ---------- buttons: chunky 3D pills ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  padding: 16px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn svg { flex: 0 0 auto; }
.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--yellow-deep);
}
.btn--yellow:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--yellow-deep); }
.btn--violet {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 6px 0 var(--violet-dark);
}
.btn--violet:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--violet-dark); }
.btn--pink {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 6px 0 var(--pink-deep);
}
.btn--pink:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--pink-deep); }
.btn--outline-white {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: none;
}
.btn--outline-white:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(2px); }
.btn--ink {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 6px 0 #180e33;
}
.btn--ink:hover { transform: translateY(3px); box-shadow: 0 3px 0 #180e33; }

/* ---------- header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 14px 0;
  color: #fff;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.header.scrolled {
  background: var(--cream);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(43, 27, 84, 0.08);
  color: var(--ink);
}
.header .container { display: flex; align-items: center; gap: 28px; }

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.05;
  color: currentColor;
}
.logo b { display: block; font-weight: 600; }
.logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.65;
}
.logo-word { height: 52px; width: auto; display: block; filter: drop-shadow(0 3px 8px rgba(24, 14, 51, 0.28)); }
.footer .logo-word { height: 60px; }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: currentColor;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.nav a:hover { background: rgba(255, 255, 255, 0.16); }
.header.scrolled .nav a:hover { background: rgba(91, 61, 245, 0.1); }

.header .btn { padding: 12px 24px; font-size: 15.5px; }

.burger {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 2.5px solid currentColor;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  position: relative;
}
.burger span, .burger::before, .burger::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}
.burger::before { top: 14px; }
.burger span { top: 20.5px; }
.burger::after { top: 27px; }
.burger.open::before { top: 20.5px; transform: rotate(45deg); }
.burger.open span { opacity: 0; }
.burger.open::after { top: 20.5px; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 76px; left: 16px; right: 16px;
  z-index: 99;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
  padding: 13px 18px;
  border-radius: 14px;
}
.mobile-menu a:active, .mobile-menu a:hover { background: var(--lavender); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 77, 157, 0.35), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(35, 213, 174, 0.28), transparent 55%),
    linear-gradient(160deg, #6A47FF 0%, #5B3DF5 45%, #4326E0 100%);
  color: #fff;
  padding: 170px 0 30px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 600;
  margin: 6px 0 20px;
  line-height: 1.08;
}
.hero-sub {
  font-size: 19.5px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 530px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* hero decor */
.hero-decor { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-decor svg { position: absolute; }
.dec-star1 { top: 14%; left: 44%; width: 34px; animation: spin-slow 14s linear infinite; opacity: 0.9; }
.dec-star2 { top: 68%; left: 4%; width: 22px; animation: spin-slow 18s linear infinite reverse; opacity: 0.7; }
.dec-star3 { top: 22%; right: 4%; width: 26px; animation: spin-slow 16s linear infinite; opacity: 0.8; }
.dec-cloud1 { top: 12%; left: -60px; width: 220px; opacity: 0.10; }
.dec-cloud2 { bottom: 18%; right: -70px; width: 280px; opacity: 0.10; }
.dec-ring { top: 58%; left: 48%; width: 46px; opacity: 0.5; animation: floaty 7s ease-in-out infinite; }

@keyframes spin-slow { to { transform: rotate(360deg); } }

/* hero visual: dress-up mechanic from Chibi Dolls */
.hero-visual { position: relative; min-height: 660px; }
.phone--main {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%) rotate(2deg);
  width: 288px;
  border-radius: 52px;
  background: #241847;
  padding: 12px;
  box-shadow: 0 34px 70px rgba(24, 14, 51, 0.45);
  z-index: 2;
}
.phone--main img {
  display: block;
  border-radius: 42px;
  width: 100%;
  height: auto;
  aspect-ratio: 1284 / 2578;
}
.dress-tile {
  position: absolute;
  width: 112px;
  background: #fff;
  border-radius: 24px;
  padding: 10px;
  box-shadow: 0 16px 34px rgba(24, 14, 51, 0.30);
  animation: floaty 5.6s ease-in-out infinite;
  z-index: 3;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.45s ease;
}
.dress-tile img { display: block; border-radius: 15px; width: 100%; height: auto; }
.dt--1 { left: calc(50% - 252px); top: 5%; transform: rotate(-8deg); animation-delay: 0s; }
.dt--2 { left: calc(50% + 140px); top: 13%; transform: rotate(7deg); animation-delay: 0.9s; }
.dt--3 { left: calc(50% - 246px); bottom: 24%; transform: rotate(6deg); animation-delay: 1.7s; }
.dt--4 { left: calc(50% + 136px); bottom: 5%; transform: rotate(-7deg); animation-delay: 2.5s; }
.dt--5 { left: calc(50% - 188px); bottom: -14px; transform: rotate(4deg); animation-delay: 3.3s; width: 98px; }
.dress-tile.active {
  transform: scale(1.15) rotate(-2deg) !important;
  box-shadow: 0 0 0 5px var(--yellow), 0 20px 44px rgba(24, 14, 51, 0.38);
  z-index: 4;
}
.hv-star1 { position: absolute; top: 1%; left: 38%; width: 30px; animation: spin-slow 14s linear infinite; z-index: 1; }
.hv-star2 { position: absolute; bottom: 9%; right: 36%; width: 22px; animation: spin-slow 18s linear infinite reverse; z-index: 4; }

@keyframes floaty {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -16px; }
}

/* ---------- stats stickers ---------- */
.stats { padding: 40px 0 24px; background: var(--cream); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.stat {
  border-radius: var(--r-md);
  padding: 28px 24px 24px;
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease;
  position: relative;
  overflow: hidden;
}
.stat:hover { transform: rotate(0deg) translateY(-6px) !important; }
.stat--pink { background: var(--pink); transform: rotate(-2deg); }
.stat--violet { background: var(--violet); transform: rotate(1.6deg); }
.stat--aqua { background: var(--aqua); color: var(--ink); transform: rotate(-1.4deg); }
.stat--yellow { background: var(--yellow); color: var(--ink); transform: rotate(2deg); }
.stat::after {
  content: "";
  position: absolute;
  top: -34px; right: -34px;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.stat--yellow::after { background: rgba(255, 255, 255, 0.35); }
.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1.05;
}
.stat-label { font-weight: 800; font-size: 15px; margin-top: 8px; opacity: 0.92; }
.stats-foot {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

/* ---------- marquee ---------- */
.marquee-band { padding: 40px 0 8px; overflow: hidden; background: var(--cream); }
.marquee {
  display: flex;
  gap: 26px;
  width: max-content;
  padding: 16px 0;
  animation: scroll-x 50s linear infinite;
}
.marquee--reverse { animation-direction: reverse; animation-duration: 58s; }
.marquee-band:hover .marquee { animation-play-state: paused; }
.marquee img {
  width: 96px; height: 96px;
  border-radius: 26%;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(43, 27, 84, 0.16);
  transition: transform 0.25s ease;
}
.marquee img:nth-child(odd) { transform: rotate(-3deg); }
.marquee img:nth-child(even) { transform: rotate(2.5deg); }
/* hover lift belongs to the clickable copy only — the loop clone is inert, so it
   must not advertise an interaction it cannot perform */
.marquee > span { pointer-events: none; }
.marquee-mask {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- about ---------- */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: start;
}
.about-copy h2 { font-size: clamp(32px, 4.2vw, 48px); margin-bottom: 20px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 18px; font-size: 18px; }
.about-copy p b { color: var(--ink); }

.service-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.service-chips li {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15.5px;
  color: #fff;
  border-radius: 999px;
  padding: 10px 20px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-1deg);
}
.service-chips li:nth-child(even) { transform: rotate(1.2deg); }
.service-chips li:nth-child(5n+1) { background: var(--violet); }
.service-chips li:nth-child(5n+2) { background: var(--pink); }
.service-chips li:nth-child(5n+3) { background: var(--aqua); }
.service-chips li:nth-child(5n+4) { background: var(--orange); }
.service-chips li:nth-child(5n+5) { background: var(--blue); }

.about-panel {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 36px;
  transform: rotate(1deg);
  border: 3px solid var(--lavender);
}
.about-panel h3 { font-size: 24px; margin-bottom: 20px; }
.about-panel ul { display: grid; gap: 18px; }
.about-panel li { display: flex; gap: 15px; align-items: flex-start; }
.about-panel li .ico {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 22px;
  transform: rotate(-4deg);
}
.about-panel li b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.about-panel li p { color: var(--muted); font-size: 15px; line-height: 1.55; }

.ico--pink { background: #FFE1EF; color: #D6176F; }
.ico--yellow { background: #FFF1C9; color: #A87608; }
.ico--aqua { background: #D6F8EE; color: #0B8368; }
.ico--blue { background: #DCEEFF; color: #2668C5; }
.ico--violet { background: #E7E0FF; color: var(--violet); }
.ico--orange { background: #FFE7D4; color: #C25207; }

/* ---------- games ---------- */
.games { background: var(--lavender); }
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.game-card {
  background: var(--surface);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.game-card:hover {
  transform: translateY(-8px) rotate(-1.2deg);
  box-shadow: var(--shadow-lg);
}
.game-cover {
  height: 158px;
  overflow: hidden;
  position: relative;
}
.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transition: transform 0.35s ease;
}
.game-card:hover .game-cover img { transform: scale(1.06); }
.game-cover .game-cat {
  position: absolute;
  top: 12px; right: 12px;
}
.game-body {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.game-icon {
  width: 72px; height: 72px;
  border-radius: 24%;
  border: 4px solid #fff;
  box-shadow: var(--shadow-sm);
  margin-top: -38px;
  position: relative;
  z-index: 2;
  background: #fff;
  transform: rotate(-3deg);
}
.game-card h3 { font-size: 18.5px; font-weight: 600; line-height: 1.25; margin-top: 6px; }
.card-title-link { color: inherit; text-decoration: none; position: relative; z-index: 6; }
.card-title-link:hover { color: var(--violet); }
.game-cat {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-block;
  color: #fff;
  box-shadow: 0 3px 8px rgba(43, 27, 84, 0.18);
}
.cat--pink { background: #D6176F; }
.cat--yellow { background: var(--yellow); color: var(--ink); }
.cat--aqua { background: #0B8368; }
.cat--blue { background: #2668C5; }
.cat--violet { background: var(--violet); }
.cat--orange { background: #C25207; }

.game-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 800;
  margin-top: auto;
}
.game-meta .star { color: var(--yellow-deep); }
.age-pill {
  margin-left: auto;
  background: var(--lavender);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  color: var(--ink-soft);
}
.game-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 6;
}
.game-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--violet);
  padding: 6px 0;
}
.game-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.game-link--gp { color: #0B7A60; }
.game-link svg { transition: transform 0.2s ease; }
.game-card:hover .game-link svg { transform: translateX(5px); }
.game-card > a.cover-link { position: absolute; inset: 0; z-index: 5; }

.games-foot {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.games-foot p { color: var(--muted); font-weight: 800; font-size: 16px; }
.games-foot-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ---------- hard section (dark) ---------- */
.hard { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hard .section-head p { color: #B9AEDF; }
.hard .section-head h2 { color: #fff; }
.hard-decor svg { position: absolute; pointer-events: none; }
.hd-star1 { top: 10%; left: 5%; width: 26px; opacity: 0.5; animation: spin-slow 16s linear infinite; }
.hd-star2 { bottom: 14%; right: 6%; width: 34px; opacity: 0.45; animation: spin-slow 20s linear infinite reverse; }
.hd-ring { top: 16%; right: 12%; width: 44px; opacity: 0.35; }

.hard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
  z-index: 1;
}
.hard-card {
  background: #372563;
  border-radius: var(--r-md);
  padding: 30px 28px;
  transition: transform 0.25s ease, background 0.25s ease;
  border-bottom: 5px solid transparent;
}
.hard-card:nth-child(6n+1) { border-bottom-color: var(--pink); }
.hard-card:nth-child(6n+2) { border-bottom-color: var(--blue); }
.hard-card:nth-child(6n+3) { border-bottom-color: var(--yellow); }
.hard-card:nth-child(6n+4) { border-bottom-color: var(--aqua); }
.hard-card:nth-child(6n+5) { border-bottom-color: var(--violet); }
.hard-card:nth-child(6n+6) { border-bottom-color: var(--orange); }
.hard-card:hover { background: #41307A; transform: translateY(-6px) rotate(-0.6deg); }
.hard-card .ico {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 18px;
  transform: rotate(-5deg);
}
.hard-card h3 { font-size: 20px; margin-bottom: 10px; color: #fff; font-weight: 600; }
.hard-card p { color: #C6BCE8; font-size: 15.5px; line-height: 1.6; }
.hard-foot {
  margin-top: 48px;
  text-align: center;
  color: #D9D1F2;
  font-size: 18px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.hard-foot .hl { color: var(--yellow); font-weight: 800; }

/* ---------- process ---------- */
.process { background: var(--cream); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.step {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step:nth-child(odd) { transform: rotate(-0.5deg); }
.step:nth-child(even) { transform: rotate(0.5deg); }
.step:hover { transform: translateY(-5px) rotate(0deg); box-shadow: var(--shadow-md); }
.step-num {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: #fff;
  transform: rotate(-6deg);
  box-shadow: var(--shadow-sm);
}
.step:nth-child(8n+1) .step-num { background: var(--pink); }
.step:nth-child(8n+2) .step-num { background: var(--violet); }
.step:nth-child(8n+3) .step-num { background: var(--orange); }
.step:nth-child(8n+4) .step-num { background: var(--aqua); }
.step:nth-child(8n+5) .step-num { background: var(--blue); }
.step:nth-child(8n+6) .step-num { background: var(--yellow); color: var(--ink); }
.step:nth-child(8n+7) .step-num { background: var(--pink); }
.step:nth-child(8n+8) .step-num { background: var(--violet); }
.step h3 { font-size: 20px; margin-bottom: 8px; font-weight: 600; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- stack ---------- */
.stack { background: var(--mint); }
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.stack-card {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stack-card:hover { transform: translateY(-6px) rotate(0.8deg); box-shadow: var(--shadow-md); }
.stack-card .ico {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 26px;
  transform: rotate(-4deg);
}
.stack-card h3 { font-size: 20px; margin-bottom: 6px; font-weight: 600; }
.stack-card p { color: var(--muted); font-size: 15px; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.stack-tags span {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--ink-soft);
}

/* ---------- platforms ---------- */
.platforms { background: var(--cream); }
.platforms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.platform-card {
  display: flex;
  align-items: center;
  gap: 24px;
  border-radius: var(--r-lg);
  padding: 38px 36px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease;
  color: #fff;
}
.platform-card:hover { transform: translateY(-6px); }
.platform-card--ios { background: linear-gradient(140deg, #33208F, var(--ink)); transform: rotate(-0.8deg); }
.platform-card--android { background: linear-gradient(140deg, #0FB18E, #0A8A6E); transform: rotate(0.8deg); }
.platform-logo {
  flex: 0 0 auto;
  width: 76px; height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.platform-card h3 { font-size: 23px; color: #fff; font-weight: 600; }
.platform-card p { color: rgba(255, 255, 255, 0.85); font-size: 15px; margin-top: 6px; }
.platform-link {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--yellow);
}
.platform-note { color: rgba(255, 255, 255, 0.75); font-size: 14px; font-weight: 700; margin-top: 12px; }

/* ---------- CTA ---------- */
.cta { background: var(--cream); padding-bottom: 110px; }
.cta-panel {
  background: var(--yellow);
  border-radius: 44px;
  padding: 76px 44px;
  text-align: center;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cta-panel::before, .cta-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.cta-panel::before { width: 340px; height: 340px; top: -160px; left: -110px; }
.cta-panel::after { width: 280px; height: 280px; bottom: -130px; right: -80px; }
.cta-decor svg { position: absolute; }
.cta-star1 { bottom: 16%; left: 6%; width: 30px; animation: spin-slow 14s linear infinite; }
.cta-star2 { top: 16%; right: 6%; width: 24px; animation: spin-slow 18s linear infinite reverse; }
@media (max-width: 680px) {
  .cta-decor { display: none; }
}
.cta-panel h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 14px; position: relative; z-index: 1; font-weight: 600; }
.cta-panel > p { font-size: 18.5px; color: #5C4A14; max-width: 560px; margin: 0 auto 34px; position: relative; z-index: 1; font-weight: 700; }
.cta-panel .btn { position: relative; z-index: 1; }
.cta-mail { margin-top: 20px; position: relative; z-index: 1; font-weight: 800; font-size: 15px; color: #5C4A14; }
.cta-mail a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: #CFC6EC;
  padding: 72px 0 40px;
}
.footer .logo { color: #fff; }
.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin-bottom: 44px;
}
.footer-about { color: #B9AEDF; font-size: 15px; max-width: 430px; }
.footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(28px, 9vw, 110px);
  margin-bottom: 36px;
}
.footer-legal a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: #DDD5F5;
  transition: color 0.2s ease;
}
.footer-legal a:hover { color: #fff; }
.footer-req { color: #B9AEDF; font-size: 14px; line-height: 1.7; font-style: normal; }
.footer-req b { color: #fff; }
.footer-req a { color: #DDD5F5; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #9C8FC9;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- legal pages ---------- */
/* legal pages have no burger menu, so keep their back button on small screens */
@media (max-width: 920px) {
  body .header--legal > .container > .btn { display: inline-flex; padding: 10px 16px; font-size: 14px; }
}

/* app marquee above the legal text (these pages get real traffic) */
.legal-apps { padding: 104px 0 8px; background: var(--cream); }
.legal-apps-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  text-align: center;
  margin-bottom: 4px;
}
.legal-apps-title a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.legal-apps .marquee-band { padding: 12px 0 20px; }
.legal-apps .marquee img { width: 76px; height: 76px; }

/* catalog pointer under related games */
.rel-apps-note {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-align: center;
  margin: 26px 0 0;
}
.rel-apps-note a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 680px) {
  .legal-apps { padding-top: 92px; }
  .legal-apps .marquee img { width: 62px; height: 62px; }
  .legal-apps-title { font-size: 15px; line-height: 1.45; }
}

.legal-hero {
  padding: 56px 0 90px;
  background: linear-gradient(160deg, #6A47FF 0%, #5B3DF5 55%, #4326E0 100%);
  color: #fff;
}
/* no marquee above — the hero itself has to clear the fixed header */
.legal-hero--top { padding-top: 170px; }
.legal-hero h1 { font-size: clamp(34px, 4.5vw, 52px); margin-bottom: 14px; font-weight: 600; }
.legal-hero p { color: rgba(255, 255, 255, 0.85); font-size: 17.5px; max-width: 640px; }
.legal-body { padding: 56px 0 96px; background: var(--cream); }
.legal-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 5vw, 56px);
  max-width: 880px;
  margin-top: -120px;
  position: relative;
  z-index: 2;
}
.legal-card h2 { font-size: 22px; margin: 34px 0 10px; font-weight: 600; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { color: var(--ink-soft); margin-bottom: 12px; }
.legal-card ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; color: var(--ink-soft); }
.legal-card li { margin-bottom: 6px; }
.legal-card a { color: var(--violet); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-note {
  background: var(--lavender);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 12px 0;
}

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* rotated elements need their rotation back after reveal */
.stat.reveal.in.stat--pink { transform: rotate(-2deg); }
.stat.reveal.in.stat--violet { transform: rotate(1.6deg); }
.stat.reveal.in.stat--aqua { transform: rotate(-1.4deg); }
.stat.reveal.in.stat--yellow { transform: rotate(2deg); }
.about-panel.reveal.in { transform: rotate(1deg); }
.step.reveal.in:nth-child(odd) { transform: rotate(-0.5deg); }
.step.reveal.in:nth-child(even) { transform: rotate(0.5deg); }
.platform-card--ios.reveal.in { transform: rotate(-0.8deg); }
.platform-card--android.reveal.in { transform: rotate(0.8deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee { animation: none; }
  .dress-tile { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .hard-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .nav, .header > .container > .btn { display: none; }
  .burger { display: block; }
  .dec-star1, .dec-ring { display: none; }
  .hero { padding-top: 130px; }
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { min-height: 620px; max-width: 500px; margin-inline: auto; width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .process-grid { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .rating-word { display: none; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .game-cover { height: 120px; }
  .game-body { padding: 0 14px 16px; }
  .game-card h3 { font-size: 15.5px; }
  .game-icon { width: 58px; height: 58px; margin-top: -30px; }
  .game-meta { font-size: 13px; }
  .hard-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .phone--main { width: 226px; }
  .dress-tile { width: 88px; padding: 8px; border-radius: 18px; }
  .dt--1 { left: calc(50% - 196px); }
  .dt--2 { left: calc(50% + 104px); }
  .dt--3 { left: calc(50% - 192px); }
  .dt--4 { left: calc(50% + 100px); }
  .dt--5 { left: calc(50% - 144px); width: 78px; }
  .hero-visual { min-height: 540px; }
  .logo-word { height: 44px; }
  .marquee img { width: 72px; height: 72px; }
  .stats-grid { gap: 14px; }
  .stat { padding: 22px 18px 18px; }
  .cta-panel { padding: 56px 24px; border-radius: 32px; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: 1fr; }
  .game-cover { height: 150px; }
  .game-card h3 { font-size: 17.5px; }
  .game-icon { width: 66px; height: 66px; margin-top: -34px; }
  .game-meta { font-size: 14px; }
}

@media (max-width: 430px) {
  .hero-ctas .btn { width: 100%; }
}

/* ---------- sections ending with a wave ---------- */
.has-wave { padding-bottom: 0; }
.has-wave .wave { margin-top: 64px; }
.hero.has-wave { padding-bottom: 0; }
.hero .wave { margin-top: 26px; position: relative; z-index: 2; }
@media (max-width: 920px) {
  .has-wave .wave { margin-top: 48px; }
}

/* ============================================================
   Web showcase (P0) components
   ============================================================ */

/* compact violet page hero for inner pages */
.page-hero {
  background:
    radial-gradient(700px 400px at 90% -20%, rgba(255, 77, 157, 0.30), transparent 60%),
    linear-gradient(160deg, #6A47FF 0%, #5B3DF5 55%, #4326E0 100%);
  color: #fff;
  padding: 130px 0 0;
}
.page-hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 600; margin: 6px 0 14px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.page-hero-icon { border-radius: 22%; border: 4px solid #fff; box-shadow: var(--shadow-md); }
.page-hero-intro { font-size: 18px; color: rgba(255,255,255,0.88); max-width: 720px; }
.page-hero .hero-ctas { margin-top: 28px; margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 14px; }
.page-hero .wave { margin-top: 44px; }

.breadcrumbs { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.75); margin: 6px 0 18px; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span[aria-hidden] { margin: 0 6px; }

.content-section { background: var(--cream); }

/* facts panel */
.facts-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 44px;
}
.facts-panel .fact {
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}
.facts-panel dt { font-family: var(--font-display); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.facts-panel dd { font-weight: 800; font-size: 15.5px; margin-top: 2px; }
.fact-src { color: var(--muted); font-size: 13.5px; font-weight: 600; }
/* fact-check caption: negative top margin collapses the panel's 44px gap to 12px
   so the source line reads as part of the table above it */
.facts-source { margin: -32px 0 34px; line-height: 1.55; }
.facts-source a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.facts-source a:hover { color: var(--violet); }

/* game page layout */
.game-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: start; }
.game-prose h2 { font-size: 26px; margin: 36px 0 14px; }
.game-prose h2:first-child { margin-top: 0; }
.game-prose p { color: var(--ink-soft); margin-bottom: 14px; }
.game-prose a { color: var(--violet); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.check-list { display: grid; gap: 10px; margin: 6px 0 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-weight: 600; }
.check-list .check { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: #D6F8EE; color: #0B8368; display: grid; place-items: center; margin-top: 1px; }
.game-side { position: sticky; top: 100px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shots--landscape { grid-template-columns: 1fr; }
.shots img { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow-md); cursor: zoom-in; }

.status-box {
  background: var(--lavender);
  border-radius: var(--r-sm);
  padding: 18px 22px;
  margin: 10px 0 16px;
}
.status-box p { margin: 10px 0 0; }
.status-box--wide { max-width: 860px; margin-inline: auto; }
.demo-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7A55E8;
  background: #E7E0FF;
  border-radius: 999px;
  padding: 4px 12px;
}

.cta-row {
  text-align: center;
  margin: 64px 0;
  padding: 44px 28px;
  background: var(--lavender);
  border-radius: var(--r-md);
}
.cta-row h2 { font-size: 26px; margin-bottom: 24px; }
.rel-title { font-size: 26px; margin: 24px 0 20px; }
.games-grid--4 { grid-template-columns: repeat(4, 1fr); }
.rel-guides { margin-top: 44px; }
.rel-guides h2 { font-size: 22px; margin-bottom: 12px; }
.rel-guides a { color: var(--violet); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rel-guides li { margin-bottom: 8px; }

/* catalog navigation (chip links between catalog pages) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  margin-bottom: 26px;
  background: var(--surface);
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.filter-bar .chip { box-shadow: none; border-color: var(--line); }
.filter-bar .chip:hover { border-color: var(--violet); }
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label { font-family: var(--font-display); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-right: 2px; }
.chip {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 7px 16px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.chip:hover { border-color: var(--violet); }
.chip[aria-pressed="true"] { border-color: var(--violet); color: var(--violet); font-weight: 600; }
.chip--clear { background: var(--ink); color: #fff; }
.chip--link:hover { color: var(--violet); }
.chip--current { border-color: var(--violet); color: var(--violet); font-weight: 600; }
.filter-empty { color: var(--muted); font-weight: 700; margin: 8px 0 20px; }
.linklike { background: none; border: none; color: var(--violet); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.platforms-note { color: var(--muted); font-size: 13px; font-weight: 800; }
.game-desc { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* online hub */
.online-list { display: grid; gap: 12px; max-width: 760px; margin-bottom: 40px; }
.online-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border-radius: var(--r-sm);
  padding: 12px 18px; box-shadow: var(--shadow-sm);
}
.online-row img { border-radius: 22%; }
.online-row > div { flex: 1; display: flex; flex-direction: column; }
.online-row a { color: var(--ink); }
.online-row a:hover b { color: var(--violet); }

/* prose blocks */
.prose-block { max-width: 860px; margin-top: 40px; }
.prose-narrow { max-width: 760px; margin-top: 0; }
.prose-block ul:not(.check-list):not(.faq-list) { list-style: disc; padding-left: 22px; color: var(--ink-soft); margin-bottom: 14px; }
.prose-block ul:not(.check-list) li { margin-bottom: 6px; }

/* guides */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card {
  background: var(--surface); border-radius: var(--r-md);
  padding: 26px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.guide-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.guide-card .kicker { align-self: flex-start; margin-bottom: 0; }
.guide-card h3 { font-size: 19px; }
.guide-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.guide-card .game-link { margin-top: auto; }

/* home extras */
.browse-row { margin-bottom: 26px; }
.browse-row h3 { font-size: 18px; margin-bottom: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.home-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.home-col h2 { font-size: 26px; margin: 10px 0 12px; }
.home-col p { color: var(--ink-soft); margin-bottom: 16px; }
.hard-grid--4 { grid-template-columns: repeat(4, 1fr); }
.hl-link { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }

/* footer nav */
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 6px; }
.footer-nav a { font-family: var(--font-display); font-weight: 500; font-size: 15px; color: #DDD5F5; }
.footer-nav a:hover { color: #fff; }

/* FAQ (accordion) */
.faq-list { display: grid; gap: 12px; margin-top: 6px; }
.faq-item { background: var(--surface); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 16.5px;
  padding: 16px 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--lavender); color: var(--violet);
  display: grid; place-items: center; font-size: 19px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--yellow); color: var(--ink); }
.faq-item > p { padding: 0 20px 18px; color: var(--ink-soft); font-size: 15px; }

/* responsive for showcase */
@media (max-width: 1080px) {
  .games-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hard-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .guides-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .game-layout { grid-template-columns: 1fr; }
  .game-side { position: static; order: -1; }
  .shots { max-width: 480px; }
  .home-cols { grid-template-columns: 1fr; gap: 40px; }
  .page-hero { padding-top: 110px; }
}
@media (max-width: 680px) {
  .games-grid--4 { grid-template-columns: 1fr; }
  .hard-grid--4 { grid-template-columns: 1fr; }
  .facts-panel { grid-template-columns: 1fr 1fr; }
  .online-row { flex-wrap: wrap; }
}


/* category description under filters */
.cat-desc[hidden] { display: none; }
.cat-desc {
  display: flex;
  align-items: center;
  gap: 10px 22px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-weight: 600;
  background: var(--lavender);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  margin: -6px 0 22px;
  max-width: 980px;
}
.cat-desc > span { flex: 1 1 420px; }
.cat-desc-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--violet);
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(43, 27, 84, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cat-desc-link:hover { transform: translateY(-1px); box-shadow: 0 4px 0 rgba(43, 27, 84, 0.12); }
.cat-desc-link:hover svg { transform: translateX(3px); }
.cat-desc-link svg { transition: transform 0.15s ease; }
.online-row .demo-badge { white-space: nowrap; }

/* small screens: stacked, full-width buttons instead of squeezed pills */
@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; }
  .games-foot-btns { width: 100%; flex-direction: column; align-items: stretch; }
  .games-foot-btns .btn { width: 100%; }
  .page-hero .hero-ctas { width: 100%; }
  .page-hero .hero-ctas .btn { flex: 1 1 100%; }
  .cta-row { padding: 32px 18px; }
}


/* card meta: store badges row + full-width CTA */
.game-meta { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.store-badge {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--lavender);
  border-radius: 14px;
  padding: 8px 10px;
  color: var(--violet);
  position: relative;
  z-index: 6;
  transition: transform 0.15s ease, background 0.15s ease;
}
.store-badge:hover { background: #E3DBFF; transform: translateY(-2px); }
.store-badge:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.sb-txt { min-width: 0; text-align: left; }
.sb-txt small {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}
.sb-txt b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
}
.card-more {
  flex: 1 1 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0;
  font-size: 15px;
  color: #fff;
  background: var(--violet);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--violet-dark);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.game-card:hover .card-more { transform: translateY(2px); box-shadow: 0 2px 0 var(--violet-dark); }
.card-more:hover { text-decoration: none; }

/* clickable marquee — the loop clone is a decorative span, styled identically */
.marquee a,
.marquee > span { display: block; border-radius: 26%; }
.marquee a:hover img { transform: scale(1.14) rotate(0deg); }
.marquee a:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

/* collection pages: fact table, store list, see-also */
.table-wrap { overflow-x: auto; margin: 8px 0 12px; }
.fact-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 15px;
}
.fact-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  padding: 0 0 10px;
}
.fact-table th, .fact-table td { padding: 12px 14px; text-align: left; vertical-align: top; }
.fact-table thead th {
  background: var(--lavender);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.fact-table tbody tr + tr td { border-top: 1px solid var(--line); }
.fact-table a { color: var(--violet); font-weight: 700; }
.store-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; margin: 6px 0 10px; }
.store-list li { display: flex; align-items: center; gap: 10px; }
.store-list img { border-radius: 10px; flex: 0 0 40px; }
.store-list a { color: var(--violet); font-weight: 700; }
.store-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.store-list--desc li { align-items: flex-start; }
.store-list--desc small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; line-height: 1.4; }
.see-also { background: var(--lavender); border-radius: var(--r-sm); padding: 14px 18px; font-weight: 600; }
.see-also a { color: var(--violet); font-weight: 700; }
@media (max-width: 680px) {
  .store-list { grid-template-columns: 1fr; }
}

/* home browse tiles */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.browse-tile {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--surface);
  border-radius: 18px;
  padding: 15px 16px;
  box-shadow: 0 3px 0 rgba(43, 27, 84, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.browse-tile:hover { transform: translateY(-3px); box-shadow: 0 7px 0 rgba(43, 27, 84, 0.1); }
.browse-tile:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.bt-ico {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
}
.bt-ico--orange { background: #FFE9D2; color: #C25207; }
.bt-ico--pink { background: #FFDCEC; color: #D6176F; }
.bt-ico--violet { background: #E7DFFF; color: #5B3DF5; }
.bt-ico--blue { background: #D9EAFF; color: #2668C5; }
.bt-ico--aqua { background: #D2F6EC; color: #0B8368; }
.bt-ico--yellow { background: #FFF1C9; color: #A97B00; }
.bt-txt { min-width: 0; }
.bt-txt b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--ink); }
.bt-txt small { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.browse-age {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.browse-age h3 { font-size: 16px; margin: 0 6px 0 0; }
@media (max-width: 1024px) {
  .browse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .browse-grid { grid-template-columns: 1fr; gap: 10px; }
  .browse-tile { padding: 12px 14px; }
}

/* "last updated" line at the top of legal documents */
.legal-updated { color: var(--muted); font-weight: 700; margin-bottom: 18px; }

/* CTA back to the category hub at the end of a game page */
.hub-cta { margin: 28px 0 0; }
.hub-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--violet);
  background: var(--lavender);
  border-radius: 999px;
  padding: 12px 22px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.hub-cta a { text-decoration: none; }
.hub-cta a:hover { background: #E3DBFF; transform: translateY(-2px); text-decoration: none; }
.hub-cta a:hover svg { transform: translateX(3px); }
.hub-cta svg { transition: transform 0.15s ease; }

/* clickable facts: one calm link per card + a descriptive "explore" line */
.facts-panel a.fact-link {
  color: var(--violet);
  text-decoration: none;
  border-bottom: 2px solid rgba(91, 61, 245, 0.25);
  padding-bottom: 1px;
  transition: border-color 0.15s ease;
}
.facts-panel a.fact-link:hover { border-bottom-color: var(--violet); }
/* "explore more" card: same visual family as the fact cards, links as chips */
.explore-card {
  display: flex;
  align-items: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  background: var(--surface);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  padding: 14px 18px;
  margin: -30px 0 40px;
}
.explore-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.explore-links { display: flex; flex-wrap: wrap; gap: 8px; }
.explore-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--violet);
  background: var(--lavender);
  border-radius: 999px;
  padding: 7px 15px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.explore-chip:hover { background: #E3DBFF; transform: translateY(-1px); text-decoration: none; }
@media (max-width: 680px) {
  .explore-card { align-items: flex-start; }
}

/* screenshots keep the original sidebar grid (.shots); lightbox below */
/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(24, 14, 51, 0.92);
  display: grid;
  place-items: center;
  padding: 24px;
}
.lightbox img {
  max-width: min(94vw, 1100px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.9); font-weight: 700; padding: 0 24px; }
body.lightbox-open { overflow: hidden; }
