/* =========================================================
   🧸 Školka – velké, barevné, bez čtení (navazuje na style.css: barvy, písma, tmavý režim)
   ========================================================= */
body.skolka { --sk-yellow: #ffd23f; --sk-radius: 26px; min-height: 100dvh; }
.skolka .hidden { display: none !important; }

.sk-top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px;
  margin: 8px; padding: 6px 10px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow);
}
.sk-brand { display: flex; align-items: center; gap: 8px; flex: 1; font: 800 1.25rem var(--font-head); color: var(--text); }
.sk-brand img { width: 40px; height: 40px; border-radius: 50%; }
.sk-brand b { color: var(--primary); }
/* 🌐 podtitulek „učení s Matym / s Terezkou“ pod názvem */
.sk-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.sk-brand-text small { font: 700 .72rem var(--font-head); color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.sk-round { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--border); background: var(--card); font-size: 1.4rem; cursor: pointer; }
.sk-stars { font: 800 1.2rem var(--font-head); color: var(--text); padding: 4px 12px; border-radius: 999px; background: var(--almost-bg); }

.sk-main { max-width: 900px; margin: 0 auto; padding: 8px 12px 40px; }
.sk-card { margin: 20px auto; max-width: 520px; padding: 24px; border-radius: var(--sk-radius); background: var(--card); box-shadow: var(--shadow); text-align: center; }
.sk-card h1 { font: 800 2rem var(--font-head); margin: 0 0 8px; }
#sk-login-form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
#sk-login-form input { flex: 1 1 200px; font-size: 1.3rem; text-align: center; }

/* výběr kategorie */
.sk-hello { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 4px 16px; font: 800 1.4rem var(--font-head); color: var(--text); }
.sk-level { font-size: 1rem; padding: 3px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); }
.sk-cat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.sk-cat {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px;
  border: 3px solid var(--border); border-radius: var(--sk-radius); background: var(--card); color: var(--text); cursor: pointer;
  transition: transform .12s, border-color .12s;
}
.sk-cat:hover, .sk-cat:focus-visible { transform: translateY(-3px) scale(1.02); border-color: var(--primary); }
.sk-cat-pics { display: flex; gap: 4px; font-size: 3.2rem; line-height: 1; }
.sk-cat-pic.color-swatch { width: 3rem; height: 3rem; border-radius: 50%; display: inline-block; }
.sk-cat-name { font: 800 1.3rem var(--font-head); }

