* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: var(--scheme, light); scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 1rem/1.56 system-ui, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--interactive); outline-offset: 4px; }
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; overflow-wrap: anywhere; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; inline-size: 1px; block-size: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 5; top: .5rem; left: .5rem; padding: .65rem 1rem; background: var(--panel); }
.container, .header-inner, .footer-inner, .hero-frame { width: min(80rem, calc(100% - 5rem)); margin-inline: auto; }
.site-header { position: relative; z-index: 3; background: var(--header, var(--surface)); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 4.6rem; gap: 2rem; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { width: 166px; height: auto; }
.nav-panel nav { display: flex; gap: clamp(.45rem, 1.6vw, 1.5rem); align-items: center; }
.nav-panel a { display: block; color: var(--ink); text-decoration: none; font-weight: 650; font-size: .88rem; padding: .65rem .14rem; white-space: nowrap; }
.nav-panel a:hover, .nav-panel a[aria-current] { color: var(--interactive); text-decoration: underline; text-underline-offset: .35em; }
.category-trigger { display: none; }
.hero { position: relative; isolation: isolate; }
.hero-frame { display: grid; gap: clamp(1.5rem, 3.1vw, 3.5rem); align-items: center; padding-block: clamp(2.6rem, 5vw, 5.4rem); }
.hero-heading { position: relative; z-index: 1; min-width: 0; }
.hero-label, .kicker { color: var(--interactive); text-transform: uppercase; letter-spacing: .105em; font-weight: 750; font-size: .78rem; }
.hero h1 { margin-block: .45rem 1rem; font-family: var(--display); font-size: clamp(3.75rem, 7.1vw, 7.35rem); font-weight: var(--display-weight, 800); line-height: .89; letter-spacing: -.067em; }
.hero-lead { max-width: 29rem; font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; border: 0; border-radius: var(--button-radius, .3rem); padding: .74rem 1rem; min-height: 2.8rem; max-width: 100%; background: var(--button); color: var(--button-ink); font-weight: 750; text-decoration: none; line-height: 1.25; }
.button:hover { filter: brightness(var(--button-hover, .9)); }
.hero .button { margin-top: 1.3rem; }
.spotlight { display: block; position: relative; min-width: 0; overflow: hidden; color: inherit; text-decoration: none; background: var(--panel); border: 1px solid var(--line); }
.spotlight-art { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; transition: transform .24s ease; }
.spotlight:hover .spotlight-art { transform: scale(1.025); }
.spotlight-caption { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .05rem .55rem; padding: .6rem .9rem .75rem; }
.spotlight-caption > span { grid-column: 1; font-size: .74rem; font-weight: 700; color: var(--muted); }
.spotlight-caption strong { grid-column: 1; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.18; overflow-wrap: anywhere; }
.spotlight-caption b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--interactive); }
.mini-game { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6rem; align-items: center; min-width: 0; text-decoration: none; }
.mini-game img { width: 3.05rem; height: 2.55rem; object-fit: cover; }
.mini-game strong { display: block; line-height: 1.18; font-size: .91rem; overflow-wrap: anywhere; }
.mini-game small { display: block; color: var(--muted); font-size: .68rem; }
.mini-game b, .card-arrow { color: var(--interactive); }
.mini-game:hover strong { text-decoration: underline; text-underline-offset: .18em; }
.home-content { padding-block: clamp(2.7rem, 5vw, 4.75rem); }
.home-brief, .section-heading { display: grid; gap: .45rem; }
.home-brief { margin-bottom: 2rem; max-width: 48rem; }
.home-brief p, .section-heading p, .page-heading > p:not(.kicker), .game-intro { color: var(--muted); }
.home-brief h2, .section-heading h2 { font-family: var(--display); font-weight: var(--display-weight, 800); font-size: clamp(1.75rem, 3.4vw, 3.1rem); letter-spacing: -.035em; }
.collections { display: grid; gap: 1.5rem; }
.collection { padding: clamp(1.05rem, 2.5vw, 2.25rem); background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.collection .section-heading { margin-bottom: 1.05rem; }
.game-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(.65rem, 1.3vw, 1.16rem); }
.game-card { min-width: 0; }
.game-card a { display: grid; height: 100%; border: 1px solid var(--line); text-decoration: none; background: var(--card); border-radius: var(--card-radius, 0); min-width: 0; }
.game-card a:hover { border-color: var(--interactive); }
.game-card.tile a { grid-template-rows: auto 1fr; }
.game-cover { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: var(--card-radius, 0) var(--card-radius, 0) 0 0; }
.card-copy { display: flex; justify-content: space-between; align-items: start; gap: .4rem; padding: .65rem .7rem .72rem; font-size: .92rem; line-height: 1.23; min-width: 0; }
.card-copy strong { overflow-wrap: anywhere; }
.game-card.row a { grid-template-columns: minmax(2.55rem, 26%) minmax(0,1fr); align-items: center; }
.game-card.row .game-cover { border-radius: var(--card-radius, 0) 0 0 var(--card-radius, 0); width: 100%; height: 100%; min-height: 3.25rem; }
.game-card.row .card-copy { font-size: .83rem; align-items: center; padding: .48rem .55rem; }
.catalog { padding-top: 3.5rem; }
.shelves { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1.25rem; }
.shelf { border: 1px solid var(--line); padding: clamp(.85rem, 1.8vw, 1.35rem); background: var(--panel); min-width: 0; }
.shelf-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .7rem; margin-bottom: .8rem; }
.shelf-heading h3 { font-size: 1.22rem; }
.shelf-heading a { text-decoration: none; color: var(--interactive); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.shelf-heading a:hover { text-decoration: underline; }
.shelf-games { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
.site-footer { border-top: 1px solid var(--line); background: var(--header, var(--surface)); color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 1.35rem; row-gap: .8rem; padding-block: 1.7rem; }
.footer-inner p { font-size: .84rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem 1.15rem; font-size: .88rem; }
.footer-inner nav a { text-underline-offset: .2em; }
.footer-inner nav a:hover { color: var(--interactive); }
.inner-page { padding-block: 1.35rem 4.2rem; min-height: 65vh; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; font-size: .81rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumbs a { text-underline-offset: .16em; }
.page-heading { padding: clamp(1.2rem, 3vw, 2.45rem); background: var(--panel); border: 1px solid var(--line); margin-bottom: 1.5rem; }
.page-heading h1, .game-summary h1 { font-family: var(--display); font-weight: var(--display-weight, 800); letter-spacing: -.045em; font-size: clamp(2.2rem, 5.6vw, 5rem); margin-block: .18rem .55rem; }
.page-heading p { max-width: 48rem; }
.catalog-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-block: 1.2rem; gap: .8rem; }
.catalog-tools p { color: var(--muted); }
.game-filter { display: flex; align-items: center; gap: .55rem; font-size: .9rem; font-weight: 650; }
.game-filter input { min-width: 0; width: min(15rem,42vw); padding: .55rem .7rem; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: .35rem; }
.category-grid { grid-template-columns: repeat(5,minmax(0,1fr)); margin-bottom: .9rem; }
.empty-state { padding: 1.25rem; border: 1px solid var(--line); background: var(--panel); }
.game-summary { display: grid; grid-template-columns: minmax(8rem, 15.25rem) minmax(0,1fr); align-items: center; gap: clamp(1rem, 3vw, 2.75rem); padding: clamp(1rem, 3vw, 2.4rem); border: 1px solid var(--line); background: var(--panel); }
.detail-cover { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: var(--card-radius, .2rem); border: 1px solid var(--line); }
.game-summary-copy { min-width: 0; }
.game-summary .button { margin-top: 1rem; }
.game-summary h1 { font-size: clamp(2rem, 4.7vw, 4.5rem); }
.game-intro { max-width: 52rem; }
.detail-info { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1rem; margin-block: 1rem 2.2rem; }
.detail-info section, .policy-contents, .policy-copy, .support-copy { padding: clamp(1rem, 2.15vw, 2rem); border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.detail-info h2 { font-size: 1.2rem; margin-bottom: .55rem; }
.detail-info dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; margin: 0; }
dt { font-weight: 750; }
dd { margin: 0; }
.related .section-heading { margin-bottom: .85rem; }
.related .game-grid { max-width: 55rem; }
.policy-layout { display: grid; grid-template-columns: minmax(11rem, .75fr) minmax(0, 2fr); gap: 1rem; align-items: start; }
.policy-contents { position: sticky; top: 1rem; }
.policy-contents p { font-weight: 750; }
.policy-contents ul, .policy-copy ul { padding-left: 1.25rem; }
.policy-contents li + li, .policy-copy li + li { margin-top: .35rem; }
.policy-copy a, .policy-contents a, .support-copy a, .player-help a { color: var(--interactive); overflow-wrap: anywhere; text-underline-offset: .17em; }
.policy-copy h2 { font-family: var(--display); font-size: clamp(1.25rem, 2.35vw, 1.9rem); letter-spacing: -.025em; }
.policy-copy p, .support-copy p + p { margin-top: .65rem; }
.policy-copy section + section { margin-top: 1.65rem; padding-top: 1.45rem; border-top: 1px solid var(--line); }
.policy-copy dd { margin-bottom: .7rem; }
.legal-heading .effective { margin-top: .55rem; font-size: .87rem; }
.support-copy { max-width: 50rem; }
.support-copy .button { margin-top: 1rem; color: var(--button-ink); }
.player { border: 1px solid var(--line); background: var(--panel); }
.player-bar { display: flex; align-items: center; gap: .5rem; padding: .6rem; }
.player-bar h1 { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.player-bar button, .player-bar a { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: .35rem; padding: .45rem .65rem; }
.game-frame { display: block; width: 100%; height: min(78vh, 54rem); min-height: 25rem; border: 0; background: #17191b; }
.player-help, .player noscript p { padding: .6rem .8rem; }
@media (max-width: 62rem) {
  .container, .header-inner, .footer-inner, .hero-frame { width: min(80rem, calc(100% - 3rem)); }
  .category-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 52rem) {
  .header-inner { flex-wrap: wrap; gap: .65rem; min-height: 4.15rem; }
  .nav-panel { display: block; width: 100%; padding-bottom: .4rem; }
  .nav-panel nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .35rem; }
  .nav-ready .category-trigger { display: inline-flex; align-items: center; gap: .45rem; justify-content: center; min-height: 2.55rem; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--button-radius, .3rem); padding: .38rem .7rem; font-size: .88rem; font-weight: 700; }
  .nav-ready .nav-panel { display: none; position: absolute; z-index: 2; inset: calc(100% + .45rem) 1.5rem auto auto; width: min(26rem,calc(100% - 3rem)); border: 1px solid var(--line); background: var(--panel); padding: .65rem; box-shadow: 0 .5rem 1.5rem #0003; }
  .nav-ready .nav-panel.is-open { display: block; }
  .nav-ready .nav-panel nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nav-ready .nav-panel a { padding: .63rem .7rem; background: var(--card); }
  .footer-inner { grid-template-columns: auto 1fr; }
  .footer-inner > p { grid-row: 2; }
  .footer-inner nav { justify-content: end; }
}
@media (max-width: 44rem) {
  .category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .shelves { grid-template-columns: minmax(0,1fr); }
  .policy-layout, .detail-info { grid-template-columns: minmax(0,1fr); }
  .policy-contents { position: static; }
}
@media (max-width: 35rem) {
  .container, .header-inner, .footer-inner, .hero-frame { width: calc(100% - 1.6rem); }
  .nav-ready .nav-panel { width: calc(100% - 1.6rem); right: .8rem; }
  .brand img { width: 9.25rem; }
  .hero-frame { padding-block: 2.15rem; }
  .hero h1 { font-size: clamp(3rem,11.8vw,4.65rem); }
  .game-grid, .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .collection, .shelf { padding: .75rem; }
  .footer-inner { grid-template-columns: minmax(0,1fr); }
  .footer-inner nav { justify-content: start; }
  .footer-inner > p { grid-row: auto; }
  .game-summary { grid-template-columns: minmax(0,1fr); gap: .9rem; }
  .detail-cover { width: min(11rem,58%); }
}
@media (max-width: 23rem) {
  .game-card.row .card-arrow { display: none; }
  .game-card.row .card-copy { padding-inline: .35rem; }
  .hero .button { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.ad-wrapper {
  display: grid;
  grid-template-columns: minmax(0,336px);
  justify-content: center;
  padding-block: 50px;
  text-align: center;
  overflow-x: clip;
}
.category-grid {
  --cards-per-row: 5;
  --card-gap: clamp(.65rem,1.3vw,1.16rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--card-gap);
}
.category-grid > .game-card {
  flex: 0 0 calc((100% + var(--card-gap)) / var(--cards-per-row) - var(--card-gap));
}
.game-guide { grid-template-columns: repeat(2,minmax(0,1fr)); }
.game-guide section p { color: var(--muted); }
.player-bar { flex-wrap: wrap; background: var(--panel); }
.player-bar h1 { font-size: clamp(1rem,2vw,1.4rem); }
.player-bar a { text-decoration: none; }
.player-bar a:hover { text-decoration: underline; }
.player-frame:fullscreen, .player-frame.is-expanded {
  display: flex;
  flex-direction: column;
  background: #17191b;
}
.player-frame.is-expanded { position: fixed; inset: 0; z-index: 8; }
html.player-expanded { overflow: hidden; }
:is(.player-frame:fullscreen,.player-frame.is-expanded) .game-frame {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}
:is(.player-frame:fullscreen,.player-frame.is-expanded) .player-help { display: none; }
@media (max-width: 62rem) { .category-grid { --cards-per-row: 4; } }
@media (max-width: 44rem) { .category-grid { --cards-per-row: 3; } }
@media (max-width: 35rem) {
  .category-grid { --cards-per-row: 2; }
  .game-guide { grid-template-columns: minmax(0,1fr); }
  .player-bar h1 { flex: 1 0 100%; }
  .game-frame { min-height: 19rem; }
}
