:root {
  --ink: #171A21;
  --soft: #4A5161;
  --yellow: #FFC928;
  --blue: #0B5ED7;
  --blue-deep: #083F92;
  --sky: #EAF3FF;
  --line: #D9E0EA;
  --white: #fff;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 500 1.125rem/1.6 ui-rounded, "SF Pro Rounded", Nunito, "Segoe UI", system-ui, sans-serif;
}
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; max-width: 60ch; }
a { color: var(--blue); font-weight: 700; text-underline-offset: .2em; }
img, svg { max-width: 100%; }
:focus-visible { outline: 4px solid var(--blue); outline-offset: 4px; border-radius: 8px; }
footer :focus-visible { outline-color: var(--yellow); }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.section { padding-block: 72px; }
.tint { background: var(--sky); }
.lead { font-size: 1.3rem; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 5; padding: 10px 16px; background: var(--white); }
.skip:focus { top: 16px; }

/* Header */
.bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 14px; }
.brand img { display: block; height: 52px; width: auto; }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a { padding: 10px 16px; border-radius: 14px; color: inherit; text-decoration: none; }
header nav a:hover { background: var(--sky); }
header nav a[aria-current] { background: var(--ink); color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 16px 28px; border-radius: 18px;
  background: var(--blue); color: var(--white);
  font-size: 1.2rem; font-weight: 800; text-decoration: none;
  box-shadow: 0 6px 0 var(--blue-deep);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--blue-deep); }
.btn:active { transform: translateY(6px); box-shadow: none; }
.btn.small { padding: 12px 20px; font-size: 1.05rem; }
.btn.play { padding: 22px 36px; font-size: 1.5rem; }
.btn.off { background: var(--soft); box-shadow: none; transform: none; }
.tri { border-left: 20px solid currentColor; border-block: 13px solid transparent; }
.hint { margin: 18px 0 0; font-size: 1rem; }

/* Home hero */
.hero, .game-hero { background: var(--yellow); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding-block: 64px; }
.hero { overflow: hidden; }
.hero .split { padding-bottom: 0; }
.hero-copy { padding-bottom: 64px; }
/* The big face rises out of the bottom edge of the hero */
.face { display: block; align-self: end; width: 100%; max-width: 440px; margin: 0 auto -6px; }

/* Game cards */
.game-list { display: grid; gap: 28px; }
.game-card {
  display: grid; grid-template-columns: 2fr 3fr; overflow: hidden;
  border-radius: var(--radius); background: var(--ink); color: var(--white);
  font-weight: inherit; text-decoration: none;
}
.game-art { display: grid; place-items: center; min-height: 260px; padding: 28px; background: var(--blue); }
.game-art .wheel { width: min(230px, 100%); transition: transform .5s; }
.game-card:hover .wheel { transform: rotate(12deg); }
.game-info { align-self: center; padding: 36px; }
.game-info h3 { margin-top: 14px; font-size: clamp(2rem, 4vw, 3rem); }
.tag { display: inline-block; padding: 4px 14px; border-radius: 10px; background: var(--yellow); color: var(--ink); font-size: 1rem; font-weight: 800; }
.more { color: var(--yellow); font-weight: 800; text-decoration: underline; text-underline-offset: .2em; }
.cover { width: 100%; border-radius: 16px; }
.face-art { width: min(260px, 100%); border-radius: 32px; }
.empty { padding: 32px; border: 3px dashed #A9B8CC; border-radius: var(--radius); }

/* News and about */
.news-item { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding-block: 28px; border-top: 2px solid var(--line); }
.news-item p:last-child { margin-bottom: 0; }
.date { margin: 0; color: var(--blue); font-weight: 800; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.kinds { margin: 0; padding: 0; list-style: none; }
.kinds li { padding-block: 18px; border-top: 2px solid #C5D9F3; }
.kinds li:first-child { padding-top: 0; border: 0; }
.kinds p { margin: 0; }
.kinds h3 { margin-bottom: .2em; }

/* Inner pages */
.page-head { padding-block: 64px 16px; }

/* Game page */
.game-hero h1 { font-size: clamp(3.2rem, 10vw, 7rem); line-height: .95; }
.back { display: inline-block; margin-bottom: 24px; color: var(--ink); }
.hero-art { text-align: center; }
.hero-art p { margin-inline: auto; }
.spin { width: min(400px, 100%); padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.spin .wheel { display: block; width: 100%; }
.wheel-turn { transform-origin: 200px 200px; transition: transform 3s cubic-bezier(.15, .8, .2, 1); }

.age { background: var(--white); border: 2px solid var(--ink); }
.ink-link { margin-left: 10px; color: var(--ink); }
.features { margin: 0; padding-left: 1.2em; }
.features li { margin-bottom: 8px; padding-left: 4px; }
.features li::marker { color: var(--blue); }

/* Timeline */
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 170px 1fr; gap: 88px; padding-bottom: 44px; }
.timeline li::before { content: ""; position: absolute; left: 211px; top: 6px; bottom: -6px; width: 6px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 200px; top: 2px; width: 28px; height: 28px; border: 6px solid var(--ink); border-radius: 9px; background: var(--yellow); }
.timeline .date { text-align: right; }
.stop p { margin: 0; }
.sample { display: inline-block; padding: 3px 9px; border-radius: 8px; background: #FFE9A3; color: #5A4300; font-size: .85rem; font-weight: 700; line-height: 1.3; vertical-align: middle; }

/* Goals */
.goals { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 24px; }
.column { overflow: hidden; border-radius: var(--radius); background: var(--white); }
.column > h3 { margin: 0; padding: 18px 24px; background: var(--yellow); }
.planned > h3 { background: var(--blue); color: var(--white); }
.completed > h3 { background: #14704A; color: var(--white); }
.column ul { margin: 0; padding: 0 24px; list-style: none; }
.column li { padding-block: 22px; border-top: 2px solid var(--line); }
.column li:first-child { border: 0; }
.column li p { margin: 0; }
.column > p { padding: 22px 24px; margin: 0; }

/* Credits */
.credit-group { padding-block: 36px; border-top: 2px solid var(--line); }
.credit-group:first-child { border: 0; }
.people { margin: 0; }
.people div { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 20px; padding-block: 8px; }
.people dt { color: var(--soft); }
.people dd { margin: 0; font-weight: 800; }

/* Footer */
footer { padding-block: 48px; background: var(--ink); color: var(--white); }
.foot { display: grid; gap: 20px; justify-items: start; }
.foot img { height: 60px; width: auto; }
.foot nav { margin-left: -16px; }
.foot nav a:hover { text-decoration: underline; }
.foot p { margin: 0; color: #D5DBE6; font-size: 1rem; }

@media (max-width: 780px) {
  .section { padding-block: 52px; }
  .split, .two, .goals, .game-card { grid-template-columns: minmax(0, 1fr); }
  .split { gap: 32px; padding-block: 44px; }
  .hero-copy { padding-bottom: 0; }
  .face { max-width: 280px; }
  .game-info { padding: 28px; }
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .bar { justify-content: center; }
  header nav { flex-wrap: nowrap; gap: 0; }
  header nav a { padding: 10px clamp(6px, 2.6vw, 16px); font-size: clamp(.95rem, 4.4vw, 1.125rem); }
  .spin { width: min(320px, 100%); }
  .btn.play { width: 100%; padding-inline: 20px; font-size: 1.3rem; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 52px; }
  .timeline li::before { left: 11px; }
  .timeline li::after { left: 0; }
  .timeline .date { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
