/* Play-area refinement: states and board geometry are preserved. */
body.pm-game-page {--pm-ink:#293843;--pm-muted:#637580;--pm-line:#e5eaed}
body.pm-game-page .pm-actionbar {width:fit-content!important;max-width:calc(100% - 40px);margin-left:max(32px,calc((100% - 1180px)/2))!important;background:transparent!important;border:0!important;padding:0!important;gap:8px!important}
body.pm-game-page button:focus-visible,body.pm-game-page select:focus-visible,body.pm-game-page input:focus-visible {outline:3px solid #edaa54!important;outline-offset:3px}
body.pm-game-page :is(.board-wrap,.board-shell,.board-area,.memory-table,.match-table,.block-table,.bubble-table,.treat-table,.game-panel,.play-surface,.table-surface){box-shadow:none!important;background:#f7f9fa!important;border:1px solid #e6ebee!important;border-radius:14px!important}
body.pm-game-page :is(.board-wrap,.board-shell)::before{background:none!important;box-shadow:none!important}
body.pm-game-page :is(.pill,.chip,.hint-chip,.table-tip,.tip-box,.keyboard-strip){background:#f1f5f6!important;color:#596d78!important;box-shadow:none!important;text-shadow:none!important;border-radius:8px!important}
body.pm-game-page .pm-settings-rail :is(p,li,.instructions,.tip-box){font-weight:400!important;line-height:1.65!important;color:#637580!important}
body.pm-game-page :is(.soft-btn,.secondary-btn,.ghost-btn,.btn-soft){background:white!important;color:#405763!important;border:1px solid #dce4e8!important;box-shadow:none!important}
body.pm-game-page :is(.primary-btn,.btn-primary){background:#ee7664!important;color:white!important;box-shadow:none!important;border-radius:9px!important}
body.pm-game-page .pm-gamebar .stat{background:#f7f9fa!important;border-radius:8px!important;box-shadow:none!important}
body.pm-game-page .pm-gamebar .stat strong{font-size:18px!important;color:#293843!important}
body.pm-game-page .pm-gamebar .stat span{color:#637580!important;letter-spacing:.06em!important}
body.pm-game-page .share-panel :is(button,a){color:#596d78!important}
body.pm-game-page .pm-main-panel .riddle-card{border-color:#e5eaed!important;background:#fff!important}
body.pm-game-page .pm-main-panel :is(.riddle-question,.question-text){color:#293843!important;line-height:1.5!important}
body.pm-game-page[data-pm-game="MemoryMatch"] .board-wrap{min-height:0!important;padding:22px!important;background:#fff!important;border:0!important}
body.pm-game-page[data-pm-game="MemoryMatch"] .memory-board{gap:12px!important;width:min(560px,100%)!important;margin:0 auto!important}
body.pm-game-page[data-pm-game="MemoryMatch"] .memory-card{background:#f0ecfa!important;border:1px solid #e1d9f0!important;border-radius:14px!important;box-shadow:none!important}
body.pm-game-page[data-pm-game="MemoryMatch"] .memory-card::before{background:none!important}
body.pm-game-page[data-pm-game="MemoryMatch"] .card-mark{color:#9482b5!important;font-size:38px!important;font-weight:600!important;text-shadow:none!important}
body.pm-game-page[data-pm-game="MemoryMatch"] .memory-card.flipped{background:#fff!important;border-color:#bcaad8!important}
body.pm-game-page[data-pm-game="MemoryMatch"] .memory-card.matched{background:#edf6ef!important;border-color:#b6d6c0!important;box-shadow:none!important}
body.pm-game-page[data-pm-game="MemoryMatch"] .memory-card.matched .card-icon{background:#edf6ef!important}
body.pm-game-page[data-pm-game="MemoryMatch"] .board-tip{color:#637580!important;text-shadow:none!important}
body.pm-game-page[data-pm-game="MemoryMatch"] .table-top-row{justify-content:center!important}
body.pm-game-page[data-pm-game="MemoryMatch"] .table-top-row .pill{font-size:11px!important;font-weight:500!important}
body.pm-game-page[data-pm-game="MemoryMatch"] .pm-settings-rail .progress-fill{background:#93b6a0!important}
body.pm-game-page[data-pm-game="MemoryMatch"] .pm-settings-rail #tipBtn{background:#fff4d7!important;color:#735b2c!important;box-shadow:none!important}
body.pm-game-page[data-pm-game="word-search"] .word-cell{background:white!important;border-color:#dfe5e8!important;color:#344c5b!important}
body.pm-game-page[data-pm-game="word-search"] .word-cell:is(.selected,.found,.answer){background:#ffedbb!important;border-color:#ebc875!important;color:#654b26!important}
body.pm-game-page :is(.number-tile,.tile,.cookie-card,.playing-card){box-shadow:none!important;text-shadow:none!important}
body.pm-game-page[data-pm-game="classic-chess"] #gameCanvas,body.pm-game-page[data-pm-game="Chess"] #gameCanvas{background:white!important;border:1px solid #e5eaed!important;box-shadow:none!important;border-radius:14px!important;padding:0!important}
body.pm-game-page[data-pm-game="classic-chess"] .pt-native-controls,body.pm-game-page[data-pm-game="Chess"] .pt-native-controls{display:none!important}
@media(max-width:560px){body.pm-game-page .pm-actionbar{margin-left:20px!important}body.pm-game-page[data-pm-game="MemoryMatch"] .board-wrap{padding:12px!important}body.pm-game-page[data-pm-game="MemoryMatch"] .memory-board{gap:7px!important}body.pm-game-page[data-pm-game="MemoryMatch"] .memory-card{border-radius:9px!important}body.pm-game-page[data-pm-game="MemoryMatch"] .card-mark{font-size:28px!important}}
