:root {
  color-scheme: light;
  --paper: #f7f7f3;
  --ink: #20211f;
  --muted: #6f716b;
  --line: #dedfd8;
  --accent: #b9452f;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
.page { width: min(100% - 96px, 960px); min-height: 100vh; min-height: 100dvh; margin-inline: auto; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 2.5vh, 26px); padding-block: clamp(18px, 4vh, 42px); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: clamp(14px, 3vh, 30px); border-bottom: 1px solid var(--line); }
.site-name { font-size: 15px; font-weight: 600; letter-spacing: .15em; }
.site-note { font-size: 12px; color: var(--muted); }
.intro { padding: 0; }
.eyebrow { margin: 0 0 clamp(8px, 1.8vh, 18px); font-size: 10px; letter-spacing: .2em; color: var(--accent); font-weight: 600; }
h1, h2, .author { font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif; }
h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); font-weight: 500; letter-spacing: .035em; line-height: 1.4; text-wrap: balance; }
.description { margin: clamp(10px, 2vh, 20px) 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; text-wrap: pretty; }
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.game { display: block; min-width: 0; padding: clamp(18px, 2.6vh, 26px) 30px clamp(18px, 2.4vh, 24px); color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: 5px; background: #fff; transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.game-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.number { font: italic 27px Georgia, serif; color: var(--muted); }
.portrait { display: block; width: clamp(52px, 8vh, 80px); height: clamp(52px, 8vh, 80px); overflow: hidden; border-radius: 50%; background: #f0f1eb; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portrait-luzheng img { object-fit: contain; transform: scale(1.15); transform-origin: center top; }
h2 { margin: 0; font-size: 29px; font-weight: 500; letter-spacing: .06em; }
.game-description { margin: 12px 0 clamp(14px, 2.8vh, 28px); font-size: 13px; line-height: 1.9; color: var(--muted); }
.game-link { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--accent); }
.arrow { font-size: 23px; line-height: 1; transition: transform 180ms ease; }
.game:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
@media (hover: hover) {
  .game:hover { border-color: #b8b8ad; transform: translateY(-3px); box-shadow: 0 10px 24px #20211f08; }
  .game:hover .arrow { transform: translate(2px, -2px); }
}
.play-note { margin: 0; font-size: 11px; color: var(--muted); text-align: center; line-height: 1.8; }
footer { margin-top: 0; padding: clamp(12px, 2.5vh, 26px) 0; border-top: 1px solid var(--line); text-align: center; }
.byline { display: flex; justify-content: center; align-items: baseline; gap: 12px; margin: 0; }
.byline > span:first-child { font-size: 11px; color: var(--muted); }
.author { font-size: 21px; letter-spacing: .08em; }
.footer-note { margin: 10px 0 0; font-size: 11px; color: var(--muted); line-height: 1.8; }
@media (max-width: 600px) {
  .page { width: calc(100% - 40px); }
  .site-note { font-size: 10px; }
  h1 { font-size: clamp(26px, 6.8vw, 37px); }
  .description { font-size: 12px; margin-top: 10px; }
  .games { grid-template-columns: 1fr; gap: 14px; }
  .game { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; padding: 18px 20px; }
  .game-top { grid-column: 2; grid-row: 1 / 3; margin: 0; align-self: start; }
  .number { display: none; }
  .portrait { width: 54px; height: 54px; }
  h2 { grid-column: 1; grid-row: 1; font-size: 26px; }
  .game-description { grid-column: 1; grid-row: 2; margin: 8px 0 14px; font-size: 12px; }
  .game-description br { display: none; }
  .game-description .detail { display: none; }
  .game-link { grid-column: 1 / -1; padding-top: 12px; }
  .author { font-size: 20px; }
  .footer-note { margin-top: 6px; }
}
/* Short viewports use horizontal entries and reserve room for the author. */
@media (max-height: 700px) and (min-width: 480px) {
  .page { width: min(100% - 48px, 960px); }
  .masthead { padding-block: 10px; }
  main { gap: 8px; padding-block: 10px; }
  .eyebrow, .description, .footer-note { display: none; }
  h1 { font-size: 27px; line-height: 1.2; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .game { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; padding: 14px 18px; }
  .game-top { grid-column: 2; grid-row: 1 / 3; margin: 0; align-self: start; }
  .number { display: none; }
  .portrait { width: 44px; height: 44px; }
  h2 { grid-column: 1; grid-row: 1; font-size: 24px; }
  .game-description { grid-column: 1; grid-row: 2; margin: 6px 0 12px; font-size: 12px; }
  .game-description br, .game-description .detail { display: none; }
  .game-link { grid-column: 1 / -1; padding-top: 10px; }
  footer { padding-block: 10px; }
  .author { font-size: 18px; }
}
@media (max-height: 670px) and (max-width: 479px) {
  .eyebrow, .description, .footer-note { display: none; }
  main { gap: 14px; padding-block: 14px; }
  .masthead { padding-block: 12px; }
  .game { padding: 15px 18px; }
  footer { padding-block: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .game, .arrow { transition: none; }
  .game:hover, .game:hover .arrow { transform: none; }
}
