/* Pakka Games website. Colours and font from Brand/BrandGuide.md (company repo). Light theme only. */

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/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;
}

:root {
  --bg: #FFFDF8;          /* warm white */
  --cream: #FFF6E5;       /* alternate sections */
  --pale: #FFF3D6;
  --line: #F0E6D2;
  --ink: #23164F;         /* brand navy */
  --muted: #5E5873;
  --purple: #5B45C8;
  --purple-dark: #2A1D66;
  --yellow: #FFB627;
  --screen: #FFE38F;
  --pink: #E5156B;
  --pink-text: #C7105D;   /* pink for small text: 4.5:1 or better on white and cream */
  --ochre: #9A6400;       /* yellow that reads on white */
  --radius: 16px;
  --head: "Baloo 2", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* scrollbar-gutter: short pages (no scrollbar) keep the header and footer exactly where longer pages have them. */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
/* No smooth scrolling: in some browsers it stopped links like /#why from reaching their section. */
/* The footer sits at the bottom of the window even on short pages. */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--body);
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.section { padding: 56px 0; }
.section.cream { background: var(--cream); }
.label { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--pink-text); margin: 0 0 .3em; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 36rem; }
.muted { color: var(--muted); }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
/* Logo sized a little under the reference studio sites' (about 220 x 63 px on desktop; on phones the words alone). */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 88px; height: auto; }
/* The words beside the mark copy the logo's wordmark: a big lowercase "pakka" with a pink shadow, then a small spaced
   "GAMES" between pink dashes. Ordinary text everywhere else says "Pakka Games" (Brand/BrandGuide.md). */
