:root {
  --bg: #fff6ea;
  --bg2: #ffeeda;
  --card: #ffffff;
  --ink: #2b2433;
  --muted: #8a7f93;
  --line: #f0e3d3;
  --ok: #2fb36b;
  --warn: #f2a33a;
  --bad: #e5484d;
  --gold: #f5b700;
  --shadow: 0 6px 20px rgba(120, 80, 40, .10), 0 1px 3px rgba(120, 80, 40, .08);
  --radius: 22px;
  --kid: #7a5af8;
  --accent: #7a5af8;
  --soft: 14%;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151722; --bg2: #1c1f2e; --card: #22263a; --ink: #f4f1fa; --muted: #a39cb3;
    --line: #2f3450; --shadow: 0 6px 20px rgba(0, 0, 0, .35); --soft: 24%;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body, .kidpage, .kidcard, .kidhead, .overlay { --kid-soft: color-mix(in srgb, var(--kid) var(--soft), var(--card)); }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif; font-weight: 700;
  min-height: 100dvh; overscroll-behavior: none; -webkit-user-select: none; user-select: none;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; -webkit-user-select: text; user-select: text; }
.wrap { max-width: 1180px; margin: 0 auto; padding: calc(var(--safe-top) + 14px) 16px calc(var(--safe-bottom) + 28px); }

