/* Mini Chonks pages: the game's "Bonbon" charter (round cats, warm brown outlines, sticker shadows). */

@font-face { font-family: Fredoka; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/fredoka-latin-500-normal.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: Fredoka; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/fredoka-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Fredoka; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/fredoka-latin-600-normal.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: Fredoka; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/fredoka-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Fredoka; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/fredoka-latin-700-normal.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: Fredoka; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/fredoka-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ground: #FFF8F0;
  --surface: #FFFFFF;
  --ink: #5A3D36;
  --ink-soft: #7A5A52;
  --accent: #F26B8E;
  --accent-strong: #C93A63;
  --accent-hover: #9E2A4C;
  --icon-bg: #EF6586;
  --apricot: #FFF0D9;
  --sky: #CDEBF7;
  --sun: #FFD75E;
  --lilac: #C9B6F0;
  --cardboard: #E7AE7B;
  --dashed: #CDBBA7;
  --stroke: 3px solid var(--ink);
  --sticker: 0 4px 0 var(--ink);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 500 17px/1.5 Fredoka, "Baloo 2", system-ui, sans-serif; }
a { color: var(--accent-strong); }
a:hover { color: var(--accent-hover); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 700; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--ink); color: #FFF; padding: 8px 14px; border-radius: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.back { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.back:hover { color: var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 11px; border: 2px solid var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; font-weight: 600; font-size: 15px; }
.nav > a { color: var(--ink); text-decoration: none; }
.nav > a:hover { color: var(--accent-strong); }
.lang { display: flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; font-size: 14px; font-weight: 600; }
.lang a { padding: 5px 12px; color: var(--ink); background: var(--surface); text-decoration: none; }
.lang a[aria-current] { background: var(--accent-strong); color: #FFF; }

/* Game page: hero */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 72px; }
.hero__main { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.app-icon { width: 96px; height: 96px; border-radius: 26px; border: var(--stroke); box-shadow: var(--sticker); display: block; }
.hero h1 { margin: 0; font-size: clamp(52px, 7vw, 84px); line-height: 1; color: var(--accent); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
.hero__lead { margin: 0; font-size: 22px; line-height: 1.4; max-width: 520px; }
.store-soon { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 24px; border-radius: 14px; background: #1D1C1A; color: #FFF; border: var(--stroke); box-shadow: var(--sticker); }
.store-soon__text { display: flex; flex-direction: column; line-height: 1.1; }
.store-soon__text small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.store-soon__text strong { font-size: 22px; font-weight: 600; }
.hero__art { flex: 1 1 440px; min-width: 0; margin: 0; }
.hero__art img { display: block; width: 100%; border-radius: 28px; border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); background: #FBF1D2; }

.section { padding-bottom: 72px; }
.section > h2, .band h2 { margin: 0 0 28px; font-size: 34px; line-height: 1.15; }

/* Game page: goal */
.goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.goal { border: var(--stroke); border-radius: 22px; box-shadow: var(--sticker); padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.goal--best { background: var(--apricot); }
.goal--collect { background: var(--sky); }
.goal h3 { margin: 0; font-size: 28px; line-height: 1.15; }
.goal p { margin: 0; }
.tag { align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; }
.goal--best .tag { background: var(--sun); }
.goal--collect .tag { background: var(--lilac); }
.cat-row { display: flex; flex-wrap: wrap; gap: 0; margin-top: 6px; }
.cat-row img { width: 60px; height: 60px; margin-right: -4px; }

/* Game page: the games */
.band { background: var(--surface); border-top: var(--stroke); border-bottom: var(--stroke); }
.band .wrap { padding-top: 64px; padding-bottom: 64px; }
.band h2 { margin-bottom: 8px; }
.band__lead { margin: 0 0 28px; color: var(--ink-soft); }
.minigames { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.minigame { border: var(--stroke); border-radius: 22px; box-shadow: var(--sticker); padding: 24px 28px; display: flex; gap: 20px; align-items: center; }
.minigame--merge { background: var(--cardboard); }
.minigame--lmo { background: var(--sky); }
.minigame img { width: 104px; flex: none; }
.minigame small { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.minigame h3 { margin: 2px 0 4px; font-size: 24px; }
.minigame p { margin: 0; }

/* Game page: and also */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.feature { background: var(--surface); border: var(--stroke); border-radius: 18px; padding: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 20px; }
.feature p { margin: 0; color: var(--ink-soft); }

.note { background: var(--apricot); border: var(--stroke); border-radius: 22px; padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.note__text { flex: 1 1 420px; }
.note h2 { margin: 0 0 6px; font-size: 26px; }
.note p { margin: 0; }
.note a { font-weight: 600; }

/* Footer */
.site-footer { border-top: var(--stroke); background: var(--surface); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Privacy policy */
.doc-layout { padding-top: 24px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.toc { flex: 1 1 220px; max-width: 280px; background: var(--surface); border: var(--stroke); border-radius: 18px; padding: 20px 22px; font-size: 15px; }
.toc p { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.doc { flex: 999 1 560px; min-width: 0; max-width: 760px; background: var(--surface); border: var(--stroke); border-radius: 22px; box-shadow: var(--sticker); padding: 40px 44px; display: flex; flex-direction: column; gap: 28px; line-height: 1.6; }
.doc h1 { margin: 0 0 6px; font-size: 40px; line-height: 1.1; }
.doc__meta { margin: 0; color: var(--ink-soft); font-size: 15px; }
.tldr { margin: 0; background: var(--apricot); border: 2px solid var(--ink); border-radius: 14px; padding: 16px 20px; }
.doc section { scroll-margin-top: 16px; }
.doc h2 { margin: 0 0 10px; font-size: 24px; }
.doc p, .doc li { margin: 0 0 10px; }
.doc ul { margin: 0 0 10px; padding-left: 22px; }
.doc section > :last-child { margin-bottom: 0; }

/* Help and data */
.help-layout { padding-top: 24px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.faq { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.faq h1 { margin: 0 0 8px; font-size: 40px; line-height: 1.1; }
.faq details { background: var(--surface); border: var(--stroke); border-radius: 18px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; }
.faq details p { margin: 12px 0 0; line-height: 1.6; }
.data { flex: 1 1 340px; background: var(--apricot); border: var(--stroke); border-radius: 22px; box-shadow: var(--sticker); padding: 28px; display: flex; flex-direction: column; gap: 14px; line-height: 1.6; scroll-margin-top: 16px; }
.data h2 { margin: 0; font-size: 26px; }
.data p { margin: 0; }
.data ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.cta { align-self: flex-start; display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 14px; background: var(--accent-strong); color: #FFF; font-weight: 600; text-decoration: none; border: var(--stroke); box-shadow: var(--sticker); }
.cta:hover { color: #FFF; background: var(--accent-hover); }

@media (max-width: 600px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .hero { padding-top: 24px; padding-bottom: 56px; gap: 28px; }
  .hero h1 { -webkit-text-stroke-width: 5px; }
  .hero__lead { font-size: 19px; }
  .section { padding-bottom: 56px; }
  .section > h2, .band h2 { font-size: 28px; }
  .goal { padding: 22px; }
  .goal h3 { font-size: 23px; }
  .minigame { padding: 20px; gap: 14px; }
  .minigame img { width: 76px; }
  .note { padding: 22px; }
  .doc { padding: 26px 22px; }
  .doc h1, .faq h1 { font-size: 32px; }
  .toc { max-width: none; }
}
.section--after-band { padding-top: 72px; }
@media (max-width: 600px) { .section--after-band { padding-top: 56px; } }
