/* Discovery Lab — isolated feature demo. No production styles are changed. */
:root {
  color-scheme: light;
  --paper: #f6f6ef;
  --white: #fff;
  --ink: #111;
  --lime: #b4ff39;
  --muted: #62665b;
  --line: #d5d8cb;
  --soft: #eceee5;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --dock-height: 67px;
  --visible-height: 100dvh;
  --gutter: 20px;
  --portrait-cover-ratio: 2 / 3;
  --catalog-cover-width: 92px;
  --catalog-list-cover-width: 72px;
  --catalog-list-cover-narrow-width: 62px;
  --horizon-cover-width: 78px;
  --horizon-cover-mobile-width: 66px;
  --detail-cover-width: 88px;
  --detail-cover-narrow-width: 70px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html { margin: 0; padding: 0; scroll-padding-bottom: 100px; scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) { html { overflow-y: scroll; } }
body { margin: 0; padding: 0 0 100px; min-width: 280px; background: var(--paper); }
body.modal-open { overflow: hidden; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .4; cursor: not-allowed; }
button, a { touch-action: manipulation; }
button, input, select, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
button:focus:not(:focus-visible) { outline: none; }
input { min-width: 0; border-radius: 0; }
img { display: block; max-width: 100%; }
svg { width: 24px; height: 24px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 auto; padding: calc(12px + var(--safe-top)) var(--gutter) 12px; border-bottom: 1px solid var(--line); background: #fff; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; font-size: 18px; font-weight: 850; letter-spacing: -.7px; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; font-size: 25px; }
.brand small { display: block; margin-top: 2px; font-size: 8px; color: var(--muted); letter-spacing: 1px; font-weight: 600; }
.demo-label { display:flex; flex-direction:column; align-items:center; gap:3px; border: 1.5px solid var(--ink); background: var(--lime); padding: 5px 7px; font-family: ui-monospace, monospace; font-size: 9px; line-height: 1; letter-spacing: .4px; font-weight: 800; transform: rotate(-3deg); box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; }
.demo-date { font-size:8px; line-height:1; letter-spacing:0; font-weight:700; opacity:.76; }
main, .app-shell { width: min(100%, 1000px); margin: 0 auto; }
main { padding: 0 var(--gutter); }
.app-shell main { width: 100%; }
.intro { position: relative; padding: 30px 0 23px; }
.kicker { display: flex; align-items: center; gap: 7px; color: #555c4c; font-size: 9px; line-height: 1.3; font-weight: 750; letter-spacing: 2px; }
.kicker::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--ink); background: var(--lime); }
.intro h1 { margin-top: 10px; font-size: clamp(30px, 8.8vw, 62px); font-weight: 900; line-height: 1.14; letter-spacing: -1.8px; }
.intro h1 em, .intro h1 span { font-style: normal; }
.intro h1 .highlight { background: var(--lime); padding: 0 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.intro-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.intro-meta small, .intro-meta .edition { font: 9px ui-monospace, monospace; letter-spacing: 1px; white-space: nowrap; }
.demo-note { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 12px 13px; border: 2px solid var(--ink); background: var(--ink); color: #eceee6; font-size: 10px; line-height: 1.7; box-shadow: 3px 3px 0 var(--lime); }
.demo-note > svg { width: 20px; height: 20px; color: var(--lime); }
.demo-note strong { color: var(--lime); font-weight: 750; }
.demo-note .note-number { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; background: var(--lime); color: var(--ink); font: 900 15px ui-monospace, monospace; }
.finder { margin-bottom: 27px; }
.search-form { display: flex; align-items: center; gap: 9px; height: 54px; padding: 4px 4px 4px 12px; border: 2px solid var(--ink); background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.search-form > svg { width: 18px; height: 18px; color: #60645a; }
.search-form input { flex: 1; width: 100%; height: 100%; padding: 5px 0; outline: none; border: 0; background: transparent; font-size: 13px; color: var(--ink); }
.search-form input::placeholder { color: #8a8d82; }
.search-form:focus-within { box-shadow: 3px 3px 0 var(--ink); }
.search-form:has(input:focus-visible) { outline: 2px solid #777; outline-offset: 2px; }
.search-form input:focus-visible { outline: none; }
.search-submit { height: 42px; padding: 0 18px; border: 0; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 850; }
.search-submit:active { background: var(--ink); color: var(--lime); }
.quick-row { display: flex; gap: 12px; margin-top: 15px; }
.platform-tabs { position: relative; isolation: isolate; display: flex; flex: 1; min-width: 0; overflow: hidden; padding: 3px; border-radius: 7px; background: #e8ebe1; }
.platform-slider { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 7px; background: #000; border: 0; box-shadow: none; pointer-events: none; transform: translateX(0); will-change: transform; }
.platform-tabs button { position: relative; z-index: 1; flex: 1 1 0; min-width: 0; min-height: 38px; padding: 7px 4px; border: 0; background: transparent; box-shadow: none; color: #666; font-size: 11px; font-weight: 700; white-space: nowrap; transition: color 180ms ease; }
.platform-tabs button[aria-pressed="true"] { background: transparent; color: #fff; }
.platform-tabs button:active { transform: none; background: transparent; color: #666; }
.platform-tabs button[aria-pressed="true"]:active { color: #fff; }
@media (prefers-reduced-motion: reduce) { .platform-slider, .platform-tabs button { transition-duration: 0.01ms; } }
.filter-trigger { display: flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; width: 88px; padding: 0 8px; border: 1.5px solid var(--ink); background: #fff; font-size: 12px; font-weight: 750; white-space: nowrap; transition: transform 160ms cubic-bezier(.22,1,.36,1), background-color 180ms ease, color 180ms ease, box-shadow 160ms ease; }
.filter-trigger svg { width: 16px; height: 16px; transition: transform 180ms cubic-bezier(.22,1,.36,1); }
.filter-trigger:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); transition-duration: 80ms; }
.filter-trigger[aria-expanded="true"] { background: var(--ink); color: var(--lime); }
.filter-badge, .filter-count { display: grid; place-items: center; min-width: 17px; height: 17px; border-radius: 50%; background: var(--lime); color: var(--ink); font: 800 10px ui-monospace, monospace; }
.results-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 17px; margin-bottom: 16px; border-top: 2px solid var(--ink); }
.results-title { min-width: 0; font-size: 21px; font-weight: 850; letter-spacing: -.7px; line-height: 1.25; }
.results-title small, .results-title > span { display: block; margin-top: 6px; font-size: 10px; line-height: 1.5; letter-spacing: 0; color: var(--muted); font-weight: 500; }
.results-subtitle { margin-top: 5px; font-size: 10px; color: var(--muted); }
.view-toggle { display: flex; flex-shrink: 0; gap: 2px; padding: 3px; border: 1.5px solid var(--ink); background: #fff; }
.view-toggle button { display: grid; place-items: center; width: 33px; height: 31px; padding: 5px; border: 0; background: transparent; color: #8b8f82; transition: transform 160ms cubic-bezier(.22,1,.36,1), background-color 180ms ease, color 180ms ease; }
.view-toggle button:active { transform: scale(.88); transition-duration: 80ms; }
.view-toggle svg { width: 20px; height: 20px; stroke-width: 2; transition: transform 180ms cubic-bezier(.22,1,.36,1); }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--lime); }

.game-list { display: grid; gap: 15px; padding-bottom: 4px; }
.game-list[data-layout="list"] { grid-template-columns: minmax(0, 1fr); }
.game-card { --cover-size: var(--catalog-cover-width); display: grid; grid-template-columns: var(--cover-size) minmax(0, 1fr) 18px; grid-template-rows: auto auto; align-items: center; gap: 9px 12px; position: relative; min-width: 0; padding: 12px; border: 2px solid var(--ink); background: #fff; box-shadow: 3px 3px 0 var(--ink); isolation: isolate; opacity: 0; transform: translateY(14px); transition: opacity .34s ease, transform .42s cubic-bezier(.22,1,.36,1); transition-delay: var(--reveal-delay,0ms); }
.game-card.is-visible { opacity: 1; transform: translateY(0); }
.card-open { display: contents; border: 0; background: transparent; text-align: left; color: var(--ink); }
.game-card:has(.card-open:focus-visible) { outline: 3px solid var(--ink); outline-offset: 5px; }
.cover-wrap { grid-column: 1; grid-row: 1 / 3; position: relative; align-self: start; flex-shrink: 0; width: var(--cover-size); aspect-ratio: var(--portrait-cover-ratio); border: 1.5px solid var(--ink); overflow: hidden; background: var(--soft); }
.cover-wrap img { display:block; width: 100%; height: 100%; object-fit: contain; object-position:center; transition: transform 220ms cubic-bezier(.22,1,.36,1); }
.card-copy { grid-column: 2; grid-row: 1; min-width: 0; align-self: end; }
.card-title { font-size: 16px; line-height: 1.35; font-weight: 850; letter-spacing: -.35px; overflow-wrap: anywhere; }
.card-english { margin-top: 3px; color: #7d8175; font-size: 9px; line-height: 1.5; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-tags { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.tag { display: inline-flex; align-items: center; padding: 2px 5px; background: #f0f1eb; font-size: 9px; line-height: 1.5; font-weight: 550; color: #69705e; }
.tag-chinese { color: #1f310a; background: #d9ffab; font-weight: 750; }
.card-platforms { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 9px; line-height: 1.5; color: #555e48; font-weight: 600; }
.card-platforms svg { width: 12px; height: 12px; stroke-width: 2; }
.card-metrics { display: flex; grid-column: 2 / 4; grid-row: 2; align-items: center; align-self: start; flex-wrap: wrap; gap: 5px; min-width: 0; }
.metric { display: inline-flex; justify-content: center; align-items: center; gap: 4px; min-height: 25px; padding: 3px 6px; border: 1px solid var(--ink); border-radius: 0; background: #fff; font-size: 10px; line-height: 1.3; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.metric svg { width: 12px; height: 12px; stroke-width: 2; }
.metric[data-tier="high"] { background: var(--lime); color: var(--ink); }
.metric[data-tier="mid"] { background: #fff; color: var(--ink); }
.metric[data-tier="low"] { background: #eff0ea; border-color: #d6d9ce; color: #71776a; }
.metric-time { font-weight: 600; }
.metric:active { transform: translateY(1px); }
.card-arrow { grid-column: 3; grid-row: 1; display: grid; place-items: center; align-self: center; width: 18px; height: 24px; background: transparent; border: 0; }
.card-arrow svg { width: 19px; height: 19px; stroke-width: 3; }
.favorite-button { display: grid; place-items: center; position: absolute; left: 75px; top: 17px; width: 25px; height: 25px; padding: 4px; border: 1px solid #fff; border-radius: 3px; background: var(--ink); color: #fff; box-shadow: 1px 1px 0 var(--ink); z-index: 2; }
.favorite-button svg { width: 17px; height: 17px; stroke-width: 2; }
.favorite-button[aria-pressed="true"] { color: var(--lime); }
.favorite-button[aria-pressed="true"] svg { fill: var(--lime); }
.favorite-button.heart-pulse svg { animation: detail-heartbeat .52s cubic-bezier(.34,1.56,.64,1); }
.favorite-button:active { transform: scale(.92); }
.game-card:has(.card-open:active) { background: #f4f6ef; transform: translateY(2px) scale(.99); transition-duration: .12s; }
.game-card:has(.card-open:active) .cover-wrap img { transform: scale(1.04); }
.poster-summary { display:none; }
.game-list[data-layout="grid"] { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding-bottom:0; overflow-anchor:none; }
.game-list[data-layout="grid"] .game-card { display:flex; flex-direction:column; gap:0; padding:0; border:2px solid #000; border-radius:4px; background:#fff; overflow:hidden; box-shadow:none; }
.game-list[data-layout="grid"] .card-open { display:flex; flex-direction:column; flex:1; width:100%; min-width:0; padding:0; text-align:left; }
.game-list[data-layout="grid"] .cover-wrap { flex-shrink:0; width:100%; aspect-ratio:var(--portrait-cover-ratio); border:0; border-bottom:2px solid #000; }
.game-list[data-layout="grid"] .cover-wrap img { object-fit:contain; object-position:center center; }
.game-list[data-layout="grid"] .card-copy { display:flex; flex:1; flex-direction:column; gap:6px; width:100%; min-width:0; padding:8px; }
.game-list[data-layout="grid"] .card-title { display:block; width:100%; min-width:0; margin:0; font-size:14px; line-height:20px; font-weight:700; letter-spacing:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.game-list[data-layout="grid"] .card-english,.game-list[data-layout="grid"] .card-tags,.game-list[data-layout="grid"] .card-platforms,.game-list[data-layout="grid"] .card-arrow,.game-list[data-layout="grid"] .xgp-memberships { display:none; }
.game-list[data-layout="grid"] .poster-summary { display:flex; flex-direction:column; gap:5px; width:100%; margin-top:auto; font-size:11px; line-height:18px; font-weight:600; }
.poster-data,.poster-perks { display:flex; align-items:center; justify-content:space-between; gap:5px; min-width:0; }
.poster-data > span { display:inline-flex; align-items:center; gap:3px; white-space:nowrap; color:#000; }
.poster-data svg { width:12px; height:12px; stroke-width:2.2; }

.poster-data .poster-score { color:#000; font-weight:700; }


.poster-time { margin-left:auto; }
.poster-platforms { display:inline-flex; align-items:center; gap:6px; color:#62665b; }
.poster-platforms > span { display:flex; }
.poster-platforms svg { width:13px; height:13px; stroke-width:2; }
.xgp-top-tier-badge { display:inline-flex; align-items:center; justify-content:center; margin-left:auto; padding:2px 6px; background:#000; color:#fff; border-radius:4px; font-size:10px; line-height:15px; white-space:nowrap; }
.game-list[data-layout="grid"] .favorite-button { top:6px; right:6px; left:auto; width:25px; height:25px; }
body:has(#library-page:not([hidden]) .game-list[data-layout="grid"]) { padding-bottom:120px; }
html:has(#library-page:not([hidden]) .game-list[data-layout="grid"]) { scroll-padding-bottom:120px; }

@media (prefers-reduced-motion: reduce) {
  .game-card, .game-card.is-visible { opacity: 1; transform: none; transition: none; }
  .game-card:has(.card-open:active), .game-card:has(.card-open:active) .cover-wrap img, .favorite-button:active { transform: none; }
  .favorite-button.heart-pulse svg { animation: none; }
}

.layout-moving { pointer-events: none; }
.empty-state { padding: 48px 20px; border: 2px dashed #b8beac; background: #f0f2e9; text-align: center; }
.empty-state > svg { width: 38px; height: 38px; margin: 0 auto 16px; color: #8b957f; }
.empty-state h3 { font-size: 19px; }
.empty-state p { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.empty-reset { margin-top: 20px; padding: 10px 16px; border: 1.5px solid var(--ink); background: #fff; font-size: 12px; font-weight: 750; box-shadow: 2px 2px 0 var(--ink); }
.page-footer { max-width: 1000px; margin: 25px auto 0; padding: 17px var(--gutter) 0; color: #898f7e; text-align: center; font-size: 9px; letter-spacing: .4px; line-height: 1.8; }
.page-footer strong { color: #555d49; font-weight: 600; }

.bottom-dock { display:flex; align-items:center; gap:0; position:fixed; bottom:calc(14px + env(safe-area-inset-bottom,0px)); left:50%; right:auto; transform:translateX(-50%); z-index:30; width:calc(100% - 32px); max-width:430px; height:56px; padding:4px; border:2px solid #111; border-radius:99px; background:rgb(255 255 255 / .95); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); box-shadow:0 7px 22px #1112; overflow:hidden; isolation:isolate; }
.nav-sliding-indicator { position:absolute; top:6px; left:6px; width:calc((100% - 8px) / 3 - 4px); height:calc(100% - 12px); border-radius:99px; background:#000; pointer-events:none; z-index:1; transition:transform 350ms cubic-bezier(.34,1.56,.64,1); }
.bottom-dock button { display: flex; flex: 1 1 0; min-width: 0; min-height:44px; height:44px; flex-direction: column; justify-content: center; align-items: center; gap:2px; border: 0; border-radius: 18px; background: transparent; color: #777; padding: 0 4px; position:relative; z-index:2; transition: transform 180ms cubic-bezier(.34,1.56,.64,1), color 220ms ease; transform-origin: center; }
.bottom-dock button:active { transform: scale(.96); }
.bottom-dock .dock-icon { display: inline-flex; align-items:center; justify-content:center; position: relative; width:20px; height:20px; flex:0 0 20px; transition: color 220ms ease, transform 180ms cubic-bezier(.34,1.56,.64,1); }
.bottom-dock .dock-icon svg { width:20px; height:20px; min-width:20px; max-width:20px; flex:none; stroke-width:1.8; stroke: currentColor; fill: none; transform-origin: center; transition: fill 220ms ease, stroke 220ms ease; }
.bottom-dock button > span:last-child:not(.dock-icon) { font-size:10px; line-height:12px; font-weight:500; letter-spacing:.2px; white-space:nowrap; }
.bottom-dock button.active { color: #fff; background: transparent; }
.bottom-dock button.active .dock-icon { color: var(--lime); }
.bottom-dock button.active .icon-star, .bottom-dock button.active .icon-heart { fill: var(--lime); }
.bottom-dock button.active .icon-star { transform: none; }
.bottom-dock .icon-star { transition: transform 300ms cubic-bezier(.4,0,.2,1), fill 180ms cubic-bezier(.4,0,.2,1); }
.bottom-dock button.active .controller-body { fill: var(--lime); stroke: var(--lime); }
.bottom-dock button.active .controller-details { fill: none; stroke: #111; }
.bottom-dock button.active .controller-button { fill: #111; stroke: none; }
.bottom-dock button.nav-selecting .dock-icon { animation:none; }
.bottom-dock button.nav-selecting .icon-console { animation: none; }
.bottom-dock button.nav-selecting .icon-heart { animation: none; }
@keyframes dock-spring { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes dock-rumble { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-1.6px) rotate(-3deg); } 50% { transform: translateX(1.6px) rotate(3deg); } 75% { transform: translateX(-.8px); } }
@keyframes dock-heartbeat { 0%,100% { transform: scale(1); } 30% { transform: scale(1.12); } 58% { transform: scale(.97); } 78% { transform: scale(1.05); } }
.page-entering { animation: page-rise 320ms cubic-bezier(.34,1.56,.64,1) both; }
@keyframes page-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.random-fab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: fixed; bottom: calc(var(--dock-height) + var(--safe-bottom) + 32px); right: max(18px, calc((100vw - 1000px) / 2 + 20px)); z-index: 31; width: 58px; height: 58px; padding: 7px; border: 2px solid var(--ink); border-radius: 50%; background: var(--ink); color: var(--lime); box-shadow: 3px 3px 0 #929786; transition: transform 240ms cubic-bezier(.34,1.56,.64,1), box-shadow 150ms; }
.random-fab .dice-icon { display: flex; align-items: center; justify-content: center; }
.random-fab svg { width: 25px; height: 25px; stroke-width: 2; }
.random-label { color: #fff; font-size: 8px; line-height: 1; font-weight: 700; letter-spacing: 1px; }
.random-fab:active { transform: scale(.9); box-shadow: 1px 1px 0 #929786; }
.random-fab.is-bouncing { animation: dice-bounce 330ms cubic-bezier(.34,1.56,.64,1); }
@keyframes dice-bounce { 0% { transform: scale(.9); } 55% { transform: scale(1.1); } 100% { transform: scale(1); } }

dialog { max-height: calc(var(--visible-height) - 32px); color: var(--ink); background: var(--paper); }
dialog::backdrop { background: rgb(0 0 0 / .65); }
.filter-drawer { position: fixed; top: auto; bottom: 0; margin: 0 auto; padding: 0; width: min(100%, 560px); max-width: 100%; max-height: calc(var(--visible-height) - 28px); overflow: auto; border: 2px solid var(--ink); border-bottom: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -5px 0 rgb(17 17 17 / .15); overscroll-behavior: contain; }
.drawer-grip { width: 36px; height: 4px; margin: 10px auto 0; border-radius: 4px; background: #bbc2af; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { font-size: 23px; line-height: 1.2; font-weight: 850; letter-spacing: -.8px; }
.drawer-header .kicker { margin-bottom: 6px; font-size: 8px; letter-spacing: 1.5px; }
.drawer-close, .detail-toolbar button, .draw-close { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; padding: 8px; border: 1.5px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); }
.drawer-close svg, .detail-toolbar button svg, .draw-close svg { width: 19px; height: 19px; }
.filter-form { margin: 0; }
.filter-section { margin: 0 20px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.filter-section:last-of-type { border-bottom: 0; }
.filter-section h3, .filter-section legend { margin-bottom: 12px; padding: 0; font-size: 12px; font-weight: 800; }
.filter-section > label:not(.square-toggle) { display: block; margin-bottom: 9px; font-size: 11px; color: var(--muted); }
.filter-section fieldset { padding: 0; margin: 0; border: 0; }
.square-toggle { display: flex; position: relative; align-items: center; gap: 11px; min-height: 44px; padding: 8px 0; font-size: 13px; font-weight: 650; cursor: pointer; }
.square-toggle input { position: absolute; width: 22px; height: 22px; margin: 0; opacity: 0; }
.square-toggle input + span { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border: 2px solid var(--ink); background: #fff; }
.square-toggle input + span::after { content: ""; display: block; width: 11px; height: 7px; border-bottom: 3px solid var(--lime); border-left: 3px solid var(--lime); transform: translateY(-1px) rotate(-45deg) scale(0); }
.square-toggle input:checked + span { background: var(--ink); }
.square-toggle input:checked + span::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.square-toggle input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 4px; }
.square-toggle svg { width: 17px; height: 17px; }
.square-toggle small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.6; }
.filter-help { margin: 10px 0 0 33px; color: #7a806f; font-size: 10px; line-height: 1.7; }
.sort-options { display: grid; gap: 8px; }
.sort-options select, .filter-section > select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 0; color: var(--ink); background: #fff; font-size: 12px; }
.sort-options label { display: flex; align-items: center; gap: 9px; min-height: 34px; font-size: 12px; }
.sort-options input { accent-color: var(--ink); }
.drawer-footer { display: flex; gap: 12px; position: sticky; bottom: 0; padding: 16px 20px calc(18px + var(--safe-bottom)); border-top: 2px solid var(--ink); background: var(--paper); }
.apply-filters, .reset-filters { min-height: 46px; padding: 10px 16px; border: 2px solid var(--ink); font-size: 13px; font-weight: 800; }
.apply-filters { flex: 1; background: var(--lime); box-shadow: 3px 3px 0 var(--ink); }
.reset-filters { background: #fff; }
.apply-filters:active, .reset-filters:active { transform: translate(2px, 2px); box-shadow: none; }
.tooltip { position: fixed; z-index: 1000; width: max-content; max-width: min(270px, calc(100vw - 28px)); padding: 10px 12px; border: 1px solid #fff; background: var(--ink); color: #fff; box-shadow: 3px 3px 0 rgb(0 0 0 / .18); font-size: 11px; line-height: 1.7; font-weight: 500; pointer-events: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 7px; }

.game-detail { position: fixed; inset: 0; margin: auto; width: min(calc(100% - 28px), 670px); max-width: 670px; max-height: calc(var(--visible-height) - 40px); padding: 0; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); overflow: auto; overscroll-behavior: contain; }
.detail-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.detail-toolbar > span, .detail-toolbar > p { color: var(--muted); font: 9px ui-monospace, monospace; letter-spacing: 1.5px; }
.detail-content { padding: 22px 20px 26px; }
.detail-cover { width: 100%; max-height: 320px; aspect-ratio: 2/3; object-fit: contain; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.detail-copy { margin-top: 24px; }
.detail-copy h2 { font-size: 28px; line-height: 1.25; font-weight: 850; letter-spacing: -.8px; }
.detail-copy .card-english { margin-top: 7px; font-size: 11px; }
.detail-copy .card-metrics { margin-top: 16px; gap: 8px; }
.detail-copy .metric { padding: 6px 9px; font-size: 12px; }
.detail-description { margin-top: 19px; color: #575f4b; font-size: 13px; line-height: 1.9; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; margin-top: 19px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.8; color: var(--muted); }
.detail-copy .demo-note { margin: 19px 0 0; font-size: 10px; }

.draw-modal { position: fixed; inset: 0; margin: auto; width: 100%; height: var(--visible-height); max-width: none; max-height: none; padding: 0; border: 0; background: rgb(8 10 6 / .94); color: #fff; overflow: hidden; }
.draw-modal::backdrop { background: #111; }
.draw-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: calc(70px + var(--safe-top)) 28px calc(52px + var(--safe-bottom)); perspective: 1100px; }
.draw-caption { margin-bottom: 25px; color: var(--lime); text-align: center; font-size: 10px; font-weight: 700; letter-spacing: 3px; }
.mystery-card { position: relative; width: min(67vw, 260px); aspect-ratio: 3/4; transform-style: preserve-3d; transition: transform 650ms cubic-bezier(.2,.75,.15,1); }
.mystery-card.is-revealed, .mystery-card.revealed { transform: rotateY(180deg); }
.card-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 2px solid var(--lime); background: var(--ink); box-shadow: 6px 6px 0 var(--lime); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-face.front { flex-direction: column; gap: 23px; background: repeating-linear-gradient(135deg, #1d2514 0, #1d2514 1px, #111 1px, #111 13px); }
.card-face.front svg { width: 72px; height: 72px; color: var(--lime); stroke-width: 1.5; }
.card-face.front > span { color: var(--lime); font: 800 11px ui-monospace, monospace; letter-spacing: 3px; }
.card-face.front::before, .card-face.front::after { content: "+"; position: absolute; color: var(--lime); font: 22px ui-monospace, monospace; }
.card-face.front::before { top: 12px; left: 15px; }
.card-face.front::after { bottom: 12px; right: 15px; }
.card-face.back { transform: rotateY(180deg); background: #252c1c; }
.card-face.back img { width: 100%; height: 100%; object-fit: cover; }
.card-face.back .draw-cover-open { position: absolute; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.card-face.back .draw-cover-open:disabled { pointer-events: none; }
.card-face.back .draw-cover-open:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.card-face.back::after { content: "YOUR NEXT GAME"; position: absolute; bottom: 0; left: 0; right: 0; padding: 10px; background: var(--lime); color: var(--ink); font: 800 10px ui-monospace, monospace; text-align: center; letter-spacing: 2px; }
.draw-status { margin-top: 32px; max-width: 300px; text-align: center; font-size: 19px; line-height: 1.5; font-weight: 750; }
.draw-status small, .draw-hint { display: block; margin-top: 9px; color: #959e88; font-size: 10px; font-weight: 400; line-height: 1.8; text-align: center; }
.draw-progress { width: 72px; height: 3px; margin-top: 16px; overflow: hidden; background: #343c2b; }
.draw-progress::after { content: ""; display: block; width: 100%; height: 100%; background: var(--lime); transform-origin: left; animation: draw-wait 1500ms cubic-bezier(.4,0,.2,1) both; }
@keyframes draw-wait { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.toast { position: fixed; z-index: 2000; left: 50%; bottom: calc(var(--dock-height) + var(--safe-bottom) + 35px); width: max-content; max-width: calc(100% - 40px); padding: 12px 17px; transform: translateX(-50%); border: 1px solid var(--ink); background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--lime); font-size: 12px; line-height: 1.5; text-align: center; }

@media (hover: hover) {
  .game-card:hover { box-shadow: 4px 4px 0 var(--ink); }
  .game-card:hover .cover-wrap img { transform: scale(1.035); }
  .card-open:hover .card-title { text-decoration:none; }
  .favorite-button:hover { color: var(--lime); }
  .random-fab:hover { transform: rotate(-8deg) scale(1.05); }
  .metric:hover { box-shadow: 1px 1px 0 var(--ink); }
}
@media (min-width: 700px) {
  :root { --catalog-cover-width: 116px; }
  :root { --gutter: 32px; }
  .app-header { padding-left: max(32px, calc((100vw - 936px) / 2)); padding-right: max(32px, calc((100vw - 936px) / 2)); }
  .brand { font-size: 22px; gap: 10px; }
  .demo-label { font-size: 10px; padding: 6px 9px; }
  .intro { padding-top: 42px; padding-bottom: 28px; }
  .intro h1 { font-size: 54px; letter-spacing: -2px; }
  .intro-meta { font-size: 13px; }
  .demo-note { padding: 14px 16px; font-size: 11px; }
  .finder { display: grid; grid-template-columns: minmax(0, 1fr) 335px; gap: 20px; align-items: center; margin-top: 31px; margin-bottom: 33px; }
  .quick-row { margin-top: 0; height: 48px; }
  .search-form { height: 54px; }
  .results-title { font-size: 25px; }
  .results-title small, .results-title > span, .results-subtitle { font-size: 11px; }
  .game-card { --cover-size: var(--catalog-cover-width,116px); padding: 16px; gap: 11px 20px; grid-template-columns: var(--cover-size) minmax(0,1fr) 24px; }
  .card-title { font-size: 21px; }
  .card-english { font-size: 11px; }
  .tag { font-size: 10px; padding: 3px 7px; }
  .card-platforms { font-size: 11px; }
  .metric { font-size: 12px; min-height: 29px; padding: 4px 9px; }
  .metric svg { width: 14px; height: 14px; }
  .favorite-button { top: 22px; left: 101px; width: 27px; height: 27px; }
  
  
  
  .game-list[data-layout="grid"] .card-metrics { padding: 0 10px 12px; flex-direction: row; }
  .game-list[data-layout="grid"] .metric { font-size: 10px; flex: 1; }
  .filter-drawer { inset: 0; bottom: auto; top: 50%; transform: translateY(-50%); margin: 0 auto; width: 460px; border: 2px solid var(--ink); border-radius: 0; box-shadow: 7px 7px 0 var(--ink); }
  .drawer-grip { display: none; }
  .drawer-header { padding: 23px 24px; }
  .filter-section { margin-left: 24px; margin-right: 24px; }
  .drawer-footer { padding: 18px 24px; }
  .detail-content { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 28px; align-items: start; }
  .detail-cover { aspect-ratio: var(--portrait-cover-ratio); height: auto; max-height: none; }
  .detail-copy { margin: 0; }
  .detail-copy h2 { font-size: 25px; }
  .page-footer { padding-top: 24px; font-size: 10px; }
}
@media (max-width: 359px) {
  :root { --gutter: 14px; }
  :root { --catalog-cover-width: 78px; }
  .intro h1 { font-size: 29px; letter-spacing: -1.5px; }
  .intro-meta { font-size: 10px; }
  .intro-meta small, .intro-meta .edition { display: none; }
  .brand { font-size: 16px; }
  .game-card { --cover-size: var(--catalog-cover-width); gap: 8px 9px; padding: 10px; grid-template-columns: var(--cover-size) minmax(0,1fr) 16px; }
  .card-title { font-size: 14px; }
  .card-english { font-size: 8px; }
  .card-tags { margin-top: 5px; }
  .card-platforms { font-size: 8px; }
  .metric { font-size: 9px; padding: 3px 4px; gap: 3px; }
  .metric svg { width: 10px; height: 10px; }
  .favorite-button { top: 14px; left: 61px; width: 23px; height: 23px; }
  
  
  
  .game-list[data-layout="grid"] .card-metrics { padding: 0 5px 7px; }
  .game-list[data-layout="grid"] .metric { font-size: 8px; }
  .random-fab { right: 15px; width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .cover-wrap img, .game-card:hover .cover-wrap img { transform: none; }
}

/* Markup refinements shared by the composed demo. */
.intro > .kicker{justify-content:space-between;letter-spacing:1.35px;font-size:8px}
.intro > .kicker::before{margin-right:-3px}
.intro > .kicker > span{margin-left:auto;font-size:8px;letter-spacing:1px;white-space:nowrap}
.intro h1{position:relative;width:max-content;max-width:100%;margin-bottom:8px}
.intro-star{position:absolute;right:-70px;bottom:3px;width:44px;height:44px;fill:var(--lime);stroke:var(--ink);stroke-width:1.3;transform:rotate(10deg)}
.sample-count{flex-shrink:0;font-size:9px;white-space:nowrap}
.demo-note{margin-top:19px;margin-bottom:0}
.demo-note>.note-mark{font-size:29px;line-height:1;color:var(--lime);font-weight:800;margin-right:3px}
.demo-note>span:last-child{display:flex;flex-direction:column;gap:3px}
.demo-note strong{font-size:9px;letter-spacing:1px}
.card-title,.card-english{display:block}
.active-filters{display:flex;align-items:center;gap:0;width:100%;min-width:0;margin-top:9px}
.active-filter-list{display:flex;align-items:center;flex:1 1 auto;gap:8px;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-x}
.active-filter-list::-webkit-scrollbar{display:none}
.active-filter-chip{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;gap:4px;width:max-content;max-width:min(70vw,320px);height:24px;min-height:24px;overflow:hidden;padding:0 9px;border:1.5px solid #111;border-radius:99px;background:#fff;color:#111;font-size:11px;font-weight:650;line-height:1;white-space:nowrap;transition:max-width .28s cubic-bezier(.34,1.56,.64,1),width .28s cubic-bezier(.34,1.56,.64,1),flex-basis .28s cubic-bezier(.34,1.56,.64,1),padding .28s ease,border-width .28s ease,opacity .22s ease,transform .28s cubic-bezier(.34,1.56,.64,1)}
.active-filter-chip svg{flex:0 0 10px;width:10px;height:10px;stroke-width:2.6}
.active-filter-chip.is-entering{animation:active-filter-chip-enter .32s cubic-bezier(.34,1.56,.64,1) both;animation-delay:var(--chip-enter-delay,0ms)}
.active-filter-chip.is-removing{width:0!important;max-width:0!important;flex-basis:0!important;gap:0!important;padding-inline:0!important;border-width:0!important;opacity:0;transform:scale(.88);transition-delay:var(--chip-exit-delay,0ms)}
.active-filter-chip.is-resetting{pointer-events:none;animation:active-filter-chip-reset-out .2s ease both;animation-delay:var(--chip-exit-delay,0ms)}
.active-filter-reset{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;gap:4px;height:24px;min-height:24px;margin-left:9px;padding:0 0 0 9px;border:0;border-left:1px solid #d2d4cb;background:transparent;color:#666;font-size:11px;font-weight:650;line-height:1;white-space:nowrap;transition:transform .16s cubic-bezier(.34,1.56,.64,1),color .16s ease}
.active-filter-reset svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.active-filter-reset:active,.active-filter-chip:active{transform:scale(.9)}
.active-filter-reset.is-resetting svg{animation:active-filter-reset-spin .4s cubic-bezier(.34,1.56,.64,1)}
@keyframes active-filter-chip-enter{from{opacity:0;transform:translateY(8px) scale(.92)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes active-filter-chip-reset-out{to{opacity:0;transform:translateY(-3px) scale(.94)}}
@keyframes active-filter-reset-spin{to{transform:rotate(-360deg)}}
.filter-trigger.has-filters{background:var(--lime)}
[data-tip]{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.results-kicker{margin-bottom:7px;font-size:8px;letter-spacing:1.5px;color:var(--muted);line-height:1.4}
.genre-options{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.genre-options button{border:1.5px solid #aab39d;background:#fff;padding:8px 10px;font-size:11px;min-height:35px}
.genre-options button[aria-pressed=true]{background:#111;color:var(--lime);border-color:#111}
.square-toggle .check-box{display:grid;place-items:center;flex-shrink:0}
.filter-form>fieldset{min-inline-size:0;border:0;border-bottom:1px solid var(--line);padding:14px 0}
.filter-form>fieldset legend{margin-bottom:0}
.filter-form>.filter-section .genre-options{margin-top:0}
.square-toggle input+.check-box:after{display:none}
.square-toggle .check-box{color:var(--lime)}
.square-toggle .check-box svg{width:19px;height:19px;stroke-width:3.5;opacity:0}
.square-toggle input:checked+.check-box svg{opacity:1}
.sort-options>span{display:block;margin-bottom:12px;font-weight:750;font-size:12px}
.detail-toolbar>button{display:flex;align-items:center;gap:5px;min-height:42px;padding:0;border:0;background:none;font-size:12px;font-weight:700}
.detail-toolbar>button{width:auto;height:auto}
.detail-toolbar{position:sticky;top:0;z-index:5}
.game-detail{top:calc(12px + var(--safe-top));bottom:auto;margin:0 auto;max-height:calc(var(--visible-height) - var(--safe-top) - var(--safe-bottom) - 24px)}
.filter-drawer{max-height:calc(var(--visible-height) - var(--safe-top) - 12px)}
.detail-toolbar>button svg{width:18px;height:18px}
.detail-cover{position:relative;overflow:hidden;background:var(--soft)}
.detail-cover>img{width:100%;height:100%;object-fit:contain}
.detail-demo-badge{position:absolute;bottom:10px;left:10px;background:var(--lime);border:1px solid #111;padding:4px 7px;font:700 9px ui-monospace,monospace}
.detail-copy h1{font-size:27px;line-height:1.3;letter-spacing:-.8px;margin:10px 0 7px}
.detail-english{font-size:11px;color:#707766;line-height:1.5}
.detail-facts{display:grid;grid-template-columns:1fr 1fr;gap:16px 12px}
.detail-facts>div{display:flex;flex-direction:column;gap:4px}
.detail-facts b{font-size:12px;color:#111}
.detail-save{display:flex;justify-content:center;align-items:center;gap:8px;width:100%;min-height:46px;margin-top:24px;border:2px solid #111;background:#111;color:#fff;font-size:12px;font-weight:750}
.detail-save svg{width:20px;height:20px}
.detail-save[aria-pressed=true]{background:var(--lime);color:#111}
.detail-save[aria-pressed=true] svg{fill:currentColor}
.detail-data-note{margin-top:15px;font-size:10px;line-height:1.7;color:#777d6e}
.draw-stage>.kicker{color:var(--lime);margin-bottom:11px}
.draw-stage>.kicker:before{display:none}
.draw-caption{font-size:20px;line-height:1.5;letter-spacing:0;color:#fff;margin-bottom:25px}
.card-face.front>b{text-align:center;font-size:15px;line-height:1.8;letter-spacing:3px}
.card-face.front>span{font-size:42px;line-height:1;color:var(--lime)}
.card-face.back>div{position:absolute;left:0;right:0;bottom:0;z-index:1;padding:50px 15px 18px;background:linear-gradient(transparent,#000e);color:#fff;pointer-events:none}
.card-face.back small{display:block;font-size:10px;color:var(--lime);margin-bottom:7px}
.card-face.back strong{font-size:19px;line-height:1.4;display:block}
.card-face.back:after{display:none}
.draw-status{font-size:12px;font-weight:500;max-width:320px;margin-top:28px}
.draw-skip{min-height:42px;border:1px solid #ffffff50;background:transparent;color:#fff;margin-top:20px;padding:8px 18px;font-size:11px;display:flex;gap:15px;align-items:center}
.draw-skip:active{background:var(--lime);color:#111}
.draw-progress:after{animation:none}
.draw-modal.is-revealed .draw-progress:after{animation:draw-wait 1550ms cubic-bezier(.4,0,.2,1) both}
.toast{opacity:0;pointer-events:none;transition:opacity .15s ease}
.toast.show{opacity:1}
.dock-icon-wrap{position:relative;display:grid;place-items:center}
#favorite-count{position:absolute;top:-4px;right:-8px;width:6px;min-width:0;height:6px;display:block;padding:0;border-radius:50%;background:#e53935;color:transparent;font-size:0;line-height:0;border:0;pointer-events:none}
@media(max-width:359px){.intro-star{width:36px;height:36px;right:-51px}.sample-count{display:none}}
@media(max-height:700px){.draw-stage{padding-top:55px;padding-bottom:24px}.mystery-card{width:min(45vw,180px)}.draw-caption{margin-bottom:18px;font-size:17px}.draw-status{margin-top:19px}.draw-hint{display:none}.draw-skip{margin-top:13px}}
@media(min-width:700px){.intro{display:grid;grid-template-columns:1fr 1fr;column-gap:50px;align-items:end}.intro>.kicker{grid-column:1/-1;margin-bottom:10px}.intro>h1{grid-column:1;grid-row:2}.intro>.intro-meta{grid-column:1;grid-row:3}.intro>.demo-note{grid-column:2;grid-row:2/4;align-self:center;margin:0;padding:22px;min-height:110px}.intro>.demo-note>span:last-child{gap:8px}.intro>.demo-note strong{font-size:10px}.intro>.demo-note>.note-mark{margin-right:12px}}
@media(max-width:699px){.search-form input,.sort-options select{font-size:16px}.search-form input::placeholder{font-size:12px}}
@media(orientation:landscape){.app-header{padding-left:max(var(--gutter),calc((100vw - 936px)/2),env(safe-area-inset-left,0px));padding-right:max(var(--gutter),calc((100vw - 936px)/2),env(safe-area-inset-right,0px))}main{padding-left:max(var(--gutter),env(safe-area-inset-left,0px));padding-right:max(var(--gutter),env(safe-area-inset-right,0px))}}
@media(max-height:500px) and (min-width:600px){.draw-stage{display:grid;grid-template-columns:180px minmax(0,280px);grid-template-rows:repeat(5,auto);gap:0 36px;align-content:center;justify-content:center;padding:35px 60px}.mystery-card{grid-column:1;grid-row:1/6;width:min(180px,calc((var(--visible-height) - 80px)*.75))}.draw-stage>.kicker{grid-column:2;grid-row:1;margin:0 0 8px}.draw-caption{grid-column:2;grid-row:2;margin:0;text-align:left;font-size:20px}.draw-status{grid-column:2;grid-row:3;margin:16px 0 0;text-align:left}.draw-progress{grid-column:2;grid-row:4;margin:16px 0 0}.draw-skip{grid-column:2;grid-row:5;justify-self:start;margin:16px 0 0}.draw-hint{display:none}}

/* Discovery v2: home editorial sections, verified XGP context and account rules. */
#new-page, #library-page { min-width: 0; }
#new-page .intro { display: block; padding-bottom: 24px; }
#new-page .intro > .kicker { justify-content: flex-start; }
#new-page .intro > .kicker > span { margin-left: auto; }
#new-page .intro h1 { font-size: clamp(32px, 9vw, 60px); margin-top: 13px; margin-bottom: 10px; }
#new-page .intro .intro-meta { margin-top: 0; }
.showcase-track, .horizon-track { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; }
.showcase-track::-webkit-scrollbar, .horizon-track::-webkit-scrollbar { display: none; }
#showcase-track { overflow-y:hidden; overscroll-behavior-y:auto; touch-action:pan-x pan-y; }
.showcase-card { position: relative; flex: 0 0 86%; min-width: 0; aspect-ratio: 2 / 3; scroll-snap-align: start; scroll-snap-stop: always; border: 2px solid #111; box-shadow: 4px 4px 0 #111; background: #111; overflow: hidden; isolation: isolate; }
.showcase-image { position: absolute; inset: 0; display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: center; background: #111; }
.showcase-card::after { content: ""; position: absolute; inset: 25% 0 0; z-index: 0; background: linear-gradient(to top, rgb(0 0 0 / .97) 0%, rgb(0 0 0 / .7) 36%, transparent 100%); pointer-events: none; }
.showcase-open { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; text-align: left; z-index: 1; }
.showcase-open:focus-visible { outline: 3px solid var(--lime); outline-offset: -6px; }
.showcase-sticker { position: absolute; top: 18px; left: 15px; z-index: 2; padding: 6px 9px; border: 1.5px solid #111; background: var(--lime); color: #111; font-size: 10px; line-height: 1.4; font-weight: 850; letter-spacing: .3px; transform: rotate(-4deg); box-shadow: 2px 2px 0 #111; pointer-events: none; }
.showcase-favorite { display: grid; place-items: center; position: absolute; left: auto; top: 8px; right: 8px; z-index: 4; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #fff; box-shadow: none; }
.showcase-favorite .sticker-mark { display: grid; place-items: center; width: 30px; height: 30px; box-sizing: border-box; border: 2px solid #fff; border-radius: 7px; background: #111; box-shadow: 2px 2px 0 #111; transform: rotate(-3deg); pointer-events: none; }
.showcase-favorite .sticker-heart { display: block; width: 23px; height: 23px; overflow: visible; }
.showcase-favorite .sticker-heart path { stroke-linejoin: round; stroke-linecap: round; }
.showcase-favorite .sticker-halo { fill: none; stroke: #111; stroke-width: 5; }
.showcase-favorite .sticker-shape { fill: none; stroke: #fff; stroke-width: 2.3; }
.showcase-favorite[aria-pressed="true"] .sticker-shape { fill: #ff3e9d; stroke: #ff3e9d; }
.showcase-favorite:focus-visible { outline: 3px solid var(--lime); outline-offset: 1px; }
.showcase-favorite:active .sticker-mark { translate: 0 1px; }
.showcase-copy { position: absolute; left: 20px; right: 20px; bottom: 23px; z-index: 2; color: #fff; pointer-events: none; }
.showcase-copy > small, .showcase-eyebrow { display: block; font-size: 8px; line-height: 1.6; letter-spacing: 1.7px; font-weight: 650; margin-bottom: 10px; color: #e3e6dd; text-transform: uppercase; }
.showcase-copy h2, .showcase-copy h3, .showcase-title { display: block; color: var(--lime); font-size: clamp(25px, 7vw, 39px); line-height: 1.18; font-weight: 850; letter-spacing: -.8px; overflow-wrap: anywhere; }
.showcase-copy p, .showcase-copy .showcase-english { font-size: 11px; line-height: 1.6; margin-top: 8px; color: #f4f5f0; }
.showcase-meta { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin-top: 17px; padding-right: 0; font-size: 10px; color: #e2e7dc; line-height: 1.2; white-space: nowrap; }
.showcase-platform { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; height: 22px; color: #fff; font-size: 11px; font-weight: 650; white-space: nowrap; }
.showcase-platform svg { display: block; flex: 0 0 14px; width: 14px; height: 14px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #fff; stroke-width: 2.1; filter: drop-shadow(0 1px 1px #111); }
.showcase-language { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 22px; padding: 2px 7px; border: 1px solid #d1d5cb; border-radius: 999px; background: #ecefe6; color: #252922; font-size: 10px; font-weight: 700; line-height: 1; white-space: nowrap; }
.showcase-xgp { position: static; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 22px; padding: 2px 7px; border: 2px solid #111; border-radius: 999px; background: var(--lime); color: #111; font-size: 10px; line-height: 1; font-weight: 900; letter-spacing: 0; white-space: nowrap; }
.showcase-pips, .horizon-pips { display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 28px; margin-top: 16px; margin-bottom: 24px; }
.showcase-pips button, .horizon-pips button { display: block; flex: 0 0 auto; position: relative; width: 8px; height: 6px; min-height: 0; padding: 0; border: 0; border-radius: 99px; background: #c8cfc0; transition: width 240ms cubic-bezier(.4,0,.2,1), background-color 180ms cubic-bezier(.4,0,.2,1); }
.showcase-pips button::before, .horizon-pips button::before { content: ""; position: absolute; top: -10px; right: -2px; bottom: -10px; left: -2px; }
.showcase-pips button[aria-current="true"], .showcase-pips button.active, .horizon-pips button[aria-current="true"], .horizon-pips button.active { width: 24px; background: var(--lime); }
.discovery-draw, .horizon-section { padding: 26px 0 30px; border-top: 2px solid #353b30; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.section-heading h2, .discovery-draw h2, .horizon-section h2 { margin-top: 8px; font-size: 25px; line-height: 1.25; font-weight: 850; letter-spacing: -.7px; }
.section-heading .kicker { font-size: 8px; letter-spacing: 1.3px; }
.recommend-intro { margin: 10px 0 0; color: #5d6554; font-size: 12px; line-height: 1.8; }
.recommend-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 12px; margin-top: 22px; }
.recommend-controls > label, .filter-select-grid > label { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: #535b4b; font-size: 11px; line-height: 1.4; font-weight: 650; }
.recommend-controls select, .filter-select-grid select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 28px 10px 10px; border: 1.5px solid #111; border-radius: 0; background: #fff; color: #111; font-size: 13px; font-weight: 550; text-overflow: ellipsis; }
.recommend-controls .square-toggle { grid-column: 1 / -1; margin-top: 1px; font-size: 12px; }
.recommend-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 17px; padding: 12px 16px; border: 2px solid #111; background: #111; color: var(--lime); font-size: 15px; line-height: 1.4; font-weight: 800; box-shadow: 3px 3px 0 var(--lime); transition: transform 230ms cubic-bezier(.34,1.56,.64,1); }
.recommend-submit svg { width: 23px; height: 23px; }
.recommend-submit:active { transform: scale(.97); }
.recommend-submit.is-bouncing { animation: dice-bounce 330ms cubic-bezier(.34,1.56,.64,1); }
.recommend-caption { margin-top: 13px; color: #707767; font-size: 10px; line-height: 1.8; }
.recommend-caption a, .recommend-caption button { padding: 0; border: 0; background: none; color: #111; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.horizon-tabs { position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;isolation:isolate;gap:0;margin:20px 0 18px;padding:4px;border:0;border-radius:10px;background:#e9ece4; }
.horizon-tab-indicator { position:absolute;z-index:-1;top:4px;bottom:4px;left:4px;width:calc((100% - 8px)/2);border-radius:7px;background:#111;transform:translateX(0);transition:transform .35s cubic-bezier(.34,1.56,.64,1);pointer-events:none; }
.horizon-tabs[data-active="leaving"] .horizon-tab-indicator { transform:translateX(100%); }
.horizon-tabs button { display:flex;justify-content:center;align-items:center;gap:8px;min-width:0;min-height:42px;padding:8px 12px;border:0;border-radius:7px;background:transparent;color:#626c55;font-size:12px;line-height:1.5;font-weight:750;white-space:nowrap;transition:color .2s ease,transform .14s ease; }
.horizon-tabs button[aria-selected="true"] { color:#fff; }
.horizon-tabs button:active { transform:scale(.96); }
.horizon-tabs button span { display: grid; place-items: center; flex-shrink: 0; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 99px; background: #edf0e7; color: #111; font: 750 10px ui-monospace, monospace; }
.horizon-tabs button.active span, .horizon-tabs button[aria-selected="true"] span, .horizon-tabs button[aria-pressed="true"] span { background: var(--lime); }
.horizon-card { display:flex;align-items:flex-start;flex:0 0 calc(100% - 40px);gap:14px;min-width:0;min-height:116px;padding:13px 16px 13px 13px;border:2px solid #111;background:#fff;box-shadow:3px 3px 0 #111;scroll-snap-align:start;scroll-snap-stop:always;text-align:left;touch-action:pan-y;transition:transform .16s cubic-bezier(.2,.8,.2,1),box-shadow .16s ease; }
.horizon-loading { display: flex; align-items: center; justify-content: center; flex: 1 0 100%; min-height: 116px; margin: 0; border: 2px dashed #111; color: #626c55; font-size: 12px; font-weight: 700; }
.horizon-card > img, .horizon-cover { display:block; flex:0 0 var(--horizon-cover-width); width:var(--horizon-cover-width); height:auto; aspect-ratio:var(--portrait-cover-ratio); object-fit:contain; object-position:center; background:var(--soft); border:1.5px solid #111; }
.horizon-card > div { min-width: 0; flex: 1; }
.horizon-card h3, .horizon-title { display:-webkit-box;min-width:0;min-height:2.8em;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:14px;line-height:1.4;font-weight:800;letter-spacing:-.3px; }
.horizon-meta { display:grid;grid-template-columns:94px max-content;align-items:center;column-gap:7px;margin-top:8px;color:#111;font-size:10px;line-height:1.5; }
.horizon-platforms { display:inline-flex;width:94px;min-width:94px;align-items:center;gap:9px;white-space:nowrap; }
.horizon-platform { display:inline-flex;align-items:center;gap:4px;color:#111;font-size:11px;font-weight:700;line-height:1;white-space:nowrap; }
.horizon-platform svg { width:13px;height:13px;flex:0 0 13px;stroke-width:2; }
.account-shared-version {cursor:pointer}
.account-shared-version:focus-visible {outline:2px solid #111;outline-offset:2px}
.horizon-date { display:inline-flex;align-items:center;min-height:19px;padding:2px 7px;border-radius:99px;background:#eceee8;color:#41463d;font-size:10px;font-weight:700;line-height:1.2; }
.horizon-date.is-leaving-date { animation:horizon-date-pulse 3s ease-in-out infinite; }
.updates-list .horizon-card > svg { align-self:center;width:23px;height:23px;flex-shrink:0;stroke:#111;stroke-width:2.8;transition:transform .16s ease; }
.horizon-card:active { transform:translate(4px,4px);box-shadow:none; }
.horizon-card:active > svg { transform:translateX(4px); }
.horizon-card.reveal-pending:not(.is-revealed) { opacity:0;transform:translateY(-20px) scale(.98); }
.horizon-card.is-revealed { opacity:1;transform:none;animation:horizon-card-drop .42s var(--reveal-delay,0ms) cubic-bezier(.34,1.56,.64,1) backwards; }
@keyframes horizon-card-drop { from { opacity:0;transform:translateY(-20px) scale(.98); } to { opacity:1;transform:translateY(0) scale(1); } }
@keyframes horizon-date-pulse { 0%,100% { opacity:.72; } 50% { opacity:1; } }
.horizon-section .section-heading { align-items:center;margin-bottom:8px; }
.horizon-section .section-heading > div { min-width:0; }
.horizon-section .section-heading h2 { margin:0;font-size:25px; }
.horizon-all { display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:4px;width:auto;min-width:44px;min-height:44px;padding:0 0 0 8px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#111;font-size:12px;font-weight:750;line-height:1.4;text-align:right;text-decoration:none;white-space:nowrap;transition:transform .16s ease,color .16s ease; }
.horizon-all .button-arrow { display:grid;place-items:center;color:#111;transition:transform .16s ease; }
.horizon-all svg { width:16px;height:16px;stroke-width:2.7; }
.horizon-all:active { transform:translateX(2px);box-shadow:none;color:#333; }
.horizon-all:active .button-arrow { transform:translateX(2px); }
.game-card .card-copy { grid-row: 1 / 3; align-self: center; }
.game-card .card-arrow { grid-row: 1 / 3; }
.xgp-memberships { display: flex; flex-direction: column; gap: 7px; margin-top: 11px; }
.xgp-row { display: flex; align-items: flex-start; gap: 7px; min-width: 0; }
.xgp-platform { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 44px; min-height: 20px; color: #4f5a43; font-size: 10px; line-height: 1.5; font-weight: 750; white-space: nowrap; }
.xgp-platform svg { width: 13px; height: 13px; stroke-width: 2.2; }
.xgp-plans { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.xgp-plan { display: inline-flex; align-items: center; min-height: 20px; padding: 1px 5px; border: 1px solid #d1d8c8; border-radius: 2px; background: #f7f8f3; color: #626f53; font-size: 9px; line-height: 1.5; font-weight: 550; white-space: nowrap; }
.account-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.account-badge { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 3px 5px; border: 1px solid #aeb8a0; background: #fff; color: #4e5d3b; font-size: 9px; line-height: 1.4; font-weight: 600; text-align: left; }
.account-badge svg { width: 12px; height: 12px; stroke-width: 2; }
.account-badge:active { background: #edf2e5; }
.game-list[data-layout="grid"] .xgp-memberships { width: 100%; padding: 0; margin-top: 8px; gap: 5px; }
.game-list[data-layout="grid"] .xgp-row { display: block; }
.game-list[data-layout="grid"] .xgp-platform { margin-bottom: 3px; min-height: 0; font-size: 8px; }
.game-list[data-layout="grid"] .xgp-platform svg { width: 10px; height: 10px; }
.game-list[data-layout="grid"] .xgp-plans { gap: 3px; }
.game-list[data-layout="grid"] .xgp-plan { min-height: 17px; padding: 1px 3px; font-size: 7px; letter-spacing: -.1px; }
.game-list[data-layout="grid"] .account-badges { margin-top: 8px; }
.game-list[data-layout="grid"] .account-badge { padding: 3px; font-size: 8px; }
.game-list[data-layout="grid"] .account-badge svg { width: 10px; height: 10px; }
.detail-memberships { margin-top: 19px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-memberships > h2, .detail-memberships > h3, .detail-account-section > h2, .detail-account-section > h3 { font-size: 14px; line-height: 1.6; font-weight: 800; letter-spacing: 0; }
.detail-memberships .xgp-memberships { gap: 9px; }
.detail-memberships .xgp-platform { flex-basis: 48px; font-size: 11px; }
.detail-memberships .xgp-plan { font-size: 10px; min-height: 23px; }
.detail-account-section { margin-top: 22px; }
.account-rule { margin-top: 11px; padding: 13px; border: 1px solid #cad2c0; background: #fff; }
.account-rule h3, .account-rule h4, .account-rule > strong { display: block; font-size: 12px; line-height: 1.6; font-weight: 750; }
.account-rule-details { display: grid; gap: 6px; margin-top: 9px; color: #5c6553; font-size: 11px; line-height: 1.8; }
.account-rule-details dt { color: #6e7765; }
.account-rule-details dd { margin: 0; }
.account-rule p { color: #616c55; font-size: 11px; line-height: 1.8; }
.account-rule a { display: inline-flex; margin-top: 8px; color: #111; font-size: 10px; line-height: 1.7; text-decoration: underline; text-underline-offset: 3px; }
.account-data-note { margin-top: 12px; color: #777e6e; font-size: 10px; line-height: 1.8; }
.filter-select-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.filter-section .filter-help { margin-left: 0; }
.page-footer { margin-top: 0; padding-top: 0; padding-bottom: 8px; }
.page-footer > span { display: block; }
.toast { bottom: 84px; }
.draw-modal.is-revealed .draw-progress::after { animation-timing-function: cubic-bezier(.4,0,.2,1); }

@media (min-width: 700px) {
  #new-page .intro h1 { font-size: 54px; }
  .showcase-card { flex-basis: min(calc((100% - 16px) / 2.18), 380px); }
  .showcase-copy { left: 24px; right: 24px; bottom: 27px; }
  .showcase-copy h2, .showcase-copy h3, .showcase-title { font-size: 35px; }
  .showcase-meta { font-size: 11px; }
  .discovery-draw, .horizon-section { padding-top: 32px; padding-bottom: 36px; }
  .recommend-controls { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
  .recommend-controls .square-toggle { grid-column: 1 / -1; }
  .recommend-submit { max-width: none; }
  .horizon-tabs { width: 340px; }
  .horizon-card { flex-basis: calc((100% - 16px) / 2.15); min-height: 126px; padding: 16px; }
  .horizon-card h3, .horizon-title { font-size: 16px; }
  .horizon-meta { font-size: 11px; }
  .xgp-platform { flex-basis: 50px; font-size: 11px; }
  .xgp-plan { font-size: 10px; }
  .account-badge { font-size: 10px; }
  .game-list[data-layout="grid"] .xgp-platform { font-size: 9px; }
  .game-list[data-layout="grid"] .xgp-plan { font-size: 9px; }
}
@media (max-width: 359px) {
  #new-page .intro h1 { font-size: 30px; }
  .showcase-copy { left: 15px; right: 15px; bottom: 19px; }
  .showcase-copy h2, .showcase-copy h3, .showcase-title { font-size: 25px; }
  .showcase-sticker { top: 14px; left: 12px; padding: 5px 7px; font-size: 8px; }
  .showcase-favorite { width: 44px; height: 44px; top: 8px; right: 8px; padding: 0; }
  .showcase-favorite .sticker-heart { width: 23px; height: 23px; }
  .showcase-copy > small, .showcase-eyebrow { font-size: 7px; letter-spacing: 1px; }
  .showcase-meta { font-size: 9px; }
  .horizon-card { flex-basis: calc(100% - 36px); gap: 10px; padding: 11px; }
  .horizon-card > img, .horizon-cover { flex-basis:var(--horizon-cover-mobile-width); width:var(--horizon-cover-mobile-width); }
  .horizon-card h3, .horizon-title { font-size: 12px; }
  .horizon-tabs button { padding: 8px 9px; gap: 6px; font-size: 11px; }
  .xgp-row { gap: 4px; }
  .xgp-platform { flex-basis: 36px; font-size: 9px; }
  .xgp-platform svg { width: 11px; height: 11px; }
  .xgp-plan { font-size: 8px; padding-right: 4px; padding-left: 4px; }
  .account-badge { font-size: 8px; }
  .filter-select-grid { gap: 9px; }
  .filter-select-grid select { padding-left: 7px; font-size: 12px; }
}
@media (max-width: 699px) {
  .recommend-controls select, .filter-select-grid select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .bottom-dock button, .bottom-dock .dock-icon, .bottom-dock .dock-icon svg, .page-entering,
  .showcase-pips button, .horizon-pips button, .recommend-submit, .horizon-tab-indicator,
  .horizon-card, .horizon-date, .horizon-all, .horizon-all .button-arrow { animation:none!important;transition:none!important; }
  .bottom-dock button:active { transform: none; }
  .horizon-card:active, .horizon-tabs button:active, .horizon-all:active { transform:none;box-shadow:3px 3px 0 #111; }
  .horizon-card.reveal-pending:not(.is-revealed) { opacity:1;transform:none; }
  .showcase-image { will-change: auto; }
}

/* Integration: keep account requirements beside their platform without squeezing plans. */
.xgp-row { display:grid; grid-template-columns:44px minmax(0,1fr); align-items:start; gap:5px 7px; }
.xgp-platform { grid-column:1; }
.xgp-plans { grid-column:2; }
.xgp-row > .account-badge { grid-column:2; justify-self:start; }
.horizon-copy { flex:1; min-width:0; }
.horizon-section { margin-top:4px; }
.snapshot-label { color:#707767; font-size:11px; line-height:1.6; margin-top:-9px; }
.heading-star { display:inline-block; width:25px; height:25px; margin-left:4px; fill:var(--lime); stroke:#111; stroke-width:1.4; }
.showcase-copy > .showcase-eyebrow { margin-bottom:8px; font-size:8px; letter-spacing:1.2px; line-height:1.6; }
.showcase-copy > .showcase-english { display:block; font-size:11px; line-height:1.6; margin-top:7px; }
.recommend-reset { padding:4px 0; margin-top:7px; border:0; background:none; color:#626b57; font-size:11px; text-decoration:underline; text-underline-offset:4px; }
.recommend-submit:active { transform:scale(.9); }
.recommend-dice { width:26px; height:26px; flex-shrink:0; }
.updates-list { display:grid; gap:12px; margin:16px 0 25px; }

/* Free Play Days: first-screen mixed carousel and live activity countdown. */
#new-page .intro-title-row { display:flex; align-items:center; justify-content:space-between; gap:8px; }
#new-page .intro-title-row h1 { min-width:0; margin:13px 0 10px; }
.free-play-countdown { display:inline-flex; flex:0 0 auto; align-items:center; gap:7px; padding:4px 5px 4px 9px; border:1.5px solid #111; border-radius:999px; background:#fff; color:#111; font-size:10px; font-weight:850; white-space:nowrap; }
.free-play-countdown[hidden] { display:none; }
.free-play-countdown i { width:1px; height:15px; background:#d5d8d1; }
.free-play-countdown b { padding:4px 7px; border-radius:999px; background:var(--lime); color:#111; font:900 10px/1.2 ui-monospace,monospace; font-variant-numeric:tabular-nums; }
.free-play-countdown.is-urgent b { background:#ff5147; color:#fff; }
.free-play-countdown.is-shaking { animation:free-play-shake .42s ease-in-out; }
.showcase-free-play { transition:transform .14s ease,box-shadow .14s ease,flex-basis .42s cubic-bezier(.34,1.56,.64,1),margin-right .42s cubic-bezier(.34,1.56,.64,1),border-width .42s cubic-bezier(.34,1.56,.64,1),opacity .42s ease; }
.showcase-free-play .showcase-copy { left:14px; right:14px; bottom:14px; }
.showcase-free-play .showcase-eyebrow { margin-bottom:5px; font-size:7px; letter-spacing:.8px; }
.showcase-free-play .showcase-copy h2 { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; font-size:clamp(21px,5.9vw,31px); }
.showcase-free-play .showcase-copy .showcase-english { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; margin-top:4px; }
.showcase-free-play .free-play-gate { top:14px; left:12px; padding:6px 9px; border:1.5px solid #111; border-radius:999px; box-shadow:2px 2px 0 #111; transform:rotate(-2deg); font-size:9px; }
.showcase-free-play .free-play-gate.is-all { background:var(--lime); color:#111; }
.showcase-free-play .free-play-gate.is-membership { background:#111; color:#fff; }
.free-play-labels { display:flex; flex-wrap:wrap; align-items:center; gap:5px; margin-top:8px; }
.free-play-limit,.free-play-keep,.free-play-end { display:inline-flex; align-items:center; min-height:20px; padding:3px 6px; border-radius:999px; background:#ecefe6; color:#252922; font-size:9px; line-height:1.2; font-weight:750; }
.free-play-limit.is-limited { border:1px solid #ff7067; background:#fff; color:#ff5147; }
.free-play-keep { border:1px solid #111; background:var(--lime); color:#111; }
.free-play-end { background:rgb(255 255 255 / .16); color:#fff; }
.free-play-end b { margin-left:4px; font:850 9px/1.2 ui-monospace,monospace; font-variant-numeric:tabular-nums; }
.showcase-free-play.is-urgent .free-play-end { background:#ff5147; color:#fff; }
.showcase-card.reveal-pending:not(.is-revealed) { opacity:0; }
.showcase-card.is-revealed { animation:showcase-card-enter .42s var(--reveal-delay,0ms) cubic-bezier(.34,1.56,.64,1) both; }
.showcase-card.is-revealed .showcase-copy { animation:showcase-copy-enter .42s var(--reveal-delay,0ms) cubic-bezier(.34,1.56,.64,1) both; }
.showcase-free-play:active { transform:scale(.995); box-shadow:2px 2px 0 #111; }
.showcase-free-play.is-expiring { flex:0 0 0!important; min-width:0; margin-right:-16px; border-width:0; box-shadow:none; opacity:0; pointer-events:none; }
@keyframes showcase-card-enter { from { opacity:0; } to { opacity:1; } }
@keyframes showcase-copy-enter { from { transform:translateY(12px); } to { transform:translateY(0); } }
@keyframes free-play-shake { 0%,100% { transform:translateX(0); } 25% { transform:translateX(-3px); } 75% { transform:translateX(3px); } }
@media(prefers-reduced-motion:reduce) {
 .showcase-card.reveal-pending:not(.is-revealed) { opacity:1; transform:none; }
 .showcase-card.is-revealed,.showcase-card.is-revealed .showcase-copy,.free-play-countdown.is-shaking { animation:none!important; }
 .showcase-free-play.is-expiring { transition:none!important; }
}
.updates-list .horizon-card { width:100%; flex-basis:auto; }
.updates-list .horizon-card > svg { width:23px;height:23px;flex-shrink:0;stroke:#111;stroke-width:2.8; }
.update-cover { width:120px; height:120px; object-fit:cover; border:1.5px solid #111; margin-top:20px; }
.update-detail{padding:25px 20px 32px;max-width:620px;margin:0 auto;color:#111}
.update-status{display:table;margin:0 0 10px;padding:6px 9px;border:2px solid #111;background:var(--lime);font:800 10px ui-monospace,monospace;letter-spacing:.3px;animation:update-status-breathe 3s ease-in-out infinite}
.update-detail>h1{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0 0 8px;font-size:clamp(24px,6vw,34px);font-weight:900;line-height:1.16;letter-spacing:-.7px}
.update-preview{display:table;margin:0 0 16px;padding:5px 8px;background:#111;color:#fff;font-size:11px;font-weight:800}
.update-hero{display:flex;align-items:flex-start;gap:14px;margin:16px 0 18px}
.update-cover{display:block;flex:0 0 100px;width:100px;height:100px;aspect-ratio:1;object-fit:cover;margin:0;border:2px solid #111;box-shadow:3px 3px 0 #111}
.update-chips{display:flex;flex-wrap:wrap;align-content:flex-start;gap:7px;min-width:0;padding-top:3px}
.update-chip{display:inline-flex;align-items:center;gap:5px;min-height:27px;padding:4px 8px;border:1px solid #d5d8cf;border-radius:999px;background:#fff;color:#20231f;font-size:11px;font-weight:700}
.update-chip svg{width:14px;height:14px;stroke-width:1.8}
.update-language{background:#eef0e8}
.update-description{margin:0;color:#333;font-size:14px;line-height:1.6;white-space:pre-line}
.update-warning{display:flex;align-items:flex-start;gap:10px;margin:19px 0 0;padding:13px 14px;border:2px solid #111;background:#fff;box-shadow:3px 3px 0 #111}
.update-warning>span{flex:none;font-size:17px;line-height:1.2}
.update-warning p{margin:0;color:#222;font-size:13px;font-weight:650;line-height:1.55}
.update-benefits{position:relative;margin-top:23px}
.update-benefits>h2{margin:0 0 11px;color:#4d5549;font-size:12px;font-weight:750}
.update-benefits .de-dual-tickets{display:flex;flex-direction:column;gap:10px;width:100%}
.update-benefits .de-platform-ticket{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:stretch;width:100%;min-width:0;overflow:hidden;border:2px solid #111;border-radius:4px;background:#fff;box-shadow:3px 3px 0 #111;transition:transform .16s cubic-bezier(.34,1.56,.64,1),box-shadow .16s cubic-bezier(.34,1.56,.64,1)}
.update-benefits .de-ticket-stub{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:66px;padding:9px 6px;background:#111;color:#fff}
.update-benefits .de-ticket-stub svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2}
.update-benefits .de-ticket-stub strong{font-size:13px;font-weight:800;line-height:1.25}
.update-benefits .de-ticket-body{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;padding:9px 10px 9px 13px;border-left:2px dashed #111}
.update-benefits .de-ticket-tier{display:flex;align-items:center;gap:7px;min-width:0;color:#666;font-size:11px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.update-benefits .de-ticket-tier.ultimate{gap:6px;color:#111;font-size:13px;font-weight:900}
.update-benefits .de-ticket-tier.ultimate::before{content:'';flex:0 0 8px;width:8px;height:8px;margin-right:-1px;background:#b4ff39}
.update-benefits .de-platform-ticket:active{transform:translate(3px,3px);box-shadow:none}
.update-benefits>.de-language-group{display:none}
.update-future-note{display:inline-block;margin-top:11px;padding:4px 7px;border-radius:999px;background:#e9ece4;color:#61685c;font-size:10px;font-weight:650}
.update-data-note{margin:26px 0 0;color:#888;font-size:10px;line-height:1.6;text-align:center}
.update-detail>*{animation:update-detail-enter .44s cubic-bezier(.34,1.56,.64,1) both}
.update-detail>.update-status{animation-delay:0ms}.update-detail>h1,.update-detail>.update-preview{animation-delay:50ms}.update-detail>.update-hero{animation-delay:100ms}.update-detail>.update-description{animation-delay:125ms}.update-detail>.update-warning{animation-delay:150ms}.update-detail>.update-benefits{animation-delay:200ms}.update-detail>.update-data-note{animation-delay:230ms}
@keyframes update-detail-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes update-status-breathe{0%,100%{opacity:1}50%{opacity:.78}}
@media(max-width:359px){.update-detail{padding-right:15px;padding-left:15px}.update-cover{flex-basis:86px;width:86px;height:86px}.update-hero{gap:11px}}
@media(prefers-reduced-motion:reduce){.update-detail>*{animation:none!important}.update-status{animation:none}.update-benefits .de-platform-ticket{transition:none}.update-benefits .de-platform-ticket:active{transform:none}}
.official-link { display:inline-block; color:#111; margin:18px 0; font-size:12px; text-underline-offset:4px; }
.detail-memberships > p { font-size:10px; color:#707767; line-height:1.7; margin-top:10px; }
@media(min-width:700px){.recommend-controls{grid-template-columns:repeat(4,minmax(0,1fr));}.xgp-row{grid-template-columns:50px minmax(0,1fr);}}
@media(max-width:359px){.xgp-row{grid-template-columns:36px minmax(0,1fr);gap:4px;}}
@media(prefers-reduced-motion:reduce){.recommend-submit:active{transform:none;}}

.filter-metric-hints { display:flex; flex-wrap:wrap; gap:7px; margin:2px 0 13px; }

.metric-sample-note { color:#707767; font-size:10px; line-height:1.6; margin-top:8px; }

@media(prefers-reduced-motion:reduce){.nav-sliding-indicator{transition:none !important;}}
/* Recommendation choices share the original genre picker visual language. */
.recommend-field { display:flex; flex-direction:column; gap:8px; position:relative; min-width:0; }
.recommend-field-label { color:#535b4b; font-size:11px; font-weight:650; line-height:1.4; }
.recommend-picker-trigger { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; height:36px; padding:6px 14px; border:0; border-radius:99px; background:#f0f0f0; color:#111; font-size:12px; font-weight:600; text-align:left; transition:transform 200ms cubic-bezier(.22,1,.36,1),background-color 200ms ease; }
.recommend-picker-trigger > span { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.recommend-picker-trigger svg { flex:0 0 16px; width:16px; height:16px; stroke-width:2.3; transition:transform 200ms ease; }
.recommend-picker-trigger[aria-expanded=true] svg { transform:rotate(180deg); }
.recommend-picker-trigger:active { transform:scale(.95); transition-duration:80ms; }
.recommend-picker-menu { position:absolute; top:calc(100% + 8px); left:0; z-index:60; width:max-content; min-width:180px; max-width:calc(100vw - 48px); max-height:min(340px,50dvh); overflow-y:auto; overscroll-behavior:contain; padding:6px; border:1px solid #e4e6df; border-radius:12px; background:#fff; box-shadow:0 10px 28px #10170d26; }
.recommend-field[data-direction=up] .recommend-picker-menu { top:auto; bottom:calc(36px + 8px); }
.recommend-picker-menu button { display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; min-height:44px; padding:7px 12px; border:0; border-radius:8px; background:transparent; color:#30362d; text-align:left; font-size:13px; }
.recommend-picker-menu button:hover { background:#f1f2ed; }
.recommend-picker-menu button[aria-selected=true] { background:#b4ff39; color:#111; font-weight:700; }
.recommend-picker-menu .option-check { display:none; }
.recommend-picker-trigger:focus-visible,.recommend-picker-menu button:focus-visible { outline:2px solid #777; outline-offset:2px; }
@media(prefers-reduced-motion:reduce){.recommend-picker-trigger,.recommend-picker-trigger svg{transition:none !important;}.recommend-picker-trigger:active{transform:none;}}

html[data-input=pointer] .recommend-picker-trigger:focus,html[data-input=pointer] .recommend-picker-menu button:focus { outline:none; }

/* Keep focus feedback local to the icon so it never outlines a whole nav cell. */
.bottom-dock button:focus,.bottom-dock button:focus-visible { outline:none; }
html[data-input=keyboard] .bottom-dock button:focus-visible .dock-icon { outline:2px solid #777; outline-offset:4px; border-radius:6px; }
html[data-input=pointer] .bottom-dock .dock-icon { outline:none; }

/* Grid polish: preserve artwork and lock metadata to shared visual centers. */
.game-list[data-layout="grid"] .game-card[data-cover-shape="landscape"] .cover-wrap img { object-fit:contain; object-position:center center; transform:none; }
.poster-data { align-items:center; font-size:11px; line-height:16px; font-weight:600; font-variant-numeric:tabular-nums; }
.poster-data > span { gap:2px; font-size:11px; line-height:16px; font-weight:600; }
.poster-data svg { width:12px; height:12px; flex:0 0 12px; }
.poster-perks { min-height:20px; align-items:center; }
.poster-platforms { display:inline-flex; height:20px; align-items:center; }
.poster-platforms > span { display:inline-flex; height:20px; align-items:center; justify-content:center; }
.xgp-top-tier-badge { min-height:20px; line-height:14px; align-items:center; }
.game-list[data-layout="grid"] .favorite-button { border:2px solid #000; border-radius:4px; background:#fff; color:#000; box-shadow:none; }
.game-list[data-layout="grid"] .favorite-button svg { stroke:#000; fill:none; }
.game-list[data-layout="grid"] .favorite-button[aria-pressed="true"] svg { fill:#B4FF39; stroke:#000; }

.poster-score .mc-tag { font-size:9px; line-height:16px; font-weight:600; color:#666; }
.poster-score b { font-size:11px; line-height:16px; font-weight:700; color:#000; }
.poster-time,.poster-time svg { color:#000; }

/* Compact MC badge: user-defined display tiers; source scores remain demo data. */
.poster-data .poster-score { display:inline-flex; align-items:center; justify-content:center; gap:2px; min-height:20px; padding:2px 6px; border-radius:2px; background:#000; color:#fff; }
.poster-data .poster-score[data-score-tier="high"] { background:#00CE7A; color:#000; }
.poster-data .poster-score[data-score-tier="normal"] { background:#000; color:#fff; }

.poster-score .mc-tag { font-size:8px; line-height:14px; color:inherit; font-weight:650; }
.poster-score b { font-size:12px; line-height:14px; color:inherit; font-weight:800; }

.poster-data { display:flex; align-items:center; min-height:20px; }
.poster-data .poster-time { display:inline-flex; align-items:center; height:20px; }
.poster-platforms { color:#888; }
.poster-platforms svg { width:11px; height:11px; }


/* Superdesign-approved mobile polish, 2026-10-22. Navigation and poster geometry are preserved. */
#library-page .finder{margin-top:8px;margin-bottom:16px}
#library-page .search-form{height:48px}
#library-page .results-heading{padding-top:12px;margin-bottom:16px;align-items:center}
#library-page .results-kicker{display:none}
#library-page .results-title{font-size:24px;line-height:1.25}
#library-page .results-subtitle{font-size:11px;line-height:1.6;max-width:265px}
.game-list[data-layout="grid"] .game-card>.favorite-button{width:44px;height:44px;top:0;right:0;background:transparent;border:0;box-shadow:none;isolation:isolate}
.game-list[data-layout="grid"] .game-card>.favorite-button:before{content:'';position:absolute;inset:9.5px;background:#fff;border:2px solid #111;border-radius:4px;z-index:-1}
.game-list[data-layout="grid"] .game-card>.favorite-button svg{width:17px;height:17px}
.game-list[data-layout="list"] .xgp-plan{font-size:10px;line-height:1.5}
.game-list[data-layout="list"] .card-english{font-size:11px;line-height:1.5}
.game-list[data-layout="list"] .xgp-row{align-items:center;row-gap:6px}
.discover-draw,.discovery-draw{border-top:1px solid var(--line);padding-top:24px;margin-top:24px}
.horizon-section{border-top:1px solid var(--line);padding-top:24px;margin-top:24px}
.recommend-submit{box-shadow:2px 2px 0 var(--lime)}
.recommend-intro{font-size:13px;line-height:1.7}
.recommend-caption,.snapshot-label,.recommend-reset{font-size:12px;line-height:1.6}
.showcase-pips,.horizon-pips{margin-bottom:24px}
.filter-drawer .drawer-close{width:44px;height:44px}
.filter-drawer .drawer-header{padding-top:12px;padding-bottom:12px}
.filter-drawer .drawer-header .kicker{display:none}
.filter-form>fieldset{padding:20px 0}
.filter-form>fieldset>legend{font-size:14px;line-height:24px;font-weight:800;padding-top:8px}
.filter-form .genre-options{gap:8px;margin-top:8px}
.filter-form .genre-options button{min-height:44px;font-size:12px}
.filter-form .square-toggle{min-height:64px;align-items:center;padding:12px 0}
.filter-form .square-toggle strong{font-size:14px;line-height:1.5}
.filter-form .square-toggle small{font-size:12px;line-height:1.6;color:#555d4b}
.filter-form .filter-select-grid{gap:16px;margin-top:8px}
.filter-form .filter-select-grid>label{font-size:12px}
.filter-form .filter-label-row{display:flex;align-items:center;justify-content:space-between;min-height:32px;margin-bottom:4px}
.metric-help-button.metric{position:relative;margin:0;width:28px;min-height:28px;justify-content:center;padding:0;border:0;box-shadow:none;border-radius:99px;background:transparent;color:#62665b;font-size:13px}
.metric-help-button:before{content:'';position:absolute;inset:-8px}
.filter-form .sort-options{display:block;border:0;margin:16px 0 0;padding:0}
.filter-form .sort-options>span{display:block;font-size:12px;font-weight:700;margin-bottom:12px}
.filter-form .filter-help{font-size:11px;line-height:1.7;color:#62665b}
.recommend-picker-trigger{position:relative}
.recommend-picker-trigger:before{content:'';position:absolute;inset:-4px 0}
#game-detail .detail-content{padding:16px}
#game-detail .detail-compact-header{display:grid;grid-template-columns:88px minmax(0,1fr);gap:16px;align-items:start;margin-bottom:16px}
#game-detail .detail-compact-header .detail-cover{width:var(--detail-cover-width);height:auto;aspect-ratio:var(--portrait-cover-ratio);max-height:none;box-shadow:none;border:2px solid #111}
#game-detail .detail-compact-header .detail-cover img{width:100%;height:100%;object-fit:contain;object-position:center}
#game-detail .detail-title-group h1{font-size:22px;line-height:1.35;margin:0;font-weight:850}
#game-detail .detail-title-group .detail-english{font-size:11px;line-height:1.5;margin-top:6px;overflow-wrap:anywhere}
#game-detail .detail-title-group .card-metrics{margin-top:12px;gap:6px}
#game-detail .detail-title-group .metric{min-height:24px;padding:2px 6px;gap:3px;font-size:11px}
#game-detail .detail-title-group .metric[data-tip="mc"]{border-radius:2px;border:0;box-shadow:none}
#game-detail .detail-title-group .mc-tag{font-size:8px;font-weight:650}
#game-detail .detail-title-group .metric-sample-note{margin-top:8px;font-size:11px;line-height:1.5}
#game-detail .detail-copy{margin-top:0}
#game-detail .detail-memberships,#game-detail .detail-account-section{margin:16px 0 0;padding:16px 0 0;border-top:1px solid var(--line)}
#game-detail .detail-memberships h2,#game-detail .detail-account-section h2,.detail-description-heading{font-size:15px;line-height:1.5;font-weight:800;margin:0 0 12px}
#game-detail .detail-memberships>p{font-size:11px;line-height:1.6}
#game-detail .xgp-plan{font-size:11px;line-height:1.5}
#game-detail .account-rule{padding:12px;margin:8px 0;border:1px solid var(--line);background:#fff}
#game-detail .account-rule>summary{cursor:pointer;font-size:12px;font-weight:750;line-height:1.7;min-height:28px}
#game-detail .account-rule-details{font-size:12px;line-height:1.7;margin-top:8px}
#game-detail .detail-description{margin-top:0;font-size:13px;line-height:1.8}
.detail-description-heading{margin-top:24px}
@media(max-width:359px){#library-page .results-title{font-size:22px}#library-page .results-subtitle{max-width:180px}#game-detail .detail-title-group h1{font-size:20px}}
@media(min-width:700px){#library-page .finder{margin-top:24px;margin-bottom:24px}}

#game-detail .detail-copy .detail-description-heading{font-size:15px;line-height:1.5;margin-top:24px;font-weight:800}

#game-detail .detail-title-group .metric[data-score-tier="high"]{background:#00CE7A;color:#000}
#game-detail .detail-title-group .metric[data-score-tier="normal"]{background:#000;color:#fff}

/* Reserve the actual classic dock footprint, including iPhone safe area. */
body{padding-bottom:calc(106px + env(safe-area-inset-bottom,0px))}
body:has(#library-page:not([hidden]) #game-list[data-layout="grid"]){padding-bottom:calc(120px + env(safe-area-inset-bottom,0px))}

/* Account requirements sit with the identity, separate from membership plans. */
#game-detail .detail-account-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
#game-detail .detail-account-tags .account-badge{font-size:11px;line-height:1.5;padding:4px 7px;white-space:normal;overflow-wrap:anywhere}
#game-detail .account-platform-label{font-weight:750;white-space:nowrap}

.filter-form .account-provider-field{margin-top:16px;gap:8px}
.filter-form .account-filter-note{font-size:11px;line-height:1.6;color:var(--muted);margin-top:8px}

/* Filter-only hard-edged controls; homepage preference pickers retain their appearance. */
#filter-drawer .recommend-picker-trigger{height:40px;background:#fff;border:2px solid #000;border-radius:4px;padding:0 12px;font-size:13px}
#filter-drawer .recommend-picker-trigger:before{inset:-2px 0}
#filter-drawer .recommend-picker-trigger svg{stroke-width:3}
#filter-drawer .recommend-picker-menu{background:#fff;border:2px solid #000;border-radius:6px;padding:4px;box-shadow:3px 3px 0 #1112}
#filter-drawer .recommend-picker-menu button{justify-content:flex-start;gap:10px;color:#444;border-radius:3px;min-height:44px}
#filter-drawer .recommend-picker-menu [aria-selected=true]{background:#f1f2ed;color:#000;font-weight:750}
#filter-drawer .recommend-picker-menu .option-check{order:-1;flex:0 0 18px;color:#b4ff39;font-size:18px;font-weight:900;line-height:1}
#filter-drawer .square-toggle input+.check-box{width:20px;height:20px;border:2px solid #000;background:#fff;color:#000}
#filter-drawer .square-toggle input:checked+.check-box{background:#b4ff39}
#filter-drawer .square-toggle .check-box svg{width:16px;height:16px;stroke:#000;stroke-width:3.5}
#filter-drawer .square-toggle input:checked+.check-box svg{animation:filter-check-pop 240ms cubic-bezier(.34,1.56,.64,1)}
#filter-drawer .square-toggle strong{font-weight:750}
#filter-drawer .square-toggle small{color:#666;line-height:1.9;margin-top:4px}
#filter-drawer .drawer-footer{align-items:center;padding:12px 20px calc(24px + var(--safe-bottom));gap:16px}
#filter-drawer .reset-filters{flex:0 0 auto;min-height:44px;padding:0 4px;border:0;background:transparent;box-shadow:none;color:#666;font-size:12px;font-weight:500}
#filter-drawer .reset-filters:active{transform:none;color:#111}
#filter-drawer .apply-filters{height:44px;min-height:44px;padding:0 12px;border-radius:6px;box-shadow:none}
#filter-drawer[open]::backdrop{animation:filter-backdrop-in 300ms ease-out}
@keyframes filter-check-pop{0%{transform:scale(.8)}50%{transform:scale(1.2)}100%{transform:scale(1)}}
@keyframes filter-backdrop-in{from{background-color:rgb(0 0 0 / 0)}to{background-color:rgb(0 0 0 / .65)}}
@media(prefers-reduced-motion:reduce){#filter-drawer .check-box svg,#filter-drawer[open]::backdrop{animation:none !important}}

#filter-drawer .square-toggle .check-box svg{transform:scale(.8);transition:opacity 140ms ease,transform 140ms ease}
#filter-drawer .square-toggle input:checked+.check-box svg{transform:scale(1)}
@media(prefers-reduced-motion:reduce){#filter-drawer .check-box svg{transition:none !important}}

/* Filter hierarchy: fixed action areas and one independently scrolling content area. */
#filter-drawer[open]{display:flex;flex-direction:column;overflow:hidden}
#filter-drawer .drawer-grip,#filter-drawer .drawer-header,#filter-drawer .drawer-footer{flex-shrink:0}
#filter-drawer .drawer-header{padding:12px 20px;background:var(--paper)}
#filter-drawer .drawer-header h2{font-size:20px;line-height:1.3;font-weight:800;letter-spacing:0}
#filter-drawer .drawer-close{width:44px;height:44px;background:transparent;border:0;padding:12px}
#filter-drawer .drawer-close svg{width:20px;height:20px}
#filter-form{flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#filter-drawer .filter-form>fieldset{padding:24px 0;margin-left:20px;margin-right:20px}
#filter-drawer .filter-form>fieldset>legend{padding-top:0;font-size:14px;line-height:24px;font-weight:800}
#filter-drawer .genre-options{gap:8px;margin-top:0}
#filter-drawer .genre-options button{height:36px;min-height:36px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
#filter-drawer .genre-options [data-genre="all"]{border-color:#111;font-weight:750}
#filter-drawer .square-toggle{min-height:44px;padding:0;align-items:center}
#filter-drawer .square-toggle+.square-toggle{margin-top:16px}
#filter-drawer .square-toggle strong{font-size:14px;font-weight:750;color:#000;line-height:1.5}
#filter-drawer .square-toggle small{font-size:12px;color:#888;line-height:1.7;margin-top:4px}
#filter-drawer .account-provider-field{margin-top:0}
#filter-drawer .recommend-picker-trigger{height:44px;min-height:44px;font-size:14px}
#filter-drawer .filter-select-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:0}
#filter-drawer .filter-label-row{height:36px;min-height:36px;margin-bottom:4px}
#filter-drawer .filter-label-row .recommend-field-label{font-size:12px;line-height:16px}
#filter-drawer .metric-help-button{flex-shrink:0}
#filter-drawer .filter-help{font-size:11px;color:#666;line-height:1.8;margin:16px 20px 24px}
#filter-drawer .drawer-footer{display:flex;flex-direction:column;align-items:stretch;gap:0;border-top:1px solid var(--line);padding:12px 20px calc(24px + var(--safe-bottom))}
#filter-drawer .apply-filters{flex:none;width:100%;height:48px;min-height:48px;font-size:14px;font-weight:750;border-radius:8px}
#filter-drawer .reset-filters{flex:none;min-height:44px;font-size:12px;font-weight:500;text-align:center}

#filter-drawer .genre-select-field>.recommend-field-label{display:none}
#filter-drawer #filter-picker-genre .picker-inline-label{flex:0 0 auto;margin-right:auto;overflow:visible;font-weight:750}
#filter-drawer #filter-picker-genre .picker-selected-value{flex:0 1 auto;text-align:right}

/* Basic attributes share one compact group; native checkbox state remains accessible. */
#filter-drawer .preference-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
#filter-drawer .preference-pill{position:relative;display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 10px;border:2px solid #111;border-radius:99px;background:#fff;color:#111;font-size:12px;font-weight:650;line-height:1;cursor:pointer;transition:background-color 160ms ease,color 160ms ease,transform 120ms ease}
#filter-drawer .preference-pill:before{content:'';position:absolute;inset:-4px 0}
#filter-drawer .preference-pill input{position:absolute;width:1px;height:1px;opacity:0;clip-path:inset(50%);pointer-events:none}
#filter-drawer .preference-pill:has(input:checked){background:#111;color:#fff}
#filter-drawer .preference-pill:has(input:focus-visible){outline:2px solid #777;outline-offset:3px}
#filter-drawer .preference-pill:active{transform:scale(.96)}
@media(prefers-reduced-motion:reduce){#filter-drawer .preference-pill{transition:none;transform:none}}

#filter-drawer #filter-picker-accountRequirement{gap:4px}
#filter-drawer #filter-picker-accountRequirement .picker-inline-label{flex:0 0 auto;overflow:visible;font-weight:750}
#filter-drawer #filter-picker-accountRequirement .picker-selected-value{flex:1 1 auto;text-align:left}

/* Account selection belongs to the same wrapping row as preference capsules. */
#filter-drawer .preference-pill{border-width:1px}
#filter-drawer .preference-pills .account-provider-field{flex:0 1 auto;min-width:0;max-width:100%;margin:0;gap:0}
#filter-drawer .preference-pills #filter-picker-accountRequirement{width:auto;max-width:100%;height:36px;min-height:36px;padding:0 10px;border:1px solid #111;border-radius:99px;background:#fff;color:#111;font-size:12px;font-weight:650;line-height:1;gap:4px}
#filter-drawer .preference-pills #filter-picker-accountRequirement .picker-inline-label{font-weight:650}
#filter-drawer .preference-pills #filter-picker-accountRequirement .picker-selected-value{min-width:0}
#filter-drawer .preference-pills #filter-picker-accountRequirement svg{width:14px;height:14px;flex-shrink:0}
/* Paired compact selectors, with preference toggles on the following row. */
#filter-drawer .basic-filter-selectors{display:flex;align-items:center;gap:8px;min-width:0}
#filter-drawer .basic-filter-selectors>.recommend-field{flex:0 1 auto;min-width:0;max-width:calc(50% - 4px);margin:0;gap:0}
#filter-drawer .basic-filter-selectors .recommend-picker-trigger{width:auto;max-width:100%;height:36px;min-height:36px;padding:0 10px;gap:4px;border:1px solid #111;border-radius:99px;background:#fff;color:#111;font-size:12px;font-weight:650;line-height:1}
#filter-drawer .basic-filter-selectors #filter-picker-genre .picker-inline-label,#filter-drawer .basic-filter-selectors #filter-picker-accountRequirement .picker-inline-label{flex:0 0 auto;margin:0;font-weight:650}
#filter-drawer .basic-filter-selectors #filter-picker-genre .picker-selected-value,#filter-drawer .basic-filter-selectors #filter-picker-accountRequirement .picker-selected-value{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
#filter-drawer .basic-filter-selectors .recommend-picker-trigger svg{width:14px;height:14px;flex-shrink:0}
/* Final filter refinements: quiet labels and consistent capsule geometry. */
#filter-drawer .basic-filter-selectors .recommend-picker-trigger,#filter-drawer .preference-pill{height:32px;min-height:32px;box-sizing:border-box}
#filter-drawer .basic-filter-selectors .recommend-picker-trigger{position:relative}
#filter-drawer .basic-filter-selectors .recommend-picker-trigger:before{content:'';position:absolute;inset:-6px 0}
#filter-drawer .preference-pill:before{inset:-6px 0}
#filter-drawer .preference-pill:has(input:checked){background:#111;color:#fff;border-color:#111}
#filter-drawer .filter-label-row{justify-content:flex-start;gap:4px}
#filter-drawer .filter-label-row .metric-help-button{width:16px;min-width:16px;height:28px;min-height:28px}
#filter-drawer .filter-help{font-size:12px;color:#666;line-height:1.8}
#filter-drawer .reset-filters{font-size:13px;color:#555;text-decoration:underline;text-underline-offset:3px;min-height:44px}
/* One shared horizontal grid for header, controls and primary action. */
#filter-drawer{--filter-gutter:20px}
#filter-drawer .drawer-header{padding-left:var(--filter-gutter);padding-right:var(--filter-gutter);gap:8px}
#filter-drawer .filter-header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
#filter-drawer .filter-header-actions .reset-filters{white-space:nowrap}
#filter-drawer .filter-header-actions .drawer-close{margin-right:-12px}
#filter-form{scrollbar-gutter:auto;scrollbar-width:none}
#filter-form::-webkit-scrollbar{display:none}
#filter-drawer .filter-form>fieldset{min-width:0;margin-left:var(--filter-gutter);margin-right:var(--filter-gutter)}
#filter-drawer .basic-filter-selectors,#filter-drawer .preference-pills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#filter-drawer .preference-pills{margin-top:10px}
#filter-drawer .basic-filter-selectors>.recommend-field{width:100%;max-width:none;min-width:0}
#filter-drawer .basic-filter-selectors .recommend-picker-trigger,#filter-drawer .preference-pill{width:100%;justify-content:center}
#filter-drawer .filter-select-grid{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#filter-drawer .sort-options{width:100%;box-sizing:border-box;margin-left:0;margin-right:0}
#filter-drawer .filter-label-row{justify-content:flex-start;gap:4px}
#filter-drawer .filter-label-row .recommend-field-label{flex:0 0 auto;width:auto;margin:0}
#filter-drawer .drawer-footer{padding-left:var(--filter-gutter);padding-right:var(--filter-gutter)}
/* Keep the capsule columns identical to the metric columns, including their gap. */
#filter-drawer .basic-filter-selectors,#filter-drawer .preference-pills{gap:12px;padding:0;margin-left:0;margin-right:0;justify-items:stretch}
#filter-drawer .preference-pills{margin-top:12px}
#filter-drawer .basic-filter-selectors>.recommend-field,#filter-drawer .basic-filter-selectors .recommend-picker-trigger,#filter-drawer .preference-pill{justify-self:stretch;margin-left:0;margin-right:0;box-sizing:border-box}
#filter-drawer .filter-header-actions{align-items:center;gap:12px}
#filter-drawer .filter-header-actions #reset-filters{appearance:none;border:0;border-radius:0;background:transparent;box-shadow:none;outline:none;color:#666;display:inline-flex;align-items:center;justify-content:center;align-self:center;padding:0 4px;height:44px;line-height:1;text-decoration:none}
#filter-drawer .filter-header-actions #reset-filters:focus-visible{outline:2px solid #777;outline-offset:2px}
#filter-drawer .filter-label-row .metric-help-button{margin-left:0;margin-right:0}
/* Score and duration use the same compact capsule dimensions as basic selectors. */
#filter-drawer .filter-select-grid>.recommend-field{gap:0}
#filter-drawer .filter-select-grid .filter-label-row{position:absolute;width:1px;height:1px;min-height:0;overflow:hidden;clip-path:inset(50%);margin:0}
#filter-drawer .filter-select-grid .filter-label-row:focus-within{position:static;width:auto;height:32px;clip-path:none;overflow:visible}
#filter-drawer .filter-select-grid .recommend-picker-trigger{position:relative;height:32px;min-height:32px;border:1px solid #111;border-radius:99px;padding:0 10px;gap:0;background:#fff;font-size:12px;font-weight:650;line-height:1;justify-content:center}
#filter-drawer .filter-select-grid .recommend-picker-trigger:before{inset:-6px 0}
#filter-drawer .filter-select-grid .picker-inline-label{flex:0 0 auto}
#filter-drawer .filter-select-grid .picker-selected-value{flex:0 1 auto;min-width:0}
#filter-drawer .filter-select-grid .recommend-picker-trigger svg{width:14px;height:14px;flex:0 0 14px;margin-left:4px}
#filter-drawer .filter-header-actions #reset-filters{gap:4px}
#filter-drawer #reset-filters svg{width:14px;height:14px;flex:0 0 14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* A compact heading explains the basic controls without changing their shared grid. */
#filter-drawer .basic-filter-heading{display:flex;align-items:center;gap:4px;margin:0 0 12px;color:#666;font-size:12px;font-weight:650;line-height:20px}
#filter-drawer .basic-filter-info{position:relative;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:0;background:transparent;color:#666;font-size:13px;box-shadow:none}
#filter-drawer .basic-filter-info:before{content:'';position:absolute;inset:-12px}
#filter-drawer .basic-filter-explanation{margin:0 0 12px;color:#666;font-size:12px;line-height:1.8}
/* Visible metric captions mirror the basic module heading. */
#filter-drawer .filter-select-grid .filter-label-row{position:static;display:flex;align-items:center;justify-content:flex-start;gap:4px;width:auto;height:28px;min-height:28px;overflow:visible;clip-path:none;margin:0 0 8px}
#filter-drawer .filter-select-grid .filter-label-row .recommend-field-label{font-size:12px;font-weight:650;color:#666;line-height:20px}
#filter-drawer .filter-select-grid .filter-label-row .metric-help-button{color:#666}
#filter-drawer #filter-form>.sort-options{width:auto;margin:0 var(--filter-gutter);padding:20px 0;border-bottom:1px solid var(--line)}
#filter-drawer #filter-form>.sort-options>.recommend-field-label{display:block;color:#666;font-size:12px;font-weight:650;margin-bottom:8px}
/* All explanations share one custom tooltip, also inside the dialog top layer. */
.tooltip{background:#fff;color:#111;border:2px solid #000;border-radius:4px;box-shadow:2px 2px 0 #000;font-size:11px;line-height:1.4}
.tooltip:not([hidden]){animation:filter-tip-enter .2s ease-out}
@keyframes filter-tip-enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
#filter-drawer .basic-filter-selectors .recommend-picker-trigger.has-selection,#filter-drawer .filter-select-grid .recommend-picker-trigger.has-selection{background:#111;color:#fff}
#filter-drawer .basic-filter-selectors,#filter-drawer .preference-pills,#filter-drawer .filter-select-grid{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;box-sizing:border-box}
@media(prefers-reduced-motion:reduce){.tooltip:not([hidden]){animation:none}}
/* Put the random recommendation reset before preference selection. */
#recommend-form>#recommend-reset{display:block;margin:0 0 12px;padding:4px 0;min-height:44px;color:#666;font-size:12px;text-decoration:underline;text-underline-offset:3px}
/* Favorite count sits beside the heart and never affects nav cell geometry. */
#bottom-dock #favorite-count{position:absolute;top:-4px;left:22px;right:auto;display:flex;align-items:center;justify-content:center;width:max-content;min-width:16px;height:16px;padding:0 3px;box-sizing:border-box;border:1.5px solid #000;border-radius:99px;background:#ff3b30;color:#fff;font-size:9px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums;pointer-events:none}
#bottom-dock #favorite-count[hidden]{display:none}
/* Lightweight count badge: no rim, finer digits and a little more icon clearance. */
#bottom-dock #favorite-count{top:-5px;left:24px;right:auto;min-width:13px;height:13px;padding:0 3px;border:0;box-shadow:none;outline:none;font-size:9px;font-weight:300;line-height:1;background:#ff3b30;color:#fff}
/* Anchor the compact entitlement row to one consistent card inset. */
#game-list[data-layout="grid"] .card-copy{box-sizing:border-box;padding:8px;align-self:stretch}
#game-list[data-layout="grid"] .poster-summary{flex:1;box-sizing:border-box;margin-top:0}
#game-list[data-layout="grid"] .poster-perks{width:100%;box-sizing:border-box;margin-top:auto;padding:0;min-height:20px;align-items:center}
#game-list[data-layout="grid"] .poster-perks .xgp-top-tier-badge{flex-shrink:0;margin:0 0 0 auto;align-self:center}
/* Language is a compact data mark alongside the platform icons. */
#game-list[data-layout="grid"] .poster-platforms{flex:0 0 auto;flex-wrap:nowrap;gap:4px;white-space:nowrap}
#game-list[data-layout="grid"] .poster-platforms .poster-chinese{display:inline-flex;align-items:center;justify-content:center;height:14px;min-width:14px;padding:0 2px;border-radius:2px;background:#b4ff39;color:#000;font-size:9px;font-weight:700;line-height:1;box-sizing:border-box;flex-shrink:0}
#game-list[data-layout="grid"] .poster-perks{flex-wrap:nowrap}
/* Final platform/language alignment: equal boxes and a consistent optical rhythm. */
#game-list[data-layout="grid"] .poster-platforms{display:inline-flex;align-items:center;gap:6px;height:14px}
#game-list[data-layout="grid"] .poster-platforms>span{display:inline-flex;align-items:center;justify-content:center;width:14px;min-width:14px;height:14px;padding:0;flex:0 0 14px;box-sizing:border-box;line-height:1}
#game-list[data-layout="grid"] .poster-platforms svg{display:block;width:14px;height:14px;flex:0 0 14px}
/* Keep true landscape previews wide while ordinary poster covers stay 2:3. */
#game-list[data-layout="grid"] .game-card.landscape-preview .cover-wrap{aspect-ratio:16 / 9}
#game-list[data-layout="grid"] .game-card.landscape-preview .cover-wrap img{object-fit:cover;object-position:center;transform:none}
#game-list[data-layout="grid"] .game-card.landscape-preview{align-self:start}
/* The shared portrait ratio and sizing tokens control standard grid covers. */
#game-list[data-layout="grid"] .game-card:not(.landscape-preview):not(.game-card--wide-art) .cover-wrap{aspect-ratio:var(--portrait-cover-ratio)}
#game-list[data-layout="grid"] .game-card:not(.landscape-preview):not(.game-card--wide-art) .cover-wrap img{object-fit:contain;object-position:center;transform:none}

/* Production integration: full catalog, genuine detail panels and mobile safe areas. */
.demo-label{font-size:10px;white-space:nowrap}
#filter-form>.membership-filter-field{margin:0 20px;padding:16px 0 20px;border-bottom:1px solid var(--line)}
#filter-form>.membership-filter-field>.recommend-field-label{display:block;margin-bottom:8px;color:#666;font-size:12px}
.load-more-sentinel{height:1px}
#game-detail{width:min(900px,calc(100% - 24px));max-height:calc(var(--visible-height,100dvh) - 24px);overflow-y:auto}
#game-detail #detail-content{display:block;padding:0 20px 24px}
#game-detail .pd-hero{grid-template-columns:var(--detail-cover-width) minmax(0,1fr);gap:16px;padding:20px 0;align-items:start}
#game-detail .pd-cover img{width:var(--detail-cover-width);height:auto;aspect-ratio:var(--portrait-cover-ratio);object-fit:contain;box-shadow:none}
#game-detail .pd-game-head{padding-right:0}
#game-detail .pd-game-head #detail-title{font-size:22px;line-height:1.4;letter-spacing:0}
#game-detail .pd-game-head #detail-title>span:before{display:none}
#game-detail .pd-save{position:static;grid-column:1 / -1;transform:none;min-height:44px;width:100%;margin-top:4px}
#game-detail .pd-columns{display:flex;flex-direction:column;gap:24px;padding-top:20px}
#game-detail .pd-game-head .card-metrics{margin-top:10px;flex-wrap:wrap}
#game-detail .live-detail-extras .card-metrics:empty,#game-detail .detail-account-tags:empty{display:none}
#game-detail .detail-account-tags{font-size:11px;margin-top:8px}
#game-detail .de-table,#game-detail .pd-description{overflow-wrap:anywhere}
#game-detail .detail-toolbar{padding-top:calc(12px + env(safe-area-inset-top,0px));background:#fff}
#game-detail .detail-toolbar>span{display:none}
#filter-drawer{scroll-margin-top:0}
@media(max-width:699px){#game-detail{width:100%;height:var(--visible-height,100dvh);max-height:var(--visible-height,100dvh);margin:0;border:0;border-radius:0;top:var(--app-viewport-top,0px)}
#game-detail .pd-platform-tabs{gap:12px}#game-detail .pd-platform{min-height:44px;min-width:44px}#game-detail .detail-toolbar{top:0}}
.archived-badge{margin-left:auto;font-size:10px;color:#666;white-space:nowrap}

#filter-drawer .preference-pill[aria-disabled=true]{border-color:#999;color:#666;background:#f2f2ed;cursor:help}
.recommend-picker-trigger:disabled{opacity:1!important;border-color:#999!important;color:#666!important;background:#f2f2ed!important;cursor:not-allowed}

.poster-cloud{display:inline-flex;width:14px;height:14px;align-items:center;justify-content:center;color:#666;flex-shrink:0}.poster-cloud svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.detail-source-links{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:8px;font-size:11px;color:#555}.detail-source-links a{color:inherit;text-underline-offset:3px}.detail-source-links:empty{display:none}

/* Field captions share one quiet rhythm; explanations appear only on request. */
#filter-drawer .filter-label-row,
#filter-drawer .filter-select-grid .filter-label-row {
 display:flex;align-items:center;justify-content:flex-start;gap:4px;
 height:28px;min-height:28px;margin:0 0 8px;
}
#filter-drawer .filter-label-row .recommend-field-label {
 display:inline;width:auto;margin:0;flex:0 0 auto;
 font-size:12px;font-weight:650;color:#666;line-height:20px;
}
#filter-drawer .filter-label-row .metric-help-button {
 display:inline-flex;align-items:center;justify-content:center;
 width:20px;min-width:20px;height:28px;min-height:28px;padding:0;
 border:0;background:transparent;box-shadow:none;color:#666;
}
#filter-drawer .metric-help-button svg {width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
#filter-drawer .basic-filter-selectors>.recommend-field>.filter-label-row {display:flex}
#filter-drawer .preference-heading {margin-top:16px;margin-bottom:8px}
#filter-drawer .preference-pills {margin-top:0}
#filter-drawer .filter-select-grid {margin-top:4px}
#filter-drawer .basic-filter-section .filter-select-grid {margin-top:14px}
#filter-drawer .filter-form>.basic-filter-section {padding-bottom:16px}
#filter-drawer .membership-filter-field {gap:0}
#filter-drawer .filter-form>fieldset:last-of-type {padding-bottom:24px}

/* Put each source directly above its value, without a separate explanation block. */
#game-detail .live-detail-extras .card-metrics {align-items:flex-end;gap:8px 12px}
#game-detail .detail-metric-group {display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
#game-detail .detail-metric-source {font-size:10px;line-height:16px;color:#666;white-space:nowrap}
#game-detail .detail-metric-source a {color:inherit;text-decoration:underline;text-decoration-color:#aaa;text-underline-offset:2px}
#game-detail .detail-metric-group .metric {margin:0}
/* Keep the full metadata row inside compact 320px grid cards. */
@media(max-width:360px){#game-list[data-layout="grid"] .poster-platforms{gap:4px;height:12px}#game-list[data-layout="grid"] .poster-platforms>span,#game-list[data-layout="grid"] .poster-platforms svg{width:12px;min-width:12px;height:12px;flex:0 0 12px}#game-list[data-layout="grid"] .poster-platforms .poster-chinese{height:12px;min-width:12px;font-size:9px}}

/* Recommendation: one heading, one preference grid, one primary action. */
.discovery-draw .section-heading{align-items:center;gap:12px;margin-bottom:16px}
.discovery-draw h2{margin:0;font-size:clamp(22px,6.4vw,25px)}
.discovery-draw #recommend-reset{flex:0 0 auto;min-width:44px;min-height:44px;margin:0;padding:8px 0;border:0;background:none;color:#666;font-size:12px;line-height:1.4;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.discovery-draw .recommend-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;margin-top:0}
.discovery-draw .recommend-field-label{font-size:12px;line-height:1.5}
.discovery-draw .recommend-submit{margin-top:20px}
.discovery-draw #recommend-status[hidden]{display:none}
.discovery-draw [hidden]{display:none!important}
.recommend-skeleton{display:block}
.recommend-skeleton-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
.recommend-skeleton-field{display:flex;min-width:0;flex-direction:column;gap:8px}
.recommend-skeleton-label{width:46px;height:9px;border-radius:3px}
.recommend-skeleton-select{width:100%;height:44px;border:1px solid #e5e7df;border-radius:4px}
.recommend-skeleton-button{width:100%;height:52px;margin-top:20px;border-radius:2px}
#recommend-form[hidden],.recommend-skeleton[hidden]{display:none!important}

/* Missing scores/times leave a reserved row, so every card keeps the same footer. */
#game-list[data-layout="grid"] .poster-summary{min-height:45px}
#game-list[data-layout="grid"] .poster-data{min-height:20px;flex:0 0 20px}

.tooltip-source-link,.tooltip-source-label{font-size:10px;font-weight:700;color:inherit;text-decoration:none}


/* Consistent, shape-matched loading states for modules and artwork. */
.skeleton-block{display:block;background:#e5e7df;border-radius:6px;animation:module-skeleton-pulse 1.55s ease-in-out infinite}
.skeleton-poster{width:100%;flex:1 1 auto;min-height:0;aspect-ratio:16/10;border-radius:10px}
.skeleton-copy{display:grid;gap:12px;width:100%;padding:4px 0 14px}
.skeleton-title{height:22px;width:68%;border-radius:5px}
.skeleton-line{height:11px;width:100%;border-radius:5px}
.skeleton-line.medium{width:82%}.skeleton-line.short{width:66%}.skeleton-line.tiny{width:42%}
.showcase-skeleton{display:flex;flex-direction:column;justify-content:flex-end;gap:14px;flex:0 0 86%;min-width:0;aspect-ratio:2/3;max-height:570px;padding:16px 18px 4px;scroll-snap-align:start;scroll-snap-stop:always;border:0;background:transparent;box-shadow:none}
.horizon-skeleton{display:flex;align-items:center;flex:0 0 calc(100% - 40px);gap:14px;min-width:0;min-height:116px;padding:13px;background:transparent}
.horizon-skeleton-cover{flex:0 0 var(--horizon-cover-width);width:var(--horizon-cover-width);height:auto;aspect-ratio:var(--portrait-cover-ratio);border-radius:5px}
.horizon-skeleton .skeleton-copy{gap:10px;padding:0}
img.module-image{background-color:#e5e7df}
img.module-image.image-failed{visibility:hidden}
.showcase-card:has(>img.module-image:not(.image-ready)){background:#e5e7df}
.showcase-card:has(>img.module-image:not(.image-ready))::after{display:none}
.cover-wrap{background:#e5e7df}
#detail-content .pd-cover{background:#e5e7df}
@keyframes module-skeleton-pulse{50%{opacity:.5}}
@media(min-width:700px){.showcase-skeleton{flex-basis:calc((100% - 16px)/2.18)}.horizon-skeleton{flex-basis:calc((100% - 16px)/2.15);min-height:126px;padding:16px}}
@media(max-width:520px){.horizon-skeleton{flex-basis:calc(100% - 36px);gap:10px;padding:11px}.horizon-skeleton-cover{flex-basis:var(--horizon-cover-mobile-width);width:var(--horizon-cover-mobile-width)}}
@media(prefers-reduced-motion:reduce){.skeleton-block{animation:none}}

/* Compact detail hero: one title hierarchy, one flowing metadata row, one clear action. */
#game-detail{-webkit-tap-highlight-color:transparent}
#game-detail .pd-hero{align-items:start;padding:20px 0 0;border-bottom:0}
#game-detail .pd-game-head{min-width:0;padding-right:76px}
#game-detail .pd-game-head #detail-title{font-size:16px;font-weight:800;line-height:1.3;letter-spacing:0;margin:0 0 4px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
#game-detail .pd-game-head .pd-english{font-size:11px;color:#888;font-weight:400;line-height:1.45;letter-spacing:0;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
#game-detail .pd-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px;padding:0}
#game-detail .pd-language-badge{display:inline-flex;align-items:center;gap:4px;box-sizing:border-box;height:24px;min-height:24px;padding:0 8px;border:0;border-radius:999px;background:#B4FF39;color:#111;line-height:1.2}#game-detail .pd-language-chevron{width:12px;height:12px;flex:0 0 12px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}#game-detail .pd-genre{display:inline-flex;align-items:center;box-sizing:border-box;height:24px;padding:0 8px;border:0;border-radius:999px;background:#edeee8;color:#555b52;font-size:11px}
#game-detail .live-detail-extras{display:contents}
#game-detail .pd-game-head .card-metrics{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0;min-width:0}
#game-detail .detail-metric-group{display:flex;align-items:center;min-width:0}
#game-detail .detail-metric-group .metric{display:inline-flex;align-items:center;box-sizing:border-box;height:24px;min-height:24px;padding:0 8px;border:0;border-radius:999px;box-shadow:none;background:#edeee8;color:#555b52;font-size:11px;line-height:1.2}
#game-detail .detail-account-tags{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:0;font-size:11px}
#game-detail .detail-account-tags .account-badge{display:inline-flex;align-items:center;box-sizing:border-box;height:24px;min-height:24px;padding:0 8px;border:0;border-radius:999px;box-shadow:none;background:#edeee8;color:#555b52;font-size:10px;line-height:1.3}
#game-detail .detail-account-tags .account-shared-version{background:#f0f0f0;color:#333;font-size:12px}
#game-detail .detail-account-tags span.account-shared-version{cursor:default}
#game-detail .pd-save{position:absolute;top:17px;right:2px;grid-column:auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;transform:none;min-width:72px;min-height:32px;height:32px;width:auto;margin:0;padding:4px 8px;border:2px solid #111;border-radius:999px;box-shadow:2px 2px 0 #111;gap:5px;background:#fff;color:#111;font-size:11px;transition:background-color .2s ease,color .2s ease,transform .12s ease}
#game-detail .pd-save:active{transform:scale(.94)}
#game-detail .pd-save svg{width:15px;height:15px;transition:color .2s ease,fill .2s ease}
#game-detail .pd-save .pd-save-label{display:inline;font-size:13px;font-weight:800;transition:opacity .1s ease,color .2s ease}
#game-detail .pd-save .pd-save-label.is-changing{opacity:0}
#game-detail .pd-save.on{background:#B4FF39;color:#111}
#game-detail .pd-save.on svg{color:#B4FF39;fill:#B4FF39}
#game-detail .pd-save.on .pd-save-label{color:#111}
#game-detail .pd-save.heart-pulse svg{animation:detail-heartbeat .52s cubic-bezier(.34,1.56,.64,1)}
#game-detail .pd-language-badge:active{transform:scale(.94)}
#game-detail .pd-language-chevron{transition:transform .3s cubic-bezier(.34,1.56,.64,1)}#game-detail .pd-language-badge[aria-expanded="true"] .pd-language-chevron{transform:rotate(180deg)}
#game-detail .pd-hero.detail-entering .pd-cover img{animation:detail-cover-in .28s ease-out both}
#game-detail .pd-hero.detail-entering .pd-game-head #detail-title{animation:detail-rise-in .28s .05s ease-out both}
#game-detail .pd-hero.detail-entering .pd-game-head .pd-english{animation:detail-rise-in .28s .075s ease-out both}
#game-detail .pd-hero.detail-entering .pd-tags>.pd-language-badge,#game-detail .pd-hero.detail-entering .pd-tags>.pd-genre,#game-detail .pd-hero.detail-entering .pd-tags .card-metrics,#game-detail .pd-hero.detail-entering .pd-tags .detail-account-tags{animation:detail-rise-in .28s .1s ease-out both}
@keyframes detail-cover-in{from{opacity:0}to{opacity:1}}
@keyframes detail-rise-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes detail-heartbeat{0%{transform:scale(1)}50%{transform:scale(1.3)}100%{transform:scale(1)}}
@media(max-width:359px){#game-detail .pd-hero{grid-template-columns:var(--detail-cover-width) minmax(0,1fr);gap:14px}}
@media(max-width:359px){:root{--detail-cover-width:var(--detail-cover-narrow-width)}#game-detail .pd-cover img{width:var(--detail-cover-width);height:auto}}
@media(prefers-reduced-motion:reduce){#game-detail .pd-cover img,#game-detail .pd-game-head #detail-title,#game-detail .pd-game-head .pd-english,#game-detail .pd-tags>.pd-language-badge,#game-detail .pd-tags>.pd-genre,#game-detail .pd-tags .card-metrics,#game-detail .pd-tags .detail-account-tags{animation:none}#game-detail .pd-save.heart-pulse svg{animation:none}#game-detail .pd-save,#game-detail .pd-save svg,#game-detail .pd-save .pd-save-label,#game-detail .pd-language-chevron{transition:none}}

/* v198: unify detail metadata chips and align the favorite action with the title. */
#game-detail .pd-content{padding-top:24px}
#game-detail .pd-about{border-top:0;margin-top:24px;padding-top:0}

/* Keep the modal and scroll lock alive until its exit motion finishes. */
#filter-drawer.is-closing{will-change:transform}
#filter-drawer.is-closing>*{pointer-events:none}
#filter-drawer[open].is-closing::backdrop{animation:filter-backdrop-out 300ms ease forwards}
@keyframes filter-backdrop-out{from{background-color:rgb(0 0 0 / .65)}to{background-color:rgb(0 0 0 / 0)}}
