:root {
  color-scheme: dark;
  --bg: #141025;
  --surface: #201936;
  --panel: #2a2142;
  --line: #44375e;
  --ink: #fcf8ff;
  --muted: #c8bdd9;
  --mint: #b9f3df;
  --peach: #ffb096;
  --lavender: #d5baff;
  --yellow: #ffe19b;
  --display: "Arial Black", "Segoe UI", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.55 var(--body); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; overflow-wrap: anywhere; }
h1, h2 { font-family: var(--display); letter-spacing: -.04em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.65rem); }
h3 { font-size: 1.12rem; }
p { color: var(--muted); }
ul { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 4px; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 5; top: .8rem; left: .8rem; padding: .7rem; background: var(--bg); }
.shell { width: min(1320px, calc(100% - 72px)); margin-inline: auto; }
.peach { --accent: var(--peach); }
.mint { --accent: var(--mint); }
.lavender { --accent: var(--lavender); }
.yellow { --accent: var(--yellow); }

.masthead { background: #1b1530; border-bottom: 1px solid var(--line); }
.mast-row { min-height: 81px; display: flex; align-items: center; justify-content: space-between; gap: clamp(.6rem, 1.5vw, 1.5rem); }
.brand { display: inline-flex; flex: 0 0 auto; background: #fff; border-radius: 5px; padding: 2px 5px; }
.brand img { width: 134px; height: auto; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: clamp(.3rem, .8vw, .9rem); }
.nav-link { display: flex; min-height: 40px; align-items: center; gap: .35rem; padding: .35rem .44rem; border-radius: 5px; font-weight: 630; font-size: .86rem; white-space: nowrap; }
.nav-link:hover, .nav-link[aria-current] { background: var(--panel); color: var(--mint); }
.nav-icon { display: inline-grid; place-items: center; width: .95rem; color: var(--accent); font-size: .98rem; }
.catalog-link, .category-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 40px; padding: .45rem .76rem; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); font-size: .83rem; font-weight: 700; white-space: nowrap; }
.catalog-link:hover, .category-toggle:hover { border-color: var(--mint); color: var(--mint); }
.search-icon { display: block; width: .75rem; height: .75rem; border: 1.6px solid currentColor; border-radius: 50%; position: relative; margin-right: .15rem; }
.search-icon::after { content: ""; width: .31rem; height: 1.6px; background: currentColor; position: absolute; bottom: -.09rem; right: -.25rem; rotate: 45deg; }
.category-toggle { display: none; }
.category-menu { width: min(440px, calc(100% - 32px)); margin: auto; padding: 1.3rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--mint); border-radius: 8px; }
.category-menu::backdrop { background: #0c0819c9; }
.menu-heading { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: .9rem; }
.menu-heading h2 { font-size: 1.55rem; }
.menu-heading button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); font-size: 1.6rem; line-height: 1; }
.category-menu nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .52rem; }
.category-menu .nav-link { min-height: 45px; gap: .6rem; padding-inline: .65rem; border: 1px solid var(--line); }

