/* Fun4You PL */

:root {
  --ink: #14161f;
  --ink-2: #1c1f2b;
  --paper: #f7f6f3;
  --paper-2: #ffffff;
  --sand: #efece5;
  --line: #e2ded4;
  --line-2: #d4cfc2;
  --text: #14161f;
  --text-2: #56596a;
  --text-3: #8a8d9c;
  --gold: #f4a92e;
  --gold-2: #ffc857;
  --gold-ink: #8a5a05;
  --r: 16px;
  --r-sm: 10px;
  --wrap: 1200px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.032em; line-height: 1.14; }

.kicker {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  color: var(--gold-ink);
  background: rgba(244, 169, 46, 0.16);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 22px;
}

/* ---------- topbar (dark) ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  color: #fff;
}
.topbar-in { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand img { height: 24px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: rgba(255,255,255,.76); font-size: 15px; font-weight: 500; }
.nav a:hover { color: #fff; text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em;
  background: var(--gold);
  color: #241802;
  border: 0;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  box-shadow: 0 6px 18px rgba(244,169,46,.28);
}
.btn:hover { text-decoration: none; background: var(--gold-2); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(244,169,46,.34); }
.btn-lg { padding: 16px 32px; font-size: 17px; border-radius: 14px; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: none; }
.btn-ink:hover { background: var(--ink-2); box-shadow: none; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn-outline:hover { background: var(--sand); border-color: var(--text-3); box-shadow: none; }
.nav-cta { margin-left: 6px; }

@media (max-width: 940px) { .nav { display: none; } .nav-cta { margin-left: auto; } }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 74px 0 70px;
  background:
    radial-gradient(60% 70% at 88% 0%, rgba(244,169,46,.16), transparent 62%),
    linear-gradient(180deg, #fffdf8, var(--paper));
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); margin-bottom: 20px; }
.hero h1 b { font-weight: 700; color: var(--gold-ink); }
.hero-lead { color: var(--text-2); font-size: clamp(16.5px, 1.8vw, 19px); margin: 0 0 28px; max-width: 48ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 13.5px; color: var(--text-3); margin: 20px 0 0; max-width: 50ch; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--paper-2);
  font-size: 14.5px; color: var(--text-2);
}
.chip b { color: var(--text); font-weight: 650; }
.chip--gold { border-color: rgba(244,169,46,.55); background: rgba(244,169,46,.12); color: var(--gold-ink); }
.chip--gold b { color: var(--gold-ink); }

/* hero mosaic */

.mosaic {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 24px 50px rgba(20,22,31,.1);
}
.mosaic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mosaic-grid img { border-radius: 10px; aspect-ratio: 440/280; object-fit: cover; width: 100%; }
.mosaic-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 4px 2px; font-size: 13.5px; color: var(--text-3);
}
.mosaic-bar b { color: var(--text); font-weight: 650; font-size: 14.5px; }

@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 34px; } }

/* ---------- stats ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); color: #fff; }
.stat { padding: 26px 24px; border-right: 1px solid rgba(255,255,255,.08); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 25px; font-weight: 700; letter-spacing: -0.03em; }
.stat b i { font-style: normal; color: var(--gold); }
.stat span { color: rgba(255,255,255,.6); font-size: 14px; }

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
}

/* ---------- sections ---------- */

.section { padding: 88px 0; }
.section--sand { background: var(--sand); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 42px; max-width: 64ch; }
.section-head h2 { font-size: clamp(27px, 3.4vw, 37px); margin-bottom: 13px; }
.section-head p { color: var(--text-2); margin: 0; }

/* category rows with real covers */

.cat-list { border-top: 1px solid var(--line); }
.cat-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(0, 2.1fr);
  align-items: center;
  gap: 26px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  color: inherit;
}
.cat-row:hover { text-decoration: none; background: rgba(255,255,255,.6); }
.cat-name { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; }
.cat-count { color: var(--text-3); font-size: 14.5px; white-space: nowrap; }
.cat-count b { color: var(--gold-ink); font-weight: 650; }
.cat-strip { display: flex; gap: 8px; justify-content: flex-end; overflow: hidden; }
.cat-strip img {
  width: 92px; border-radius: 8px; aspect-ratio: 440/280; object-fit: cover;
  border: 1px solid var(--line);
}
.cat-strip img:nth-child(n+4) { display: none; }

@media (max-width: 860px) {
  .cat-row { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .cat-strip { grid-column: 1 / -1; justify-content: flex-start; }
  .cat-strip img { width: 78px; }
  .cat-strip img:nth-child(n+4) { display: block; }
}

/* game grid */

.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.game {
  position: relative; display: block;
  border-radius: var(--r); overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.game:hover {
  text-decoration: none; transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 16px 34px rgba(20,22,31,.14);
}
.game-cover { position: relative; }
.game-cover img { aspect-ratio: 440/280; object-fit: cover; width: 100%; }
.game-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(20, 22, 31, 0.55);
  opacity: 0; transition: opacity .18s ease;
}
.game:hover .game-overlay, .game:focus-visible .game-overlay { opacity: 1; }
.game-play {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--gold); color: #241802;
  font-size: 14.5px; font-weight: 700;
  transform: translateY(6px); transition: transform .18s ease;
}
.game:hover .game-play { transform: translateY(0); }
.game-name { padding: 12px 14px 14px; font-size: 14.5px; font-weight: 650; letter-spacing: -0.01em; }
.game-name span { display: block; font-weight: 500; font-size: 12.5px; color: var(--text-3); margin-top: 1px; }

