/* Site-wide readability: Pap's Playroom */
:root{-webkit-text-size-adjust:100%;text-size-adjust:100%;--pap-readable-font:18px}
body{font-size:18px;line-height:1.46}
:where(main,header,nav,section,article,aside,footer,.panel,.game-card){min-width:0}
:where(p,li,blockquote,dd,dt,figcaption,label,legend,summary,th,td){line-height:1.48;overflow-wrap:break-word}
:where(button,a,select,input,textarea){touch-action:manipulation}
:where(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important;min-height:42px}
:where(.header nav,.topbar nav,.header-actions,.game-buttons,.play-tools,.lobby-actions,.result-actions,.filters,.control-tools,.round-actions,.welcome-actions){min-width:0;flex-wrap:wrap}
:where(.help-text,.instructions,.game-tip,.keyboard-tip,.keyboard-hint,.helper-note,.parent-notes,.learning-note,.lobby-note,.result-note,.game-description,.game-card p,.privacy-section p,.privacy-panel p,.modal p,.dialog p){font-size:18px!important;line-height:1.5!important}
:where(.nav-link,.header nav a,.header nav button,.topbar nav a,.topbar nav button,.site-footer a,.back-link,.text-button,.menu-field,.menu-field select,.game-type-filters button,.clear-game-filters,.game-card button.card-play,.progress-tabs [role=tab]){font-size:16px!important;line-height:1.3!important}
:where(.game-meta,.game-buddy,.game-age-label,.game-category-label,.game-type-label,.rating-caption,.game-change-badge,.game-changed,.collection-count,.rank-look,.rank-card-status,.rank-card-level,.rank-target,.badge-status,.item-price,.shop-tab small,.shop-item .item-desc,.player-row small,.gender-choice,.score-context,.score-comparison-grid span,.score-actions button,.score-leaders li,.progress-toolbar p,.shelf-filters button,.shelf-heading a,.area-message,.area-help,.area-selection select,.area-song p,.area-song small){font-size:16px!important;line-height:1.35!important;overflow-wrap:break-word}
:where(.game-card,.rank-card,.badge-card,.shop-item,.opponent,.collection-card,.menu-field){min-width:0}
:where(.game-card p,.game-card .game-desc,.welcome-copy p,.page-heading p,.section-top p,.lobby-copy p,.setup p,.how-steps p){font-size:18px!important;line-height:1.48!important}
:where(.brand small,.eyebrow,.prompt-kicker,.kicker,.game-change-meta,.playroom-strip){font-size:16px!important;line-height:1.3!important}
:where(.mini-stat,.score-player small,.hud-stat small,.selected-stats span,.card-back span,.pair-owner,.tower-tier,.piece-state,.piece-name,.compact-table-header .target-chip,.table-top .target-chip){font-size:14px!important;line-height:1.25!important}
:where(.stats-table,.score-leaders,.leaderboard,.parent-category-table,table){font-size:16px!important}
:where(.stat label,.bar label,.group small,.notice,.helper,.message,.round-help,.game-tip,.bottom p,.path-title span){font-size:16px!important}
body:has(#stones) :where(.stat label,.controls .helper,.settings,.tip,.message,.jump span,.path-title span){font-size:16px!important}
body:has(#lanes) :where(.bar label,.group small,.helper,.notice,.summary,.buttons .action,.yard h2,.panel p){font-size:16px!important}
body:has(#lanes) :where(.bus .label,.lane .label,.group .monkeys){font-size:16px!important}
:where(a,button,select,input,textarea):focus-visible{outline:3px solid #e89b2e;outline-offset:3px}
@media(max-width:650px){
 body{font-size:18px}
 :where(.header,.topbar,header nav,.header nav,.topbar nav,.header-actions,.game-top,.game-buttons,.play-tools,.level-tools){flex-wrap:wrap;row-gap:8px}
 :where(.game-card p,.welcome-copy p,.intro,.lobby-copy p,.panel p,.helper p,.round-help,.notice,.game-tip,.privacy-section p){font-size:18px!important;line-height:1.5!important}
 :where(.nav-link,.profile-chip,.game-type-filters button,.game-card .card-play,.game-card button.card-play,.menu-field select,.filters select,.area-controls button,.control-tools button){font-size:16px!important}
 :where(.game-meta,.game-card-body,.score-player,.round-pill,.hud-stat,.game-change-meta){min-width:0}
 :where(.compact-table-header .turn-marker,.compact-table-header .score-player small,.table-top .score-player small,.card-back span,.pair-owner,.piece-name,.piece-state){font-size:14px!important}
}

/* Mobile game cards must use the full available width once descriptions are readable. */
@media(max-width:650px){
 .games-grid{grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
 .games-grid .game-card{width:100%!important;min-width:0!important;max-width:none!important;height:auto!important}
 .games-grid .game-card .game-card-body{padding:16px 18px 20px!important}
 .games-grid .game-card p{min-height:0!important;margin-bottom:12px!important;line-height:1.42!important}
 .games-grid .game-card h3{font-size:clamp(22px,5.5vw,27px)!important;line-height:1.2!important}
 .games-grid .game-card button.card-play{min-height:48px!important;font-size:17px!important}
 .games-grid .game-card .game-meta{flex-wrap:wrap!important;row-gap:8px!important}
 .game-browser .game-browser-top,.game-browser .game-browser-bottom{flex-wrap:wrap!important}
}


/* Account, privacy, and adult-control screens */
:where(.pa-eyebrow,.pa-tabs button,.pa-card label,.pa-check,.pa-text-button,.pa-small,.pa-footnote,.pa-divider,.pa-save-status,.pa-delete summary,.pa-delete button,.pa-footer,.pa-guest,.pa-play-link,#pa-message){font-size:16px!important;line-height:1.4!important}
:where(.pa-benefits p,.pa-delete p,.pa-card p){font-size:18px!important;line-height:1.5!important}
