/* Oyun 08 — Kakurasu. No dependencies on other games. */
.kk-catalog-art{background:linear-gradient(140deg,#ecf6dc,#d6eedb);color:#356c4b;display:grid;place-items:center;overflow:hidden}
.kk-catalog-demo{display:grid;grid-template-columns:repeat(4,29px);grid-template-rows:repeat(4,29px);gap:3px;transform:scale(1.1)}
.kk-catalog-demo i{font:800 1rem/29px Nunito,Arial,sans-serif;text-align:center;font-style:normal;background:#fff;border-radius:4px;border:1px solid #acc9ae}
.kk-catalog-demo i.shaded{background:#4c9277}
.kk-catalog .catalog-open{color:#287453}
.kk-game .playground{flex:1;min-height:0;display:flex;justify-content:center;align-items:center}
.kk-play-area{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:8px 12px}
.kk-board{--kk-n:5;--kk-size:500px;display:grid;grid-template-columns:repeat(var(--kk-n),minmax(0,1fr));grid-template-rows:repeat(var(--kk-n),minmax(0,1fr));width:var(--kk-size);height:var(--kk-size);min-width:0;min-height:0;border:4px solid #263e54;background:#fff;border-radius:15px;box-sizing:border-box;overflow:hidden;box-shadow:0 0 0 5px #e0eee8,0 10px 23px #25433425}
.kk-cell,.kk-hint{min-width:0;min-height:0;display:grid;place-items:center;padding:0;cursor:pointer;user-select:none;touch-action:manipulation;border:1px solid #b7cbd0;background:#fafdfc;color:#183e45;font:850 clamp(.9rem,2.45vmin,1.45rem)/1 Nunito,Arial,sans-serif}
.kk-hint{background:#e5f0e9;color:#1b6250;cursor:default}.kk-hint.kk-target{background:#d0e6db}.kk-hint.kk-weight{background:#edf1f4;color:#425b6f}.kk-cell.shaded{background:#267e70;box-shadow:inset 0 0 0 2px #fff5}.kk-cell.crossed{background:#f0f6f7;color:#78949c;font-size:1.5rem}.kk-cell:focus-visible{outline:3px solid #f6a34e;outline-offset:-3px}.kk-cell:hover:not(:disabled){filter:brightness(.95)}
.kk-tools{display:flex;gap:7px;justify-content:center}.kk-tools button{background:#f4faf8;color:#285c50;border:1px solid #b6d3cc;border-radius:9px;font:800 .85rem Nunito,Arial,sans-serif;min-height:36px;padding:6px 14px;cursor:pointer}.kk-tools button.selected{background:#0b8d84;color:#fff;border-color:#06756d;box-shadow:0 3px 0 #075f58}.kk-controls{display:flex;justify-content:center;gap:8px}.kk-controls .btn{min-width:100px;min-height:39px}.kk-race-area{gap:8px}.kk-race-board{--kk-size:330px}.kk-race-area .kk-tools button{padding:4px 9px;min-height:29px;font-size:.75rem}.kk-race-area .race-actions .btn{min-height:35px}
.kk-command-bar #kk-new,.kk-command-bar #kk-settings{background:#0e928b!important;color:#fff!important;border-color:#0c706a;box-shadow:0 4px 0 #096b65}.kk-command-bar #kk-new:hover,.kk-command-bar #kk-settings:hover{background:#086e67!important;color:#fff!important}
.kk-race-stage .race-center-new{background:#0b9d85!important;color:#fff!important}
html[data-theme="dark"] .kk-catalog-art{background:linear-gradient(140deg,#273c32,#39543c);color:#d3f5d6}
html[data-theme="dark"] .kk-board{border-color:#9bbcb1;box-shadow:0 0 0 5px #2c4943;background:#243d3a}
html[data-theme="dark"] .kk-cell{background:#2f4a4b;color:#e8fbf6;border-color:#64827b}html[data-theme="dark"] .kk-hint{background:#41635d;color:#f2fff8;border-color:#779d90}
html[data-theme="dark"] .kk-cell.shaded{background:#29a08b}html[data-theme="dark"] .kk-cell.crossed{background:#34454f;color:#d0ecf5}
html[data-theme="dark"] .kk-tools button{background:#30544e;color:#e7fbf2;border-color:#6b9990}html[data-theme="dark"] .kk-tools button.selected{background:#167e78;color:#fff}
html[data-theme="dark"] .kk-controls .btn.glass,html[data-theme="dark"] .kk-race-area .btn.glass{background:#30554d!important;color:#fff!important;border-color:#6da59a!important}
@media(max-width:700px){.kk-board{border-width:3px;border-radius:10px}.kk-controls .btn{min-width:77px;font-size:.78rem;min-height:32px}.kk-tools button{padding:5px 10px;min-height:30px;font-size:.76rem}}
@page kakurasuA4{size:A4 portrait;margin:5mm}
@media print{
.kk-print-sheet{page:kakurasuA4;width:200mm!important;height:287mm!important;max-height:287mm!important}
.kk-print-sheet .sheet-head{height:25mm!important;min-height:25mm!important;padding-top:.25mm}
.kk-print-sheet .sheet-head h1{font-size:18pt!important}.kk-print-sheet .print-howto{font-size:8.5pt!important;margin-top:1mm!important}.kk-print-sheet .print-rule{font-size:9pt!important;margin-top:.5mm!important}
.kk-print-body{flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:1.5mm;min-height:0;align-items:center;justify-items:center}
.kk-print-card{width:64.3mm;height:76.3mm;max-width:100%;display:flex;align-items:center;justify-content:center;border:.28mm solid #888;border-radius:1.6mm;break-inside:avoid}
.kk-print-grid{width:59mm;height:59mm;display:grid;grid-template-columns:repeat(var(--kk-n),minmax(0,1fr));grid-template-rows:repeat(var(--kk-n),minmax(0,1fr));border:.4mm solid #333}
.kk-print-cell,.kk-print-hint{display:grid;place-items:center;border:.15mm solid #999;color:#111;font:800 11pt/1 Arial,sans-serif}.kk-print-hint{background:#eaeaea!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.kk-print-cell.shaded{background:#333!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.kk-print-sheet .sheet-footer{height:8mm}
}
/* Keep clue numbers fully opaque even when globally disabled controls are dimmed. */
.kk-board .kk-hint:disabled{opacity:1!important;color:#225b4e!important}
.kk-board .kk-hint.kk-weight:disabled{color:#2b4d5d!important;background:#e8eef2!important}
.kk-board .kk-hint.kk-target:disabled{color:#075f50!important;background:#d2e9df!important}
html[data-theme="dark"] .kk-board .kk-hint:disabled{color:#f3fbff!important}
html[data-theme="dark"] .kk-board .kk-hint.kk-weight:disabled{background:#3c5361!important;color:#f1f6ff!important}
html[data-theme="dark"] .kk-board .kk-hint.kk-target:disabled{background:#416f65!important;color:#f5fff9!important}