@media (hover: none) {
  .game-overlay { opacity: 1; background: linear-gradient(180deg, rgba(20,22,31,0) 50%, rgba(20,22,31,.7)); align-items: end; }
  .game-play { transform: none; margin-bottom: 10px; padding: 7px 15px; font-size: 13px; }
}

@media (max-width: 940px) { .games { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .games { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.after-grid { margin-top: 32px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.after-grid p { margin: 0; color: var(--text-3); font-size: 14.5px; }

/* editorial split */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-media { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 44px rgba(20,22,31,.1); }
.split h2 { font-size: clamp(25px, 3.1vw, 33px); margin-bottom: 14px; }
.split p { color: var(--text-2); margin: 0 0 14px; }
.split-points { list-style: none; margin: 22px 0 0; padding: 0; }
.split-points li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15.5px; }
.split-points li b { color: var(--text); font-weight: 650; }
.split-points li::before {
  content: ""; position: absolute; left: 4px; top: 19px;
  width: 10px; height: 10px; border-radius: 3px; background: var(--gold);
}

@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 30px; } }

/* steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 28px 26px; border-radius: var(--r); background: var(--paper-2); border: 1px solid var(--line); }
.step-n {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--gold);
  font-weight: 700; font-size: 15px; margin-bottom: 15px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--text-2); font-size: 15.5px; }

@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* price panel */

.price-panel {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: 0 20px 44px rgba(20,22,31,.08);
}
.price-left { padding: 40px 36px; background: var(--ink); color: #fff; }
.price-tag { font-size: 50px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.price-tag small { display: block; font-size: 15px; font-weight: 600; color: var(--gold); letter-spacing: 0; margin-top: 10px; }
.price-list { list-style: none; margin: 26px 0 0; padding: 0; }
.price-list li {
  position: relative; padding: 11px 0 11px 26px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.78); font-size: 15.5px;
}
.price-list li::before {
  content: ""; position: absolute; left: 2px; top: 20px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--gold);
}
.price-right { padding: 40px 36px; }
.price-right h3 { font-size: 18px; margin-bottom: 12px; }
.price-right p { color: var(--text-2); font-size: 15.5px; margin: 0 0 14px; }
.smallprint { font-size: 13px; line-height: 1.66; color: var(--text-3); margin: 22px 0 0; }
.smallprint a { color: var(--text-2); text-decoration: underline; }

@media (max-width: 880px) {
  .price-panel { grid-template-columns: 1fr; }
  .price-left, .price-right { padding: 30px 24px; }
}

/* faq */

.faq { max-width: 880px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper-2); padding: 0 20px; margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 0;
  font-weight: 650; font-size: 16.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-ink); font-size: 21px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 18px; color: var(--text-2); font-size: 15.5px; }

/* closing band */

.band {
  border-radius: 20px; background: var(--ink); color: #fff;
  padding: 44px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.band h2 { font-size: clamp(24px, 3vw, 31px); margin-bottom: 10px; }
.band p { margin: 0; color: rgba(255,255,255,.72); max-width: 52ch; }

/* ---------- footer ---------- */

.footer { background: var(--ink); color: #fff; padding: 58px 0 42px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; padding-bottom: 32px; }
.footer h4 { font-size: 15px; font-weight: 650; margin: 0 0 18px; color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 12px; }
.footer li a, .footer-about a { color: rgba(255,255,255,.72); font-size: 15px; }
.footer li a:hover, .footer-about a:hover { color: #fff; }
.footer-about img { height: 23px; margin-bottom: 18px; }
.footer-about p { color: rgba(255,255,255,.55); font-size: 14.5px; margin: 0 0 12px; max-width: 34ch; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 26px; color: rgba(255,255,255,.5);
  font-size: 13px; line-height: 1.78;
}
.footer-legal strong { color: rgba(255,255,255,.78); }

@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- document pages ---------- */

.doc-head { padding: 56px 0 28px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.doc-head h1 { font-size: clamp(30px, 4.6vw, 40px); margin-bottom: 10px; }
.doc-head p { margin: 0; color: var(--text-3); font-size: 14px; }

.doc { padding: 44px 0 72px; }
.doc h2 { font-size: 20px; margin: 40px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--text-2); font-size: 16px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; background: var(--paper-2); }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--text); font-size: 13.5px; }
.doc td { color: var(--text-2); }
.table-scroll { overflow-x: auto; }

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-sm);
  background: var(--paper-2);
  padding: 20px 22px; margin: 24px 0;
}
.callout p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.callout p + p { margin-top: 10px; }

.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0 8px; }
.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); padding: 24px; }
.card h3 { font-size: 16px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.card .big { font-size: 19px; color: var(--text); font-weight: 650; letter-spacing: -0.02em; }
@media (max-width: 640px) { .cards-2 { grid-template-columns: 1fr; } }

.backlink { display: inline-block; margin-top: 38px; color: var(--text-2); font-size: 14.5px; }
