/* games.bytebunch.com: one look for every page (the home of all games, and each friend's own page).
   Everything is served from this site: no fonts, scripts or trackers from anywhere else (children use it). */

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/baloo2-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/baloo2-devanagari.woff2") format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839,
    U+A8E0-A8FF, U+11B00-11B0A;
}

:root {
  --sun: #ffd84d;
  --sun-soft: #fff1a8;
  --sun-deep: #ffbe3b;
  --cream: #fffaf0;
  --brown: #5a2d0c;
  --brown-soft: #8a5a33;
  --ink: #3d2614;
  --orange: #ff7a1a;
  --orange-press: #d95f05;
  --sky: #5ab4ec;
  --sky-press: #2f8fcc;
  --leaf: #2f8f46;
  --white: #ffffff;
  --line: rgba(90, 45, 12, 0.14);
  --shadow: 0 2px 0 rgba(90, 45, 12, 0.06), 0 18px 40px -12px rgba(90, 45, 12, 0.28);
  --radius-lg: 32px;
  --radius: 22px;
  --font: "Baloo 2", ui-rounded, "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--sun);
  /* one picture over the whole page (not fixed: a fixed background ends in a band on long pages and on phones) */
  background-image:
    radial-gradient(720px 340px at 8% 0, rgba(255, 255, 255, 0.8), transparent 70%),
    radial-gradient(560px 280px at 92% 80px, rgba(255, 255, 255, 0.55), transparent 70%),
    linear-gradient(180deg, var(--sun-soft) 0, var(--sun) 560px, var(--sun) 70%, var(--sun-deep) 100%);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, .soon { text-wrap: balance; }
p, .facts span { text-wrap: pretty; }
:focus-visible { outline: 4px solid var(--brown); outline-offset: 4px; border-radius: 12px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* the bar at the top */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--brown); }
.brand-mark { width: 44px; height: 44px; flex: none; border-radius: 14px; box-shadow: 0 4px 0 rgba(90, 45, 12, 0.25); }
.brand-name { font-weight: 800; font-size: 1.3rem; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.brand-name small { display: block; font-size: 0.8rem; font-weight: 600; color: var(--brown-soft); letter-spacing: 0; margin-top: 4px; }
.back {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 18px 10px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.7); color: var(--brown);
  font-weight: 700; text-decoration: none; white-space: nowrap;
  box-shadow: 0 3px 0 rgba(90, 45, 12, 0.15);
}
.back:hover { background: var(--white); }
.back svg { width: 18px; height: 18px; }

/* the big words at the top of a page */
.hero { text-align: center; padding-top: 48px; padding-bottom: 44px; }
.hero h1 {
  margin: 0 auto; max-width: 13em;
  font-size: clamp(2.6rem, 7.4vw, 4.75rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.02em;
  color: var(--brown);
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { margin: 18px auto 0; max-width: 32em; font-size: clamp(1.1rem, 2.4vw, 1.3rem); font-weight: 500; color: var(--brown); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.72); color: var(--brown);
  font-weight: 700; font-size: 0.98rem;
}
.chip svg { width: 18px; height: 18px; flex: none; }

.section { padding-top: 8px; padding-bottom: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.section-head h1, .section-head h2 { margin: 0; font-size: clamp(1.5rem, 3.4vw, 1.9rem); font-weight: 800; color: var(--brown); letter-spacing: -0.01em; }

/* a card you can open (a friend on the home page) */
.card {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr);
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
/* the picture sits in the white card with a frame round it, so a sunny picture doesn't melt into the sunny page */
.card-media { position: relative; padding: 12px 12px 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-lg) - 10px); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; }
.eyebrow { margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--brown-soft); letter-spacing: 0.02em; }
.card h3 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.05; font-weight: 800; color: var(--brown); letter-spacing: -0.01em; }
.card .hi { font-size: 1.25rem; font-weight: 700; color: var(--brown-soft); line-height: 1.3; }
.card p { margin: 0; font-size: 1.1rem; color: var(--ink); }
.card .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.card.link { text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.card.link:hover { transform: translateY(-4px); box-shadow: 0 2px 0 rgba(90, 45, 12, 0.06), 0 26px 50px -14px rgba(90, 45, 12, 0.35); }
.card.link:focus-visible { outline-offset: 6px; border-radius: var(--radius-lg); }

@media (min-width: 760px) {
  .card.wide { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: stretch; }
  .card.wide .card-body { padding: 36px 40px; justify-content: center; }
  .card.wide .card-media { min-height: 100%; padding: 14px 0 14px 14px; }
}

/* buttons: big and round, for small fingers */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 10px 26px 10px 20px; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 1.2rem; line-height: 1.1; text-decoration: none;
  color: var(--white); background: var(--orange);
  box-shadow: 0 5px 0 var(--orange-press);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.button:hover { filter: brightness(1.05); }
.button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--orange-press); }
.button.sky { background: var(--sky); box-shadow: 0 5px 0 var(--sky-press); }
.button.sky:active { box-shadow: 0 1px 0 var(--sky-press); }
.button .tri { width: 0; height: 0; border-left: 15px solid currentColor; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 2px; }
.button small { display: block; font-size: 0.8rem; font-weight: 600; opacity: 0.9; }
.button.fake { pointer-events: none; }

