/* Obrazovky */

/* Výhľad na mesto v hlavičke dňa */
.vista { position: relative; margin: calc(var(--s-4) * -1) calc(var(--s-4) * -1) 0; min-height: 210px; display: grid; align-content: end; padding: var(--s-5) var(--s-4) var(--s-4); overflow: hidden; }
.vista-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.vista::after { content: ""; position: absolute; inset: 0; background: var(--vista-shade); }
.vista > :not(img) { position: relative; z-index: 1; }
.vista-date { font-family: var(--f-display); font-size: clamp(1.75rem, 1.1rem + 2.8vw, 3rem); color: #f1e6cd; text-shadow: 0 2px 18px rgba(0,0,0,.7); letter-spacing: 0.03em; }
.vista-sub { color: #d8c9a8; margin: 0; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.vista-xp { display: grid; gap: 6px; margin-top: var(--s-3); max-width: 520px; }
.vista-xp .bar { background: rgba(0,0,0,.45); }
.vista-xp small { color: #cdbd9b; font-size: var(--fs-xs); }
.vista-stats { display: flex; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-2); font-size: var(--fs-xs); color: #e2d4b5; }
.vista-stats span { display: inline-flex; gap: 4px; align-items: center; }
@media (min-width: 1000px) {
  .vista { margin: calc(var(--s-5) * -1) calc((100% - (100vw - 96px)) / 2) 0; min-height: 300px;
    padding: var(--s-7) max(var(--s-5), calc((100vw - 96px - var(--maxw)) / 2 + var(--s-5))) var(--s-5); }
}

/* Stopky */
.timer-plate { display: grid; gap: var(--s-3); border-color: var(--gold-lo); }
.timer-plate.is-break { border-color: var(--sage); }
.timer-clock { font-family: var(--f-display); font-size: clamp(2.6rem, 2rem + 3vw, 3.6rem); color: var(--gold-hi); font-variant-numeric: lining-nums tabular-nums; line-height: 1; }
.is-break .timer-clock { color: var(--sage); }
.timer-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
/* Sústredenie: jeden úzky pás namiesto dlaždíc */
.plate.focus { padding: 0; }
.focus-btn { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4); min-height: 68px; background: transparent; border: 0; border-radius: inherit; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background var(--t-fast); }
.focus-btn:hover { background: color-mix(in srgb, var(--gold) 5%, transparent); }
.focus-btn:hover .focus-go { background: var(--gold-hi); }
.focus-ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold-lo); color: var(--gold); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 72%); }
.focus-text { display: grid; gap: 2px; min-width: 0; }
.focus-title { font-family: var(--f-display); font-size: 1.05rem; color: var(--gold-hi); letter-spacing: 0.04em; line-height: 1.2; }
.focus-sub { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; }
.focus-sub .ico { width: 16px; height: 16px; flex: none; color: var(--gold-lo); }
.focus-go { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s-4); border-radius: var(--r-1); background: var(--gold); color: var(--bg); font-weight: 600; font-size: var(--fs-s); transition: background var(--t-fast); }
.focus-go .ico { width: 15px; height: 15px; }
/* výber činnosti ako dlaždice */
.seg--tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 520px) { .seg--tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.seg--tiles label { display: block; }
.seg--tiles span { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 72px; padding: var(--s-2); text-align: center; }
.seg--tiles span .ico { width: 24px; height: 24px; color: var(--gold); }

/* Questy */
.quest { min-height: 52px; }
.quest.is-done .li-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--gold-lo); }
.quest-add { display: grid; grid-template-columns: 1fr auto; gap: var(--s-2); margin-top: var(--s-3); }
.quest-add-opts { grid-column: 1 / -1; }
.tomorrow { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px dashed var(--line); }
.tomorrow-head { font-family: var(--f-display); font-size: 0.95rem; color: var(--muted); margin: 0 0 var(--s-1); font-weight: 600; }

/* Modlitby */
.prayers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.prayer { display: flex; align-items: center; gap: 2px; padding-right: var(--s-2); border: 1px solid var(--line); border-radius: var(--r-1); cursor: pointer; font-size: var(--fs-s); line-height: 1.2; min-height: 48px; }
.prayer:has(.seal:checked) { border-color: var(--a-duch); color: var(--a-duch); }

/* Rýchle záznamy */
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
@media (min-width: 560px) { .quick { grid-template-columns: repeat(3, 1fr); } }
.quick-btn { display: flex; align-items: center; gap: var(--s-2); text-align: left; padding: var(--s-2) var(--s-3); min-height: 52px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-1); cursor: pointer; color: var(--text); font-size: var(--fs-s); line-height: 1.2; }
.quick-btn:hover { border-color: var(--gold-lo); }
.quick-btn .ico { color: var(--gold); }
.quick-btn.is-bad .ico { color: var(--ember); }
.quick-btn[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-hi); }

.balance { display: grid; gap: var(--s-2); }
.balance-scale { position: relative; height: 8px; background: linear-gradient(90deg, var(--ember-bg), color-mix(in srgb, var(--sage) 35%, var(--panel)) 30% 70%, var(--ember-bg)); border-radius: 1px; }
.balance-scale i { position: absolute; top: -4px; width: 3px; height: 16px; background: var(--gold-hi); left: var(--p, 0%); transform: translateX(-50%); }