/* 🎓 ročníky (🧸 Školka / 🎒 Předškoláček) – velké přepínací tlačítko */
.sk-grades { display: flex; gap: 10px; margin: 0 4px 16px; }
.sk-grade {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px;
  border: 3px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text);
  font: 800 1.25rem var(--font-head); cursor: pointer;
}
.sk-grade-emoji { font-size: 1.8rem; line-height: 1; }
.sk-grade.selected { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
/* předměty: velké dlaždice (počítač), u předškoláčka barevné oblasti */
.sk-subjects { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.sk-subject-tile { --subject: var(--primary); border-color: color-mix(in srgb, var(--subject) 45%, var(--border)); background: linear-gradient(160deg, var(--card) 55%, color-mix(in srgb, var(--subject) 14%, var(--card))); }
.sk-subject-tile .sk-cat-pics { font-size: 4rem; }
.sk-subject-tile:hover, .sk-subject-tile:focus-visible { border-color: var(--subject); }
.sk-subject-page { --subject: var(--sk-yellow); }
.sk-flag { width: 1.4em; height: auto; border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.sk-cat-pics.sk-flag { width: 5.2rem; }
.sk-subject-title { display: flex; align-items: center; gap: 10px; margin: 0 4px 14px; font: 800 1.8rem var(--font-head); }
.sk-subject-icon { font-size: 2.2rem; line-height: 1; }
.sk-subject-icon.sk-flag { width: 2.6rem; }

/* 📱 lišta s předměty dole – jen tablet a telefon (na počítači dlaždice) */
.sk-tabbar { display: none; }
@media (max-width: 900px) {
  .sk-tabbar:not(.hidden) {
    position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 20; display: flex; gap: 4px;
    padding: 6px; border-radius: 24px; background: var(--card); box-shadow: 0 -2px 18px rgba(40, 50, 110, .18);
  }
  .sk-tab {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px;
    border: none; border-radius: 18px; background: transparent; color: var(--muted); font: 800 .78rem var(--font-head); cursor: pointer;
  }
  .sk-tab-icon { font-size: 1.9rem; line-height: 1.1; }
  .sk-tab-icon.sk-flag { width: 2.1rem; margin: 4px 0; }
  .sk-tab-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sk-tab.selected { background: var(--primary-soft); color: var(--primary-dark); }
  body.sk-with-tabbar .sk-main { padding-bottom: 110px; }
  /* 🧪 štítek TEST nad lištou (jinak zakryje první předmět) */
  body.sk-with-tabbar .env-badge { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* 🔢 / 🎨 ťukací hry (skolka-ukoly.js) */
.sku-objects { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0; }
.sku-thing {
  position: relative; width: 84px; height: 84px; border: 3px dashed transparent; border-radius: 22px; background: var(--card);
  font-size: 3.4rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 0 var(--primary-soft);
}
.sku-thing.sku-counted { border-color: var(--primary); }
/* počítané věci mají v rohu číslo */
.sku-thing.sku-counted::after {
  content: attr(data-n); position: absolute; right: -6px; top: -8px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: #fff; font: 800 1rem var(--font-head);
}
.sku-thing.sk-lit { animation: sk-lit .6s ease-out; }
/* 🔢 velké číslo uprostřed při společném počítání (Kolik jich je?) */
.sku-bignum {
  width: 110px; height: 110px; margin: 4px auto 8px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: #fff; font: 800 4.4rem/1 var(--font-head);
  box-shadow: 0 8px 24px rgba(40, 50, 110, .35); pointer-events: none;
}
/* ⚖️ číslo uprostřed hromádky pod věcmi (nic nezakryje) */
.sku-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.sku-bignum.sku-bignum-over { width: 76px; height: 76px; margin: 0; font-size: 3rem; }
.sku-bignum.sku-bignum-pop { animation: sku-bignum-pop .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes sku-bignum-pop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.sku-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 16px 0 8px; }
.sku-choice {
  border: 3px solid var(--primary); border-radius: 24px; background: var(--card); color: var(--text); cursor: pointer;
  box-shadow: 0 6px 0 var(--primary-soft); transition: transform .1s, opacity .2s;
}
.sku-choice:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--primary-soft); }
.sku-choice.sk-shake { animation: shake .45s ease-in-out; border-color: var(--almost); }
.sku-choice.sku-right { border-color: var(--ok); background: var(--ok-bg, #dcfce7); animation: pop .35s ease-out; }
.sku-choice.sku-faded { opacity: .3; }
/* ✕ Konec hry vedle ukazatele postupu (skolka.js skQuit) */
.sk-play-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; }
.sk-play-head .sk-progress { flex: 1; margin: 0; }
.sk-quit { flex: none; padding: 6px 14px; border: 2px solid var(--border); border-radius: 999px; background: var(--card); color: var(--muted); font: 800 .95rem var(--font-head); cursor: pointer; }
.sk-quit:hover { border-color: var(--primary); color: var(--primary); }
/* ❌ už zkoušená špatná volba: červený rámeček a malý křížek v rohu (skolka-ukoly.js skuAnswer) */
.sku-choice { position: relative; }
.sku-choice.sku-wrong { border-color: var(--wrong, #e5484d); box-shadow: 0 6px 0 rgba(229, 72, 77, .25); }
.sku-choice.sku-wrong::after {
  content: '✕'; position: absolute; top: 6px; right: 6px; z-index: 2; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wrong, #e5484d); color: #fff; font: 800 .95rem/1 var(--font-head);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2); pointer-events: none;
}
/* 👆 Ukaž na… (část obrázku v SVG – pseudoprvek tam nejde): červená záře */
.skt-part.sku-wrong { filter: drop-shadow(0 0 3px #e5484d) drop-shadow(0 0 6px #e5484d); }
.sku-number { width: 104px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sku-number b { font: 800 3rem/1 var(--font-head); }
/* tečky pod číslem: kolečka pevné velikosti (ne znak ● – iPhone ho kreslí širší), od 6 ve dvou řadách */
.sku-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; max-width: 100%; padding: 2px 4px; }
.sku-dots-2 { max-width: calc(3 * 9px + 2 * 3px + 8px); }
.sku-dot { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
/* ✋ dvě ruce (skolka-ukoly.js skuHand) – zvednutý prstík jde ťuknout a počítat */
.sku-hands { display: flex; justify-content: center; gap: 4%; margin: 8px 0; }
.sku-hand { width: min(40%, 230px); }
.sku-hand svg { display: block; width: 100%; height: auto; }
.sku-finger { cursor: pointer; transition: fill .2s; }
.sku-finger.sku-counted { fill: #fde68a; stroke: var(--primary); stroke-width: 3.5; }
/* čísla 0–10: menší tlačítka v řadách */
.sku-numbers-10 { gap: 10px; max-width: 500px; margin-inline: auto; }
.sku-numbers-10 .sku-number { width: 72px; padding: 10px 4px; }
.sku-numbers-10 .sku-number b { font-size: 2.4rem; }
.sku-sides { display: grid; grid-template-columns: 1fr 1fr; }
.sku-side { min-height: 170px; padding: 14px; font-size: 2.6rem; line-height: 1.3; word-break: break-all; }
.sku-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 720px; margin-inline: auto; }
.sku-balloon, .sku-shape { padding: 10px; aspect-ratio: 1 / 1.05; display: grid; place-items: center; }
.sku-balloon svg, .sku-shape svg { width: 100%; height: 100%; max-height: 150px; }
/* 🧍 👆 Ukaž na…: velká postavička, každá část se dá ťuknout (skolka-telo-prostor.js) */
.skt-figure { position: relative; width: min(78vw, 300px); margin: 6px auto 0; }
.skt-figure svg { display: block; width: 100%; height: auto; }
.skt-part { cursor: pointer; transform-box: fill-box; transform-origin: center; }
.skt-part.sk-shake { animation: shake .45s ease-in-out; }
.skt-part.sku-right { filter: drop-shadow(0 0 4px #22c55e) drop-shadow(0 0 8px #22c55e); animation: pop .35s ease-out; }
/* 🤔 / 👕 obrázky (emoji) na velkých dlaždicích */
.skt-emoji { aspect-ratio: 1; font-size: clamp(3rem, 11vw, 4.6rem); line-height: 1; display: grid; place-items: center; padding: 6px; }
/* 🔍 / 📦 obrázky scén */
.skt-scenes { max-width: 820px; }
.skt-scene { padding: 6px; overflow: hidden; --skg-wall: #fdf3d8; --skg-floor: #d9b98c; }
html.dark .skt-scene { --skg-wall: #2b3350; --skg-floor: #5b4630; }
.skt-scene svg { display: block; width: 100%; height: auto; border-radius: 16px; }
/* 📚 polička: tři prkna nad sebou, na každém jedna věc */
.skt-shelf {
  width: min(86vw, 360px); margin: 10px auto 0; padding: 8px 14px 0; border: 6px solid #92400e; border-bottom: 0; border-radius: 10px 10px 0 0;
  background: color-mix(in srgb, #fde68a 35%, var(--card));
}
.skt-shelf-board { display: flex; min-height: 104px; align-items: flex-end; padding: 8px 6px 6px; border-bottom: 10px solid #92400e; }
.skt-shelf-toy { width: 88px; height: 88px; font-size: 3.4rem; line-height: 1; display: grid; place-items: center; }
@media (max-width: 640px) {
  .sku-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .skt-shelf-board { min-height: 90px; }
  .skt-shelf-toy { width: 74px; height: 74px; font-size: 2.8rem; }
  .sku-thing { width: 68px; height: 68px; font-size: 2.7rem; }
  .sku-number { width: 86px; }
  .sku-side { min-height: 130px; font-size: 2.1rem; }
}

/* hra */
.sk-progress { height: 12px; border-radius: 999px; background: var(--primary-soft); overflow: hidden; margin: 4px 0 10px; }
#sk-progress-bar { height: 100%; width: 0; background: var(--primary); border-radius: 999px; transition: width .4s; }
.sk-maty { display: flex; align-items: center; gap: 10px; min-height: 64px; }
.sk-maty img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.sk-bubble {
  position: relative; padding: 8px 14px; border-radius: 16px; background: var(--card); color: var(--text);
  border: 2.5px solid var(--bubble-line, var(--text)); font: 800 1.15rem var(--font-head);
}
.sk-picture {
  display: grid; place-items: center; width: min(62vw, 300px); aspect-ratio: 1; margin: 6px auto 10px;
  border: none; border-radius: 50%; background: radial-gradient(circle, var(--card) 55%, var(--primary-soft) 100%); cursor: pointer;
}
.sk-pic { font-size: min(36vw, 180px); line-height: 1; }
.sk-pic.color-swatch { width: 70%; height: 70%; border-radius: 50%; }

.sk-cz, .sk-en { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0; }
.sk-cz-letters, .sk-en-slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.sk-cz-letter {
  min-width: 52px; height: 60px; padding: 0 8px; border: none; border-radius: 14px; background: var(--primary-soft);
  color: var(--primary-dark); font: 800 2.2rem var(--font-head); cursor: pointer;
}
.sk-cz-letter.sk-lit { animation: sk-lit .6s ease-out; }
@keyframes sk-lit { 0% { transform: scale(1); } 30% { transform: scale(1.25); background: var(--sk-yellow); color: #3a2a00; } 100% { transform: scale(1); } }
.sk-cz-space { width: 18px; }
.sk-cz-other { font: 800 2rem var(--font-head); color: var(--muted); }
.sk-say { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--border); background: var(--card); font-size: 1.3rem; cursor: pointer; flex: none; }
.sk-en-say, #sk-en-say { width: auto; padding: 0 12px; border-radius: 999px; }

.sk-slot {
  min-width: 48px; height: 62px; display: grid; place-items: center; padding: 0 4px;
  border-bottom: 5px solid var(--text); font: 800 2.4rem var(--font-head); color: var(--text);
}
.sk-slot-empty { border-bottom-color: var(--primary); background: var(--primary-soft); border-radius: 10px 10px 0 0; }
.sk-slot-space { border-bottom: none; min-width: 20px; }
.sk-slot.sk-pop { animation: pop .35s ease-out; color: var(--ok); }
/* 🔤 písmeno ve slově jde ťuknout – přečte se anglicky */
.sk-slot:not(.sk-slot-empty):not(.sk-slot-space) { cursor: pointer; border-radius: 10px 10px 0 0; -webkit-tap-highlight-color: transparent; }
.sk-slot.sk-lit { animation: sk-lit .6s ease-out; }

.sk-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 18px 0 10px; }
.sk-tile {
  width: 76px; height: 76px; border: 3px solid var(--primary); border-radius: 18px; background: var(--card);
  color: var(--text); font: 800 2.6rem var(--font-head); cursor: pointer; box-shadow: 0 6px 0 var(--primary-soft);
  transition: transform .1s;
}
.sk-tile:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--primary-soft); }
.sk-tile:disabled { opacity: .25; cursor: default; box-shadow: none; }
.sk-tile.sk-shake { animation: shake .45s ease-in-out; border-color: var(--almost); }

/* 🧍 / 🪑 hry s přetahováním (skolka-hry.js) */
.sk-game-list { margin-bottom: 14px; }
.sk-cat-game { border-color: var(--sk-yellow); background: linear-gradient(160deg, var(--card), var(--almost-bg)); }
#sk-game-progress { height: 100%; width: 0; background: var(--primary); border-radius: 999px; transition: width .4s; }
#sk-game .sk-maty { justify-content: flex-start; }
#sk-game .sk-say { margin-left: auto; }
.skg-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.skg-choose-btn .sk-cat-pics { font-size: 4rem; }
/* papír vedle stolu (na telefonu papír nahoře, stůl pod ním) */
.skg-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 10px; align-items: start; }
.skg-paper, .skg-table, .skg-box, .skg-scene-wrap { position: relative; border-radius: 20px; }
.skg-paper { background: #fffdf6; box-shadow: 0 6px 18px rgba(0, 0, 0, .12), inset 0 0 0 2px #eee6d2; padding: 26px 10px 10px; }
.skg-paper svg { display: block; width: 100%; height: min(58dvh, 460px); touch-action: none; }
.skg-board-prsty .skg-paper svg, .skg-board-oblicej .skg-paper svg { height: min(48dvh, 380px); }
.skg-table, .skg-box { padding: 26px 10px 12px; background: linear-gradient(#c98f55, #a8703c); box-shadow: inset 0 -6px 0 #7c4a1e, 0 6px 14px rgba(0, 0, 0, .15); }
.skg-box { background: linear-gradient(#f3d9a4, #e3bd78); box-shadow: inset 0 -6px 0 #b98a3c, 0 6px 14px rgba(0, 0, 0, .15); margin-top: 12px; }
.skg-label { position: absolute; left: 12px; top: 5px; font: 800 .9rem var(--font-head); color: #4a2d12; opacity: .8; }
.skg-paper .skg-label { color: var(--muted); }
.skg-tray { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; min-height: 90px; }
.skg-piece {
  display: grid; place-items: center; padding: 4px; border-radius: 14px; background: #ffffffcc; cursor: grab;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; box-shadow: 0 3px 0 #00000022;
}
.skg-piece svg { width: 100%; height: 100%; display: block; pointer-events: none; }
.skg-item { width: 72px; height: 72px; }
.skg-dragging { cursor: grabbing; box-shadow: 0 14px 24px rgba(0, 0, 0, .25); transform: scale(1.1); background: #ffffffee; }
.skg-selected { outline: 4px solid var(--primary); outline-offset: 2px; animation: pop .3s ease-out; }
.skg-disabled { opacity: .35; pointer-events: none; }
.skg-placeholder { flex: none; }
/* obrysy míst na papíře: přerušovaná čára bez výplně */
.skg-ghost * { fill: none !important; stroke: #c9bfa8 !important; stroke-width: 2 !important; stroke-dasharray: 5 4; }
.skg-placed { animation: skg-drop .35s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes skg-drop { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }
/* scéna se stolem */
/* zeď a podlaha i po stranách scény (podlaha začíná ve scéně na 250/300 = 83,3 %) */
.skg-scene-wrap {
  margin-top: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); --skg-wall: #fdf3d8; --skg-floor: #d9b98c;
  background: linear-gradient(var(--skg-wall) 83.3%, #00000022 83.3%, #00000022 calc(83.3% + 3px), var(--skg-floor) calc(83.3% + 3px));
}
html.dark .skg-scene-wrap { --skg-wall: #2b3350; --skg-floor: #5b4630; }
.skg-scene { display: block; width: 100%; height: auto; max-height: 52dvh; touch-action: none; }
.skg-float { animation: skg-drop .35s ease-out, skg-float 2.4s ease-in-out .35s infinite; }
@keyframes skg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
/* 👋 ručička z kraje scény: vyjede a zamává (vlevo / vpravo se plete) */
.skg-wave-hand { position: absolute; top: 52%; font-size: clamp(2.6rem, 9vw, 4.4rem); line-height: 1; pointer-events: none; z-index: 3; transform-origin: 50% 90%; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .2)); }
.skg-wave-left { left: 6px; }
.skg-wave-right { right: 6px; scale: -1 1; }
.skg-wave-hand.skg-waving { animation: skg-hand-in-left .5s cubic-bezier(.34, 1.56, .64, 1) both, skg-wave .55s ease-in-out .5s 5; }
.skg-wave-right.skg-waving { animation-name: skg-hand-in-right, skg-wave; }
@keyframes skg-hand-in-left { from { translate: -140% 0; } to { translate: 0 0; } }
@keyframes skg-hand-in-right { from { translate: 140% 0; } to { translate: 0 0; } }
@keyframes skg-wave { 0%, 100% { rotate: 0deg; } 30% { rotate: -24deg; } 70% { rotate: 18deg; } }
.skg-final { text-align: center; margin-top: 10px; }
.skg-final h1 { font: 800 1.8rem var(--font-head); margin: 0 0 6px; }
.skg-final-figure { width: min(70vw, 300px); height: auto; animation: bday-enter .9s cubic-bezier(.34, 1.56, .64, 1) both; }
/* telefon: papír nad stolem – obojí se musí vejít na obrazovku (táhne se prstem bez posouvání), díly se zmenší s papírem */
@media (max-width: 640px) {
  .skg-board { grid-template-columns: 1fr; gap: 8px; margin-top: 6px; }
  .skg-paper { padding: 22px 6px 6px; }
  .skg-paper svg { height: min(34dvh, 300px); }
  .skg-board-prsty .skg-paper svg, .skg-board-oblicej .skg-paper svg { height: min(32dvh, 280px); }
  .skg-table, .skg-box { padding: 22px 6px 8px; }
  .skg-tray { gap: 6px; min-height: 70px; }
  .skg-item { width: 60px; height: 60px; }
  #sk-game .sk-maty img { width: 52px; height: 52px; }
  #sk-game .sk-bubble { font-size: 1rem; padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) { .skg-placed, .skg-float, .skg-final-figure, .skg-wave-hand.skg-waving { animation: none; } }

/* konec kola, nová úroveň */
.sk-done-img { width: 140px; height: 140px; border-radius: 50%; }
.sk-done-stars { font-size: 2.2rem; letter-spacing: 2px; }
/* tlačítka na konci kola (i hotový panáček) uprostřed */
.sk-card .buttons, .skg-final .buttons, #sk-levelup .buttons { justify-content: center; }

@media (max-width: 480px) {
  .sk-brand { font-size: 1.05rem; }
  .sk-cz-letter { min-width: 44px; height: 52px; font-size: 1.9rem; }
  .sk-slot { min-width: 38px; height: 54px; font-size: 2rem; }
  .sk-tile { width: 64px; height: 64px; font-size: 2.2rem; }
  .sk-cat-list { grid-template-columns: 1fr 1fr; }
  .sk-cat-pics { font-size: 2.6rem; }
}
.sk-stars { white-space: nowrap; flex: none; }
.sk-brand { min-width: 0; white-space: nowrap; overflow: hidden; }
@media (max-width: 420px) { .sk-brand img { width: 34px; height: 34px; } .sk-round { width: 42px; height: 42px; font-size: 1.2rem; } }
