/* The game pages (games/, made by scripts/make-game-pages.mjs): the landing page's colors, type and ink-outlined cards. */
:root {
  --ink: #0f172a;
  /* The app's soft lift (shadow-lift in src/index.css). */
  --lift: 0 6px 16px -6px rgb(25 70 120 / .35);
  --lift-sm: 0 2px 6px -1px rgb(25 70 120 / .3);
  --grass: #5fb34c;
  --grass-dark: #3f8f2f;
  --sky-top: #7cc8f5;
  --sky-bottom: #d9f1ff;
  --cream: #fff8e8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Nunito, ui-rounded, system-ui, sans-serif;
  font-weight: 700;
  color: #1e293b;
  background: linear-gradient(180deg, var(--sky-bottom), var(--cream) 520px);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: Fredoka, Nunito, sans-serif; font-weight: 700; color: var(--ink); margin: 0; }
p { margin: 0 0 12px; line-height: 1.6; }
a { color: inherit; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

.card { background: #fff; border-radius: 18px; box-shadow: var(--lift); }
.btn {
  display: inline-flex; align-items: center; font-family: Fredoka, sans-serif; font-weight: 700; font-size: 17px;
  text-decoration: none; color: var(--ink); background: #a6f07a; border-radius: 12px;
  box-shadow: var(--lift-sm); padding: 8px 16px; white-space: nowrap; transition: transform .1s, filter .1s;
}
.btn:active, .grade:active { transform: scale(.97); filter: brightness(.95); }
.pill {
  display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
  background: #fff; border-radius: 999px; padding: 5px 12px;
}

nav { padding: 18px 0; }
nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: Fredoka, sans-serif; font-weight: 700; font-size: 22px; color: var(--ink); text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand b { color: var(--grass-dark); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-link { font-weight: 800; text-decoration: none; }
.nav-link:hover { text-decoration: underline; }

main { padding: 4px 0 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; color: #475569; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { text-decoration: none; color: var(--grass-dark); }
.crumbs a:hover { text-decoration: underline; }

.hero { margin-bottom: 36px; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; margin: 14px 0 16px; }
.lede { font-size: 19px; color: #1e3a4c; max-width: 760px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.jump a { display: inline-block; text-decoration: none; background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 800; }
.jump a:hover { background: #eaf7d8; }

.game { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 28px; margin-bottom: 28px; scroll-margin-top: 16px; }
.game.has-shot { grid-template-columns: 200px 1fr; }
.art { display: flex; justify-content: center; align-items: flex-start; }
.glyph { display: grid; place-items: center; width: 110px; height: 110px; font-size: 56px; background: #fef3c7; border-radius: 22px; box-shadow: var(--lift-sm); }
.shot { width: 100%; height: auto; aspect-ratio: 400 / 780; background: var(--sky-bottom); border-radius: 24px; box-shadow: var(--lift); }
.game h2 { font-size: 30px; margin-bottom: 6px; }
.tagline { font-size: 18px; color: var(--grass-dark); font-weight: 800; }
.game p { color: #334155; }
.for { font-weight: 900; color: var(--ink); margin-top: 4px; }
.play { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.play span { font-weight: 800; color: #475569; margin-right: 4px; }
.grade {
  display: grid; place-items: center; min-width: 52px; height: 44px; padding: 0 10px; text-decoration: none;
  font-family: Fredoka, sans-serif; font-size: 18px; color: var(--ink); background: #a6f07a;
  border-radius: 12px; box-shadow: var(--lift-sm); transition: transform .1s, filter .1s;
}
.grade:hover, .btn:hover { filter: brightness(1.05); }

.about { padding: 28px; margin: 44px 0; background: #eaf7d8; }
.about h2 { font-size: 26px; margin-bottom: 10px; }
.ticks { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 4px 0 20px; padding: 0; }
.ticks li::before { content: "✓"; color: var(--grass-dark); margin-right: 6px; font-weight: 900; }

.more h2 { font-size: 26px; margin-bottom: 16px; }
.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.skill { display: flex; align-items: center; gap: 16px; padding: 16px 18px; text-decoration: none; transition: transform .1s, filter .1s; }
.skill:hover { transform: translate(-1px, -1px); box-shadow: var(--lift); }
.skill:active { transform: scale(.98); filter: brightness(.97); }
.skill-glyph { display: grid; place-items: center; flex: none; width: 56px; height: 56px; font-size: 28px; border-radius: 14px; }
.skill strong { display: block; font-family: Fredoka, sans-serif; font-size: 20px; color: var(--ink); }
.skill small { display: block; margin-top: 2px; font-size: 14px; color: #475569; line-height: 1.4; }
.skill-grid.big .skill-glyph { width: 68px; height: 68px; font-size: 34px; }
.skill-grid.big strong { font-size: 22px; }

/* Pages by grade, and the game cards on guides */
.by-skill { margin-bottom: 36px; scroll-margin-top: 16px; }
.by-skill h2 { font-size: 26px; margin-bottom: 14px; }
.by-skill h2 a { text-decoration: none; }
.by-skill h2 a:hover { text-decoration: underline; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mini { display: flex; gap: 16px; padding: 18px; }
.mini-glyph { display: grid; place-items: center; flex: none; width: 56px; height: 56px; font-size: 30px; background: #fef3c7; border-radius: 14px; }
.mini h3 { font-size: 21px; margin-bottom: 4px; }
.mini p { color: #334155; margin-bottom: 10px; }
.mini-links { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 4px 0 0; }
.mini-links a:not(.btn) { color: var(--grass-dark); font-weight: 800; }
.btn.small { font-size: 16px; padding: 6px 14px; }
.grades a { font-family: Fredoka, sans-serif; font-size: 17px; }

/* Guides */
.guide { padding: 32px 36px; margin-bottom: 40px; max-width: 820px; }
.guide h2 { font-size: 26px; margin: 28px 0 10px; }
.guide h2:first-child { margin-top: 0; }
.guide p, .guide li { font-size: 17px; color: #1e293b; line-height: 1.65; }
.guide ul, .guide ol { margin: 0 0 12px; padding-left: 24px; }
.guide li { margin-bottom: 6px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.guide-card { display: block; padding: 18px 20px; text-decoration: none; transition: transform .1s, filter .1s; }
.guide-card:hover { transform: translate(-1px, -1px); box-shadow: var(--lift); }
.guide-card strong { display: block; font-family: Fredoka, sans-serif; font-size: 20px; color: var(--ink); line-height: 1.2; }
.guide-card small { display: block; margin-top: 6px; font-size: 14px; color: #475569; }

footer { background: var(--grass-dark); color: #e7f8de; padding: 24px 0; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { text-decoration: none; margin-left: 18px; }
footer a:first-child { margin-left: 0; }
footer a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .game, .game.has-shot { grid-template-columns: 1fr; gap: 18px; padding: 22px 18px; }
  .art { justify-content: flex-start; }
  .game.has-shot .art { justify-content: center; }
  .shot { width: min(220px, 70%); }
  .glyph { width: 84px; height: 84px; font-size: 44px; }
  .skill-grid, .mini-grid, .guide-grid { grid-template-columns: 1fr; }
  .guide { padding: 24px 20px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav-link { display: none; }
  .game h2 { font-size: 26px; }
  .lede { font-size: 17px; }
  .about { padding: 22px 18px; }
}
