/* 首页独立的街机海报系统；辅助页面沿用 site.css。 */
.home-page {
  --page: #f5f4ef;
  --surface: #fffdf5;
  --ink: #222321;
  --muted: #51534d;
  --accent: #222321;
  --yellow: #f2e85c;
  --lilac: #c9b6ee;
  --orange: #ff9255;
  --line: #222321;
  color: var(--ink);
  background: var(--page);
  -webkit-tap-highlight-color: #22232122;
}
.home-page ::selection { background: var(--lilac); color: var(--ink); }
.home-page .header { width: 100%; height: 96px; background: var(--surface); border-bottom: 2px solid var(--line); }
.home-header-inner, .welcome-inner, .club-strip > div, .catalog { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.home-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.home-page .brand { gap: 12px; }
.home-page .brand img { width: 45px; height: 45px; }
.home-page .brand-copy > span { font-size: 27px; font-weight: 800; letter-spacing: -.06em; }
.home-page .brand-copy small { font-size: 11px; font-weight: 650; color: var(--ink); letter-spacing: .08em; }
.home-page .nav { gap: 24px; font-size: 14px; font-weight: 700; }
.home-page .nav > a { padding: 0 16px; color: var(--ink); }
.home-page .nav > a[aria-current] { background: var(--yellow); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.home-page .nav > a[aria-current]::after { content: none; }
.home-page .language { margin: 0; border-left: 1px solid var(--ink); padding-left: 16px; font-size: 12px; }
.home-page .language a { min-width: 44px; color: var(--ink); }
.home-page .language [aria-current] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.home-page .nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.home-page .main { width: 100%; margin: 0; padding-bottom: 0; }
.welcome { background: var(--yellow); border-bottom: 2px solid var(--line); }
.welcome-inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; min-height: 420px; padding-block: 40px 32px; }
.club-label { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 750; letter-spacing: .07em; }
.label-dot { width: 9px; height: 9px; background: var(--ink); border-radius: 50%; }
.welcome h1 { font-size: clamp(48px, 5.2vw, 76px); font-weight: 800; line-height: 1.15; letter-spacing: -.055em; margin: 18px 0; text-wrap: initial; }
.welcome h1 span { display: block; }
.welcome p { max-width: 440px; font-size: 16px; line-height: 1.8; color: var(--ink); }
.browse-games { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; background: var(--ink); color: var(--surface); min-height: 48px; padding: 10px 19px; font-size: 14px; font-weight: 750; margin-top: 24px; transition: background .18s, color .18s; }
.browse-games:hover { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.browse-games .icon { transform: rotate(90deg); }
.welcome-art { position: relative; width: 100%; max-width: 480px; justify-self: end; }
.welcome-art::before { content: ""; position: absolute; width: 64%; aspect-ratio: 1; left: 20%; top: 12%; border: 3px solid var(--ink); border-radius: 50%; background: var(--lilac); }
.club-mascot { position: relative; z-index: 1; width: 100%; height: auto; }
.art-stamp { position: absolute; right: 2%; top: -2%; display: grid; align-content: center; width: 86px; height: 86px; background: var(--surface); border: 2px solid var(--ink); border-radius: 50%; transform: rotate(12deg); text-align: center; line-height: 1.1; font-size: 18px; font-weight: 800; z-index: 2; }
.club-strip { border-top: 2px solid var(--line); background: var(--surface); }
.club-strip > div { min-height: 60px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.strip-name { font-size: 14px; font-weight: 800; letter-spacing: .05em; }
.welcome-benefits { display: flex; align-items: center; gap: 30px; list-style: none; padding: 0; margin: 0; font-size: 13px; font-weight: 650; }
.welcome-benefits li { display: flex; align-items: center; gap: 7px; }
.welcome-benefits .icon { width: 17px; height: 17px; }
.catalog { padding-block: 42px 72px; min-height: 610px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.catalog-title { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.section-index { font-size: 13px; font-weight: 800; align-self: center; }
.section-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.section-head p { font-size: 13px; color: var(--muted); }
.count { border: 1px solid var(--ink); background: var(--lilac); padding: 3px 9px; font-size: 12px; font-weight: 700; transform: rotate(-3deg); }
.game-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-rows: 1fr; gap: 24px; align-items: stretch; }
.game-card { min-width: 0; border: 2px solid var(--ink); border-radius: 0; background: var(--surface); box-shadow: 5px 5px 0 var(--ink); display: flex; flex-direction: column; }
.card-label { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; font-size: 10px; font-weight: 800; letter-spacing: .08em; border-bottom: 2px solid var(--ink); }
.cover { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 2px solid var(--ink); position: relative; background: #d1e1d6; }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .25s ease; }
.cover-arrow { display: grid; place-items: center; width: 36px; height: 36px; background: var(--lilac); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); position: absolute; right: 0; bottom: 0; }
.cover-arrow .icon { transform: rotate(-45deg); }
.card-copy { padding: 10px 16px 4px; display: flex; flex: 1; flex-direction: column; }
.card-copy h3 { font-size: 19px; font-weight: 800; letter-spacing: -.035em; }
.card-copy h3 a { word-break: keep-all; min-height: 44px; display: flex; align-items: center; }
.card-copy h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.game-genre, .game-language { font-size: 12px; line-height: 1.8; }
.game-language { margin-bottom: 16px; }
.card-actions { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.card-play { min-height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; background: var(--yellow); border: 2px solid var(--ink); font-weight: 800; font-size: 14px; transition: background .18s, color .18s; }
.card-play:hover { background: var(--ink); color: var(--surface); }
.card-play:active { background: var(--lilac); color: var(--ink); }
.detail-link { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink); font-size: 12px; }
.detail-link .icon { width: 13px; height: 13px; }
.detail-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-page a:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; border-radius: 0; }
.home-page .footer { width: 100%; border-top: 2px solid var(--ink); padding: 40px max(48px, calc((100% - 1240px) / 2)) 24px; display: grid; grid-template-columns: 1fr auto; gap: 24px; background: var(--ink); color: var(--surface); font-size: 12px; }
.footer-motto { grid-column: 1 / -1; position: relative; font-size: clamp(30px, 4vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -.04em; padding-bottom: 30px; border-bottom: 1px solid #fffdf54d; }
.footer-motto svg { position: absolute; right: 0; top: 0; width: 74px; height: 74px; color: var(--yellow); }
.home-page .footer-brand > span:first-child { color: var(--yellow); }
.home-page .footer a:hover { color: var(--yellow); }
.home-page .footer a:focus-visible { outline-color: var(--yellow); }
@media (hover:hover) and (pointer:fine) { .cover:hover img { transform: scale(1.035); } }
@media (max-width:1100px) {
  .home-header-inner, .welcome-inner, .club-strip > div, .catalog { width: calc(100% - 64px); }
  .game-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
  .welcome-inner { gap: 16px; min-height: 390px; }
  .welcome h1 { font-size: 56px; }
  .home-page .footer { padding-inline: 32px; }
}
@media (max-width:700px) {
  .home-header-inner { gap: 8px; }
  .home-header-inner, .welcome-inner, .club-strip > div, .catalog { width: calc(100% - 40px); }
  .home-page .header { height: 80px; }
  .home-page .brand { gap: 8px; }
  .home-page .brand img { width: 32px; height: 32px; }
  .home-page .brand-copy > span { font-size: 22px; }
  .home-page .brand-copy small { font-size: 9px; }
  .home-page .nav { gap: 0; }
  .home-page .nav > a { display: none; }
  .home-page .language { border: 0; padding: 0; font-size: 12px; }
  .home-page .language a { min-width: 28px; }
  .welcome-inner { grid-template-columns: minmax(0,1fr); min-height: 0; padding-block: 28px 0; gap: 6px; }
  .club-label { font-size: 10px; }
  .welcome h1 { font-size: clamp(43px, 11.5vw, 64px); margin: 16px 0; }
  .welcome p { font-size: 16px; max-width: 360px; }
  .browse-games { margin-top: 20px; min-height: 46px; font-size: 13px; }
  .welcome-art { width: min(80%,290px); margin-top: 8px; margin-right: -12px; }
  .art-stamp { width: 56px; height: 56px; font-size: 13px; right: 8px; top: 14%; }
  .club-strip > div { min-height: 50px; justify-content: center; }
  .strip-name { display: none; }
  .welcome-benefits { gap: 24px; font-size: 12px; }
  .catalog { padding-block: 30px 54px; min-height: 510px; }
  .section-head { margin-bottom: 24px; }
  .catalog-title { gap: 10px; }
  .section-index { font-size: 11px; }
  .section-head h2 { font-size: 25px; }
  .section-head > p { display: none; }
  .count { font-size: 11px; padding: 2px 7px; }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .game-card { box-shadow: 4px 4px 0 var(--ink); }
  .card-label { font-size: 8px; padding: 7px 8px; letter-spacing: .04em; }
  .cover-arrow { width: 27px; height: 27px; }
  .cover-arrow .icon { width: 17px; height: 17px; }
  .card-copy { padding: 8px 9px 2px; }
  .card-copy h3 { font-size: 16px; }
  .card-copy h3 a { padding-bottom: 6px; }
  .game-genre, .game-language { font-size: 12px; }
  .game-language { margin-bottom: 12px; }
  .card-play { min-height: 44px; font-size: 13px; padding: 7px 9px; }
  .card-play .icon { width: 17px; height: 17px; }
  .home-page .footer { padding: 30px 20px 24px; gap: 18px; grid-template-columns: 1fr; font-size: 11px; }
  .footer-motto { font-size: clamp(24px, 7.5vw, 32px); padding-right: 56px; padding-bottom: 24px; }
  .footer-motto svg { width: 46px; height: 46px; top: 10px; }
  .home-page .footer-brand { gap: 12px; }
  .home-page .footer nav { gap: 28px; }
}
@media (max-width:359px) {
  .home-header-inner, .welcome-inner, .club-strip > div, .catalog { width: calc(100% - 32px); }
  .home-page .brand-copy > span { font-size: 20px; }
  .home-page .brand img { width: 28px; height: 28px; }
  .home-page .brand { gap: 6px; }
  .welcome h1 { font-size: 40px; }
  .welcome-art { width: 80%; margin-top: 8px; }
  .card-copy { padding-inline: 7px; }
  .card-copy h3 { font-size: 15px; }
  .card-play { padding-inline: 7px; }
}

.cat-playmate { display: block; position: relative; z-index: 1; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; aspect-ratio: 960 / 769; transform: translateX(var(--cat-look-x, 0px)) rotate(var(--cat-turn, 0deg)); transform-origin: 55% 92%; transition: transform .18s ease-out; touch-action: manipulation; }
.cat-playmate:disabled { cursor: default; }
.cat-playmate:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 12px; }
.cat-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cat-playmate.is-ready .club-mascot { visibility: hidden; }
.cat-playmate.is-awake .cat-canvas { animation: cat-breath 5s ease-in-out infinite; transform-origin: 55% 95%; }
.cat-playmate[data-state^="catch-"] .cat-canvas, .cat-playmate[data-state="groom"] .cat-canvas { animation: none; }
.cat-response { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); z-index: 3; padding: 5px 15px; border: 2px solid var(--ink); border-radius: 24px; background: var(--surface); color: var(--ink); font-weight: 750; font-size: 14px; pointer-events: none; }
@keyframes cat-breath { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.008); } }
@media (prefers-reduced-motion: reduce) { .cat-playmate { transform: none; } .cat-playmate .cat-canvas { animation: none; } }
