/* Tappi Town – the app's look: yellow town, cream panels, thick ink outlines, hard shadows. */
@font-face { font-family: "Nunito"; font-weight: 600 900; font-display: swap;
  src: url("fonts/nunito-latin-ext.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: "Nunito"; font-weight: 600 900; font-display: swap;
  src: url("fonts/nunito-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; }

:root {
  --ink: #2E2A34;
  --cream: #FFF8EA;
  --page: #FFF3D6;
  --yellow: #FFC21A;
  --green: #57B94A;
  --orange: #F2851E;
  --muted: #5A5462;
  --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink);
  font: 600 18px/1.55 "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #000; }
h1, h2, h3 { font-weight: 900; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(30px, 4vw, 44px); text-align: center; }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px;
  padding: 12px max(16px, calc((100% - 1160px) / 2)); background: var(--yellow); border-bottom: 4px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 24px; margin-right: auto; }
.brand img { border-radius: 12px; border: 3px solid var(--ink); }
.links { display: flex; gap: 20px; font-weight: 800; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; font-weight: 800; padding: 6px 14px; min-height: 44px; display: flex; align-items: center;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 4px 0 var(--ink); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: "▾"; margin-left: 6px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 10px); background: var(--cream); border: 3px solid var(--ink);
  border-radius: 18px; box-shadow: 0 6px 0 var(--ink); padding: 8px; display: grid; min-width: 170px; }
.lang-menu a { padding: 8px 12px; border-radius: 10px; text-decoration: none; }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--yellow); }

