:root {
  color-scheme: light;
  --ink: #17233f;
  --muted: #65708a;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #dfe3ec;
  --violet: #7157d9;
  --violet-dark: #563bbd;
  --mint: #45c5a6;
  --yellow: #ffc85a;
  --shadow: 0 28px 80px rgb(28 38 67 / 13%);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 90% 8%, rgb(113 87 217 / 12%), transparent 25rem),
    radial-gradient(circle at 3% 38%, rgb(69 197 166 / 10%), transparent 22rem),
    var(--paper);
}

a {
  color: inherit;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 92px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 4px;
  transform: rotate(6deg);
}

.brand-mark i {
  display: block;
  border-radius: 5px;
}

.brand-mark i:nth-child(1) { background: var(--violet); }
.brand-mark i:nth-child(2) { background: var(--yellow); }
.brand-mark i:nth-child(3) { background: var(--mint); }
.brand-mark i:nth-child(4) { background: #eb6d70; }

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 1px;
  color: var(--violet-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.main-site-link {
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 750;
  text-decoration: none;
}

.main-site-link:hover {
  color: var(--violet-dark);
}

main {
  overflow: hidden;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 610px;
  margin: 34px auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--violet-dark);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 6.8vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.hero-intro {
  max-width: 610px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.notice {
  max-width: 590px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border: 1px solid rgb(113 87 217 / 18%);
  border-radius: 18px;
  background: rgb(255 255 255 / 72%);
  box-shadow: 0 12px 40px rgb(50 37 101 / 7%);
}

.notice > span {
  flex: 0 0 auto;
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--violet);
  color: white;
  font-size: 1.2rem;
}

.notice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.notice strong {
  display: block;
  color: var(--ink);
}

.game-preview {
  position: relative;
  isolation: isolate;
}

.game-preview::before {
  content: "";
  position: absolute;
  inset: 9% -7% -10% 13%;
  z-index: -1;
  border-radius: 46% 54% 44% 56%;
  background: linear-gradient(135deg, rgb(113 87 217 / 18%), rgb(69 197 166 / 14%));
  filter: blur(2px);
  transform: rotate(-5deg);
}

.preview-window {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.preview-bar {
  height: 45px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  background: #f0eef8;
}

.preview-bar span {
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #c9c3df;
}

.preview-body {
  min-height: 420px;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 22px;
  padding: clamp(22px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgb(23 35 63 / 96%), rgb(45 42 91 / 96%)),
    var(--ink);
}

.question-card {
  padding: 30px 18px;
  border-radius: 20px;
  background: #fffdfa;
  text-align: center;
  box-shadow: 0 18px 30px rgb(0 0 0 / 14%);
}

.question-card small {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-card strong {
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.bingo-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 4px solid white;
  border-radius: 14px;
  background: white;
  box-shadow: 0 18px 34px rgb(0 0 0 / 16%);
}

.bingo-card b,
.bingo-card span {
  min-width: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #e0e3ec;
  font-size: clamp(0.55rem, 1.2vw, 0.85rem);
}

.bingo-card b {
  aspect-ratio: auto;
  padding: 7px 0;
  border: 0;
  background: var(--violet);
  color: white;
}

.bingo-card b:nth-child(2) { background: #4385df; }
.bingo-card b:nth-child(3) { background: #42ad69; }
.bingo-card b:nth-child(4) { background: #f2a91e; }
.bingo-card b:nth-child(5) { background: #e45459; }

.bingo-card .marked {
  background: var(--yellow);
  color: var(--violet-dark);
}

.spark {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--yellow);
  filter: drop-shadow(0 7px 10px rgb(94 67 13 / 18%));
}

.spark-one {
  top: -20px;
  right: 12%;
  font-size: 2.5rem;
}

.spark-two {
  bottom: -23px;
  left: 4%;
  color: var(--mint);
  font-size: 1.8rem;
}

.steps {
  padding: clamp(74px, 9vw, 120px) max(20px, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: white;
}

.section-heading {
  max-width: 670px;
  margin-bottom: 48px;
}

.section-heading .eyebrow {
  color: #8de0cb;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4.5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.steps ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 245px;
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 22px;
  background: rgb(255 255 255 / 5%);
}

.steps li > span {
  color: #8de0cb;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.steps h3 {
  margin: 55px 0 13px;
  font-size: 1.35rem;
}

.steps li p {
  margin: 0;
  color: rgb(255 255 255 / 68%);
  font-size: 0.92rem;
  line-height: 1.65;
}

footer {
  min-height: 190px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 5px 30px;
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}

.footer-brand {
  font-weight: 850;
  letter-spacing: -0.02em;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

footer a {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--violet-dark);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    margin-top: 65px;
  }

  .hero-copy {
    max-width: 690px;
  }

  .game-preview {
    width: min(650px, 100%);
    margin: auto;
  }

  .steps ol {
    grid-template-columns: 1fr;
  }

  .steps li {
    min-height: 0;
  }

  .steps h3 {
    margin-top: 28px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 76px;
  }

  .main-site-link {
    font-size: 0;
  }

  .main-site-link::after {
    content: "Main site ↗";
    font-size: 0.8rem;
  }

  .hero {
    min-height: auto;
    margin-top: 42px;
    margin-bottom: 68px;
  }

  h1 {
    font-size: clamp(3.15rem, 16vw, 4.4rem);
  }

  .preview-window {
    border-radius: 21px;
    transform: none;
  }

  .preview-body {
    min-height: 360px;
    grid-template-columns: 1fr;
  }

  .question-card {
    width: 70%;
    margin: auto;
    padding: 18px;
  }

  .bingo-card {
    width: 85%;
    margin: auto;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer a {
    grid-column: 1;
    grid-row: auto;
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .preview-window {
    animation: settle 750ms cubic-bezier(.2, .75, .2, 1) both;
  }

  @keyframes settle {
    from { opacity: 0; transform: translateY(24px) rotate(2deg); }
    to { opacity: 1; transform: translateY(0) rotate(2deg); }
  }
}