/* Mesto */
.city-scroll { overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: var(--r-1); scrollbar-width: thin; }
.city { position: relative; width: max(100%, 760px); overflow: hidden; aspect-ratio: 1440 / 809; background: #0d0a07; }
.city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pin { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; background: none; border: 0; padding: 0; cursor: pointer; color: #f0dfb6; min-width: 44px; min-height: 44px; }
.pin-lamp { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(16,12,8,.75); border: 1px solid rgba(227,197,138,.55); }
.pin-lamp::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(circle, rgba(255,196,110, calc(var(--glow, 0) * .55)) 0%, rgba(255,170,80,0) 70%); pointer-events: none; }
.pin-lamp .ico { width: 20px; height: 20px; color: color-mix(in srgb, #ffcf86 calc(var(--glow, 0) * 100%), #8a7a5e); }
.pin-name { font-family: var(--f-display); font-size: 0.75rem; letter-spacing: 0.04em; padding: 1px 6px; background: rgba(16,12,8,.72); border-radius: var(--r-1); white-space: nowrap; display: none; }
.pin[aria-pressed="true"] .pin-lamp { border-color: #ffd28e; box-shadow: 0 0 0 2px rgba(255,210,142,.35); }
.pin:focus-visible { outline: none; }
.pin:focus-visible .pin-lamp { outline: 2px solid #ffd28e; outline-offset: 3px; }
.pin-name { display: block; }
.district { display: grid; gap: var(--s-3); }
.district-acts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.legend { font-size: var(--fs-xs); color: var(--muted); margin: 0; }

/* Postava */
.hero-head { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-4); align-items: center; }
.crest { width: 96px; height: 112px; }
.crest .c-shield { fill: var(--panel-2); stroke: var(--gold); stroke-width: 1.5; }
.crest .c-mark { fill: none; stroke: var(--gold-hi); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.crest .c-inner { fill: none; stroke: var(--gold-lo); stroke-width: 1; }
.hero-name { font-size: var(--fs-xl); }
.hero-rank { color: var(--gold-hi); margin: 0; }
.attrs { display: grid; gap: var(--s-4); }
.attr-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 2px var(--s-3); align-items: center; }
.attr-row .bar { grid-column: 2 / 4; }
.attr-name { font-size: var(--fs-m); }
.attr-lvl { font-family: var(--f-display); font-variant-numeric: lining-nums; }
.attr-note { grid-column: 2 / 4; font-size: var(--fs-xs); margin: 0; }
.req { display: grid; gap: var(--s-2); }
.req li { display: flex; gap: var(--s-2); align-items: center; }
.req .ok { color: var(--sage); }
.req .no { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-3); }
.stat { border-left: 2px solid var(--line); padding-left: var(--s-3); }
.stat b { display: block; font-family: var(--f-display); font-size: 1.4rem; color: var(--gold-hi); font-weight: 600; font-variant-numeric: lining-nums; }
.stat span { font-size: var(--fs-xs); color: var(--muted); }

/* Výzvy */
.challenge { display: grid; gap: var(--s-2); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.challenge:last-child { border-bottom: 0; }
.challenge .bar > i { background: var(--ember); }
.challenge-title { font-family: var(--f-display); font-size: 1.1rem; }
.challenge.is-won .challenge-title { color: var(--sage); }
.challenge.is-lost .challenge-title { color: var(--ember); }

/* Svet */
.faction { display: grid; grid-template-columns: 1fr auto; gap: 4px var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
.faction:last-child { border-bottom: 0; }
.faction .rep { grid-column: 1 / -1; position: relative; height: 6px; background: color-mix(in srgb, var(--line) 70%, var(--bg)); }
.faction .rep::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--muted); }
.faction .rep i { position: absolute; top: 0; bottom: 0; background: var(--gold); }
.faction .rep i.neg { background: var(--ember); }
.rivals { counter-reset: none; }
.rivals li { gap: var(--s-3); }
.rivals .place { font-family: var(--f-display); width: 2ch; text-align: right; color: var(--muted); font-variant-numeric: lining-nums; }
.rivals li.is-hero .li-title { color: var(--gold-hi); }
.chron-day h4 { font-family: var(--f-display); font-size: 0.95rem; color: var(--muted); margin: var(--s-3) 0 var(--s-1); font-weight: 600; }
.chron-day p { margin: 0 0 var(--s-2); }
.chron-day p.k-penalty, .chron-day p.k-decay { color: var(--ember); }
.chron-day p.k-rank, .chron-day p.k-record { color: var(--gold-hi); }
.chron-day p.k-claude { font-style: italic; }

/* Okno po uzávierke dňa */
.closed-head { display: grid; grid-template-columns: 72px 1fr; gap: var(--s-4); align-items: center; }
.closed-head .crest { width: 72px; height: 84px; }
.closed-big { font-family: var(--f-display); font-size: 1.6rem; color: var(--gold-hi); margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .dlg[open] .closed-head .crest { animation: crest-in 700ms ease-out both; }
  @keyframes crest-in { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
}

/* Strava */
.food-protein { display: grid; gap: var(--s-2); }
.food-meals { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.bar-low { --c: var(--ember); }
.bar-ok { --c: var(--sage); }
.bar-calm { --c: var(--gold-lo); }

/* Ranné okno: rozpis týždňa, tresty a série */
.sum-head { font-family: var(--f-display); font-size: 1.05rem; color: var(--gold-hi); margin: var(--s-2) 0 0; font-weight: 600; }
.sum-list > li { padding: 6px 0; }
.sum-list .xp { font-size: var(--fs-xs); }
.streak-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.streak-chips .tag { font-size: var(--fs-xs); padding: 2px 8px; }

/* Súboj */
.duel-round { display: grid; grid-template-columns: 1fr auto; gap: 4px var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
.duel-round:last-child { border-bottom: 0; }
.duel-round .duel-bars { grid-column: 1 / -1; display: grid; gap: 4px; }
.duel-round .them .bar > i { background: var(--ember); }
.duel-label { font-size: var(--fs-xs); color: var(--muted); display: grid; grid-template-columns: 5.5em 1fr 3.5em; gap: var(--s-2); align-items: center; }

/* Nastavenia: sekcie */
.set-head { font-family: var(--f-display); font-size: 1rem; font-weight: 600; letter-spacing: 0.04em; color: var(--gold-hi); margin: var(--s-2) 0 calc(var(--s-3) * -1); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.set-note { margin: 0 0 calc(var(--s-2) * -1); }

/* ===== Dnes: kniha dňa podľa štvrtí mesta =====
   Každá sekcia je štvrť: znak vo farbe atribútu (--c), stavové štítky, pravítko plánu
   a týždenný pás Po – Ne. Na mobile jeden stĺpec v poradí podľa `order`,
   na desktope vľavo priebeh dňa (questy, duch, sústredenie, denník), vpravo štvrte. */
.today { display: grid; gap: var(--s-4); }
.today-col { display: contents; }
@media (min-width: 1000px) {
  main:has(#view-dnes:not([hidden])) { --maxw: 1120px; }
  .today { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
  .today-col { display: grid; gap: var(--s-5); }
}

.sec { --c: var(--gold); position: relative; min-width: 0; display: grid; gap: var(--s-3); padding: var(--s-4);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-1);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 10%, transparent); }
.sec--int { --c: var(--a-int); }
.sec--sil { --c: var(--a-sil); }

.sec--disc { --c: var(--a-disc); }
.sec--bad { --c: var(--ember); }
.sec-hd { display: flex; align-items: center; gap: var(--s-3); }
.sec-emb { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 50%, var(--line));
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--c) 22%, transparent), transparent 72%); }
.sec-names { min-width: 0; }
.sec-over { margin: 0; font-size: 0.75rem; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 72%, var(--muted)); }
.sec-title { font-size: 1.3rem; color: var(--gold-hi); text-wrap: balance; }

/* stavové štítky */
.sec-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 2px 9px; border: 1px solid var(--line); border-radius: var(--r-1);
  font-size: var(--fs-xs); line-height: 1.5; background: color-mix(in srgb, var(--bg) 45%, transparent); }
.st-l { color: var(--muted); }
.st-v { font-weight: 600; color: var(--text); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.st-chip.is-ok { border-color: color-mix(in srgb, var(--sage) 45%, var(--line)); }
.st-chip.is-ok .st-v { color: var(--sage); }
.st-chip.is-warn { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.st-chip.is-warn .st-v { color: var(--gold-hi); }
.st-chip.is-bad { border-color: color-mix(in srgb, var(--ember) 60%, var(--line)); background: color-mix(in srgb, var(--ember-bg) 55%, transparent); }
.st-chip.is-bad .st-v { color: var(--ember); }

/* pravítko týždenného plánu (minimum, štandard, maximum) */
.sec-measure { display: grid; gap: var(--s-3); }
.rod { display: grid; gap: 5px; }
.rod-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px var(--s-2); }
.rod-name { color: var(--text); }
.rod-val { margin-left: auto; font-size: var(--fs-xs); color: var(--muted); }
.rod-val b { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; color: var(--c); }
.rod-state { font-size: var(--fs-xs); color: var(--muted); }
.rod.is-low .rod-state { color: var(--ember); }
.rod.is-ok .rod-state { color: var(--sage); }
.rod-track { position: relative; height: 8px; border-radius: 1px; background: color-mix(in srgb, var(--line) 70%, var(--bg)); }
.rod-fill { position: absolute; inset: 0 auto 0 0; border-radius: 1px; background: var(--c); transition: width var(--t-med); }
.rod-tick { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--text); opacity: 0.5; }
.rod-scale { position: relative; height: 1.2em; font-size: 0.75rem; color: var(--muted); }
.rod-lbl { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }

/* týždenný pás po – ne */
.wk-wrap { display: grid; gap: 4px; }
.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wk-d { display: grid; justify-items: center; gap: 3px; }
.wk-m { width: 100%; height: 36px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.wk-l { font-size: 0.75rem; letter-spacing: 0.04em; color: var(--muted); }
.wk-d.is-today .wk-m { border-bottom: 2px solid var(--gold); background: linear-gradient(to top, color-mix(in srgb, var(--gold) 10%, transparent), transparent); }
.wk-d.is-today .wk-l { color: var(--gold-hi); font-weight: 600; }
.wk-d.is-future .wk-m { border-bottom-style: dashed; opacity: 0.6; }
.wk-col { width: 56%; max-width: 18px; height: 100%; display: flex; flex-direction: column-reverse; }
.wk-bar { display: block; width: 100%; min-height: 2px; background: var(--c); }
.wk-bar.is-alt { background: repeating-linear-gradient(135deg, var(--c) 0 2px, color-mix(in srgb, var(--c) 22%, transparent) 2px 5px); }
.wk-dots { display: flex; flex-direction: column-reverse; gap: 3px; padding-bottom: 4px; }
.wk-dots i, .wk-sub { width: 7px; height: 7px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--c) 55%, var(--line)); }
.wk-dots i.on { background: var(--c); border-color: var(--c); }
.wk-gems { display: grid; justify-items: center; gap: 6px; padding-bottom: 4px; }
.wk-gem { width: 11px; height: 11px; transform: rotate(45deg); border: 1px solid color-mix(in srgb, var(--c) 55%, var(--line)); }
.wk-gem.on { background: var(--c); border-color: var(--c); box-shadow: 0 0 8px color-mix(in srgb, var(--c) 45%, transparent); }
.wk-sub { border-color: var(--line); }
.wk-sub.on { background: var(--sage); border-color: var(--sage); }
.wk-legend { margin: 0; font-size: 0.75rem; color: var(--muted); }