.brand-name { display: flex; flex-direction: column; align-items: center; font-family: var(--head); color: var(--ink); line-height: 1; }
.bn-pakka { font-weight: 800; font-size: 2.6rem; line-height: .85; text-shadow: 3px 3px 0 var(--pink); }
.bn-games { font-weight: 700; font-size: .9rem; letter-spacing: .22em; margin-top: 4px; padding-left: .22em; }
.bn-games::before, .bn-games::after { content: "–"; color: var(--pink); letter-spacing: 0; margin: 0 .3em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 10px; border-radius: 99px; }
.nav a:hover, .nav a[aria-current] { background: var(--cream); }
@media (max-width: 720px) { .site-header .wrap { min-height: 76px; } .brand { gap: 8px; } .brand img { width: 72px; } .bn-pakka { font-size: 2.1rem; text-shadow: 2px 2px 0 var(--pink); } .bn-games { font-size: .74rem; } }
/* Phones: the hands-and-phone mark is too small to read, so the header shows only the words. */
@media (max-width: 480px) { .brand img { display: none; } .nav a { padding: 6px 8px; } }
@media (max-width: 360px) { .bn-pakka { font-size: 1.85rem; } .bn-games { font-size: .66rem; } .nav { gap: 0; } .nav a { padding: 6px 6px; font-size: .9rem; } }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* Buttons, pills, tags */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 22px; border-radius: 99px; font-weight: 600; text-decoration: none; border: 2px solid transparent; line-height: 1.2; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--screen); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row-center { justify-content: center; }
/* A status, not a link: it must not look tappable until the Play Store link exists. */
.btn-soon { background: var(--pale); color: var(--ink); border: 2px dashed var(--ochre); cursor: default; }
/* The tagline pill, as in the logo: "pakka mazaa," in white, "every time!" in brand yellow, on purple. */
.pill { display: inline-block; font-family: var(--head); font-weight: 800; font-size: 1.2rem; background: var(--purple); color: #fff; padding: 3px 16px; border-radius: 99px; transform: rotate(-2deg); }
.pill .en { color: var(--yellow); }  /* 1.2rem bold is large text, so yellow on purple (3.8:1) passes */
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; }
.tags li { font-size: .8rem; background: #F6EEDD; padding: 3px 11px; border-radius: 99px; }
.badge { display: inline-block; font-size: .8rem; font-weight: 600; background: var(--screen); color: var(--ink); padding: 3px 12px; border-radius: 99px; white-space: nowrap; }

/* Phone frame around screenshots */
.phone { background: var(--ink); border-radius: 30px; padding: 9px; width: 100%; max-width: 250px; }
.phone img { border-radius: 22px; width: 100%; }

/* Home hero */
.hero { padding: 40px 0 48px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.hero h1 { margin-top: 14px; }
.hero h1 em { font-style: normal; color: var(--purple); }
.hero .phone { margin: 0 auto; max-width: 200px; transform: rotate(3deg); }
@media (min-width: 760px) {
  .hero { padding: 64px 0 72px; }
  .hero .wrap { grid-template-columns: 1.35fr 1fr; }
  .hero .phone { max-width: 260px; }
}

/* Game cards */
.cards { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 760px) { .cards { grid-template-columns: 1.5fr 1fr; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head img { width: 56px; height: 56px; border-radius: 14px; }
.card-head h3 { margin: 0; }
.card-head .tagline { font-size: .9rem; color: var(--muted); margin: 0; }
.card-head .badge { margin-left: auto; }
.card-link { display: inline-block; padding: 4px 0; font-weight: 600; text-decoration: none; }
.card-next { border: 2px dashed #E3D5B8; background: transparent; display: flex; flex-direction: column; justify-content: center; }

/* Why Pakka */
.why { display: grid; gap: 28px; align-items: center; }
.why-logo { max-width: 240px; margin: 0 auto; }
@media (min-width: 760px) { .why { grid-template-columns: 1fr 260px; } }
.values { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 620px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { background: var(--cream); border-radius: 14px; padding: 16px; }
.value h3 { font-size: 1.1rem; margin-bottom: .2em; }
.value p { margin: 0; color: var(--muted); font-size: .95rem; }
.value:nth-child(1) h3 { color: var(--purple); }
.value:nth-child(2) h3 { color: var(--pink-text); }
.value:nth-child(3) h3 { color: var(--ochre); }

/* Contact strip */
.contact { background: var(--ink); color: #E9E4F7; padding: 36px 0; }
.contact .wrap { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.contact h2 { color: var(--screen); font-size: 1.6rem; margin-bottom: .15em; }
.contact p { margin: 0; }
.contact :focus-visible { outline-color: var(--yellow); }

/* Inner pages */
.crumbs { font-size: .88rem; color: var(--muted); padding: 18px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #B9AFC9; }
.crumbs a { color: var(--muted); }
.page-head { padding: 18px 0 8px; }
.game-hero { display: grid; gap: 28px; align-items: start; padding: 18px 0 36px; }
.game-hero .icon { width: 88px; height: 88px; border-radius: 22px; margin-bottom: 14px; }
.game-hero .tagline { font-family: var(--head); color: var(--pink); font-weight: 700; font-size: 1.3rem; margin: -6px 0 10px; }
.game-hero .phone { margin: 0 auto; }
@media (min-width: 760px) { .game-hero { grid-template-columns: 1.4fr 1fr; } }
@media (max-width: 759px) { .game-hero .phone { display: none; } }  /* the screenshots row follows straight after on phones */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.facts div { background: var(--cream); border-radius: 12px; padding: 10px 14px; }
.facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.facts .fact-note { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); white-space: nowrap; }

.shots { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 auto; width: 200px; scroll-snap-align: start; }
.shots img { border-radius: 18px; border: 6px solid var(--ink); }
.shots figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 6px; }
@media (min-width: 900px) { .shots { overflow: visible; justify-content: space-between; } .shots figure { width: 23%; } }

.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 16px 60px; position: relative; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--purple); color: #fff; font-family: var(--head); font-weight: 800; display: grid; place-items: center; }
.features { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 620px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features div { background: var(--cream); border-radius: 14px; padding: 14px 16px; }
.features h3 { font-size: 1.05rem; margin-bottom: .15em; }
.features p { margin: 0; color: var(--muted); font-size: .95rem; }

.note { background: var(--pale); border-radius: 14px; padding: 16px 18px; }
.note p:last-child { margin-bottom: 0; }

/* Long text: privacy policy, help */
.prose { max-width: 46rem; padding-bottom: 56px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.updated { color: var(--muted); font-size: .92rem; }
.summary { background: var(--pale); border-left: 5px solid var(--yellow); border-radius: 0 14px 14px 0; padding: 16px 18px; margin: 18px 0 8px; }
.summary p:last-child { margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--head); font-size: 1.3rem; line-height: 1; color: var(--purple); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.help-box { background: var(--cream); border-radius: 14px; padding: 16px 18px; margin: 18px 0 8px; }
.help-box ul { margin: .4em 0 0; }
/* /help: one link card per game, leading to that game's own help page. */
.game-help-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.game-help { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.game-help:hover { border-color: var(--purple); color: var(--ink); }
.game-help img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.game-help strong { display: block; font-family: var(--head); font-size: 1.15rem; line-height: 1.2; }
.game-help span span { display: block; color: var(--muted); font-size: .92rem; }
.game-help::after { content: "→"; margin-left: auto; color: var(--purple); font-weight: 700; }

.center { text-align: center; }
.big-404 { font-family: var(--head); font-weight: 800; font-size: 5rem; color: var(--yellow); line-height: 1; margin: 0; }
