/* Polkaboo site: the game's own design. Yellow page, white panel in a red dotted frame, Bagel Fat One headings,
   Figtree text, black outlines with a hard shadow. Tokens and shapes come from src/benekle.html in the game.
   Fonts: the game's own Latin files (SIL OFL 1.1, licences in /fonts/). */

@font-face { font-family: 'Bagel Fat One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/bagel-fat-one-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: 'Bagel Fat One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/bagel-fat-one-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; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(/fonts/figtree-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: 'Figtree'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(/fonts/figtree-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: #FFD400;          /* the game's page yellow */
  --accent: #E3001B;      /* the game's red */
  --ink: #111;            /* text on the yellow page: the same in dark mode, like the game */
  --panel: #fff;
  --panel-ink: #111;
  --panel-soft: #4a4a4a;
  --link: #C8001A;
  --display: 'Bagel Fat One', system-ui, sans-serif;
  --text: Figtree, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --panel: #181818; --panel-ink: #fff; --panel-soft: #bdbdbd; --link: #FF5C6C; color-scheme: dark; }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; position: relative; overflow-x: hidden; min-height: 100vh;
  background: var(--bg); color: var(--ink);
  font: 500 17px/1.6 var(--text);
}
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #1B3BFF; outline-offset: 3px; }

/* Big flat dots on the page, like the game's menu background. Decoration only. */
.spots { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.spots i { position: absolute; display: block; border-radius: 50%; }
.spots i:nth-child(1) { width: 200px; height: 200px; background: #00978d; top: -80px; right: -60px; }
.spots i:nth-child(2) { width: 80px; height: 80px; background: #7c4226; top: 460px; left: -58px; }
.spots i:nth-child(3) { width: 34px; height: 34px; background: #111; top: 150px; right: 5%; }
.spots i:nth-child(4) { width: 150px; height: 150px; background: #b5b1d8; top: 1180px; right: -70px; }
.spots i:nth-child(5) { width: 26px; height: 26px; background: #009465; top: 1720px; left: 6%; }
.spots i:nth-child(6) { width: 240px; height: 240px; background: #f37420; bottom: -120px; left: -90px; }
.spots i:nth-child(7) { width: 58px; height: 58px; background: #b5decc; bottom: 300px; right: 4%; }

/* header */
.top {
  position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark { font: 400 32px/1 var(--display); color: var(--accent); text-decoration: none; }
.top nav { display: flex; gap: 18px; }
.top nav a { font: 700 15px/1 var(--text); color: var(--ink); text-decoration: none; padding: 10px 0; }
.top nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* buttons: the game's black pill and its outlined tile */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px;
  border-radius: 999px; text-decoration: none; text-align: center;
}
.btn.primary { background: #111; color: #fff; font: 400 21px/1.1 var(--display); }
.btn.primary:hover { background: #2a2a2a; }
.btn.tile {
  background: #fff; color: #111; border: 3px solid #111; box-shadow: 0 4px 0 #111;
  font: 700 16px/1.2 var(--text); border-radius: 20px;
}
a.btn.tile:active, .btn.primary:active { transform: translateY(2px); }
.btn.soon { cursor: default; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }

/* landing: hero */
.hero {
  position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 8px 20px 44px;
  display: grid; gap: 36px; align-items: center;
}
.hero h1 { margin: 0; }
.hero .wm { display: block; font: 400 clamp(68px, 17vw, 124px)/.9 var(--display); color: var(--accent); }
.hero .tag { display: block; font: 400 clamp(26px, 5.2vw, 40px)/1.12 var(--display); color: var(--ink); margin-top: 14px; }
.lede { font-size: 19px; line-height: 1.55; max-width: 36ch; margin: 18px 0 26px; }
.phone { margin: 0 auto; max-width: 290px; }
.phone img {
  display: block; width: 100%; border: 4px solid #111; border-radius: 34px; box-shadow: 0 8px 0 #111; background: #fff;
}
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.2fr .8fr; padding-top: 28px; padding-bottom: 64px; }
}

/* landing: a row of finished pieces */
.strip {
  position: relative; z-index: 1; max-width: 1100px; margin: 0 auto 60px; padding: 0 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.strip figure { margin: 0; }
.strip img { display: block; width: 100%; aspect-ratio: 1; border: 3px solid #111; border-radius: 18px; box-shadow: 0 4px 0 #111; }
.strip figcaption { font: 400 17px/1.2 var(--display); text-align: center; margin-top: 10px; }
@media (min-width: 760px) { .strip { grid-template-columns: repeat(6, 1fr); } }

/* the white panel in the red dotted frame (the game's .panel) */
.panel {
  position: relative; z-index: 1; width: min(780px, calc(100% - 56px)); margin: 16px auto 72px;
  background: var(--panel); color: var(--panel-ink); border-radius: 34px;
  outline: 8px dotted var(--accent); outline-offset: 8px; padding: 36px 26px 30px;
}
@media (min-width: 700px) { .panel { padding: 48px 52px 40px; } }
.panel h1 { font: 400 clamp(38px, 8vw, 52px)/1 var(--display); color: var(--accent); margin: 0 0 12px; }
.panel h2 { font: 400 28px/1.1 var(--display); margin: 44px 0 12px; }
.panel h1 + h2, .panel > h2:first-child, .panel > section:first-child > h2 { margin-top: 0; }
.panel h3 { font: 700 18px/1.35 var(--text); margin: 26px 0 6px; }
.panel p, .panel li { max-width: 62ch; }
.panel p { margin: 0 0 14px; }
.panel ul { padding-inline-start: 1.2em; margin: 0 0 16px; }
.panel li { margin: 0 0 8px; }
.panel li::marker { color: var(--accent); }
.panel a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.panel a.btn { text-decoration: none; }
.panel a.btn.primary { color: #fff; }
.panel a.btn.tile { color: #111; }
.panel .updated { font: 700 14px/1.4 var(--text); color: var(--panel-soft); margin: 0 0 24px; }
.panel .note { color: var(--panel-soft); font-size: 15px; }
.panel .langs { font-weight: 700; }

/* numbered steps: the game's yellow dot with a black ring */
.steps { list-style: none; padding: 0; margin: 0 0 18px; counter-reset: step; }
.steps li { position: relative; padding-inline-start: 54px; margin: 0 0 16px; min-height: 38px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 0; top: -3px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg); border: 3px solid #111; color: #111;
  display: grid; place-items: center; font: 400 19px/1 var(--display);
}

/* a text column with a phone picture beside it */
.split { display: grid; gap: 28px; }
.split .phone { max-width: 230px; }
@media (min-width: 720px) { .split { grid-template-columns: 1fr 210px; align-items: start; } }

/* footer, on the yellow page */
.foot {
  position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 20px 44px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: baseline;
  font: 500 14px/1.6 var(--text); color: var(--ink);
}
.foot a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.foot .wordmark { font-size: 20px; margin-inline-end: 6px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
