/* Maison pilot: tokens belong only to controls surrounding the board. The game
   root, board and cells intentionally retain their existing functional tokens. */
:root[data-theme] body[data-screen=game]{background:var(--house-bg)}
.game-main :is(.mobile-play-header,.game-top,.mentor-panel,.tools,.hint-lesson,.large-grid-tools){
 --surface:var(--house-paper);--club-bg:var(--house-bg);--text:var(--house-ink);--sub:var(--house-muted);
 --orange:var(--house-apricot);--mint:var(--house-sage);--club-line:var(--house-line);
 color:var(--house-ink);
}
.game-main :is(.mobile-play-header h1,.mentor-bubble>b,.game-top h2){font-family:var(--house-title);font-weight:800}
.game-main .mobile-play-header h1{color:var(--house-ink)}
.game-main .mobile-play-header span{color:var(--house-muted)}
.game-main .mobile-play-header>button{box-shadow:0 3px 0 var(--house-shadow);border-color:var(--house-line)}
.game-main #mentor-explain,.game-main .mentor-bubble{background:var(--house-paper);border-color:var(--house-line);box-shadow:0 4px 0 var(--house-shadow)}
.game-main .mentor-bubble:before{background:var(--house-paper);border-color:var(--house-line)}
.game-main #mentor-explain:hover{background:color-mix(in srgb,var(--house-sage) 5%,var(--house-paper));border-color:var(--house-sage)}
.game-main #mentor-explain:focus-visible{outline-color:var(--house-sage)}
.game-main :is(.game-top,.tools){border-color:var(--house-line)}
.game-main .tools button{color:var(--house-muted)}
.game-main .tools button:focus-visible{outline-color:var(--house-sage)}
.game-main .board-footer .progress{color:var(--house-muted)}
.companion-menu h2,.companion-cheer b{font-family:var(--house-title);font-weight:800}
.companion-menu header>div{min-width:0}
.companion-menu .companion-wallet{background:color-mix(in srgb,var(--house-sage) 8%,var(--house-paper));border:1px solid var(--house-line)}
.companion-menu .companion-back{min-height:44px;border:1px solid var(--house-line);border-radius:16px}
.companion-menu .companion-rules{min-height:44px}
.companion-menu :is(.companion-back,.companion-rules,.companion-choices>button):focus-visible{outline-color:var(--house-sage)}
@media(min-width:651px),(min-width:500px) and (max-height:500px) and (orientation:landscape){
 .game-main .mobile-play-header>div:before{display:none}
 #game-screen.game-main .mobile-play-header>div{padding-left:10px}
 .game-main .game-top{border-radius:22px;background:var(--house-paper);box-shadow:0 4px 0 var(--house-shadow)}
 .game-main .tools{border-radius:22px;background:var(--house-paper);box-shadow:0 4px 0 var(--house-shadow)}
 .game-main .tools #mark{border-radius:16px;background:color-mix(in srgb,var(--house-sage) 8%,var(--house-paper))}
}
@media(max-width:650px){
 .game-main .tools button>span{box-shadow:0 3px 0 var(--house-shadow);border-color:var(--house-line)}
 .game-main .mentor-bubble{box-shadow:0 3px 0 var(--house-shadow)}
}
@media(max-width:650px) and (max-height:650px){
 .game-main .mentor-panel:has(>.mentor-portrait[data-pilot-character]) .mentor-bubble{padding-top:7px;padding-bottom:7px;gap:3px}
}