/* záznamy v sekcii */
.acts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.acts-group { display: grid; gap: var(--s-2); }
.act-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 var(--s-3); cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: var(--r-1);
  font: inherit; font-size: var(--fs-s); transition: border-color var(--t-fast), background var(--t-fast); }
.act-btn .ico { width: 18px; height: 18px; color: var(--c); }
.act-btn:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); background: color-mix(in srgb, var(--c) 7%, transparent); }
.act-btn--timer { color: var(--gold-hi); }
.act-btn--timer .ico { width: 14px; height: 14px; color: var(--gold); }
.btn--sm { min-height: 40px; padding: 0 var(--s-3); }
.food-top { justify-content: space-between; }
.quests { display: grid; }

/* prepínač lock-in */
.switch { display: flex; align-items: center; flex-wrap: wrap; gap: 4px var(--s-3); width: 100%; min-height: 44px; padding: var(--s-3) 0 0;
  background: none; border: 0; border-top: 1px dashed var(--line); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.switch-knob { position: relative; flex: none; width: 38px; height: 22px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); transition: background var(--t-fast), border-color var(--t-fast); }
.switch-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform var(--t-fast), background var(--t-fast); }
.switch[aria-pressed="true"] .switch-knob { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 25%, var(--bg)); }
.switch[aria-pressed="true"] .switch-knob::after { transform: translateX(16px); background: var(--gold); }

