/* Structure only: one navigation model, one reading column, quiet supporting areas.
   Document rules are scoped to app pages; game boards never inherit a sidebar. */
:root,:host{--app-rail:224px;--app-width:1120px}
.home-browse,.home-library,.hero-spark,.recommend-description-short{display:none}
:host{display:block;width:100%;flex-shrink:0}
.skip-link{position:fixed;top:8px;left:12px;z-index:100;padding:12px 18px;border-radius:12px;background:#fff;color:#0866ff;box-shadow:0 4px 20px #1b376333;transform:translateY(-150%)}
.skip-link:focus{transform:translateY(0)}
body.app-layout{display:flex;flex-direction:column;min-height:100dvh;background:#fff}
body.app-layout>.page-shell,body.app-layout>.sub-shell{width:100%;max-width:var(--app-width);min-height:0;margin:0 auto;background:#fff;box-shadow:none;flex:1}
body.home-page.app-layout>.page-shell{display:block}
body.home-page.app-layout .page-content{max-width:none;padding:36px;min-width:0}
body.category-page.app-layout>.catalog-layout{display:block;padding:36px;max-width:1040px}
body.app-layout>.sub-shell{max-width:1040px;padding:36px}
body.app-layout :is(.hero-card,.category-section,.catalog-panel,.profile-empty,.profile-local-note){animation:none}
.home-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:32px;align-items:start}
.home-main,.home-aside{min-width:0}
.home-aside{display:grid;gap:24px}
/* Home: welcome → choose a direction → see three suggestions. */
body.home-page.app-layout .hero-composite{height:auto;min-height:224px;aspect-ratio:auto;border-radius:20px;box-shadow:0 3px 0 #dcecf6}
body.home-page.app-layout .hero-composite .hero-copy{width:55%;padding:26px}
body.home-page.app-layout .hero-composite .hero-copy h1{font-size:var(--font-36);line-height:var(--line-44)}
body.home-page.app-layout .hero-composite .hero-copy>p{margin:8px 0 20px;font-size:var(--font-14);line-height:var(--line-22)}
body.home-page.app-layout .hero-composite .hero-copy .hero-eyebrow{margin:0 0 8px;color:#527a92;font-size:var(--font-12);line-height:var(--line-18)}
body.home-page.app-layout .hero-composite .hero-copy .hero-note{display:none}
body.home-page.app-layout .hero-composite .hero-art{width:40%}
body.home-page.app-layout .category-section{margin-top:32px}
body.home-page.app-layout .home-section-guide{margin-bottom:16px;display:flex;align-items:baseline;gap:12px}
body.home-page.app-layout .home-section-guide h2{font-size:var(--font-20);line-height:var(--line-28)}
body.home-page.app-layout .home-section-guide p{display:none}
body.home-page.app-layout .category-grid{gap:var(--qp-card-gap);grid-template-columns:repeat(2,minmax(0,1fr))}
body.home-page.app-layout .scene-card{grid-template-columns:max-content max-content;justify-content:center;gap:12px;min-height:116px;padding:var(--qp-card-padding);border-radius:var(--qp-card-radius);box-shadow:var(--qp-card-shadow)}
body.home-page.app-layout .scene-card .category-art{width:56px;height:60px;background:none}
body.home-page.app-layout .scene-card .category-art img{transform:none}
body.home-page.app-layout .category-card h3{font-size:var(--font-18);line-height:var(--line-26)}
body.home-page.app-layout .category-card p{font-size:var(--font-14);line-height:var(--line-22)}
body.home-page.app-layout .category-card .go{width:28px;height:28px;border:0;font-size:var(--font-24);line-height:var(--line-32)}
body.home-page.app-layout .recommend-box{margin-top:36px;padding:0}
body.home-page.app-layout .section-title{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
body.home-page.app-layout .section-title h2{font-size:var(--font-20);line-height:var(--line-28)}
body.home-page.app-layout .recommend-box .section-description{display:none}
body.home-page.app-layout .title-star{font-size:var(--font-24);line-height:var(--line-32);-webkit-text-stroke:0;text-shadow:none}
body.home-page.app-layout .recommend-row{display:grid;grid-template-columns:1fr;gap:var(--qp-card-gap)}
body.home-page.app-layout .recommend-card,body.home-page.app-layout .recommend-card:first-child{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:var(--qp-card-gap);padding:var(--qp-card-padding);min-height:108px;border-radius:var(--qp-card-radius);text-align:left;box-shadow:var(--qp-card-shadow)}
body.home-page.app-layout .recommend-card .recommend-art,body.home-page.app-layout .recommend-card:first-child .recommend-art{display:grid;width:64px;height:64px;aspect-ratio:1;border-radius:14px}
body.home-page.app-layout .recommend-art img{width:100%;height:100%}
body.home-page.app-layout .recommend-card h3{margin:2px 0;font-size:var(--font-18);line-height:var(--line-26)}
body.home-page.app-layout .recommend-card p{margin:0;min-height:0;font-size:var(--font-14);line-height:var(--line-22);color:var(--qp-muted)}
body.home-page.app-layout .recommend-kind{margin:0;font-size:var(--font-12);line-height:var(--line-18)}
body.home-page.app-layout .recommend-card .play-link,body.home-page.app-layout .recommend-card:first-child .play-link{grid-column:auto;min-height:44px;margin:0;padding:6px 12px;font-size:var(--font-14);line-height:var(--line-22);background:transparent;border:0;box-shadow:none;white-space:nowrap}
body.home-page.app-layout .quick-box,.home-tip{padding:var(--qp-card-padding);border:2px solid var(--qp-line);border-radius:var(--qp-card-radius);background:#fff;box-shadow:none}
body.home-page.app-layout .quick-box .section-title{display:block;margin:0 0 12px}
body.home-page.app-layout .quick-box .section-title h2{font-size:var(--font-20);line-height:var(--line-28);gap:8px}
body.home-page.app-layout .quick-box .section-title img{width:24px;height:24px}
body.home-page.app-layout .quick-box .section-description{margin:8px 0 0;font-size:var(--font-12);line-height:var(--line-18)}
body.home-page.app-layout .quick-grid{grid-template-columns:1fr;gap:8px}
body.home-page.app-layout .quick-card[aria-disabled]{grid-template-columns:40px minmax(0,1fr);gap:12px;min-height:88px;padding:12px 8px;border:0;border-radius:12px;background:#fff;box-shadow:none}
body.home-page.app-layout .quick-card+.quick-card{border-top:0}
body.home-page.app-layout .quick-card>.asset{width:40px;height:48px}
body.home-page.app-layout .quick-card .go{display:none}
body.home-page.app-layout .quick-title{font-size:var(--font-16);line-height:var(--line-24);white-space:normal;line-height:var(--line-24)}
body.home-page.app-layout .quick-title .status-label{display:block;width:max-content;margin:4px 0 0;font-size:var(--font-12);line-height:var(--line-18)}
body.home-page.app-layout .quick-description{display:none}
.home-tip>img{width:64px;height:64px;margin-bottom:12px;object-fit:contain}
.home-tip h2{margin:0 0 10px;font-size:var(--font-20);line-height:var(--line-28)}
.home-tip p{margin:0;color:var(--qp-muted);font-size:var(--font-14);line-height:var(--line-22)}
.home-tip a{display:flex;align-items:center;gap:12px;width:max-content;max-width:100%;min-height:44px;margin-top:12px;color:var(--qp-primary);font-size:var(--font-14);line-height:var(--line-22)}
/* Catalog choices are local to the listing, not a second app navigation. */
body.category-page.app-layout .catalog-panel{margin:0;padding:0}
body.category-page.app-layout .catalog-heading{gap:20px;align-items:center}
body.category-page.app-layout .category-identity{display:grid;grid-template-columns:40px minmax(0,1fr);gap:4px 12px;align-items:center}
body.category-page.app-layout .category-identity>img{grid-row:1/3;width:40px;height:44px}
body.category-page.app-layout .category-identity h1{font-size:var(--font-32);line-height:var(--line-40);white-space:normal}
body.category-page.app-layout .category-identity p{display:block;grid-column:2;margin:0;font-size:var(--font-12);line-height:var(--line-18)}
body.category-page.app-layout .catalog-tools{gap:8px}
body.category-page.app-layout .catalog-tools .search-panel{width:200px;min-height:44px}
body.category-page.app-layout .catalog-tools select{height:44px;min-width:110px}
body.category-page.app-layout .catalog-sidebar{display:block;padding:20px 0 16px;margin-top:16px;border:0;border-bottom:1px solid var(--qp-line);background:none;border-radius:0}
.catalog-categories{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.catalog-categories .catalog-category{display:flex;flex-direction:column;justify-content:center;gap:6px;min-height:80px;padding:10px 6px;border:2px solid transparent;white-space:nowrap;font-size:var(--font-14);line-height:var(--line-22);box-shadow:none}
.catalog-categories .catalog-category img{width:28px;height:28px}
.catalog-categories .sidebar-chevron{display:none}
.category-scroll-hint{display:none}
body.category-page.app-layout .filter-bar{margin:18px 0 14px;gap:8px}
body.category-page.app-layout .filter-bar button{min-width:64px;min-height:44px;height:44px;font-size:var(--font-14);line-height:var(--line-22);padding-inline:18px}
body.category-page.app-layout .game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--qp-card-gap)}
body.category-page.app-layout .game-card{grid-template-columns:64px minmax(0,1fr);gap:var(--qp-card-gap);min-height:132px;padding:var(--qp-card-padding);border-radius:var(--qp-card-radius);text-align:left;align-items:center;box-shadow:var(--qp-card-shadow)}
body.category-page.app-layout .game-icon{width:64px;height:72px;margin:0}
body.category-page.app-layout .game-name{font-size:var(--font-18);line-height:var(--line-26)}
body.category-page.app-layout .game-description{min-height:0;margin:4px 0 10px;font-size:var(--font-14);line-height:var(--line-22)}
body.category-page.app-layout .game-card-bottom{justify-content:space-between;flex-wrap:wrap}
body.category-page.app-layout .game-entry{min-height:24px;padding:0;border:0;background:none;box-shadow:none;font-size:var(--font-12);line-height:var(--line-18)}
body.category-page.app-layout .game-kind{font-size:var(--font-12);line-height:var(--line-18)}
/* Detail: read the rules on the left, one next action on the right. */
.detail-body{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:32px;align-items:start;margin-top:28px}
body.game-detail-page.app-layout .detail-summary{gap:24px;margin:24px 0}
body.game-detail-page.app-layout .detail-art{width:112px;height:112px;border-radius:24px;box-shadow:none}
body.game-detail-page.app-layout .detail-art img{width:100px;height:100px}
body.game-detail-page.app-layout .detail-intro h1{font-size:var(--font-32);line-height:var(--line-40)}
body.game-detail-page.app-layout .detail-information{display:grid;grid-template-columns:1fr;gap:24px;padding:0;border:0}
body.game-detail-page.app-layout .detail-action{position:sticky;top:32px;display:flex;flex-direction:column;align-items:stretch;gap:16px;margin:0;padding:24px 16px;border:2px solid var(--qp-line);border-radius:var(--qp-card-radius);background:var(--qp-surface)}
body.game-detail-page.app-layout .detail-action-copy{font-size:var(--font-14);line-height:var(--line-22);text-align:left}
body.game-detail-page.app-layout .detail-action-copy strong{display:block;margin:0 0 6px;font-size:var(--font-18);line-height:var(--line-26)}
body.game-detail-page.app-layout .detail-action .code-start{width:100%;padding-inline:12px;gap:10px;font-size:var(--font-16);line-height:var(--line-24)}
body.game-detail-page.app-layout .related-panel{margin-top:36px;padding-top:24px;border-top:2px solid var(--qp-line)}
body.game-detail-page.app-layout .related-heading h2{font-size:var(--font-20);line-height:var(--line-28)}
body.game-detail-page.app-layout .detail-rules li{padding-left:38px;font-size:var(--font-16);line-height:var(--line-24)}
/* Profile keeps the real empty state; it does not invent levels or achievements. */
.profile-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;align-items:start;gap:24px}
body.profile-page.app-layout .sub-head{max-width:none;margin:0 0 28px;padding:0;border:0}
body.profile-page.app-layout .sub-title h1{font-size:var(--font-32);line-height:var(--line-40)}
body.profile-page.app-layout .sub-title p{font-size:var(--font-14);line-height:var(--line-22)}
body.profile-page.app-layout .profile-empty{width:100%;max-width:none;margin:0;padding:44px 24px}
body.profile-page.app-layout .profile-local-note{max-width:none;display:block;margin:0;padding:22px 18px;background:#f8fafc}
body.profile-page.app-layout .local-note-icon{margin-bottom:12px}
body.profile-page.app-layout .profile-local-note p{font-size:var(--font-14);line-height:var(--line-22)}
/* Shared chrome lives in Shadow DOM, but uses the same structural stylesheet. */
.brand-logo{position:static;display:block;width:190px;height:44px;overflow:visible;flex:none;padding:0;text-align:left;cursor:pointer}
.brand-logo img{position:static;display:block;width:100%;height:100%;max-width:100%;object-fit:contain}
.mobile-motto{display:none;color:var(--qp-muted);font-size:var(--font-12);line-height:var(--line-18)}
:host(.app-layout) .home-head{padding:0;box-shadow:none;clip-path:none}
:host(.app-layout) .home-footer{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;max-width:var(--app-width);min-height:0;padding:24px 36px;border:0;background:#fff;box-shadow:none;clip-path:none;color:var(--qp-muted);font-size:var(--font-12);line-height:var(--line-18)}
:host(.app-layout) .home-footer small{width:auto;font-size:var(--font-12);line-height:var(--line-18)}
:host(.app-layout) .icp-filing{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 8px;color:inherit;text-decoration:underline;text-underline-offset:3px}
:host(.app-layout) .icp-filing:focus-visible{outline:3px solid var(--qp-primary);outline-offset:2px;border-radius:6px}
:host(.app-layout) .bottom-nav{display:grid;backdrop-filter:none;background:#fff}
:host(.app-layout) .nav-item{min-height:56px;gap:14px;border:2px solid transparent;border-radius:14px;font-size:var(--font-16);line-height:var(--line-24)}
:host(.app-layout) .nav-item.active{border-color:#b7dcff;background:#edf7ff;color:var(--qp-primary)}
:host(.app-layout) .nav-icon{width:30px;height:30px;background:none;box-shadow:none}
:host(.app-layout) .nav-status{margin-left:auto;color:var(--qp-muted);font-size:var(--font-12);line-height:var(--line-18)}
.rail-note{display:none}
:host(.focus-layout) .home-head{justify-content:center;height:64px;max-width:none;padding:10px 20px;border-bottom:1px solid var(--qp-line)}
:host(.focus-layout) .bottom-nav,:host(.focus-layout) .home-footer,:host(.focus-layout) .rail-note{display:none}
:host(site-footer.focus-layout){display:none}
body.focus-layout{padding-bottom:0}
@media(min-width:1001px){
  body.app-layout{padding-left:var(--app-rail)}
  :host(site-header.app-layout){height:0}
  :host(.app-layout) .home-head{position:fixed;inset:0 auto 0 0;z-index:21;display:block;width:var(--app-rail);height:100dvh;max-width:none;margin:0;padding:30px 16px;border:0;border-right:2px solid var(--qp-line);background:#fff}
  :host(.app-layout) .bottom-nav{position:fixed;z-index:22;top:126px;bottom:auto;left:14px;right:auto;width:calc(var(--app-rail) - 28px);grid-template-columns:1fr;gap:10px;margin:0;padding:0;border:0}
  :host(.app-layout) .nav-item{display:flex;flex-direction:row;justify-content:flex-start;padding:10px 14px}
  :host(.app-layout) .rail-note{position:fixed;left:28px;bottom:24px;z-index:22;display:block;width:174px;margin:0;color:#5a7088;font-size:var(--font-14);line-height:var(--line-22)}
  :host(.app-layout) .rail-note span{color:var(--qp-muted);font-size:var(--font-12);line-height:var(--line-18)}
}

@media(min-width:1280px){
  body.home-page.app-layout .home-layout{grid-template-columns:minmax(0,1fr) 248px;gap:28px}
  .home-aside{position:sticky;top:36px}
}
@media(min-width:1001px) and (max-width:1279px){
  :root,:host{--app-rail:208px}
  .brand-logo{width:176px;height:42px}
  .home-aside{grid-template-columns:1fr 1fr}
  body.home-page.app-layout .page-content,body.category-page.app-layout>.catalog-layout,body.app-layout>.sub-shell{padding:28px}
  body.category-page.app-layout .catalog-tools .search-panel{width:172px}
  .detail-body,.profile-layout{grid-template-columns:minmax(0,1fr) 216px;gap:24px}
}
@media(max-width:1000px){
  body.app-layout{padding-left:0;padding-bottom:0}
  body.home-page.app-layout .page-content,body.category-page.app-layout>.catalog-layout,body.app-layout>.sub-shell{padding:24px 20px calc(var(--app-nav-space,100px) + var(--home-safe-bottom,env(safe-area-inset-bottom,0px)))}
  :host(.app-layout) .home-head{height:64px;max-width:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;border-bottom:1px solid var(--qp-line)}
  .brand-logo{width:176px;height:40px}
  .mobile-motto{display:block}
  :host(.app-layout) .home-footer{display:flex;justify-content:center;min-height:60px;padding:8px 12px}
  :host(.app-layout) .home-footer>p,:host(.app-layout) .home-footer>small{display:none}
  :host(.app-layout) .bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:22;width:100%;height:auto;min-height:calc(76px + var(--home-safe-bottom,env(safe-area-inset-bottom,0px)));max-height:none;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:4px;padding:6px 8px calc(6px + var(--home-safe-bottom,env(safe-area-inset-bottom,0px)));border-top:2px solid var(--qp-line)}
  :host(.app-layout) .nav-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;min-height:60px;padding:2px 0;font-size:var(--font-14);line-height:var(--line-22)}
  :host(.app-layout) .nav-icon{width:28px;height:28px;flex:none}
  :host(.app-layout) .nav-status{display:none}
  :host(.app-layout) .nav-item:not(.active) .nav-copy{visibility:visible}
  .home-aside{grid-template-columns:1fr 1fr}
  .detail-body,.profile-layout{grid-template-columns:1fr}
  body.game-detail-page.app-layout .detail-action{position:static}
  body.game-detail-page.app-layout .detail-action .code-start{max-width:360px;align-self:flex-start}
  body.profile-page.app-layout .profile-local-note{display:flex;gap:12px}
  body.profile-page.app-layout .local-note-icon{margin:0;flex:none}
  body.category-page.app-layout .category-identity h1{font-size:var(--font-28);line-height:var(--line-36)}
  .catalog-categories{display:flex;overflow-x:auto;padding:2px 0 6px;scrollbar-width:none}
  .catalog-categories .catalog-category{min-width:98px;min-height:76px;flex:none;padding:10px}
  .category-scroll-hint{display:block;margin:6px 0 0;color:var(--qp-muted);font-size:var(--font-12);line-height:var(--line-18);text-align:right}
  body.category-page.app-layout .catalog-sidebar{margin-top:8px;padding:12px 0}
}
@media(max-width:650px){
  body.home-page.app-layout .page-content,body.category-page.app-layout>.catalog-layout,body.app-layout>.sub-shell{padding:20px 16px calc(var(--app-nav-space,100px) + var(--home-safe-bottom,env(safe-area-inset-bottom,0px)))}
  :host(.app-layout) .home-head{padding-inline:16px}
  .mobile-motto{font-size:var(--font-12);line-height:var(--line-18)}
  body.home-page.app-layout .hero-composite{height:218px}
  body.home-page.app-layout .hero-composite .hero-copy{width:82%;padding:24px 18px}
  body.home-page.app-layout .hero-composite .hero-copy h1{font-size:var(--font-32);line-height:var(--line-40)}
  body.home-page.app-layout .hero-composite .hero-copy>p{font-size:var(--font-14);line-height:var(--line-22);margin:8px 0 20px}
  body.home-page.app-layout .hero-composite .hero-copy .hero-eyebrow{font-size:var(--font-12);line-height:var(--line-18);margin-bottom:8px}
  body.home-page.app-layout .category-section{margin-top:28px}
  body.home-page.app-layout .home-section-guide h2{font-size:var(--font-20);line-height:var(--line-28)}
  body.home-page.app-layout .category-grid{gap:12px}
  body.home-page.app-layout .scene-card{grid-template-columns:32px minmax(0,1fr);gap:8px;min-height:104px;padding:12px 10px}
  body.home-page.app-layout .scene-card .category-art{width:32px;height:44px}
  body.home-page.app-layout .category-card h3{font-size:var(--font-16);line-height:var(--line-24)}
  body.home-page.app-layout .category-card p{font-size:var(--font-12);line-height:var(--line-18)}
  body.home-page.app-layout .category-card .go{width:20px;height:20px;font-size:var(--font-20);line-height:var(--line-28)}
  body.home-page.app-layout .recommend-card,body.home-page.app-layout .recommend-card:first-child{grid-template-columns:48px minmax(0,1fr) auto;gap:12px;padding:16px 12px;min-height:100px}
  body.home-page.app-layout .recommend-card .recommend-art,body.home-page.app-layout .recommend-card:first-child .recommend-art{width:52px;height:58px}
  body.home-page.app-layout .recommend-card h3{font-size:var(--font-18);line-height:var(--line-26)}
  body.home-page.app-layout .recommend-card p{font-size:var(--font-12);line-height:var(--line-18)}
  body.home-page.app-layout .recommend-card .play-link,body.home-page.app-layout .recommend-card:first-child .play-link{padding:0 2px;font-size:var(--font-12);line-height:var(--line-18);gap:2px}
  .home-aside{grid-template-columns:1fr;gap:20px}
  .home-tip{display:none}
  body.home-page.app-layout .quick-box{padding:var(--qp-card-padding)}
  body.category-page.app-layout .catalog-heading{gap:0;flex-wrap:wrap}
  body.category-page.app-layout .category-identity{grid-template-columns:28px minmax(0,1fr);gap:6px;max-width:calc(100% - 164px)}
  body.category-page.app-layout .category-identity>img{width:28px;height:36px;grid-row:1}
  body.category-page.app-layout .category-identity h1{font-size:var(--font-24);line-height:var(--line-32)}
  body.category-page.app-layout .category-identity p{display:none}
  body.category-page.app-layout .catalog-tools{display:contents}
  body.category-page.app-layout .catalog-tools .search-panel{width:100%;margin-top:12px}
  body.category-page.app-layout .catalog-tools select{max-width:110px;margin-left:6px;font-size:var(--font-16);line-height:var(--line-24);padding-inline:8px}
  body.category-page.app-layout .search-toggle{width:44px;height:44px;min-width:44px;min-height:44px}
  body.category-page.app-layout .game-grid{grid-template-columns:1fr;gap:12px}
  body.category-page.app-layout .game-card{grid-template-columns:64px minmax(0,1fr);min-height:124px;gap:var(--qp-card-gap);padding:var(--qp-card-padding)}
  body.category-page.app-layout .game-name{font-size:var(--font-18);line-height:var(--line-26)}
  body.game-detail-page.app-layout>.catalog-layout{padding-bottom:calc(196px + env(safe-area-inset-bottom))}
  body.game-detail-page.app-layout .detail-summary{gap:14px;margin:20px 0}
  body.game-detail-page.app-layout .detail-art{width:76px;height:84px;border-radius:18px}
  body.game-detail-page.app-layout .detail-art img{width:68px;height:76px}
  body.game-detail-page.app-layout .detail-intro h1{font-size:var(--font-28);line-height:var(--line-36)}
  .detail-body{display:block;margin-top:24px}
  body.game-detail-page.app-layout .detail-action{position:fixed;left:0;right:0;top:auto;bottom:calc(74px + env(safe-area-inset-bottom));z-index:21;display:grid;gap:6px;padding:10px 16px 14px;border:0;border-top:2px solid var(--qp-line);border-radius:0;background:#fff}
  body.game-detail-page.app-layout .detail-action-copy{font-size:var(--font-12);line-height:var(--line-18);text-align:center}
  body.game-detail-page.app-layout .detail-action-copy strong{display:inline;margin:0 8px 0 0;font-size:var(--font-12);line-height:var(--line-18)}
  body.game-detail-page.app-layout .detail-action .code-start{max-width:560px;justify-self:center;min-height:48px}
  body.game-detail-page.app-layout .related-panel{margin-top:28px}
  body.profile-page.app-layout .sub-title h1{font-size:var(--font-28);line-height:var(--line-36)}
  body.profile-page.app-layout .profile-empty{padding:32px 20px}
}
@media(max-width:360px){
  .brand-logo{width:158px;height:36px}
  .mobile-motto{font-size:var(--font-12);line-height:var(--line-18)}
  body.home-page.app-layout .category-grid{gap:10px}
  body.home-page.app-layout .scene-card{grid-template-columns:28px minmax(0,1fr);gap:4px;padding-inline:8px}
  body.home-page.app-layout .scene-card .category-art{width:28px;height:40px}
  body.home-page.app-layout .category-card h3{font-size:var(--font-16);line-height:var(--line-24)}
  body.home-page.app-layout .category-card p{font-size:var(--font-12);line-height:var(--line-18)}
  body.home-page.app-layout .category-card .go{width:16px;height:16px}
  body.home-page.app-layout .recommend-card,body.home-page.app-layout .recommend-card:first-child{grid-template-columns:40px minmax(0,1fr) auto;gap:8px}
  body.home-page.app-layout .recommend-card .recommend-art,body.home-page.app-layout .recommend-card:first-child .recommend-art{width:40px;height:48px;grid-row:auto}
  body.home-page.app-layout .recommend-card .play-link,body.home-page.app-layout .recommend-card:first-child .play-link{font-size:var(--font-12);line-height:var(--line-18)}
  body.category-page.app-layout .category-identity h1{font-size:var(--font-20);line-height:var(--line-28)}
  body.game-detail-page.app-layout .detail-intro h1{font-size:var(--font-24);line-height:var(--line-32)}
}
@media(min-width:1001px) and (max-height:560px){:host(.app-layout) .rail-note{display:none}:host(.app-layout) .bottom-nav{top:100px;gap:4px}}

/* Day/night home composition. Main navigation always uses the shared shell. */
.category-description-short{display:none}
.brand-lockup{display:flex;align-items:center;gap:6px;min-height:44px;flex-wrap:wrap}
.brand-face{display:block;flex:none;overflow:hidden;width:40px;height:40px}
.home-page .brand-face img{width:100%;height:100%;object-fit:cover;object-position:7% center}
.brand-wordmark{color:var(--text-primary);font-size:var(--font-24);line-height:var(--line-32);font-weight:700}
.brand-tag{display:none}
@media(min-width:1001px){.brand-logo{height:auto;min-height:44px;max-width:100%}.brand-lockup{white-space:normal;overflow-wrap:anywhere}.brand-wordmark{min-width:0;flex:1}}
body.home-page.app-layout .hero-composite .hero-art{width:46%;inset:0 0 0 auto}
body.home-page.app-layout .hero-composite .hero-art img{width:217.4%;max-width:none;height:100%;inset:0 0 auto auto;object-fit:cover;object-position:center}
body.home-page.app-layout .hero-composite .hero-art:after{display:none}
body.home-page.app-layout .hero-composite .hero-copy h1 span{display:inline;margin:0;font-size:inherit}
.recent-box{margin-top:24px}
.recent-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.recent-card{display:flex;flex-direction:column;align-items:center;min-width:0;padding:10px 8px;border-radius:16px;text-align:center}
.recent-art{width:100%;height:auto;aspect-ratio:1.6}
.recent-art img{width:100%;height:100%;object-fit:contain}
.recent-card h3{margin:5px 0 0;font-size:var(--font-14);line-height:var(--line-22);white-space:nowrap}
.recent-note{margin:12px 0 0;text-align:center;font-size:var(--font-12);line-height:var(--line-18)}
@media(max-width:1000px){
  html.home-document{scroll-padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
  body.home-page{--home-gutter:clamp(12px,3.35vw,28px);--home-grid-gap:clamp(6px,1.5vw,12px)}
  body.home-page.app-layout .page-content{padding:0 var(--home-gutter) calc(var(--app-nav-space,100px) + var(--home-safe-bottom,env(safe-area-inset-bottom,0px)))}
  body.home-page.app-layout .home-layout{display:block}
  :host(.home-reference) .home-head{height:clamp(64px,16vw,110px);gap:clamp(6px,1.7vw,14px);padding:8px clamp(12px,3.35vw,28px)}
  :host(.home-reference) .brand-logo{width:46%;max-width:400px;height:44px}
  :host(.home-reference) .brand-logo>img{display:none}
  :host(.home-reference) .brand-lockup{display:flex;align-items:center;gap:3px;height:44px;white-space:nowrap}
  :host(.home-reference) .brand-face{display:block;flex:none;overflow:hidden;width:clamp(28px,8.5vw,60px);height:clamp(28px,8.5vw,60px)}
  :host(.home-reference) .brand-face img{width:100%;height:100%;object-fit:cover;object-position:7% center}
  :host(.home-reference) .brand-wordmark{font-size:var(--font-18);line-height:var(--line-26);font-weight:700}
  :host(.home-reference) .brand-tag{display:flex;align-items:center;justify-content:center;min-height:22px;padding:2px 5px;font-size:var(--font-12);line-height:var(--line-18)}
  :host(.home-reference) .home-browse{display:flex;align-items:center;gap:8px;flex:1;min-width:0;min-height:44px;padding:0 12px}
  :host(.home-reference) .home-browse svg{width:clamp(16px,5vw,32px);height:clamp(16px,5vw,32px);flex:none}
  :host(.home-reference) .home-browse span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--font-12);line-height:var(--line-18)}
  :host(.home-reference) .home-library{display:grid;place-items:center;flex:none;width:44px;min-height:44px}
  :host(.home-reference) .home-library svg{width:clamp(23px,6vw,38px);height:clamp(23px,6vw,38px)}
  body.home-page.app-layout .hero-composite{width:100%;max-width:100%;min-width:0;height:auto;aspect-ratio:878/369;min-height:clamp(148px,44vw,340px);border-radius:clamp(16px,3.8vw,30px)}
  body.home-page.app-layout .hero-composite .hero-art img{object-fit:fill}
  body.home-page.app-layout .hero-composite .hero-copy{width:58%;padding:clamp(12px,3.8vw,28px) 0 12px clamp(18px,7.2vw,64px)}
  body.home-page.app-layout .hero-composite .hero-copy h1{font-size:var(--font-28);line-height:var(--line-36);white-space:nowrap}
  body.home-page.app-layout .hero-composite .hero-copy .hero-eyebrow{display:flex;align-items:center;gap:5px;margin:0 0 4px;font-size:var(--font-12);line-height:var(--line-18);white-space:nowrap}
  body.home-page.app-layout .hero-spark{display:inline-block;font-size:var(--font-18);line-height:var(--line-26)}
  body.home-page.app-layout .hero-composite .hero-copy .hero-description{margin:4px 0 7px;font-size:var(--font-12);line-height:var(--line-18);white-space:nowrap}
  body.home-page.app-layout .hero-composite .primary-pill{min-width:0;min-height:44px;padding:4px clamp(18px,5.2vw,40px);gap:14px;font-size:var(--font-16);line-height:var(--line-24)}
  body.home-page.app-layout .hero-composite .primary-pill>span{font-size:var(--font-20);line-height:var(--line-28)}
  /* Crop the existing mascot artwork; keep the action and copy as real text. */
  body.home-page.app-layout .hero-composite{aspect-ratio:auto;min-height:200px;height:auto}
  body.home-page.app-layout .hero-composite .hero-art{inset:0 0 0 auto;width:45%;height:100%;overflow:hidden}
  body.home-page.app-layout .hero-composite .hero-art img{width:222.23%;max-width:none;height:auto;inset:50% 0 auto auto;transform:translateY(-50%);object-fit:contain;object-position:right center}
  body.home-page.app-layout .hero-composite .hero-copy{position:relative;inset:auto;width:55%;height:auto;padding:20px 8px 20px 16px}
  body.home-page.app-layout .hero-composite .hero-copy .hero-eyebrow{display:none}
  body.home-page.app-layout .hero-composite .hero-copy .hero-description{margin:8px 0 12px}
  body.home-page.app-layout .hero-composite .primary-pill{position:relative;inset:auto;width:auto;min-height:48px;padding:8px 12px;gap:8px;outline-offset:4px}
  body.home-page.app-layout .category-section{margin-top:8px}
  body.home-page.app-layout .home-section-guide{display:none}
  body.home-page.app-layout .category-grid{display:flex;flex-wrap:wrap;gap:var(--home-grid-gap)}
  body.home-page.app-layout .scene-card{flex:1 1 calc((100% - 2 * var(--home-grid-gap))/3);min-width:min-content;grid-template-columns:max-content max-content;gap:3px;min-height:clamp(60px,16.5vw,128px);padding:8px 5px;border-radius:clamp(12px,2.6vw,22px)}
  body.home-page.app-layout .scene-card .category-art{width:clamp(28px,10vw,76px);height:clamp(32px,11vw,82px)}
  body.home-page.app-layout .scene-card .category-art img{max-width:100%}
  body.home-page.app-layout .category-card h3{margin:0 0 4px;font-size:var(--font-12);line-height:var(--line-18);white-space:nowrap}
  body.home-page.app-layout .category-card .category-description-full{display:none}
  body.home-page.app-layout .category-card .category-description-short{display:inline;margin:0;font-size:var(--font-12);line-height:var(--line-18);white-space:nowrap}
  body.home-page.app-layout .category-card .go{align-self:end;width:9px;height:18px;margin-bottom:5px;font-size:var(--font-18);line-height:var(--line-26)}
  body.home-page.app-layout .recommend-box{margin-top:10px}
  body.home-page.app-layout .section-title{flex-wrap:nowrap;gap:6px;min-height:36px;margin-bottom:5px}
  body.home-page.app-layout .section-title h2{display:flex;align-items:center;gap:5px;font-size:var(--font-20);line-height:var(--line-28);white-space:nowrap}
  body.home-page.app-layout .section-title h2>img{width:clamp(22px,6vw,42px);height:clamp(24px,6.5vw,46px);object-fit:contain}
  body.home-page.app-layout .section-action{gap:4px;min-height:44px;font-size:var(--font-12);line-height:var(--line-18);padding:0;white-space:nowrap}
  body.home-page.app-layout .section-action img{width:clamp(15px,3.8vw,27px);height:clamp(15px,3.8vw,27px)}
  body.home-page.app-layout .recommend-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--home-grid-gap)}
  body.home-page.app-layout .recommend-card,body.home-page.app-layout .recommend-card:first-child{position:relative;display:flex;flex-direction:column;align-items:stretch;grid-column:auto;gap:0;min-height:0;padding:10px 9px 11px;text-align:left;border-radius:clamp(12px,2.8vw,24px)}
  body.home-page.app-layout .recommend-card .recommend-art,body.home-page.app-layout .recommend-card:first-child .recommend-art{display:grid;grid-row:auto;flex:none;width:100%;height:auto;max-height:none;aspect-ratio:1.12;margin:0 0 5px}
  body.home-page.app-layout .recommend-card .recommend-art img{width:100%;height:100%;max-height:none}
  body.home-page.app-layout .recommend-kind{display:none}
  body.home-page.app-layout .recommend-card h3{margin:0 0 3px;font-size:var(--font-12);line-height:var(--line-18);white-space:nowrap}
  body.home-page.app-layout .recommend-card p{margin:0;padding:0 15px 0 0;font-size:var(--font-12);line-height:var(--line-18);white-space:nowrap}
  body.home-page.app-layout .recommend-copy{margin-top:auto}
  body.home-page.app-layout .recommend-card .play-link,body.home-page.app-layout .recommend-card:first-child .play-link{position:absolute;right:8px;bottom:10px;display:grid;place-items:center;grid-column:auto;width:clamp(23px,6.2vw,44px);min-height:0;height:clamp(23px,6.2vw,44px);margin:0;padding:0}
  body.home-page.app-layout .recommend-card .play-label{display:none}
  body.home-page.app-layout .recommend-card .play-link>span{font-size:var(--font-24);line-height:var(--line-32)}
  body.home-page.app-layout .recent-box{margin-top:9px}
  body.home-page.app-layout .recent-grid{gap:var(--home-grid-gap)}
  body.home-page.app-layout .recent-note{font-size:var(--font-12);line-height:var(--line-18)}
  body.home-page.app-layout .recent-card{padding:7px 5px 9px;border-radius:clamp(10px,2.4vw,20px)}
  body.home-page.app-layout .recent-art{aspect-ratio:1.65}
  body.home-page.app-layout .recent-card h3{font-size:var(--font-12);line-height:var(--line-18);margin-top:3px}
  body.home-page.app-layout .home-aside{display:none}
  body.home-page.app-layout :is(.recommend-card,.category-card,.recent-card){scroll-margin-bottom:calc(var(--app-nav-space,100px) + var(--home-safe-bottom,env(safe-area-inset-bottom,0px)))}
}
@media(max-width:360px){
  :host(.home-reference) .brand-logo{width:47%}
  :host(.home-reference) .brand-lockup{gap:2px}
  :host(.home-reference) .brand-tag{padding-inline:3px}
  :host(.home-reference) .home-head{gap:4px}
  :host(.home-reference) .home-browse{gap:5px;padding-inline:8px}
  body.home-page.app-layout .scene-card{grid-template-columns:max-content max-content;gap:2px;padding-inline:4px}
  body.home-page.app-layout .recommend-card,body.home-page.app-layout .recommend-card:first-child{padding-inline:7px}
  body.home-page.app-layout .recommend-card h3{font-size:var(--font-12);line-height:var(--line-18)}
  body.home-page.app-layout .recommend-card p{font-size:var(--font-12);line-height:var(--line-18);letter-spacing:0px}
}

/* Home copy: quiet section labels and an arrow immediately after each caption. */
body.home-page.app-layout .category-description{font-size:var(--font-14);line-height:var(--line-22)}
body.home-page.app-layout .category-description .category-description-full{display:inline}
body.home-page.app-layout .category-card .category-description .go{position:static;display:inline-flex;vertical-align:-.1em;align-items:center;justify-content:center;width:auto;height:1em;margin:0 0 0 4px;border:0;background:none;font-size:var(--font-20);line-height:var(--line-28);line-height:inherit}
body.home-page.app-layout #recent-games .section-title h2{font-size:var(--font-24);line-height:var(--line-32)}
body.home-page.app-layout #recent-games .section-action{font-size:var(--font-16);line-height:var(--line-24)}
body.home-page.app-layout #recent-games .section-action>span{font-size:inherit}
@media(max-width:1000px){
  body.home-page.app-layout .category-description{font-size:var(--font-12);line-height:var(--line-18)}
  body.home-page.app-layout .category-description .category-description-full{display:none}
}

/* Local play metadata stays outside the artwork and can wrap at large text sizes. */
.game-heat{display:inline-flex;align-self:center;align-items:center;max-width:100%;margin:6px 0 0;padding:2px 6px;border-radius:8px;white-space:normal;overflow-wrap:anywhere;pointer-events:none}
.game-heat-value{min-width:0;overflow-wrap:anywhere}

/* Named game tiles: identify the game before entering its rules page. */
body.home-page.app-layout #recommendations .section-title{align-items:center;flex-wrap:wrap;margin-bottom:14px}
body.home-page.app-layout #recommendations-title{font-size:var(--font-24);line-height:var(--line-32)}
body.home-page.app-layout #recommendations-title>img{width:54px;height:62px}
body.home-page.app-layout #refresh-recommendations{font-size:var(--font-16);line-height:var(--line-24)}
body.home-page.app-layout #refresh-recommendations img{width:clamp(18px,2.2vw,28px);height:clamp(18px,2.2vw,28px)}
body.home-page.app-layout #recommendations .recommend-row{grid-template-columns:repeat(3,minmax(0,1fr))}
body.home-page.app-layout :is(#recommendations .recommend-row,#recent-games .recent-grid){gap:clamp(10px,2vw,24px);padding-bottom:6px}
body.home-page.app-layout :is(#recommendations .recommend-card,#recent-games .recent-card){display:flex;flex-direction:column;align-items:stretch;gap:0;min-height:44px;padding:0;border-radius:0;text-align:center}
body.home-page.app-layout :is(#recommendations .recommend-art,#recent-games .recent-art){display:grid;width:100%;height:auto;min-width:0;max-height:none;aspect-ratio:1.06;margin:0;flex:none;overflow:hidden}
body.home-page.app-layout :is(#recommendations .recommend-art,#recent-games .recent-art) img{width:80%;height:80%;max-width:100%;max-height:none;padding:0;place-self:center;object-fit:contain}
body.home-page.app-layout :is(#recommendations .recommend-copy,#recent-games .recent-card h3){display:block;margin:10px 0 0;white-space:normal;overflow-wrap:anywhere}
body.home-page.app-layout #recommendations .recommend-copy h3{margin:0;white-space:normal}
.game-heat[hidden]{display:none!important}
body.home-page.app-layout #recommendations :is(.recommend-kind,.recommend-card p,.play-link){display:none}
@media(max-width:1000px){
  body.home-page.app-layout #recommendations-title>img{width:clamp(22px,6vw,42px);height:clamp(24px,6.5vw,46px)}
  body.home-page.app-layout :is(#recommendations .recommend-row,#recent-games .recent-grid){gap:clamp(8px,3.1vw,24px)}
}

/* Six category lists follow the three-column recommendation gallery.
   Keep names below the artwork; detail-page related lists retain their layout. */
body.category-page.app-layout.catalog-gallery #game-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px clamp(10px,2vw,24px);align-items:start;padding-bottom:6px}
body.category-page.app-layout.catalog-gallery #game-grid .game-card{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-width:0;min-height:44px;padding:0;text-align:center;border-radius:0}
body.category-page.app-layout.catalog-gallery #game-grid .game-icon{display:grid;place-items:center;width:100%;height:auto;min-width:0;max-height:none;aspect-ratio:1.06;flex:none;margin:0;padding:0;overflow:hidden;transition:box-shadow .15s,border-color .15s}
body.category-page.app-layout.catalog-gallery #game-grid .game-icon img{width:80%!important;height:80%!important;max-width:100%;max-height:none;padding:0;place-self:center;object-fit:contain}
body.category-page.app-layout.catalog-gallery #game-grid .game-name{margin:0;padding:0;min-height:var(--type-line-card)}
body.category-page.app-layout.catalog-gallery #game-grid :is(.game-description,.game-card-bottom){display:none}
@media(max-width:1000px){
  body.category-page.app-layout.catalog-gallery #game-grid{column-gap:clamp(8px,3.1vw,24px)}
}
@media(prefers-reduced-motion:reduce){
  body.category-page.app-layout.catalog-gallery #game-grid .game-icon{transition:none}
}

/* Game introductions: a quiet, full-height launch screen (2026-10-21). */
body.game-overview-page.focus-layout{margin:0;padding:0;min-height:100dvh}
body.game-overview-page.focus-layout[data-site-page]>.catalog-layout{display:block;width:100%;max-width:800px;min-height:100dvh;margin:0 auto;padding:0 16px;box-shadow:none}
.game-overview-page .category-content,.game-overview-page #detail-content{min-width:0;width:100%}
.game-overview{display:flex;flex-direction:column;min-height:100dvh;padding-top:env(safe-area-inset-top,0px)}
.overview-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:12px;min-height:72px;padding:8px 0}
.overview-header h1{margin:0;text-align:center;overflow-wrap:anywhere}
.overview-close,.overview-help,.game-help-close{display:grid;place-items:center;width:44px;min-width:44px;min-height:44px;padding:4px}
.overview-header svg{width:var(--game-header-icon-size);height:var(--game-header-icon-size)}
.overview-main{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;padding:40px 0 72px;text-align:center}
.overview-art{width:144px;height:144px;object-fit:contain;flex:none}
.overview-tagline{max-width:600px;margin:40px 0 24px;overflow-wrap:anywhere}
.overview-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:560px;margin:0}
.overview-facts>div{display:flex;flex-direction:column;justify-content:center;gap:8px;min-width:0;padding:12px 8px}
.overview-facts dt,.overview-facts dd{margin:0;overflow-wrap:anywhere}
.overview-action{padding:16px 0 calc(40px + env(safe-area-inset-bottom,0px))}
.game-overview-page .overview-action .code-start{display:flex;width:100%;min-height:56px;padding:12px 24px;white-space:normal}
.game-help-open{overflow:hidden}
.game-help-dialog{width:calc(100% - 32px);max-width:560px;max-height:calc(100dvh - 48px);margin:auto;padding:24px}
.game-help-dialog[open]{display:flex;flex-direction:column;gap:20px}
.game-help-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
.game-help-heading h2{margin:0;min-width:0;overflow-wrap:anywhere}
.game-help-close{flex:none}
.game-help-close svg{width:28px;height:28px}
.game-help-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 4px 4px}
.game-help-content>p{margin:0 0 24px}
.game-help-content h3{margin:0 0 16px}
.game-help-content .detail-progress{margin-top:24px}
.game-help-done{width:100%;min-height:48px;padding:10px 20px;flex:none}
@media(min-width:768px){
  .overview-header{min-height:88px}
  .overview-main{padding-top:48px}
  .overview-art{width:160px;height:160px}
  .overview-tagline{margin-top:48px}
}
@media(max-width:360px){.game-help-dialog{padding:16px}.game-help-dialog[open]{gap:16px}}
@media(max-height:600px) and (min-width:600px){
  .overview-main{padding:24px 0;display:grid;grid-template-columns:144px minmax(0,1fr);gap:16px 32px;text-align:left}
  .overview-art{grid-row:1/3;width:120px;height:120px;justify-self:center}
  .overview-tagline{margin:0;align-self:end}
  .overview-facts{align-self:start;text-align:center}
  .overview-action{padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}
}

/* Community navigation remains one rail/footer, with natural label wrapping. */
:host(.app-layout) .nav-icon svg{width:100%;height:100%}
:host(.app-layout) .nav-copy{white-space:normal;overflow-wrap:anywhere;text-align:center}

/* Local actions, not another navigation row. */
body.category-page.app-layout .catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.category-switch{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:2px solid var(--category-border);border-radius:12px;background:var(--category-surface);color:var(--category-ink);font:inherit;font-size:var(--font-14);line-height:var(--line-22);font-weight:600;cursor:pointer}
.category-switch:focus-visible{outline:3px solid var(--category-accent);outline-offset:4px}
.overview-howto{width:100%;max-width:560px;margin:24px 0 0;padding:16px;text-align:left;border:1px solid var(--qp-line);border-radius:16px;overflow-wrap:anywhere}
.overview-howto h3{margin:0 0 8px;font-size:var(--font-16);line-height:var(--line-24);font-weight:600}
.overview-howto p{margin:0;color:var(--text-secondary);font-size:var(--font-14);line-height:var(--line-22)}
.overview-howto p+p{margin-top:8px}
@media(max-height:600px) and (min-width:600px){.overview-howto{grid-column:2}}
@media(max-width:767px){
  .game-overview{padding-bottom:var(--overview-dock-space,120px)}
  .game-overview-page .overview-action{position:fixed;z-index:10;bottom:0;left:16px;right:16px;padding:12px 0 calc(20px + env(safe-area-inset-bottom,0px));background:var(--site-page,var(--qp-surface))}
}

body.home-page.app-layout :is(#recommendations,#recent-games) .section-title{flex-wrap:wrap}
body.home-page.app-layout :is(#recommendations,#recent-games) .section-title h2{flex:1 1 180px;min-width:0;white-space:normal}
body.home-page.app-layout :is(#recommendations,#recent-games) .section-action{max-width:100%;white-space:normal}

@media(max-width:1000px){body.home-page.app-layout .hero-description>span{display:block}}

/* Juice pass: immediate play, optional rules and truthful long-term milestones. */
body.home-page.app-layout #recommendations{margin-top:24px}
.recommend-choice{min-width:0;display:flex;flex-direction:column;align-items:stretch}
body.home-page.app-layout #recommendations .recommend-card{flex:1}
body.home-page.app-layout #recommendations .recommend-card .play-link{position:static;display:flex;justify-content:center;align-items:center;width:auto;height:auto;min-height:24px;margin-top:4px;padding:0;color:var(--category-ink);font-size:var(--font-12);line-height:var(--line-18)}
body.home-page.app-layout #recommendations .play-link>.play-label{display:inline;font-size:inherit;line-height:inherit}
body.home-page.app-layout #recommendations .play-link>span[aria-hidden]{display:none}
.recommend-rules{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:6px 2px;color:var(--qp-muted);font-size:var(--font-12);line-height:var(--line-18);text-decoration:underline;text-underline-offset:3px;border-radius:10px}
.home-growth{margin-top:24px;padding:20px 0;border-top:1px solid var(--qp-line)}
.home-growth h2{font-size:var(--font-20);line-height:var(--line-28)}
.home-growth>p{color:var(--qp-muted);font-size:var(--font-14);line-height:var(--line-22);margin:0 0 16px}
.home-growth .growth-note{font-size:var(--font-12);line-height:var(--line-18);margin:12px 0 0}
.growth-path{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
.growth-path li{position:relative;display:flex;flex-direction:column;gap:4px;align-items:center;min-width:0;text-align:center;font-size:var(--font-14);line-height:var(--line-22);color:var(--qp-muted);overflow-wrap:anywhere}
.growth-node{display:grid;place-items:center;width:44px;height:44px;margin-bottom:4px;border:2px solid var(--qp-line);border-radius:16px;background:var(--qp-surface);font-weight:600;color:var(--qp-ink)}
.growth-path li:not(:last-child):before{content:"";position:absolute;top:22px;left:calc(50% + 28px);width:calc(100% - 44px);height:2px;background:var(--qp-line)}
.growth-path .is-earned .growth-node{background:var(--category-action);color:var(--category-on-action);border-color:var(--category-border)}
.growth-path [aria-current=step] .growth-node{border-color:var(--qp-muted);border-style:dashed}
.growth-state{font-size:var(--font-12);line-height:var(--line-18)}
.home-extras-trigger{display:none}
.home-feedback{padding:16px;border:1px solid var(--qp-line);border-radius:var(--qp-card-radius);background:var(--qp-surface)}
.home-feedback h2{margin:0 0 12px;font-size:var(--font-18);line-height:var(--line-26)}
.home-feedback label{display:flex;align-items:center;gap:8px;min-height:44px;font-size:var(--font-16);line-height:var(--line-24)}
.home-feedback input{flex:none;width:22px;height:22px;accent-color:var(--category-action)}
.home-feedback p{margin:8px 0 0;color:var(--qp-muted);font-size:var(--font-12);line-height:var(--line-18)}
html.home-extras-open{overflow:hidden;scrollbar-gutter:stable}
.home-extras-dialog{box-sizing:border-box;position:fixed;inset:auto 0 0;width:100%;max-width:640px;max-height:calc(100dvh - 16px);margin:0 auto;padding:20px 20px calc(20px + env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;border:1px solid var(--qp-line);border-radius:24px 24px 0 0;background:var(--page);color:var(--qp-ink);font-family:var(--font-ui)}
.home-extras-dialog::backdrop{background:color-mix(in srgb,var(--qp-ink) 45%,transparent)}
.home-extras-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.home-extras-dialog>header h2{margin:0;font-size:var(--font-24);line-height:var(--line-32)}
.home-extras-close{flex:none;display:grid;place-items:center;width:44px;height:44px;padding:10px;border:0;border-radius:12px;background:transparent;color:inherit;box-shadow:none;cursor:pointer}
.home-extras-dialog .home-aside{position:static;display:grid!important;grid-template-columns:1fr;gap:16px}
.home-extras-dialog .quick-box{padding:16px;border:1px solid var(--qp-line);border-radius:18px}
.home-extras-dialog .quick-card{width:100%;min-height:88px}
.home-extras-dialog .home-tip{background:var(--qp-surface)}
.home-page :is(.home-growth,.home-extras-dialog,.recommend-choice,.home-extras-trigger) :is(a,button,input):focus-visible,.home-extras-trigger:focus-visible{outline:3px solid var(--qp-muted);outline-offset:3px}
@media(max-width:1000px){
  .home-extras-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;width:100%;padding:12px 16px;margin:8px 0 0;border:1px solid var(--qp-line);border-radius:14px;background:var(--qp-surface);color:var(--qp-ink);font:inherit;cursor:pointer}
  .home-growth{margin-top:20px}
  .growth-path{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .growth-path li:before{display:none}
}
@media(prefers-reduced-motion:no-preference){.home-extras-dialog[open]{animation:ux-sheet-in 220ms var(--motion-ease,ease-out)}}
.home-extras-dialog{background:var(--qp-juice-panel)}
.home-feedback,.home-extras-dialog .home-tip,.home-extras-trigger,.growth-node{background:var(--qp-juice-raised)}
.home-extras-dialog .home-tip{display:block}
.growth-node{width:auto;min-width:44px;min-height:44px;height:auto;padding:4px 8px}
.home-extras-trigger[hidden]{display:none!important}
body.home-page.app-layout .home-growth .section-title{flex-wrap:wrap}
body.home-page.app-layout .home-growth .section-title h2{flex:1 1 180px;min-width:0;max-width:100%;white-space:normal}
body.home-page.app-layout .home-growth .section-action{max-width:100%;white-space:normal}
