@font-face {
  font-family: 'Lilita One';
  src: url('/fonts/LilitaOne-Regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #2b2350;
  --ink-soft: #5a4d7a;
  --text: #3a3157;
  --muted: #6b6288;
  --yellow-1: #ffe45c;
  --yellow-2: #ffb01f;
  --yellow-lip: #d9790b;
  --yellow-text: #8e464c;
  --green-1: #9be65c;
  --green-2: #3cb44b;
  --green-lip: #267358;
  --blue-1: #6fd0ff;
  --blue-2: #2385f0;
  --blue-lip: #1b4fa8;
  --purple-1: #c08cff;
  --purple-2: #7a32f0;
  --purple-lip: #4a0cb3;
  --pink-1: #ff9ccb;
  --pink-2: #ff5fa8;
  --display: 'Lilita One', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  --body:
    system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: #eef9ff;
  background-image:
    url('/images/sky.svg'),
    linear-gradient(
      180deg,
      #38b0ff 0,
      #7fd0ff 380px,
      #c6edff 820px,
      #eef9ff 1300px
    );
  background-repeat: repeat-x, no-repeat;
  background-position:
    top center,
    top center;
  background-size:
    1600px auto,
    100% 100%;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue-2);
}

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

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 18px;
  font-family: var(--display);
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 14px;
}

.skip-link:focus {
  top: 16px;
}

/* White display text with the game's dark outline and drop. */
.outlined {
  --o: 3px;
  --d: 6px;
  color: #fff;
  text-shadow:
    calc(var(--o) * -1) calc(var(--o) * -1) 0 var(--ink),
    0 calc(var(--o) * -1) 0 var(--ink),
    var(--o) calc(var(--o) * -1) 0 var(--ink),
    calc(var(--o) * -1) 0 0 var(--ink),
    var(--o) 0 0 var(--ink),
    calc(var(--o) * -1) var(--o) 0 var(--ink),
    0 var(--o) 0 var(--ink),
    var(--o) var(--o) 0 var(--ink),
    0 var(--d) 0 var(--ink);
}

/* Header */

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding-block: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-radius: 18px;
}

.brand img {
  width: 54px;
  height: 54px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--ink);
}

.brand-name {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
  color: var(--yellow-1);
}

.brand-tag {
  --o: 2px;
  --d: 3px;
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav a {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  padding: 7px 18px 8px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.site-nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
}

.site-nav a:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}

.site-nav a[aria-current='page'] {
  color: var(--yellow-text);
  background: linear-gradient(180deg, var(--yellow-1), var(--yellow-2));
}

@media (max-width: 600px) {
  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1;
    padding-inline: 8px;
    font-size: 16px;
  }
}

/* Buttons */

.btn {
  --face-1: var(--yellow-1);
  --face-2: var(--yellow-2);
  --lip: var(--yellow-lip);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 21px;
  line-height: 1;
  color: var(--yellow-text);
  text-decoration: none;
  padding: 15px 30px 18px;
  background: linear-gradient(180deg, var(--face-1), var(--face-2));
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow:
    inset 0 -5px 0 var(--lip),
    inset 0 3px 0 rgb(255 255 255 / 0.55),
    0 4px 0 var(--ink);
  cursor: pointer;
  transition:
    transform 0.12s,
    box-shadow 0.12s,
    filter 0.12s;
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 -2px 0 var(--lip),
    inset 0 3px 0 rgb(255 255 255 / 0.55),
    0 1px 0 var(--ink);
}

/* Main areas */

main {
  position: relative;
  flex: 1;
  padding-bottom: 110px;
}

.section-title {
  --o: 4px;
  --d: 7px;
  margin: 0 0 28px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.1;
  text-align: center;
}

/* Home */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 40px;
  padding-block: 20px 64px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 16px 7px;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.2;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
  transform: rotate(-2deg);
}

.hero-title {
  --o: 5px;
  --d: 10px;
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(60px, 9vw, 104px);
  line-height: 0.95;
  color: var(--yellow-1);
}

.hero-title .outlined {
  --o: 4px;
  --d: 7px;
  display: block;
  margin-top: 12px;
  font-size: 0.48em;
}

