.homepage {
  --home-accent: color-mix(in srgb, var(--bw-orange) 70%, var(--bw-text));
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  font: 14px/1.5 "Segoe UI", system-ui, sans-serif;
}
.homepage [hidden] { display: none !important; }
.homepage button, .homepage input { font: inherit; }
.homepage button, .homepage a { touch-action: manipulation; }
.homepage :focus-visible { outline: 3px solid var(--bw-accent); outline-offset: 3px; }
.home-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; flex: 1; }
.skip-games { position: absolute; z-index: 30; top: 8px; left: 12px; padding: 12px 18px; border-radius: 8px; background: var(--bw-panel); color: var(--bw-text); transform: translateY(-150%); }
.skip-games:focus { transform: none; }
.home-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 42px 0 32px; }
.home-kicker { font-size: 10px; font-weight: 750; letter-spacing: 2px; color: var(--home-accent); margin: 0 0 12px; }
.home-hero h1 { margin: 0 0 12px; font-size: 46px; line-height: 1.09; font-weight: 750; letter-spacing: -1.9px; }
.home-hero h1 span { color: var(--home-accent); }
.home-intro { color: var(--bw-text-muted); margin: 0; font-size: 13px; line-height: 1.8; max-width: 570px; }
.home-benefits { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; color: var(--bw-text-muted); font-size: 11px; }
.home-benefits span { display: flex; align-items: center; gap: 6px; }
.home-benefits i { width: 5px; height: 5px; border-radius: 50%; background: var(--bw-green); }
.hero-aside { border-left: 1px solid var(--bw-border-strong); padding-left: 24px; color: var(--bw-text-muted); max-width: 255px; font-size: 12px; }
.hero-aside b { display: block; font-size: 26px; letter-spacing: -.7px; color: var(--bw-text); margin-bottom: 5px; }
.hero-aside span { color: var(--home-accent); }
.game-library { scroll-margin-top: 16px; outline: none; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0 20px; border-top: 1px solid var(--bw-border); }
.library-toolbar h2 { font-size: 20px; margin: 0; letter-spacing: -.5px; }
.library-count { display: inline-block; vertical-align: middle; margin-left: 7px; font-size: 11px; font-weight: 500; color: var(--bw-text-muted); background: var(--bw-panel-2); border: 1px solid var(--bw-border); padding: 4px 8px; border-radius: 20px; letter-spacing: 0; }
.game-search { display: flex; align-items: center; gap: 9px; border: 1px solid var(--bw-border-strong); border-radius: 10px; background: var(--bw-panel); padding: 0 13px; width: 330px; color: var(--bw-text-muted); }
.game-search:focus-within { outline: 2px solid var(--bw-accent); outline-offset: 2px; }
.game-search svg { width: 18px; height: 18px; flex: none; }
.game-search input { min-width: 0; width: 100%; min-height: 46px; border: 0; background: transparent; color: var(--bw-text); font-size: 13px; padding: 10px 0; outline: none !important; }
.game-search input::placeholder { color: var(--bw-text-muted); opacity: 1; }
.catalogue-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 27px; }
.catalogue-filters button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 13px; border: 1px solid var(--bw-border-strong); border-radius: 9px; background: var(--bw-panel); color: var(--bw-text-muted); font-size: 12px; cursor: pointer; }
.catalogue-filters button:hover { color: var(--bw-text); }
.catalogue-filters button[aria-pressed="true"] { color: var(--bw-text); background: color-mix(in srgb, var(--bw-accent) 12%, var(--bw-panel)); border-color: var(--bw-accent); }
.catalogue-filters button[aria-pressed="true"]::before { content: ''; width: 5px; height: 5px; background: var(--bw-accent); border-radius: 50%; }
.category-count { font-size: 10px; opacity: .85; }
.search-feedback { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 17px; }
.search-feedback:has(#searchCount:empty) { margin: 0; }
#searchCount { margin: 0; color: var(--bw-text-muted); font-size: 12px; }
#clearFilters { min-height: 44px; padding: 8px 12px; border: 1px solid var(--bw-border-strong); border-radius: 8px; background: var(--bw-panel); color: var(--bw-text); font-size: 12px; cursor: pointer; }
.no-games { padding: 42px 20px; border: 1px dashed var(--bw-border-strong); border-radius: 15px; text-align: center; color: var(--bw-text-muted); }
.catalogue-section { margin: 0 0 34px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-heading h2 { font-size: 23px; letter-spacing: -.7px; margin: 0 0 5px; }
.section-heading p { font-size: 12px; color: var(--bw-text-muted); margin: 0; }
.section-count { font-size: 12px; font-weight: 400; color: var(--bw-text-muted); margin-left: 8px; letter-spacing: 0; vertical-align: middle; white-space: nowrap; }
.daily-reset { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 10px; color: var(--bw-text-muted); }
.daily-reset i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--bw-green); }
.games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.game { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--bw-border); border-radius: 15px; background: var(--bw-panel); color: var(--bw-text); text-decoration: none; transition: border-color .15s, background .15s; }
.game:hover { border-color: var(--game-accent); background: var(--bw-panel-2); }
.game .art { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; background: #061624; }
.game-copy { display: flex; flex-direction: column; flex: 1; padding: 15px 15px 13px; }
.game h3 { padding-left: 9px; border-left: 3px solid var(--game-accent); font-size: 19px; font-weight: 750; line-height: 1.2; letter-spacing: -.5px; margin: 0 0 9px; }
.game .what { font-size: 11px; line-height: 1.7; color: var(--bw-text-muted); margin: 0 0 14px; flex: 1; }
.game-foot { display: flex; align-items: center; justify-content: space-between; gap: 7px; font-size: 10px; padding-top: 12px; border-top: 1px solid var(--bw-border); }
.game-foot .feature { color: var(--bw-text-muted); }
.game-foot .feature i { font-style: normal; color: var(--bw-green); margin-right: 4px; }
.game-foot .play { font-size: 11px; font-weight: 700; white-space: nowrap; color: var(--home-accent); }
.homepage .bw-foot { margin-top: 10px; }
@media(min-width:1600px) { .home-shell { padding-inline: 0; } }
@media(max-width:1050px) {
  .home-hero h1 { font-size: 42px; }
  .games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media(max-width:760px) {
  .home-shell { width: calc(100% - 28px); }
  .home-hero { display: block; padding: 29px 0 24px; }
  .home-hero h1 { font-size: 34px; letter-spacing: -1.3px; }
  .home-kicker { font-size: 9px; letter-spacing: 1.5px; margin-bottom: 10px; }
  .home-intro { font-size: 12px; }
  .home-benefits { gap: 11px; font-size: 10px; margin-top: 15px; }
  .hero-aside { display: none; }
  .library-toolbar { display: block; padding: 20px 0 15px; }
  .library-toolbar h2 { font-size: 19px; margin-bottom: 13px; }
  .game-search { width: 100%; }
  .game-search input { font-size: 16px; }
  .catalogue-filters { gap: 6px; margin-bottom: 25px; }
  .catalogue-filters button { font-size: 11px; gap: 5px; padding: 8px 10px; }
  .category-count { font-size: 10px; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .catalogue-section { margin-bottom: 27px; }
  .section-heading { align-items: flex-start; gap: 9px; margin-bottom: 13px; }
  .section-heading h2 { font-size: 21px; margin-bottom: 4px; }
  .section-heading p { font-size: 11px; line-height: 1.8; }
  .daily-reset { max-width: 90px; white-space: normal; text-align: right; font-size: 9px; margin-top: 5px; }
  .game { border-radius: 12px; }
  .game-copy { padding: 12px 10px; }
  .game h3 { font-size: 16px; line-height: 1.25; letter-spacing: -.4px; padding-left: 7px; }
  .game .what { font-size: 11px; line-height: 1.65; margin-bottom: 10px; }
  .game-foot { flex-wrap: wrap; font-size: 10px; padding-top: 10px; gap: 6px; }
  .game-foot .play { font-size: 11px; }
}
@media(max-width:350px) {
  .home-hero h1 { font-size: 30px; }
  .game h3 { font-size: 15px; }
  .game .what { font-size: 10px; }
}
@media(prefers-reduced-motion:reduce) { .game { transition: none; } }

.game h3{min-height:2lh}.game .what{min-height:2lh}
@media(max-width:600px){.game-foot{min-height:48px}}

/* The flagship preview is injected only for an authorized account. */
.has-stephen-preview .home-hero{display:none}.stephen-featured{margin:22px 0 34px}.stephen-featured .stephen-featured-card{position:relative;display:grid;grid-template-columns:1.15fr 1fr;min-height:370px;overflow:hidden;border:1px solid #b8914e77;border-radius:22px;background:linear-gradient(125deg,#172533,#0a121c);box-shadow:0 12px 40px #0003;color:#f4e9d3;text-decoration:none;transform:none}.stephen-featured .art{height:100%;width:100%;object-fit:cover;aspect-ratio:auto;mask-image:linear-gradient(90deg,#000 72%,transparent)}.stephen-featured-copy{padding:38px 32px 32px 12px;display:flex;align-items:flex-start;flex-direction:column;justify-content:center;gap:15px}.stephen-featured-kicker{font-size:10px;font-weight:800;letter-spacing:1.8px;color:#e9c77f}.stephen-featured h2{font:700 clamp(42px,5vw,68px)/1 Georgia,serif;letter-spacing:-2px;margin:0}.stephen-featured p{font-size:22px;line-height:1.3;margin:0}.stephen-featured-description{font-size:14px;line-height:1.7;color:#c8d2d9;max-width:390px}.stephen-featured-play{display:flex;justify-content:space-between;gap:45px;background:#f5c77d;color:#201a10;border-radius:10px;padding:14px 20px;font-size:14px;font-weight:800;margin-top:6px}.stephen-featured a:hover{border-color:#efca85}.stephen-featured a:focus-visible{outline:3px solid #f5c77d;outline-offset:4px}
@media(max-width:650px){.stephen-featured{margin:15px 0 25px}.stephen-featured .stephen-featured-card{grid-template-columns:1fr;min-height:0;border-radius:17px}.stephen-featured .art{aspect-ratio:16/9;height:auto;mask-image:linear-gradient(#000 65%,transparent)}.stephen-featured-copy{padding:0 23px 27px;margin-top:-22px;position:relative;gap:12px}.stephen-featured h2{font-size:48px}.stephen-featured p{font-size:20px}.stephen-featured-description{font-size:13px}.stephen-featured-play{width:100%;box-sizing:border-box}.stephen-featured-kicker{font-size:9px;letter-spacing:1px}}
