:root{font-family:Segoe UI,Arial,sans-serif;color:#192934;background:#f7f6f2;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.topbar,footer{max-width:1200px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:26px 40px}.topbar{border-bottom:1px solid #dddeda}.brand{color:#192934;font-size:26px;font-weight:850;text-decoration:none;letter-spacing:2px}.brand span{font-size:10px;font-weight:650;letter-spacing:3px;margin-left:18px;color:#6b7478}.version{font-size:12px;background:#eaece6;border-radius:30px;padding:8px 13px;color:#536156}main{max-width:1120px;margin:54px auto 48px;padding:0 32px;display:grid;grid-template-columns:1fr 1fr;gap:76px;align-items:center}.eyebrow{color:#9b4a12;font-size:11px;font-weight:750;letter-spacing:2px;margin:0 0 18px}h1{font-size:clamp(36px,4vw,54px);letter-spacing:-2px;line-height:1.08;margin:0 0 20px;font-weight:750}.lead{color:#67737a;font-size:17px;line-height:1.65;margin-bottom:28px}.players{display:grid;gap:10px}.player{position:relative;display:flex;align-items:center;gap:16px;padding:14px;background:#fff;border:1px solid #e3e4de;border-radius:14px}.player img{width:45px;height:52px;object-fit:contain}.player small{display:block;font-size:9px;letter-spacing:1.5px;color:#6b7478;margin-bottom:4px}.player strong{display:block;font-size:14px}.player div>span{display:block;font-size:12px;color:#6b7478;margin-top:3px}.player.active.orange{border-color:#e58a42;box-shadow:0 0 0 2px #e58a4212}.player.active.blue{border-color:#008abb;box-shadow:0 0 0 2px #008abb12}.turn-label{position:absolute;right:12px;top:13px;font-size:9px;letter-spacing:.6px;color:#616b70}.rules{margin-top:28px;max-width:390px}.rules h2{font-size:13px;margin-bottom:8px}.rules p{font-size:13px;line-height:1.65;color:#657078;margin:0}.rules .keyboard{font-size:11px;margin-top:12px;color:#727d83}.game{background:#fff;padding:26px;border:1px solid #e5e5df;border-radius:24px;box-shadow:0 18px 50px #293b4110}.game-heading{display:flex;justify-content:space-between;align-items:center}.game-heading h2{font-size:16px;margin:0}.game-heading>span{font-size:12px;color:#748087}.status{padding:14px 16px;background:#fff3e7;border-radius:10px;margin:20px 0;font-size:14px;font-weight:650;color:#91420b;min-height:47px}.status.blue{background:#edf7fc;color:#075b83}.status.finished{background:#ecf5ed;color:#2e623c}.board{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.cell{position:relative;aspect-ratio:1;border:1px solid #dfe4e5;border-radius:13px;background:white;cursor:pointer;padding:9px;min-width:0;display:grid;place-items:center;transition:border-color .15s,box-shadow .15s}.cell[aria-disabled="false"]:hover{border-color:#ee994e;box-shadow:inset 0 0 0 1px #ee994e;background:#fffaf5}.cell[aria-disabled="true"]{cursor:default}.cell .empty{width:5px;height:5px;background:#d7ddde;border-radius:50%}.cell img{display:block;width:100%;height:100%;max-height:100px;object-fit:contain}.cell .number{position:absolute;bottom:5px;right:7px;font-size:10px;font-weight:750;color:#53616b}.cell.winner{border:2px solid #469960;box-shadow:0 0 0 2px #46996022}.cell:focus-visible,.restart:focus-visible,.brand:focus-visible{outline:3px solid #096cba;outline-offset:3px}.game-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:22px;gap:12px}#move-count{font-size:12px;color:#758087}.restart{border:0;border-radius:10px;background:#203642;color:#fff;font:600 13px Segoe UI,Arial,sans-serif;cursor:pointer;padding:12px 19px}.restart:hover{background:#334e5e}.restart span{margin-left:20px}.hint{font-size:11px;text-align:center;line-height:1.5;color:#788186;margin:18px 0 0;min-height:33px}footer{border-top:1px solid #dddeda;color:#7b8487;font-size:11px;gap:20px}@media(max-width:800px){main{gap:28px;margin-top:32px;padding:0 22px}.topbar,footer{padding:22px}.brand span{display:none}.game{padding:18px}.turn-label{position:static;margin-left:auto}.player{gap:8px}.player div>span{display:none}}@media(max-width:620px){main{grid-template-columns:1fr;max-width:470px}.intro h1 br{display:none}.lead br{display:none}.rules{margin-top:18px}.game{order:0}footer{flex-direction:column;align-items:flex-start;gap:6px}}
/* Nastavení hry a větší desky */
.settings{margin-top:26px;padding-top:20px;border-top:1px solid #dddeda}.settings h2{font-size:16px;margin:0 0 16px}.setting-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.setting-fields label{font-size:12px;font-weight:600}.setting-fields select{display:block;width:100%;margin-top:7px;border:1px solid #bbc5c9;border-radius:8px;background:#fff;color:#192934;font:inherit;font-size:14px;padding:10px}.settings-note{font-size:12px;line-height:1.5;color:#536169;min-height:36px;margin:10px 0}.apply{width:100%;background:#ac4c08;color:#fff;border:0;border-radius:9px;padding:12px;font:600 13px Segoe UI,Arial,sans-serif;cursor:pointer}.apply:hover{background:#8d3e06}.apply:focus-visible,select:focus-visible{outline:3px solid #096cba;outline-offset:3px}.board{grid-template-columns:repeat(var(--size,3),minmax(0,1fr))}.board-scroll{overflow:auto;padding:5px;margin:-5px}.game{min-width:0}.game-heading{gap:12px;flex-wrap:wrap}.game-heading>span{white-space:nowrap}.large-board main{max-width:1480px;grid-template-columns:340px minmax(0,1fr);gap:36px;align-items:start}.large-board .board{gap:5px;min-width:calc(var(--size)*42px + (var(--size) - 1)*5px)}.large-board .cell{padding:5px;border-radius:7px}.large-board .cell img{max-height:100%;min-height:0}.cell img{pointer-events:none;user-select:none}.cell.last-move:not(.winner){border-style:dashed;border-color:#536b7b;border-width:2px}.dense .cell{padding:3px}.dense .cell .number{bottom:1px;right:2px;font-size:9px;background:#fff;border-radius:3px;padding:0 2px}.noscript{padding:24px;text-align:center}.large-board .hint{margin-bottom:0}@media(max-width:1050px){.large-board main{grid-template-columns:280px minmax(0,1fr);gap:24px}.large-board h1{font-size:36px}.large-board .player div>span{display:none}.large-board .turn-label{position:static;margin-left:auto}}@media(max-width:760px){.large-board main{grid-template-columns:1fr;max-width:740px}.large-board .intro{max-width:470px}.large-board .game{width:100%}}@media(prefers-reduced-motion:reduce){.cell{transition:none}}
/* Obrázky nesmějí svou původní velikostí roztahovat buňky velké desky. */
.cell img,.large-board .cell img{position:absolute;inset:7px;width:calc(100% - 14px);height:calc(100% - 14px);max-height:none;object-fit:contain}.dense .cell img{inset:3px;width:calc(100% - 6px);height:calc(100% - 6px)}
