/* M10: three illustrated games, with the current action close to the board. */
.new-game-choices{margin:1.4rem 0 2.2rem;padding:clamp(20px,3vw,42px);background:#f5f0e5;border:1px solid #c1c5ad;border-radius:24px}
.new-game-choices>h2{font-size:1.7rem;line-height:1.35;margin:.4rem 0 .7rem;letter-spacing:-.03em;color:#203d36}
.new-game-choices>p:not(.kicker){max-width:40rem;font-size:1rem;margin:0 0 1.1rem}
.new-game-choices .new-game-menu{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.new-game-menu button{position:relative;min-width:0;background:#fffdf8!important;border:2px solid #a0afa2!important}
.new-game-menu .new-game-cover{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;margin:0 0 .8rem}
.new-game-menu .new-game-tag{font:inherit;font-size:.75rem;font-weight:850;float:none!important;display:inline-block;width:fit-content;margin:0 22px .4rem!important;padding:.12rem .4rem;background:#e6ece0;border-radius:6px;color:#204c3c}
.new-game-menu button strong{font-size:1.1rem;line-height:1.5}
.familiar-games-title{font-size:1.25rem;margin:1.4rem 0 .8rem}
.new-playroom-active{min-width:0;max-width:100%}
.new-playroom-active #play-content{min-width:0;max-width:100%}
.new-playroom-active .game-heading{align-items:start;margin-bottom:1rem}
.new-game-load-error{border:2px solid #4d6a60;border-radius:14px;padding:24px}
.new-game-load-error button{min-height:64px;padding:14px 22px;font:inherit}
@media(max-width:1000px){.new-game-choices .new-game-menu{grid-template-columns:1fr}.new-game-menu button{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);padding:0!important;align-items:start;column-gap:0}.new-game-menu .new-game-cover{grid-row:1/5;grid-column:1;aspect-ratio:1;height:100%;object-fit:cover;margin:0}.new-game-menu .new-game-tag{grid-column:2;margin:16px 18px 4px!important}.new-game-menu button strong{grid-column:2;padding-bottom:8px}.new-game-menu button small{grid-column:2;padding-bottom:18px;margin-top:0}}
@media(max-width:600px){
 .new-game-choices{padding:18px 14px;margin-block:1rem 1.4rem;border-radius:18px}
 .new-game-choices>h2{font-size:1.4rem}
 .new-game-choices .new-game-menu{gap:18px}
 .new-game-menu button{display:flex!important;flex-direction:column}
 .new-game-menu .new-game-cover{height:auto;aspect-ratio:3/2}
 .new-game-menu .new-game-tag{margin:0 18px 8px!important}
 body.site-v25 .new-playroom-active{padding-inline:0!important}
 body.site-v25 .new-playroom-active .game-heading{display:block}
 body.site-v25 .new-playroom-active .game-heading>button{max-width:none;width:100%;margin-top:16px;padding:12px 18px!important;font-size:1rem}
}
@media(prefers-reduced-motion:reduce){.new-game-menu button{transition:none!important}}

/* One visible game title; the module retains its accessible section name. */
.new-playroom-active #game-label,.new-playroom-active .cw-heading>h3,.new-playroom-active .cw-heading>.cw-kicker,.new-playroom-active .wb-intro-copy>h3,.new-playroom-active .wb-eyebrow,.new-playroom-active .wp-intro>h3{display:none}
.new-playroom-active .game-heading{padding-bottom:.6rem;border-bottom:1px solid #a0afa2}
.new-playroom-active .game-heading h2{margin-bottom:0}

/* New game actions must not race a browser smooth-scroll or scroll anchor. */
html:has(.new-playroom-active){scroll-behavior:auto!important}
.new-playroom-active{overflow-anchor:none}

.new-game-feedback{border-top:1px solid #a0afa2;margin-top:1.2rem;padding-top:1rem}.new-game-feedback a{display:inline-flex;align-items:center;min-height:56px;line-height:1.6;font-weight:700;overflow-wrap:break-word}

/* Persistent help and exit actions belong to every playroom game. */
body.page-games .game-heading{flex-wrap:wrap;align-items:center}
body.page-games .game-heading>div:first-child{min-width:0;flex:1 1 16rem}
body.page-games .game-heading-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch;max-width:100%;flex:0 1 auto}
body.page-games .game-heading-actions button{margin:0!important;min-width:0;min-height:64px!important;max-width:100%;font-size:1rem!important;line-height:1.4!important;padding:12px 18px!important}
@media(max-width:760px){body.page-games .game-heading-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:10px;margin:12px 0 18px}body.page-games .game-heading-actions button{padding:10px 8px!important}body.page-games .game-heading-actions #game-help-button{width:100%}}