/* ---------- domov ---------- */
.top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.clock { font-size: clamp(40px, 7vw, 64px); font-weight: 900; letter-spacing: -1px; line-height: 1; }
.dateline { color: var(--muted); font-size: 17px; text-transform: capitalize; }
.top .grow { flex: 1; }
.iconbtn {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 22px;
  background: var(--card); box-shadow: var(--shadow);
}
.goal {
  display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.goal .em { font-size: 38px; }
.goal .t { font-size: 15px; color: var(--muted); }
.goal .n { font-size: 19px; font-weight: 900; }
.bar { height: 14px; border-radius: 99px; background: var(--bg2); overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffb347, #ff6f91); transition: width .6s; }
.goal.done { background: linear-gradient(120deg, #fff1b8, #ffd6e7); color: #2b2433; }

.kids { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.kidcard {
  --kid: #888; position: relative; text-align: left; background: var(--card); border-radius: 28px;
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s;
}
.kidcard:active { transform: scale(.98); }
.kidcard .head { background: var(--kid); color: #fff; padding: 18px 20px 16px; display: flex; gap: 14px; align-items: center; }
.avatar { width: 72px; height: 72px; border-radius: 24px; background: rgba(255,255,255,.25); display: grid; place-items: center; font-size: 44px; flex: none; }
.kidcard .name { font-size: 28px; font-weight: 900; line-height: 1.05; }
.stats { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.pill { background: rgba(255,255,255,.22); border-radius: 99px; padding: 3px 11px; font-size: 16px; white-space: nowrap; }
.kidcard .body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.now { display: flex; align-items: center; gap: 12px; }
.now .em { font-size: 34px; }
.now .rn { font-size: 20px; font-weight: 900; }
.now .st { color: var(--muted); font-size: 15px; }
.kidbar { height: 16px; border-radius: 99px; background: var(--bg2); overflow: hidden; }
.kidbar > i { display: block; height: 100%; background: var(--kid); border-radius: 99px; transition: width .5s; }
.dots { display: flex; gap: 8px; flex-wrap: wrap; }
.dot { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--muted); background: var(--bg2); padding: 4px 10px; border-radius: 99px; }
.dot.ok { background: color-mix(in srgb, var(--ok) 18%, var(--card)); color: var(--ok); }
.dot.miss { opacity: .55; text-decoration: line-through; }
.dot.open { background: var(--kid-soft); color: var(--kid); }
.giftbadge { display: inline-block; background: var(--gold); color: #3a2a00; border-radius: 99px; padding: 5px 12px; font-size: 16px; font-weight: 900;
  margin-top: 6px; animation: bob 1.4s infinite; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.pill.wait { background: rgba(0,0,0,.18); }
.ask { text-align: center; }
.ask .what { font-size: 22px; font-weight: 900; margin: 6px 0; }
.ask .det { color: var(--muted); margin: 0 0 4px; }
.perfect { color: var(--ok); font-weight: 900; }
.goalbox { display: flex; align-items: center; gap: 14px; background: var(--kid-soft); border-radius: 20px; padding: 12px 16px; text-align: left; width: 100%; }
.goalbox .em { font-size: 38px; }
.goalbox .main { flex: 1; min-width: 0; }
.goalbox .t0 { font-size: 13px; font-weight: 800; color: var(--kid); text-transform: uppercase; letter-spacing: .04em; }
.goalbox .t1 { font-size: 19px; font-weight: 900; margin-bottom: 6px; }
.goalbox .t2 { font-size: 14px; color: var(--muted); margin-top: 4px; }
.goalbox .kidbar { height: 12px; background: var(--card); }
.goalbox.ready { box-shadow: 0 0 0 3px var(--gold) inset; }
.goalbox.empty { font: inherit; font-size: 16px; font-weight: 800; color: var(--kid); border: 2px dashed var(--kid); cursor: pointer; justify-content: center; }
.kidpage .goalbox { max-width: 1180px; margin: 14px auto 0; }

/* ---------- dieťa ---------- */
.kidhead {
  --kid: #888; background: var(--kid); color: #fff; padding: calc(var(--safe-top) + 12px) 16px 14px;
  position: sticky; top: 0; z-index: 5; box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.kidhead .row { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.kidhead .avatar { width: 56px; height: 56px; font-size: 34px; border-radius: 18px; }
.kidhead .name { font-size: 26px; font-weight: 900; }
.back { width: 46px; height: 46px; border-radius: 15px; background: rgba(255,255,255,.22); font-size: 24px; display: grid; place-items: center; }
.tabs { max-width: 1180px; margin: 12px auto 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 9px 16px; border-radius: 99px; background: rgba(255,255,255,.18); white-space: nowrap; font-size: 16px; }
.tabs button.on { background: #fff; color: var(--kid); }
.kidpage { --kid: #888; }
.routine { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 16px; overflow: hidden; }
.routine > .rh { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 18px; text-align: left; }
.routine .rh .em { font-size: 34px; }
.routine .rh .rn { font-size: 21px; font-weight: 900; }
.routine .rh .st { font-size: 15px; color: var(--muted); }
.routine .rh .cnt { margin-left: auto; font-size: 18px; font-weight: 900; color: var(--kid); white-space: nowrap; }
.routine.complete .rh .cnt { color: var(--ok); }
.routine .kidbar { margin: 0 18px; height: 10px; }
.grid { display: grid; gap: 12px; padding: 16px 18px 18px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.small-mode .grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tile {
  position: relative; background: var(--bg2); border-radius: 20px; padding: 16px 12px 14px; min-height: 132px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  border: 3px solid transparent; transition: transform .12s, background .2s;
}
.tile:active { transform: scale(.95); }
.tile .te { font-size: 46px; line-height: 1; }
.small-mode .tile .te { font-size: 72px; }
.small-mode .tile { min-height: 170px; }
.tile .tn { font-size: 16px; line-height: 1.15; }
.tile .tp { font-size: 13px; color: var(--muted); }
.tile .th { font-size: 12px; color: var(--muted); font-weight: 600; }
.tile .chk {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--line); background: var(--card); display: grid; place-items: center; font-size: 16px; color: #fff;
}
.tile.done { background: var(--kid-soft); border-color: var(--kid); }
.tile.done .chk { background: var(--kid); border-color: var(--kid); }
.tile.pending { border-color: var(--warn); border-style: dashed; }
.tile.pending .chk { background: var(--warn); border-color: var(--warn); }
.tile.rejected { border-color: var(--bad); }
.tile[disabled] { opacity: .5; }
.tile .opt { font-size: 13px; color: var(--kid); }
.closednote { padding: 0 18px 16px; color: var(--muted); font-size: 15px; }
.float { position: fixed; pointer-events: none; font-size: 30px; font-weight: 900; color: var(--kid); z-index: 60; animation: floatup 1s ease-out forwards; }

.section { margin-top: 18px; }
.section h2 { font-size: 21px; margin: 6px 4px 10px; font-weight: 900; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 14px; }
.item .em { font-size: 32px; width: 44px; text-align: center; flex: none; }
.item .main { flex: 1; min-width: 0; }
.item .t1 { font-size: 17px; }
.item .t2 { font-size: 14px; color: var(--muted); font-weight: 600; }
.item .kidbar { height: 8px; margin-top: 6px; }
.btn { background: var(--kid); color: #fff; padding: 10px 16px; border-radius: 14px; font-size: 16px; white-space: nowrap; }
.btn.ghost { background: var(--bg2); color: var(--ink); }
.btn.ok { background: var(--ok); }
.btn.bad { background: var(--bad); }
.btn.sm { padding: 7px 11px; font-size: 14px; border-radius: 11px; }
.btn[disabled] { opacity: .45; }
.status { font-size: 13px; padding: 3px 9px; border-radius: 99px; background: var(--bg2); color: var(--muted); white-space: nowrap; }
.status.pending, .status.new { background: color-mix(in srgb, var(--warn) 20%, var(--card)); color: #b56d00; }
.status.approved { background: color-mix(in srgb, var(--kid) 18%, var(--card)); color: var(--kid); }
.status.delivered, .status.priced, .status.ok { background: color-mix(in srgb, var(--ok) 18%, var(--card)); color: var(--ok); }
.status.rejected { background: color-mix(in srgb, var(--bad) 15%, var(--card)); color: var(--bad); }
.badges { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.badge { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 14px 8px; text-align: center; }
.badge .be { font-size: 42px; }
.badge .bn { font-size: 14px; }
.badge .bd { font-size: 12px; color: var(--muted); font-weight: 600; }
.badge.locked { opacity: .4; filter: grayscale(1); }
.empty { color: var(--muted); text-align: center; padding: 18px; font-size: 16px; }
.luck { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.luck .kidbar { flex: 1; height: 10px; }
.wishform { display: flex; gap: 10px; }
.wishform input { flex: 1; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--card); font-weight: 700; }

/* ---------- prekrytia ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(20, 14, 30, .55); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px; animation: fade .2s;
}
.sheet {
  background: var(--card); border-radius: 28px; padding: 24px; width: min(520px, 100%); max-height: 88dvh; overflow: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: pop .3s cubic-bezier(.2, 1.4, .4, 1); text-align: center;
}
.sheet { position: relative; }
.sheet .x { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: none; color: var(--muted);
  font-size: 20px; opacity: .45; cursor: pointer; border-radius: 50%; }
.notices { display: grid; gap: 8px; margin: 12px 0 4px; }
.notice { display: flex; align-items: center; gap: 12px; background: var(--bg2); border-radius: 16px; padding: 10px 14px; text-align: left; }
.notice b { font-size: 24px; font-weight: 900; min-width: 74px; }
.notice b.plus { color: var(--ok); } .notice b.minus { color: var(--bad); }
.notice span { font-size: 17px; }
.giftlater { width: 100%; margin-top: 14px; font: inherit; font-size: 18px; font-weight: 900; border: 0; cursor: pointer;
  background: var(--gold); color: #3a2a00; border-radius: 20px; padding: 14px; animation: bob 1.4s infinite; }
.sheet h3 { margin: 0 0 6px; font-size: 26px; font-weight: 900; }
.sheet p { margin: 6px 0; color: var(--muted); font-size: 17px; }
.sheet .big { font-size: 84px; line-height: 1.1; margin: 4px 0; }
.sheet .actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.sheet .actions .btn { padding: 13px 22px; font-size: 18px; }
.options { display: grid; gap: 10px; margin-top: 14px; }
.options button { background: var(--bg2); border-radius: 16px; padding: 15px; font-size: 18px; }
.options button:active { background: var(--kid-soft); }
.gift { font-size: 120px; animation: bob 1.2s infinite; display: inline-block; cursor: pointer; }
.gift.shake { animation: shake .5s infinite; }
.prize { animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.celebrate .lines { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.celebrate .ln { background: var(--bg2); border-radius: 14px; padding: 10px 14px; font-size: 17px; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; width: 100%; height: 100%; }
#toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 20px); transform: translateX(-50%) translateY(150%);
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 16px; z-index: 80; transition: transform .3s;
  max-width: calc(100% - 32px); text-align: center; font-size: 16px; opacity: 0; visibility: hidden;
}
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.banner {
  position: fixed; top: calc(var(--safe-top) + 10px); left: 50%; transform: translateX(-50%); z-index: 75;
  background: var(--card); box-shadow: 0 10px 40px rgba(0,0,0,.25); border-radius: 20px; padding: 14px 20px;
  font-size: 19px; max-width: calc(100% - 32px); animation: pop .3s; display: flex; gap: 10px; align-items: center;
}

/* ---------- rodič ---------- */
.ptabs { display: flex; gap: 8px; overflow-x: auto; margin: 4px 0 14px; scrollbar-width: none; }
.ptabs button { padding: 10px 16px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); white-space: nowrap; font-size: 16px; }
.ptabs button.on { background: var(--ink); color: var(--bg); }
.count { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 13px; margin-left: 4px; }
.pin { display: grid; grid-template-columns: repeat(3, 76px); gap: 12px; justify-content: center; margin: 16px 0; }
.pin button { height: 76px; border-radius: 22px; background: var(--bg2); font-size: 30px; font-weight: 900; }
.pindots { display: flex; gap: 12px; justify-content: center; margin: 10px 0; }
.pindots i { width: 16px; height: 16px; border-radius: 50%; background: var(--line); }
.pindots i.on { background: var(--ink); }
.feed .item { box-shadow: none; border: 2px solid var(--line); }
.kidtag { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); }
.form { display: grid; gap: 12px; text-align: left; margin-top: 10px; }
.form label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.form input[type=text], .form input[type=number], .form input[type=password], .form input[type=time], .form select, .form textarea {
  border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); font-weight: 700; color: var(--ink); width: 100%;
}
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { padding: 8px 12px; border-radius: 12px; background: var(--bg2); font-size: 15px; color: var(--muted); }
.chips button.on { background: var(--ink); color: var(--bg); }
.check { display: flex !important; grid-auto-flow: column; align-items: center; gap: 10px; font-size: 16px !important; color: var(--ink) !important; }
.check input { width: 22px; height: 22px; }
.pgroup { margin: 18px 4px 8px; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.prow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inactive { opacity: .45; }
.daynav { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; }
.daynav .d { flex: 1; text-align: center; font-weight: 900; font-size: 19px; }
.daynav .d small { display: block; font-weight: 700; font-size: 13px; color: var(--muted); }
.past { background: color-mix(in srgb, var(--gold) 16%, var(--card)); border-radius: 14px; padding: 8px 12px; font-size: 15px; margin-bottom: 10px; }
.week { display: flex; gap: 4px; margin-top: 8px; }
.week button { flex: 1; min-width: 0; border-radius: 10px; padding: 4px 0; background: var(--bg2); font-size: 12px; line-height: 1.25; color: var(--muted); border: 2px solid transparent; }
.week button b { display: block; font-size: 13px; color: var(--ink); }
.week button.perfect { background: color-mix(in srgb, var(--ok) 22%, var(--card)); }
.week button.part { background: color-mix(in srgb, var(--gold) 20%, var(--card)); }
.week button.sel { border-color: var(--kid, var(--accent)); }
.week button.pend::after { content: " ⏳"; }
.kidsec { background: var(--card); border-radius: 20px; box-shadow: var(--shadow, 0 2px 10px rgba(0,0,0,.08)); overflow: hidden; border-left: 6px solid var(--kid); }
.ksh { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; flex-wrap: wrap; }
.ksh .ke { font-size: 30px; } .ksh b { font-size: 20px; }
.ksh .chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.ksh .chev { font-size: 20px; color: var(--muted); width: 18px; text-align: center; }
.chip { font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--bg2); color: var(--muted); white-space: nowrap; }
.chip.ok { background: color-mix(in srgb, var(--ok) 20%, var(--card)); color: var(--ok); }
.chip.warn { background: color-mix(in srgb, var(--gold) 28%, var(--card)); color: var(--ink); }
.chip.bad { background: color-mix(in srgb, var(--bad) 18%, var(--card)); color: var(--bad); }
.ksb { padding: 0 16px 16px; animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.rblock { margin-top: 12px; }
.rrow { font-size: 15px; color: var(--muted); margin-bottom: 4px; } .rrow b { color: var(--ink); }
.extbtn { margin: 4px 0; }
details.checks { margin-top: 14px; } details.checks summary { cursor: pointer; color: var(--muted); font-weight: 800; padding: 6px 0; }
.goalbox .go { font-size: 34px; font-weight: 900; color: var(--kid); }
button.goalbox, .goalbox[role=button] { cursor: pointer; border: 0; font: inherit; color: inherit; }
.pickkids { display: grid; gap: 8px; margin: 12px 0 8px; text-align: left; }
.pk { display: flex; align-items: center; gap: 12px; background: var(--bg2); border-radius: 16px; padding: 10px 14px; cursor: pointer; }
.pk input { width: 24px; height: 24px; accent-color: var(--accent); }
.pk .pe { font-size: 30px; } .pk b { display: block; font-size: 18px; } .pk small { color: var(--muted); font-size: 14px; }
.pk.dis { opacity: .5; cursor: default; }
.mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mini button { padding: 6px 10px; border-radius: 10px; background: var(--bg2); font-size: 14px; }
.mini button.done { background: color-mix(in srgb, var(--ok) 20%, var(--card)); color: var(--ok); }
.mini button.pending { background: color-mix(in srgb, var(--warn) 22%, var(--card)); color: #b56d00; }
.help { font-size: 14px; color: var(--muted); font-weight: 600; line-height: 1.4; }

@keyframes floatup { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-80px) scale(1.4); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.05); } 75% { transform: rotate(12deg) scale(1.05); } }

@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px; }
  .small-mode .grid { grid-template-columns: repeat(2, 1fr); }
  .tile { min-height: 118px; }
  .kidcard .name { font-size: 24px; }
  .avatar { width: 60px; height: 60px; font-size: 36px; }
}

/* ---------- môj štýl ---------- */
.ktitle { display: inline-block; font-size: 13px; font-weight: 800; background: rgba(255,255,255,.25); border-radius: 99px; padding: 2px 10px; margin-top: 3px; vertical-align: middle; }
.avatar { position: relative; }
.avatar.sm { width: 54px; height: 54px; font-size: 32px; border-radius: 16px; background: var(--kid); }
.fr-gold { box-shadow: 0 0 0 4px #f5c542, 0 0 16px 2px rgba(245,197,66,.7); }
.fr-ice { box-shadow: 0 0 0 4px #c9f0ff, 0 0 16px 3px rgba(127,211,255,.8); }
.fr-stars { box-shadow: 0 0 0 3px rgba(255,255,255,.85); }
.fr-stars::after { content: "✨"; position: absolute; top: -12px; right: -12px; font-size: 22px; animation: bob 1.6s infinite; }
.fr-stars::before { content: "⭐"; position: absolute; bottom: -10px; left: -10px; font-size: 16px; }
.fr-rainbow { box-shadow: 0 0 0 3px #ff5e5e, 0 0 0 6px #ffd23f, 0 0 0 9px #3ec1d3, 0 0 0 12px #8e5bd9; }
.fr-fire { box-shadow: 0 0 0 3px #ff9a00, 0 0 18px 6px #ff4500; animation: flicker 1.1s infinite alternate; }
@keyframes flicker { from { box-shadow: 0 0 0 3px #ff9a00, 0 0 14px 4px #ff4500; } to { box-shadow: 0 0 0 4px #ffc400, 0 0 24px 9px #ff5a00; } }
.bgx.bg-stars { background-image: radial-gradient(rgba(255,255,255,.75) 1.5px, transparent 2.2px), radial-gradient(rgba(255,255,255,.5) 1px, transparent 1.6px); background-size: 38px 38px, 23px 23px; background-position: 0 0, 11px 17px; }
.bgx.bg-dots { background-image: radial-gradient(rgba(255,255,255,.22) 6px, transparent 7px); background-size: 28px 28px; }
.bgx.bg-candy { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 14px, transparent 14px 28px); }
.bgx.bg-sea { background-image: repeating-radial-gradient(circle at 50% 160%, rgba(255,255,255,.2) 0 7px, transparent 7px 20px); }
.bgx.bg-space { background-image: radial-gradient(#fff 1px, transparent 1.6px), radial-gradient(rgba(255,255,255,.7) 1px, transparent 1.6px), linear-gradient(160deg, rgba(8,10,40,.75), rgba(8,10,40,.15)); background-size: 31px 31px, 47px 47px, 100% 100%; background-position: 0 0, 13px 20px, 0 0; }
.bgx.bg-rainbow { background-image: linear-gradient(120deg, rgba(255,94,94,.45), rgba(255,210,63,.45), rgba(62,193,211,.45), rgba(142,91,217,.45)); }
.hero { background: var(--kid); color: #fff; border-radius: 24px; padding: 18px 20px; display: flex; gap: 16px; align-items: center; }
.hero .name { font-size: 26px; font-weight: 900; }
.stylehead { max-width: 520px; margin: 0 auto; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.stile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 10px; border-radius: 18px;
  background: var(--card); border: 3px solid transparent; font: inherit; color: inherit; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.stile.on { border-color: var(--kid); }
.stile.own .sp { color: var(--kid); }
.stile .sn { font-size: 14px; font-weight: 800; text-align: center; line-height: 1.15; }
.stile .sp { font-size: 13px; color: var(--muted); font-weight: 800; }
.stile.on .sp { color: var(--ok); }
.stile .rtag { position: absolute; top: 6px; right: 6px; font-size: 10px; font-weight: 900; background: var(--gold); color: #3a2a00; border-radius: 99px; padding: 1px 6px; }
.stile.rare { background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 14%, var(--card)), var(--card)); }
.sv-em { font-size: 44px; line-height: 1.1; }
.sv-col { width: 50px; height: 50px; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255,255,255,.4); }
.sv-bg { width: 80px; height: 50px; border-radius: 12px; background-color: var(--kid); }
.sv-conf { font-size: 26px; letter-spacing: 2px; line-height: 50px; }
.sv-title { font-size: 14px; font-weight: 900; background: var(--bg2); border-radius: 99px; padding: 8px 10px; margin: 8px 0; text-align: center; }

/* ---------- výhry: šance ---------- */
.howto p { margin: 8px 0; }
.oddsbar { display: flex; border-radius: 12px; overflow: hidden; font-size: 12px; font-weight: 800; color: #fff; margin: 8px 0; min-height: 30px; }
.oddsbar span { display: flex; align-items: center; justify-content: center; padding: 4px 6px; white-space: nowrap; overflow: hidden; }
.o-none { background: #8a8fa3; } .o-small { background: #3fae6a; } .o-medium { background: #3d7fe0; } .o-big { background: #c9930e; }
.tiergrp { margin: 10px 0 14px; }
.tierhead { display: inline-block; color: #fff; font-weight: 900; font-size: 14px; border-radius: 99px; padding: 4px 12px; margin-bottom: 6px; }
.oddsbar { min-height: 18px; }
.oddsleg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; font-weight: 800; }
.oddsleg i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; }
.tiergrp .item { text-align: left; }
.o-small-bar { --kid: #3fae6a; } .o-medium-bar { --kid: #3d7fe0; } .o-big-bar { --kid: #c9930e; }

/* ---------- účet u rodiča ---------- */
.bankcard { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--ok) 22%, var(--card)), var(--card)); border-radius: 20px; padding: 14px 18px; }
.bk-em { font-size: 40px; } .bk-l { font-size: 14px; color: var(--muted); font-weight: 800; } .bk-v { font-size: 30px; font-weight: 900; }
.bankrow { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 10px 14px; border-radius: 14px; border: 0; font: inherit; color: inherit;
  background: color-mix(in srgb, var(--ok) 14%, var(--card)); cursor: pointer; text-align: left; }
.bankrow span:first-child { flex: 1; font-weight: 800; } .bankrow b { font-size: 20px; }
.bankrow small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.seg { display: flex; gap: 8px; margin: 10px 0; }
.seg button, .amts button, .reasons button, .bkacts button { font: inherit; border: 2px solid transparent; background: var(--bg2); color: inherit; border-radius: 14px; cursor: pointer; }
.seg button { flex: 1; padding: 12px; font-weight: 900; font-size: 17px; }
.seg button.on { border-color: var(--accent, #7a5af8); background: color-mix(in srgb, var(--accent, #7a5af8) 18%, var(--card)); }
.amts { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.amts button { min-width: 48px; padding: 10px 8px; font-weight: 900; font-size: 17px; }
.amts button.on, .reasons button.on, .bkacts button.on { border-color: var(--accent, #7a5af8); background: color-mix(in srgb, var(--accent, #7a5af8) 18%, var(--card)); }
.amts input { width: 80px; border: 2px solid var(--line); border-radius: 14px; padding: 8px 10px; background: var(--bg); color: inherit; font: inherit; }
.reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.reasons button { padding: 7px 11px; font-size: 14px; font-weight: 700; }
.bkacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.bkacts button { padding: 10px; text-align: left; }
.bkacts b { display: block; font-size: 15px; } .bkacts small { color: var(--muted); font-size: 12px; }
.goals.multi { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.goals.multi .goal { margin: 0; }
.goals { margin-bottom: 8px; } .goals .goal { margin-bottom: 10px; }
.bankcard.mini { width: 100%; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 10px 16px; }
.bankcard.mini .bk-v { font-size: 24px; } .bankcard.mini .bk-em { font-size: 32px; }
.bankcard .go { font-size: 30px; font-weight: 900; color: var(--muted); }
.bkh { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; padding: 0 4px; }
.bkh.plus { color: var(--ok); } .bkh.minus { color: var(--bad); text-align: right; }
.bkacts button.ok { border-left: 4px solid var(--ok); } .bkacts button.bad { border-left: 4px solid var(--bad); }
.kidhead .home { flex: none; width: 62px; height: 62px; border-radius: 18px; background: rgba(255,255,255,.92); color: var(--kid);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; box-shadow: 0 3px 10px rgba(0,0,0,.15); cursor: pointer; border: 0; }
.kidhead .home span { font-size: 30px; line-height: 1; } .kidhead .home small { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.envlabel { background: var(--bad); color: #fff; font-size: 13px; font-weight: 900; border-radius: 8px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