/* ===== Život hry: kurzor, živé mesto, nástupy, výber dňa, efekty ===== */

/* kurzor: zlatý hrot, nad ovládacími prvkami s pečaťou (len myš) */
@media (pointer: fine) {
  html { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M3 2.5 3.4 20.5 8 16.2 11.2 23 14.3 21.6 11.1 14.9 17.6 14.4Z' fill='%23e3c58a' stroke='%23140f0b' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M5.2 6.5 5.5 15.8' stroke='%23fff3d6' stroke-width='1' stroke-linecap='round' opacity='.7'/%3E%3C/svg%3E") 3 2, auto; }
  a, button:not(:disabled), label, select, summary, [role="button"], input[type="checkbox"], input[type="radio"], .seg label, .pin { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M3 2.5 3.4 20.5 8 16.2 11.2 23 14.3 21.6 11.1 14.9 17.6 14.4Z' fill='%23e3c58a' stroke='%23140f0b' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M5.2 6.5 5.5 15.8' stroke='%23fff3d6' stroke-width='1' stroke-linecap='round' opacity='.7'/%3E%3Ccircle cx='19.5' cy='19.8' r='3.4' fill='%23c0473c' stroke='%23140f0b' stroke-width='1.2'/%3E%3Ccircle cx='19' cy='19.2' r='1' fill='%23f2b8a8' opacity='.8'/%3E%3C/svg%3E") 3 2, pointer; }
  input[type="text"], input[type="number"], textarea { cursor: text; }
}

/* nástup sekcií pri otvorení obrazovky alebo zmene dňa */
.today.is-entering .sec, .today.is-entering .focus, .today.is-entering .timer-plate {
  animation: sec-in 520ms cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
.today.enter-back .sec, .today.enter-back .focus { animation-name: sec-from-left; }
.today.enter-fwd .sec, .today.enter-fwd .focus { animation-name: sec-from-right; }
@keyframes sec-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sec-from-left { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes sec-from-right { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.today.is-entering .wk-bar { animation: bar-up 700ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms + 180ms); transform-origin: bottom; }
.today.is-entering .rod-fill { animation: rod-in 900ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms + 160ms); transform-origin: left; }
.today.is-entering .wk-gem.on, .today.is-entering .wk-dots i.on { animation: gem-pop 500ms ease-out both; animation-delay: calc(var(--i, 0) * 55ms + 260ms); }
@keyframes bar-up { from { transform: scaleY(0); } to { transform: none; } }
@keyframes rod-in { from { transform: scaleX(0); } to { transform: none; } }
@keyframes gem-pop { from { opacity: 0; scale: 0.3; } 70% { scale: 1.25; } to { opacity: 1; scale: 1; } }

/* štítok so zmenenou hodnotou poskočí */
.st-chip.is-bump { animation: chip-bump 520ms ease-out; }
@keyframes chip-bump { 0% { transform: scale(1); } 35% { transform: scale(1.12); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); } 100% { transform: scale(1); } }

/* pečať pri splnení questu alebo modlitby */
.seal.is-stamped { animation: seal-stamp 560ms cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes seal-stamp { 0% { transform: scale(1.6) rotate(-12deg); opacity: 0.4; } 60% { transform: scale(0.92); box-shadow: 0 0 0 8px color-mix(in srgb, var(--gold) 25%, transparent); } 100% { transform: none; } }

/* mikroreakcie */
.act-btn, .btn, .focus-btn, .wk-d { transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast); }
.act-btn:hover, .btn:not(:disabled):hover { transform: translateY(-1px); }
.act-btn:active, .btn:not(:disabled):active, .focus-btn:active { transform: translateY(1px) scale(0.98); }
.act-btn:hover .ico { animation: ico-nudge 420ms ease-out; }
@keyframes ico-nudge { 40% { transform: rotate(-12deg) scale(1.15); } }
.sec-emb { transition: box-shadow var(--t-med), border-color var(--t-med); }
.sec:hover .sec-emb { box-shadow: 0 0 18px color-mix(in srgb, var(--c) 35%, transparent); border-color: var(--c); }
.ico.is-turning { animation: hourglass-turn 8s ease-in-out infinite; }
@keyframes hourglass-turn { 0%, 82% { transform: rotate(0); } 92%, 100% { transform: rotate(180deg); } }
.hud .ico { transition: transform var(--t-med); }

/* týždenný pás: dni sú tlačidlá */
button.wk-d { appearance: none; background: none; border: 0; padding: 4px 0 2px; margin: -4px 0 -2px; color: inherit; font: inherit; border-radius: var(--r-2); }
button.wk-d:hover .wk-m { background: color-mix(in srgb, var(--c) 9%, transparent); }
button.wk-d:hover .wk-l { color: var(--text); }
.wk-d.is-selected { background: color-mix(in srgb, var(--c) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); }
.wk-d.is-selected .wk-l { color: var(--c); font-weight: 600; }
.today.is-past .wk-d.is-today .wk-m { border-bottom-color: var(--line); background: none; }
.wk-d.is-selected .wk-bar, .wk-d.is-selected .wk-gem.on, .wk-d.is-selected .wk-dots i.on { box-shadow: 0 0 10px color-mix(in srgb, var(--c) 55%, transparent); }

.people-edit { display: grid; gap: var(--s-3); padding-top: var(--s-2); border-top: 1px dashed var(--line); }
.people-edit .seg span { min-height: 36px; font-size: var(--fs-xs); }

/* efekty nad stránkou */
.fx-layer { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.fx-spark { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--gold-hi);
  box-shadow: 0 0 8px var(--gold); animation: spark 620ms cubic-bezier(.2, .7, .3, 1) forwards; }
.fx-spark.is-ember { background: var(--ember); box-shadow: 0 0 8px var(--ember); }
@keyframes spark { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; } }
.fx-float { position: absolute; transform: translate(-50%, -50%); font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); animation: float-up 1300ms cubic-bezier(.2, .7, .3, 1) forwards; }
.fx-float.is-gold { color: var(--gold-hi); }
.fx-float.is-ember { color: var(--ember); }
@keyframes float-up { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.7); } 15% { opacity: 1; transform: translate(-50%, -70%) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -260%) scale(1); } }
.fx-celebrate { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; padding: var(--s-4) var(--s-6);
  border: 1px solid var(--gold); border-radius: var(--r-2); background: color-mix(in srgb, var(--panel) 92%, transparent); box-shadow: 0 0 40px color-mix(in srgb, var(--gold) 35%, transparent);
  animation: celebrate 3.1s ease-in-out forwards; }
