/* King Lepak — plastic-stool palette on marble-table white */
:root {
  --marble: #f6f6f2;
  --ink: #1b1e26;
  --ink-soft: #545a66;
  --stool-red: #d6382b;
  --stool-blue: #1f4fa3;
  --stool-green: #2f8f5b;
  --line: #dcdcd4;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --font-latin: "Bricolage Grotesque", system-ui, sans-serif;
  --font-cjk: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--marble);
  color: var(--ink);
  font-family: var(--font-latin), var(--font-cjk);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--stool-blue); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--stool-blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand {
  font-weight: 800; font-size: 20px; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand svg { width: 28px; height: 28px; }
.top nav a { color: var(--ink-soft); text-decoration: none; margin-left: 18px; font-size: 15px; }
.top nav a:hover { color: var(--ink); }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
  padding: 40px 0 56px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(52px, 9vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero h1 span { display: block; }
.hero .lede { font-size: 20px; margin: 24px 0 6px; max-width: 30em; }
.hero .lede-en { color: var(--ink-soft); margin: 0; max-width: 34em; }
.stools { width: 100%; max-width: 340px; justify-self: center; }

/* games */
.games { display: grid; gap: 20px; padding-bottom: 64px; }
.game {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}
.game .seat {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--c);
  display: grid; place-items: center;
  color: #fff; font-size: 40px;
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.18);
}
.game h2 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
.game .en { margin: 2px 0 10px; color: var(--ink-soft); font-size: 15px; }
.game p { margin: 0 0 6px; max-width: 38em; }
.game .how { color: var(--ink-soft); font-size: 15px; }
.play {
  display: inline-block; white-space: nowrap;
  background: var(--c); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 17px;
  padding: 14px 24px; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.play:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.15); }
.play .sub { display: block; font-weight: 500; font-size: 12px; opacity: .85; text-align: center; }

.red { --c: var(--stool-red); }
.blue { --c: var(--stool-blue); }
.green { --c: var(--stool-green); }

/* about strip */
.about-strip {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.about-strip h2 { margin: 0 0 8px; font-size: 20px; }
.about-strip p { margin: 0 0 8px; color: var(--ink-soft); }

/* text pages */
.page { max-width: 720px; padding: 24px 20px 64px; margin: 0 auto; }
.page h1 { font-size: clamp(34px, 6vw, 48px); line-height: 1.05; letter-spacing: -0.02em; margin: 16px 0 8px; }
.page h2 { font-size: 21px; margin: 36px 0 8px; }
.page p, .page li { color: #2e333d; }
.page .updated { color: var(--ink-soft); font-size: 15px; }

/* footer */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--ink-soft); font-size: 14px;
}
footer .links a { color: var(--ink-soft); margin-right: 18px; }
footer p { margin: 10px 0 0; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .stools { max-width: 150px; grid-row: 1; justify-self: start; }
  .game { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .game .seat { width: 64px; height: 64px; font-size: 28px; }
  .play { text-align: center; }
  .about-strip { grid-template-columns: 1fr; }
  .top nav a { margin-left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .play { transition: none; }
  .play:hover { transform: none; }
}
