/* A quiet card table: the board is primary, setup and sharing stay beside it. */
::selection{background:#d9e2ff;color:#203d88}
:root{scrollbar-color:#a5b6d8 #f6f7fd}
input,select{caret-color:#224dc9}
.game-heading{margin-block:12px 28px}.game-heading h1{letter-spacing:-.035em}
.game-heading p{font-size:16px;color:#52617d}
.game-workspace{grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:28px}
.board-panel{padding:24px;border-radius:16px;background:#edf1fc;border-color:#cbd5ed}
.board-panel>#start{min-height:54px;border-radius:10px;margin-bottom:22px;box-shadow:none}
.game-stats{padding-block:2px 18px;margin-bottom:22px;border-bottom:1px solid #c7d2e9}
.game-stats span{font-size:13px;color:#526582}.game-stats strong{font-size:25px;color:#263f78;letter-spacing:-.025em}
.cat-card{border-radius:12px;background:#3155bd;border-color:#3155bd;box-shadow:none;transition:background-color 140ms ease-out,border-color 140ms ease-out}
.cat-card:hover:not(:disabled){transform:none}
.cat-card:active:not(:disabled){background:#1e3e9b}
.cat-card.revealed{background:#fffdf8;box-shadow:inset 0 0 0 2px #91a5d1;border-color:#91a5d1}
.cat-card.matched{background:#edf4e8;border-color:#8ba87a;box-shadow:none}
.matched-mark{background:#e3eddc;color:#35532b;font-size:12px;padding:3px 7px;bottom:6px;right:6px}
.cat-card:focus-visible{outline:3px solid #b66328;outline-offset:4px;transition:none}
.cat-card .card-cover{letter-spacing:-.03em;border-color:#d0daf4;color:white;font-size:21px}
.board-hint{font-size:15px;color:#425b87;min-height:24px}
.game-side>.panel{padding:24px;border-radius:16px;box-shadow:none}
.game-side h2{font-size:20px;letter-spacing:-.025em;margin-top:0}
.level-options span{min-height:83px;display:flex;flex-direction:column;justify-content:center;border-radius:10px;padding:12px;color:#52617d;transition:background-color 140ms ease-out,border-color 140ms ease-out}
.level-options input:checked+span{border-color:#5977b6;box-shadow:inset 0 0 0 1px #5977b6;background:#eaf0ff}
.level-options input:focus-visible+span{transition:none}
.game-side .hint{font-size:14px;color:#52617d}
.challenge-settings{margin:22px 0 0;padding:22px 0 0;border-bottom:0;border-top:1px solid #d0d9ed;color:#334f81}
.challenge-settings label{font-size:14px;line-height:1.6}
.challenge-settings select{border-radius:9px;border-color:#b0c0db;min-height:46px}
.challenge-settings button{background:white;color:#334f81;border-color:#bccae0;border-radius:9px;font-size:14px;line-height:1.5;max-width:100%;margin:5px 0;padding:10px 12px;width:100%}
.challenge-settings button:active:not(:disabled){background:#dde6fc}
.challenge-settings button:disabled{background:#f0f2f8;color:#52617d}
.challenge-settings #daily-board{background:#e7edfc;border-color:#aabadd;font-weight:650}
.challenge-settings #attempt-note{font-size:13px;color:#52617d;line-height:1.8}
.challenge-extras{margin-top:18px;border-top:1px solid #d0d9ed;padding-top:8px}
.challenge-extras summary{font-size:14px;min-height:46px;display:list-item;list-style-position:inside;padding:12px 0;cursor:pointer;font-weight:650}
.challenge-extras summary:focus-visible{outline:3px solid #224dc9;outline-offset:4px}
.pair-history h3{font-size:16px;margin-top:22px}.pair-history p{font-variant-numeric:tabular-nums}
.result-card{border-radius:14px;background:#eef4e9;border-color:#a9bea0;padding:24px}
.result-card h2{color:#385b30;letter-spacing:-.025em}.result-card p{color:#47653e}
.game-footnote{font-size:14px;color:#52617d}
@media(max-width:740px){.game-heading{margin-block:6px 24px}.game-heading h1{font-size:30px;line-height:1.35}.game-heading img{width:72px}.board-panel{padding:16px;border-radius:14px}.game-workspace{gap:20px}.board{gap:8px}.game-stats strong{font-size:23px}.game-stats span{font-size:12px}.cat-card{border-radius:10px;min-height:58px}.cat-card .card-cover{font-size:18px}.board-hint{font-size:14px}.game-side>.panel{padding:20px;border-radius:14px}.game-side .level-options{margin-bottom:16px}.result-card{padding:22px 18px}}
@media(prefers-reduced-motion:reduce){.cat-card,.level-options span,.challenge-settings button{transition:none!important}}
