*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; }
body { margin: 0; background: var(--background); color: var(--text); font: 400 1rem/1.55 var(--body-font); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; line-height: 1.06; font-family: var(--display-font); }
body { --body-font: system-ui, sans-serif; --display-font: var(--body-font); --radius: 20px; }
.zenith {
  color-scheme: dark;
  --background: #101521; --surface: #1b2436; --panel: #222e45; --text: #f5f8ff; --muted: #b5c2db;
  --line: #3a4967; --accent: #c5f579; --on-accent: #191f1d; --focus: #a6e77d; --logo-bg: #f0eafa;
  --hero: #252e52; --hero-text: #f8f7ff; --hero-muted: #e1e6f8; --guide: #25395b;
}
.warp {
  --background: #fff6e7; --surface: #fffdf8; --panel: #ffe3c9; --text: #2b1915; --muted: #704b3d;
  --line: #daa889; --accent: #ad301d; --on-accent: #fff9ee; --focus: #9f3027; --logo-bg: transparent;
  --hero: #f4b288; --hero-text: #2d180e; --hero-muted: #5a2d21; --guide: #ffdec3;
  --display-font: Georgia, serif; --radius: 8px;
}
.pulse {
  --background: #eaf7ef; --surface: #fcfffd; --panel: #d6ede1; --text: #102c27; --muted: #3c6259;
  --line: #a7cbbc; --accent: #104d43; --on-accent: #f1fff4; --focus: #126452; --logo-bg: transparent;
  --hero: #cabdec; --hero-text: #282046; --hero-muted: #3c3158; --guide: #cde9d8;
  --display-font: "Trebuchet MS", system-ui, sans-serif; --radius: 28px;
}
.shell { width: min(100% - clamp(2rem, 7vw, 7rem), 1280px); margin-inline: auto; }
.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: var(--surface); }
.head-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; flex: 0 0 auto; padding: 5px 9px; background: var(--logo-bg); border-radius: 9px; }
.brand img { width: 166px; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: clamp(.2rem, 1.1vw, 1rem); }
.desktop-nav a, .mobile-nav nav a { padding: .53rem .64rem; color: var(--muted); border-radius: 8px; font-size: .9rem; font-weight: 700; }
.desktop-nav a:hover, .desktop-nav a[aria-current], .mobile-nav a:hover, .mobile-nav a[aria-current] { color: var(--text); background: var(--panel); }
.mobile-nav { display: none; }
.mobile-nav summary { display: flex; align-items: center; gap: .6rem; list-style: none; border: 1px solid var(--line); border-radius: 9px; padding: .55rem .7rem; cursor: pointer; font-weight: 750; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] summary { background: var(--panel); }
.mobile-nav nav { position: absolute; inset: calc(100% + .5rem) max(1rem, 3.5vw) auto auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(20rem, calc(100vw - 2rem)); background: var(--surface); padding: .65rem; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px #12192138; }
.site-footer { margin-top: clamp(2.5rem, 7vw, 6rem); border-top: 1px solid var(--line); background: var(--surface); }
.foot-inner { display: flex; justify-content: space-between; align-items: start; gap: 1.7rem; padding-block: 2rem; }
.foot-inner p { margin-top: .7rem; color: var(--muted); font-size: .92rem; }
.foot-inner nav { display: flex; flex-wrap: wrap; gap: .75rem 1.3rem; font-weight: 700; }
.foot-inner p a:hover, .foot-inner nav a:hover { text-decoration: underline; }
.skip-link { position: absolute; left: 1rem; top: .5rem; transform: translateY(-200%); padding: .75rem; z-index: 5; background: var(--accent); color: var(--on-accent); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.intro { padding-block: clamp(1.6rem, 4vw, 3.7rem) clamp(1.25rem, 2.8vw, 2.4rem); }
.intro h1 { max-width: 19ch; font-size: clamp(2.15rem, 5vw, 4.5rem); letter-spacing: -.052em; }
.intro p { max-width: 64ch; margin-top: .75rem; color: var(--muted); font-size: clamp(.99rem, 1.5vw, 1.13rem); }
.warp .intro h1 { font-weight: 700; }
.pulse .intro h1 { max-width: 25ch; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: clamp(1rem, 2vw, 1.7rem); }
.warp .hero-layout { grid-template-columns: minmax(0, .82fr) minmax(0, 1.45fr); align-items: center; padding-block: clamp(1.35rem, 4vw, 3.25rem) 0; }
.warp .hero-layout .intro { padding: 0; }
.pulse .hero-layout { grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); }
.spotlight { display: grid; grid-template-rows: 1fr auto; min-width: 0; border-radius: var(--radius); color: var(--hero-text); background: var(--hero); overflow: clip; }
.zenith .spotlight { background: linear-gradient(125deg, #252c50 12%, #344d80 100%); }
.warp .spotlight { border: 2px solid #412316; box-shadow: 6px 6px 0 #412316; }
.pulse .spotlight { background: linear-gradient(137deg, #c3b4eb, #e8dcf5); }
.spotlight-slides { position: relative; display: grid; min-width: 0; }
.slide { grid-area: 1/1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; padding: clamp(1.1rem, 3vw, 2.2rem); gap: clamp(.65rem, 2.5vw, 1.6rem); }
.is-ready .slide:not(.is-current) { visibility: hidden; }
.slide.is-changing { animation: reveal .3s ease-out; }
@keyframes reveal { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.slide h2 { font-size: clamp(1.55rem, 3vw, 3.15rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; margin-bottom: .5rem; }
.slide-copy > p:not(.eyebrow) { color: var(--hero-muted); margin-top: .7rem; }
.slide .button { margin-top: 1rem; }
.slide-art { display: block; width: 100%; min-width: 0; max-width: 295px; justify-self: center; }
.slide-art img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: 0 12px 24px #18132742; }
.pulse .slide-art { order: -1; }
.pulse .slide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
.button { display: inline-flex; align-items: center; gap: .6rem; padding: .68rem .95rem; min-height: 44px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.button:hover { filter: brightness(.9); }
.pulse .button { border-radius: 999px; padding-inline: 1.15rem; }
.carousel-controls { display: flex; align-items: center; gap: .55rem; min-height: 48px; margin-inline: clamp(1.1rem, 3vw, 2.2rem); padding-bottom: .75rem; }
.carousel-controls button { flex: 0 0 auto; width: 36px; height: 36px; padding: 0; border-radius: 50%; background: transparent; color: inherit; border: 1px solid currentColor; font-weight: 800; }
.carousel-controls button:hover { background: #7773; }
.carousel-controls .carousel-toggle { margin-inline-start: auto; }
.carousel-dots { display: flex; align-items: center; }
.carousel-dots button { position: relative; width: 24px; min-height: 36px; border: 0; }
.carousel-dots button::after { content: ""; position: absolute; width: 8px; height: 8px; inset: 0; margin: auto; border-radius: 50%; background: currentColor; opacity: .45; }
.carousel-dots button[aria-current]::after { opacity: 1; width: 11px; height: 11px; }
.lead-list { border-radius: var(--radius); padding: clamp(1rem, 2vw, 1.55rem); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.lead-list h2 { font-size: 1.32rem; margin-bottom: .8rem; }
.lead-list > div { display: grid; gap: .4rem; }
.collection, .play-guide, .game-guide { margin-top: clamp(1.75rem, 4.5vw, 3.6rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.section-head h2, .section-head h3, .play-guide h2, .library-title { font-size: clamp(1.38rem, 3vw, 2.3rem); letter-spacing: -.03em; }
.section-head p, .play-guide p { color: var(--muted); margin-top: .4rem; max-width: 72ch; }
.see-all { flex: 0 0 auto; border-bottom: 1px solid currentColor; font-size: .87rem; font-weight: 750; white-space: nowrap; }
.see-all:hover { color: var(--focus); }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.55rem, 1.6vw, 1.15rem); }
.game-card { display: block; position: relative; min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .2s, border-color .2s; }
.game-card:hover { transform: translateY(-3px); border-color: var(--focus); }
.game-card img { width: 100%; height: auto; aspect-ratio: 1.48; object-fit: cover; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.game-card .card-text { display: grid; gap: .4rem; padding: .7rem calc(.8rem + 16px) .8rem .8rem; line-height: 1.25; }
.game-card .card-text span { font-size: .87rem; line-height: 1.35; color: var(--muted); }
.card-arrow { position: absolute; inset: auto .6rem .65rem auto; color: var(--muted); }
.game-card.row { display: grid; align-items: center; grid-template-columns: 54px minmax(0, 1fr) 14px; min-height: 56px; border: 0; border-radius: 8px; background: transparent; gap: .65rem; }
.game-card.row:hover { transform: none; background: var(--panel); }
.game-card.row img { border-radius: 8px; width: 54px; aspect-ratio: 1; }
.game-card.row .card-text { padding: 0; font-size: .92rem; }
.game-card.row .card-arrow { position: static; margin-inline-end: .3rem; }
.zenith .story-collection .game-card.story:first-child { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: center; }
.zenith .story-collection .game-card.story:first-child img { aspect-ratio: 1; border-radius: calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px); }
.zenith .story-collection .game-card.story:last-child { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: center; grid-column: 1/-1; }
.zenith .story-collection .game-card.story:last-child img { aspect-ratio: 3; max-height: 170px; border-radius: calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px); }
.warp .story-collection .game-card { border: 0; border-top: 3px solid var(--accent); padding-top: .6rem; border-radius: 0; background: transparent; }
.warp .story-collection .game-card img { border-radius: var(--radius); }
.warp .story-collection .card-text { padding-left: 0; }
.pulse .story-collection .game-card img { aspect-ratio: 1.24; }
.pulse .story-collection .game-card:nth-child(even) { background: #dfd5f4; }
.play-guide { padding: clamp(1.1rem, 3vw, 2.2rem); background: var(--guide); border-radius: var(--radius); }
.play-guide a, .prose a, .player-note a { text-decoration: underline; text-underline-offset: .15em; }
.warp .play-guide { border-left: 5px solid var(--accent); }
.library { margin-top: clamp(2.5rem, 6.5vw, 5.5rem); border-top: 1px solid var(--line); padding-top: 1.4rem; }
.library-title { font-size: clamp(1.8rem, 4vw, 3rem); }
.category-shelves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.35rem; }
.category-shelves .collection { padding: clamp(.75rem, 1.45vw, 1.2rem); border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); }
.category-shelves .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.warp .category-shelves { display: block; }
.warp .category-shelves .collection { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding-inline: 0; }
.warp .category-shelves .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pulse .category-shelves .collection:nth-child(even) { background: #e8dff6; }
.breadcrumbs { margin-top: 1.15rem; color: var(--muted); font-size: .87rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .3rem .5rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .65; }
.breadcrumbs a:hover { text-decoration: underline; }
.listing .intro { padding-bottom: .2rem; }
.category-feature .collection { margin-top: 1.35rem; }
.detail-panel { margin-top: 1.1rem; padding: clamp(1rem, 4vw, 3.1rem); display: grid; grid-template-columns: minmax(0, 252px) minmax(0, 1fr); align-items: center; gap: clamp(1.15rem, 5vw, 4rem); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.detail-art { width: 100%; max-width: 248px; }
.detail-art img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.detail-copy h1, .prose h1, .player-head h1 { font-size: clamp(1.85rem, 4.4vw, 3.95rem); letter-spacing: -.04em; overflow-wrap: anywhere; }
.detail-copy h1 + p { margin-top: .7rem; max-width: 58ch; color: var(--muted); }
.detail-copy .button { margin-top: 1.1rem; }
.player-note { font-size: .86rem; color: var(--muted); margin-top: .55rem; }
.warp .detail-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 220px); box-shadow: 5px 5px 0 #412316; }
.warp .detail-art { order: 2; }
.pulse .detail-art { max-width: 208px; }
.game-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.game-guide > div { padding: clamp(1rem, 2.5vw, 1.8rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.game-guide h2, .prose h2 { font-size: clamp(1.25rem, 2.5vw, 1.85rem); }
.game-guide p { margin-top: .55rem; color: var(--muted); }
.detail .game-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.player-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-block: 1rem; }
.game-player { height: clamp(460px, 76svh, 860px); border-radius: var(--radius); background: #10151a; overflow: clip; }
.game-player iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.prose { max-width: 820px; margin: 1.3rem auto 0; padding: clamp(1rem, 5vw, 3.4rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }
.prose p, .prose li { margin-top: .65rem; }
.prose h2 { margin-top: 1.85rem; }
.prose ul { padding-left: 1.35rem; }
.prose .updated { font-size: .87rem; color: var(--muted); }
.ad-placement { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; margin-block: 50px; overflow-x: clip; }
.ad-placement > div { max-width: 100%; text-align: center; }
.ad-placement + :is(.collection, .game-guide) { margin-block-start: 0; }
@media (max-width: 940px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .head-inner { min-height: 64px; }
  .hero-layout, .pulse .hero-layout { grid-template-columns: minmax(0, 1fr); }
  .lead-list > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .brand img { width: 140px; }
  .brand { padding-inline: 4px; }
  .warp .hero-layout, .category-shelves { grid-template-columns: minmax(0, 1fr); }
  .slide, .pulse .slide { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); min-height: 224px; }
  .pulse .slide-art { order: 0; }
  .slide-copy > p:not(.eyebrow) { font-size: .85rem; }
  .slide .button { font-size: .83rem; min-height: 40px; padding: .45rem .65rem; }
  .game-grid, .warp .category-shelves .game-grid, .detail .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zenith .story-collection .game-card.story:first-child { display: block; grid-column: auto; }
  .zenith .story-collection .game-card.story:first-child img { aspect-ratio: 1.48; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
  .zenith .story-collection .game-card.story:last-child { display: block; grid-column: auto; }
  .zenith .story-collection .game-card.story:last-child img { aspect-ratio: 1.48; max-height: none; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
  .section-head { align-items: start; }
  .detail-panel, .warp .detail-panel { grid-template-columns: minmax(0, 1fr); }
  .warp .detail-art { order: 0; }
  .detail-art, .pulse .detail-art { max-width: clamp(126px, 43vw, 186px); }
  .game-guide { grid-template-columns: minmax(0, 1fr); }
  .foot-inner { flex-direction: column; }
}
@media (max-width: 380px) {
  .head-inner { gap: .5rem; }
  .brand img { width: 116px; }
  .mobile-nav summary { padding-inline: .55rem; }
  .slide, .pulse .slide { grid-template-columns: minmax(0, 1fr); }
  .slide-art, .pulse .slide-art { width: 116px; order: -1; justify-self: start; }
  .lead-list > div { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
