body {
  --home-bg: #fbfcf9;
  --home-surface: #fff;
  --home-ink: #1d2c2d;
  --home-muted: #63716e;
  --home-border: #e2e8de;
  --home-soft: #f0f3eb;
  --home-accent: #d3f66a;
  --home-green: #315d43;
}
body:has(#screen-menu[data-home-theme="dark"]) {
  --home-bg: #0c1930;
  --home-surface: #14243d;
  --home-ink: #f4f6ed;
  --home-muted: #aab9cf;
  --home-border: #2b3c55;
  --home-soft: #192b44;
  --home-green: #d3f66a;
}
body:has(#screen-menu.active.home-active) { background: var(--home-bg); }
.container:has(#screen-menu.active.home-active) { max-width: 1240px; padding: 0 40px; }
#game-list-view { color: var(--home-ink); padding-top: env(safe-area-inset-top, 0px); }
#game-list-view a { -webkit-tap-highlight-color: transparent; }
#game-list-view :is(a, button, input):focus-visible { outline: 3px solid var(--home-green); outline-offset: 4px; }
#game-list-view button { font-family: inherit; }
#game-list-view [hidden] { display: none !important; }
#game-list-view .home-header { min-height: 88px; gap: 24px; margin: 0; border-bottom: 1px solid var(--home-border); }
#game-list-view .home-brand { gap: 9px; text-decoration: none; }
#game-list-view .home-brand img { width: 38px; height: 38px; padding: 4px; background: #213d38; border-radius: 12px; }
#game-list-view .home-brand h1 { font-size: 24px; letter-spacing: -1.2px; color: var(--home-ink); font-weight: 850; }
.home-brand h1 span { color: #699342; }
.home-nav { display: flex; gap: 28px; margin-right: auto; margin-left: 32px; }
.home-nav a { color: var(--home-muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.home-nav a:hover { color: var(--home-green); }
#game-list-view .home-account { gap: 18px; }
#game-list-view .home-online { display: flex; align-items: center; gap: 5px; font-size: 11px; }
#game-list-view .home-online strong { color: var(--home-ink); font-size: 12px; }
#game-list-view .home-online > span:not(.home-online-dot) { color: var(--home-muted); font-size: 11px; }
.home-online-dot { width: 6px; height: 6px; border-radius: 50%; background: #459c64; margin-right: 2px; }
.home-theme-toggle { position: relative; display: flex; align-items: center; justify-content: space-around; width: 68px; height: 36px; border-radius: 22px; background: var(--home-soft); border: 1px solid var(--home-border); color: var(--home-muted); cursor: pointer; }
.home-theme-toggle::before { content: ''; position: absolute; width: 28px; height: 28px; top: 3px; left: 3px; border-radius: 50%; background: var(--home-surface); box-shadow: 0 1px 5px #00000014; transition: transform .2s; }
.home-theme-toggle span { position: relative; width: 28px; font-size: 20px; line-height: 1; }
.home-theme-toggle .theme-sun { color: var(--home-green); }
.home-theme-toggle[aria-pressed="true"]::before { transform: translateX(32px); background: #354765; }
.home-theme-toggle[aria-pressed="true"] .theme-moon { color: #d3f66a; }
.home-theme-toggle[aria-pressed="true"] .theme-sun { color: #aab9cf; }
#game-list-view .home-profile-button { border: 3px solid var(--home-surface); outline: 1px solid var(--home-border); background: #e6dced; color: #624271; font-size: 12px; }
.home-hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 12px; padding: 36px 0; overflow: clip; overflow-clip-margin: 12px; }
.home-eyebrow { color: var(--home-green); font-size: 10px; font-weight: 800; letter-spacing: 1.8px; line-height: 1.5; }
.home-hero-copy > .home-eyebrow { display: inline-flex; gap: 7px; align-items: center; padding: 6px 10px; border: 1px solid var(--home-border); border-radius: 6px; letter-spacing: 1.3px; }
.home-hero-copy > .home-eyebrow span { font-size: 15px; }
#game-list-view .home-hero h2 { margin: 20px 0 20px; font-size: clamp(36px, 4.2vw, 54px); color: var(--home-ink); line-height: 1.1; letter-spacing: -2.7px; font-weight: 850; }
.home-hero h2 > span { color: var(--home-green); }
.home-hero-description { color: var(--home-muted); font-size: 14px; line-height: 1.85; }
.home-primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--home-accent); padding: 16px 21px; margin-top: 25px; border: 1px solid #bdd95e; border-radius: 9px; color: #203824; text-decoration: none; font-size: 13px; font-weight: 800; box-shadow: 0 3px 0 #203824; transition: transform .2s, box-shadow .2s; }
.home-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #203824; }
.home-primary > span { font-size: 20px; font-weight: 400; }
.home-hero-notes { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 24px; font-size: 10px; color: var(--home-muted); }
.home-hero-notes i { font-style: normal; color: var(--home-green); margin-right: 3px; }
.home-hero-art { position: relative; min-width: 0; isolation: isolate; }
.home-hero-art > svg { position: relative; display: block; width: 113%; max-height: 340px; margin-left: -6%; transform: rotate(-3deg); filter: drop-shadow(0 22px 18px #12282214); }
.home-art-orbit { position: absolute; z-index: -1; inset: 5% 1% 8% 2%; border-radius: 49% 46% 41% 52%; background: #e8eddd; transform: rotate(-15deg); }
[data-home-theme="dark"] .home-art-orbit { background: #1c304c; }
.home-art-orbit::after { content: ''; position: absolute; inset: -18px 9px 16px -12px; border: 1px dashed #7e9a6c66; border-radius: 50%; transform: rotate(20deg); }
.home-art-sticker { position: absolute; right: 3%; top: -1%; display: grid; padding: 16px 14px; border: 1px solid #dac770; border-radius: 12px; background: #ffeda3; color: #534920; font-size: 9px; font-weight: 700; line-height: 1.5; letter-spacing: 1.2px; transform: rotate(9deg); box-shadow: 3px 4px 0 #142c3212; }
.home-art-sticker b { font-size: 18px; letter-spacing: -.5px; }
.home-art-sticker > span { position: absolute; right: -13px; top: -21px; font-size: 33px; color: var(--home-ink); }
.home-art-caption { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; color: var(--home-muted); transform: rotate(-3deg); margin-top: 4px; }
.home-art-caption span { color: var(--home-green); font-size: 20px; }
.home-library { padding-top: 28px; scroll-margin-top: 24px; border-top: 1px solid var(--home-border); }
.home-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
#game-list-view .home-section-heading h2 { color: var(--home-ink); font-size: 30px; letter-spacing: -1.2px; margin: 7px 0 0; line-height: 1.25; }
.home-game-count { color: var(--home-muted); font-size: 11px; margin-bottom: 5px; white-space: nowrap; }
.home-discovery { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0; }
.home-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.home-filters button { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--home-muted); font-size: 11px; font-weight: 650; cursor: pointer; }
.home-filters button:hover { background: var(--home-soft); }
.home-filters button[aria-pressed="true"] { background: var(--home-ink); color: var(--home-bg); }
.home-filters button > span { font-size: 9px; border-radius: 4px; padding: 2px 4px; background: #ffffff24; }
[data-home-theme="dark"] .home-filters button[aria-pressed="true"] { color: #203824; background: #d3f66a; }
.home-search { display: flex; align-items: center; gap: 9px; flex: 0 1 210px; padding: 10px 12px; border: 1px solid var(--home-border); border-radius: 8px; background: var(--home-surface); }
.home-search svg { width: 17px; height: 17px; color: var(--home-muted); flex-shrink: 0; }
#game-list-view .home-search input { width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--home-ink); font: inherit; font-size: 12px; text-align: left; }
#game-list-view .home-search input::placeholder { color: var(--home-muted); opacity: 1; }
.home-search:focus-within { outline: 2px solid var(--home-green); outline-offset: 2px; }
#game-list-view .home-search input:focus-visible { outline: none; }
.home-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#game-list-view .game-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 0; }
#game-list-view .game-card { display: flex; flex-direction: column; gap: 0; min-height: 0; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--home-border); border-radius: 15px; background: var(--home-surface); color: var(--home-ink); font: inherit; text-align: left; box-shadow: 0 3px 0 #1d2c2d04; transition: transform .2s, box-shadow .2s; }
#game-list-view .game-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px #0e213319; }
.home-card-scene { position: relative; display: block; width: 100%; height: 158px; overflow: hidden; background: var(--scene); }
.home-card-scene::before { content: ''; position: absolute; width: 150px; height: 150px; border: 1px solid #ffffff50; border-radius: 50%; top: 27px; right: -33px; box-shadow: 0 0 0 22px #ffffff18, 0 0 0 44px #ffffff10; }
.home-card-art { display: block; width: 100%; height: 100%; overflow: visible; transition: transform .3s; }
.game-card:hover .home-card-art { transform: scale(1.055) rotate(-2deg); }
.home-card-badge { position: absolute; z-index: 1; left: 12px; top: 12px; padding: 4px 6px; border-radius: 4px; background: #ffffffc9; color: #384943; font-size: 7px; font-weight: 800; letter-spacing: .8px; }
#game-list-view .game-card-info { display: flex; flex-direction: column; gap: 0; padding: 17px 15px 19px; width: 100%; min-width: 0; }
#game-list-view .game-card-title { color: var(--home-ink); font-size: 18px; font-weight: 800; letter-spacing: -.4px; line-height: 1.25; padding-right: 20px; }
#game-list-view .game-card-desc { display: block; color: var(--home-muted); font-size: 10px; line-height: 1.6; margin-top: 5px; }
.home-card-meta { display: block; color: var(--home-muted); font-size: 9px; line-height: 1.5; margin-top: 15px; }
.home-card-meta > span { margin: 0 4px; opacity: .7; }
#game-list-view .game-card-arrow { display: grid; place-items: center; top: auto; bottom: 69px; right: 14px; width: 25px; height: 25px; border: 1px solid var(--home-border); border-radius: 50%; color: var(--home-ink); font-size: 16px; }
#game-list-view .home-featured { position: relative; grid-column: span 2; min-height: 228px; padding: 24px; justify-content: space-between; border: 0; isolation: isolate; }
#game-list-view .game-card-coup { background: #e7ddf8; }
#game-list-view .game-card-uno { background: #fbdccf; }
.home-featured::after { content: ''; position: absolute; z-index: -1; width: 310px; height: 310px; right: -16px; top: -40px; border-radius: 50%; background: #ffffff25; box-shadow: 0 0 0 24px #ffffff14; }
.home-featured-tag { z-index: 1; max-width: 54%; color: #574374; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.game-card-uno .home-featured-tag { color: #75412e; }
#game-list-view .home-featured > .home-card-art { position: absolute; right: -8%; bottom: -5%; width: 68%; height: 108%; z-index: -1; }
#game-list-view .home-featured .game-card-info { padding: 30px 0 4px; width: 57%; }
#game-list-view .home-featured .game-card-title { color: #312045; font-size: 39px; letter-spacing: -1.5px; }
#game-list-view .home-featured .game-card-desc { color: #594971; max-width: 175px; font-size: 11px; }
#game-list-view .home-featured .home-card-meta { color: #594971; margin-top: 19px; }
#game-list-view .game-card-uno .game-card-title { color: #672e22; }
#game-list-view .game-card-uno :is(.game-card-desc, .home-card-meta) { color: #784b3b; }
#game-list-view .home-featured .game-card-arrow { top: 20px; bottom: auto; right: 20px; background: #ffffff66; border: 1px solid #ffffff88; color: #3a3042; }
.game-card-poker { --scene: #d6e8d9; }
.game-card-ludo { --scene: #f7e9ad; }
.game-card-scrabble { --scene:#ecd7b5; }
.game-card-tictactoe { --scene:#dcebcf; }
.game-card-nq { --scene: #dbe3ff; }
.game-card-commune { --scene: #e8ddf1; }
.game-card-tn { --scene: #cde7e8; }
.game-card-hearts { --scene: #f7dce0; }
.game-card-bluff { --scene: #f4dfc6; }
.game-card-blackjack { --scene: #d6e5d1; }
.home-empty { text-align: center; padding: 48px 20px; background: var(--home-soft); border-radius: 14px; }
.home-empty h3 { font-size: 20px; }
.home-empty p { font-size: 13px; color: var(--home-muted); margin: 10px 0 20px; }
.home-empty button { padding: 11px 16px; background: var(--home-accent); color: #203824; border: 0; border-radius: 8px; cursor: pointer; font-weight: 700; }
.home-how { display: grid; grid-template-columns: 1fr 2fr; gap: 36px; padding: 32px; margin-top: 48px; border: 1px solid var(--home-border); border-radius: 15px; background: var(--home-soft); scroll-margin-top: 24px; }
#game-list-view .home-how h2 { color: var(--home-ink); font-size: 24px; letter-spacing: -.8px; line-height: 1.2; margin: 9px 0 0; }
.home-how .home-eyebrow { font-size: 8px; letter-spacing: 1.1px; }
.home-how ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; align-items: center; }
.home-how li > span { display: block; margin-bottom: 13px; color: var(--home-green); font-family: Georgia, serif; font-size: 22px; font-style: italic; }
.home-how h3 { font-size: 12px; font-weight: 750; margin-bottom: 7px; }
.home-how li p { color: var(--home-muted); font-size: 10px; line-height: 1.7; max-width: 160px; }
.home-signoff { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 37px 0; font-size: 13px; color: var(--home-muted); text-align: center; }
.home-signoff em { color: var(--home-green); font-family: Georgia, serif; font-size: 15px; }
.home-signoff > span { color: var(--home-green); font-size: 20px; }
#game-list-view .site-footer { justify-content: space-between; padding: 22px 0 max(25px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--home-border); color: var(--home-muted); font-size: 10px; }
.site-footer b { margin-left: 4px; color: var(--home-ink); }
#game-list-view .site-footer a { color: var(--home-muted); margin-left: 22px; }
#game-list-view .site-footer a:hover { color: var(--home-green); }
body:has(#screen-menu.active.home-active) .name-popup-overlay { background: #0c1930a6; backdrop-filter: blur(6px); }
body:has(#screen-menu.active.home-active) .name-popup { border: 1px solid var(--home-border); border-radius: 20px; background: var(--home-surface); color: var(--home-ink); box-shadow: 0 24px 80px #07132233; }
body:has(#screen-menu.active.home-active) .name-popup h2 { color: var(--home-ink); letter-spacing: -.5px; }
body:has(#screen-menu.active.home-active) .name-popup p { color: var(--home-muted); }
body:has(#screen-menu.active.home-active) .name-popup input { min-width: 0; padding: 14px 10px; border: 1px solid var(--home-border); background: var(--home-soft); color: var(--home-ink); font-size: 16px; }
body:has(#screen-menu.active.home-active) .name-popup input::placeholder { color: var(--home-muted); }
body:has(#screen-menu.active.home-active) .name-popup .btn { margin-bottom: 0; background: var(--home-accent); color: #203824; }
body:has(#screen-menu.active.home-active) .name-popup :is(input, button):focus-visible { outline: 2px solid var(--home-green); outline-offset: 3px; }
@media (max-width: 1000px) {
  .container:has(#screen-menu.active.home-active) { padding-inline: 28px; }
  .home-nav { margin-left: 8px; gap: 18px; }
  #game-list-view .home-account { gap: 12px; }
  #game-list-view .home-online { display: none; }
  .home-hero { padding-block: 40px; }
  #game-list-view .home-hero h2 { font-size: 45px; letter-spacing: -2px; }
  .home-hero-description { font-size: 12px; }
  .home-hero-notes { gap: 9px; font-size: 9px; }
  .home-art-sticker { right: -1%; padding: 10px; }
  .home-art-sticker b { font-size: 15px; }
  .home-art-caption { font-size: 9px; }
  #game-list-view .game-list { gap: 14px; }
  .home-card-scene { height: 145px; }
  #game-list-view .game-card-info { padding-inline: 12px; }
  #game-list-view .game-card-title { font-size: 16px; }
  .home-card-meta { font-size: 8px; }
  #game-list-view .home-featured { min-height: 215px; padding: 22px; }
  .home-how { gap: 20px; padding: 25px; }
  .home-how ol { gap: 16px; }
}
@media (max-width: 760px) {
  .container:has(#screen-menu.active.home-active) { padding-inline: 20px; }
  #game-list-view .home-header { min-height: 80px; gap: 12px; }
  #game-list-view .home-brand h1 { font-size: 21px; }
  .home-nav { display: none; }
  .home-hero { grid-template-columns: 1.1fr 1fr; gap: 0; padding-block: 35px; }
  #game-list-view .home-hero h2 { font-size: 36px; letter-spacing: -1.6px; }
  .home-hero-copy > .home-eyebrow { font-size: 7px; letter-spacing: .8px; }
  .home-primary { font-size: 11px; gap: 18px; padding: 12px 16px; margin-top: 20px; }
  .home-hero-notes { gap: 10px; max-width: 230px; line-height: 1.6; }
  .home-art-caption { display: none; }
  .home-art-sticker { top: -16%; right: 0; font-size: 7px; }
  .home-art-sticker b { font-size: 13px; }
  .home-desktop-break { display: none; }
  .home-section-heading { align-items: start; }
  #game-list-view .home-section-heading h2 { font-size: 26px; }
  .home-game-count { display: none; }
  .home-discovery { flex-wrap: wrap; margin-block: 20px; gap: 15px; }
  .home-search { flex-basis: 100%; order: -1; padding-block: 12px; }
  #game-list-view .home-search input { font-size: 16px; }
  .home-filters { gap: 3px; }
  .home-filters button { padding: 9px 11px; font-size: 10px; }
  #game-list-view .game-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  #game-list-view .home-featured { grid-column: span 1; min-height: 230px; padding: 16px; }
  #game-list-view .home-featured .game-card-info { padding: 0; width: 100%; margin-top: auto; z-index: 1; }
  #game-list-view .home-featured .game-card-title { font-size: 30px; }
  #game-list-view .home-featured .game-card-desc { max-width: 75%; font-size: 10px; }
  #game-list-view .home-featured .home-card-meta { margin-top: 10px; font-size: 9px; }
  #game-list-view .home-featured > .home-card-art { width: 80%; height: 75%; right: -10%; top: -5%; }
  .home-featured-tag { font-size: 7px; max-width: 55%; }
  #game-list-view .home-featured .game-card-arrow { top: 13px; right: 13px; width: 22px; height: 22px; }
  .home-card-scene { height: 170px; }
  #game-list-view .game-card-info { padding: 16px; }
  #game-list-view .game-card-title { font-size: 18px; }
  .home-card-meta { font-size: 9px; }
  .home-how { grid-template-columns: 1fr; gap: 26px; margin-top: 32px; }
  .home-how h2 br { display: none; }
  .home-how li p { font-size: 11px; }
  .home-signoff { font-size: 11px; gap: 7px; flex-wrap: wrap; padding-block: 28px; }
  .home-signoff em { font-size: 13px; }
  #game-list-view .site-footer { justify-content: center; gap: 10px; }
}
@media (max-width: 640px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero-art { display: none; }
}
@media (max-width: 480px) {
  .container:has(#screen-menu.active.home-active) { padding-inline: 18px; }
  #game-list-view .home-brand { gap: 6px; }
  #game-list-view .home-brand img { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; }
  #game-list-view .home-brand h1 { font-size: 20px; letter-spacing: -1px; }
  #game-list-view .home-account { gap: 10px; }
  #game-list-view .home-profile-button { width: 34px; height: 34px; flex-basis: 34px; }
  .home-theme-toggle { width: 62px; height: 34px; }
  .home-theme-toggle::before { width: 26px; height: 26px; }
  .home-theme-toggle[aria-pressed="true"]::before { transform: translateX(28px); }
  .home-hero { grid-template-columns: 1fr; padding-top: 29px; padding-bottom: 27px; }
  #game-list-view .home-hero h2 { font-size: clamp(30px, 9.5vw, 40px); margin-block: 16px; letter-spacing: -1.6px; }
  .home-hero-copy > .home-eyebrow { font-size: 8px; }
  .home-hero-description { font-size: 12px; max-width: 320px; }
  .home-primary { margin-top: 19px; font-size: 12px; padding: 13px 17px; }
  .home-hero-notes { max-width: none; font-size: 9px; gap: 12px; margin-top: 20px; }
  .home-art-sticker { display: none; }
  .home-library { padding-top: 23px; }
  .home-eyebrow { font-size: 8px; letter-spacing: 1.5px; }
  #game-list-view .home-section-heading h2 { font-size: 25px; }
  .home-filters { width: 100%; gap: 3px; }
  .home-filters button { padding: 10px 8px; font-size: 9px; }
  .home-filters button > span { font-size: 8px; }
  #game-list-view .game-list { gap: 12px; }
  #game-list-view .home-featured { min-height: 225px; padding: 13px; }
  #game-list-view .home-featured > .home-card-art { top: 2%; right: -16%; width: 102%; height: 62%; }
  #game-list-view .home-featured .game-card-desc { max-width: 100%; font-size: 9px; }
  #game-list-view .home-featured .home-card-meta { font-size: 8px; }
  .home-featured-tag { font-size: 6px; max-width: 65%; letter-spacing: .6px; }
  .home-card-scene { height: 135px; }
  .home-card-badge { left: 9px; top: 9px; font-size: 6px; letter-spacing: .4px; }
  #game-list-view .game-card-info { padding: 14px 11px; }
  #game-list-view .game-card-title { font-size: 16px; }
  #game-list-view .game-card-desc { font-size: 9px; min-height: 29px; }
  .home-card-meta { font-size: 8px; margin-top: 11px; }
  #game-list-view .game-card-arrow { width: 21px; height: 21px; right: 10px; bottom: 75px; font-size: 14px; }
  .home-how { padding: 24px 20px; }
  .home-how ol { grid-template-columns: 1fr; gap: 23px; }
  .home-how li { display: flex; gap: 17px; align-items: start; }
  .home-how li > span { margin: 0; }
  .home-how h3 { font-size: 13px; margin-bottom: 4px; }
  .home-how li p { max-width: none; }
  .home-signoff { font-size: 10px; gap: 5px; }
  .home-signoff > span { display: none; }
  #game-list-view .site-footer a { display: block; margin: 9px 0 0; }
}
@media (max-width: 359px) {
  .container:has(#screen-menu.active.home-active) { padding-inline: 12px; }
  #game-list-view .home-brand h1 { font-size: 18px; }
  #game-list-view .home-account { gap: 6px; }
  .home-primary { gap: 12px; font-size: 11px; }
  .home-filters button { padding-inline: 6px; font-size: 8px; }
  .home-card-meta { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  #game-list-view *, #game-list-view *::before { transition: none !important; animation: none !important; }
  #game-list-view .game-card:hover, #game-list-view .game-card:hover .home-card-art, #game-list-view .home-primary:hover { transform: none; }
}
