/* SLOWHAND STUDIO - design direction D
   ground #F5F5F1 · ink #222426 · secondary #51574F · sage #55664A · line #D9DAD3 */

@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url('/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 600; font-display: swap; src: url('/fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); }
/* Local CJK subset keeps browsers without PingFang/YaHei from choosing a serif fallback. */
@font-face { font-family: 'Studio Sans CJK'; font-weight: 400 700; font-style: normal; font-display: swap; src: url('/fonts/studio-cjk-sans-400.woff2') format('woff2'); }

:root {
  --ground: #F5F5F1; --ink: #222426; --ink-2: #3C4140; --muted: #51574F; --sage: #55664A;
  --line: #D9DAD3; --field: #8C9189; --placeholder: #E3E4DD; --white: #FFFFFF; --stage: #1B1D1F;
  --cjk: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans', 'Yu Gothic', 'Studio Sans CJK', 'Noto Sans CJK SC', 'Noto Sans JP', 'Noto Sans SC';
  --body: 'Inter', 'Helvetica Neue', Arial, var(--cjk), sans-serif;
  --display: 'Space Grotesk', 'Inter', 'Helvetica Neue', Arial, var(--cjk), sans-serif;
}
* { box-sizing: border-box; }
.game-status { position: absolute; z-index: 3; bottom: 8px; left: 8px; right: 8px; background: #f5f5f1; color: #222426; padding: 10px; font-size: 13px; }
.game-status:empty { display: none; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: var(--sage); }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 880px; }
.display { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
html:lang(ja) .display, html:lang(zh) .display { letter-spacing: 0; font-weight: 600; }
.label { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
html:lang(ja) .label, html:lang(zh) .label { font-size: 12px; letter-spacing: 0.08em; }
.muted { color: var(--muted); }
.sage { color: var(--sage); }
.ink { color: var(--ink); }

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; background: var(--ink); color: var(--ground); border: 1px solid var(--ink); border-radius: 4px; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: #000; color: var(--ground); }
.btn-line { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; background: none; color: var(--ink); border: 1px solid var(--ink); border-radius: 4px; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn-line:hover { background: var(--ink); color: var(--ground); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 14px; }
.textlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; background: none; border: none; padding: 0; cursor: pointer; }
.plainlink { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand span { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 14px; }
.nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.nav .btn-line { padding: 0 18px; }
.lang { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.lang a { color: var(--muted); padding: 0 4px; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.lang a[aria-current='true'] { color: var(--ink); font-weight: 600; }

/* hero */
.hero { padding-top: 96px; padding-bottom: 80px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 48px; }
.hero h1 { flex: 1 1 560px; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -0.035em; }
html:lang(ja) .hero h1, html:lang(zh) .hero h1 { letter-spacing: 0; line-height: 1.2; font-size: clamp(30px, 4.6vw, 56px); }
.hero-side { flex: 0 1 340px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: 10px; }
.hero-side p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.hero-side small { font-size: 14px; color: var(--muted); }


/* game grid */
.grid { padding-top: 56px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 64px 40px; }
.grid.single { grid-template-columns: minmax(0, 1fr); }
.rule { border-top: 1px solid var(--ink); }
.card { display: flex; flex-direction: column; gap: 20px; }
.card-body { display: flex; flex-direction: column; gap: 20px; }
/* A single game is shown large: picture on the left, text on the right. */
.card.feature { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 28px 48px; }
.card.feature .shot { flex: 3 1 520px; }
.card.feature .card-body { flex: 2 1 300px; justify-content: flex-end; gap: 28px; }
.card.feature h3 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; }
.card.feature .card-text { gap: 16px; }
.card.feature .card-text p { font-size: 17px; line-height: 1.6; }
.shot { position: relative; aspect-ratio: 16 / 10; background: var(--placeholder); border-radius: 4px; overflow: hidden; display: block; }
.shot img, .shot video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .shot img, .card:hover .shot video { transform: scale(1.035); }
.badge { position: absolute; left: 12px; top: 12px; padding: 5px 10px; background: var(--ground); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; border-radius: 2px; }
.card-text { display: flex; flex-direction: column; gap: 10px; }
.card-meta { display: flex; justify-content: space-between; gap: 16px; }
.card h3 { font-size: 30px; line-height: 1.15; }
.card h3 a { text-decoration: none; }
.card p { color: var(--muted); }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; border-top: 1px solid var(--line); padding-top: 6px; font-size: 13px; color: var(--muted); }
.empty { padding: 96px 0; text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* footer */
.site-footer { border-top: 1px solid var(--ink); }
.footer-top { padding-top: 64px; padding-bottom: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.footer-about { flex: 1 1 400px; max-width: 540px; display: flex; flex-direction: column; gap: 16px; }
.footer-about p { font-size: 15px; color: var(--muted); }
.footer-about p:first-of-type { font-family: var(--display); font-size: 20px; font-weight: 500; color: var(--ink); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 16px 64px; font-size: 14px; }
.footer-cols div { display: flex; flex-direction: column; gap: 4px; }
.footer-cols a { text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.footer-bottom { padding: 20px 0 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.footer-bottom strong { font-weight: 600; letter-spacing: 0.22em; color: var(--ink); }

/* game detail */
.detail-top { padding-top: 32px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.detail-cols { display: flex; flex-wrap: wrap; gap: 40px 48px; }
.gallery { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.thumb { aspect-ratio: 16 / 10; background: var(--placeholder); border: 2px solid transparent; border-radius: 4px; padding: 0; overflow: hidden; cursor: pointer; }
.thumb[aria-pressed='true'] { border-color: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.detail-info h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
html:lang(ja) .detail-info h1, html:lang(zh) .detail-info h1 { letter-spacing: 0; line-height: 1.2; }
.detail-info > p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 8px; }
.cta small { font-size: 14px; color: var(--muted); }
.facts { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 20px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.strip { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.strip .wrap { padding-top: 32px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 28px 40px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat b { font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.stat small { font-size: 13px; color: var(--muted); }
.ratio { display: flex; height: 6px; gap: 2px; }
.ratio i { background: var(--sage); }
.ratio u { background: #C3C6BC; }
.about-game { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 48px 72px; }
.about-game h2, .notes h2 { font-size: 28px; }
.story { flex: 3 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.story p { font-size: 17px; line-height: 1.7; color: var(--ink-2); white-space: pre-line; }
.making { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.rows { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; font-size: 15px; }
.rows dt, .rows dd { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.rows dt { color: var(--muted); padding-right: 32px; }
.rows dt:last-of-type, .rows dd:last-of-type { border-bottom: 1px solid var(--line); }
.notes-section { border-top: 1px solid var(--line); }
.notes { padding-top: 72px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 32px; }
.note-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px 40px; }
.note { margin: 0; display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--ink); padding-top: 20px; }
.note blockquote { margin: 0; font-size: 17px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.note figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.note figcaption b { font-weight: 600; color: var(--ink); }
.rate-form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; border-top: 1px solid var(--line); padding-top: 24px; }
.rate-form fieldset { border: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.rate-form legend { padding: 0 0 8px; font-weight: 600; }
.radio { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.radio input { width: 20px; height: 20px; accent-color: var(--ink); }
.notice { border-left: none; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: 15px; }
.flash { background: var(--ink); color: var(--ground); padding: 14px 18px; border-radius: 4px; font-size: 15px; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .lab { font-size: 14px; font-weight: 500; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--field); border-radius: 4px; background: var(--white); color: var(--ink); }
textarea.input { min-height: 120px; resize: vertical; }

/* play page */
.play { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--ground); }
.play-bar { flex: none; min-height: 56px; padding: 0 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.play-bar > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.stage { flex: 1; min-height: 0; position: relative; background: var(--stage); }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--stage); }
.overlay { position: absolute; inset: 0; background: rgba(27, 29, 31, 0.82); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 3; overflow: auto; }
.dialog { width: 100%; max-width: 480px; padding: 40px; background: var(--ground); border-radius: 4px; display: flex; flex-direction: column; gap: 20px; }
.dialog h2 { font-size: 30px; line-height: 1.15; }
.dialog p { color: var(--muted); }
.dialog .actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 4px; }
.game-loader { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--stage); color: var(--ground); font-family: var(--body); text-align: center; transition: opacity 0.4s ease, visibility 0.4s; }
.game-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.game-loader-inner { width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.game-loader-label { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; color: #9AA393; }
.game-loader-title { margin: 0; font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.game-loader-bar { position: relative; width: 100%; height: 2px; margin-top: 6px; background: rgba(245, 245, 241, 0.14); overflow: hidden; border-radius: 1px; }
.game-loader-bar span { position: absolute; top: 0; left: 0; width: 34%; height: 100%; background: #8FA37F; animation: game-loader-slide 1.4s ease-in-out infinite alternate; }
.game-loader.failed .game-loader-bar span { animation: none; width: 100%; background: #B5715C; }
.game-loader-text { margin: 0; font-size: 14px; color: #B9BDB5; }
.game-loader-reload { min-height: 44px; padding: 0 20px; margin-top: 4px; background: none; color: var(--ground); border: 1px solid var(--ground); border-radius: 4px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.game-loader-reload:hover { background: var(--ground); color: var(--ink); }
@keyframes game-loader-slide { from { transform: translateX(0); } to { transform: translateX(194%); } }
@media (prefers-reduced-motion: reduce) { .game-loader-bar span { animation-duration: 4s; } }
.rotate-hint { display: none; position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; background: var(--ground); border-radius: 4px; padding: 12px 16px; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; }
@media (orientation: portrait) and (max-width: 720px) { .rotate-hint.on { display: flex; } }

/* sign-in / sign-up */
.auth { display: flex; flex-wrap: wrap; min-height: 80vh; }
.auth-main { flex: 1 1 420px; padding: 56px 24px 72px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.auth-main h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.03em; text-align: center; }
.auth-side { flex: 0 1 520px; padding: 72px 48px 56px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 32px; }
.auth-side section { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--ink); padding-top: 18px; }
.auth-side h2 { font-size: 22px; }
.auth-side ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) { .auth-side { flex-basis: 100%; border-left: none; border-top: 1px solid var(--line); padding: 40px 24px; } }

/* account and text pages */
.page { padding-top: 64px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.page h1 { font-size: clamp(34px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }
html:lang(ja) .page h1, html:lang(zh) .page h1, html:lang(ja) .auth-main h1, html:lang(zh) .auth-main h1 { letter-spacing: 0; }
.page h2 { font-size: 26px; }
.account-rows { margin: 0; display: grid; grid-template-columns: minmax(120px, 220px) 1fr; font-size: 15px; }
.account-rows dt, .account-rows dd { margin: 0; padding: 20px 0; border-top: 1px solid var(--line); }
.account-rows dt:first-of-type, .account-rows dd:first-of-type { border-top-color: var(--ink); }
.account-rows dt:last-of-type, .account-rows dd:last-of-type { border-bottom: 1px solid var(--line); }
.account-rows dt { color: var(--muted); }
.account-rows dd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; text-align: left; }
table.data th { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
table.data td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.prose { display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 720px; }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--ink); margin-top: 16px; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- dark surfaces ---------- */
.dark { background: var(--stage); color: var(--ground); }
.dark .label, .dark .muted, .dark small { color: #B4B9B0; }
.dark .label.sage { color: #A9C29A; }
.dark .label.ink { color: var(--ground); }
.dark a { color: var(--ground); }
.dark a:hover { color: #FFFFFF; }
.btn-light, .dark .btn-light { background: var(--ground); color: var(--ink); border-color: var(--ground); }
.btn-light:hover, .dark .btn-light:hover { background: #FFFFFF; color: var(--ink); }

/* ---------- header laid over the home hero ---------- */
.site-header.over { position: absolute; left: 0; right: 0; top: 0; z-index: 4; border-bottom-color: rgba(245, 245, 241, 0.16); color: var(--ground); }
.site-header.over a { color: var(--ground); }
.site-header.over .lang a { color: #B4B9B0; }
.site-header.over .lang a[aria-current='true'] { color: var(--ground); }
.site-header.over .btn-line { color: var(--ground); border-color: rgba(245, 245, 241, 0.6); }
.site-header.over .btn-line:hover { background: var(--ground); color: var(--ink); }

/* ---------- home hero: the featured game's picture behind the promise ---------- */
.hero-x { position: relative; min-height: clamp(560px, 88vh, 840px); display: flex; align-items: flex-end; overflow: hidden;
  background-image: linear-gradient(rgba(245, 245, 241, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 245, 241, 0.045) 1px, transparent 1px); background-size: 56px 56px; }
.hero-x::before { content: ''; position: absolute; inset: 0; background-image: var(--hero-image, none); background-size: cover; background-position: center; transform: scale(1.06); animation: hero-drift 28s ease-out forwards; }
@keyframes hero-drift { to { transform: scale(1); } }
.hero-x-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 21, 22, 0.95) 0%, rgba(20, 21, 22, 0.82) 42%, rgba(20, 21, 22, 0.5) 100%), linear-gradient(0deg, rgba(20, 21, 22, 0.9) 0%, rgba(20, 21, 22, 0) 45%); }
.hero-x-in { position: relative; width: 100%; padding-top: 150px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px 48px; }
.hero-x-text { flex: 1 1 560px; max-width: 780px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-x h1 { font-size: clamp(38px, 6vw, 78px); line-height: 1.02; letter-spacing: -0.04em; }
:lang(ja) .hero-x h1, :lang(zh) .hero-x h1 { letter-spacing: 0; line-height: 1.16; font-size: clamp(34px, 5.2vw, 66px); }
.hero-x-text p { font-size: 18px; line-height: 1.6; color: #D5D8D0; max-width: 560px; }
.hero-x-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 8px; }
.hero-x-feature { flex: 0 1 320px; display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid rgba(245, 245, 241, 0.5); text-decoration: none; }
.hero-x-feature b { font-size: 24px; font-weight: 500; line-height: 1.2; }
.hero-x-feature span:last-child { font-size: 14px; color: #D5D8D0; }

/* ---------- home sections ---------- */
.band { padding: 112px 0; }
.band + .band:not(.dark) { border-top: 1px solid var(--line); }
.band-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; max-width: 780px; }
.band-head .label { display: inline-flex; align-items: center; gap: 14px; }
.band-head .label i { font-style: normal; display: inline-flex; align-items: center; gap: 14px; color: var(--ink); }
.band-head .label i::after { content: ''; width: 28px; height: 1px; background: currentColor; }
.dark .band-head .label i { color: var(--ground); }
.band-head h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
:lang(ja) .band-head h2, :lang(zh) .band-head h2 { letter-spacing: 0; line-height: 1.25; }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 48px 56px; margin: 0; padding: 0; list-style: none; }
.trio > * { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--ink); padding-top: 24px; }
.dark .trio > * { border-top-color: rgba(245, 245, 241, 0.5); }
.trio svg { color: var(--sage); }
.trio h3 { font-size: 24px; line-height: 1.2; }
.trio p { font-size: 16px; line-height: 1.65; color: var(--muted); }
.dark .trio p { color: #C9CDC4; }
.steps b { font-size: 40px; font-weight: 500; line-height: 1; color: #A9C29A; }
.band-games { padding-bottom: 24px; }
.band-games .band-head { margin-bottom: 40px; }
.band-games .grid { padding-top: 48px; }

/* ---------- game page: dark top band so the pictures stand out ---------- */
.detail-hero .detail-info > p { color: #D5D8D0; }
.detail-hero .cta small { color: #B4B9B0; }
.detail-hero .facts { border-top-color: rgba(245, 245, 241, 0.25); }
.detail-hero .facts dt { color: #B4B9B0; }
.detail-hero .shot, .detail-hero .thumb { background: #2A2D2F; }
.detail-hero .thumb[aria-pressed='true'] { border-color: var(--ground); }
.detail-hero + .strip { border-top: none; }

/* ---------- gentle entrance when a block scrolls into view ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-x::before { animation: none; transform: none; }
  .shot img { transition: none; }
}

/* phone */
@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .brand span { font-size: 11px; letter-spacing: 0.2em; }
  .hero-x-in { padding-top: 168px; padding-bottom: 48px; }
  .hero-x-text p { font-size: 16px; }
  .band { padding: 72px 0; }
  .band-head { margin-bottom: 40px; }
  .band-games .grid { padding-top: 32px; }
  .grid { padding-top: 32px; padding-bottom: 56px; gap: 48px; }
  .card h3 { font-size: 26px; }
  .dialog { padding: 28px; }
  .about-game, .notes { padding-top: 48px; padding-bottom: 56px; }
  .account-rows { grid-template-columns: 1fr; }
  .account-rows dt { padding-bottom: 0; border-bottom: none !important; }
  .account-rows dd { border-top: none; padding-top: 6px; }
  .account-rows dt:first-of-type + dd { border-top: none; }
}

/* ---------- home, simplified: one short line, then the games at full size ---------- */
.intro { padding-top: 56px; padding-bottom: 44px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 48px; }
.intro h1 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -0.03em; }
:lang(ja) .intro h1, :lang(zh) .intro h1 { letter-spacing: 0; }
.grid { padding-top: 0; padding-bottom: 112px; gap: 72px 40px; }
.card h2 { font-size: 30px; line-height: 1.15; }
.card h2 a { text-decoration: none; }
.card.feature { grid-column: 1 / -1; flex-direction: column; flex-wrap: nowrap; gap: 28px; }
.card.feature .shot { flex: none; width: 100%; aspect-ratio: 16 / 9; }
.card.feature .card-body { flex: none; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.card.feature .card-text { flex: 1 1 480px; }
.card.feature h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; }
.card.feature .card-foot { flex: 0 1 auto; border-top: none; padding-top: 0; flex-direction: column; align-items: flex-end; gap: 14px; }
.card.feature .btn { min-width: 200px; min-height: 56px; font-size: 16px; }
.footer-about p:first-of-type { font-family: var(--body); font-size: 15px; font-weight: 400; color: var(--muted); }
@media (max-width: 640px) { .intro { padding-top: 32px; padding-bottom: 28px; } .grid { gap: 56px; padding-bottom: 72px; } .card.feature .card-foot { align-items: flex-start; } .card.feature .btn { width: 100%; } .card.feature .shot { aspect-ratio: 16 / 10; } }

/* ---------- 1.2: admin-only sign in, footer admin entry ---------- */
/* The owner's way into the admin area: same spot, deliberately nothing to see, not even a pointer cursor. */
.footer-bottom .admin-entry { display: block; width: 72px; height: 28px; cursor: default; }
.auth-admin { justify-content: center; }
.auth-admin .auth-main { flex: 0 1 560px; gap: 20px; }
.auth-admin .auth-note { max-width: 420px; text-align: center; font-size: 15px; }

/* ---- Home: independent game cards, single metadata row, play button ---- */
.brand-zh { font-family: var(--cjk), sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0.12em; color: var(--muted); margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line); }
.intro h1 { font-family: var(--cjk), var(--display); font-size: clamp(30px, 5vw, 60px); line-height: 1.25; letter-spacing: 0; }
.grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
.card.feature { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: clamp(16px, 2.6vw, 32px); box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(34, 36, 38, 0.35); }
.card.feature .card-body { justify-content: space-between; }
.card.feature .card-text { flex: 1 0 100%; }
.intro-phrase { display: inline-block; white-space: nowrap; }
.meta-row { flex: 1 1 480px; }
.card.feature h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; }
.card.feature h2 a { text-decoration: none; }
.meta-row { list-style: none; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; font-size: 14px; color: var(--muted); }
.meta-row li { display: inline-flex; align-items: center; }
.meta-row li + li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--field); margin: 0 12px; }
.meta-row .meta-fee { color: var(--sage); font-weight: 600; }
.card.feature .card-foot { border-top: 0; padding-top: 0; justify-content: flex-start; }
.btn-play { min-height: 60px; padding: 0 36px; gap: 12px; font-size: 18px; border-radius: 6px; animation: sh-breathe 3.6s ease-in-out infinite; transition: transform 0.2s ease, background-color 0.2s ease; }
.btn-play svg { width: 20px; height: 20px; transition: transform 0.2s ease; }
.btn-play:hover { background: var(--sage); border-color: var(--sage); animation-play-state: paused; transform: translateY(-2px); }
.btn-play:hover svg { transform: translateX(4px); }
.btn-play:active { transform: translateY(0) scale(0.98); }
@keyframes sh-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@media (max-width: 560px) { .card.feature .card-foot { flex: 1 0 100%; align-items: stretch; } .card.feature .btn-play { width: 100%; } .meta-row { font-size: 13px; } .meta-row li + li::before { margin: 0 9px; } }
@media (prefers-reduced-motion: reduce) { .btn-play, .btn-play svg { animation: none; transition: none; } .btn-play:hover { transform: none; } }

/* The count and layout belong to the public, live catalogue only. */
.games-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 24px; }
.games-count { margin: 0; font: 600 17px/1.4 var(--body); color: var(--ink); letter-spacing: 0; }
.games-matched { margin: 5px 0 0; font-size: 14px; color: var(--muted); }
.games-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.games-filters label { flex: 1 1 180px; min-width: 0; font-size: 13px; font-weight: 500; }
.games-filters select { display: block; margin-top: 8px; }
.games-filters .btn, .games-no-results .btn { min-height: 46px; cursor: pointer; }
.games-filters .btn:disabled { opacity: .4; cursor: default; }
.games-filters :focus-visible, .games-no-results button:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.games-no-results { padding: 32px 0; color: var(--muted); }
.games-no-results p { margin: 0 0 20px; }
.games-layout { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.games-layout[hidden] { display: none; }
.games-layout button { min-height: 42px; padding: 0 15px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font: 500 13px/1.2 var(--body); cursor: pointer; }
.games-layout button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.games-layout button:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.games-layout button:disabled { cursor: not-allowed; opacity: .4; }
.games-layout button:not(:disabled):not([aria-pressed="true"]):hover { background: var(--ground); color: var(--ink); }
@media (min-width: 1000px) {
  .games-catalog .grid[data-layout="two"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: stretch; }
  .grid[data-layout="two"] > .card.feature { grid-column: auto; min-width: 0; padding: 24px; gap: 22px; }
  .grid[data-layout="two"] .card-body { flex: 1; align-content: start; gap: 20px; }
  .grid[data-layout="two"] .card-text { min-width: 0; }
  .grid[data-layout="two"] h2 { font-size: clamp(26px, 2.4vw, 34px); }
  .grid[data-layout="two"] .meta-row { flex: 1 0 100%; font-size: 13px; }
  .grid[data-layout="two"] .meta-row li + li::before { margin: 0 8px; }
  .grid[data-layout="two"] .card-foot { flex: 1 0 100%; margin-top: auto; align-items: stretch; }
  .grid[data-layout="two"] .btn-play { width: 100%; }
}

/* ===== Home remediation: slogan on one line, games first, calm studio color ===== */
:root { --sage-deep: #3F4D36; --sage-wash: #E9EDE3; --clay: #B5715C; --cjk-sans: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Studio Sans CJK', 'Noto Sans SC', 'Source Han Sans SC', 'Noto Sans CJK SC', sans-serif; }
html:lang(zh) body { font-family: 'Inter', var(--cjk-sans); }
html:lang(zh) .display, .brand-zh { font-family: 'Space Grotesk', var(--cjk-sans); }
.home { background: linear-gradient(180deg, var(--sage-wash) 0, var(--ground) 360px); }
.intro { padding-top: clamp(20px, 4vw, 52px); padding-bottom: clamp(14px, 2.4vw, 32px); display: block; }
.intro .intro-line { font-family: 'Space Grotesk', var(--cjk-sans); font-weight: 600; white-space: nowrap; letter-spacing: 0; line-height: 1.2; color: var(--ink); }
html:lang(en) .intro .intro-line { font-size: min(48px, calc((100vw - 36px) / 20.5)); letter-spacing: -0.02em; }
html:lang(ja) .intro .intro-line { font-size: min(52px, calc((100vw - 36px) / 18.5)); }
html:lang(zh) .intro .intro-line { font-size: min(58px, calc((100vw - 36px) / 15.4)); }
@media (min-width: 1160px) { html:lang(zh) .intro .intro-line { font-size: 58px; } }
.js .intro-line { animation: sh-rise .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes sh-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.games-toolbar { align-items: center; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.games-tally { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.games-count { font-size: 16px; }
.games-matched { margin: 0; font-size: 14px; }
.tally-short { display: none; }
.games-tools { display: flex; align-items: center; gap: 10px; }
.games-layout button { display: inline-flex; align-items: center; gap: 7px; transition: background-color .2s ease, color .2s ease; }
.games-layout button[aria-pressed="true"] { background: var(--sage-deep); }
@media (max-width: 999px) { .games-layout { display: none !important; } }
.filter-toggle { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.filter-toggle:hover, .filter-toggle[aria-expanded="true"] { border-color: var(--sage); background: var(--sage-wash); }
.filter-toggle:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.filter-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.games-filters.is-collapsed { display: none; }
.games-filters { margin-bottom: 24px; }
.games-filters select { border-color: var(--line); transition: border-color .2s ease; }
.games-filters select:hover { border-color: var(--sage); }

/* cards */
.grid { gap: 36px; padding-bottom: 96px; }
.card.feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; border-radius: 10px; border-color: #D3D8CC; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.card.feature:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 28px 50px -30px rgba(63, 77, 54, .55); }
.card.feature .shot { width: 100%; height: 100%; aspect-ratio: 16 / 10; border-radius: 0; background: #2A2D2F; }
.home .shot video { position: relative; object-fit: contain; }
.home .shot:hover video { transform: none; }
.card.feature[data-game-orientation="portrait"] .shot:has(video)::before { content: ''; position: absolute; inset: -20px; background: var(--showcase-poster) center / cover; filter: blur(20px); opacity: .3; }
.catalog-mobile .games-layout { display: none !important; }
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  .home .card.feature:not([data-game-devices*="mobile"]) { display: none; }
}
.card.feature .card-body { display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: stretch; gap: 18px; padding: clamp(20px, 2.6vw, 34px); min-width: 0; }
.card.feature .card-text { flex: 0 0 auto; gap: 10px; }
.card.feature h2 { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.12; }
.card.feature h2 a:hover { color: var(--sage-deep); }
.card.feature .card-text p { font-size: 16px; line-height: 1.6; }
.card.feature .meta-row { flex: 0 0 auto; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; font-size: 13px; padding: 11px 0; margin-top: auto; }
.card.feature .meta-row li { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.card.feature .meta-row li:first-child, .card.feature .meta-row li:nth-child(2) { flex-shrink: 0; }
.card.feature .meta-row li + li::before { margin: 0 9px; flex: none; }
.meta-row .meta-fee { color: var(--sage-deep); background: var(--sage-wash); padding: 2px 9px; border-radius: 999px; }
.card.feature .card-foot { flex: 0 0 auto; display: flex; flex-direction: row; align-items: stretch; }
.card.feature .btn-play { width: 100%; min-width: 0; background: var(--sage-deep); border-color: var(--sage-deep); color: var(--ground); box-shadow: 0 10px 22px -14px rgba(63, 77, 54, .9); }
.card.feature .btn-play:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.badge { background: var(--clay); color: var(--ground); border-radius: 999px; }
@keyframes sh-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
.btn-play svg { animation: sh-nudge 3.6s ease-in-out infinite; }
@keyframes sh-nudge { 0%, 70%, 100% { transform: translateX(0); } 80% { transform: translateX(4px); } }

@media (min-width: 1000px) {
  .games-catalog .grid[data-layout="two"] > .card.feature { display: flex; flex-direction: column; padding: 0; gap: 0; }
  .grid[data-layout="two"] .card.feature .shot { height: auto; flex: none; }
  .grid[data-layout="two"] .card.feature .card-body { flex: 1; padding: 24px; }
}
@media (max-width: 699px) {
  .card.feature { display: flex; flex-direction: column; }
  .card.feature .shot { height: auto; }
  .card.feature .card-body { padding: 16px 16px 18px; gap: 12px; }
  .card.feature h2 { font-size: 24px; }
  .card.feature .card-text p { font-size: 15px; }
  .card.feature .btn-play { min-height: 54px; font-size: 17px; }
  .grid { gap: 24px; padding-bottom: 64px; }
  .games-toolbar { flex-wrap: nowrap; margin-bottom: 14px; padding-bottom: 10px; gap: 12px; }
  .games-tally { gap: 2px 10px; }
  .card.feature[data-game-orientation="portrait"] .shot { aspect-ratio: 1; }
  .games-count { font-size: 15px; }
  .games-matched { font-size: 13px; }
  .games-filters { gap: 10px; margin-bottom: 18px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
  .games-filters label { flex: 1 1 100%; }
  .games-filters .btn { width: 100%; }
  .card.feature .meta-row { font-size: clamp(11px, 3.1vw, 13px); }
  .card.feature .meta-row li + li::before { margin: 0 5px; }
}
/* phone header: tighter */
@media (max-width: 640px) {
  .site-header .wrap { padding-top: 8px; padding-bottom: 8px; flex-wrap: nowrap; gap: 8px; }
  .brand { gap: 8px; min-width: 0; }
  .brand svg { width: 26px; height: 26px; flex: none; }
  .brand > span:not(.brand-zh) { display: none; }
  .brand-zh { margin-left: 0; padding-left: 0; border-left: 0; color: var(--ink); font-size: 15px; letter-spacing: .08em; }
  .nav { flex-wrap: nowrap; gap: 0 14px; font-size: 13px; }
  .lang { gap: 0; }
  .lang a { padding: 0 3px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 359px) {
  .site-header .brand-zh { font-size: 13px; letter-spacing: 0; }
  .site-header .brand { gap: 6px; }
  .site-header .brand svg { width: 22px; height: 22px; }
  .site-header .nav { font-size: 12px; gap: 0 8px; }
  .site-header .lang a { padding: 0 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .intro-line, .btn-play svg { animation: none; }
  .card.feature, .card.feature:hover { transition: none; transform: none; }
}

/* ---------- language switch: one boxed segmented control ---------- */
.lang { gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.lang a, .nav .lang a { min-height: 30px; padding: 0 10px; border-radius: 6px; font-size: 13px; line-height: 1; white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.lang a:hover { color: var(--ink); background: var(--placeholder); }
.lang a[aria-current='true'] { background: var(--ink); color: var(--ground); font-weight: 600; }
.site-header.over .lang { background: rgba(245, 245, 241, .08); border-color: rgba(245, 245, 241, .3); }
.site-header.over .lang a[aria-current='true'] { background: var(--ground); color: var(--ink); }
@media (max-width: 640px) { .lang a, .nav .lang a, .site-header .lang a { padding: 0 7px; font-size: 12px; min-height: 28px; } }
@media (max-width: 359px) { .lang a, .nav .lang a, .site-header .lang a { padding: 0 5px; } }

/* ---------- catalogue filters: chips instead of dropdowns ---------- */
.games-filters { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 18px; margin-bottom: 28px; padding: 16px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.filter-group { display: contents; }
.filter-label { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--ground); color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.chip:hover { border-color: var(--sage); color: var(--ink); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.chip:disabled { opacity: .38; cursor: default; border-style: dashed; }
.chip:disabled:hover { border-color: var(--line); color: var(--ink-2); }
.chip-n { font-style: normal; font-size: 12px; font-weight: 600; opacity: .6; font-variant-numeric: tabular-nums; }
.chip-n:empty { display: none; }
/* Device and game language are short fixed sets: joined segments. */
[data-filter-group="devices"] .chips, [data-filter-group="langs"] .chips { flex-wrap: nowrap; gap: 0; width: fit-content; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--ground); }
[data-filter-group="devices"] .chip, [data-filter-group="langs"] .chip { min-height: 30px; border: 0; border-radius: 7px; background: transparent; padding: 0 14px; }
[data-filter-group="devices"] .chip[aria-pressed="true"], [data-filter-group="langs"] .chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.filter-clear { grid-column: 2; justify-self: start; padding: 0; border: 0; background: none; color: var(--sage); font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.filter-clear:disabled { display: none; }
@media (max-width: 699px) {
  .games-filters { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 0 12px 14px; margin-bottom: 18px; }
  .filter-group { display: block; }
  .filter-group + .filter-group { margin-top: 8px; }
  .filter-label { display: block; margin-bottom: 6px; font-size: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding: 2px 14px 4px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; min-height: 38px; }
  [data-filter-group="devices"] .chips, [data-filter-group="langs"] .chips { overflow: visible; padding: 3px; }
  [data-filter-group="devices"] .chip, [data-filter-group="langs"] .chip { min-height: 34px; }
  .filter-clear { grid-column: 1; margin-top: 8px; min-height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .chip, .lang a { transition: none; } .chip:active { transform: none; } }

/* ===== Home v3: wide light page, picture-first dark cards =====
   The uploaded picture stays about 90% clear; only its bottom edge blurs into the text. */
.wrap.xl { max-width: 1720px; padding-left: clamp(16px, 2.5vw, 48px); padding-right: clamp(16px, 2.5vw, 48px); }
.site-header .wrap.xl { padding-top: 10px; padding-bottom: 10px; }
.nav-games { font-weight: 600; }
.nav-count { margin-left: 4px; color: var(--sage); font-family: var(--display); font-variant-numeric: tabular-nums; }
.home { background: var(--ground); }
.home .games-catalog { padding-top: 4px; }
@media (min-width: 700px) {
  .games-bar { display: flex; align-items: center; gap: 12px 20px; padding: 16px 0 20px; }
  .home .games-toolbar { order: 2; flex: none; flex-wrap: nowrap; gap: 14px; margin: 0 0 0 auto; padding: 0; border: 0; }
  .home .games-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .home .games-matched { font-size: 13px; white-space: nowrap; }
  .home .games-filters { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
  .home .games-filters.is-collapsed { display: none; }
  .home .filter-group { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .home .filter-group + .filter-group { padding-left: 18px; border-left: 1px solid var(--line); }
  .home .filter-group .chips { flex-wrap: nowrap; gap: 6px; width: auto; padding: 0; border: 0; border-radius: 0; background: none; }
  .home .filter-group[data-filter-group="genre"] .chips { flex-wrap: wrap; }
  .home .filter-group .chip { min-height: 32px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 13px; }
  .home .filter-group .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
  .home .filter-clear { grid-column: auto; white-space: nowrap; }
}
.home .games-layout { gap: 4px; padding: 3px; border-radius: 8px; }
.home .games-layout button { min-height: 32px; padding: 0 10px; border-radius: 5px; color: #9A9E96; }
.home .games-layout button[aria-pressed="true"] { background: var(--sage); color: var(--white); }

.home .grid { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-bottom: 72px; }
@media (min-width: 1000px) {
  .home .games-catalog .grid[data-layout="one"] { max-width: max(1180px, calc((100vh - 190px) * 16 / 9)); margin-left: auto; margin-right: auto; }
  .home .games-catalog .grid[data-layout="two"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .home .games-catalog .grid[data-layout="three"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
}
.home .card.feature { display: flex; flex-direction: column; container-type: inline-size; }
.home .games-catalog .grid[data-layout] > .card.feature { gap: 0; padding: 0; min-width: 0; grid-column: auto; background: #121415; border: 0; border-radius: 16px; overflow: hidden; color: #FFFFFF; box-shadow: 0 20px 40px -26px rgba(34, 36, 38, .6); }
.home .games-catalog .grid[data-layout] > .card.feature:hover { box-shadow: 0 28px 50px -26px rgba(34, 36, 38, .75); }
.home .games-catalog .grid .card.feature .shot { flex: none; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; background: #121415; }
.home .shot img { object-fit: cover; }
.shot-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 14%; z-index: 1; pointer-events: none; -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); -webkit-mask-image: linear-gradient(transparent, #000 70%); mask-image: linear-gradient(transparent, #000 70%); }
.home .card.feature .shot::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 13%; z-index: 2; pointer-events: none; background: linear-gradient(rgba(18, 20, 21, 0), rgba(18, 20, 21, .75) 60%, #121415); }
.home .card.feature .badge { z-index: 3; }
.home .games-catalog .grid .card.feature .card-body { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: row; flex-wrap: nowrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: -4.6%; padding: 0 22px 20px; min-width: 0; pointer-events: none; }
.home .card.feature .card-body a { pointer-events: auto; }
.home .games-catalog .grid .card.feature .card-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.home .games-catalog .grid .card.feature h2 { font-size: 27px; line-height: 1.2; letter-spacing: 0; }
.home .card.feature h2 a, .home .card.feature h2 a:hover { color: #FFFFFF; }
.home .card.feature h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.home .games-catalog .card.feature .card-text p { max-width: 460px; font-size: 14px; line-height: 1.55; color: #D5D8D0; }
.home .games-catalog .grid .card.feature .meta-row { flex: none; flex-wrap: wrap; overflow: visible; margin: 2px 0 0; padding: 0; border: 0; font-size: 13px; color: #B4B9B0; }
.home .card.feature .meta-row li + li::before { width: 3px; height: 3px; margin: 0 7px; background: #7D827A; }
.home .card.feature .meta-row .meta-fee { padding: 0; background: none; color: #A9C29A; font-weight: 600; }
.home .games-catalog .grid .card.feature .card-foot { flex: none; margin: 0; padding: 0; border: 0; }
.home .games-catalog .card.feature .btn-play { width: auto; min-width: 0; min-height: 46px; padding: 0 22px; gap: 8px; border-radius: 999px; background: #A9C29A; border-color: #A9C29A; color: #121415; font-size: 15px; font-weight: 700; white-space: nowrap; box-shadow: none; }
.home .games-catalog .card.feature .btn-play:hover { background: #FFFFFF; border-color: #FFFFFF; color: #121415; }
.home .card.feature .btn-play svg { width: 14px; height: 14px; animation: none; }
.home .card.feature :focus-visible { outline-color: #FFFFFF; }
@container (max-width: 400px) {
  .home .games-catalog .grid .card.feature .card-body { flex-direction: column; align-items: stretch; gap: 14px; padding: 0 16px 16px; }
  .home .games-catalog .grid .card.feature h2 { font-size: 23px; }
  .home .games-catalog .card.feature .btn-play { width: 100%; }
}

/* ===== Play page v3: one slim dark bar that reads as part of the game ===== */
.play { background: #0B0C0D; }
.play-bar { min-height: 44px; flex-wrap: nowrap; gap: 12px; padding: 0 16px; background: #121415; border-bottom: 1px solid #26292B; color: #F5F5F1; font-size: 14px; }
.play-back { display: inline-flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; color: #F5F5F1; font-weight: 600; text-decoration: none; }
.play-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play-back svg { flex: none; }
.play-back:hover { color: #A9C29A; }
.play-bar > .play-tools { flex: none; flex-wrap: nowrap; gap: 12px; }
.play-bar .lang { padding: 2px; border-color: #33373A; border-radius: 7px; background: none; }
.play-bar .lang a { min-height: 24px; padding: 0 9px; border-radius: 5px; font-size: 12px; color: #B4B9B0; }
.play-bar .lang a:hover { background: #26292B; color: #F5F5F1; }
.play-bar .lang a[aria-current='true'] { background: #F5F5F1; color: #121415; }
.play-newtab { font-size: 13px; color: #B4B9B0; white-space: nowrap; }
.play-newtab:hover { color: #F5F5F1; }
.play-fs { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border: 1px solid #33373A; border-radius: 7px; background: none; color: #F5F5F1; font: 500 13px/1 var(--body); white-space: nowrap; cursor: pointer; }
.play-fs:hover { background: #26292B; }
.play-brand { display: inline-flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid #33373A; color: #F5F5F1; text-decoration: none; }
.play-brand span { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .2em; white-space: nowrap; }
.play-bar :focus-visible { outline: 2px solid #A9C29A; outline-offset: 2px; }
@media (max-width: 760px) {
  .play-bar { padding: 0 10px; gap: 8px; }
  .play-bar > .play-tools { gap: 8px; }
  .play-brand span, .play-fs span, .play-newtab { display: none; }
  .play-brand { padding-left: 8px; }
  .play-fs { padding: 0 8px; }
  .play-bar .lang a { padding: 0 6px; }
}

/* ===== Text pages v3 (about, legal): one white reading card on the wide light page ===== */
.doc { padding-top: 40px; padding-bottom: 72px; }
.doc-panel { max-width: 860px; margin: 0 auto; padding: 44px 52px; background: var(--white); border: 1px solid #E0E1DA; border-radius: 18px; }
.doc-panel h1 { margin: 0 0 20px; font-size: clamp(30px, 3.4vw, 38px); line-height: 1.2; letter-spacing: 0; }
.doc-panel .prose { max-width: none; gap: 14px; line-height: 1.8; }
.doc-panel .prose h2 { margin-top: 14px; font-size: 20px; font-weight: 600; }
.doc-note { margin: -8px 0 18px; font-size: 14px; color: var(--muted); }
.doc-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; margin-top: 26px; padding: 0 24px; border-radius: 999px; background: #A9C29A; color: #121415; font-size: 15px; font-weight: 700; text-decoration: none; transition: background-color .2s ease; }
.doc-cta:hover { background: var(--ink); color: var(--ground); }
.doc-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 26px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--ground); font-size: 14px; }
.doc-tabs a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: 999px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.doc-tabs a:hover { background: var(--placeholder); }
.doc-tabs a[aria-current="page"] { background: var(--ink); color: var(--ground); font-weight: 600; }
.doc :focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
@media (max-width: 640px) {
  .doc { padding-top: 20px; padding-bottom: 48px; }
  .doc-panel { padding: 24px 20px; border-radius: 14px; }
  .doc-tabs a { padding: 0 12px; font-size: 13px; }
}

/* the pinned game: coloured edge, badge and button follow the effect picked by /js/pinned-fx.js */
.card.is-pinned { --pin-a: #1E6BFF; --pin-b: #7A3DFF; }
.home .games-catalog .grid[data-layout] > .card.feature.is-pinned, .home .games-catalog .grid[data-layout] > .card.feature.is-pinned:hover { transform: none; box-shadow: 0 0 0 2px var(--pin-a), 0 0 26px -6px var(--pin-b), 0 20px 40px -26px rgba(34, 36, 38, .6); }
.card.is-pinned .pin-badge { background: linear-gradient(110deg, var(--pin-a), var(--pin-b)); color: #FFFFFF; letter-spacing: .08em; border-radius: 4px; }
.home .games-catalog .card.feature.is-pinned .btn-play, .home .games-catalog .card.feature.is-pinned .btn-play:hover { background: linear-gradient(110deg, var(--pin-a), var(--pin-b)); border-color: transparent; color: #FFFFFF; }
.home .games-catalog .card.feature.is-pinned .btn-play:hover { filter: brightness(1.12); }
/* The effect sits under the cards, so it shows in the gaps and never covers a neighbour. */
.pin-fx { position: absolute; z-index: 0; pointer-events: none; }
.has-pin-fx > .card { position: relative; z-index: 1; }
