@font-face {
  font-family: "Alte Haas";
  src: url("AlteHaasGroteskRegular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Alte Haas";
  src: url("AlteHaasGroteskBold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

/* The game's own colours. */
:root {
  --sky: #bfe3fb;
  --ink: #4a3a6b;
  --ink-soft: #5f5578;
  --ribbon: #c974c9;
  --ribbon-dark: #a550a8;
  --meadow: #a9d46b;
  --meadow-dark: #5f8f2a;
  --gold: #ffc83d;
  --pink: #f2708a;
  --right: #3f9a3d;
  --wrong: #d94f4f;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: "Alte Haas", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* Site header, the same on every page. */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
}

.top nav {
  display: flex;
  gap: 1.25rem;
}

.top nav a {
  text-underline-offset: 0.2em;
}

/* Landing page: the question is the hero. */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.title {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.25rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.title span {
  display: inline-block;
  text-shadow: 0 0.05em 0 rgb(74 58 107 / 0.25);
}

.pitch {
  max-width: 28rem;
  margin: 1.25rem 0 1.75rem;
  font-size: 1.3rem;
  line-height: 1.4;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store {
  display: flex;
  flex-direction: column;
  min-width: 10.5rem;
  padding: 0.6rem 1.25rem;
  border: 3px solid;
  border-radius: 1rem;
  line-height: 1.2;
}

.store small {
  font-size: 0.85rem;
}

.store strong {
  font-size: 1.25rem;
}

.stores {
  align-items: center;
}

.store {
  background: rgb(255 255 255 / 0.55);
  border-style: dashed;
  border-color: var(--ink-soft);
  color: var(--ink);
}

/* Official badges, shown unchanged. Google's file includes its own clear space. */
.badge {
  flex: none;
}

.badge img {
  width: auto;
  max-width: none;
  height: 3.25rem;
}

.badge-android img {
  height: 4.75rem;
  margin: -0.75rem;
}

/* Playable question, drawn like the game's dashed cards. */
.play {
  padding: 1.5rem;
  border: 4px solid var(--ribbon-dark);
  border-radius: 1.75rem;
  background: var(--white);
  text-align: center;
}

.play h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.sum {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
}

.sum .box {
  display: grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  border: 4px dashed var(--ribbon);
  border-radius: 1.25rem;
  color: var(--ribbon-dark);
}

.choices {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.choice {
  width: 5.25rem;
  height: 5.25rem;
  border: 4px dashed var(--ink-soft);
  border-radius: 1.1rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 2.5rem;
  font-weight: 700;
  cursor: pointer;
}

.choice:nth-child(1) {
  border-color: #6aaee8;
}
.choice:nth-child(2) {
  border-color: #9bbf3f;
}
.choice:nth-child(3) {
  border-color: #f79a4a;
}

.choice:hover {
  background: #f4f0fb;
}

.choice.is-wrong {
  border-style: solid;
  border-color: var(--wrong);
  color: rgb(74 58 107 / 0.4);
  animation: shake 0.3s;
}

.choice.is-right {
  border-style: solid;
  border-color: var(--right);
  color: var(--right);
}

.reply {
  min-height: 1.6em;
  margin: 1rem 0 0;
  font-weight: 700;
}

.again {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ribbon-dark);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

@keyframes shake {
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

/* Meadow below the sky, as on the game's map. */
.meadow {
  background: var(--meadow);
}

.hill {
  display: block;
  width: 100%;
  height: 3.5rem;
  margin-bottom: -1px;
  fill: var(--meadow);
}

.inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.inner h2 {
  margin: 0 0 1.25rem;
  font-size: 2rem;
  line-height: 1.2;
}

.shots {
  display: flex;
  gap: 1rem;
  margin: 0 -1rem;
  padding: 0 1rem 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.shots figure {
  flex: 0 0 min(30rem, 82vw);
  margin: 0;
  scroll-snap-align: center;
}

.shots img {
  border: 5px solid var(--white);
  border-radius: 1.25rem;
}

.shots figcaption {
  margin-top: 0.4rem;
  font-weight: 700;
}

.games {
  columns: 2;
  column-gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.games li {
  break-inside: avoid;
  padding-bottom: 0.9rem;
}

.games strong {
  display: block;
}

.parents {
  background: var(--white);
}

.parents .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.parents ul {
  margin: 0;
  padding: 0 0 0 1.2rem;
}

.parents li {
  padding-bottom: 0.45rem;
}

.parents li::marker {
  color: var(--ribbon-dark);
}

/* Policy and FAQ pages. */
.doc {
  max-width: 44rem;
  margin: 0 auto 3rem;
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  background: var(--white);
}

.doc h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
}

.doc h2 {
  margin: 2rem 0 0.25rem;
  font-size: 1.3rem;
}

.doc p {
  margin: 0.5rem 0;
}

.updated {
  color: var(--ink-soft);
}

.doc details {
  padding: 0.85rem 0;
  border-bottom: 2px dashed var(--sky);
}

.doc summary {
  font-weight: 700;
  cursor: pointer;
}

.foot {
  background: var(--ink);
  color: var(--white);
}

.foot .inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-bottom: 1.5rem;
}

.foot p {
  margin: 0;
}

.foot a {
  text-underline-offset: 0.2em;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

@media (max-width: 52rem) {
  .hero,
  .parents .inner {
    grid-template-columns: 1fr;
  }

  .games {
    columns: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .choice.is-wrong {
    animation: none;
  }
}