.fx-celebrate b { font-family: var(--f-display); font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); color: var(--gold-hi); letter-spacing: 0.04em; }
.fx-celebrate span { color: var(--muted); font-size: var(--fs-s); }
.fx-cel-ring { position: absolute; inset: -8px; border: 1px solid var(--gold); border-radius: var(--r-2); animation: cel-ring 1.4s ease-out 2; }
@keyframes celebrate { 0% { opacity: 0; transform: translate(-50%, -20px) scale(0.9); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -10px); } }
@keyframes cel-ring { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.25); } }

/* scéna prepočtu */
.fx-scribe { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(8, 6, 4, 0.72); animation: veil-in 240ms ease-out both; }
.fx-scribe.is-out { animation: veil-out 380ms ease-in both; }
@keyframes veil-in { from { opacity: 0; } }
@keyframes veil-out { to { opacity: 0; } }
.fx-scribe-card { display: grid; justify-items: center; gap: var(--s-2); padding: var(--s-6) var(--s-6) var(--s-5); min-width: min(320px, calc(100vw - 32px));
  background: var(--panel); border: 1px solid var(--gold-lo); border-radius: var(--r-2); box-shadow: var(--shadow); text-align: center; }
.fx-scribe-card b { font-family: var(--f-display); font-weight: 600; color: var(--gold-hi); font-size: 1.15rem; }
.fx-scribe-card > span:last-child { color: var(--muted); font-size: var(--fs-xs); }
.fx-scribe-quill { color: var(--gold); animation: quill-write 0.9s ease-in-out infinite; }
.fx-scribe-quill .ico { width: 34px; height: 34px; }
.fx-scribe-line { position: relative; width: 180px; height: 2px; background: var(--line); overflow: hidden; }
.fx-scribe-line i { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: scribe-line 1.1s ease-in-out infinite; }
@keyframes scribe-line { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* výsledok prepočtu */
.recount-head { display: flex; align-items: center; gap: var(--s-4); }
.recount-emb { --c: var(--gold); width: 52px; height: 52px; }
.recount-xp { display: block; font-family: var(--f-display); font-size: 2.2rem; color: var(--gold-hi); line-height: 1.1; }
.sum-list li.is-gone .li-title { color: var(--sage); text-decoration-color: var(--sage); }
.sum-list li.is-gone .xp { color: var(--sage); }

.today:not(.is-past) .wk-d.is-selected { background: none; box-shadow: none; }
.today:not(.is-past) .wk-d.is-selected .wk-l { color: var(--gold-hi); }

/* ===== Pozadie stránky Dnes: mesto cez celú stránku (trvalý prvok za obsahom) ===== */
.city-bg { position: fixed; inset: 0; z-index: 0; display: none; overflow: hidden; pointer-events: none; background: #0d0a07; }
body.on-dnes .city-bg { display: block; }
main { position: relative; z-index: 1; }
.city-bg-img { position: absolute; inset: -2%; width: 104%; height: 104%; object-fit: cover; object-position: 55% 30%;
  animation: city-drift 48s ease-in-out infinite alternate; transform-origin: 60% 35%; transition: filter 900ms ease; }
@keyframes city-drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
body.is-past-day .city-bg-img { filter: sepia(0.65) saturate(0.6) brightness(0.75); }
.city-bg > canvas.fx-embers { position: absolute; inset: 0; width: 100%; height: 100%; }
.city-bg > .fx-torch { position: absolute; inset: 0; opacity: 0; transition: opacity 500ms; mix-blend-mode: screen;
  background: radial-gradient(circle 260px at var(--mx, 70%) var(--my, 30%), rgba(255, 190, 110, 0.2), rgba(255, 140, 60, 0.07) 45%, transparent 72%); }
.city-bg.is-lit > .fx-torch { opacity: 1; }
/* tma pribúda smerom dole, aby sa dosky dobre čítali; mesto ostáva viditeľné celé */
.city-bg-shade { position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 90% at 50% 20%, transparent 40%, rgba(8, 6, 4, 0.55) 100%),
    linear-gradient(180deg, rgba(14, 11, 8, 0.15) 0%, rgba(14, 11, 8, 0.5) 380px, rgba(14, 11, 8, 0.72) 100%); }

/* na Dnes výhľad nemá vlastný obrázok ani prechod do hnedej – leží priamo na meste */
body.on-dnes .vista::after { display: none; }
body.on-dnes .vista { background: none; }
/* dosky sú mierne priesvitné, mesto presvitá */
body.on-dnes .sec, body.on-dnes .plate { background: color-mix(in srgb, var(--panel) 86%, transparent); }
body.on-dnes .st-chip { background: color-mix(in srgb, var(--bg) 55%, transparent); }

/* minulý deň vo výhľade */
.vista-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 2px; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: #e3c58a; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.vista-kicker .ico { width: 15px; height: 15px; }
.vista-past { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-top: var(--s-3); }
.vista-past > span { font-size: var(--fs-xs); color: #e2d4b5; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.vista-back { min-height: 40px; background: rgba(20, 16, 12, 0.6); border-color: var(--gold-lo); color: #f1e6cd; }
.vista-back:hover { border-color: var(--gold); }
.ico.is-flip { transform: scaleX(-1); }

/* plávajúci štítok otvoreného dňa */
.daypill { position: fixed; z-index: 25; left: 50%; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px) + 12px); transform: translateX(-50%);
  display: flex; align-items: center; gap: var(--s-3); width: max-content; max-width: calc(100vw - 24px); padding: 6px 6px 6px 8px;
  background: color-mix(in srgb, var(--panel-2) 96%, transparent); border: 1px solid var(--gold); border-radius: 999px;
  box-shadow: var(--shadow), 0 0 26px color-mix(in srgb, var(--gold) 22%, transparent); animation: pill-in 420ms cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pill-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.daypill-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--gold); border: 1px solid var(--gold-lo); animation: quill-write 1.8s ease-in-out infinite; }
