/* Approved Peppy Thinkers layout. Gameplay coordinates and tile rules stay with the engines. */
:root{--pm-ink:#243342;--pm-muted:#657381;--pm-line:#e8ebed;--pm-coral:#ee735d;--pm-yellow:#fff6df;--pm-blue:#edf5fa;--pm-mint:#edf6ef;--pt-ink:var(--pm-ink);--pt-muted:var(--pm-muted);--pt-paper:#fff;--pt-line:var(--pm-line);--pt-green:var(--pm-coral);--pt-shadow:none;--pt-radius:14px}
body.peppy-unified{font-family:'Avenir Next',Avenir,'Segoe UI',system-ui,sans-serif!important;background:#fff!important;color:var(--pm-ink)!important;--ink:var(--pm-ink);--muted:var(--pm-muted);--purple:#6d8192;--purple-dark:#51667b;--shadow:none;--shadow-soft:none;--line:var(--pm-line);--border:var(--pm-line);--text:var(--pm-ink)}
.pm-brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:21px;font-weight:800;letter-spacing:-.8px;color:var(--pm-ink)!important;white-space:nowrap}.pm-brand svg{width:36px;height:36px;flex-shrink:0}.pm-brand em{font-style:normal;color:#6d8694}.pt-header{border-bottom:1px solid var(--pm-line)!important;background:#fff!important}.pt-header-row{max-width:1244px;min-height:91px;padding:18px 32px;gap:26px}.pt-nav{gap:26px}.pt-nav a{font-weight:600;color:#68717b!important;background:none!important;position:relative;border-radius:0;padding:10px 0;font-size:13px}.pt-nav a[aria-current=page]{color:var(--pm-ink)!important}.pt-nav a[aria-current=page]:after{content:'';height:3px;border-radius:3px;position:absolute;bottom:0;left:0;right:0;background:var(--pm-coral)}.pt-footer{background:#fff!important;color:#97a0a9!important;border-top:1px solid var(--pm-line)!important;padding:25px 32px!important;margin-top:40px!important}.pt-footer-row{max-width:1180px;font-size:11px}.pt-footer a{font-size:11px;color:#88949f}.pt-footer nav{gap:20px}
.pm-page-heading{width:min(1180px,calc(100% - 64px));margin:24px auto 23px;position:relative;z-index:4}.pm-breadcrumb{display:flex;align-items:center;gap:10px;color:#94a0a9;font-size:11px;margin-bottom:15px}.pm-breadcrumb a:hover{color:var(--pm-coral)}.pm-title-row{display:flex;justify-content:space-between;align-items:center;gap:20px}.pm-title-row h1{font-size:29px;letter-spacing:-1px;line-height:1.25;margin:0!important;font-weight:750}.pm-title-row p{color:var(--pm-muted);font-size:13px;line-height:1.6;margin:8px 0 0;max-width:700px}.pm-switch{font-size:12px;min-width:165px;position:relative}.pm-switch summary{list-style:none;border:1px solid var(--pm-line);border-radius:9px;padding:10px 13px;cursor:pointer;display:flex;justify-content:space-between;gap:15px;white-space:nowrap}.pm-switch summary::-webkit-details-marker{display:none}.pm-switch[open] summary{border-color:#cdd8df}.pm-switch nav{position:absolute;right:0;top:48px;width:235px;max-height:350px;overflow:auto;box-shadow:0 8px 25px #24334217;background:#fff;border:1px solid var(--pm-line);border-radius:12px;padding:8px;z-index:30;display:grid}.pm-switch a{padding:9px 12px;font-size:12px;border-radius:7px}.pm-switch a:hover{background:#f3f6f8}
/* Board-first page structure, with a compact settings rail on desktop. */
body.pm-game-page :is(.app-shell,.page-shell,.game-shell,.page-wrap,.logic-page-shell){max-width:1180px!important;width:calc(100% - 64px)!important;margin:0 auto!important;padding:0!important;background:none;box-shadow:none}
body.pm-game-page .pm-play-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 285px!important;gap:24px!important;align-items:start!important;width:min(1180px,calc(100% - 64px))!important;max-width:1180px!important;margin:0 auto!important;padding:0!important}
body.pm-game-page :is(.app-shell,.page-shell,.game-shell,.page-wrap,.logic-page-shell) .pm-play-layout{width:100%!important}
.pm-main-panel{min-width:0!important;grid-column:1!important;order:0}.pm-settings-rail{grid-column:2!important;min-width:0!important;order:1;position:static!important;top:auto!important;width:100%!important;max-width:none!important;border-radius:12px!important;background:#fafbfc!important;border:1px solid var(--pm-line)!important;padding:19px!important;box-shadow:none!important;display:flex!important;flex-direction:column!important;gap:16px!important;backdrop-filter:none!important}
body.pm-game-page :is(.word-play-section,.crossmath-play-section,.sudoku-play-section,.maze-play-section,.cryptogram-play-section,.fallen-play-section,.brain-play-section){padding:0!important;background:none!important}
body.pm-game-page :is(.pm-main-panel,.pm-settings-rail) :is(.puzzle-card,.riddle-card,.game-card,.word-capture-card,.sudoku-card,.thinklogic-share-card,.panel-card){border-radius:12px!important;box-shadow:none!important;border-color:var(--pm-line)!important;background:#fff!important;backdrop-filter:none!important}
body.pm-game-page :is(.pm-settings-rail) :is(.panel-card,.difficulty-panel,.mode-panel,.how-to-card){padding:0!important;border:0!important;background:transparent!important;border-radius:0!important;margin:0!important;box-shadow:none!important}
body.pm-game-page .pm-settings-rail>h2{font-size:15px;letter-spacing:-.25px;margin:0 0 2px}.pm-settings-rail h3,.pm-settings-rail .panel-card h2{font-size:14px!important;letter-spacing:-.15px!important;margin:0 0 12px!important}.pm-settings-rail label{font-size:12px!important;color:#627180;font-weight:600}.pm-settings-rail :is(.control-copy,.subtitle,p,li){font-size:12px!important;line-height:1.7!important;color:#75818c}.pm-settings-rail :is(input,select,textarea){font-size:13px!important;padding:9px 11px}.pm-settings-rail textarea{min-height:105px;resize:vertical}.pm-settings-rail :is(.action-row,.sudoku-controls,.maze-controls,.button-stack){gap:9px!important}.pm-settings-rail :is(.status-row,.mini-label,.stat-row){font-size:12px}.pm-help{border-top:1px solid var(--pm-line)!important;padding-top:15px!important;font-size:12px}.pm-help summary{font-size:12px;font-weight:650;color:#586c7b;cursor:pointer}.pm-help ul,.pm-help p{margin-block:12px}.pm-secondary-heading{display:none!important}
body.pm-game-page .pm-gamebar{display:flex!important;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:13px 17px!important;border-radius:12px!important;background:#fff!important;border:1px solid var(--pm-line)!important;box-shadow:none!important;margin:0 0 18px!important;min-height:60px!important}.pm-gamebar:empty{display:none!important}.pm-gamebar .top-stats{gap:10px}.pm-gamebar :is(.stat,.score-box){border:0!important;background:#f5f7f9!important;border-radius:8px!important;box-shadow:none!important;padding:7px 12px!important;min-width:65px}.pm-gamebar .stat span,.pm-gamebar .score-box span{font-size:10px!important;color:#92a0ab}.pm-gamebar .stat strong,.pm-gamebar .score-box strong{font-size:18px!important;color:var(--pm-ink)}.pm-gamebar .header-actions{gap:8px}.pm-gamebar .brand-block:empty{display:none}.pm-gamebar .game-title{display:none}
body.pm-game-page :is(.primary-btn,.btn-primary,button.primary,.primary-button,.action-button:not(.secondary)){background:var(--pm-coral)!important;border-color:var(--pm-coral)!important;min-height:42px;border-radius:9px!important;font-size:12px!important;box-shadow:none!important;color:#fff!important;padding:10px 15px!important;font-weight:650!important}
body.pm-game-page :is(.secondary-btn,.soft-btn,.ghost-btn,.control-btn,.icon-btn,.secondary,.answer-btn,.action-button.secondary,.nav-btn,.small-button){min-height:40px;border-radius:9px!important;background:#fff!important;border:1px solid #dce3e8!important;color:#627484!important;font-size:12px!important;box-shadow:none!important;padding:9px 13px!important;font-weight:600!important}
body.pm-game-page .difficulty-btn{border-radius:7px!important;min-height:34px;font-size:11px!important;padding:7px 10px!important}.difficulty-btn.active{background:#eef2f5!important;color:#3e5262!important;border-color:#dce3e8!important}.pm-main-panel .nav-row{border-top:1px solid var(--pm-line);padding-top:20px;margin-top:25px;gap:10px!important}.pm-main-panel :is(.riddle-question,.logic-setup){font-size:clamp(19px,2.3vw,26px)!important;color:#3c4e5e;line-height:1.55!important;letter-spacing:-.4px}.pm-main-panel .riddle-label{font-size:11px;color:#8798a5;margin-bottom:23px;background:none!important}.pm-main-panel .riddle-card{padding:32px!important;min-height:260px}.pm-main-panel .logic-clue{border:0!important;border-left:3px solid #edd8b8!important;background:#fffbf4!important;border-radius:0 7px 7px 0!important;font-size:13px;padding:13px 16px!important}.pm-main-panel .logic-prompt{font-size:15px!important}.pm-main-panel .answer-box{border-radius:10px!important;background:var(--pm-mint)!important;border-color:#d6e8dc!important;color:#496554!important;font-size:14px!important}.pm-main-panel .share-capture-area{padding:20px!important;border:1px solid var(--pm-line)!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}
body.pm-game-page :is(.memory-table,.match-table,.block-table,.bubble-table,.treat-table,.game-panel){background:#f4f8fa!important;border:1px solid var(--pm-line)!important;border-radius:14px!important;box-shadow:none!important;padding:20px!important}.pm-main-panel .table-shine{display:none}.pm-main-panel :is(.mode-pill,.message-pill,.goal-pill){border:0!important;background:#fff!important;color:#8192a0!important;box-shadow:none!important;font-size:11px!important}.pm-main-panel .keyboard-strip{font-size:11px;color:#8898a5}.pm-main-panel .board-overlay,.pm-main-panel .stage-message{background:#ffffffeb;backdrop-filter:blur(3px)}.pm-main-panel .board-overlay h3,.pm-main-panel .stage-message h3{font-size:23px;letter-spacing:-.5px}.pm-main-panel .board-overlay p,.pm-main-panel .stage-message p{font-size:13px;color:#7b8d9a}.pm-main-panel .board-shell{max-width:100%;overflow:auto}.pm-main-panel canvas{max-width:100%;height:auto}
/* Puzzle boards get the space; surrounding duplicate frames are removed. */
.pm-main-panel #wordSearchGrid{width:100%;max-width:540px;gap:4px!important;grid-template-columns:repeat(11,minmax(0,1fr))!important}.pm-main-panel #wordSearchGrid .word-cell{background:#f6f8fa;border:1px solid #e6ebee;border-radius:7px!important;color:#526575;font-size:clamp(13px,2vw,18px)!important;min-width:0;aspect-ratio:1;box-shadow:none!important}.pm-main-panel #wordSearchGrid .word-cell:is(.selected,.found,.answer){background:#ffe1a5!important;border-color:#f5d390!important;color:#805a35!important}.pm-main-panel .word-search-layout{grid-template-columns:minmax(0,1fr) 155px!important;gap:20px!important;align-items:start}.pm-main-panel .grid-card,.pm-main-panel .print-grid-wrap{padding:0!important;background:#fff!important;border:0!important;box-shadow:none!important;border-radius:0!important}.pm-main-panel .word-search-sidebar{padding:0!important;background:#fff!important;border:0!important;box-shadow:none!important}.pm-main-panel .word-search-sidebar h2{font-size:13px;margin:0 0 13px}.pm-main-panel .word-list li{font-size:11px;border:0;border-radius:6px;background:#f5f7f9;padding:7px 9px;letter-spacing:.03em}.pm-main-panel .word-list li.found{color:#65886a;background:var(--pm-mint);text-decoration:line-through}.pm-main-panel .word-search-sidebar .action-row{flex-direction:column;gap:8px}.pm-main-panel .word-search-sidebar .result-message{font-size:11px!important;padding:10px;line-height:1.6}.pm-main-panel #sudokuBoard{width:min(100%,486px)!important;grid-template-columns:repeat(9,minmax(0,1fr))!important;margin:auto}.pm-main-panel .sudoku-cell{font-size:clamp(15px,2.6vw,24px)!important;aspect-ratio:1;width:100%!important;min-width:0!important;height:auto!important;border-radius:0!important;min-height:0!important}.pm-main-panel .sudoku-cell.fixed{background:#f5f7fa!important;color:#566b7b!important}.pm-main-panel .board-frame{border:0!important;background:#fff!important;box-shadow:none!important;padding:8px!important}.pm-main-panel #crossmathGrid{--cell-size:clamp(32px,6vw,64px);margin:auto}.pm-main-panel .crossmath-card{padding:22px!important}.pm-main-panel .crossmath-card .section-heading{display:none}.pm-main-panel :is(.crossmath-cell,.cell.blank){border-radius:8px}.pm-main-panel #mazeCanvas{width:min(100%,570px);height:auto;display:block;margin:auto}.pm-main-panel #ptMazeStatus{font-size:12px;color:#81909d;text-align:center}.pm-main-panel :is(.cryptogram-card,.fallen-card){padding:22px!important}.pm-main-panel .cryptogram-input{min-height:38px!important;border-radius:6px!important;font-size:18px!important;padding:0!important}.pm-main-panel .cryptogram-cell{background:none!important;border:0!important;box-shadow:none!important}.pm-main-panel .cryptogram-cipher{color:#97a4af;font-size:12px!important}
body.pm-game-page .share-wrap{max-width:1180px!important;width:calc(100% - 64px)!important;margin:25px auto!important;text-align:left!important}.share-panel{box-shadow:none!important;border:0!important;background:none!important;justify-content:flex-start!important;gap:7px!important;padding:0!important}.share-panel button,.share-icon-btn{border-radius:7px!important;background:#fff!important;border:1px solid var(--pm-line)!important;font-size:11px!important;color:#8a98a3!important;min-height:34px!important;padding:8px 11px!important}.share-feedback{font-size:11px;color:#8696a0}
/* Card/board games retain board materials while adopting the same compact page and controls. */
.pm-game-page .pm-main-panel .game-toolbar{padding:12px 15px!important;background:#f7f9fa;border-bottom:1px solid var(--pm-line)}.pm-game-page .pm-main-panel .game-card{border:1px solid var(--pm-line)!important;overflow:hidden;padding:0!important}.pm-game-page .pm-settings-rail .game-card{background:none!important;border:0!important}.pm-game-page[data-pm-game="2048"] .pm-play-layout{grid-template-columns:minmax(0,680px) minmax(230px,285px)!important;justify-content:center}.pm-game-page[data-pm-game="2048"] .play-wrap{display:block!important}.pm-game-page[data-pm-game="2048"] .goal-card{background:transparent!important;border:0!important;padding:16px 0 0!important;min-height:0!important}.pm-game-page[data-pm-game="2048"] .goal-card strong{display:none}.pm-game-page[data-pm-game="2048"] .goal-card span{display:none}.pm-game-page[data-pm-game="2048"] .goal-card small{font-size:12px;color:#8896a1}.pm-game-page[data-pm-game="2048"] .board-area{max-width:450px;margin:auto}.pm-game-page[data-pm-game="2048"] .game-header{justify-content:flex-end}.pm-game-page .pt-native-controls{width:calc(100% - 64px);max-width:1180px;border-radius:12px;margin:0 auto 18px;padding:15px 18px}.pm-game-page .pt-native-controls button{background:var(--pm-coral);font-size:12px;border-radius:9px}.pm-game-page[data-pm-game="Campustycoon"] .pm-play-layout{grid-template-columns:minmax(0,1fr) 285px!important;width:100%!important}.pm-game-page[data-pm-game="Campustycoon"] .pm-main-panel{overflow:auto;padding:12px!important;border-color:var(--pm-line);box-shadow:none}.pm-game-page[data-pm-game="Campustycoon"] .pm-main-panel .board{min-width:640px}.pm-game-page[data-pm-game="Campustycoon"] .title-wrap{display:none}.pm-game-page[data-pm-game="solitaire"] .solitaire-app{border:1px solid var(--pm-line);border-radius:14px;box-shadow:none}.pm-game-page[data-pm-game="mahjong"] .topbar{padding:13px 18px;margin:0 0 18px;border:1px solid var(--pm-line);border-radius:12px;background:#fff;box-shadow:none}.pm-game-page[data-pm-game="mahjong"] .topbar h1{font-size:18px}.pm-game-page .feature-strip{display:none}.pm-game-page .app{max-width:1180px!important;padding:0!important;margin:0 auto!important}.pm-game-page .pm-settings-rail .brand-card{display:none}
@media(max-width:1050px){.pt-header-row{gap:18px}.pt-nav{gap:18px}.pm-play-layout{gap:18px!important}.pm-main-panel .word-search-layout{grid-template-columns:minmax(0,1fr)!important}.pm-main-panel .word-search-sidebar{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:12px}.pm-main-panel .word-search-sidebar h2{grid-column:1/-1}.pm-main-panel .word-list{display:flex;flex-wrap:wrap;gap:6px;align-content:start}.pm-main-panel .word-search-sidebar .result-message{grid-column:1/-1}.pm-main-panel #wordSearchGrid{margin:auto}}
@media(max-width:850px){.pt-header-row{min-height:76px;padding:16px 20px;flex-wrap:wrap}.pt-nav{display:none;flex-basis:100%;margin:0;flex-direction:column;align-items:stretch;gap:4px}.pt-nav.pt-open{display:flex}.pt-nav a{padding:10px;font-size:13px}.pt-nav a[aria-current=page]:after{display:none}.pt-nav a[aria-current=page]{background:#fff6df!important;border-radius:8px}.pt-menu{display:block;margin-left:auto}.pm-page-heading{width:calc(100% - 40px);margin:20px auto}.pm-title-row h1{font-size:26px}.pm-title-row p{font-size:12px}.pm-switch{min-width:150px}.pm-title-row{align-items:start}.pm-play-layout{grid-template-columns:minmax(0,1fr)!important;width:calc(100% - 40px)!important}body.pm-game-page .pm-play-layout,body.pm-game-page[data-pm-game="2048"] .pm-play-layout,body.pm-game-page[data-pm-game="Campustycoon"] .pm-play-layout{grid-template-columns:minmax(0,1fr)!important;width:calc(100% - 40px)!important;gap:18px!important}body.pm-game-page :is(.app-shell,.page-shell,.game-shell,.page-wrap,.logic-page-shell){width:calc(100% - 40px)!important}body.pm-game-page :is(.app-shell,.page-shell,.game-shell,.page-wrap,.logic-page-shell) .pm-play-layout{width:100%!important}.pm-main-panel{grid-column:1!important}.pm-settings-rail{grid-column:1!important;order:1;max-width:100%!important}body.pm-game-page .pm-settings-rail{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px!important;padding:18px!important}.pm-settings-rail>h2,.pm-settings-rail>.control-copy,.pm-settings-rail>.how-to-card,.pm-settings-rail>.pm-help{grid-column:1/-1}body.pm-game-page .pm-settings-rail label{display:block}body.pm-game-page .pm-settings-rail .word-input-panel{grid-column:1/-1}body.pm-game-page .share-wrap{width:calc(100% - 40px)!important}body.pm-game-page .pm-gamebar{padding:12px!important}body.pm-game-page .pt-native-controls{width:calc(100% - 40px)}.pm-main-panel .riddle-card{padding:23px!important}.pm-main-panel .share-capture-area{padding:15px!important}.pt-footer{padding:22px 20px!important}.pt-footer-row{align-items:start;gap:14px}body.pm-game-page .pm-settings-rail .setup-card{grid-column:1/-1}body.pm-game-page .pm-settings-rail .control-grid{max-width:320px}body.pm-game-page .pm-main-panel .game-toolbar{gap:12px;flex-wrap:wrap}.pm-main-panel canvas{height:auto!important}}
@media(max-width:560px){.pm-title-row{flex-direction:column;gap:15px}.pm-switch{align-self:flex-start}.pm-switch nav{left:0;right:auto}.pm-breadcrumb{font-size:10px;margin-bottom:12px}.pm-title-row h1{font-size:24px}body.pm-game-page .pm-settings-rail{grid-template-columns:1fr!important}body.pm-game-page .pm-settings-rail>*{grid-column:1!important}body.pm-game-page .pm-main-panel :is(.memory-table,.match-table,.block-table,.bubble-table,.treat-table,.game-panel){padding:13px!important}body.pm-game-page .pm-gamebar .top-stats{width:100%;justify-content:space-between;gap:7px}.pm-gamebar .stat{flex:1;min-width:0!important;padding:7px!important}.pm-main-panel .word-search-sidebar{grid-template-columns:1fr!important}.pm-main-panel .word-search-sidebar .action-row{flex-direction:row}.pm-main-panel .word-list{margin:0}.pm-main-panel #crossmathGrid{--cell-size:clamp(26px,7.5vw,42px)}.pm-main-panel .share-capture-area{padding:11px!important}.pm-main-panel .sudoku-card{padding:5px!important}body.pm-game-page .pt-native-controls{padding:12px;gap:8px}body.pm-game-page .pt-native-controls button{flex:1;font-size:11px;padding:9px}body.pm-game-page .pt-chess-state{font-size:12px}.share-panel{flex-wrap:wrap}.pm-main-panel .riddle-card{padding:18px!important}.pm-switch summary{font-size:11px}body.pm-game-page .pm-main-panel .table-top-row{flex-wrap:wrap}body.pm-game-page .game-header .header-actions{width:100%;justify-content:flex-start}}
@media print{.pm-page-heading,.pm-switch,.pm-gamebar,.pt-native-controls,.pm-help{display:none!important}.pm-settings-rail{display:none!important}body.pm-game-page .pm-play-layout{display:block!important;width:100%!important}.pm-secondary-heading{display:block!important}.pm-main-panel .share-capture-area{border:0!important;padding:0!important}}
body.pm-game-page .pm-actionbar{margin-top:19px;padding:12px 15px;background:#fafbfc;border:1px solid var(--pm-line);border-radius:11px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
body.pm-game-page .pm-actionbar :is(.sudoku-controls,.maze-controls,.action-row){display:flex!important;align-items:center;flex-wrap:wrap;gap:9px!important;padding:0!important;border:0!important;margin:0!important;width:auto!important;background:none!important}
body.pm-game-page .pm-actionbar label{display:flex;align-items:center;gap:10px;font-size:12px;color:#788895;white-space:nowrap;margin:0!important}
body.pm-game-page .pm-actionbar select{font-size:12px;padding:8px 11px;min-height:40px!important;width:auto;min-width:120px;border-radius:8px!important}
body.pm-game-page .pm-actionbar .difficulty-panel{margin:0!important;padding:0!important;border:0!important;background:none!important;display:flex;align-items:center;gap:13px;flex-wrap:wrap}
body.pm-game-page .pm-actionbar .difficulty-title{margin:0!important;font-size:12px!important;color:#8c99a3}.pm-actionbar .difficulty-buttons{display:flex!important;gap:7px;flex-wrap:wrap}
@media(max-width:560px){body.pm-game-page .pm-actionbar{padding:10px}.pm-actionbar label{font-size:11px!important}.pm-actionbar button{font-size:11px!important}.pm-actionbar .difficulty-buttons{gap:5px}.pm-actionbar .difficulty-title{display:none}}
@media print{.pm-actionbar{display:none!important}}
