/* Oya RUN! website. The game's UI kit (scripts/ui/kit/kit_palette.gd): the bus's
   yellow with its black stripe, kiosk green, market-umbrella blue, pepper red,
   signboard cream on an indigo (adire) board, and ink for every edge. */

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin-wght.bd15d2e49c.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a1020;
  --cream: #fff4d6;
  --yellow: #ffc72c;
  --yellow-deep: #f5b414;
  --yellow-lip: #c4800a;
  --green: #3dbe54;
  --blue: #2f86e0;
  --blue-lip: #1d5ea8;
  --red: #eb4a3c;
  --board: #242c64;
  --board-top: #343e84;
  --well: #161c46;
  --row: #2e3776;
  --gold: #f2c14e;
  --teal: #53c7b4;
  --muted: rgba(255, 244, 214, 0.8);
  --paper: #fff4d6;
  --paper-edge: #e9d9ac;
  --radius: 26px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --font: "Nunito", ui-rounded, "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --outline: 0 2px 0 var(--ink), 2px 0 0 var(--ink), 0 -2px 0 var(--ink), -2px 0 0 var(--ink),
    2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--well);
  color: var(--cream);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  overflow-x: hidden;
}

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

picture {
  display: contents;
}

a {
  color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--cream);
}

:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 900;
  letter-spacing: 0.005em;
}

p {
  margin: 0 0 1em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons: chunky, inked, with a lip (the kit's PLAY button) ---------- */

.btn {
  --face: var(--yellow);
  --face-low: var(--yellow-deep);
  --lip: var(--yellow-lip);
  --words: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.7em 1.4em;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: linear-gradient(var(--face) 0 55%, var(--face-low));
  color: var(--words);
  font: 900 1.125rem/1 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.55), 0 5px 0 var(--lip), 0 8px 0 var(--ink);
  transform: translateY(0);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn:hover {
  color: var(--words);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(5px);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 0 0 var(--lip), 0 3px 0 var(--ink);
}

.btn:focus-visible {
  outline-color: var(--cream);
}

.btn--blue {
  --face: #4a9bf0;
  --face-low: var(--blue);
  --lip: var(--blue-lip);
  --words: var(--cream);
  text-shadow: var(--outline);
}

.btn__play {
  width: 0;
  height: 0;
  border-left: 0.75em solid currentColor;
  border-top: 0.45em solid transparent;
  border-bottom: 0.45em solid transparent;
}

/* ---------- The street's kerb, as a divider ---------- */

.kerb {
  height: 30px;
  border-top: 6px solid #d8c294;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 110px, #2b2d44 110px 220px);
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, 0.28), inset 0 4px 0 rgba(255, 255, 255, 0.18);
}

/* ---------- Ribbon heading (the route map's "CHOOSE A LEVEL") ---------- */

.ribbon {
  position: relative;
  display: inline-block;
  margin: 0 auto 1.6rem;
  padding: 0.35em 1.1em 0.4em;
  background: linear-gradient(#ffd451, var(--yellow) 60%, var(--yellow-deep));
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 10px;
  font-size: clamp(1.15rem, 3.4vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.5), 0 5px 0 var(--ink);
  z-index: 1;
}

.ribbon::before,
.ribbon::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 26px;
  height: 100%;
  background: var(--yellow-lip);
  border: 3px solid var(--ink);
  z-index: -1;
}

.ribbon::before {
  left: -20px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 38% 50%);
}

.ribbon::after {
  right: -20px;
  clip-path: polygon(0 0, 100% 0, 62% 50%, 100% 100%, 0 100%);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.section-head .lede {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.125rem;
}

/* ---------- Board: an indigo signboard with a cream frame ---------- */

.board {
  position: relative;
  background: linear-gradient(var(--board-top), var(--board) 140px);
  border: 5px solid var(--cream);
  border-radius: var(--radius);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35);
  padding: clamp(20px, 4vw, 40px);
}

.board::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 10px;
  height: 8px;
  background: radial-gradient(circle, var(--gold) 0 2px, transparent 2.6px) 0 50% / 18px 8px repeat-x;
  opacity: 0.75;
}

