/* Adventure Bus: the website's one stylesheet. The game's bold-outline look: ink #2B2433, thick
   round outlines, flat fills, one shadow shape per object. No web fonts, no external requests:
   a rounded system font where the device has one, a plain one where it does not. */

:root {
  --ink: #2b2433;
  --sky: #bfe9ff;
  --paper: #fff3dc;
  --white: #ffffff;
  --sun: #ffd23f;
  --sun-side: #f5a623;
  --red: #ff6b6b;
  --red-side: #d94f5c;
  --grass: #7ccf6b;
  --grass-light: #c2e8a6;
  --road: #6b6577;
  --line: 4px;
  --round: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Varela Round",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
/* The focus ring: ink on the light pages, white on the dark road (both above 3:1). */
a:focus-visible, .button:focus-visible, summary:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; }
.road a:focus-visible { outline-color: var(--white); }

img, video { max-width: 100%; height: auto; display: block; }

/* A picture (or the home page's video) framed like a sign. */
.framed { border: 4px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
main { overflow-wrap: break-word; }

/* The header: the logo, and the pages as pill buttons. */
.top { padding: 22px 0 8px; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.logo { display: block; width: 300px; max-width: 72vw; }
.logo img { width: 100%; }
.top nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.top nav a {
  display: inline-block;
  padding: 6px 16px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.top nav a[aria-current="page"] { background: var(--sun); }

/* A card: white, a thick ink outline, rounded, with one hard shadow under it. */
.card {
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: var(--round);
  box-shadow: 0 7px 0 var(--ink);
  padding: 26px 28px;
  margin: 26px 0 34px;
}
.card.paper { background: var(--paper); }
.card.sun { background: #fff7cf; }
/* The short-version box at the top of a long page, inside the page's own card. */
.card.first { margin-top: 0; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; font-weight: 800; }
h1 { font-size: 34px; }
h2 { font-size: 26px; margin-top: 28px; }
h2:first-child, h3:first-child { margin-top: 0; }
h3 { font-size: 20px; margin-top: 22px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
.lead { font-size: 21px; }
.small { font-size: 15px; }
.updated { font-size: 15px; margin-bottom: 18px; }

/* The home page's opening: big words beside the first picture. */
.hero { text-align: center; }
.hero h1 { font-size: 40px; }
.hero .lead { max-width: 640px; margin: 0 auto 20px; }

.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 18px 0 6px; }
.button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--sun);
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 5px 0 var(--ink);
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
}
.button.red { background: var(--red); }

/* The screenshots: each framed like a sign. */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 8px 0 6px; }
.shots figure { margin: 0; }
.shots img {
  border: var(--line) solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 5px 0 var(--ink);
  background: var(--sky);
  width: 100%;
}
.shots figcaption { font-weight: 700; text-align: center; margin-top: 10px; font-size: 17px; }

/* Lists with a green tick disc, as the app's shop has. */
ul.ticks { list-style: none; padding: 0; }
ul.ticks li { position: relative; padding-left: 40px; margin-bottom: 10px; }
ul.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--grass);
}
ul.ticks li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 6px;
  height: 11px;
  border: solid var(--ink);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }

/* Questions on the support page: each a box that opens. */
details {
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  margin: 0 0 14px;
  padding: 0 18px;
}
details[open] { background: var(--paper); }
summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style-position: outside; }
details > :last-child { margin-bottom: 16px; }

/* The seller's details on the legal notice: a label, then the value. */
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 16px; }
dl.facts dt { font-weight: 800; }
dl.facts dd { margin: 0; }

/* The page that is not there: the bus turned round. */
.lost { text-align: center; }
.lost img { width: 220px; margin: 6px auto 18px; transform: scaleX(-1); }

/* The games page: a pill for each road to jump to, then a card per road. */
ul.jump { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 9px; }
ul.jump li { margin: 0; }
ul.jump a {
  display: block;
  padding: 5px 13px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
ul.jump a:hover { background: var(--sun); }
.topic { scroll-margin-top: 14px; }
.topic-head { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 24px; align-items: center; margin-bottom: 22px; }
.topic-head h2 { margin-top: 0; }
.topic-head .small { margin-bottom: 0; }
ul.games { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
ul.games li { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
ul.games img { width: 88px; height: 88px; flex: none; }
ul.games h3 { font-size: 18px; margin: 2px 0 4px; }
ul.games p { margin: 0; font-size: 16px; }
.free {
  display: inline-block;
  margin-left: 6px;
  padding: 0 8px;
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  vertical-align: 2px;
  white-space: nowrap;
}

.placeholder { background: #ffe0e0; border-radius: 4px; padding: 0 3px; }

table { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 2px solid #e6dcc6; }
th { font-weight: 800; }

/* The foot of every page: grass, then a road with its white paint. */
.foot { margin-top: 40px; }
.grass { height: 26px; background: var(--grass-light); border-top: var(--line) solid var(--ink); }
.road {
  background: var(--road);
  border-top: var(--line) solid var(--ink);
  color: var(--white);
  padding: 30px 0 34px;
  position: relative;
}
.road::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--white) 0 46px, transparent 46px 92px);
  opacity: 0.85;
}
.road a { color: var(--white); }
.road ul { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; grid-template-columns: repeat(4, max-content); gap: 8px 30px; font-weight: 700; }
.road li { margin: 0; }
.road a[aria-current="page"] { text-decoration-thickness: 4px; }
.road p { margin: 0 0 6px; font-size: 15px; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .card { padding: 20px 18px; margin: 20px 0 28px; }
  h1, .hero h1 { font-size: 30px; }
  h2 { font-size: 23px; }
  .shots, .two { grid-template-columns: 1fr; }
  .top .wrap { justify-content: center; }
  .top nav ul { gap: 7px; justify-content: center; }
  .top nav a { padding: 5px 11px; font-size: 15px; border-width: 3px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border-bottom: 0; padding: 2px 0; }
  tr { border-bottom: 2px solid #e6dcc6; padding: 8px 0; }
  td:first-child { font-weight: 800; }
  .road ul { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  dl.facts { grid-template-columns: 1fr; gap: 0; }
  dl.facts dd { margin-bottom: 10px; }
  .topic-head, ul.games { grid-template-columns: minmax(0, 1fr); }
  .topic-head { gap: 16px; }
  ul.games { gap: 16px; }
  ul.games img { width: 72px; height: 72px; }
  ul.jump { gap: 7px; }
  ul.jump a { padding: 4px 11px; font-size: 15px; }
}

/* The smallest phones (320 px): the four header pills still on one line. */
@media (max-width: 350px) {
  .top nav ul { gap: 5px; }
  .top nav a { padding: 4px 8px; font-size: 14px; }
}

@media print {
  body { background: var(--white); }
  .card { box-shadow: none; }
  .top nav, .road nav, .foot .grass, .road::before, ul.jump { display: none; }
  ul.games li { break-inside: avoid; }
  .road { background: none; color: var(--ink); }
  .road a { color: var(--ink); }
}
