/* Splatt World: shared styles for the information pages (art, games, learning, ages, safety, faq).
   Matches the look of index.html: splash background, frosted bands, rainbow-paint accents. */
:root {
  --bg: #FAF8F4; --surface: #FFFFFF; --fg: #23211D; --muted: #625D55; --line: #E8E1EA;
  --pink: #C2187A; --blue: #2F6FE0; --orange: #E8590C; --purple: #5A3FC9; --good: #1F8A4C;
  --splash: linear-gradient(90deg, #FFC21A, #FF7A1A, #F2357F, #B03FD9, #3D8BF2);
  --f-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: "Bricolage Grotesque", "Nunito", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17161B; --surface: #222029; --fg: #F2EFE9; --muted: #B0AAA1; --line: #36333D;
    --pink: #FF5CB0; --blue: #6FA3FF; --orange: #FF8A3D; --purple: #A08CFF; --good: #4CC27D; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17161B; --surface: #222029; --fg: #F2EFE9; --muted: #B0AAA1; --line: #36333D;
  --pink: #FF5CB0; --blue: #6FA3FF; --orange: #FF8A3D; --purple: #A08CFF; --good: #4CC27D; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--fg); font: 17px/1.6 var(--f-body);
  background: linear-gradient(color-mix(in srgb, var(--bg) 30%, transparent), color-mix(in srgb, var(--bg) 30%, transparent)), url("splash.png") center / cover fixed, var(--bg);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; text-wrap: balance; margin: 0; }
.wrap { max-width: 1040px; margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; margin-top: 12px;
  display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 16px; border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 28px -18px rgba(0, 0, 0, .45);
}
.brand img { display: block; height: 56px; width: auto; margin-block: -4px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .18)); transition: transform .3s; }
.brand:hover img { transform: rotate(-3deg) scale(1.04); }
.site-nav { display: flex; gap: 2px; margin-left: auto; }
.site-nav a { color: var(--fg); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 99px; white-space: nowrap; }
.site-nav a:hover { background: color-mix(in srgb, var(--pink) 12%, transparent); }
.site-nav a[aria-current="page"] { background: color-mix(in srgb, var(--pink) 16%, transparent); color: var(--pink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 800; border-radius: 99px; padding: 10px 20px; border: 2px solid var(--line); background: var(--surface); color: var(--fg); }
.btn.primary { background: linear-gradient(135deg, var(--pink), var(--blue)); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.big { padding: 14px 26px; font-size: 1.08rem; }
.nav-cta { white-space: nowrap; }

/* Page layout */
main { display: grid; gap: 40px; padding-block: 36px 48px; }
main > section { scroll-margin-top: 104px; }
.band { background: color-mix(in srgb, var(--surface) 92%, transparent); border-radius: 30px; padding: clamp(22px, 4vw, 44px); box-shadow: 0 18px 40px -26px rgba(60, 20, 80, .45); }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 800; color: var(--pink); }
.page-hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.page-hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 800; letter-spacing: -.02em; }
.page-hero h1 .splash-text { background: var(--splash); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lead { font-size: 1.18rem; max-width: 52ch; margin: 16px 0 22px; opacity: .85; }
.page-hero .icon-blob { width: 140px; height: 140px; border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%; display: grid; place-items: center; color: #fff; box-shadow: 0 16px 34px -16px rgba(60, 20, 80, .55); }
.page-hero .icon-blob svg { width: 64px; height: 64px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.on-this-page { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; padding: 0; list-style: none; }
.on-this-page a { display: inline-block; text-decoration: none; color: var(--fg); font-weight: 700; font-size: .92rem; padding: 6px 14px; border-radius: 99px; background: var(--surface); border: 2px solid var(--line); }
.on-this-page a:hover { border-color: var(--pink); }

.g-art { background: linear-gradient(135deg, #FF7A1A, #F2357F); }
.g-games { background: linear-gradient(135deg, #B03FD9, #3D8BF2); }
.g-learn { background: linear-gradient(135deg, #FFB000, #FF5A1F); }
.g-ages { background: linear-gradient(135deg, #F2357F, #5A3FC9); }
.g-safe { background: linear-gradient(135deg, #1F8A4C, #3D8BF2); }
.g-faq { background: linear-gradient(135deg, #3D8BF2, #B03FD9); }

/* Content */
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
.section-intro { color: var(--muted); font-size: 1.08rem; max-width: 64ch; margin: 10px 0 24px; }
.prose p { max-width: 68ch; }
.prose h3 { font-size: 1.3rem; margin-top: 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards.four { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 2px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.card h3 { font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.card ul, .card ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.card .tag { justify-self: start; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--pink) 14%, transparent); color: var(--pink); }
.swatch-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 6px; }
.tip { border-left: 5px solid; border-image: var(--splash) 1; background: var(--surface); padding: 14px 18px; border-radius: 0 14px 14px 0; margin: 20px 0 0; max-width: 72ch; }
.tip b { color: var(--pink); }

.table-wrap { overflow-x: auto; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .97rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--f-display); font-size: 1rem; background: color-mix(in srgb, var(--pink) 8%, var(--surface)); }
tbody tr:last-child td { border-bottom: none; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.side-kids { color: #E8590C; } .side-teens { color: var(--pink); } .side-adults { color: var(--purple); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.steps li::before { content: counter(step); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, #FF7A1A, #F2357F, #B03FD9); }
.steps h3 { font-size: 1.15rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 2px 18px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--pink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p, .faq details ul { margin: 0 0 16px; color: var(--muted); }
.faq-group + .faq-group { margin-top: 28px; }
.faq-group h2 { font-size: 1.4rem; margin-bottom: 12px; }

.next-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.next-pages a { display: grid; gap: 4px; text-decoration: none; color: var(--fg); background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.next-pages a:hover { border-color: var(--pink); }
.next-pages b { font-family: var(--f-display); font-size: 1.15rem; }
.next-pages span { color: var(--muted); font-size: .95rem; }

.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; }
.cta-band p { margin: 6px 0 0; color: var(--muted); }

/* Footer */
.site-footer { margin-bottom: 24px; background: color-mix(in srgb, var(--surface) 92%, transparent); border-radius: 28px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 24px; }
.foot-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand { max-width: 320px; display: grid; gap: 10px; }
.foot-brand img { height: 72px; width: auto; }
.foot-brand p { margin: 0; color: var(--muted); }
.foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-links h4 { margin: 0 0 8px; font-size: 1rem; }
.foot-links a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; font-weight: 600; }
.foot-links a:hover { color: var(--fg); }
.foot-bottom { border-top: 2px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }

@media (max-width: 960px) {
  .site-nav { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  main { gap: 26px; padding-block: 20px 32px; }
  .brand img { height: 44px; }
  .page-hero { grid-template-columns: 1fr; }
  .page-hero .icon-blob { width: 96px; height: 96px; order: -1; }
  .page-hero .icon-blob svg { width: 44px; height: 44px; }
  .steps li { grid-template-columns: 1fr; }
  .foot-links { gap: 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