.lead {
  max-width: 34em;
  margin: 26px 0 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  --chip-1: var(--yellow-1);
  --chip-2: var(--yellow-2);
  padding: 6px 15px 7px;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.2;
  color: var(--ink);
  background: linear-gradient(180deg, var(--chip-1), var(--chip-2));
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink);
}

.chip-green {
  --chip-1: #c6f59b;
  --chip-2: #8fdc5c;
}

.chip-pink {
  --chip-1: #ffc5e2;
  --chip-2: #ff8fc3;
}

.chip-blue {
  --chip-1: #c2ecff;
  --chip-2: #7fd0ff;
}

.hero-art {
  margin: 0;
  justify-self: center;
  width: min(100%, 470px);
  animation: float 7s ease-in-out infinite;
}

.hero-art img {
  width: 100%;
  height: auto;
  border: 6px solid #fff;
  border-radius: 34px;
  box-shadow:
    0 0 0 4px var(--ink),
    0 14px 0 4px var(--ink);
}

@keyframes float {
  0%,
  100% {
    transform: rotate(2deg) translateY(0);
  }

  50% {
    transform: rotate(1deg) translateY(-10px);
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 8px;
    text-align: center;
  }

  .lead {
    margin-inline: auto;
  }

  .chips {
    justify-content: center;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.card {
  --band-1: var(--blue-1);
  --band-2: var(--blue-2);
  --accent: var(--blue-2);
  display: flex;
  flex-direction: column;
  padding: 52px 26px 26px;
  color: var(--text);
  text-decoration: none;
  background:
    radial-gradient(circle, rgb(255 255 255 / 0.3) 2px, transparent 2.6px) 0 0 /
      16px 16px,
    linear-gradient(var(--ink), var(--ink)) 0 94px / 100% 4px no-repeat,
    linear-gradient(135deg, var(--band-1), var(--band-2)) 0 0 / 100% 94px
      no-repeat,
    #fff;
  border: 4px solid var(--ink);
  border-radius: 30px;
  box-shadow: 0 8px 0 var(--ink);
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}

.card:hover {
  transform: translateY(-4px) rotate(-0.6deg);
  box-shadow: 0 12px 0 var(--ink);
}

.card-purple {
  --band-1: var(--purple-1);
  --band-2: var(--purple-2);
  --accent: var(--purple-2);
}

.card-green {
  --band-1: var(--green-1);
  --band-2: var(--green-2);
  --accent: #23964a;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 18px;
  color: var(--accent);
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 4px 0 var(--ink);
}

.card-icon svg {
  width: 44px;
  height: 44px;
}

.card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.15;
  color: var(--ink);
}

.card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.card-cta {
  margin-top: auto;
  font-family: var(--display);
  font-size: 19px;
  color: var(--accent);
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin-inline: auto;
  }
}

/* Inner pages */

.page-head {
  padding: 18px 0 34px;
  text-align: center;
}

.banner {
  --face-1: var(--blue-1);
  --face-2: var(--blue-2);
  --lip: var(--blue-lip);
  --o: 4px;
  --d: 6px;
  display: inline-block;
  margin: 0;
  padding: 14px 38px 20px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 7vw, 54px);
  line-height: 1.05;
  background: linear-gradient(180deg, var(--face-1), var(--face-2));
  border: 4px solid var(--ink);
  border-radius: 26px;
  box-shadow:
    inset 0 -7px 0 var(--lip),
    inset 0 4px 0 rgb(255 255 255 / 0.4),
    0 8px 0 var(--ink);
}

.banner-purple {
  --face-1: var(--purple-1);
  --face-2: var(--purple-2);
  --lip: var(--purple-lip);
}

.banner-green {
  --face-1: var(--green-1);
  --face-2: var(--green-2);
  --lip: var(--green-lip);
}

.banner-pink {
  --face-1: var(--pink-1);
  --face-2: var(--pink-2);
  --lip: #b8246b;
}

