:root {
  color-scheme: light;
  --ink: #493445;
  --purple: #895570;
  --cream: #fffaf5;
  --muted: #665965;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.55; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #895570; outline-offset: 5px; }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: auto; }

header { background: #fbe5de; }
.nav { min-height: 84px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { color: var(--ink); text-decoration: none; font-size: 24px; font-weight: 900; letter-spacing: -.06em; }
.brand span { color: #985673; }
.site-links { display: flex; align-items: center; gap: 28px; }
nav { display: flex; gap: 28px; align-items: center; font-size: 14px; font-weight: 700; }
nav a { text-decoration: none; }
nav a:hover { color: #985673; }
.language-switch { gap: 6px; white-space: nowrap; }
.language-switch a[aria-current="page"], .main-nav a[aria-current="page"], .main-nav a.section-active { text-decoration: underline; text-underline-offset: 4px; }

.page-hero {
  background: radial-gradient(ellipse at 85% 10%, #ffe8c6 0%, transparent 48%), linear-gradient(125deg, #fbe5de 5%, #f8dbe1 52%, #f6e4ee 100%);
}
.page-hero .wrap { padding-top: 76px; padding-bottom: 82px; }
.eyebrow { margin: 0 0 18px; color: var(--purple); font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 850px; margin-bottom: 22px; font-size: clamp(50px, 7vw, 84px); line-height: 1.02; letter-spacing: -.06em; }
h1 em { color: #985673; font-style: normal; }
.lead { max-width: 660px; margin-bottom: 0; color: #5d4b54; font-size: 19px; }
.section-heading { margin-bottom: 28px; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -.045em; }
.muted { color: var(--muted); }

.catalog { padding: 72px 0 112px; }
.game-list { display: grid; gap: 24px; }
.game-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden; border: 1px solid #ead8dc; border-radius: 28px; background: #fff; text-decoration: none; box-shadow: 0 16px 38px rgba(73, 52, 69, .07); transition: transform .2s, box-shadow .2s; }
.game-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(73, 52, 69, .12); }
.game-card-art { display: grid; place-items: center; min-height: 310px; background: #c7e6ee; }
.game-card-art img { width: 100%; height: auto; }
.game-card-body { display: flex; flex-direction: column; justify-content: center; align-items: start; padding: 38px; }
.game-card-icon { width: 70px; height: 70px; margin-bottom: 22px; border-radius: 18px; }
.game-card h2 { margin-bottom: 12px; font-size: clamp(30px, 3.5vw, 44px); line-height: 1.08; letter-spacing: -.045em; }
.game-card p { max-width: 410px; margin-bottom: 22px; color: #604d5a; font-size: 17px; }
.text-link { color: #744564; font-weight: 800; text-underline-offset: 4px; }

.detail-hero .wrap { padding-top: 48px; padding-bottom: 68px; }
.back-link { display: inline-block; margin-bottom: 36px; color: #744564; font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.detail-intro { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 40px; align-items: center; }
.detail-heading { display: flex; grid-column: 2; grid-row: 1; align-items: center; gap: 20px; min-width: 0; }
.detail-heading > div { min-width: 0; }
.detail-icon { width: 88px; height: 88px; flex: none; border-radius: 22px; box-shadow: 0 10px 24px rgba(73, 52, 69, .12); }
.detail-intro h1 { margin: 0 0 12px; font-size: clamp(48px, 6vw, 76px); }
.detail-intro .lead { max-width: 760px; }
.download-action { grid-column: 1; grid-row: 1; }
.download-button { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 112px; padding: 20px; border: 1px solid #67475b; border-radius: 24px; background: linear-gradient(135deg, #67475b, #985673); color: #fff; box-shadow: 0 14px 26px rgba(73, 52, 69, .17); font-family: Arial, Helvetica, sans-serif; text-align: left; opacity: 1; cursor: not-allowed; }
.download-icon { width: 48px; height: 48px; flex: none; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .16); }
.download-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 19px; font-weight: 800; line-height: 1.2; }
.download-status { padding: 6px 11px; border-radius: 999px; background: #fff4f2; color: #493445; font-size: 13px; font-weight: 800; }
.download-note { max-width: 300px; margin: 10px 4px 0; color: #5d4b54; font-size: 13px; }
.feature-image { width: 100%; height: auto; margin-top: 48px; border-radius: 24px; box-shadow: 0 18px 36px rgba(73, 52, 69, .12); }
.game-overview { padding: 82px 0 48px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 65px; align-items: start; }
.overview-copy p { margin: 4px 0 16px; color: #604d5a; font-size: 18px; }
.overview-copy p:last-child { margin-bottom: 0; }
.game-features { padding: 24px 0 56px; }
.feature-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-point { padding: 26px; border: 1px solid #ead8dc; border-radius: 22px; background: #fff; }
.feature-point h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.025em; }
.feature-point p { margin-bottom: 0; color: #604d5a; }
.gallery { padding: 76px 0 64px; background: #f8e8e3; }
.gallery-intro { max-width: 640px; margin-bottom: 36px; color: #604d5a; }
.screenshot-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.screenshot-list figure { margin: 0; }
.screenshot-list img { width: 100%; height: auto; border: 1px solid #e5d7db; border-radius: 20px; box-shadow: 0 12px 22px rgba(73, 52, 69, .08); }
.screenshot-list figcaption { margin-top: 12px; color: #5d4b54; font-size: 14px; font-weight: 700; }
.game-faq { padding: 52px 0 20px; }
.faq-list { max-width: 850px; }
.faq-list > div { padding: 20px 0; border-bottom: 1px solid #ead8dc; }
.faq-list h3 { margin-bottom: 8px; font-size: 21px; letter-spacing: -.025em; }
.faq-list p { margin-bottom: 0; color: #604d5a; }
.more-games { padding: 70px 0 90px; }

footer { padding: 38px 0; color: #5d4b54; background: #f8e8e3; font-size: 13px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.legal { margin-top: 22px; color: #5d5569; }
.legal p { margin: 4px 0; }

@media (max-width: 1000px) {
  .detail-intro { grid-template-columns: 1fr; gap: 24px; }
  .detail-heading, .download-action { grid-column: 1; }
  .detail-heading { grid-row: 1; }
  .download-action { grid-row: 2; width: min(100%, 360px); }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 36px, 1120px); }
  .nav { min-height: 72px; flex-wrap: wrap; gap: 12px; padding: 16px 0; }
  .site-links { width: 100%; justify-content: space-between; gap: 12px; }
  nav { gap: 16px; font-size: 13px; }
  .page-hero .wrap { padding-top: 54px; padding-bottom: 60px; }
  .lead { font-size: 17px; }
  .catalog { padding: 46px 0 72px; }
  .game-card { grid-template-columns: 1fr; }
  .game-card-art { min-height: 0; aspect-ratio: 1024 / 500; }
  .game-card-body { padding: 27px; }
  .game-card-icon { width: 60px; height: 60px; margin-bottom: 16px; border-radius: 15px; }
  .detail-hero .wrap { padding-top: 32px; padding-bottom: 46px; }
  .back-link { margin-bottom: 30px; }
  .detail-heading { align-items: flex-start; gap: 16px; }
  .detail-icon { width: 72px; height: 72px; border-radius: 18px; }
  .detail-intro h1 { font-size: clamp(36px, 10vw, 54px); }
  .feature-image { margin-top: 34px; border-radius: 17px; }
  .game-overview { padding: 58px 0 36px; }
  .overview-grid { grid-template-columns: 1fr; gap: 0; }
  .game-features { padding: 18px 0 40px; }
  .feature-points { grid-template-columns: 1fr; }
  .gallery { padding: 58px 0 44px; }
  .screenshot-list { display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 320px); grid-template-columns: none; overflow-x: auto; padding-bottom: 15px; scroll-snap-type: x mandatory; }
  .screenshot-list figure { scroll-snap-align: start; }
  .game-faq { padding: 36px 0 0; }
  .more-games { padding: 55px 0 70px; }
}

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