/* Shared by every page: tokens, the pinned menu, buttons, footer and the plain text pages. */
:root {
  --canvas: #F9F4EB;
  --surface: #FFFFFF;
  --sunk: #EDE4D5;
  --ink: #1C1915;
  --ink-soft: #6B645A;
  --hairline: #E9E1D4;
  --green: #3E9150;
  --green-deep: #2B6B39;
  --green-ink: #23703A;
  --gold: #FFC23D;
  --red: #E5493A;
  --tile: #1C1915;
  --on-tile: #FBF6EE;
  --on-tile-soft: #BDB5A8;
  --nav-bg: rgba(255, 255, 255, .86);
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #13110F;
    --surface: #1F1C19;
    --sunk: #2A2622;
    --ink: #F7F3EC;
    --ink-soft: #A8A196;
    --hairline: #34302B;
    --green-ink: #8FE3A8;
    --tile: #26221E;
    --nav-bg: rgba(31, 28, 25, .86);
  }
}
/* Every page sits on Hoki green, the app's brand colour (Theme.brand). Text right on the green is cream;
   cards keep the app's paper colours. Hoki himself is green, so he always stands on paper, never on the page. */
:root { --page: #3B8E4E; --page-deep: #2B6F3B; --page-dark: #1F5A2E; --on-page: #FFFDF7; --on-page-soft: #EAF6EC; }
@media (prefers-color-scheme: dark) { :root { --page: #2B6F3B; --page-deep: #1F5A2E; --page-dark: #15401F; --on-page-soft: #D3EBD8; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--on-page);
  font: 600 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--green-ink); font-weight: 800; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* The menu: pinned on every page, always on screen. */
.nav {
  position: fixed; z-index: 50;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: min(920px, calc(100% - 24px));
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px 6px 10px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 30, 10, .25);
}
.logo { display: flex; align-items: center; gap: 2px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo img { width: 42px; height: 42px; }
.wordmark { font-size: 26px; font-weight: 900; letter-spacing: -.03em; line-height: 1; display: inline-flex; align-items: baseline; }
.wordmark i { font-style: normal; display: inline-block; transform: skewX(-11deg); }
.wordmark b {
  width: 7px; height: 3.5px; margin-left: 2px;
  background: var(--red); border-radius: 7px 7px 0 0;
}
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 800;
  padding: 8px 13px; border-radius: 999px;
  transition: color .15s, background .15s;
}
@media (hover: hover) { .nav-links a:hover { color: var(--ink); } }
.nav-links a.on { color: var(--green-ink); background: rgba(62, 145, 80, .13); }

/* The green button wears Hoki's horns. They pop up on hover, same as the app's Play button. */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: #fff; text-decoration: none;
  font-weight: 900; font-size: 18px; line-height: 1;
  padding: 18px 28px; border-radius: 999px;
  box-shadow: 0 5px 0 var(--green-deep);
  transition: transform .12s, box-shadow .12s;
}
.btn::before, .btn::after {
  content: ""; position: absolute; bottom: calc(100% - 3px);
  width: 13px; height: 17px; background: var(--gold);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform-origin: 50% 100%;
  transition: transform .3s var(--spring);
}
.btn::before { left: 27%; transform: rotate(-14deg); }
.btn::after { right: 27%; transform: rotate(14deg); }
@media (hover: hover) {
  .btn:hover::before { transform: rotate(-14deg) scale(1.1, 1.5); }
  .btn:hover::after { transform: rotate(14deg) scale(1.1, 1.5); }
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--green-deep); }
.btn:focus-visible, .nav a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
/* Phones only: the menu's own store button. On the home page it arrives once the big one has scrolled away. */
.nav .get { display: none; }

/* The footer: a cream strip where Hoki can stand. */
footer.site {
  position: relative; background: var(--canvas); color: var(--ink-soft);
  margin-top: 40px; border-radius: 36px 36px 0 0;
}
.foot {
  max-width: 1040px; margin: 0 auto; padding: 30px 24px 40px;
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 15px;
}
.foot .logo { margin-right: auto; gap: 8px; }
.foot .logo img { width: 56px; height: 56px; margin: -10px 0 -6px; }
.foot .logo small { display: block; font-size: 14px; font-weight: 700; color: var(--ink-soft); margin-top: 3px; }
footer.site a { color: var(--ink-soft); }
footer.site .logo { color: var(--ink); }

/* Support, privacy and terms: a paper sheet on the green. */
main.page {
  max-width: 760px; margin: 104px auto 0; padding: 48px clamp(22px, 6vw, 60px) 44px;
  background: var(--canvas); color: var(--ink); border-radius: 36px;
  box-shadow: 0 30px 70px rgba(0, 30, 10, .3);
}
main.page::before {
  content: ""; display: block; width: 92px; height: 92px; margin: -96px 0 8px -6px;
  background: url(/img/hoki-happy.png) center / contain no-repeat;
}
main.page h1 { font-size: clamp(38px, 8vw, 52px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 10px; font-weight: 900; }
main.page h2 { font-size: 23px; letter-spacing: -.01em; margin: 36px 0 8px; font-weight: 900; }
.muted { color: var(--ink-soft); font-size: 16px; }
ul { padding-left: 22px; }
li { margin: 4px 0; }
.card { background: var(--surface); border-radius: 26px; padding: 20px 22px; margin: 18px 0; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--hairline); vertical-align: top; }

@media (max-width: 640px) {
  html { scroll-padding-top: 68px; }
  .nav { top: 10px; width: calc(100% - 20px); min-height: 50px; padding: 3px 6px; gap: 0; }
  .logo { min-height: 44px; }
  .logo img { width: 36px; height: 36px; }
  .wordmark { font-size: 22px; }
  /* Phones: just Hoki and the store button. The page is short enough to scroll. */
  .nav-links { display: none; }
  .nav .get {
    display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
    min-height: 38px; max-width: 0; margin-left: 0; padding: 0; opacity: 0; visibility: hidden;
    border-radius: 999px; background: var(--green); color: #fff; text-decoration: none; font-size: 15px; font-weight: 900;
    transition: max-width .25s ease, padding .25s ease, margin .25s ease, opacity .2s, visibility .25s;
  }
  .nav.past .get, body:not(.home) .nav .get { max-width: 80px; margin-left: 4px; padding: 0 15px; opacity: 1; visibility: visible; }
  .nav .get:active { background: var(--green-deep); }

  .btn { font-size: clamp(15px, 4.8vw, 18px); padding: 18px 16px; white-space: nowrap; }

  main.page { margin: 96px 10px 0; padding: 40px 20px 32px; border-radius: 28px; }
  main.page::before { width: 76px; height: 76px; margin-top: -80px; }
  main.page h2 { margin-top: 32px; }
  main.page li { margin: 10px 0; }
  .card { padding: 18px 20px; border-radius: 22px; }

  footer.site { border-radius: 28px 28px 0 0; }
  .foot { justify-content: center; gap: 0 8px; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); text-align: center; }
  .foot .logo { flex-basis: 100%; justify-content: center; margin: 0 0 6px; text-align: left; }
  footer.site .foot > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