.hero {
  margin-top: clamp(1.35rem, 3vw, 2.8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.1rem, 4.4vw, 4rem);
  padding: clamp(1.35rem, 4.3vw, 4rem);
  background:
    repeating-linear-gradient(0deg, #ffffff06 0, #ffffff06 1px, transparent 1px, transparent 6px),
    radial-gradient(ellipse at 84% 22%, #61467d 0, #30224b 52%, #241939 100%);
  border: 1px solid #6e568b;
  border-left: 6px solid var(--mint);
  border-radius: 8px;
}
.kicker { color: var(--mint); font: 700 .76rem/1.45 ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: .12em; }
.hero-copy h1 { margin: .55rem 0 .95rem; max-width: 11ch; line-height: 1.01; }
.hero-copy h1 span { display: block; color: var(--mint); }
.hero-copy > p:not(.kicker) { max-width: 43ch; color: #e2d9ee; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.2rem; margin-top: 1.35rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 45px; padding: .65rem 1rem; border-radius: 5px; border: 1px solid var(--mint); background: var(--mint); color: #16262b; font-weight: 800; line-height: 1.25; }
.button:hover { border-color: #fff; background: #dcfff5; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--mint); font-weight: 680; }
.text-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.hero-actions .text-link { font-size: .91rem; }
.hero-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .72rem; align-items: stretch; }
.hero-tile { display: grid; grid-template-rows: auto 1fr; min-width: 0; background: var(--bg); border: 1px solid #8973a2; border-radius: 5px; }
.hero-tile:hover { border-color: var(--mint); }
.hero-tile img { width: 100%; height: auto; aspect-ratio: 1.78; object-fit: cover; border-radius: 4px 4px 0 0; }
.hero-tile > span { display: flex; justify-content: space-between; align-items: center; gap: .35rem; padding: .48rem .6rem; min-height: 36px; font-size: .83rem; font-weight: 750; line-height: 1.2; }
.hero-tile > span span { color: var(--mint); }

.section { margin-block: clamp(2rem, 5vw, 4.5rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: .85rem; margin-bottom: 1.15rem; }
.section-heading p { margin-top: .45rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.5rem); }
.feature { min-width: 0; }
.feature a { display: grid; grid-template-rows: auto 1fr; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.feature a:hover { border-color: var(--mint); background: var(--panel); }
.feature img { width: 100%; height: auto; aspect-ratio: 2.18; object-fit: cover; border-radius: 6px 6px 0 0; }
.feature a > div { display: flex; flex-direction: column; align-items: flex-start; gap: .48rem; padding: .9rem 1rem 1.05rem; }
.feature h3 { font-size: clamp(1rem, 2vw, 1.4rem); }
.feature p:not(.kicker) { font-size: .92rem; }
.feature .text-link { margin-top: auto; padding-top: .25rem; font-size: .82rem; }
.switchboard { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.55fr); align-items: center; gap: clamp(1rem, 4vw, 3.65rem); padding: clamp(1.1rem, 3.3vw, 2.5rem); background: #32243c; border: 1px solid #62475d; border-left: 5px solid var(--peach); border-radius: 6px; }
.switchboard h2 { color: var(--peach); }
.switchboard p { margin-top: .6rem; }
.row-grid, .catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; list-style: none; }
.game-row { display: grid; grid-template-columns: 45px minmax(0, 1fr) auto; align-items: center; gap: .63rem; min-height: 54px; padding: .24rem .55rem .24rem .24rem; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; font-size: .9rem; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.game-row:hover { background: #382c50; border-color: var(--mint); }
.game-row img { width: 45px; height: 42px; object-fit: cover; border-radius: 3px; }
.game-row span:last-child { color: var(--mint); }
.collections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.collection { display: grid; grid-template-rows: 1fr auto; padding: clamp(.8rem, 2.2vw, 1.35rem); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 6px; }
.collection-heading { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .85rem; }
.collection-heading > span { flex: 0 0 33px; min-height: 33px; display: grid; place-items: center; background: var(--accent); border-radius: 4px; color: var(--bg); font-size: 1.15rem; }
.collection-heading h3 { margin-bottom: .3rem; font-size: 1.25rem; }
.collection-heading p { font-size: .9rem; }
.collection ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; list-style: none; }
.collection .game-row { background: var(--bg); }
.collection .game-row:hover { background: var(--panel); }

.breadcrumb { display: flex; gap: .6rem; align-items: baseline; margin-block: 1.25rem; color: var(--muted); font-size: .89rem; }
.breadcrumb a { color: var(--mint); }
.breadcrumb a:hover { text-decoration: underline; }
.category-intro, .catalog-intro { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: clamp(1.1rem, 3.5vw, 3rem); border: 1px solid var(--line); border-left: 5px solid var(--accent, var(--mint)); border-radius: 6px; background: var(--surface); }
.category-intro p, .catalog-intro p { margin-top: .6rem; }
.category-intro .count { color: var(--accent); font-weight: 700; }
.category-symbol { flex: 0 0 auto; color: var(--accent); font-size: clamp(2rem, 8vw, 7.5rem); line-height: 1; }
.tile-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.65rem, 1.7vw, 1.25rem); }
.tile { min-width: 0; }
.tile a { display: grid; grid-template-rows: auto 1fr; height: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.tile a:hover { background: var(--panel); border-color: var(--mint); }
.tile img { width: 100%; height: auto; aspect-ratio: 1.63; object-fit: cover; border-radius: 5px 5px 0 0; }
.tile a div { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: min-content 1fr; align-items: center; gap: .25rem; padding: .69rem .65rem .83rem; }
.tile h3 { font-size: .98rem; }
.tile p { grid-column: 1 / -1; color: var(--muted); font-size: .74rem; }
.tile a div > span { color: var(--mint); }
.catalog-intro { display: block; }
.catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.game-search { margin-top: 1rem; }
.game-search label { display: block; margin-bottom: .4rem; }
.game-search input { width: min(100%, 460px); padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); }

.game-detail { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.detail-lead { display: grid; grid-template-columns: clamp(115px, 16vw, 208px) minmax(0, 1fr); align-items: start; gap: clamp(1rem, 3vw, 2.5rem); padding: clamp(1rem, 3.25vw, 2.8rem); border-left: 5px solid var(--mint); border-radius: 7px 0 0 0; }
.detail-image { padding: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; }
.detail-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.detail-copy h1 { font-size: clamp(2rem, 5.2vw, 4.35rem); margin: .32rem 0 .6rem; }
.detail-copy > p:not(.kicker) { max-width: 64ch; }
.detail-copy .button { margin-top: 1rem; }
.detail-copy .embed-note { margin-top: .55rem; font-size: .83rem; }
.embed-note a, .prose a { color: var(--mint); text-decoration: underline; text-underline-offset: .16em; }
.detail-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.detail-notes section { padding: .85rem clamp(1rem, 3.25vw, 2.8rem) 1rem; }
.detail-notes section + section { border-left: 1px solid var(--line); }
.detail-notes h2 { font-size: 1.05rem; margin-bottom: .32rem; }
.detail-notes p { font-size: .93rem; }
.hostname { overflow-wrap: anywhere; }
.related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.player-heading { margin-block: 1.35rem; }
.player-heading h1 { font-size: clamp(2rem, 5.4vw, 3.8rem); margin-top: .6rem; }
.player-panel { margin-bottom: clamp(2rem, 4vw, 4rem); border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.player-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .9rem; padding: .45rem 1rem; border-bottom: 1px solid var(--line); font-size: .88rem; }
.fullscreen-button { min-height: 38px; padding: .42rem .75rem; }
.player-panel iframe { width: 100%; height: clamp(450px, 75vh, 900px); display: block; background: #fff; border: 0; border-radius: 5px; }
.player-panel:fullscreen, .player-panel.player-expanded { display: grid; grid-template-rows: auto minmax(0, 1fr); margin: 0; border: 0; border-radius: 0; }
.player-panel.player-expanded { position: fixed; inset: 0; z-index: 10; }
.player-panel:fullscreen iframe, .player-panel.player-expanded iframe { height: 100%; border-radius: 0; }
html:has(.player-expanded) { overflow: hidden; }

.prose { max-width: 840px; padding: clamp(1rem, 4vw, 2.8rem); margin-bottom: clamp(2rem, 4vw, 4rem); border-radius: 6px; border: 1px solid var(--line); border-top: 4px solid var(--mint); background: var(--surface); overflow-wrap: anywhere; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 4.15rem); margin-bottom: .8rem; }
.prose h2 { font-size: clamp(1.28rem, 3vw, 1.85rem); margin-bottom: .65rem; }
.prose section { margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.prose p + p, .prose ul + p { margin-top: .7rem; }
.prose ul { padding-left: 1.2rem; color: var(--muted); }
.prose li + li { margin-top: .5rem; }
.prose strong { color: var(--ink); }
.prose .effective { color: var(--mint); font-size: .9rem; margin-bottom: .85rem; }
.ad-placement { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: safe center; margin-block: 50px; overflow-x: auto; }
.ad-placement > div { max-width: 100%; margin-inline: auto; }
.ad-placement > div > div { margin-inline: auto; }
.ad-placement + :is(.hero, .section, .breadcrumb) { margin-block-start: 0; }
.site-footer { margin-top: 1.9rem; border-top: 1px solid var(--line); background: #1b1530; }
.footer-row { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding-block: 1.4rem 1.65rem; }
.footer-row p { margin-top: .5rem; font-size: .88rem; overflow-wrap: anywhere; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; font-size: .9rem; }
.footer-row a:hover { color: var(--mint); text-decoration: underline; }

@media (max-width: 1030px) {
  .shell { width: calc(100% - 48px); }
  .mast-row { flex-wrap: wrap; min-height: 0; padding-top: .7rem; }
  .desktop-nav { order: 3; width: 100%; justify-content: space-between; border-top: 1px solid var(--line); }
  .nav-link { gap: .45rem; }
  .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .shell { width: calc(100% - 32px); }
  .mast-row { flex-wrap: nowrap; justify-content: start; gap: .55rem; min-height: 62px; padding-top: 0; }
  .mast-row .brand { margin-right: auto; }
  .mast-row .brand img { width: clamp(96px, 25vw, 120px); }
  .desktop-nav { display: none; }
  .category-toggle { display: inline-flex; }
  .catalog-link { width: 41px; flex: 0 0 auto; padding: 0; }
  .catalog-link span:last-child { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy h1 { max-width: none; }
  .hero-copy p:not(.kicker) { max-width: 48ch; }
  .hero-games { gap: .5rem; }
  .feature-grid, .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .switchboard { grid-template-columns: minmax(0, 1fr); }
  .collection ul { grid-template-columns: minmax(0, 1fr); }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-row { flex-direction: column; }
  .ad-placement { width: calc(100% + 32px); margin-inline: -16px; }
}
@media (max-width: 510px) {
  .feature-grid, .collections { grid-template-columns: minmax(0, 1fr); }
  .feature a { grid-template-columns: minmax(85px, .58fr) minmax(0, 1fr); grid-template-rows: auto; }
  .feature img { height: 100%; aspect-ratio: auto; border-radius: 6px 0 0 6px; }
  .feature a > div { padding: .65rem .7rem; }
  .feature p:not(.kicker) { font-size: .83rem; }
  .collection ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-grid, .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-lead { grid-template-columns: minmax(0, 1fr); }
  .detail-image { width: 122px; }
  .detail-notes { grid-template-columns: minmax(0, 1fr); }
  .detail-notes section + section { border-left: 0; border-top: 1px solid var(--line); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 365px) {
  .row-grid, .collection ul { grid-template-columns: minmax(0, 1fr); }
}
