:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --white: #fff;
  --ink: #1e1b22;
  --muted: #625d66;
  --line: #e6e2dc;
  --orange: #d64127;
  --yellow: #ffbf48;
  --display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--body); }
body:has(.player[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #5d50d9; outline-offset: 3px; }
.wrap { width: min(1264px, calc(100% - 72px)); margin-inline: auto; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icons { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.skip { position: fixed; z-index: 5; inset: 10px auto auto 10px; padding: .65rem 1rem; background: var(--white); transform: translateY(-150%); }
.skip:focus { transform: none; }

.header { position: sticky; z-index: 2; top: 0; background: #fffefa; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; font: 800 1.67rem/1 var(--display); letter-spacing: -.06em; }
.brand-mark { display: grid; width: 35px; height: 35px; place-items: center; background: var(--ink); border-radius: 10px; color: var(--yellow); }
.brand-mark .icon { width: 23px; height: 23px; }
.brand-accent { color: var(--orange); }
.brand-dot { color: var(--ink); }
.navigation { display: flex; align-items: center; gap: 4px; }
.navigation a { display: flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 9px; white-space: nowrap; color: var(--muted); font-size: .875rem; font-weight: 650; }
.navigation .icon, .search .icon { width: 17px; height: 17px; }
.navigation a:hover, .navigation a[aria-current] { color: var(--ink); background: #f1eee8; }
.search { margin-left: auto; display: flex; align-items: center; gap: 10px; width: min(315px, 33%); padding: 8px 12px; background: #f3f1ed; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.search:focus-within { outline: 2px solid #5d50d9; outline-offset: 2px; }
.search input { min-width: 0; width: 100%; outline: none; border: 0; background: transparent; color: var(--ink); font-size: .9rem; }
.search input::placeholder { color: var(--muted); }
.search kbd { padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); font: 500 .78rem/1.35 var(--body); }

.spotlight { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(270px, 1fr); gap: 16px; padding-top: 26px; }
.feature { isolation: isolate; position: relative; display: flex; align-items: center; overflow: hidden; min-height: 354px; border-radius: 18px; background: #22183e; color: var(--white); }
.feature-art { position: absolute; z-index: -1; inset: 0 0 0 33%; overflow: hidden; }
.feature-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.feature-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #22183e 0%, #22183ee8 12%, #22183e35 48%, transparent 72%), linear-gradient(0deg, #22183e80, transparent 48%); }
.feature-copy { padding: 28px 34px; position: relative; }
.feature-label { display: inline-flex; align-items: center; gap: 5px; color: #ffe1a1; font-size: .84rem; font-weight: 750; }
.feature-label .icon { width: 16px; height: 16px; }
.feature h2 { margin-block: 8px 12px; font-size: clamp(3.4rem, 6vw, 5.75rem); line-height: .87; letter-spacing: -.075em; }
.feature-description { max-width: 250px; margin-bottom: 19px; color: #f1eafa; font-size: .95rem; }
.play-button, .outline-button { width: fit-content; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 7px 14px; border: 1px solid transparent; border-radius: 9px; white-space: nowrap; font-weight: 750; font-size: .89rem; }
.play-button { background: var(--yellow); color: #261b10; padding-inline: 16px 19px; }
.play-button:hover { background: #ffd37c; }
.outline-button { background: var(--white); border-color: var(--line); }
.outline-button:hover { background: #f2efe9; border-color: #cec8be; }
.outline-button .icon { width: 16px; height: 16px; }

.picks { padding: 17px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.picks-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.picks-heading h2 { font-size: 1.4rem; letter-spacing: -.045em; }
.picks-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; background: #ffefe6; color: var(--orange); }
.picks-icon .icon { width: 17px; height: 17px; }
.pick { display: flex; align-items: center; gap: 10px; min-height: 67px; padding: 7px 5px; border-bottom: 1px solid #f0ede8; }
.pick:last-child { border-bottom: 0; }
.pick:hover { background: #f8f6f2; border-radius: 8px; }
.pick img { width: 63px; height: 46px; flex: none; object-fit: cover; border-radius: 7px; background: #ebe5de; }
.pick-copy { display: grid; flex: 1; min-width: 0; gap: 1px; }
.pick-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.pick-copy span { color: var(--muted); font-size: .82rem; }
.pick > .icon { width: 16px; height: 16px; color: #837b85; }

.catalog { padding-block: 32px 46px; scroll-margin-top: 83px; min-height: 380px; }
.catalog-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.catalog-heading h2 { font-size: clamp(1.95rem, 4vw, 2.7rem); line-height: 1.13; letter-spacing: -.055em; }
.catalog-heading p { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 15px 17px; }
.filter { padding: 7px 13px; border: 1px solid var(--line); border-radius: 50px; background: var(--white); font-size: .875rem; font-weight: 650; }
.filter:hover { border-color: #9b949c; }
.filter[aria-pressed="true"] { color: var(--white); border-color: var(--ink); background: var(--ink); }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.game-card { position: relative; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.game-card:hover { border-color: #b9b0bc; box-shadow: 0 6px 18px #241f2610; }
.card-link { display: block; border-radius: inherit; }
.card-art { position: relative; overflow: hidden; border-radius: 13px 13px 0 0; background: #e9e4e1; }
.card-art img { width: 100%; aspect-ratio: 1.65; object-fit: cover; transition: transform .2s; }
.card-link:hover img { transform: scale(1.045); }
.card-play { position: absolute; display: grid; place-items: center; top: 9px; right: 9px; width: 33px; height: 33px; color: var(--white); background: #201b28e6; border-radius: 50%; }
.card-play .icon { width: 17px; height: 17px; }
.card-copy { padding: 9px 44px 11px 12px; }
.card-copy h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.14rem; line-height: 1.17; letter-spacing: -.028em; }
.card-copy p { margin-top: 4px; color: var(--muted); font-size: .79rem; }
.icon-button { display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.icon-button:hover { background: #f3efeb; }
.icon-button[aria-pressed="true"] { color: #ba392a; }
.icon-button[aria-pressed="true"] .icon { fill: currentColor; }
.card-save { position: absolute; bottom: 10px; right: 8px; width: 36px; height: 36px; border: 0; }
.card-save .icon { width: 17px; height: 17px; }
.empty { display: grid; justify-items: center; gap: 9px; padding: 40px 16px; background: #fffdfa; border: 1px dashed #d7d0c7; border-radius: 16px; text-align: center; }
.empty h3 { font-size: 1.35rem; }
.empty p { color: var(--muted); }
.empty button { margin-top: 5px; }

.footer { background: #fffefa; border-top: 1px solid var(--line); }
.footer-inner { display: flex; gap: 16px; align-items: center; padding-block: 22px; }
.footer-brand { display: block; font-size: 1.35rem; }
.footer p { color: var(--muted); font-size: .86rem; }
.footer p:last-child { margin-left: auto; }
.footer p a { text-decoration: underline; text-underline-offset: 3px; }

.player { width: min(1160px, calc(100% - 40px)); max-height: calc(100dvh - 36px); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: 0 18px 75px #1b152963; }
.player::backdrop { background: #161222ba; }
.player-header, .player-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
.player-header h2 { font-size: 1.65rem; line-height: 1.1; letter-spacing: -.045em; }
.player-meta { margin-bottom: 3px; font-size: .84rem; color: var(--muted); }
.player-actions { display: flex; align-items: center; gap: 7px; flex: none; }
.stage { position: relative; height: clamp(260px, 66dvh, 740px); background: #211b2d; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage:fullscreen { width: 100%; height: 100%; background: #211b2d; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; color: white; }
.player-controls p, .player-status { color: var(--muted); font-size: .875rem; }
.player-status:not(:empty) { padding: 0 16px 12px; }

@media (max-width: 880px) {
  .wrap { width: calc(100% - 42px); }
  .header-inner { gap: 16px; }
  .navigation a { padding-inline: 8px; }
  .navigation .icon { display: none; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-copy { padding-inline: 23px; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 14px; padding-block: 10px 8px; }
  .brand { font-size: 1.44rem; }
  .brand-mark { width: 31px; height: 31px; }
  .search { grid-column: 2; grid-row: 1; width: 100%; }
  .search kbd { display: none; }
  .navigation { grid-column: 1 / -1; }
  .navigation .icon { display: initial; }
  .spotlight { grid-template-columns: 1fr; gap: 10px; padding-top: 13px; }
  .feature { min-height: 296px; }
  .feature-art { left: 24%; }
  .feature-art::after { background: linear-gradient(90deg, #22183e, #22183ebf 30%, #22183e18 78%), linear-gradient(0deg, #22183e70, transparent 55%); }
  .feature-copy { padding-block: 21px; }
  .feature h2 { font-size: clamp(3.35rem, 12vw, 4.6rem); }
  .feature-description { max-width: 190px; font-size: .88rem; }
  .picks { padding: 12px; }
  .picks-heading { margin-bottom: 5px; }
  #picks-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 8px; }
  .pick { min-height: 50px; padding: 5px 1px; gap: 6px; border: 0; }
  .pick img { width: 36px; height: 34px; }
  .pick > .icon { display: none; }
  .pick-copy strong { font-size: .83rem; }
  .pick-copy span { font-size: .75rem; }
  .catalog { padding-block: 23px 32px; scroll-margin-top: 109px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-copy { padding-left: 9px; padding-right: 38px; }
  .card-copy h3 { font-size: 1rem; }
  .card-save { right: 3px; width: 34px; }
  .footer-inner { flex-wrap: wrap; gap: 6px 13px; }
  .footer p:last-child { margin-left: 0; }
  .player { width: calc(100% - 12px); max-height: calc(100dvh - 12px); border-radius: 12px; }
  .player-header, .player-controls { padding: 10px; }
  .player-controls { align-items: flex-start; flex-direction: column; }
  .stage { height: clamp(220px, 57dvh, 650px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.site-intro { padding-top: 24px; }
.site-intro h1, .game-intro h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.055em;
}
.site-intro p, .game-intro p { margin-top: 6px; color: var(--muted); }
.site-intro + .spotlight { padding-top: 16px; }
.player-controls .player-actions { flex-wrap: wrap; }

.game-page { padding-block: 24px 46px; }
.breadcrumbs { margin-bottom: 16px; font-size: .875rem; color: var(--muted); }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.game-intro { margin-bottom: 17px; }
.game-intro .game-mode { margin: 0 0 6px; font-weight: 650; font-size: .875rem; }
.detail-player {
  position: relative;
  overflow: hidden;
  min-height: clamp(260px, 58dvh, 620px);
  border-radius: 14px;
  color: white;
  background: #211b2d;
}
.detail-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.detail-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.detail-tools p { margin-right: auto; color: var(--muted); font-size: .875rem; }
.detail-guide { display: grid; gap: 17px; max-width: 760px; margin-top: 28px; }
.detail-guide h2, .related h2 { font-size: 1.55rem; letter-spacing: -.035em; }
.detail-guide p { margin-top: 4px; }
.related { margin-top: 29px; }
.related .game-grid { margin-top: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 550px) {
  .site-intro { padding-top: 17px; }
  .related .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card-play:hover { background: var(--ink); }
.browse-collections { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 12px 0; }
.browse-collections a { padding: 5px 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--ink); font-size: .875rem; font-weight: 650; }
.browse-collections a:hover { border-color: #9b949c; }
.collection-catalog { padding-block: 14px 0; min-height: 0; }
.collection-catalog .game-grid { margin-top: 14px; }
.collection-page .game-intro p { max-width: 740px; }
.detail-guide ul { margin-block: 4px 6px; padding-left: 1.4rem; }
.detail-guide a { text-decoration: underline; text-underline-offset: 3px; }
.site-answers { margin: 0 0 42px; padding-top: 22px; border-top: 1px solid var(--line); }
.site-answers h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); letter-spacing: -.04em; }
.site-identity { max-width: 760px; margin-top: 6px; color: var(--muted); }
.site-identity a, .footer-about { text-decoration: underline; text-underline-offset: 3px; }
.footer-about { font-size: .86rem; }
.detail-guide section[id] { scroll-margin-top: 122px; }
.answer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr)); gap: 19px 28px; margin-top: 13px; }
.answer-grid h3 { font-size: 1.14rem; }
.answer-grid p { margin-top: 4px; color: var(--muted); }
.answer-grid a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.game-choices { margin: 6px 0 0; }
.game-choices dt { font-weight: 700; }
.game-choices dd { margin: 0 0 10px; }