.page-intro {
  max-width: 36em;
  margin: 26px auto 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.updated {
  width: fit-content;
  margin: 24px auto 0;
  padding: 4px 16px 5px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
}

.paper {
  padding: clamp(22px, 5vw, 54px);
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 32px;
  box-shadow: 0 10px 0 var(--ink);
}

.prose {
  max-width: 880px;
  margin-inline: auto;
  counter-reset: section;
}

.prose h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 42px 0 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 4vw, 29px);
  line-height: 1.15;
  color: var(--ink);
}

.prose > h2::before {
  counter-increment: section;
  content: counter(section);
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 21px;
  color: var(--yellow-text);
  background: linear-gradient(180deg, var(--yellow-1), var(--yellow-2));
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 3px 0 var(--ink);
}

.prose h3 {
  margin: 24px 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.prose p,
.prose ul {
  margin: 0 0 14px;
}

.prose ul {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 6px;
}

.prose li::marker {
  color: var(--blue-2);
}

.prose a {
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.prose strong {
  color: var(--ink);
}

.summary {
  padding: 22px clamp(18px, 4vw, 30px) 10px;
  background: #fff6d6;
  border: 3px solid var(--ink);
  border-radius: 24px;
}

.summary h2 {
  margin-top: 0;
}

.checks {
  padding: 0 !important;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--ink);
}

.checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  background: var(--green-2);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

/* Support */

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: 30px;
}

@media (max-width: 920px) {
  .support-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 680px;
    margin-inline: auto;
  }
}

.panel-title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  color: var(--ink);
}

.panel-intro {
  margin: 0 0 22px;
  color: var(--muted);
}

.contact-email {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 14px 18px;
  container-type: inline-size;
  font-family: var(--display);
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  background: #eaf6ff;
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 5px 0 var(--ink);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.contact-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--ink);
}

/* The address is about 12.1em wide in Lilita One; it shrinks to stay on one line. */
.contact-address {
  font-size: min(28px, calc((100cqi - 66px) / 12.4));
  white-space: nowrap;
}

.contact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  background: linear-gradient(180deg, var(--blue-1), var(--blue-2));
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.contact-icon svg {
  width: 28px;
  height: 28px;
}

.contact-subtitle {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.contact .checks {
  margin: 0 0 26px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.panel-note {
  flex: 1 1 220px;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.panel-note a {
  font-weight: 700;
}

@media (max-width: 560px) {
  .contact-email {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .contact-address {
    font-size: min(24px, calc(100cqi / 12.4));
  }

  .contact-actions .btn {
    width: 100%;
  }
}

.faq-title {
  --o: 3px;
  --d: 5px;
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
}

.faq {
  margin-bottom: 14px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 5px 0 var(--ink);
}

.faq summary {
  position: relative;
  padding: 16px 56px 16px 20px;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.25;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
  border-radius: 17px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 14px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  font-size: 22px;
  line-height: 1;
  color: var(--yellow-text);
  background: linear-gradient(180deg, var(--yellow-1), var(--yellow-2));
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.faq[open] summary::after {
  content: '−';
}

.faq-body {
  padding: 0 20px 6px;
  font-size: 16px;
}

.faq-body p,
.faq-body ol,
.faq-body ul {
  margin: 0 0 12px;
}

.faq-body ol,
.faq-body ul {
  padding-left: 1.3em;
}

/* Not found */

.lost {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}

.lost-code {
  --o: 6px;
  --d: 12px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(110px, 24vw, 180px);
  line-height: 1;
  color: var(--yellow-1);
}

.lost p {
  margin: 0 0 26px;
}

/* Footer */

.site-footer {
  position: relative;
  padding: 6px 0 30px;
  color: #fff;
  background: linear-gradient(180deg, #5ccc4c, #34a845);
}

.site-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 90px;
  background: url('/images/hills.svg') bottom center / 1600px 90px repeat-x;
  pointer-events: none;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.footer-nav a {
  --o: 2px;
  --d: 3px;
  font-family: var(--display);
  font-size: 18px;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.copyright {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #eaffdf;
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
    background-size:
      1100px auto,
      100% 100%;
  }

  .brand-name {
    font-size: 28px;
  }

  .lead,
  .page-intro {
    font-size: 18px;
  }

  .site-footer .wrap {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
