:root {
  --ink: #161717;
  --muted: #696b68;
  --line: #d9dcd7;
  --paper: #f7f8f5;
  --white: #ffffff;
  --coral: #f26657;
  --green: #26a879;
  --blue: #315ecb;
  --accent: var(--coral);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, li { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.site-header {
  height: 72px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 245, .96);
}
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 11px; font-size: 14px; font-weight: 700; }
.brand-mark { width: 25px; height: 18px; display: flex; align-items: flex-end; gap: 3px; }
.brand-mark i { display: block; width: 6px; background: var(--ink); }
.brand-mark i:nth-child(1) { height: 9px; background: var(--coral); }
.brand-mark i:nth-child(2) { height: 18px; }
.brand-mark i:nth-child(3) { height: 13px; background: var(--green); }
.site-nav { display: flex; gap: 34px; font-size: 14px; font-weight: 500; }
.header-back { justify-self: end; display: inline-flex; align-items: center; gap: 9px; border-bottom: 1px solid; padding: 5px 0; font-size: 13px; font-weight: 600; }
.site-nav a:hover, .header-back:hover { color: var(--accent); }

.detail-main { max-width: var(--max); margin: 0 auto; }
.game-hero { padding: 70px 0 92px; }
.banner { overflow: hidden; aspect-ratio: 512 / 250; background: #e5e7e4; border-radius: 6px; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.title-row { display: grid; grid-template-columns: 126px 1fr minmax(210px, auto); gap: 32px; align-items: center; margin-top: 38px; }
.app-icon { width: 126px; aspect-ratio: 1; overflow: hidden; border-radius: 20px; border: 1px solid var(--line); background: var(--white); }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow, .section-number { margin: 0 0 10px; color: var(--muted); font-size: 11px; font-weight: 700; }
h1 { margin: 0; font-size: clamp(40px, 5vw, 68px); font-weight: 600; line-height: 1.05; }
.store-button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 23px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 0 16px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.store-button:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); }
.store-button small { display: block; color: #c6c8c5; font-size: 9px; font-weight: 500; }
.play-mark { width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 16px solid var(--white); }
.coming-button { background: var(--blue); border-color: var(--blue); }
.status-mark { width: 12px; height: 12px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 5px rgba(255, 255, 255, .15); }

.content-section { padding: 92px 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 50px; margin-bottom: 42px; }
.section-heading h2 { max-width: 780px; margin: 0; font-size: clamp(34px, 4vw, 54px); font-weight: 600; line-height: 1.12; }
.copy-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 90px; }
.lead { margin: 0; color: #343634; font-size: 21px; line-height: 1.65; }
.rich-copy p { margin: 0 0 24px; color: var(--muted); font-size: 16px; }
.rich-copy h3 { margin: 38px 0 13px; font-size: 22px; font-weight: 600; }
.rich-copy h3:first-child { margin-top: 0; }
.feature-list { margin: 0; padding: 0; list-style: none; }
.feature-list li { padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 17px; font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.gallery figure { margin: 0; overflow: hidden; aspect-ratio: 9 / 16; background: #e5e7e4; border: 1px solid var(--line); border-radius: 5px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-four { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 970px; }
.wide-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.wide-gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: 5px; }

.coming-panel { padding: 72px max(28px, 8vw); background: var(--blue); color: var(--white); }
.coming-panel .section-number { color: #cdd7f5; }
.coming-panel h2 { max-width: 760px; margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.08; font-weight: 600; }
.coming-panel p { max-width: 610px; margin: 24px 0 0; color: #dfe5f8; font-size: 16px; }

.site-footer {
  min-height: 100px;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.footer-links { justify-self: end; display: flex; gap: 24px; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 1288px) {
  .detail-main, .site-footer { margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 920px) {
  .title-row { grid-template-columns: 104px 1fr; }
  .app-icon { width: 104px; }
  .title-row .store-button { grid-column: 2; justify-self: start; }
  .copy-layout { grid-template-columns: 1fr; gap: 38px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-header { height: 64px; padding: 0 18px; grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .header-back { font-size: 12px; }
  .detail-main { margin: 0 18px; }
  .game-hero { padding: 30px 0 64px; }
  .title-row { grid-template-columns: 76px 1fr; gap: 18px; margin-top: 24px; }
  .app-icon { width: 76px; border-radius: 14px; }
  h1 { font-size: 35px; }
  .title-row .store-button { grid-column: 1 / -1; width: 100%; }
  .content-section { padding: 68px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 32px; }
  .section-heading h2 { font-size: 37px; }
  .lead { font-size: 18px; }
  .gallery, .gallery-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wide-gallery { grid-template-columns: 1fr; }
  .coming-panel { padding: 62px 24px; }
  .site-footer { margin: 0 18px; grid-template-columns: 1fr; align-items: start; padding: 34px 0; gap: 14px; }
  .footer-links { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