.kicker {
  display: block;
  margin-bottom: 0.4em;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.title-yellow {
  color: var(--yellow);
  text-shadow: 0 3px 0 var(--ink);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.2em 0 0;
  padding: 0;
  list-style: none;
}

.pills li {
  padding: 0.25em 0.8em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 3px 0 var(--ink);
}

/* ---------- Site header ---------- */

.topbar {
  position: relative;
  z-index: 5;
  background: var(--board);
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.topbar__home img {
  width: 116px;
}

.topbar--over {
  position: absolute;
  inset: 0 0 auto;
  background: none;
  border: 0;
  box-shadow: none;
}

.topbar nav {
  margin-left: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding: 10px 4px;
  color: var(--cream);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: var(--outline);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--yellow);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #3b6fc4;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 100%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(22, 28, 70, 0.82) 0%, rgba(22, 28, 70, 0.55) 38%, rgba(22, 28, 70, 0) 62%);
}

.hero__content {
  padding-top: 92px;
  padding-bottom: 140px;
}

.hero__logo {
  width: min(560px, 82vw);
  margin: 0 0 6px -10px;
  filter: drop-shadow(0 6px 0 rgba(26, 16, 32, 0.35));
}

.hero__line {
  max-width: 30rem;
  margin: 0 0 0.6em;
  font-size: clamp(1.6rem, 4.4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--cream);
  text-shadow: var(--outline), 0 5px 0 var(--ink);
}

.hero__sub {
  max-width: 30rem;
  margin-bottom: 1.6em;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cream);
  text-shadow: 0 2px 0 var(--ink), 0 0 12px rgba(22, 28, 70, 0.9);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.soon {
  display: inline-flex;
  flex-direction: column;
  padding: 0.55em 1em;
  background: var(--well);
  border: 3px solid var(--cream);
  border-radius: 16px;
  box-shadow: 0 5px 0 var(--ink);
  font-weight: 900;
  line-height: 1.25;
}

.soon small {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__tunde {
  position: absolute;
  right: max(0px, calc((100vw - var(--max)) / 2 - 40px));
  bottom: 0;
  width: clamp(200px, 30vw, 400px);
  z-index: 0;
  pointer-events: none;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(56px, 9vw, 104px) 0;
}

.section--board {
  background: var(--board);
}

.intro {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.intro__text h2 {
  font-size: clamp(1.8rem, 4.6vw, 2.9rem);
}

.intro__text p {
  font-size: 1.125rem;
}

.shot {
  margin: 0;
  border: 5px solid var(--cream);
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35);
}

.shot img {
  width: 100%;
}

.shot figcaption {
  padding: 10px 14px 12px;
  background: var(--board);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

/* Feature rows */

.features {
  display: grid;
  gap: clamp(32px, 6vw, 64px);
}

.feature {
  display: grid;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
}

.feature h3 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.feature p {
  font-size: 1.0625rem;
}

.feature__art {
  position: relative;
}

.feature__art--map img {
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.35));
}

/* Round character badges (the route map's stops) */

.badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 20px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.badge {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

.badge__ring {
  display: block;
  width: 100%;
  max-width: 128px;
  aspect-ratio: 1;
  margin: 0 auto 8px;
  border-radius: 50%;
  border: 5px solid var(--cream);
  outline: 4px solid var(--yellow);
  background: radial-gradient(circle at 50% 35%, #8ec3ff, #3b6fc4 70%);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.badge__ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.minigames {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: end;
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.minigames .badge__ring {
  max-width: 150px;
}

@media (min-width: 760px) {
  .minigames li:nth-child(2) {
    transform: translateY(-22px);
  }
}

.minigames .badge__ring--printer {
  background: radial-gradient(circle at 50% 35%, #ffe08a, #e89a1d 72%);
}

.minigames .badge__ring--printer img {
  object-fit: contain;
  padding: 12%;
}

/* Gallery */

.gallery {
  display: grid;
  gap: 24px;
}

/* Coming soon band */

.soon-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(#3b6fc4, #6b8fd6 60%, #f2b45a);
  color: var(--cream);
  text-align: center;
}

.soon-band .wrap {
  position: relative;
  padding-top: clamp(56px, 8vw, 88px);
  padding-bottom: 0;
}

.soon-band h2 {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  text-shadow: var(--outline), 0 5px 0 var(--ink);
}

.soon-band p {
  max-width: 34rem;
  margin: 0 auto 1.4em;
  font-size: 1.125rem;
  font-weight: 700;
  text-shadow: 0 2px 0 var(--ink);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.stores li {
  padding: 0.5em 1.1em;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--well);
  color: var(--cream);
  font-weight: 900;
  box-shadow: 0 5px 0 var(--ink);
}

.stores li span {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.soon-band__danfo {
  width: min(560px, 86vw);
  margin: 28px auto -6px;
  position: relative;
  z-index: 1;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: var(--muted);
  font-size: 0.95rem;
  padding: 36px 0 44px;
}

.footer .wrap {
  display: grid;
  gap: 18px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links a {
  display: inline-block;
  padding: 8px 0;
  color: var(--cream);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--yellow);
}

.footer p {
  margin: 0;
}

/* ---------- Document pages (privacy, terms, support): a cream paper signboard ---------- */

.doc-head {
  text-align: center;
  padding: clamp(36px, 6vw, 64px) 0 0;
}

.doc-head p {
  color: var(--muted);
  margin: 0 0 1.4rem;
}

.paper {
  max-width: 48rem;
  margin: 0 auto clamp(48px, 8vw, 88px);
  padding: clamp(22px, 5vw, 48px);
  background: var(--paper);
  color: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.4);
  font-size: 1.05rem;
  line-height: 1.65;
}

.paper :focus-visible {
  outline-color: var(--blue-lip);
}

.paper a {
  color: #1c4f96;
}

.paper a:hover {
  color: var(--ink);
}

.paper h2 {
  margin-top: 2em;
  padding-top: 0.6em;
  border-top: 3px dotted var(--paper-edge);
  font-size: 1.5rem;
}

.paper h2:first-of-type {
  margin-top: 1.2em;
}

.paper h3 {
  margin-top: 1.4em;
  font-size: 1.15rem;
}

.paper ul,
.paper ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.paper li {
  margin-bottom: 0.4em;
}

.paper table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2em;
  font-size: 0.97rem;
}

.paper th,
.paper td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 2px solid var(--paper-edge);
}

.paper th {
  background: #f8e7b8;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.2em;
}

.table-scroll table {
  min-width: 34rem;
  margin: 0;
}

.paper .summary {
  padding: 18px 20px;
  margin: 0 0 1.4em;
  background: #fbe9b5;
  border: 3px solid var(--ink);
  border-radius: 16px;
}

.paper .summary ul {
  margin: 0;
}

.paper .summary h2 {
  margin-top: 0;
  padding-top: 0;
  border: 0;
}

.placeholder {
  padding: 0 0.3em;
  color: var(--ink);
  background: #ffd9d2;
  border-radius: 4px;
  font-weight: 800;
}

.toc {
  padding: 16px 20px;
  margin: 0 0 1.4em;
  border: 2px dashed var(--paper-edge);
  border-radius: 14px;
}

.toc ol {
  margin: 0;
  columns: 2 16rem;
}

.faq details {
  border: 3px solid var(--ink);
  border-radius: 16px;
  margin: 0 0 14px;
  background: #fff9e9;
  box-shadow: 0 4px 0 var(--ink);
}

.faq summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 900;
  list-style-position: inside;
}

.faq details[open] summary {
  border-bottom: 2px dotted var(--paper-edge);
}

.faq .answer {
  padding: 14px 18px 4px;
}

.contact-card {
  margin: 1.6em 0 0;
  padding: 18px 20px;
  background: var(--board);
  color: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 16px;
}

.contact-card p:last-child {
  margin: 0;
}

.contact-card a {
  color: var(--yellow);
}

.contact-card a:hover {
  color: var(--cream);
}

/* ---------- 404 ---------- */

.lost {
  text-align: center;
  padding: clamp(48px, 9vw, 96px) 0;
}

.lost .badge__ring {
  width: 180px;
  max-width: 180px;
  margin-bottom: 26px;
}

.lost h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: var(--yellow);
  text-shadow: var(--outline), 0 5px 0 var(--ink);
}

.lost p {
  max-width: 30rem;
  margin: 0 auto 1.6em;
  font-size: 1.125rem;
}

/* ---------- Wider screens ---------- */

@media (min-width: 760px) {
  .intro {
    grid-template-columns: 1.05fr 1fr;
  }

  .feature {
    grid-template-columns: 1fr 1fr;
  }

  .feature:nth-child(even) .feature__art {
    order: 2;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (max-width: 699px) {
  .hero {
    min-height: 0;
    align-items: start;
  }

  .hero__bg {
    object-position: 50% 100%;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(22, 28, 70, 0.72) 0%, rgba(22, 28, 70, 0.45) 46%, rgba(22, 28, 70, 0) 70%);
  }

  .hero__content {
    padding-top: 84px;
    padding-bottom: 300px;
  }

  .hero__tunde {
    width: 230px;
    right: -8px;
  }

  .nav {
    flex-wrap: nowrap;
    gap: 4px 14px;
  }

  .nav a {
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .topbar__home img {
    width: 92px;
  }
}

/* ---------- Motion (light, like the menus: the street drifts, PLAY breathes) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__bg {
    animation: drift 40s ease-in-out infinite alternate;
  }

  .hero .btn {
    animation: breathe 2.6s ease-in-out infinite;
  }

  .hero__tunde {
    animation: arrive 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
  }

  @keyframes drift {
    from {
      transform: scale(1.06) translateX(1.5%);
    }
    to {
      transform: scale(1.06) translateX(-1.5%);
    }
  }

  @keyframes breathe {
    0%,
    100% {
      scale: 1;
    }
    50% {
      scale: 1.04;
    }
  }

  @keyframes arrive {
    from {
      transform: translateY(40%);
      opacity: 0;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