/* where the next card will be */
.soon {
  display: flex; align-items: center; justify-content: center; gap: 14px; text-align: center;
  margin-top: 20px; padding: 22px 24px; border-radius: var(--radius);
  border: 3px dashed rgba(90, 45, 12, 0.3); color: var(--brown); font-weight: 700; font-size: 1.1rem;
}
.soon svg { width: 28px; height: 28px; flex: none; }

/* for grown-ups */
.parents {
  margin: 20px 0 36px; padding: 28px; border-radius: var(--radius-lg);
  background: var(--cream); box-shadow: 0 2px 0 rgba(90, 45, 12, 0.06);
}
.parents h2 { margin: 0 0 16px; font-size: 1.35rem; font-weight: 800; color: var(--brown); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px 22px; margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts .icon {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  display: grid; place-items: center; background: var(--sun-soft); color: var(--brown);
}
.facts .icon svg { width: 22px; height: 22px; }
.facts strong { display: block; color: var(--brown); font-size: 1.05rem; line-height: 1.25; }
.facts span { display: block; font-size: 0.98rem; color: var(--brown-soft); line-height: 1.35; margin-top: 2px; }

/* a friend's banner */
.banner { margin: 18px 0 30px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #dfeef7; }
.banner img { width: 100%; aspect-ratio: 1400 / 383; object-fit: cover; }

.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 2px; padding: 0; list-style: none; }
.meta li { padding: 4px 12px; border-radius: 999px; background: var(--sun-soft); color: var(--brown); font-weight: 700; font-size: 0.92rem; }

.footer { padding-top: 6px; padding-bottom: 34px; text-align: center; color: var(--brown); font-weight: 600; font-size: 0.98rem; }
.footer a { font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 34px; padding-bottom: 32px; }
  .card-body { padding: 20px 20px 24px; }
  .card .actions { flex-direction: column; }
  .card .actions .button { width: 100%; }
  .parents { padding: 22px 20px; }
  .brand-name small { display: none; }
  .brand { gap: 10px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand-name { font-size: 1.12rem; }
  .back { padding: 8px 14px 8px 10px; font-size: 0.95rem; gap: 6px; }
}

/* Ansu's channels, for grown-ups (Ansu's page). */
.watch-lead { margin: 0 0 16px; font-size: 1.05rem; color: var(--ink); }
.watch-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.follow { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 20px 0 0; padding: 0; list-style: none; font-weight: 700; color: var(--brown-soft); }
.follow a { color: var(--brown); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 520px) {
  .watch-actions { flex-direction: column; }
  .watch-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card.link, .button { transition: none; }
  .card.link:hover { transform: none; }
}
