:root {
  color-scheme: light;
  --paper: #f4f6fb;
  --white: #fff;
  --ink: #161d31;
  --muted: #4d5970;
  --line: #dbe1ed;
  --soft: #ecf0f8;
  --focus: #344e9b;
  --orange: #d64127;
  --yellow: #ffbf48;
  --display: system-ui, sans-serif;
  --body: 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 var(--focus); outline-offset: 3px; }
.wrap { width: min(1320px, calc(100% - 64px)); 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: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 66px; display: flex; align-items: center; gap: 28px; }
.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; min-height: 42px; 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(--focus); background: var(--soft); }
.search { margin-left: auto; display: flex; align-items: center; gap: 10px; width: min(350px, 37%); min-height: 42px; padding: 8px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.search:focus-within { outline: 2px solid var(--focus); 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, 1fr) minmax(250px, 27%); gap: 16px; padding-top: 26px; }
.feature { isolation: isolate; position: relative; display: flex; align-items: center; overflow: hidden; min-height: 354px; border-radius: 18px; background: #141d3a; 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, #141d3a 0%, #141d3ae8 12%, #141d3a38 52%, transparent 76%), linear-gradient(0deg, #141d3a85, transparent 48%); }
.feature-copy { min-width: 0; padding: 16px 34px; position: relative; }
.feature-label { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid #ffe1a150; border-radius: 6px; background: #141d3ac9; color: #ffe1a1; font-size: .875rem; font-weight: 750; }
.feature-label .icon { width: 16px; height: 16px; }
.feature h2 { margin-block: 8px 10px; font-size: clamp(2.85rem, 5.3vw, 4.55rem); line-height: .96; letter-spacing: -.065em; }
.feature-description { max-width: 340px; margin-bottom: 13px; color: #f1eafa; font-size: .95rem; line-height: 1.4; }
.feature:has(.feature-controls:not([hidden])) .feature-copy { padding-bottom: 68px; }
.feature h2 { max-width: 15ch; overflow-wrap: anywhere; text-wrap: balance; }
.feature h2.feature-long-title { font-size: clamp(2.1rem, 3.5vw, 2.6rem); }
.feature-controls { position: absolute; inset: auto auto 15px 34px; display: flex; align-items: center; gap: 7px; }
.feature-controls button { min-width: 44px; height: 44px; padding: 0 10px; display: grid; place-items: center; background: #141d3ae8; border: 1px solid #ffffff48; border-radius: 8px; color: white; font: inherit; cursor: pointer; }
.feature-controls button:hover { background: #324772; }
.feature-controls button:not(:last-child) { font-size: 1.4rem; line-height: 1; }
.feature-position { min-width: 40px; color: #f1eafa; text-align: center; font-size: .85rem; font-variant-numeric: tabular-nums; }
.feature-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.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: 12px; }
#picks-list { display: grid; gap: 6px; }
.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: 63px; padding: 6px 7px; border: 1px solid transparent; border-radius: 9px; background: var(--paper); }
.pick:hover { background: var(--soft); border-color: var(--line); }
.pick img { width: 63px; height: 46px; flex: none; object-fit: contain; 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: var(--focus); }

.catalog { padding-block: 27px 46px; scroll-margin-top: 83px; min-height: 380px; }
.catalog-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.catalog-heading h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); 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 { min-height: 42px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); font-size: .875rem; font-weight: 650; }
.filter:hover { border-color: var(--focus); }
.filter[aria-pressed="true"] { color: var(--white); border-color: var(--focus); background: var(--focus); }
.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, .game-card:focus-within { border-color: #a3b0ce; box-shadow: 0 5px 14px #263a5c15; }
@media (min-width: 1180px) {
  .catalog .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.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-art-source { background: #141a22; }
.card-art-source img { display: block; object-fit: contain; }
.card-art-type { display: grid; place-items: center; aspect-ratio: 1.65; padding: 12px; color: white; text-align: center; }
.card-art-type span { font-weight: 800; font-size: clamp(.95rem, 2.5vw, 1.8rem); letter-spacing: -.045em; }
.card-art-hop { background: linear-gradient(145deg, #202630, #454d59); }
.card-art-im-thirsty { background: linear-gradient(145deg, #194444, #176c5c); }
.card-art-edwins-misadventure { background: linear-gradient(145deg, #301d47, #713f60); }
.card-art-wonderhop { background: linear-gradient(145deg, #174d64, #484089); }
.card-art-byon-combat { background: linear-gradient(145deg, #371923, #8b342a); }
.card-art-web-dashers { background: linear-gradient(145deg, #1b3b29, #405e23); }
.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: #141d3aef; border-radius: 50%; }
.card-play .icon { width: 17px; height: 17px; }
.card-copy { padding: 9px 44px 11px 12px; }
.card-copy h3 { overflow-wrap: anywhere; font-size: 1rem; line-height: 1.25; letter-spacing: -.02em; }
.card-copy p { margin-top: 5px; color: var(--muted); font-size: .82rem; }
.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: 7px; right: 4px; width: 40px; height: 40px; 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: var(--white); 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; pointer-events: none; }
.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; }
  .feature-controls { left: 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:has(.feature-controls:not([hidden])) { min-height: 360px; }
  .feature-art { left: 24%; }
  .feature-art::after { background: linear-gradient(90deg, #141d3a, #141d3abf 30%, #141d3a18 78%), linear-gradient(0deg, #141d3a80, transparent 55%); }
  .feature-copy { padding-block: 21px; }
  .feature h2 { font-size: clamp(2.55rem, 10vw, 4.15rem); }
  .feature-description { max-width: 275px; font-size: .88rem; line-height: 1.4; }
  .picks { padding: 12px; }
  .picks-heading { margin-bottom: 5px; }
  #picks-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .pick { min-height: 50px; padding: 5px 4px; gap: 6px; }
  .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: 20px; }
.site-intro h1 { font-size: clamp(1.7rem, 3vw, 2.45rem); }
.game-intro h1 { font-size: clamp(1.85rem, 3.6vw, 2.8rem); }
.site-intro h1, .game-intro h1 {
  line-height: 1.1;
  letter-spacing: -.055em;
}
.site-intro p, .game-intro p { margin-top: 6px; color: var(--muted); }
.site-intro + .spotlight { padding-top: 14px; }
@media (min-width: 1050px) {
  .site-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; }
  .site-intro p { grid-column: 1; margin: 0; }
  .site-intro .browse-collections { grid-column: 2; grid-row: 1 / 3; align-self: end; }
}
.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; }
.play-shell:not(:fullscreen, .expanded-game) {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
}
.play-shell:not(:fullscreen, .expanded-game) .detail-player { border-radius: 0; }
.play-shell:not(:fullscreen, .expanded-game) .detail-tools { margin: 0; padding: 8px 10px; }
.play-shell[data-scroll-to-player] { scroll-margin-top: 4.5rem; }
.detail-start-help { margin: 0; padding: 8px 12px; color: var(--muted); font-size: .875rem; }
.play-shell:is(:fullscreen, .expanded-game) .detail-start-help { display: none; }
@media (min-width: 800px) {
  .play-shell[data-game="buildnow-gg"]:not(:fullscreen, .expanded-game) .detail-player[data-phase] {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: calc(100dvh - 10.5rem);
  }
}
.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-poster { position: absolute; inset: 0; display: grid; place-items: center; isolation: isolate; background: #151622; }
.detail-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: -2; }
.detail-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 15%, #120e1d55 100%); z-index: -1; pointer-events: none; }
.detail-poster .play-button { min-height: 48px; min-width: 135px; font-size: 1rem; box-shadow: 0 3px 20px #0007; }
.detail-player[data-phase="loading"] iframe { opacity: 0; }
.detail-player[data-phase="loading"]::before { content: ""; position: absolute; inset: 45% 27% auto; height: 3px; border-radius: 8px; background: #fdc259; }
.external-player { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.external-player p { color: var(--muted); font-size: .875rem; }
.external-launch { display: grid; grid-template-columns: minmax(100px, 230px) minmax(0, 1fr); }
.external-launch img { aspect-ratio: 16 / 9; width: 100%; object-fit: contain; background: #141a22; border-radius: 8px; }
.external-launch p { margin-top: 7px; }
.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; min-height: 1.25em; }
.detail-tools .outline-button { min-height: 44px; }
.play-shell:fullscreen,.play-shell.expanded-game { display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #151622; z-index: 10; width: 100%; height: 100%; }
.play-shell.expanded-game { position: fixed; inset: 0; height: 100dvh; }
.play-shell:fullscreen .detail-player,.play-shell.expanded-game .detail-player { min-height: 0; border-radius: 0; }
.play-shell:fullscreen .detail-tools,.play-shell.expanded-game .detail-tools { margin: 0; padding: 6px 10px max(6px,env(safe-area-inset-bottom)); max-height: 32dvh; overflow: auto; }
.play-shell:fullscreen .detail-tools p,.play-shell.expanded-game .detail-tools p { color: #e5deeb; }
.game-expanded { overflow: hidden; }
.detail-guide { display: grid; gap: 17px; max-width: 820px; margin-top: 26px; padding: clamp(16px, 3vw, 25px); border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.detail-guide h2, .related h2 { font-size: 1.55rem; letter-spacing: -.035em; }
.detail-guide p { margin-top: 4px; }
.game-answer + .game-answer { margin-top: 17px; }
.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)); }
  .external-launch { grid-template-columns: 1fr; }
  .external-launch img { max-height: 210px; }
  .detail-tools p:not(:empty) { flex-basis: 100%; }
}

.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 { color: var(--focus); border-color: var(--focus); }
.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 :is(ol, ul) { margin-block: 4px 6px; padding-left: 1.4rem; }
.detail-guide a, .play-control-link { 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; }
