:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: #284b40;
  background: #f8f4e9;
  font-synthesis: none;
  --ink: #284b40;
  --muted: #667163;
  --coral: #b54a32;
  --line: #dcdccd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--coral); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
section { scroll-margin-top: 32px; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: 12px; left: 16px; z-index: 10; padding: 14px; transform: translateY(-160%); background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.wordmark, .footer-brand { font-family: ui-rounded, "Avenir Next", -apple-system, sans-serif; font-weight: 900; letter-spacing: -.07em; }
.wordmark { font-size: 34px; line-height: 1; }
.wordmark-dot { color: var(--coral); }
.site-nav { display: flex; gap: 12px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.site-nav a:hover { background: #ebeede; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 36px; padding-block: 64px 72px; }
.eyebrow, .section-label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--coral); }
.eyebrow > span { font-size: 20px; }
h1 { margin: 0; font-size: clamp(56px, 6.7vw, 84px); font-weight: 850; letter-spacing: -.07em; line-height: 1.18; word-break: keep-all; }
h1 > span { color: var(--coral); }
.hero-description { margin: 28px 0 30px; color: var(--muted); font-size: 17px; line-height: 1.9; word-break: keep-all; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 30px; min-height: 54px; padding: 15px 23px; border: 1px solid #a03d28; border-bottom-width: 3px; border-radius: 14px; background: var(--coral); color: #fffaf2; font-size: 15px; font-weight: 750; }
.button:hover { background: #9e3c28; }
.button > span { font-size: 23px; line-height: 1; }
.hero-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.hero-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #78916e; }
.hero-art { margin: 0; }
.hero-art img { width: 100%; }
.hero-art figcaption { margin-top: -6px; text-align: center; color: #667163; font-size: 13px; letter-spacing: .05em; }
.games-section { padding-block: 40px 72px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-label { margin-bottom: 12px; color: var(--muted); }
h2 { margin: 0; font-size: clamp(27px, 3.3vw, 36px); font-weight: 800; letter-spacing: -.05em; line-height: 1.35; word-break: keep-all; }
.game-count { display: inline-flex; align-items: center; gap: 4px; padding: 10px 15px; border-radius: 999px; background: #e9ecdc; color: #526047; font-size: 13px; white-space: nowrap; }
.game-count strong { font-size: 15px; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.game-card { display: flex; flex-direction: column; align-items: start; min-height: 260px; padding: 28px; border: 1px solid #d7dac8; border-radius: 22px; background: #fffdf6; transition: transform .15s ease, border-color .15s ease; }
.game-card:hover { transform: translateY(-3px); border-color: #7f9477; }
.game-card-label { padding: 7px 10px; border-radius: 8px; background: #eee8d5; color: #68582d; font-size: 12px; font-weight: 700; }
.game-card:nth-child(3n + 2) .game-card-label { background: #f3dfd5; color: #93462e; }
.game-card:nth-child(3n) .game-card-label { background: #e8e1f0; color: #645179; }
.game-card h3 { margin: 22px 0 12px; font-size: 24px; line-height: 1.4; letter-spacing: -.04em; overflow-wrap: anywhere; }
.game-card p { margin: 0 0 28px; color: var(--muted); font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.game-card-action { width: 100%; margin-top: auto; padding-top: 18px; border-top: 1px solid #e8e7da; display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.empty-state { grid-column: 1 / -1; padding: 44px 24px 48px; border: 1.5px dashed #b7bea4; border-radius: 24px; background: #f0f1e3; text-align: center; }
.empty-state::before { content: "✦"; display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 22px; border: 1px dashed #b79442; border-radius: 20px; background: #f0d58b; color: #735b25; font-size: 32px; transform: rotate(-8deg); }
.empty-state h3 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.04em; word-break: keep-all; }
.empty-state p { margin: 0; color: #5b6951; font-size: 15px; line-height: 1.8; word-break: keep-all; }
.story-section { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; padding: 48px; margin-bottom: 64px; border: 1px solid #e3dac0; border-radius: 26px; background: #f1ead8; }
.story-heading h2 { font-size: clamp(28px, 3vw, 34px); line-height: 1.45; }
.story-star { display: inline-block; margin-top: 20px; color: #ad643c; font-size: 30px; }
.story-copy { align-self: center; }
.story-copy p { margin: 0; color: #5c6655; font-size: 16px; line-height: 2; word-break: keep-all; }
.story-copy p + p { margin-top: 20px; }
.story-copy strong { color: var(--ink); font-weight: 750; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px 36px; border-top: 1px solid var(--line); }
.footer-brand { font-size: 23px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 12px; }
.back-to-top { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; color: #586650; font-size: 13px; }
.not-found { max-width: 720px; padding-block: 88px 100px; }
.not-found h1 { font-size: clamp(46px, 7vw, 72px); }

@media (max-width: 900px) {
  .hero { gap: 16px; padding-top: 48px; }
  h1 { font-size: clamp(48px, 7.2vw, 68px); }
  .hero-description { font-size: 16px; }
  .hero-description br, .story-copy br { display: none; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-section { gap: 36px; padding: 36px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 82px; gap: 12px; }
  .brand { gap: 7px; }
  .brand img { width: 30px; height: 30px; }
  .wordmark { font-size: 29px; }
  .site-nav { gap: 0; }
  .site-nav a { padding-inline: 10px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-block: 42px 44px; }
  .hero-copy { text-align: center; }
  .eyebrow, .hero-note { justify-content: center; }
  .eyebrow { margin-bottom: 22px; font-size: 12px; }
  h1 { font-size: clamp(52px, 11.5vw, 72px); }
  .hero-description { max-width: 29ch; margin: 24px auto 26px; font-size: 16px; }
  .hero-art { width: min(100%, 380px); margin-inline: auto; }
  .hero-art figcaption { margin-top: -4px; font-size: 12px; }
  .section-heading { gap: 12px; margin-bottom: 24px; }
  .section-label { margin-bottom: 10px; font-size: 12px; }
  h2 { font-size: 27px; }
  .game-count { padding: 8px 11px; font-size: 12px; }
  .game-count strong { font-size: 13px; }
  .game-grid { grid-template-columns: 1fr; }
  .games-section { padding-block: 32px 44px; }
  .empty-state { padding: 36px 22px; }
  .empty-state h3 { font-size: 20px; }
  .empty-state p { font-size: 14px; }
  .story-section { grid-template-columns: 1fr; gap: 24px; padding: 30px 26px; margin-bottom: 40px; }
  .story-heading h2 { font-size: 29px; }
  .story-star { display: none; }
  .story-copy p { font-size: 15px; }
  .site-footer { flex-wrap: wrap; gap: 14px; padding-block: 22px 30px; }
  .site-footer p { order: 3; flex-basis: 100%; }
  .back-to-top { margin-left: auto; }
  .not-found { padding-block: 64px 80px; }
}

@media (max-width: 360px) {
  .site-nav a { padding-inline: 7px; }
  .wordmark { font-size: 25px; }
  .brand img { width: 27px; height: 27px; }
  .game-count { padding-inline: 9px; }
  h2 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .game-card { transition: none; }
  .game-card:hover { transform: none; }
}
