/* Copyright 2026 Michael Shaun French, United Kingdom. */
.settings-checkbox-source{display:none!important}.settings-enabled-toggle{min-width:108px;min-height:44px;padding:8px 14px;border-radius:22px;font-weight:750;background:var(--surface);color:var(--text);border:2px solid var(--border)}.settings-enabled-toggle[aria-checked=true]{background:#176b52;color:white;border-color:#176b52}.settings-enabled-toggle:disabled{opacity:.5}.settings-enabled-toggle:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.activity-guide{margin:4px 0;padding:8px 10px;border:1px solid var(--border);border-radius:10px}.activity-guide summary{font-weight:750;cursor:pointer;min-height:30px}.activity-guide p{font-size:16px;line-height:1.5;margin:6px 0}
body.game-open #testContent>.arcade-game,body.game-open .legacy-game-shell{grid-template-rows:minmax(0,1fr) auto;gap:4px}
body.game-open .game-sidebar{padding:5px 8px;max-height:32vh}.game-sidebar>.arcade-live:empty{display:none}.game-sidebar .arcade-info{margin:0 0 3px}.game-sidebar .arcade-controls{margin:4px 0}.game-sidebar .arcade-directions:empty{display:none}
@media(orientation:landscape){body.game-open #testContent>.arcade-game,body.game-open .legacy-game-shell{grid-template-columns:minmax(0,1fr) minmax(190px,24%);grid-template-rows:minmax(0,1fr)}body.game-open .game-sidebar{max-height:none}}
body.game-open .arcade-tictactoe .arcade-cell{font-size:var(--game-mark-size,60px)!important;line-height:1}.arcade-target{font-size:var(--game-target-size,100px)!important;line-height:1}
.arcade-hole{position:relative;background:#795b48}.arcade-hole.active:not(.golden){background:var(--mole-colour)}.arcade-hole.golden{background:#ffd000!important;border:6px solid #9e5d00;box-shadow:inset 0 0 0 4px #fff38a,0 0 15px #ffbd00}.mole-bonus{position:absolute;bottom:2px;right:4px;color:#342100;background:#ffe44f;border:2px solid #5c3b00;border-radius:8px;padding:1px 5px;font-weight:900}
.arcade-directions:has(button:nth-child(3)){display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.arcade-directions:has(button:nth-child(3))>button{aspect-ratio:1;min-width:0;min-height:64px;padding:6px;white-space:normal;font-weight:750}.arcade-directions>button:nth-child(1){border-color:#1674b5}.arcade-directions>button:nth-child(2){border-color:#ce6a09}.arcade-directions>button:nth-child(3){border-color:#24874c}
.arcade-board[data-piece-colours=bright]{--piece-one:#9a40c9;--piece-two:#65c44b}.arcade-board[data-piece-colours=contrast]{--piece-one:#fff;--piece-two:#111}.arcade-piece[data-player="1"]{background:var(--piece-one,#e4bca2)}.arcade-piece[data-player="2"]{background:var(--piece-two,#a5c5df)}
.arcade-gems[data-gem-colours=bright] .gem-0{background:#50b6ff!important}.arcade-gems[data-gem-colours=bright] .gem-1{background:#ff9b36!important}.arcade-gems[data-gem-colours=bright] .gem-2{background:#f479b4!important}.arcade-gems[data-gem-colours=bright] .gem-3{background:#ffdf35!important}.arcade-gems[data-gem-colours=bright] .gem-4{background:#7bd64d!important}.arcade-gems[data-gem-colours=contrast] .gem{background:#fff!important;color:#111!important;border:3px solid #111}.gem-matched{outline:5px solid #fff!important;box-shadow:inset 0 0 0 6px #16834f;animation:gem-match-pulse .35s ease-in-out}@keyframes gem-match-pulse{50%{transform:scale(.78);filter:brightness(1.7)}}
body.game-open .picture-game-area{height:100%;margin:0!important;padding:2px!important;grid-template-rows:minmax(0,1fr)}body.game-open .picture-card-grid{height:100%;gap:6px}body.game-open .picture-card-grid>button{min-height:0!important;max-height:none!important;height:100%;font-size:clamp(22px,5vh,60px)}body.game-open .picture-card-grid img,body.game-open .picture-card-grid svg{max-height:none}
body.game-open .scratch-stage{width:auto!important;height:100%;max-width:100%;max-height:100%;aspect-ratio:4/3}.guess-person-grid button>span{flex:0 0 auto}.guess-person-grid button>svg{flex:1;min-height:0}
.legacy-puzzle-pair{display:flex;flex-direction:column;gap:6px;min-height:0;flex:1;align-items:center;justify-content:center;width:100%}.legacy-puzzle-pair>.test-puzzle-grid{min-height:0;flex:0 0 auto;margin:0}.game-sidebar .test-puzzle-guide{max-width:110px;max-height:110px;object-fit:contain}.test-puzzle-grid>button{min-height:0!important;padding:2px}.test-puzzle-grid img{max-width:100%;max-height:100%;object-fit:contain}
@media(orientation:landscape){.legacy-puzzle-pair{flex-direction:row}}
@media(prefers-reduced-motion:reduce){.gem-matched{animation:none!important}}

body.tools-open:not(.game-open) #testPage{max-width:none!important;width:100%;padding:0 0 8px}body.tools-open:not(.game-open) #testContent{max-width:none!important;margin:0;min-width:0}body.tools-open:not(.game-open) #testContent>.settings-card{max-width:none;width:100%;box-sizing:border-box;margin-block:8px;padding:clamp(10px,1.4vw,18px)}body.tools-open:not(.game-open) #testContent :is(input,select,textarea){max-width:100%;box-sizing:border-box}body.tools-open:not(.game-open) #testContent>.activity-guide{margin-block:4px 8px}body.tools-open:not(.game-open) #testContent>.test-grid{gap:8px}body.tools-open:not(.game-open) #testContent>.test-actions{gap:6px;margin-block:6px}

body.game-open .game-primary .picture-card-grid>button{font-size:clamp(30px,8vh,90px)!important}body.game-open .picture-card-grid>button>span{font-size:inherit!important}body.game-open .test-puzzle-grid>button{font-size:clamp(24px,4vh,52px)!important}body.game-open .guess-person-grid>button>span{font-size:clamp(16px,2.6vh,28px)!important}
