/* Shared playhouse palette, navigation and compact home poster. */
.club-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;
}
.club-page ::selection { background: var(--lilac); color: var(--ink); }
.club-page .header { width: 100%; height: 80px; background: var(--surface); border-bottom: 2px solid var(--line); }
.home-header-inner, .welcome-inner, .club-strip > div, .catalog, .info-page .main, .play-page .main { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.home-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.club-page .brand { gap: 12px; }
.club-page .brand img { width: 45px; height: 45px; }
.club-page .brand-copy > span { font-size: 27px; font-weight: 800; letter-spacing: -.04em; }
.club-page .brand-copy small { font-size: 11px; font-weight: 650; color: var(--ink); letter-spacing: .08em; }
.club-page .nav { gap: 24px; font-size: 14px; font-weight: 700; }
.club-page .nav > a { padding: 0 16px; color: var(--ink); }
.club-page .nav > a[aria-current] { background: var(--yellow); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.club-page .nav > a[aria-current]::after { content: none; }
.club-page .language { margin: 0; border-left: 1px solid var(--ink); padding-left: 16px; font-size: 12px; }
.club-page .language a { min-width: 44px; color: var(--ink); }
.club-page .language [aria-current] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.club-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: 260px; padding-block: 20px; }
.welcome h1 { font-size: clamp(44px, 4.8vw, 64px); font-weight: 800; line-height: 1.15; letter-spacing: -.035em; margin: 0; text-wrap: initial; }
.welcome h1 span { display: block; }
.welcome-art { position: relative; width: 100%; max-width: 300px; 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); }
/* Match canvas frame 0 before the animation script or image decoder is ready. */
.cat-still { position: absolute; left: 10%; top: 0; width: 80%; height: calc(100% * 744 / 769); overflow: hidden; pointer-events: none; }
.club-mascot { display: block; width: 600%; max-width: none; height: auto; }
.cat-playmate.is-static-fallback .cat-still { inset: 0; width: 100%; height: 100%; }
.cat-playmate.is-static-fallback .club-mascot { width: 100%; }
.club-strip { border-top: 2px solid var(--line); background: var(--surface); }
.club-strip > div { min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.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: 28px 64px; min-height: 480px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.catalog-title { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.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; }
.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 14px 14px; 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 { font-size: 12px; line-height: 1.8; 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); }
.club-page a:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; border-radius: 0; }
.club-page .footer { width: 100%; border-top: 2px solid var(--ink); padding: 24px max(48px, calc((100% - 1240px) / 2)); display: grid; grid-template-columns: 1fr auto; gap: 24px; background: var(--ink); color: var(--surface); font-size: 12px; }
.club-page .footer-brand > span:first-child { color: var(--yellow); }
.club-page .footer a:hover { color: var(--yellow); }
.club-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, .info-page .main, .play-page .main { width: calc(100% - 64px); }
  .game-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
  .welcome-inner { gap: 16px; min-height: 240px; }
  .welcome h1 { font-size: 50px; }
  .club-page .footer { padding-inline: 32px; }
}
@media (max-width:700px) {
  .home-header-inner { gap: 8px; }
  .home-header-inner, .welcome-inner, .club-strip > div, .catalog, .info-page .main, .play-page .main { width: calc(100% - 40px); }
  .club-page .header { height: 76px; }
  .club-page .brand { gap: 8px; }
  .club-page .brand img { width: 32px; height: 32px; }
  .club-page .brand-copy > span { font-size: 22px; }
  .club-page .brand-copy small { font-size: 9px; }
  .club-page .nav { gap: 0; }
  .club-page .nav > a { display: none; }
  .club-page .language { border: 0; padding: 0; font-size: 12px; }
  .club-page .language a { min-width: 28px; }
  .welcome-inner { grid-template-columns: minmax(0,1fr); min-height: 0; padding-block: 24px 8px; gap: 4px; }
  .welcome h1 { font-size: clamp(36px, 10.5vw, 48px); margin: 0; }
  .welcome-art { width: 190px; margin-top: 0; margin-right: 0; }
  .club-strip > div { min-height: 44px; justify-content: center; }
  .welcome-benefits { gap: 24px; font-size: 12px; }
  .catalog { padding-block: 24px 48px; min-height: 430px; }
  .section-head { margin-bottom: 20px; }
  .catalog-title { gap: 10px; }
  .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); }
  .cover-arrow { width: 27px; height: 27px; }
  .cover-arrow .icon { width: 17px; height: 17px; }
  .card-copy { padding: 8px 9px 10px; }
  .card-copy h3 { font-size: 16px; }
  .card-copy h3 a { padding-bottom: 6px; }
  .game-genre { font-size: 12px; margin-bottom: 12px; }
  .card-play { min-height: 44px; font-size: 13px; padding: 7px 9px; }
  .card-play .icon { width: 17px; height: 17px; }
  .club-page .footer { padding: 30px 20px 24px; gap: 18px; grid-template-columns: 1fr; font-size: 11px; }
  .club-page .footer-brand { gap: 12px; }
  .club-page .footer nav { gap: 28px; }
}
@media (max-width:359px) {
  .home-header-inner, .welcome-inner, .club-strip > div, .catalog, .info-page .main, .play-page .main { width: calc(100% - 32px); }
  .club-page .brand-copy > span { font-size: 20px; }
  .club-page .brand img { width: 28px; height: 28px; }
  .club-page .brand { gap: 6px; }
  .welcome h1 { font-size: 36px; }
  .welcome-art { width: 180px; margin-top: 0; }
  .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 .cat-still { 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; }
@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; } }

/* Information pages carry the same lettering, ink lines and yellow accents. */
.club-page .prose h1, .club-page .guide h2, .club-page .prose h2 { font-weight: 800; }
.club-page .prose h1 { letter-spacing: -.035em; }
.club-page .guide { border-top: 2px solid var(--ink); }
.club-page .quiet-button { border: 2px solid var(--ink); border-radius: 0; background: var(--surface); }
.club-page .quiet-button:hover { background: var(--yellow); }
.club-page .crumb:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.about-heading { background: var(--yellow); border: 2px solid var(--ink); padding: 32px 40px; }
.about-heading h1 { max-width: 800px; font-size: clamp(34px, 4vw, 50px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 20px; }
.about-heading p { max-width: 72ch; color: var(--ink); line-height: 1.85; }
.about-content { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: center; gap: 48px; padding: 40px 32px 0; }
.about-portrait { width: 100%; max-width: 280px; aspect-ratio: 960 / 769; justify-self: center; }
.about-copy p { margin-bottom: 20px; line-height: 1.9; }
.room-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; min-height: 48px; padding: 10px 20px; background: var(--yellow); border: 2px solid var(--ink); font-weight: 800; }
.room-link:hover { background: var(--ink); color: var(--surface); }
@media (max-width: 700px) {
  .about-heading { padding: 24px 20px; }
  .about-heading h1 { font-size: 34px; }
  .about-heading p { font-size: 15px; }
  .about-content { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 0 0; }
  .about-portrait { width: 200px; margin: 0; }
  .about-copy p { font-size: 15px; }
  .room-link { width: 100%; }
  .club-page.play-page .header { height: 65px; }
  .club-page.play-page .footer { display: none; }
}
