:root {
  --paper: #f7f6ef;
  --ink: #29413f;
  --muted: #596d65;
  --line: #ccd3c6;
  --yellow: #ffd061;
  --green: #e7eddf;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid #b5770e; outline-offset: 5px; }
figure { margin: 0; }
.skip { position: absolute; top: 0; left: -9999px; padding: 12px; background: var(--ink); color: white; z-index: 5; }
.skip:focus { left: 12px; }
.wrap { width: min(1100px, calc(100% - 64px)); margin: auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 80px; border-bottom: 1px solid var(--line); }
.home { font-size: 13px; font-weight: 750; letter-spacing: .04em; text-decoration: none; }
.topbar nav { display: flex; gap: 24px; align-items: center; font-size: 13px; }
.topbar nav a { text-decoration: none; }
.topbar nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: .88fr 1.12fr; gap: 58px; align-items: center; padding: 72px 0 78px; }
.game-name { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.game-name img { width: 46px; height: 46px; border-radius: 11px; }
.game-name p { margin: 0; font-size: 18px; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
.game-name small { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
h1 { margin: 0 0 24px; font-size: clamp(36px, 4.1vw, 57px); line-height: 1.27; letter-spacing: -.065em; word-break: keep-all; }
.hero-copy > p { margin: 0 0 25px; max-width: 370px; color: var(--muted); font-size: 16px; }
.hero-copy .status { margin: 27px 0 0; font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.store-button { display: inline-flex; align-items: center; gap: 16px; min-height: 48px; padding: 10px 18px; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 750; text-decoration: none; }
.store-button:hover { background: #3a5752; }
.jump { display: inline-flex; gap: 24px; align-items: center; padding: 12px 0 9px; border-bottom: 2px solid var(--ink); font-weight: 750; text-decoration: none; }
.jump:hover { border-color: #b5770e; }
.board-window { position: relative; overflow: hidden; aspect-ratio: 1080 / 940; border-radius: 10px; background: #e9eddc; }
.board-window img { position: absolute; inset: 0 auto auto 0; width: 100%; height: auto; transform: translateY(-27%); }
.puzzle figcaption { display: flex; justify-content: space-between; gap: 15px; padding-top: 14px; color: var(--muted); font-size: 12px; }
.puzzle figcaption a { white-space: nowrap; }
.rules { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 58px; padding: 40px 0 60px; }
.rules h2 { margin: 0; max-width: 420px; font-size: 25px; line-height: 1.5; letter-spacing: -.045em; word-break: keep-all; }
.rules p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.rules .tip { font-size: 13px; }
.screens { background: var(--green); padding: 66px 0 70px; }
.screens-header { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.screens-header h2 { margin: 0; font-size: 30px; line-height: 1.3; letter-spacing: -.04em; }
.screens-header p { font-size: 13px; color: var(--muted); margin: 0; }
.screens-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: 58px; align-items: center; }
.screens-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.screens-pair img { width: 100%; height: auto; border: 1px solid #a8b9a8; border-radius: 5px; }
.screens-pair figcaption { padding-top: 10px; font-size: 12px; color: var(--muted); }
.game-notes h3 { margin: 0 0 17px; font-size: 26px; line-height: 1.4; letter-spacing: -.045em; word-break: keep-all; }
.game-notes p { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.game-notes .details { margin: 29px 0 0; border-top: 1px solid #bfcdbb; padding-top: 20px; font-size: 13px; }
.developer { display: grid; grid-template-columns: .88fr 1.12fr; gap: 58px; align-items: start; padding: 54px 0 60px; }
.developer h2 { margin: 0; font-size: 19px; letter-spacing: -.035em; }
.developer p { margin: 0 0 15px; font-size: 14px; color: var(--muted); }
.developer a { font-size: 14px; }
footer { border-top: 1px solid var(--line); padding: 23px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--muted); }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 20px; }
@media (max-width: 800px) {
  .wrap { width: min(1100px, calc(100% - 40px)); }
  .hero { gap: 30px; padding: 48px 0; }
  h1 { font-size: 39px; }
  .game-name { margin-bottom: 25px; }
  .rules, .screens-layout, .developer { gap: 30px; }
  .screens-header { align-items: start; flex-direction: column; gap: 10px; }
  .screens-layout { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .topbar { min-height: 62px; }
  .topbar nav { gap: 18px; }
  .topbar .screen-link { display: none; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 36px 0 38px; }
  .game-name { margin-bottom: 25px; }
  h1 { font-size: clamp(33px, 9vw, 43px); }
  .hero-copy > p { font-size: 15px; max-width: 420px; }
  .hero-copy .status { margin-top: 19px; }
  .puzzle figcaption { font-size: 11px; }
  .rules { grid-template-columns: 1fr; gap: 21px; padding: 30px 0 39px; }
  .rules h2 { font-size: 23px; }
  .screens { padding: 38px 0 42px; }
  .screens-header h2 { font-size: 27px; }
  .screens-layout { grid-template-columns: 1fr; gap: 32px; }
  .screens-pair { gap: 12px; }
  .game-notes h3 { font-size: 24px; }
  .developer { grid-template-columns: 1fr; gap: 17px; padding: 35px 0; }
  .footer-inner { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
