.collection-body{background:#f3f6fc}.collection-header{display:flex;justify-content:space-between;gap:18px;align-items:center;background:white;border-bottom:1px solid #dae3f0;padding:18px 28px}.collection-header nav{display:flex;gap:18px;align-items:center;flex-wrap:wrap;font-size:.875rem}.collection-layout{display:grid;grid-template-columns:225px minmax(0,1fr);max-width:1520px;margin:auto}.collection-sidebar{padding:28px 16px;border-right:1px solid #dae3f0}.cards-return{display:block;color:#174ad4;font-weight:700;padding:10px 12px;border-radius:10px;background:#e4ecff;margin-bottom:25px}.collection-sidebar h2{font-size:.72rem;color:#58708b;letter-spacing:.15em;text-transform:uppercase;margin:24px 12px 10px}.collection-link{display:flex;align-items:center;gap:11px;border-radius:10px;padding:10px 12px;font-size:.92rem;margin:3px 0}.collection-link span{width:27px;font-size:1.3rem;color:#174ad4;text-align:center}.collection-link:hover{background:#e9effb}.collection-link.active{background:#174ad4;color:white;font-weight:700;box-shadow:0 5px 14px #174ad420}.collection-link.active span{color:#ffdf87}.collection-note{margin:28px 12px;color:#60748b;font-size:.82rem;line-height:1.6}.collection-note strong{color:#2b435c}.collection-note p{margin:8px 0}.collection-main{min-width:0;padding:28px 32px 40px}.collection-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:22px}.collection-heading .eyebrow{font-size:.7rem;margin-bottom:10px}.collection-heading h1{font-size:2.2rem;margin:0 0 7px}.collection-heading p{margin:0;color:#597087;font-size:.97rem;max-width:550px}.collection-settings{display:flex;gap:10px;flex-wrap:wrap}.collection-settings label{display:flex;flex-direction:column;gap:5px;font-size:.76rem;color:#536b83}.select{font:inherit;border:1px solid #c9d7ea;border-radius:9px;background:white;color:#1b3551;padding:10px 12px;max-width:100%}.collection-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:18px}.collection-toolbar .btn{font-size:.86rem;padding:11px 15px}.theme-label{margin-left:auto}.collection-table{border:1px solid #ccdbed;border-radius:22px;background:radial-gradient(ellipse at 18% 12%,#fff4ca66,transparent 60%),linear-gradient(125deg,#d8edfb,#e2edff 58%,#deebf3);box-shadow:0 8px 28px #264c7410;overflow:hidden;color:#16334f}.collection-table[data-theme=night]{background:radial-gradient(ellipse at 30% 0,#4666a066,transparent 70%),#172d51;color:#e7efff;border-color:#324b70}.collection-table[data-theme=felt]{background:radial-gradient(ellipse at 35% 0,#3f947b88,transparent 70%),#176751;color:#effff6;border-color:#267963}.collection-board{padding:25px 24px;min-height:330px;overflow-x:auto}.collection-table-footer{padding:14px 22px;display:flex;flex-wrap:wrap;gap:20px;justify-content:space-between;background:#ffffff94;border-top:1px solid #ccdced;font-size:.76rem;color:#425e79}.collection-table[data-theme=night] .collection-table-footer,.collection-table[data-theme=felt] .collection-table-footer{background:#0a1c3633;border-color:#ffffff22;color:#e0eafc}.collection-status{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-top:17px}.collection-status p{font-size:.9rem;color:#415c78;line-height:1.55;margin:8px 0;max-width:600px}.collection-deal{display:flex;align-items:center;gap:10px;font-size:.76rem;color:#61788f;flex-wrap:wrap;justify-content:flex-end}.collection-footnote{margin-top:22px;font-size:.75rem;color:#60738a}.collection-footnote a{color:#174ad4}.collection-dialog{border:1px solid #cbd8ed;border-radius:21px;max-width:650px;width:calc(100% - 36px);padding:30px;color:#1d3550;box-shadow:0 25px 80px #001e5266}.collection-dialog::backdrop{background:#071e4da1}.collection-dialog h2{font-size:1.7rem;margin:0 0 17px}.collection-dialog p{font-size:.97rem;line-height:1.7}.dialog-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.collection-dialog input{width:100%;padding:12px;border:1px solid #adbfda;border-radius:9px;font-size:1rem;margin-top:8px}.collection-dialog .error{color:#a42a3c}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.collection-body button:disabled{cursor:default;opacity:.5}.collection-body button.cell:disabled{opacity:1}.collection-body :focus-visible{outline:3px solid #e39b14;outline-offset:3px}.game-grid-board{display:grid;gap:3px;max-width:560px;margin:0 auto}.cell{appearance:none;position:relative;border:1px solid #bbcce2;border-radius:7px;background:#fffdf4;color:#203c5b;aspect-ratio:1;min-width:0;min-height:0;padding:0;font:600 clamp(.9rem,2.5vw,1.55rem) system-ui;display:grid;place-items:center;cursor:pointer;transition:box-shadow .12s,background .12s}.cell:hover:not(:disabled){background:#e7f0ff}.cell.selected{box-shadow:inset 0 0 0 3px #174ad4;z-index:1}.cell.legal::after{content:'';position:absolute;width:18%;height:18%;border-radius:50%;background:#174ad4aa;pointer-events:none}.cell.legal:has(.chess-piece)::after,.cell.legal:has(.checker)::after{width:88%;height:88%;background:transparent;border:3px solid #e9b147}.game-controls{max-width:650px;margin:18px auto 0;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px}.game-controls .btn{font-size:.85rem;padding:10px 14px}.game-controls label{font-size:.8rem;display:flex;gap:8px;align-items:center}.game-controls .active{background:#174ad4;color:white;border-color:#174ad4}.game-info{text-align:center;font-size:.85rem;line-height:1.55;margin:0 auto 18px;max-width:620px}.counter-chip{display:inline-flex;gap:8px;align-items:center;background:#fff8e8;color:#594423;border:1px solid #e5d3a3;border-radius:30px;padding:7px 13px;font-size:.8rem;margin:4px}.board-caption{font-size:.85rem;text-align:center;margin:10px 0 14px;color:inherit}.mahjong-board{--tile-step:55px;--row-step:67px;--tile-width:51px;--tile-height:62px;position:relative;margin:0 auto}.mahjong-tile{position:absolute;width:var(--tile-width);height:var(--tile-height);border:2px solid #ae966f;border-bottom-width:5px;border-radius:8px;background:linear-gradient(130deg,#fffffb,#f5e9ca);box-shadow:3px 4px 0 #aa875c,4px 6px 8px #22436428;font-size:1.7rem;color:#bc3145;display:grid;place-items:center;cursor:pointer}.mahjong-tile small{position:absolute;right:4px;bottom:3px;font:700 .61rem system-ui;color:#596979}.mahjong-tile.family-1{color:#174ad4}.mahjong-tile.family-2{color:#178466}.mahjong-tile.family-3{color:#7842a4}.mahjong-tile.available{border-color:#edb14a;background:linear-gradient(135deg,#fff,#fff1cb)}.mahjong-tile.selected{outline:3px solid #174ad4;outline-offset:2px;transform:translateY(-3px)}.mahjong-tile:disabled{filter:saturate(.65);opacity:.9}.sudoku-grid{max-width:510px;gap:0;border:3px solid #476382;border-radius:6px;overflow:hidden;background:white}.sudoku-grid .cell{border-radius:0;border:1px solid #ccd7e7;font-size:clamp(1.05rem,3.2vw,1.7rem);font-weight:500;color:#174ad4;background:#fff}.sudoku-grid .given{color:#243b51;font-weight:750;background:#eff3fa}.sudoku-grid .related{background:#e7f0ff}.sudoku-grid .conflict{color:#b92340;background:#ffe0e6}.sudoku-grid .box-right{border-right:3px solid #476382}.sudoku-grid .box-bottom{border-bottom:3px solid #476382}.sudoku-grid .selected{background:#d0e1ff}.sudoku-notes{display:grid;grid-template-columns:repeat(3,1fr);height:85%;width:85%;font-size:clamp(.45rem,1vw,.75rem);color:#6b7e96;line-height:1.1;align-items:center;text-align:center}.sudoku-keypad{display:flex;gap:5px;justify-content:center;flex-wrap:wrap;margin:18px auto 0}.sudoku-keypad button{min-width:35px;min-height:41px;border:1px solid #bdcde5;background:#fff;border-radius:8px;color:#174ad4;font:700 1.05rem system-ui;cursor:pointer}.sudoku-keypad .erase{font-size:.82rem;padding:0 12px}.picture-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(170px,1fr);gap:22px;max-width:850px;margin:auto}.jigsaw-grid{gap:4px;align-self:start}.jigsaw-grid .cell,.jigsaw-piece,.jigsaw-reference{aspect-ratio:var(--picture-ratio,1)}.jigsaw-grid .cell{border-radius:4px;border:2px solid #bbcee8;background-color:#ffffff55;background-repeat:no-repeat;box-shadow:0 2px 5px #25497016}.jigsaw-grid .cell:not(.picture-empty):hover{filter:brightness(1.1)}.jigsaw-grid .picture-empty{font-size:.75rem;color:#7894ad}.jigsaw-tray{display:grid;gap:5px;margin-top:12px}.jigsaw-piece{border:2px solid #d7c89c;border-radius:4px;background-repeat:no-repeat;padding:0;cursor:grab;background-color:#fff}.jigsaw-piece.selected{border-color:#174ad4;box-shadow:0 0 0 2px #174ad4}.jigsaw-reference{width:100%;object-fit:contain;border-radius:10px;border:3px solid #fff;box-shadow:0 4px 12px #203c6820}.picture-aside p{font-size:.75rem;margin:8px 0}.mines-grid{max-width:570px;gap:3px}.mines-grid .cell{border:1px solid #7893b5;border-bottom-width:3px;background:linear-gradient(140deg,#d2e3fd,#adc8ed);font-size:clamp(.72rem,2vw,1.25rem)}.mines-grid .revealed{border-color:#bdccdf;border-bottom-width:1px;background:#f0f5fc;color:#174ad4}.mines-grid .num-2{color:#137247}.mines-grid .num-3{color:#bd283d}.mines-grid .num-4{color:#7c3ca6}.mines-grid .num-5,.mines-grid .num-6{color:#7e480d}.mines-grid .exploded{background:#e65264;color:#fff}.mosaic-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(160px,.7fr);gap:22px;max-width:780px;margin:auto}.mosaic-grid .cell{background:#f8fbff88;border:1px dashed #7799bd}.mosaic-grid .occupied{border-style:solid;border-color:#ffffffaa;color:#213957;font-size:1rem;font-weight:750}.mosaic-tray{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;align-self:start}.mosaic-piece{min-height:76px;padding:10px;border:2px solid #c4d1e5;background:#fffaf0;border-radius:12px;cursor:pointer;color:#264466;font-size:.7rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.mosaic-piece.selected{border-color:#174ad4;box-shadow:0 0 0 2px #174ad4}.mosaic-piece.placed{background:#e8f2f8}.shape-mini{display:grid;gap:2px;max-width:90px;width:100%;aspect-ratio:1.5}.shape-mini span{border-radius:2px}.palette-0{background:#ffd168!important}.palette-1{background:#79c4f2!important}.palette-2{background:#ec9baa!important}.palette-3{background:#a8d9a5!important}.palette-4{background:#b4a3ec!important}.palette-5{background:#f4b987!important}.palette-6{background:#82d7cc!important}.colors-grid{max-width:515px;gap:5px}.colors-grid .cell{border:2px solid #ffffff;border-bottom:4px solid #ffffff99;border-radius:12px;color:#253a55;text-shadow:0 1px 0 #ffffff66;box-shadow:0 3px 5px #193a6015;font-size:clamp(1rem,3.7vw,2rem)}.colors-grid .cell:hover{filter:brightness(1.08);transform:translateY(-1px)}.color-goals{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-bottom:18px}.color-goals .counter-chip{font-weight:700;border:2px solid white;box-shadow:0 3px 8px #20385415}.color-goals .complete{box-shadow:0 0 0 2px #209166}.lantern-grid{max-width:525px;gap:2px;background:#496084;padding:5px;border-radius:16px}.lantern-grid .cell{border:0;border-radius:5px;background:#203c60;overflow:hidden}.lantern-grid .cell:hover{background:#2c4b72}.lantern-svg{display:block;width:100%;height:100%}.lantern-wire{stroke:#7891ab;stroke-width:11;stroke-linecap:round}.lit .lantern-wire{stroke:#ffda74;filter:drop-shadow(0 0 4px #ffdf8788)}.lantern-node{fill:#56708c;stroke:#91aac2;stroke-width:3}.lit .lantern-node{fill:#ffe184;stroke:#fff3b4;filter:drop-shadow(0 0 6px #ffe89888)}.lantern-svg text{font:700 25px system-ui;fill:#213958;text-anchor:middle;dominant-baseline:central}.chess-grid,.checkers-grid{gap:0;max-width:560px;border:6px solid #a87842;border-radius:10px;overflow:hidden;box-shadow:0 6px 14px #17365925}.chess-grid .cell,.checkers-grid .cell{border:0;border-radius:0;background:#ffedcc}.chess-grid .dark,.checkers-grid .dark{background:#b89068}.chess-grid .cell.selected,.checkers-grid .cell.selected{box-shadow:inset 0 0 0 4px #174ad4;background:#c5dcff}.chess-piece{display:block;width:86%;height:86%;max-width:64px;max-height:76px;z-index:1;pointer-events:none;overflow:visible}.chess-piece *{pointer-events:none}.checker-crown{width:70%;height:70%;pointer-events:none}.coordinate{position:absolute;bottom:2px;left:3px;font:.55rem system-ui;color:#4c4e49}.cell.in-check{background:#ffb6b0}.checker{width:72%;height:72%;border-radius:50%;display:grid;place-items:center;box-shadow:0 4px 0 #1d324a88,0 5px 8px #17395f30;border:3px double #617b94;background:#263e58;color:#ffdc86;font-size:1.35rem;pointer-events:none}.checker.white{background:#fff8dc;border-color:#beaf8a;color:#65553b;box-shadow:0 4px 0 #b19a6e,0 5px 8px #17395f30}.reversi-grid{max-width:540px;background:#075943;gap:2px;padding:5px;border-radius:14px;box-shadow:0 5px 14px #203c5220}.reversi-grid .cell{background:#178365;border:1px solid #2d9b7d;border-radius:3px}.reversi-grid .cell:hover{background:#279e7f}.reversi-grid .legal::after{background:#ffe084b8}.four-grid{max-width:545px;gap:5px;background:#1a56d3;padding:12px;border:5px solid #164ac0;border-radius:20px;box-shadow:0 6px 0 #15376f,0 9px 18px #15376f25}.four-grid .cell{border-radius:50%;border:3px solid #1644aa;background:#e2edff;box-shadow:inset 0 4px 6px #00225444}.four-disc{height:100%;width:100%;border-radius:50%;background:radial-gradient(circle at 32% 25%,#ffe6a5,#f6ba31);border:3px solid #e7a927;box-shadow:inset 0 0 0 4px #fff3cc33}.four-disc.second{background:radial-gradient(circle at 32% 25%,#ffbed7,#ed688e);border-color:#dc537c}.domino-chain{display:flex;gap:4px;align-items:center;overflow-x:auto;min-height:92px;border:1px dashed #7594b3;background:#ffffff33;border-radius:13px;padding:14px}.domino-empty{font-size:.85rem}.domino-tile{display:inline-flex;flex-shrink:0;border:2px solid #d7c796;border-bottom-width:4px;border-radius:7px;background:#fff9e4;padding:4px;box-shadow:0 3px 5px #20385322;color:#284661}.domino-face{width:32px;height:39px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:3px;padding:4px}.domino-face+.domino-face{border-left:1px solid #bdb99e}.pip{border-radius:50%;background:#1c4169}.domino-hand{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:900px;margin:20px auto 0}.domino-hand button{border:2px solid transparent;background:transparent;border-radius:9px;padding:3px;cursor:pointer}.domino-hand button.selected{border-color:#174ad4;background:#ffffff66}.domino-hand button.playable .domino-tile{border-color:#deaa43}.opponent-hand{display:flex;justify-content:center;gap:3px;margin-bottom:14px}.domino-back{width:22px;height:32px;border:2px solid #ffffed;border-radius:4px;background:repeating-linear-gradient(45deg,#356ccb,#356ccb 3px,#5283d5 3px,#5283d5 6px);display:block}.battle-layout{display:grid;grid-template-columns:1fr 1fr;gap:22px;max-width:880px;margin:auto}.battle-grid{gap:2px;max-width:410px}.battle-grid .cell{border:1px solid #739dc5;border-radius:3px;background:#d5e8ff;color:#1c4c7a;font-size:clamp(.7rem,2vw,1.2rem)}.battle-grid .fleet{background:#688cc1;color:#fff;border-color:#486aa1}.battle-grid .hit{background:#f08d9a;color:#812b3d;font-weight:800}.battle-grid .miss{background:#e9f2fb;color:#7089a3}.battle-grid .sunk{background:#da5773;color:white}.battle-grid .cell:hover:not(:disabled){background:#fff0ac}.fleet-picker{display:flex;justify-content:center;gap:5px;flex-wrap:wrap;margin:20px auto 0;max-width:880px}.fleet-picker button{padding:8px;color:#275385;background:#f2f7ff;border:2px solid #b3c9e4;border-radius:7px;cursor:pointer;font-size:.75rem;min-width:34px}.fleet-picker .selected{border-color:#174ad4;background:#d4e3ff}.bg-board{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:2px;max-width:850px;border:7px solid #966a42;background:#cb9f72;border-radius:10px;padding:7px;margin:auto;box-shadow:0 6px 14px #173b5a25}.bg-point{min-width:0;height:170px;border:0;background:#f6deb1;position:relative;padding:7px 0;display:flex;flex-direction:column;align-items:center;gap:0;cursor:pointer;overflow:hidden;color:#324457}.bg-point::before{content:'';position:absolute;inset:0;background:#b75f59;clip-path:polygon(0 0,100% 0,50% 90%);pointer-events:none}.bg-point:nth-child(even)::before{background:#375379}.bg-point.bottom{justify-content:flex-end}.bg-point.bottom::before{clip-path:polygon(0 100%,100% 100%,50% 10%)}.bg-point:nth-child(6),.bg-point:nth-child(18){border-right:4px solid #976b48}.bg-point.selected{outline:3px solid #174ad4;outline-offset:-3px}.bg-point.legal{box-shadow:inset 0 0 0 3px #ffdf6e}.bg-checker{display:block;flex-shrink:0;border-radius:50%;width:80%;aspect-ratio:1;background:#fff5d8;border:2px solid #ac9369;box-shadow:0 2px 2px #372d4633;z-index:1;max-height:26px;max-width:26px}.bg-checker.second{background:#233b59;border-color:#496486}.bg-number{position:absolute;bottom:2px;left:0;right:0;text-align:center;font:700 .65rem system-ui;color:#2c3c4f;background:#ffeccaaa;z-index:2}.bg-point.bottom .bg-number{top:2px;bottom:auto}.bg-count{font:700 .7rem system-ui;color:white;background:#294363;border-radius:20px;padding:2px 5px;z-index:2;margin:3px 0}.dice-button{width:39px;height:39px;border:2px solid #cdb789;border-radius:9px;background:#fff7d5;color:#2e4b6b;cursor:pointer;font:700 1.5rem system-ui}.dice-button.selected{border-color:#174ad4;background:#dce8ff;box-shadow:0 0 0 2px #174ad4}.bg-details{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;font-size:.8rem;margin:18px auto 0}.thinking{font-size:.8rem;color:#174ad4}.collection-table[data-theme=night] .thinking,.collection-table[data-theme=felt] .thinking{color:#ffe088}
@media(max-width:1150px){.collection-layout{grid-template-columns:190px minmax(0,1fr)}.collection-main{padding:25px 22px}.collection-heading{align-items:flex-start;flex-direction:column}.collection-sidebar{padding:24px 10px}.collection-link{font-size:.82rem;gap:7px}.collection-board{padding:22px 16px}.bg-point{height:150px}.picture-layout{gap:14px;grid-template-columns:minmax(0,1.3fr) minmax(140px,1fr)}}
@media(max-width:800px){.collection-layout{display:block}.collection-sidebar{border:0;padding:12px 18px;background:#e9effa}.collection-sidebar nav{display:flex;gap:5px;overflow-x:auto;align-items:center}.collection-sidebar h2{display:none}.collection-link{white-space:nowrap;padding:8px 11px}.collection-link span{font-size:1rem;width:20px}.cards-return{display:inline-block;margin:0 0 6px;font-size:.8rem;padding:6px 10px}.collection-note{display:none}.collection-header{padding:15px 18px;flex-wrap:wrap}.collection-header nav{gap:14px}.collection-main{padding:22px 18px}.collection-heading{flex-direction:row;flex-wrap:wrap}.collection-status{flex-wrap:wrap}.collection-deal{justify-content:flex-start}.collection-board{padding:20px 16px}.collection-dialog{padding:24px}.battle-layout{gap:13px}}
@media(max-width:540px){.collection-header .brand{font-size:1.05rem}.collection-header nav{font-size:.76rem}.collection-main{padding:22px 12px}.collection-heading h1{font-size:1.9rem}.collection-heading p{font-size:.85rem}.collection-toolbar{gap:6px}.collection-toolbar .btn{font-size:.78rem;padding:10px 12px}.theme-label{margin-left:0}.collection-board{padding:18px 10px;min-height:280px}.collection-table{border-radius:16px}.collection-table-footer{padding:12px;gap:9px;font-size:.7rem}.picture-layout{grid-template-columns:1fr}.picture-aside{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:start}.picture-aside p{grid-column:1/-1;margin:0}.jigsaw-tray{margin:0}.mahjong-board{--tile-step:34px;--row-step:49px;--tile-width:31px;--tile-height:44px}.mahjong-tile{font-size:1.1rem;border-width:1px;border-bottom-width:3px;border-radius:5px;box-shadow:2px 3px 0 #aa875c}.mahjong-tile small{font-size:.47rem;bottom:2px;right:3px}.mosaic-layout{grid-template-columns:1fr}.mosaic-tray{grid-template-columns:repeat(4,1fr)}.mosaic-piece{min-height:65px;padding:6px}.mosaic-grid{max-width:360px}.battle-layout{grid-template-columns:1fr}.battle-grid{max-width:360px}.battle-grid .cell{font-size:1rem}.board-caption{margin-top:5px}.bg-board{gap:1px;border-width:4px;padding:3px}.bg-point{height:130px;padding:5px 0}.bg-checker{border-width:1px;max-height:21px}.bg-point:nth-child(6),.bg-point:nth-child(18){border-right-width:2px}.bg-number{font-size:.5rem}.bg-count{font-size:.55rem;padding:1px 3px}.game-controls .btn{font-size:.75rem;padding:8px 10px}.colors-grid{gap:3px}.colors-grid .cell{border-radius:9px;border-width:1px;border-bottom-width:3px}.four-grid{gap:3px;padding:8px;border-width:4px}.four-grid .cell{border-width:2px}.coordinate{font-size:.46rem}.checker{border-width:2px;font-size:1rem}.collection-settings{width:100%}.collection-settings label{flex:1;min-width:125px}.collection-settings .select{width:100%;font-size:.8rem}.sudoku-keypad{gap:4px}.sudoku-keypad button{min-width:28px;min-height:36px;font-size:.95rem}.color-goals{gap:3px}.color-goals .counter-chip{padding:7px 10px;font-size:.7rem}.domino-face{width:28px;height:35px}.domino-hand{gap:5px}.collection-dialog h2{font-size:1.45rem}}
@media(prefers-reduced-motion:reduce){.collection-body *{transition:none!important}}

.sudoku-coach[hidden]{display:none}.sudoku-coach{background:#fff8e7;color:#233950;border:2px solid #e4b04c;border-radius:16px;padding:18px;margin:0 auto 20px;max-width:760px;text-align:left}.sudoku-coach h2{font-size:1.15rem;margin:0 0 9px}.sudoku-coach p{line-height:1.55;margin:8px 0}.coach-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.sudoku-coach .coach-note,.coach-location{font-size:.9rem}.sudoku-grid .cell.coach-unit{background:#fff4d8}.sudoku-grid .cell.coach-target{background:#ffe1a0;box-shadow:inset 0 0 0 3px #976000}.sudoku-grid .cell.coach-target.conflict{box-shadow:inset 0 0 0 3px #b42544}.coach-actions .btn:focus-visible{outline:3px solid #174ad4;outline-offset:3px}@media(max-width:650px){.sudoku-coach{padding:13px}.coach-actions .btn{min-height:44px;flex:1 1 160px}}
.chess-layout{width:100%;max-width:940px;margin:auto;display:flex;flex-direction:column;align-items:center;gap:20px}.chess-sidebar{box-sizing:border-box;width:100%;max-width:560px;min-width:0;background:#fffdf3;color:#203a50;border:1px solid #b9cfe0;border-radius:14px;padding:16px;font:14px/1.5 system-ui,sans-serif}.chess-turn strong{font-size:17px}.chess-turn p,.chess-tip{margin:8px 0 16px}.chess-sidebar .game-controls{margin:16px 0;justify-content:flex-start}.chess-sidebar .game-controls label{display:flex;flex-direction:column;align-items:flex-start;width:100%}.chess-sidebar .select{width:100%}.chess-sidebar .btn{min-height:44px;white-space:normal}.chess-coach[hidden]{display:none}.chess-coach{border-top:1px solid #c7d5df;border-bottom:1px solid #c7d5df;padding:16px 0}.chess-coach h2{font-size:17px;margin:0 0 10px}.chess-proposal{font-weight:750;font-size:16px;color:#174a69}.chess-coach ul{padding-left:20px}.chess-coach li{margin:9px 0}.chess-risk{background:#fff0dc;border-left:3px solid #b87b22;padding:9px}.chess-coach-note,.chess-tip{font-size:13px}.chess-coach .coach-actions{display:grid;gap:8px}.chess-grid .cell.last-move{background:#dceac4}.chess-grid .cell.dark.last-move{background:#90a883}.chess-grid .cell.coach-from{box-shadow:inset 0 0 0 4px #236887}.chess-grid .cell.coach-to{box-shadow:inset 0 0 0 4px #b27417}.chess-grid .cell.in-check{background:#efb0a6}
@media(min-width:1000px){.chess-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;align-items:start}.chess-sidebar{max-width:none}html.km-playing .chess-layout{width:max-content;max-width:100%;grid-template-columns:var(--km-grid-width) var(--km-chess-sidebar-w,260px);align-items:center}html.km-playing .chess-sidebar{max-height:var(--km-fit-height);overflow:auto;overscroll-behavior:contain}}

/* Coordinates stay left-to-right in every language, including Arabic. */
.sea-coordinates{position:relative;padding:20px 0 0 22px;direction:ltr;width:var(--km-sea-width,min(100%,432px));max-width:100%;margin:auto}.sea-columns{position:absolute;left:22px;right:0;top:0;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));height:20px;align-items:center}.sea-rows{position:absolute;left:0;top:20px;bottom:0;width:22px;display:grid;grid-template-rows:repeat(10,minmax(0,1fr));align-items:center}.sea-columns span,.sea-rows span{text-align:center;font:bold .75rem system-ui}.sea-coordinates .battle-grid{margin:0}.battle-grid .cell.chosen-ship{outline:3px solid #e39b14;outline-offset:-4px}.fleet-setup{margin:16px auto 0;padding:12px;border:1px solid currentColor;border-radius:12px}.battle-feedback{margin:0 0 10px;font-weight:700;line-height:1.5}.fleet-selection{margin:0 0 12px;line-height:1.6}.fleet-picker button[aria-pressed=true]{outline:3px solid #e39b14;outline-offset:2px}.fleet-setup .game-controls button{min-height:44px}.fleet-setup .fleet-picker button{min-width:44px;min-height:44px}

.fleet-editor-help{font-size:.85rem;line-height:1.5;margin:10px 0}.battle-grid .cell.fleet-preview-valid,.battle-grid .cell.fleet-preview-valid:hover:not(:disabled){background:#c6efd4;color:#174629;box-shadow:inset 0 0 0 3px #247642}.battle-grid .cell.fleet-preview-invalid,.battle-grid .cell.fleet-preview-invalid:hover:not(:disabled){background:#fbd3d5;color:#7d1728;box-shadow:inset 0 0 0 3px #b1283e}.battle-grid .cell[data-preview=valid]::after{content:'✓';font-size:.7rem}.battle-grid .cell[data-preview=invalid]::after{content:'×';font-size:.7rem}.battle-grid .cell[data-preview]:not([data-preview=""]):not(:focus-visible){outline:none}.battle-grid .cell[data-preview]:focus-visible{outline:3px solid #174ad4;outline-offset:2px;z-index:1}.battle-layout .fleet-setup{width:100%;box-sizing:border-box}.battle-layout .fleet-selection{font-size:.9rem}.battle-layout .fleet-picker{flex-wrap:wrap}

html.km-playing .fleet-setup{font-size:.85rem}html.km-playing .fleet-setup .fleet-selection{font-size:.8rem}html.km-playing .fleet-setup .game-controls{margin-top:10px}html.km-playing .fleet-setup .fleet-picker{margin-top:10px}@media(pointer:coarse){.fleet-keyboard-help{display:none}}
html.km-playing.km-phone-landscape .battle-layout.fleet-editing{grid-template-columns:1fr}html.km-playing.km-phone-landscape .fleet-editing .battle-field:first-child{display:grid;grid-template-columns:calc(var(--km-grid-width) + 22px) minmax(0,1fr);gap:0 14px;align-items:start}html.km-playing.km-phone-landscape .fleet-editing .battle-field:first-child>.board-caption{grid-column:1;grid-row:1}html.km-playing.km-phone-landscape .fleet-editing .sea-coordinates{grid-column:1;grid-row:2}html.km-playing.km-phone-landscape .fleet-editing .fleet-setup{grid-column:2;grid-row:1/3;margin:0;max-height:var(--km-fleet-panel-height);overflow:auto;overscroll-behavior:contain}html.km-playing.km-phone-landscape .fleet-keyboard-help{display:none}@media(max-width:899px){html.km-playing .battle-layout.fleet-editing{grid-template-columns:1fr}html.km-playing .battle-layout.fleet-editing>.battle-field:nth-child(2){display:none}}