.daypill-ico .ico { width: 18px; height: 18px; }
.daypill-text { display: grid; min-width: 0; line-height: 1.25; }
.daypill-text b { font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; color: var(--gold-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.daypill-text span { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.daypill .btn { flex: none; border-radius: 999px; }
@media (min-width: 1000px) { .daypill { left: auto; right: var(--s-5); bottom: var(--s-5); transform: none; animation-name: pill-in-side; } }
@keyframes pill-in-side { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
body:has(.daypill) .toast { bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px) + 76px); }
@keyframes quill-write { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg) translateY(-1px); } 60% { transform: rotate(6deg); } }
body.on-dnes main { padding-bottom: calc(var(--s-7) + 24px); }

/* ===== Päť oblastí: farby, medailóny, budovy, svetlá, rozeta, správa mesta, Štart ===== */
.area-c-telo { color: var(--o-telo); } .area-c-mysel { color: var(--o-mysel); } .area-c-vztahy { color: var(--o-vztahy); }
.area-c-duch { color: var(--o-duch); } .area-c-povol { color: var(--o-povol); } .area-c-posl { color: var(--o-posl); }
.sec--telo, .ro-telo, .bar-telo, .medal--telo, .pin--telo { --c: var(--o-telo); }
.sec--mysel, .bar-mysel, .pin--mysel { --c: var(--o-mysel); }
.sec--vztahy, .ro-vztahy, .bar-vztahy, .medal--vztahy, .pin--vztahy { --c: var(--o-vztahy); }
.sec--duch, .ro-duch, .bar-duch, .medal--duch, .pin--duch { --c: var(--o-duch); }
.sec--povol, .ro-povol, .bar-povol, .medal--povol, .pin--povol { --c: var(--o-povol); }
.sec--posl, .ro-posl, .bar-posl, .medal--posl, .pin--posl { --c: var(--o-posl); }
.medal--telo .medal-ring { --c: var(--o-telo); }

