/* Bopbit Games v3. Self-hosted fonts (Fredoka, Nunito; both OFL). No trackers, no external requests. */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/fredoka-var.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/nunito-400.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/nunito-600.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/nunito-700.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/nunito-800.woff2") format("woff2"); }

:root {
  --ink: #2b2540;
  --ink-2: #5b5470;
  --cream: #fffbf3;
  --coral: #fe6864;
  --coral-d: #e2504b;
  --blue: #6fb4f1;
  --blue-soft: #e4f1fd;
  --sun: #fdbb57;
  --sun-soft: #fff1d6;
  --green: #70c1a2;
  --purple: #b196e6;
  --line: rgba(43, 37, 64, .14);
  --maxw: 1120px;
  --edge: clamp(1.1rem, 4vw, 2.5rem);
  --display: "Fredoka", "Nunito", "Trebuchet MS", system-ui, sans-serif;
  --text: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--text); font-size: 1.125rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sun); }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 99; border-radius: 8px; }
.skip:focus { top: 1rem; }
.wrap { width: min(var(--maxw), 100% - 2 * var(--edge)); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }

/* Header */
.site-header { position: relative; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; padding: .9rem 0; }
.brand { display: block; line-height: 0; }
.brand img { height: 64px; width: auto; }
.nav { display: flex; align-items: center; gap: .3rem 1.7rem; font-family: var(--display); font-weight: 500; font-size: 1.08rem; }
.nav a { text-decoration: none; padding: .2rem 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--sun); }
.btn { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 1.1rem; text-decoration: none; background: var(--blue); color: var(--ink); padding: .72rem 1.5rem; border-radius: 999px; border-bottom: 4px solid #4f95d4; transition: transform .12s, border-bottom-width .12s; line-height: 1.2; }
.btn:hover { transform: translateY(2px); border-bottom-width: 2px; }
.nav .btn { padding: .45rem 1.1rem; font-size: 1rem; border-bottom-width: 3px; }
.nav .btn:hover { border-bottom-color: #4f95d4; }

/* Hero */
.hero { padding: clamp(1rem, 3vw, 2.5rem) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1rem, 4vw, 3rem); align-items: center; }
.eyebrow { font-family: var(--display); font-weight: 500; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); color: var(--coral-d); margin-bottom: 1.1rem; }
.hero .sub { font-size: 1.28rem; max-width: 24em; margin-bottom: 1.7rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; }
.store { font-family: var(--display); font-weight: 500; line-height: 1.15; display: inline-flex; flex-direction: column; border: 2px solid var(--ink); border-radius: 14px; padding: .4rem .95rem .38rem; background: #fff; }
.store small { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.store b { font-size: 1.12rem; font-weight: 600; }
.hero-logo { width: 100%; height: auto; overflow: visible; }

.facts { list-style: none; margin: clamp(1.5rem, 4vw, 3rem) 0 0; padding: 1.1rem 0 1.4rem; display: flex; flex-wrap: wrap; justify-content: center; border-top: 2px solid var(--line); font-family: var(--display); font-weight: 500; font-size: 1.12rem; }
.facts li { padding: .2rem 1.6rem; position: relative; }
.facts li + li::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; border-left: 2px solid var(--line); }

/* Logo animation */
.lt { transform-box: fill-box; transform-origin: 50% 100%; animation: boing .9s cubic-bezier(.3,1.5,.5,1) both; }
.lt1 { animation-delay: .05s; } .lt2 { animation-delay: .17s; } .lt3 { animation-delay: .29s; } .lt4 { animation-delay: .41s; } .lt5 { animation-delay: .53s; } .lt6 { animation-delay: .65s; }
@keyframes boing { 0% { transform: translateY(-46px) scale(.92, 1.08); opacity: 0; } 55% { opacity: 1; } 70% { transform: translateY(0) scale(1.07, .9); } 100% { transform: none; opacity: 1; } }
.sun { transform-box: fill-box; transform-origin: 50% 50%; animation: bob 4.5s ease-in-out 1.4s infinite; }
@keyframes bob { 50% { transform: translateY(-7px) rotate(5deg); } }
.rays { animation: glow 3.2s ease-in-out 1.4s infinite; }
@keyframes glow { 50% { opacity: .45; } }

/* Wave */
.wave { display: block; width: 100%; height: clamp(34px, 5vw, 70px); }
.wave-sun { fill: var(--blue); }

/* Apps */
.apps { padding: 0; }
.apps-body { background: var(--blue); padding: 0 0 clamp(2rem, 5vw, 3.5rem); margin-top: -1px; margin-bottom: -1px; }
.wave-bottom { transform: scaleY(-1); }
.apps-head { max-width: 36rem; margin-bottom: 2.2rem; }
.apps h2, .parents h2, .about h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); margin-bottom: .7rem; }
.apps-head p { font-size: 1.15rem; margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.tile figure { margin: 0; }
.tile .art { aspect-ratio: 16 / 10; border-radius: 28px; overflow: hidden; position: relative; }
.tile .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile figcaption { padding: 1rem .3rem 0; }
.tag { display: inline-block; font-family: var(--display); font-weight: 500; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; background: #fff; border-radius: 999px; padding: .15rem .75rem; margin-bottom: .45rem; }
.tile h3 { font-size: 1.6rem; }
.tile p { margin: .2rem 0 0; }
.peek { animation: peek 5.5s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.peek.b { animation-delay: -2.7s; }
@keyframes peek { 0%, 100% { transform: translateY(14px); } 45%, 60% { transform: translateY(0); } }
.eye { animation: blink 5s infinite; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }

/* Parents */
.parents { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.parents-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 4vw, 3rem); margin-top: 2rem; }
.parents-grid > div { border-top: 5px solid var(--c, var(--coral)); padding-top: 1rem; }
.parents-grid h3 { font-size: 1.45rem; margin-bottom: .45rem; }
.parents-grid p { margin: 0; color: var(--ink-2); }
.more { display: inline-block; margin-top: 2rem; font-family: var(--display); font-weight: 600; font-size: 1.1rem; }

/* About / contact */
.about { background: var(--sun-soft); padding: clamp(3rem, 7vw, 5rem) 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.about p { max-width: 30em; }
.notify { background: #fff; border-radius: 28px; padding: 1.7rem 1.7rem 1.6rem; border: 2px solid var(--ink); }
.notify h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.notify p { margin-bottom: 1.1rem; }
.notify .small { font-size: 1rem; color: var(--ink-2); margin: 1rem 0 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.6rem; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 2rem; }
.foot-top img { width: min(280px, 70%); height: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-family: var(--display); font-weight: 500; }
.foot-links a { text-decoration-color: var(--sun); }
.foot-bottom { margin-top: 2rem; padding-top: 1.1rem; border-top: 2px solid rgba(255,251,243,.2); font-size: .95rem; color: rgba(255,251,243,.75); }

/* Inner pages */
.page-head { padding: clamp(1.3rem, 3vw, 2.5rem) 0 clamp(1.4rem, 3vw, 2.2rem); background: var(--blue-soft); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--coral-d); margin-bottom: .5rem; }
.page-head .meta { margin: 0; color: var(--ink-2); font-weight: 600; }
.page-head .lede { font-size: 1.22rem; max-width: 34em; margin: 0; }
.template-flag { background: #fff; border: 2px solid var(--ink); border-left: 10px solid var(--sun); border-radius: 14px; padding: 1rem 1.2rem; margin: 1.5rem 0 0; font-size: 1.02rem; }
.template-flag p { margin: 0; }
.doc { display: grid; grid-template-columns: minmax(0, 14.5rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem); }
.toc { position: sticky; top: 1.2rem; align-self: start; font-size: .98rem; }
.toc b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-bottom: .6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--line); }
.toc a { display: block; padding: .25rem 0 .25rem .9rem; text-decoration: none; margin-left: -3px; border-left: 3px solid transparent; }
.toc a:hover { border-left-color: var(--coral); }
.policy { max-width: 45rem; }
.policy h2 { font-size: clamp(1.5rem, 2.8vw, 1.95rem); margin: 2.6rem 0 .8rem; padding-top: 1.1rem; border-top: 2px solid var(--line); scroll-margin-top: 1rem; }
.policy h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.policy h3 { font-size: 1.2rem; margin: 1.5rem 0 .4rem; }
.policy ul { padding-left: 1.2rem; }
.policy li { margin: .3rem 0; }
.policy a { font-weight: 700; }
.policy .update { position: relative; background: var(--sun-soft); border: 2px dashed #d99a2b; border-radius: 12px; padding: 1.3rem 1.1rem .95rem; margin: 1.2rem 0 1.5rem; font-size: 1.02rem; }
.policy .update::before { content: "Update before launch"; position: absolute; top: -.8rem; left: .9rem; background: var(--coral); color: #fff; border-radius: 999px; padding: .08rem .75rem; font-family: var(--display); font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }

.support-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 5vw, 4rem); padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem); }
.support-grid h2 { font-size: 1.7rem; margin-bottom: .6rem; }
.mail { display: inline-block; font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 3.4vw, 2.1rem); text-decoration: none; border-bottom: 4px solid var(--sun); margin: .2rem 0 1.2rem; word-break: break-word; }
.mail:hover { border-bottom-color: var(--coral); }
.checks { margin: 0 0 1rem; padding-left: 1.2rem; }
.checks li { margin: .35rem 0; }
.aside-box { background: var(--blue-soft); border-radius: 24px; padding: 1.6rem 1.5rem .7rem; align-self: start; }
.aside-box h2 { font-size: 1.5rem; }

@media (max-width: 880px) {
  .hero-grid, .about-grid, .doc, .support-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; max-width: 520px; margin-inline: auto; width: 100%; }
  .parents-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; border-bottom: 2px solid var(--line); padding-bottom: 1rem; }
  .toc ol { columns: 2; column-gap: 1.2rem; border-left: 0; }
  .toc a { margin-left: 0; border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .brand img { height: 52px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .facts li { padding: .25rem 1rem; }
}
@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .nav { gap: .3rem 1.1rem; font-size: 1rem; }
  .facts { justify-content: flex-start; gap: .5rem; border-top: 0; padding-top: .4rem; }
  .facts li { padding: .3rem .9rem; border: 2px solid var(--line); border-radius: 999px; font-size: 1rem; }
  .facts li + li::before { display: none; }
  .toc ol { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
