:root {
  color-scheme: light;
  --ink: #171713;
  --muted: #77766f;
  --paper: #f4f1eb;
  --card: #fffdf9;
  --line: #dcd8cf;
  --accent: #b43d32;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 4%, rgba(180, 61, 50, .075), transparent 25rem),
    var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
}

main, footer { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.site-head {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 50%; font: 600 15px/1 Georgia, serif; letter-spacing: 0; }
.tagline { color: var(--muted); font-size: 12px; letter-spacing: .08em; }

.hero { padding: 88px 0 76px; }
.eyebrow, .game-kind { margin: 0 0 15px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .19em; }
h1 { margin: 0; max-width: 680px; font: 500 clamp(48px, 7.2vw, 86px)/1.04 "STKaiti", "KaiTi", serif; letter-spacing: .01em; }
.intro { max-width: 440px; margin: 25px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }

.games { padding-bottom: 82px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 14px; letter-spacing: .07em; }
.section-head span { color: var(--muted); font-size: 12px; }
.game-card {
  display: grid;
  grid-template-columns: minmax(250px, 42%) 1fr;
  grid-template-rows: auto 1fr;
  min-height: 350px;
  overflow: hidden;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 18px 60px rgba(45, 38, 28, .055);
  transition: transform .2s ease, box-shadow .2s ease;
}
.game-card:hover { transform: translateY(-3px); box-shadow: 0 22px 70px rgba(45, 38, 28, .11); }
.board-preview {
  grid-row: 1 / 3;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 350px;
  background: #d5b176;
  background-image:
    linear-gradient(rgba(75, 47, 20, .32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 47, 20, .32) 1px, transparent 1px);
  background-size: 52px 52px;
  background-position: center;
}
.board-preview::after { content: "楚 河　　汉 界"; position: absolute; color: rgba(72, 42, 16, .78); background: #d5b176; padding: 8px 16px; font: 24px "STKaiti", "KaiTi", serif; letter-spacing: .15em; transform: rotate(-4deg); }
.piece { position: absolute; z-index: 2; width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; background: #ecd09d; box-shadow: inset 0 0 0 4px #ead09e, inset 0 0 0 6px currentColor, 0 6px 12px rgba(50, 29, 12, .25); font: 700 33px "STKaiti", "KaiTi", serif; }
.piece.red { left: 20%; bottom: 17%; color: #ad342b; transform: rotate(-7deg); }
.piece.black { right: 17%; top: 15%; color: #24221e; transform: rotate(8deg); }
.game-info { display: flex; justify-content: space-between; align-items: flex-start; padding: 47px 50px 18px; }
.game-info h3 { margin: 0; font: 500 38px "STKaiti", "KaiTi", serif; }
.game-kind { margin-bottom: 9px; }
.enter { margin-top: 17px; font-size: 13px; color: var(--muted); }
.enter b { display: inline-block; margin-left: 9px; color: var(--accent); font-size: 18px; transition: transform .2s; }
.game-card:hover .enter b { transform: translateX(5px); }
.game-desc { align-self: end; max-width: 480px; margin: 0; padding: 0 50px 48px; color: var(--muted); font-size: 14px; line-height: 1.8; }

footer { display: flex; justify-content: space-between; padding: 25px 0 34px; border-top: 1px solid var(--line); color: #97958e; font-size: 11px; }

@media (max-width: 720px) {
  main, footer { width: min(100% - 28px, 600px); }
  .site-head { height: 72px; }
  .hero { padding: 66px 0 58px; }
  h1 { font-size: clamp(45px, 14vw, 65px); }
  .game-card { display: block; }
  .board-preview { min-height: 260px; }
  .game-info { padding: 32px 28px 14px; }
  .game-info h3 { font-size: 34px; }
  .game-desc { padding: 0 28px 34px; }
}

@media (max-width: 430px) {
  .tagline { display: none; }
  .hero { padding-top: 50px; }
  .enter { font-size: 0; }
  .enter b { font-size: 21px; }
  footer { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