/* medailóny oblastí v hlavičke */
.medals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: var(--s-4); max-width: 640px; }
.medal { display: grid; justify-items: center; align-content: start; gap: 3px; padding: 6px 2px; background: none; border: 0; border-radius: var(--r-2); color: #efe2c4; font: inherit; cursor: pointer; min-width: 0; }
.medal:hover { background: rgba(20, 16, 12, 0.35); }
.medal-ring { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p, 0) * 1turn), rgba(255, 255, 255, 0.14) 0); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 30%, transparent); }
.medal-ring::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: rgba(16, 12, 9, 0.88); }
.medal-ring .ico { position: relative; width: 20px; height: 20px; color: var(--c); }
.medal-lvl { position: absolute; right: -4px; bottom: -4px; min-width: 20px; height: 20px; padding: 0 4px; display: grid; place-items: center; border-radius: 10px;
  background: var(--c); color: #14100c; font-size: 0.75rem; font-weight: 700; font-family: var(--f-text); }
.medal-name { font-size: 0.75rem; line-height: 1.15; text-align: center; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); overflow-wrap: anywhere; }
.medal-today { font-size: 0.75rem; color: color-mix(in srgb, var(--c) 80%, #fff); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); }
.medal-split { width: 36px; height: 3px; background: var(--o-mysel); border-radius: 2px; overflow: hidden; }
.medal-split i { display: block; height: 100%; background: var(--o-telo); }
@media (min-width: 560px) { .medal-ring { width: 54px; height: 54px; } .medal-name { font-size: 0.8125rem; } }

/* sekcie budov */
.sec-hd .sec-edit { margin-left: auto; color: var(--muted); }
.sec-hd .sec-edit:hover { color: var(--gold-hi); }
.sec-empty { display: grid; gap: var(--s-2); justify-items: start; }
.amount { display: grid; gap: var(--s-2); }
.acts-label { flex-basis: 100%; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.acts--bad { --c: var(--ember); padding-top: var(--s-2); border-top: 1px dashed var(--line); }
.acts--bad .acts-label { color: color-mix(in srgb, var(--ember) 70%, var(--muted)); }
.act-btn--check { position: relative; }
.act-btn--check.is-done { border-color: color-mix(in srgb, var(--c) 70%, var(--line)); background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--gold-hi); }
.act-btn--check.is-done .ico { color: var(--c); }
.act-btn--check.is-stamped { animation: seal-stamp 560ms cubic-bezier(.3, 1.6, .5, 1) both; }
.duty-meta { display: block; margin-left: 4px; font-size: 0.75rem; color: var(--muted); }
.dom-rest summary { cursor: pointer; color: var(--muted); font-size: var(--fs-xs); margin-bottom: var(--s-2); }
.prayers--one { grid-template-columns: minmax(0, 1fr); }
.seg.scale, .scale .seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.scale .seg span, .seg--compact .seg span { justify-content: center; padding: 0 var(--s-2); min-height: 38px; }
.scale .seg label { display: grid; }
.scale .seg span { width: 100%; }
.seg--compact .seg { gap: 6px; }
.seg--compact legend { font-weight: 600; color: var(--text); }

/* plameň: ohniská, sviečka, svetlá */
.flame { position: relative; width: 28px; height: 36px; flex: none; display: block; --w: 1; animation: flame-flicker 1.7s ease-in-out infinite; transform-origin: 50% 100%; }
.flame i { position: absolute; left: 50%; bottom: 2px; border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%; transform: translateX(-50%) scale(calc(0.25 + var(--w) * 0.75)); transform-origin: 50% 100%; transition: transform 600ms, opacity 600ms; }
.flame i:nth-child(1) { width: 20px; height: 30px; background: radial-gradient(ellipse at 50% 70%, rgba(255, 170, 70, 0.9), rgba(208, 106, 60, 0.6) 55%, transparent 72%); opacity: calc(0.2 + var(--w) * 0.8); filter: blur(1px); }
.flame i:nth-child(2) { width: 12px; height: 20px; background: radial-gradient(ellipse at 50% 75%, #fff2cc, #ffc26b 55%, rgba(255, 160, 60, 0) 75%); opacity: calc(0.15 + var(--w) * 0.85); }
.flame i:nth-child(3) { bottom: 0; width: 26px; height: 8px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 180, 90, calc(var(--w) * 0.45)), transparent 70%); transform: translateX(-50%); }
.flame.is-out i:nth-child(1), .flame.is-out i:nth-child(2) { opacity: 0.12; filter: grayscale(1); }
.flame--big { width: 48px; height: 64px; }
.flame--big i:nth-child(1) { width: 36px; height: 54px; }
.flame--big i:nth-child(2) { width: 20px; height: 34px; }
@keyframes flame-flicker { 0%, 100% { transform: scale(1, 1) rotate(0); } 25% { transform: scale(0.97, 1.04) rotate(-1.5deg); } 50% { transform: scale(1.02, 0.97) rotate(1deg); } 75% { transform: scale(0.98, 1.03) rotate(-0.5deg); } }
.hearths { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s-2); }
.hearth { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--s-2); align-items: center; text-align: left; padding: var(--s-2) var(--s-3);
  background: color-mix(in srgb, var(--bg) 35%, transparent); border: 1px solid var(--line); border-radius: var(--r-2); color: var(--text); font: inherit; cursor: pointer; transition: border-color var(--t-fast), transform var(--t-fast); }
.hearth .flame { grid-row: 1 / 3; }
.hearth:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); transform: translateY(-1px); }
.hearth.is-today { border-color: color-mix(in srgb, var(--c) 70%, var(--line)); background: color-mix(in srgb, var(--c) 10%, transparent); }
.hearth.is-out { opacity: 0.75; }
.hearth-name { font-weight: 600; overflow-wrap: anywhere; line-height: 1.2; }
.hearth-meta { font-size: 0.75rem; color: var(--muted); line-height: 1.2; }
.candle-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); align-items: center; }
.candle { display: grid; justify-items: center; }
.candle-wax { width: 18px; height: 34px; margin-top: -4px; border-radius: 3px 3px 2px 2px; background: linear-gradient(90deg, #d8ccb2, #f4ead2 45%, #c9bb9c); box-shadow: inset 0 -6px 8px rgba(0, 0, 0, 0.18); }

/* plávajúce stopky */
.timerpill { position: fixed; z-index: 26; left: 50%; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px) + 12px); transform: translateX(-50%);
  display: flex; align-items: center; gap: var(--s-2); width: max-content; max-width: calc(100vw - 24px); padding: 6px 6px 6px 10px;
  background: color-mix(in srgb, var(--panel-2) 96%, transparent); border: 1px solid var(--gold-lo); border-radius: 999px; box-shadow: var(--shadow); animation: pill-in 420ms cubic-bezier(.2, .8, .2, 1) both; }
