@font-face {
  font-family: Outfit;
  src: url('/assets/fonts/outfit.fc7287273e66.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #111622;
  --ink-hover: #273143;
  --yellow: #ffe447;
  --blue: #153acb;
  --blue-hover: #0e2da5;
  --cream: #fff9e9;
  --pink: #f282c0;
  --divider: #d7d0bd;
  font-family: Outfit, ui-sans-serif, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid currentColor; outline-offset: 6px; }
::selection { background: var(--pink); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.opening { background: var(--yellow); }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 16px; padding: 14px 22px; background: var(--cream); color: var(--ink); transform: translateY(-180%); font-weight: 650; }
.skip-link:focus { transform: none; }
.masthead { min-height: 104px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.wordmark { min-height: 44px; display: inline-flex; align-items: center; font-size: 28px; letter-spacing: -.035em; font-weight: 800; text-decoration: none; }
.wordmark span { color: var(--blue); }
.masthead nav { display: flex; gap: 40px; }
.masthead nav a { min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.68fr) minmax(0, 1fr); align-items: center; min-height: 540px; padding: 28px 0 65px; isolation: isolate; }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero h1 { font-size: clamp(54px, 6.5vw, 96px); line-height: .98; letter-spacing: -.04em; font-weight: 900; margin: 0 0 31px; max-width: 960px; }
.hero h1 span { display: block; overflow-wrap: break-word; }
.app-name { font-size: clamp(27px, 2.9vw, 40px); line-height: 1.12; letter-spacing: -.025em; font-weight: 800; margin: 0 0 12px; }
.hero-description { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; margin: 0 0 27px; max-width: 560px; }
.hero-action { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero-action .button { flex-shrink: 0; max-width: 100%; }
.setup-note { flex: 1 1 280px; max-width: 44ch; margin: 0; font-size: 16px; line-height: 1.45; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 23px; min-height: 58px; padding: 16px 24px; border-radius: 9px; text-decoration: none; font-size: 18px; font-weight: 600; transition: background-color .18s ease, transform .18s ease; }
.button-ink { background: var(--ink); color: var(--cream); }
.button-ink:hover { background: var(--ink-hover); transform: translateY(-2px); }
.button-ink:focus-visible { outline-color: var(--blue); }
.arrow { width: 23px; height: 23px; flex-shrink: 0; }
.button-ink .arrow { filter: invert(1); }
.hero-art { width: 100%; max-width: none; transform: translateX(20px); align-self: end; margin-bottom: 4px; animation: welcome .8s cubic-bezier(.16, 1, .3, 1) both; aspect-ratio: 1.2; object-fit: contain; pointer-events: none; }
.games { background: var(--cream); scroll-margin-top: 0; }
.games-intro { display: flex; justify-content: space-between; align-items: end; gap: 48px; padding-block: 52px 42px; }
.games-intro h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.02; letter-spacing: -.035em; margin: 0; font-weight: 800; }
.games-intro p { font-size: 18px; line-height: 1.5; margin: 0 0 2px; max-width: 520px; }
.game-pair { display: grid; grid-template-columns: 1fr 1fr; }
.game-panel { position: relative; min-width: 0; min-height: 610px; padding: 48px max(40px, calc((100vw - 1280px) / 2)) 32px; padding-right: 44px; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; }
.music { background: var(--blue); color: var(--cream); }
.family { background: var(--cream); color: var(--ink); border-top: 1px solid var(--divider); }
.showdown { background: var(--pink); color: var(--ink); }
.doodle { background: var(--yellow); color: var(--ink); }
.family, .doodle { padding-left: 46px; padding-right: max(40px, calc((100vw - 1280px) / 2)); }
.game-copy { position: relative; z-index: 1; }
.game-copy h3 { font-size: clamp(48px, 6.4vw, 88px); line-height: .92; letter-spacing: -.035em; margin: 0 0 17px; font-weight: 900; overflow-wrap: anywhere; }
.showdown h3 { font-size: clamp(42px, 5.3vw, 74px); line-height: .98; }
.game-copy p { max-width: 43ch; font-size: 18px; line-height: 1.5; margin: 0; }
.game-art { position: relative; z-index: 0; width: min(66%, 350px); height: 215px; align-self: end; aspect-ratio: 1.5; object-fit: contain; margin: 24px 0 22px; }
.family-art { width: min(83%, 420px); }
.showdown-art, .doodle-art { width: min(82%, 400px); }
.game-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: auto; padding-top: 15px; border-top: 1px solid currentColor; }
.game-play, .game-guide { min-height: 48px; display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 650; }
.game-guide { font-size: 16px; font-weight: 500; }
.game-play:hover, .game-guide:hover { text-decoration-thickness: 2px; }
.maker.wrap { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 78px max(56px, calc((100vw - 1280px) / 2)) 85px; background: var(--cream); }
.maker h2 { font-size: clamp(40px, 4.1vw, 58px); line-height: 1.02; letter-spacing: -.035em; margin: 0; font-weight: 800; }
.maker-copy p { font-size: 19px; line-height: 1.5; max-width: 45ch; margin: 0 0 25px; }
.maker-copy .maker-lead { font-size: clamp(26px, 2.6vw, 35px); line-height: 1.17; letter-spacing: -.02em; font-weight: 600; margin-bottom: 21px; }
.text-link { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; font-size: 18px; font-weight: 600; }
.text-link:hover { text-decoration-thickness: 2px; }
.site-footer { background: var(--blue); color: var(--cream); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 30px; padding-block: 28px; }
.footer-wordmark { min-height: 44px; display: inline-flex; align-items: center; font-size: 21px; font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
.footer-inner p { margin: 0; font-size: 15px; flex: 1; }
.motion-button { border: 1px solid currentColor; background: transparent; color: inherit; min-height: 44px; padding: 9px 12px; border-radius: 6px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 14px; cursor: pointer; }
.motion-button[hidden] { display: none; }
.motion-button:disabled { cursor: default; }
.motion-state { font-weight: 700; }
.motion-button:hover:not(:disabled) { background: var(--blue-hover); }
.back-top { min-height: 44px; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.back-top .arrow { transform: rotate(-90deg); filter: invert(1); width: 18px; height: 18px; }
.legal-row { padding-bottom: 24px; font-size: 14px; line-height: 1.5; }
.not-found { min-height: 100svh; display: grid; place-items: center; background: var(--cream); }
.not-found main { width: min(35rem, 100%); padding: 32px; }
.not-found h1 { font-size: clamp(40px, 6vw, 58px); line-height: 1.02; letter-spacing: -.035em; }
.not-found p { font-size: 19px; line-height: 1.5; }

@keyframes welcome {
  from { opacity: .9; transform: translate(20px, 14px); }
  to { opacity: 1; transform: translate(20px, 0); }
}
@keyframes welcome-mobile {
  from { opacity: .9; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 1600px) {
  .hero { min-height: 580px; }
  .hero-art { width: 112%; }
}
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 72px); }
  .hero { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); min-height: 490px; }
  .hero h1 { font-size: clamp(48px, 6.3vw, 72px); }
  .hero-art { transform: none; }
  .game-panel { padding-inline: 36px; min-height: 640px; }
  .game-copy h3 { font-size: 64px; }
  .showdown h3 { font-size: 52px; }
  .game-actions { gap: 6px 18px; }
  .game-play { font-size: 17px; }
  .games-intro { align-items: start; }
  .games-intro p { max-width: 46%; font-size: 17px; }
  .maker.wrap { gap: 36px; padding-inline: 36px; }
  .footer-inner { gap: 16px 24px; }
  .footer-inner p { flex-basis: 40%; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 44px); }
  .masthead { min-height: 92px; gap: 20px; }
  .wordmark { font-size: 22px; }
  .masthead nav { gap: 21px; }
  .masthead nav a { font-size: 15px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 22px 0 0; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(44px, 7.7vw, 59px); line-height: 1.02; margin-bottom: 25px; }
  .hero h1 span { white-space: normal; }
  .app-name { font-size: 29px; }
  .hero-description { font-size: 18px; margin-bottom: 23px; max-width: 35ch; }
  .hero-art { justify-self: end; width: 70%; max-width: 440px; max-height: 260px; margin: 19px -3px 0; transform: none; animation-name: welcome-mobile; }
  .button { min-height: 56px; font-size: 17px; gap: 28px; }
  .games-intro { display: block; padding-block: 38px 32px; }
  .games-intro h2 { font-size: 37px; margin-bottom: 21px; }
  .games-intro p { max-width: 40ch; font-size: 17px; }
  .desktop-break { display: none; }
  .game-pair { grid-template-columns: 1fr; }
  .game-panel { padding: 34px 22px 24px; min-height: 0; }
  .game-copy h3 { font-size: 65px; }
  .showdown h3 { font-size: clamp(40px, 9.5vw, 65px); }
  .game-copy p { font-size: 17px; max-width: 39ch; }
  .game-art { height: 180px; width: 65%; margin-block: 16px 22px; }
  .family-art, .showdown-art, .doodle-art { width: 82%; }
  .game-actions { gap: 4px 20px; }
  .game-play { font-size: 17px; }
  .family { border: 0; }
  .maker.wrap { grid-template-columns: 1fr; gap: 26px; padding: 45px 22px 48px; }
  .maker h2 { font-size: 43px; }
  .maker-copy .maker-lead { font-size: 29px; }
  .maker-copy p { font-size: 18px; }
  .footer-inner { gap: 17px 24px; padding-block: 25px; }
  .footer-wordmark { flex-basis: 100%; }
  .footer-inner p { flex-basis: 100%; }
  .back-top { margin-left: auto; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 36px); }
  .masthead { display: block; padding-block: 10px; min-height: 112px; }
  .wordmark { font-size: 20px; }
  .masthead nav { justify-content: flex-end; gap: 24px; }
  .masthead nav a { font-size: 14px; }
  .hero h1 { font-size: 42px; }
  .hero-art { width: 72%; max-height: 220px; }
  .app-name { font-size: 26px; }
  .hero-description { font-size: 17px; }
  .game-copy h3 { font-size: 60px; }
  .showdown h3 { font-size: 40px; }
  .game-panel { padding-inline: 18px; }
  .game-art { height: 160px; }
  .game-actions { align-items: flex-start; flex-direction: column; gap: 0; }
  .game-play, .game-guide { min-height: 46px; }
  .maker.wrap { padding-inline: 18px; }
  .maker h2 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .hero-art { animation: none; }
  .button { transition: none; }
  .button-ink:hover { transform: none; }
}
html[data-motion=reduce] { scroll-behavior: auto; }
html[data-motion=reduce] .hero-art { animation: none; }
html[data-motion=reduce] .button { transition: none; }
html[data-motion=reduce] .button-ink:hover { transform: none; }