/* Hero */
.hero { background: radial-gradient(circle at 15% 10%, #FFE07A, transparent 55%), radial-gradient(circle at 90% 90%, #FFB02E, transparent 60%), var(--yellow);
  border-bottom: 4px solid var(--ink); padding: 56px max(16px, calc((100% - 1160px) / 2)) 72px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.kicker { display: inline-block; background: var(--cream); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-weight: 900; box-shadow: 0 4px 0 var(--ink); }
.lead { font-size: 21px; }
.note { font-size: 15px; color: var(--muted); margin-top: 14px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 900; font-size: 19px; padding: 12px 22px; border-radius: 18px; border: 3px solid var(--ink); box-shadow: 0 6px 0 rgba(0,0,0,.35); }
.store:hover { color: #fff; transform: translateY(2px); box-shadow: 0 4px 0 rgba(0,0,0,.35); }
.store.soon { background: var(--cream); color: var(--ink); box-shadow: 0 6px 0 var(--ink); }
.store .apple { width: 24px; height: 24px; }
.hero-art { position: relative; min-height: 380px; }
.device { border: 8px solid var(--ink); background: var(--ink); box-shadow: 0 12px 0 rgba(46,42,52,.35); }
.device.landscape { border-radius: 34px; width: 92%; margin-top: 30px; }
.device.portrait { position: absolute; right: 0; bottom: -40px; width: 32%; border-radius: 30px; transform: rotate(4deg); }

/* Features */
.features { list-style: none; margin: -36px auto 0; padding: 0 16px; max-width: 1192px; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.card { background: var(--cream); border: 4px solid var(--ink); border-radius: var(--radius); box-shadow: 0 8px 0 var(--ink); padding: 22px 24px; }
.feature svg { width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  background: var(--yellow); border: 3px solid var(--ink); border-radius: 14px; padding: 6px; margin-bottom: 10px; }
.feature p, .cards p { margin: 0; color: var(--muted); }

/* Sections */
.band, .games, .parents { padding: 72px max(16px, calc((100% - 1160px) / 2)) 24px; }
.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.shot { margin: 0; }
.shot img { border: 6px solid var(--ink); border-radius: 26px; background: var(--ink); box-shadow: 0 8px 0 rgba(46,42,52,.3); }
.shot figcaption { text-align: center; font-weight: 900; margin-top: 12px; }

.category { margin-top: 36px; }
.category h3 { display: flex; align-items: center; gap: 10px; font-size: 26px; }
.count { font-size: 15px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 999px; padding: 0 10px; }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 18px; }
.tile { background: var(--tint); border: 4px solid var(--ink); border-radius: 24px; box-shadow: 0 6px 0 var(--ink);
  padding: 10px 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.tile img { width: 88px; height: 88px; }
.tile span { background: var(--cream); border: 3px solid var(--ink); border-radius: 12px; padding: 1px 8px; font-weight: 900; font-size: 14px; line-height: 1.25; }

.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

/* Documents */
.page { padding: 48px 16px 24px; }
.doc { max-width: 820px; margin: 0 auto; padding: 36px 40px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc h2 { text-align: left; font-size: 24px; margin-top: 1.6em; }
.doc.center { text-align: center; }
.updated { color: var(--muted); font-size: 15px; }
.intro { font-size: 20px; }
.legal-note { background: #FFF0C2; border: 3px dashed var(--ink); border-radius: 14px; padding: 10px 14px; font-size: 15px; }
.button { display: inline-block; background: var(--green); color: var(--ink); text-decoration: none; font-weight: 900; padding: 12px 22px;
  border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); }
.button:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--ink); }
.faq { border: 3px solid var(--ink); border-radius: 18px; padding: 0 18px; margin: 12px 0; background: #fff; }
.faq summary { cursor: pointer; font-weight: 900; padding: 14px 0; min-height: 44px; }
.faq p { margin: 0 0 14px; }

/* Footer */
.foot { margin-top: 72px; background: var(--ink); color: var(--cream); padding: 36px 16px 44px; text-align: center; }
.foot a { color: var(--cream); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; font-weight: 900; margin-bottom: 14px; }
.foot p { margin: 4px 0; }
.small { font-size: 14px; opacity: .75; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-art { min-height: 0; margin-bottom: 30px; }
  .features { grid-template-columns: 1fr; }
  .gallery, .cards { grid-template-columns: 1fr; }
  .links { display: none; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .tile { border-radius: 18px; padding: 8px 4px 10px; }
  .tile img { width: 64px; height: 64px; }
  .tile span { font-size: 12px; padding: 1px 5px; border-width: 2px; }
  .doc { padding: 26px 20px; }
}
@media (min-width: 861px) and (max-width: 1060px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* At a glance */
.facts { padding: 72px max(16px, calc((100% - 1160px) / 2)) 0; }
.facts dl { max-width: 820px; margin: 0 auto; display: grid; gap: 0; padding: 8px 28px; }
.facts dl div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 12px 0; border-bottom: 2px dashed rgba(46,42,52,.25); }
.facts dl div:last-child { border-bottom: 0; }
.facts dt { font-weight: 900; }
.facts dd { margin: 0; }
@media (max-width: 600px) { .facts dl div { grid-template-columns: 1fr; gap: 2px; } }

/* Share image (og/<lang>.html, 1200x630) */
body.og { width: 1200px; height: 630px; margin: 0; overflow: hidden; position: relative; border: 0;
  background: radial-gradient(circle at 12% 8%, #FFE07A, transparent 55%), radial-gradient(circle at 92% 95%, #FFB02E, transparent 60%), var(--yellow); }
.og-text { position: absolute; left: 60px; top: 48px; width: 560px; }
.og-brand { display: flex; align-items: center; gap: 16px; font-weight: 900; font-size: 40px; margin-bottom: 18px; }
.og-brand img { width: 84px; height: 84px; border-radius: 22px; border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.og h1 { font-size: 64px; line-height: 1.02; margin: 0 0 16px; }
.og-kicker { display: inline-block; background: var(--cream); border: 4px solid var(--ink); border-radius: 999px; padding: 4px 18px;
  font-weight: 900; font-size: 24px; box-shadow: 0 5px 0 var(--ink); margin: 0 0 18px; }
.og-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.og-chips span { background: var(--ink); color: var(--cream); border-radius: 999px; padding: 4px 14px; font-weight: 900; font-size: 19px; }
.og-art { position: absolute; right: 40px; top: 50px; width: 520px; height: 420px; }
.og-art .device.landscape { width: 470px; margin-top: 40px; border-width: 7px; border-radius: 28px; }
.og-art .device.portrait { width: 150px; right: 0; bottom: 30px; border-width: 6px; border-radius: 24px; }
.og-tiles { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; display: flex; justify-content: center; gap: 18px;
  align-items: center; background: var(--cream); border-top: 5px solid var(--ink); }
.og-tile { width: 88px; height: 88px; border-radius: 22px; background: var(--tint); border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
  display: flex; align-items: center; justify-content: center; }
.og-tile img { width: 66px; height: 66px; }
.og h1.long { font-size: 52px; }
