/* Vivid, accessible game surfaces. Preserve existing game engines and layouts. */
#game.game{position:relative;border:1px solid #d7d1f0;background:linear-gradient(165deg,#fff 20%,#f4f0ff);box-shadow:0 10px 32px #493ca51a;padding:clamp(16px,3vw,30px);border-radius:22px}
#game.game>p:first-child{font-weight:700;color:#514478;margin-top:0;font-size:16px}
#game .board{padding:9px;background:#e6e0f5;border-radius:13px;box-shadow:inset 0 2px 6px #433b7712;max-width:100%;gap:5px}
#game .tile{border:2px solid #c5bddf;background:#fff;color:#26223e;border-radius:8px;font-weight:850;box-shadow:0 2px 0 #c5bddf44;transition:background .13s,transform .13s,border-color .13s}
#game button.tile:hover{transform:translateY(-1px);border-color:#795ad4}#game .tile.good{background:#218653;color:#fff;border-color:#218653}#game .tile.close{background:#c18216;color:#fff;border-color:#c18216}#game .tile.bad{background:#586479;color:#fff;border-color:#586479}#game .tile.on{background:#6d45d6;color:#fff;border-color:#5437b5}#game .tile.fixed{background:#ded5fa;border-color:#b6a8e8;color:#422c92}#game .tile.blank{background:#27223e;border-color:#27223e}#game .tile:focus-visible{outline:3px solid #f0a228;outline-offset:0}
#game .keyboard{padding:9px;background:#ede7fb;border-radius:13px;gap:5px}#game .keyrow button{background:#fff;color:#30254f;border:1px solid #d7cfea;font-weight:850;box-shadow:0 2px 0 #c7bfdf;min-height:42px}#game .keyrow button.good{background:#218653;color:white;border-color:#218653}#game .keyrow button.close{background:#c18216;color:white;border-color:#c18216}#game .keyrow button.bad{background:#586479;color:white;border-color:#586479}
#game .controls button,#game form button,#game #hint,#game .keyboard>button{background:linear-gradient(130deg,#7149d9,#5235b4);color:white;font-weight:800;border-radius:9px;box-shadow:0 2px 5px #4833a225;min-height:42px}#game .controls button:hover,#game form button:hover{filter:brightness(1.06)}#game .status{color:#5033a3;background:#e9e1ff;border-radius:10px;padding:7px 10px;margin:12px auto;max-width:650px;min-height:36px}#game .status:empty{background:transparent;padding:0;min-height:23px}
#game .quiz-options button,#game .groups-grid button{border:1px solid #c6b9ec;box-shadow:0 3px 0 #d9d2ed;font-weight:800}#game .groups-grid button{background:#eee7ff;color:#33224e}#game .groups-grid button.chosen{background:#6742cc;color:#fff;border-color:#6742cc}#game .quiz-options button.good{background:#218653;color:#fff}
#game input:not(.tile){border:2px solid #c7bbeb;border-radius:10px;background:#fff;color:#26223e;font-weight:650}#game .word-results span{border:1px solid #c6b8ef;background:#eee7ff;color:#38245f}
#game .board:has(.tile.fixed):not(:has(.tile.good)) .tile.fixed{font-weight:850}
.solitaire-studio .playing-card[data-t]:not(:disabled){touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab}.solitaire-studio .playing-card[data-t]:not(:disabled):active{cursor:grabbing}.solitaire-studio.is-dragging{cursor:grabbing}.solitaire-studio .drag-source{opacity:.33!important}.solitaire-studio .drop-ready{outline:3px solid #66ffc3!important;outline-offset:2px;box-shadow:0 0 18px #63ffc68a!important}.card-drag-ghost{position:fixed;z-index:10000;pointer-events:none;filter:drop-shadow(0 8px 12px #0007);display:flex;flex-direction:column}.card-drag-ghost .playing-card{display:block;flex-shrink:0;padding:0;border:1px solid #abb5cc;background:white;overflow:hidden;border-radius:7px;opacity:.95}.card-drag-ghost .card-face{width:100%;height:100%;display:block;background:white;object-fit:contain;pointer-events:none}
:root[data-theme="dark"] #game.game{background:linear-gradient(155deg,#24273c,#211e38);border-color:#4b426c;box-shadow:0 9px 28px #0005}:root[data-theme="dark"] #game.game>p:first-child{color:#eee6ff}:root[data-theme="dark"] #game .board,:root[data-theme="dark"] #game .keyboard{background:#34304c;box-shadow:inset 0 2px 7px #13122880}:root[data-theme="dark"] #game .tile{background:#272a40;color:#f7f3ff;border-color:#62577e;box-shadow:0 2px 0 #18162b}:root[data-theme="dark"] #game .tile.good,:root[data-theme="dark"] #game .keyrow button.good{background:#197647;color:white;border-color:#42ae78}:root[data-theme="dark"] #game .tile.close,:root[data-theme="dark"] #game .keyrow button.close{background:#9d6813;color:#fff;border-color:#d5a540}:root[data-theme="dark"] #game .tile.bad,:root[data-theme="dark"] #game .keyrow button.bad{background:#424b61;color:#fff;border-color:#65718a}:root[data-theme="dark"] #game .tile.on,:root[data-theme="dark"] #game .groups-grid button.chosen{background:#7654d8;color:#fff;border-color:#a18aea}:root[data-theme="dark"] #game .tile.fixed{background:#494064;color:#fff;border-color:#7b6ba7}:root[data-theme="dark"] #game .tile.blank{background:#11131e;border-color:#31374d}:root[data-theme="dark"] #game .keyrow button{background:#42405f;color:#fff;border-color:#696089;box-shadow:0 2px 0 #16152b}:root[data-theme="dark"] #game .status{background:#392d62;color:#ede3ff}:root[data-theme="dark"] #game .status:empty{background:transparent}:root[data-theme="dark"] #game input:not(.tile){background:#2b2d43;color:#fff;border-color:#76659c}:root[data-theme="dark"] #game .groups-grid button,:root[data-theme="dark"] #game .word-results span{background:#393251;color:#fff;border-color:#74648e;box-shadow:none}
@media(max-width:600px){#game.game{padding:10px;border-radius:14px}#game .board{padding:4px;gap:3px}#game .keyboard{padding:4px;gap:4px}#game .keyrow button{padding:6px 0;min-height:44px}#game.game>p:first-child{font-size:14px}#game .controls button{min-height:44px}#game .tile{border-radius:6px}}
@media(min-width:601px){#game #guess-board .tile{width:54px;height:54px;font-size:24px}#game .keyrow button{min-width:36px}}
#game[data-game="spelling-hive"]{--game-accent:#b67d19}#game[data-game="word-groups"]{--game-accent:#8b4cc5}#game[data-game="word-search"],#game[data-game="hidden-word-paths"]{--game-accent:#198b77}#game[data-game="sudoku"],#game[data-game="mini-crossword"],#game[data-game="full-crossword"]{--game-accent:#3269ba}#game[data-game="2048"]{--game-accent:#b96b26}#game[data-game="trivia"],#game[data-game="geography"]{--game-accent:#17847c}#game.game{border-top:5px solid var(--game-accent,#7954db)}
