@font-face {
  font-family: Bricolage;
  src: url("./assets/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url("./assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #14111e;
  --ink-deep: #0f0b19;
  --paper: #fff3df;
  --soft: #cec2d9;
  --line: #554761;
  --lime: #d9f85a;
  --lilac: #cbb0ff;
  --pink: #ff9caf;
  --cobalt: #2b37e5;
  --display: Bricolage, Arial, sans-serif;
  --body: DM, system-ui, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 1rem/1.52 var(--body);
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
img {
  display: block;
  width: 100%;
  height: auto;
}
figure {
  margin: 0;
}
:focus-visible {
  outline: 3px solid #8bc3ff;
  outline-offset: 4px;
}
.wrap {
  width: min(100% - 6rem, 1296px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  z-index: 8;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 0.6rem 1rem;
  background: var(--lime);
  color: var(--ink);
}
.skip:focus {
  transform: none;
}
.masthead {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font: 800 clamp(1.5rem, 3vw, 2.13rem)/1 var(--display);
  letter-spacing: -0.073em;
  white-space: nowrap;
}
.brand img {
  width: 1.18em;
  height: 1.18em;
}
.brand span {
  color: var(--lime);
  margin-left: -0.28em;
}
.masthead nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  white-space: nowrap;
}
.masthead nav a,
.footer > a:last-child {
  color: var(--soft);
  text-decoration: none;
  font-weight: 600;
}
.masthead nav a:hover,
.footer > a:last-child:hover {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}
.action {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.12rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  transition:
    transform 0.18s,
    background-color 0.18s,
    border-color 0.18s,
    color 0.18s;
}
.action:not(:disabled):hover {
  transform: translateY(-2px);
}
.action:disabled {
  opacity: 0.5;
  cursor: default;
}
.action-lime {
  background: var(--lime);
  color: var(--ink);
}
.action-lime:hover {
  background: #edffa8;
}
.action-line {
  border-color: #786985;
  color: var(--paper);
  background: transparent;
}
.action-line:hover {
  border-color: var(--lilac);
  background: #352742;
}
.action-dark {
  background: var(--ink);
  color: var(--paper);
}
.action-dark:hover {
  background: #382746;
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.micro {
  font-size: 0.86rem;
  letter-spacing: 0.115em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.lime-text {
  color: var(--lime);
}
.lilac-text {
  color: var(--lilac);
}
h1,
h2,
h3 {
  font-family: var(--display);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.062em;
  line-height: 0.96;
}
h1 em,
h2 em {
  font-style: normal;
  color: var(--lime);
}
h2 {
  font-size: clamp(3rem, 7.7vw, 7.15rem);
}
h3 {
  font-size: clamp(1.9rem, 4vw, 3.45rem);
}
.section-pad {
  padding-block: clamp(3rem, 8vw, 7.15rem);
}
.cover {
  display: grid;
  position: relative;
  isolation: isolate;
  overflow: clip;
  overflow-clip-margin: 10px;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  min-height: 662px;
  padding-block: 4.4rem 5.8rem;
}
.cover-copy {
  position: relative;
  z-index: 3;
  align-self: center;
}
.cover h1 {
  font-size: clamp(4.4rem, 10vw, 9.5rem);
  margin-left: -0.06em;
}
.cover-deck {
  margin: 1.55rem 0 1.4rem;
  max-width: 26rem;
  color: var(--soft);
  font-size: clamp(1.07rem, 1.75vw, 1.28rem);
}
.cover-art {
  position: relative;
  min-height: 510px;
  margin-left: -4.5%;
  margin-right: 1.4%;
  isolation: isolate;
}
.cover-art::before {
  content: "";
  position: absolute;
  inset: -5% -4% -8% -13%;
  z-index: -1;
  background: radial-gradient(
    ellipse at 55% 48%,
    #7045b3 1%,
    #362250 45%,
    transparent 69%
  );
  opacity: 0.9;
}
.cover-print {
  position: absolute;
  inset: 3% 2% 8% 6%;
  border: 7px solid var(--paper);
  background: #433675;
  transform: rotate(5.2deg);
  box-shadow:
    15px 20px 0 #532a87,
    0 22px 60px #070510aa;
  overflow: hidden;
  animation: print-enter 0.95s both cubic-bezier(0.22, 0.75, 0.3, 1);
}
.cover-print img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}
.orbit {
  position: absolute;
  z-index: 1;
  inset: -4% -6% -2% -4%;
  border: 1px solid #cbb0ff90;
  border-radius: 50%;
  pointer-events: none;
}
.orbit-a {
  transform: rotate(-32deg);
}
.orbit-b {
  transform: rotate(26deg);
  border-style: dashed;
  opacity: 0.55;
}
.cover-burst {
  position: absolute;
  top: -7%;
  right: -2%;
  color: var(--lime);
  font: clamp(5rem, 10.7vw, 10rem)/1 var(--body);
  transform: rotate(-9deg);
  z-index: 2;
  text-shadow: 5px 7px #411d63;
  animation: star-in 1s 0.25s both;
}
.cover-note {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  width: min(54%, 255px);
  display: grid;
  gap: 0.22rem;
  padding: 0.8rem 1rem 1rem;
  background: var(--pink);
  color: #28142c;
  text-decoration: none;
  border: 2px solid #2d1637;
  box-shadow: 0.5rem 0.5rem 0 #301942;
  transform: rotate(-8deg);
  transition: transform 0.24s ease-out;
}
.cover-note:hover {
  transform: rotate(-3deg) translateY(-5px);
}
.cover-note small {
  font-size: 0.81rem;
  font-weight: 700;
}
.cover-note strong {
  font: 800 clamp(1.25rem, 2.6vw, 2rem)/0.98 var(--display);
  letter-spacing: -0.055em;
}
.cover-note > span {
  position: absolute;
  right: 0.55rem;
  top: 0.1rem;
  font-size: 1.6rem;
}
.ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 4vw, 4rem);
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--lime);
  color: var(--ink);
  font: 800 clamp(1.02rem, 2.5vw, 1.85rem)/1.4 var(--display);
  letter-spacing: -0.04em;
  box-shadow: 0 0.28rem #3e3c25;
}
.ribbon > a {
  text-decoration: none;
}
.ribbon > a:hover {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.section-heading {
  margin-bottom: 2rem;
}
.section-heading h2 {
  max-width: 54rem;
}
.game-layout {
  display: grid;
  grid-template-columns: 1.44fr 1fr;
  gap: clamp(1.3rem, 4vw, 3.6rem);
  align-items: stretch;
}
.game-art {
  position: relative;
  background: #e64370;
  border: 6px solid #ff9caf;
  transform: rotate(-2deg);
  min-height: 300px;
  box-shadow: 0.7rem 0.6rem #55398e;
}
.game-art img {
  height: 100%;
  object-fit: cover;
}
.game-art figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--pink);
  color: var(--ink);
  font-weight: 700;
  padding: 0.45rem 0.8rem;
}
.game-list {
  display: grid;
  align-content: center;
  gap: 0.85rem;
}
.game-ticket {
  display: grid;
  gap: 0.33rem;
  position: relative;
  padding: 1rem 1.3rem;
  text-decoration: none;
  color: #201733;
  border: 2px solid #fff4d955;
  box-shadow: 0.35rem 0.35rem 0 #392853;
  transition: transform 0.22s;
}
.game-ticket:hover {
  transform: translate(-4px, -4px) rotate(1deg);
}
.game-ticket::after {
  content: "✷";
  position: absolute;
  right: 1rem;
  top: 0.55rem;
  font-size: 1.42rem;
}
.game-ticket small {
  font-weight: 700;
}
.game-ticket strong {
  font: 800 clamp(1.65rem, 3.5vw, 2.8rem)/0.98 var(--display);
  letter-spacing: -0.058em;
}
.game-ticket span {
  font-size: 1rem;
}
.game-ticket.lime {
  background: var(--lime);
}
.game-ticket.pink {
  background: var(--pink);
}
.game-ticket.blue {
  background: #bfb9ff;
}
.memory-demo {
  margin-top: 2.5rem;
  background: var(--lilac);
  color: var(--ink);
  padding: clamp(1rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 2rem;
  align-items: center;
  border: 2px solid var(--paper);
  box-shadow: 0.5rem 0.5rem #55417c;
}
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}
.memory-card {
  aspect-ratio: 1.15;
  border: 1px solid #715ba1;
  background: var(--ink);
  color: var(--lime);
  font: 800 clamp(1.25rem, 4vw, 2.9rem)/1 var(--display);
  border-radius: 0.45rem;
  transition:
    transform 0.23s,
    background-color 0.23s,
    color 0.23s;
}
.memory-card.flipped {
  background: var(--pink);
  color: var(--ink);
  transform: rotate(-3deg);
}
.memory-card.found {
  background: var(--lime);
  color: var(--ink);
  transform: none;
  opacity: 0.95;
}
.questions-section {
  padding-block: clamp(2.65rem, 7vw, 6rem);
  background: #231733;
  border-block: 1px solid #674c87;
}
.question-layout {
  display: grid;
  grid-template-columns: 1fr 1.07fr;
  gap: clamp(1rem, 4.2vw, 3.8rem);
  align-items: center;
}
.question-portrait {
  position: relative;
  min-height: 370px;
  border: 3px solid #8863ac;
  overflow: hidden;
  isolation: isolate;
}
.question-portrait img {
  height: 100%;
  position: absolute;
  object-fit: cover;
  z-index: -2;
}
.question-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #140b22 2%, #20103433 85%);
  z-index: -1;
}
.question-portrait > div {
  padding: 1.35rem;
  position: absolute;
  bottom: 0.5rem;
  left: 0.45rem;
}
.question-portrait h2 {
  font-size: clamp(2.6rem, 5vw, 5.2rem);
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.47rem;
  margin-bottom: 0.85rem;
}
.filter-row button,
.chip {
  border: 1px solid #856b9b;
  border-radius: 999px;
  background: #281c37;
  color: var(--paper);
  padding: 0.45rem 0.8rem;
  min-height: 42px;
  font-weight: 700;
}
.filter-row button[aria-pressed="true"],
.chip[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--lime);
  background: var(--lime);
}
.question-paper {
  position: relative;
  display: grid;
  gap: 0.6rem;
  min-height: 250px;
  padding: 1.3rem 1.45rem;
  background: #fff0db;
  color: #291830;
  border: 3px solid #eac7ed;
  box-shadow: 0.43rem 0.45rem 0 #664386;
}
.question-paper::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.58rem;
  width: 0.22rem;
  background: radial-gradient(circle, #9c76b6 1px, transparent 2px) 0 0/4px 14px;
  opacity: 0.65;
}
.question-paper > .micro {
  color: #653a80;
}
.question-paper > p:nth-child(2) {
  font: 800 clamp(1.75rem, 3.5vw, 3.2rem)/1.02 var(--display);
  letter-spacing: -0.057em;
  margin: 0.25rem 0 0.4rem;
}
.question-controls {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.6rem;
}
.question-controls span {
  font-size: 0.88rem;
  font-weight: 700;
}
.studio-foot {
  color: var(--soft);
  margin: 1.15rem 0 0;
}
.studio-foot a {
  color: var(--lime);
  text-underline-offset: 0.2em;
}
.scrapbook {
  display: grid;
  grid-template-columns: 0.92fr 1.2fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  isolation: isolate;
}
.scrap-content p:not(.micro) {
  max-width: 29rem;
  color: var(--soft);
  margin: 1.2rem 0 1.35rem;
}
.scrap-art {
  background: var(--cobalt);
  border: 6px solid #cdb1ff;
  transform: rotate(2.7deg);
  box-shadow: 0.6rem 0.7rem #5b328b;
}
.scrap-photo {
  position: absolute;
  right: 1%;
  bottom: 9%;
  width: min(22%, 235px);
  border: 6px solid var(--paper);
  border-bottom-width: 22px;
  transform: rotate(-12deg);
  box-shadow: 0.45rem 0.55rem #372147;
}
.scrap-photo img {
  height: clamp(110px, 16vw, 210px);
  object-fit: cover;
}
.coach-section {
  background: var(--lime);
  color: var(--ink);
  border-block: 3px solid var(--paper);
}
.coach-layout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: 2.7rem;
}
.coach-layout h2 {
  font-size: clamp(2.7rem, 5.8vw, 5.8rem);
}
.coach-layout p:last-child {
  max-width: 32rem;
  margin: 0.7rem 0 0;
}
.coach-spark {
  font-size: clamp(3.7rem, 10vw, 9rem);
  line-height: 1;
  transform: rotate(-9deg);
  color: #40316d;
}
.download {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 2rem;
  align-items: center;
}
.download h2 {
  font-size: clamp(2.9rem, 6.5vw, 6.1rem);
}
.download-copy > p {
  color: var(--soft);
  max-width: 30rem;
}
.download-copy .action {
  margin: 0.35rem 0.5rem 0.35rem 0;
}
.download-copy details {
  margin-top: 1rem;
}
.hash {
  overflow-wrap: anywhere;
}
.footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 90px;
}
.print-in {
  animation: appear 0.6s both ease-out;
}
@keyframes print-enter {
  from {
    opacity: 0.3;
    transform: translateY(26px) rotate(9deg) scale(0.97);
  }
  to {
    opacity: 1;
    transform: rotate(5.2deg);
  }
}
@keyframes star-in {
  from {
    opacity: 0;
    rotate: 35deg;
    scale: 0.65;
  }
  to {
    opacity: 1;
    rotate: 0;
    scale: 1;
  }
}
@keyframes appear {
  from {
    opacity: 0.45;
    translate: 0 13px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (max-width: 1050px) {
  .wrap {
    width: calc(100% - 3rem);
  }
  .cover {
    min-height: 550px;
  }
  .cover-art {
    min-height: 410px;
  }
  .cover h1 {
    font-size: clamp(4.4rem, 10vw, 7rem);
  }
}
@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 2rem);
  }
  .masthead {
    min-height: 68px;
  }
  .masthead nav {
    display: none;
  }
  .masthead .action {
    padding-inline: 0.8rem;
  }
  .cover {
    display: block;
    min-height: auto;
    padding-block: 2.5rem 2.15rem;
  }
  .cover h1 {
    font-size: clamp(4rem, 15vw, 6.5rem);
  }
  .cover-art {
    min-height: clamp(256px, 79vw, 390px);
    margin: 1.9rem 1% 0 1%;
  }
  .cover-print {
    inset: 5% 3% 10% 6%;
    border-width: 4px;
    box-shadow: 8px 10px #532a87;
  }
  .cover-burst {
    top: -6%;
    right: 0;
  }
  .orbit {
    inset: 1% -1% 5% 0;
  }
  .cover-note {
    left: 0;
    bottom: 2%;
    width: min(61%, 245px);
  }
  .game-layout,
  .question-layout,
  .scrapbook,
  .download {
    grid-template-columns: 1fr;
  }
  .game-art {
    min-height: 0;
  }
  .game-art img {
    height: auto;
  }
  .game-list {
    margin-top: 0.55rem;
  }
  .memory-demo {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .question-portrait {
    min-height: 280px;
  }
  .scrapbook {
    gap: 1.4rem;
    padding-bottom: 4.6rem;
  }
  .scrap-photo {
    bottom: 4%;
    width: 30%;
  }
  .coach-layout {
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }
  .coach-layout > a {
    grid-column: 2;
    justify-self: start;
  }
  .footer > a:last-child {
    font-size: 0.9rem;
  }
  .ribbon {
    gap: 0.4rem 0.75rem;
  }
}
@media (max-width: 365px) {
  .cover h1 {
    font-size: 3.9rem;
  }
  .masthead .action {
    font-size: 0.9rem;
  }
  .masthead .brand {
    font-size: 1.35rem;
  }
  .coach-layout {
    grid-template-columns: 1fr;
  }
  .coach-layout > a {
    grid-column: auto;
  }
  .coach-spark {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
