:root{color-scheme:dark;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
html:root[data-kit-motyw=ciemny]{--kit-tlo:#0c140f;--kit-tlo2:#2a1e17;--kit-tlo3:#3a2a1f;--kit-tekst:#f6ead5;--kit-tekst2:#d6c3a3;--kit-tekst3:#a8957a;--kit-akcent:#e2c27f;--kit-akcent2:#b0823f;--kit-linia:#c9a46a40}
html:root[data-kit-motyw=jasny]{--kit-tlo:#efe6d6;--kit-tlo2:#fbf6ec;--kit-tlo3:#efe3cc;--kit-tekst:#2b2016;--kit-tekst2:#5a4a38;--kit-tekst3:#7d6a54;--kit-akcent:#9a6a26;--kit-akcent2:#7a4f18;--kit-linia:#8a6a3c40}
html[data-kit-motyw=jasny] body .kit-warstwa--swiat{--kit-tlo2:#fbf6ec;--kit-tlo3:#efe3cc;--kit-tekst:#2b2016;--kit-tekst2:#5a4a38;--kit-tekst3:#7d6a54;--kit-linia:#8a6a3c40;background:linear-gradient(to bottom,#2b201626,#2b201640)}
html[data-kit-motyw=ciemny] body .kit-warstwa--swiat{--kit-tlo2:#2a1e17;--kit-tlo3:#3a2a1f;--kit-tekst:#f6ead5;--kit-tekst2:#d6c3a3;--kit-linia:#c9a46a40}
body{margin:0;background:#0a2414}
body .kit-toast{bottom:calc(150px + var(--kit-safe-dol,0px));border-radius:12px;max-width:calc(100% - 32px);width:max-content;pointer-events:none}
.kit-tytul{font-family:Georgia,'Times New Roman',serif!important;font-weight:500!important;letter-spacing:-.03em!important}
.kit-karta{border-color:#c9a46a55!important}
.kit-btn--glowny{background:linear-gradient(135deg,#ecd29a,#b98b45)!important;color:#22170e!important}
.kierki-gl{position:absolute;inset:0;display:block;touch-action:none;user-select:none;-webkit-user-select:none;outline:none}

/* seats: the four players around the table with the original cameo portraits */
.vk-seats{position:fixed;top:calc(10px + var(--kit-safe-gora,0px));left:calc(62px + var(--kit-safe-lewo,0px));right:calc(62px + var(--kit-safe-prawo,0px));display:flex;flex-wrap:wrap;justify-content:center;gap:8px;z-index:9;pointer-events:none}
.vk-seats[hidden]{display:none}
.vk-seat{display:flex;align-items:center;gap:8px;padding:4px 12px 4px 4px;border-radius:999px;background:linear-gradient(180deg,#2a1d16f2,#1a120ef2);border:1px solid #c9a46a40;color:#f6ead5;box-shadow:0 6px 18px #0008;transition:transform .25s,box-shadow .25s}
.vk-avatar{width:36px;height:36px;border-radius:50%;flex:none}
.vk-seat b{font-weight:650;font-size:14px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vk-seat small{font-variant-numeric:tabular-nums;font-size:12px;font-weight:700;color:#1f150e;background:linear-gradient(135deg,#ecd29a,#b98b45);border-radius:999px;padding:2px 8px}
.vk-seat small i{font-style:normal;color:#8a1f2b}
.vk-seat--me b{color:#f2d394}
.vk-seat--on{border-color:#e2c27f;box-shadow:0 0 0 2px #e2c27f,0 8px 26px #e2c27f40;transform:translateY(2px)}
.vk-seat--won{border-color:#ffe2a8;box-shadow:0 0 0 2px #ffe2a8,0 0 30px #ffd06a80}

/* tray: hint on the left, what to do now, the pass button under the thumb, the score table */
.vk-tray{position:fixed;bottom:calc(12px + var(--kit-safe-dol,0px));left:calc(12px + var(--kit-safe-lewo,0px));right:calc(12px + var(--kit-safe-prawo,0px));display:flex;align-items:center;gap:10px;z-index:11;pointer-events:none}
.vk-tray[hidden]{display:none}
.vk-status{flex:1;min-width:0;margin:0;text-align:center;font-size:14px;font-weight:550;line-height:1.3;color:#f6ead5;background:#160f0cd9;border:1px solid #c9a46a33;border-radius:999px;padding:8px 12px;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vk-action{pointer-events:auto;appearance:none;flex:none;min-height:50px;padding:10px 20px;border-radius:999px;border:0;font:700 16px/1 system-ui;color:#22170e;background:linear-gradient(180deg,#fbe6b2,#d7aa5c 55%,#b3843c);box-shadow:0 0 0 3px #1a120ecc,0 0 0 4px #e2c27f99,0 10px 24px #000b,inset 0 1px 0 #fff8e0;cursor:pointer}
.vk-action[hidden]{display:none}
.vk-action:disabled{filter:grayscale(.55) brightness(.75);opacity:.75;cursor:default}
.vk-action:not(:disabled){animation:vk-puls 1.5s ease-in-out infinite}
@keyframes vk-puls{50%{box-shadow:0 0 0 3px #1a120ecc,0 0 0 5px #ffe2a8,0 0 34px #ffb34799,0 10px 24px #000b}}
.vk-tool{pointer-events:auto;appearance:none;display:grid;place-items:center;width:46px;height:46px;flex:none;border-radius:50%;border:1px solid #c9a46a55;background:linear-gradient(180deg,#2a1d16f0,#1a120ef0);box-shadow:0 6px 16px #0009;cursor:pointer}
.vk-tool svg{width:22px;height:22px;fill:none;stroke:#e2c27f;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.vk-tool[hidden]{display:none}
.vk-action:focus-visible,.vk-tool:focus-visible{outline:3px solid var(--kit-akcent);outline-offset:3px}
.vk-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* dialogs: modes as cards, the score table */
.vk-goal{margin:0 0 12px;color:var(--kit-tekst2);font-size:14px}
.vk-chips{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:0 0 12px}
.vk-chip input{position:absolute;opacity:0;pointer-events:none}
.vk-chip span{display:flex;flex-direction:column;gap:4px;height:100%;box-sizing:border-box;padding:10px 12px;border-radius:14px;border:1px solid var(--kit-linia);color:var(--kit-tekst2);cursor:pointer}
.vk-chip b{color:var(--kit-tekst);font-size:14px}
.vk-chip small{font-size:12px;line-height:1.35}
.vk-chip input:checked+span{background:#3a2a1f;border-color:var(--kit-akcent);box-shadow:0 0 0 1px var(--kit-akcent)}
html[data-kit-motyw=jasny] .vk-chip input:checked+span{background:#f3e2c1}
.vk-chip input:focus-visible+span{outline:3px solid var(--kit-akcent);outline-offset:2px}
.vk-field{border:0;margin:0 0 10px;padding:0}
.vk-field[hidden]{display:none}
.vk-field legend{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--kit-tekst3);margin-bottom:6px;padding:0}
.vk-rules{margin:0 0 14px;padding-left:20px;color:var(--kit-tekst2);line-height:1.45;font-size:14px}
.vk-rules li{margin-bottom:6px}
.vk-table{width:100%;border-collapse:collapse;margin:0 0 14px;font-variant-numeric:tabular-nums;font-size:14px}
.vk-table th,.vk-table td{padding:6px 8px;text-align:center;border-bottom:1px solid var(--kit-linia)}
.vk-table th{color:var(--kit-tekst3);font-weight:600}
.vk-table .vk-total td{font-weight:800;color:var(--kit-tekst)}
.vk-moon{color:var(--kit-akcent);font-weight:800}
@media (max-width:520px){.vk-tray{flex-wrap:wrap;justify-content:space-between}.vk-status{order:-1;flex-basis:100%}.vk-seats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;left:calc(8px + var(--kit-safe-lewo,0px));right:calc(58px + var(--kit-safe-prawo,0px))}.vk-seat{gap:6px;min-width:0;padding:3px 9px 3px 3px}.vk-avatar{width:30px;height:30px}.vk-seat b{font-size:12.5px;max-width:none;flex:1;min-width:0}.vk-seat small{font-size:11px;padding:1px 6px}.vk-action{font-size:15px;padding:10px 14px}}
@media (prefers-reduced-motion:reduce){.vk-action:not(:disabled){animation:none}}
/* the learning hand's coach: top left beside the table on a wide screen (never over the hand), under the seats on a
   phone or a narrow window */
.vk-coach{position:fixed;z-index:12;left:calc(16px + var(--kit-safe-lewo,0px));top:var(--vk-coach-top,72px);width:min(300px,calc(100% - 32px));box-sizing:border-box;padding:14px 16px;border-radius:16px;background:linear-gradient(180deg,#2a1d16f7,#1a120ef7);border:1px solid #e2c27f88;box-shadow:0 14px 34px #000c;color:#f6ead5;animation:vk-coach-in .3s ease both}
.vk-coach[hidden],.vk-coach--off{display:none}
.vk-coach b{display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#e2c27f;margin-bottom:6px}
.vk-coach p{margin:0 0 12px;font-size:15px;line-height:1.45}
.vk-coach .kit-btn{width:auto;min-height:40px;padding:8px 18px}
@keyframes vk-coach-in{from{opacity:0}to{opacity:1}}
@media (max-width:1279px),(orientation:portrait){.vk-coach{left:50%;top:var(--vk-coach-top,96px);transform:translateX(-50%);width:min(440px,calc(100% - 24px))}}
@media (prefers-reduced-motion:reduce){.vk-coach{animation:none}}
/* tricks taken: a small card with the count; the taker's seat flashes gold when the trick is swept to it */
.vk-taken{font-style:normal;font-size:11px;font-weight:700;color:#f6ead5;display:inline-flex;align-items:center;gap:3px}
.vk-taken::before{content:"";width:8px;height:11px;border-radius:2px;background:linear-gradient(160deg,#1f5a40,#0f3324);border:1px solid #e2c27f99}
.vk-seat--took{animation:vk-took 1.4s ease-out}
@keyframes vk-took{0%,40%{box-shadow:0 0 0 3px #ffd57a,0 0 30px #ffd57aaa}100%{box-shadow:none}}
@media (prefers-reduced-motion:reduce){.vk-seat--took{animation:none;box-shadow:0 0 0 3px #ffd57a}}
/* the end screen lists score, progress and the daily deal on their own lines */
.kit-pod{white-space:pre-line}
/* the collection: felts with a swatch (locked ones say how many badges open them) and the badge list */
.vk-felt i{display:inline-block;width:14px;height:14px;border-radius:50%;margin-right:6px;vertical-align:-2px;border:1px solid #e2c27f88}
.vk-felt input:disabled+span{opacity:.5;cursor:not-allowed}
.vk-badges{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:6px}
.vk-badges li{font-size:13px;line-height:1.35;padding:7px 10px 7px 30px;border-radius:10px;border:1px solid #0000001f;position:relative;opacity:.55}
.vk-badges li::before{content:"";position:absolute;left:10px;top:9px;width:12px;height:12px;border-radius:50%;border:1.5px solid currentColor}
.vk-badges li.vk-badge--on{opacity:1;border-color:#c9a46a}
.vk-badges li.vk-badge--on::before{background:#c9a46a;border-color:#c9a46a}
