:root {
  color-scheme: light;
  --background: #f5f4ef;
  --surface: #fff;
  --text: #17231f;
  --muted: #495750;
  --line: #d4d9cf;
  --accent: #235d47;
  --on-accent: #fff;
  --radius: 16px;
  --shell: 1280px;
  --display: "Segoe UI", system-ui, sans-serif;
  font-family: "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--text); background: var(--background); }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; overflow-wrap: anywhere; }
p { color: var(--muted); line-height: 1.63; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: min(var(--shell), calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 5; inset: 8px auto auto 8px; padding: 10px 14px; background: var(--surface); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; width: max-content; text-decoration: none; }
.brand img { width: 116px; height: auto; }
.brand span { font-size: .72rem; font-weight: 750; letter-spacing: .10em; text-transform: uppercase; color: var(--muted); padding-inline-start: 10px; border-inline-start: 1px solid var(--line); }
.desktop-nav { display: flex; align-items: center; gap: clamp(4px, 1vw, 16px); }
.desktop-nav a { display: flex; align-items: center; min-height: 44px; padding: 6px 8px; border-radius: 8px; text-decoration: none; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a[aria-current] { background: var(--accent); color: var(--on-accent); }
.menu-button { display: none; align-items: center; gap: 8px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface); font-weight: 700; cursor: pointer; }
.menu-icon { width: 14px; height: 12px; border-block: 2px solid currentColor; position: relative; }
.menu-icon::after { position: absolute; content: ""; inset: 3px 0 auto; border-top: 2px solid currentColor; }
.categories-dialog { width: min(calc(100% - 30px), 430px); padding: 20px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 90px #0005; }
.categories-dialog::backdrop { background: #111021a8; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dialog-header button { width: 44px; height: 44px; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; background: var(--background); color: var(--text); font-size: 1.6rem; }
.dialog-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dialog-nav a { padding: 12px; min-height: 44px; text-decoration: none; font-weight: 700; background: var(--background); border-radius: 8px; }
.dialog-nav a:hover, .dialog-nav a[aria-current] { background: var(--accent); color: var(--on-accent); }
.site-footer { margin-top: auto; background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { min-height: 106px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; padding-block: 24px; }
.footer-inner nav { display: flex; gap: 14px 24px; flex-wrap: wrap; }
.footer-inner nav a { color: var(--muted); line-height: 1.4; font-size: .89rem; text-underline-offset: 4px; }
.footer-inner nav a:hover { color: var(--text); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: fit-content; min-height: 46px; padding: 10px 17px; border: 1px solid transparent; border-radius: 9px; background: var(--accent); color: var(--on-accent); font: 750 .93rem/1.3 "Segoe UI", system-ui, sans-serif; text-decoration: none; }
.button:hover { box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--accent); }
.home-main, .catalogue-page, .detail-page, .information-page, .player-page { padding-bottom: clamp(48px, 7vw, 100px); }
.home-main { padding-top: 32px; }
.home-intro h1 { font-size: clamp(2.65rem, 5.2vw, 5.1rem); letter-spacing: -.065em; }
.home-intro p { max-width: 44ch; margin-block: 19px 24px; }
.feature-card { position: relative; display: grid; min-width: 0; background: var(--surface); border-radius: var(--radius); text-decoration: none; border: 1px solid var(--line); overflow: clip; }
.feature-art { display: block; min-width: 0; overflow: clip; aspect-ratio: 16/10; }
.feature-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature-caption { min-width: 0; display: grid; align-content: start; gap: 7px; padding: 14px 38px 16px 14px; }
.feature-caption strong { font-size: 1.1rem; line-height: 1.18; overflow-wrap: anywhere; }
.feature-caption > span { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.game-arrow { font-size: .95rem; font-weight: 800; color: var(--accent); line-height: 1; }
.feature-card > .game-arrow { position: absolute; right: 15px; bottom: 18px; }
.game-card:hover .game-name, .game-row:hover strong, .feature-card:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.section-heading { margin-bottom: 16px; }
.section-heading h2 { font-size: clamp(1.45rem, 2.65vw, 2.5rem); letter-spacing: -.04em; }
.section-heading h3 { font-size: clamp(1.15rem, 1.8vw, 1.55rem); letter-spacing: -.025em; }
.section-heading p { margin-top: 6px; font-size: .9rem; }
.mixed-collections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 34px; scroll-margin-top: 20px; }
.mixed-panel, .collection-panel { min-width: 0; }
.game-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.game-list li, .game-rows li { min-width: 0; }
.game-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; align-items: center; position: relative; height: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; text-decoration: none; overflow: clip; }
.game-card:hover { border-color: var(--accent); }
.game-art { display: block; grid-column: 1 / -1; aspect-ratio: 4/3; overflow: clip; }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.game-name { padding: 10px 6px 10px 10px; font-size: .81rem; line-height: 1.3; font-weight: 750; overflow-wrap: anywhere; }
.game-card > .game-arrow { margin-right: 9px; }
.game-row { display: grid; grid-template-columns: 51px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 7px; border-radius: 9px; text-decoration: none; }
.game-row img { width: 51px; height: 51px; object-fit: cover; border-radius: 6px; }
.game-row strong { display: block; font-size: .92rem; line-height: 1.24; overflow-wrap: anywhere; }
.game-row small { display: block; color: var(--muted); font-size: .75rem; margin-top: 4px; }
.game-row .game-arrow { margin-right: 5px; }
.collection-area { margin-top: clamp(44px, 6vw, 76px); }
.collection-heading { margin-bottom: 22px; }
.collection-panels { display: grid; gap: 16px; }
.home-guide { margin-top: 42px; padding: clamp(20px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.home-guide h2 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
.home-guide h3 { margin-top: 18px; font-size: 1.1rem; }
.home-guide p { margin-top: 7px; max-width: 85ch; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; margin-block: 22px; color: var(--muted); font-size: .85rem; }
.breadcrumbs a { text-underline-offset: 3px; }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 700; }
.catalogue-intro { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px 46px; align-items: end; padding: clamp(22px, 5vw, 58px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.catalogue-intro h1, .detail-copy h1, .information-content h1 { font-size: clamp(2.15rem, 5vw, 4.4rem); letter-spacing: -.055em; }
.catalogue-intro h1 + p { margin-top: 12px; }
.category-list, .related-games { margin-top: 32px; }
.category-list .game-list, .related-games .game-list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; }
.category-list .game-name, .related-games .game-name { font-size: .88rem; }
.detail-editorial { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.detail-editorial .detail-recommendation { border-color: var(--accent); }
.detail-recommendation a { text-underline-offset: 3px; }
.detail-hero { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); align-items: center; gap: clamp(16px, 3.2vw, 38px); background: var(--surface); padding: clamp(16px, 3vw, 38px); border: 1px solid var(--line); border-radius: var(--radius); }
.detail-art { max-width: 190px; }
.detail-art img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.detail-category { font-size: .8rem; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.detail-copy h1 { font-size: clamp(1.9rem, 4.3vw, 3.65rem); }
.detail-copy h1 + p { margin-top: 10px; }
.detail-copy .button { margin-top: 17px; }
.detail-guide { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(16px, 3vw, 30px); }
.detail-guide h2 { font-size: clamp(1.18rem, 2vw, 1.65rem); }
.detail-guide p { margin-top: 10px; }
.player-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: 14px; }
.player-heading h1 { font-size: clamp(1.65rem, 4vw, 2.8rem); }
.player-heading a, .player-help a { text-underline-offset: 4px; }
.player-stage { background: #181a24; border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; }
.player-stage iframe { display: block; border: 0; width: 100%; height: clamp(390px, 76svh, 850px); color-scheme: normal; }
.player-toolbar { display: flex; justify-content: end; padding: 6px 10px; }
.player-toolbar:has([hidden]) { display: none; }
.player-fullscreen { min-height: 40px; border: 1px solid #696b79; border-radius: 6px; padding: 6px 12px; color: #fff; background: #292c38; cursor: pointer; }
.player-stage:fullscreen, .player-expanded { width: 100%; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); border: 0; border-radius: 0; }
.player-stage:fullscreen iframe, .player-expanded iframe { height: 100%; }
.player-expanded { position: fixed; inset: 0; z-index: 10; }
.player-overlay-open { overflow: hidden; }
.player-help { margin-top: 12px; font-size: .9rem; }
.information-content { max-width: 880px; padding: clamp(20px, 4.5vw, 48px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }
.information-content h2 { margin-top: 25px; font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
.information-content p, .information-content ul, .information-content .button { margin-top: 13px; }
.information-content ul { list-style: disc; padding-left: 20px; line-height: 1.6; color: var(--muted); }
.information-content li + li { margin-top: 8px; }
.information-content a { text-underline-offset: 3px; }
.policy-date { font-size: .86rem; }
.policy-list { color: var(--muted); line-height: 1.58; margin: 12px 0 0; }
.policy-list dt { font-weight: 750; margin-top: 8px; }
.policy-list dd { margin: 0; }
.twzip-ad-slot { display: grid; grid-template-columns: minmax(0, 336px); justify-content: center; align-content: start; margin-block: 50px; text-align: center; overflow-x: auto; }
.with-top-ad > .home-main { padding-top: 0; }
.with-top-ad > main > .breadcrumbs:first-child, .twzip-ad-slot + .mixed-collections, .twzip-ad-slot + .detail-editorial { margin-top: 0; }
@media (max-width: 1000px) {
  .shell { width: calc(100% - 48px); }
  .desktop-nav { gap: 2px; }
  .desktop-nav a { padding-inline: 7px; }
  .category-list .game-list, .related-games .game-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 861px) {
  .categories-dialog { display: none; }
}
@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; }
  .header-inner { min-height: 64px; }
  .detail-editorial { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-recommendation { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { gap: 9px; min-height: 58px; }
  .brand { gap: 7px; }
  .brand img { width: 101px; }
  .brand span { padding-inline-start: 7px; font-size: .64rem; }
  .home-main { padding-top: 22px; }
  .home-intro h1 { font-size: clamp(2.45rem, 10vw, 4rem); }
  .home-intro p { margin-block: 12px 17px; }
  .mixed-collections, .catalogue-intro { grid-template-columns: minmax(0, 1fr); }
  .game-list, .category-list .game-list, .related-games .game-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-hero { grid-template-columns: minmax(76px, 30%) minmax(0, 1fr); align-items: start; }
  .detail-copy h1 { font-size: clamp(1.55rem, 7.6vw, 2.45rem); }
  .detail-copy h1 + p { font-size: .93rem; }
  .detail-editorial { grid-template-columns: minmax(0, 1fr); }
  main > .twzip-ad-slot { width: calc(100% + 32px); margin-inline: -16px; }
  .player-stage iframe { height: clamp(365px, 68svh, 630px); }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner nav { column-gap: 15px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