.timerpill.is-break { border-color: var(--sage); }
.timerpill-ico { color: var(--gold); display: grid; }
.timerpill-text { display: grid; line-height: 1.2; min-width: 0; }
.timerpill-text b { font-size: 0.9rem; color: var(--gold-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timerpill-text span { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.timerpill-clock { font-family: var(--f-display); font-size: 1.3rem; color: var(--gold-hi); min-width: 4ch; text-align: right; }
.timerpill.is-break .timerpill-clock { color: var(--sage); }
.timerpill .btn { border-radius: 999px; }
@media (min-width: 1000px) { .timerpill { left: calc(50% + 48px); bottom: var(--s-5); } }
body:has(#timerpill-host) .daypill { bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px) + 74px); }
body:has(#timerpill-host) .toast { bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px) + 76px); }

/* Postava: pohľad z Hradu */
.hero-plate { display: grid; gap: var(--s-3); }
.sec-over { margin: 0; }
.rosette-wrap { display: grid; place-items: center; }
.rosette { width: min(100%, 420px); height: auto; overflow: visible; }
.ro-frame { fill: none; stroke: var(--gold-lo); stroke-width: 1.2; }
.ro-frame--in { stroke-dasharray: 2 5; opacity: 0.7; }
.ro-line { stroke: var(--line); stroke-width: 1.2; }
.ro-line--side { stroke: var(--gold-lo); stroke-dasharray: 3 4; }
.ro-side { fill: var(--muted); font-family: var(--f-text); font-size: 11px; letter-spacing: 0.18em; }
.ro-petal .ro-track { fill: none; stroke: color-mix(in srgb, var(--c) 18%, var(--line)); stroke-width: 4; }
.ro-petal .ro-prog { fill: none; stroke: var(--c); stroke-width: 4; stroke-linecap: round; transform: rotate(-90deg); }
.ro-petal .ro-core { fill: color-mix(in srgb, var(--c) calc(10% + var(--g, 0) * 40%), var(--panel)); stroke: color-mix(in srgb, var(--c) 60%, transparent); stroke-width: 1;
  filter: drop-shadow(0 0 calc(4px + var(--g, 0) * 14px) color-mix(in srgb, var(--c) 60%, transparent)); }
.ro-lvl { fill: var(--text); font-family: var(--f-display); font-size: 22px; font-weight: 600; }
.ro-name { fill: var(--c); font-family: var(--f-text); font-size: 12px; font-weight: 600; paint-order: stroke; stroke: var(--panel); stroke-width: 5px; stroke-linejoin: round; }
.ro-side { paint-order: stroke; stroke: var(--panel); stroke-width: 4px; }
.rosette-note { text-align: center; max-width: 60ch; justify-self: center; }
.area-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--s-4); }
.area-card { display: grid; gap: var(--s-2); padding: var(--s-4); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-1); }
.area-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-3); align-items: start; }
.area-head .sec-emb { --c: currentColor; }
.area-name { font-size: 1.15rem; color: var(--gold-hi); }
.area-head .sec-note { margin-top: 2px; }
.area-lvl { font-family: var(--f-display); color: var(--c, var(--gold-hi)); }
.area-card--telo { --c: var(--o-telo); } .area-card--vztahy { --c: var(--o-vztahy); } .area-card--duch { --c: var(--o-duch); } .area-card--povol { --c: var(--o-povol); } .area-card--posl { --c: var(--o-posl); }
.split { display: grid; gap: 6px; padding-top: var(--s-2); border-top: 1px dashed var(--line); }
.split-top { display: flex; justify-content: space-between; gap: var(--s-2); font-size: var(--fs-xs); }
.split-top span { display: inline-flex; gap: 4px; align-items: center; }
.split-top .ico { width: 16px; height: 16px; }
.split-bar { display: flex; height: 10px; border-radius: 2px; overflow: hidden; background: var(--line); }
.split-telo { display: block; background: var(--o-telo); }
.split-mysel { display: block; background: var(--o-mysel); }
.lights-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin-bottom: var(--s-3); }
.light { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-2); align-items: center; padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); }
.light b { font-family: var(--f-display); color: var(--gold-hi); }
@media (max-width: 520px) { .lights-row { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); } }
.hearth-list li { gap: var(--s-3); }
.soon { text-align: center; }

/* Mesto: správa budov */
.setup-block { display: grid; gap: var(--s-2); padding-top: var(--s-3); margin-top: var(--s-2); border-top: 1px solid var(--line); }
.setup-block .sum-head { margin-top: 0; }
.setup-row { gap: var(--s-3); }
.setup-row > .ico { color: var(--gold); }
.setup-row.is-bad > .ico { color: var(--ember); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: var(--s-2); margin-bottom: var(--s-3); }
.tpl { display: grid; justify-items: center; gap: 4px; padding: var(--s-3) var(--s-2); min-height: 72px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-1); color: var(--text); font: inherit; cursor: pointer; text-align: center; }
.tpl:hover { border-color: var(--gold-lo); }
.tpl .ico { color: var(--gold); width: 22px; height: 22px; }
.check-row { display: flex; align-items: center; gap: var(--s-2); min-height: 40px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--gold); }
.check-list { display: grid; gap: 2px; }
.tr-extras { display: grid; gap: var(--s-3); }
.pin-lamp { box-shadow: 0 0 calc(var(--glow, 0) * 16px) color-mix(in srgb, var(--c, #ffcf86) 70%, transparent); }
.pin-lamp .ico { color: color-mix(in srgb, var(--c, #ffcf86) calc(30% + var(--glow, 0) * 70%), #8a7a5e); }

/* Štart */
body.is-start .tabs { display: none; }
body.is-start { padding-bottom: var(--s-5); }
.start { display: grid; gap: var(--s-4); max-width: 760px; margin: 0 auto; }
.start-head h2 { font-size: var(--fs-xxl); color: var(--gold-hi); margin: 4px 0 var(--s-2); }
.start-group { display: grid; gap: var(--s-2); padding: var(--s-4); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-1); }
.start-group legend { display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--s-2); }
.start-group legend b { display: block; font-family: var(--f-display); color: var(--gold-hi); font-weight: 600; }
.start-group legend small { display: block; color: var(--c); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.start-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px var(--s-3); }
.start-item { display: flex; gap: var(--s-2); align-items: center; min-height: 40px; cursor: pointer; }
.start-item input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.start-item small { display: block; font-size: 0.75rem; color: var(--muted); }
.candle-row > * { min-width: 0; }
.candle-row .prayers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .candle-row .prayers { grid-template-columns: minmax(0, 1fr); } }

/* Hrad: tri siene (Postava, Výzvy, Sieň slávy) */
.hrad-nav { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.hrad-nav-over { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hrad-nav-over svg { width: 16px; height: 16px; }
.hrad-nav-links { display: flex; gap: var(--s-1); flex: 1 1 auto; min-width: 0; }
.hrad-nav-links a { display: inline-flex; align-items: center; gap: 6px; padding: var(--s-2) var(--s-3); min-height: 44px; color: var(--muted); text-decoration: none; font-family: var(--f-display); font-size: 0.95rem; position: relative; transition: color .2s; }
.hrad-nav-links a svg { width: 18px; height: 18px; }
.hrad-nav-links a:hover { color: var(--text); }
.hrad-nav-links a[aria-current="page"] { color: var(--gold-hi); }
.hrad-nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: -1px; height: 2px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
@media (max-width: 520px) {
  .hrad-nav-over { display: none; }
  .hrad-nav-links { justify-content: space-between; }
  .hrad-nav-links a { padding: var(--s-2) var(--s-1); font-size: 0.9rem; }
}
