/* Arcade Pop (the app's look): sky gradient, ink outlines, chunky 3D buttons,
   Lilita One for anything loud, Nunito for reading. */
/* Fonts are served from trydumb.net (SIL Open Font License, /fonts/OFL-*.txt). */
@font-face { font-family: "Lilita One"; src: url("/fonts/LilitaOne-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: Nunito; font-weight: 400 600; src: url("/fonts/Nunito-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: Nunito; font-weight: 700; src: url("/fonts/Nunito-Bold.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: Nunito; font-weight: 800; src: url("/fonts/Nunito-ExtraBold.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: Nunito; font-weight: 900; src: url("/fonts/Nunito-Black.woff2") format("woff2"); font-display: swap; }

:root {
  --sky: #7AD8FF; --blue: #4A6CFF; --ink: #1B1035; --paper: #FFFFFF;
  --yellow: #FFD23F; --yellow-rim: #E09A00; --yellow-text: #3A1F00;
  --pink: #FF4FA3; --pink-rim: #C93A80; --green: #5BE37D; --green-rim: #2FA84F;
  --muted: #4E4870; --line: #D9DEF2; --link: #B3256C;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--blue); }
body {
  margin: 0; color: var(--ink); min-height: 100vh;
  background: linear-gradient(180deg, var(--sky) 0%, var(--blue) 100%) fixed;
  font: 500 17px/1.6 Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
}
main {
  max-width: 760px; margin: 24px auto 48px; padding: 28px 28px 40px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 0 8px 0 var(--ink);
}
@media (max-width: 800px) { main { margin: 16px; padding: 22px 18px 32px; } }
a { color: var(--link); font-weight: 700; }
a:hover { color: var(--ink); }
header { display: flex; padding: 4px 6px 0; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.logo {
  font-family: var(--display); font-size: 40px; color: #fff; text-decoration: none; letter-spacing: 1px;
  -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; display: inline-block; transform: rotate(-4deg);
}
.logo:hover { color: var(--yellow); }
nav { display: flex; flex-wrap: wrap; gap: 6px 16px; min-width: 0; }
body { overflow-x: hidden; }
nav a { color: var(--ink); text-decoration: none; font-weight: 900; }
nav a:hover { color: var(--link); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .2px; }
h1 { font-size: clamp(40px, 8vw, 64px); line-height: 1; margin: 40px 0 14px; }
h2 { margin-top: 36px; font-size: 28px; }
.lead { font-size: 20px; color: var(--muted); font-weight: 700; }
.note { border: 3px solid var(--ink); border-radius: 18px; padding: 14px 18px; background: #EAF7FF; color: var(--ink); font-weight: 700; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 2px solid var(--line); }
th { font-weight: 900; }
footer { margin-top: 48px; padding-top: 16px; border-top: 3px solid var(--ink); color: var(--muted); font-size: 14px; font-weight: 700; }
footer a { color: var(--muted); margin-right: 16px; }

/* Chunky arcade buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer;
  font-family: var(--display); font-size: 22px; color: var(--yellow-text); background: var(--yellow);
  border: 3px solid var(--ink); border-radius: 20px; padding: 14px 26px;
  box-shadow: 0 7px 0 var(--yellow-rim), 0 7px 0 3px var(--ink); transition: transform .08s, box-shadow .08s;
}
.btn:hover { color: var(--yellow-text); transform: translateY(-2px); box-shadow: 0 9px 0 var(--yellow-rim), 0 9px 0 3px var(--ink); }
.btn:active { transform: translateY(7px); box-shadow: 0 0 0 var(--yellow-rim), 0 0 0 3px var(--ink); }
.btn.pink { background: var(--pink); color: var(--ink); box-shadow: 0 7px 0 var(--pink-rim), 0 7px 0 3px var(--ink); }
.btn.white { background: #fff; color: var(--ink); box-shadow: 0 7px 0 #B9C4E6, 0 7px 0 3px var(--ink); }

/* The hold button (home page): presses itself every few seconds. */
.button {
  width: 200px; height: 200px; border-radius: 50%; margin: 40px auto; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #FF8CC6, var(--pink) 45%, #E83C8F); border: 4px solid var(--ink);
  box-shadow: 0 16px 0 var(--pink-rim), 0 16px 0 4px var(--ink);
  font-family: var(--display); font-size: 46px; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill;
  animation: holdpress 2.6s cubic-bezier(.3, 1.4, .5, 1) infinite;
}
@keyframes holdpress {
  0%, 40%, 100% { transform: translateY(0); box-shadow: 0 16px 0 var(--pink-rim), 0 16px 0 4px var(--ink); }
  50%, 90% { transform: translateY(13px); box-shadow: 0 3px 0 var(--pink-rim), 0 3px 0 4px var(--ink); }
}

/* Cards that link somewhere */
.promo {
  display: flex; flex-direction: column; gap: 4px; border: 3px solid var(--ink); border-radius: 22px; padding: 18px 22px; margin: 10px 0 22px;
  color: var(--ink); text-decoration: none; background: #fff; box-shadow: 0 6px 0 var(--ink); transition: transform .1s, box-shadow .1s;
}
.promo strong { font-family: var(--display); font-weight: 400; font-size: 26px; }
.promo span { color: var(--muted); font-weight: 700; }
.promo .cta { color: var(--link); font-weight: 900; }
.promo:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 9px 0 var(--ink); }

@media (prefers-reduced-motion: reduce) { .button, .jiggle, .bob, .shine::after { animation: none !important; } }

/* App Store badge (official artwork in /badges; shown after launch, see launch.css) */
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { display: block; height: 44px; width: auto; }
.store-badge.big img { height: 60px; }
header .store-badge { margin-left: auto; }
.footer-badge { margin-bottom: 14px; }

/* Cookie consent (consent.js) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin: 0 auto;
  background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 7px 0 var(--ink); padding: 14px 18px; }
.consent p { margin: 0 0 12px; font-weight: 800; }
.consent-buttons { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.consent .btn { font-size: 18px; padding: 8px 20px; }
