/* Climate Rules DEMO – vzhled
   Paleta: inkoust (námořní modř), mlha (papír), oceán (akce), jantar (lokální události),
   pruhy oteplování (teplota planety) jako jediný výrazný prvek. */
:root {
  /* barvy původní aplikace Climate Rules: modrá a zelená z loga */
  --cr-blue: #0099CD;
  --cr-green: #659933;
  --cr-gradient: linear-gradient(90deg, #0099CD 44%, #659933 100%);
  --ink: #262626;
  --ink-2: #4A4F57;
  --ink-3: #6E747C;
  --mist: #F4F5F7;
  --paper: #FFFFFF;
  --line: #DDE1E6;
  --ocean: #0088B8;
  --ocean-dark: #00729A;
  --ocean-soft: #E1F3FA;
  --amber: #FF9F1C;
  --amber-soft: #FFF1DC;
  --heat: #BA1B02;
  --heat-soft: #FBE1DC;
  --good: #659933;
  --bad: #BA1B02;
  --nation: #0099CD;
  --radius-s: 8px;
  --radius-m: 12px;
  --font-head: "Nunito", "Roboto", "Segoe UI", system-ui, sans-serif;
  --font-body: "Roboto", "Segoe UI", system-ui, sans-serif;
  --stripes: linear-gradient(90deg, #0099CD 0%, #4FD6C9 22%, #9BCB6B 38%, #FFD166 52%, #FF9F1C 66%, #E4572E 82%, #BA1B02 100%);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist) url('/img/background.jpg') center top / cover fixed no-repeat; color: var(--ink); font: 17px/1.5 var(--font-body); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .4em; font-weight: 800; }
h1 { font-size: 2rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ocean-dark); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.muted { color: var(--ink-3); }
.small { font-size: .88rem; }
.hidden { display: none !important; }

/* ---------- tlačítka a formuláře ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; padding: .6em 1.2em;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--mist); }
.btn.primary { background: var(--cr-blue); border-color: var(--cr-blue); color: #fff; }
.btn.primary:hover { background: var(--ocean-dark); border-color: var(--ocean-dark); }
.btn.warn { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { min-height: 38px; padding: .3em .9em; font-size: .92rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1; }
label.field { display: block; margin-bottom: 1rem; }
label.field > span { display: block; font-weight: 700; margin-bottom: .3rem; }
label.field > small { display: block; color: var(--ink-3); margin-bottom: .4rem; }
input[type=text], input[type=number], input[type=password], select, textarea {
  width: 100%; min-height: 48px; padding: .6em .8em; border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--paper); }
input:focus, select:focus, textarea:focus { border-color: var(--ocean); outline: none; }
textarea { min-height: 110px; resize: vertical; }

/* ---------- přihlášení ---------- */
.join { min-height: 100vh; display: flex; flex-direction: column; }
.join-hero { max-width: 560px; margin: 0 auto; padding: 2rem 1.25rem 0; text-align: center; }
.hero-logo { width: 180px; height: auto; }
.join-hero .stripes-tall { height: 120px; background: var(--stripes); }
.join-hero .inner { max-width: 560px; margin: 0 auto; padding: 1.6rem 1.25rem 0; }
.join-hero h1 { font-size: 2.6rem; margin-bottom: .2em; }
.join-hero p { color: var(--ink-2); max-width: 32em; margin: .8rem auto 0; }
.join-body { flex: 1; max-width: 560px; width: 100%; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.join-steps { list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: s; }
.join-steps li { counter-increment: s; position: relative; padding: .2rem 0 .9rem 2.6rem; }
.join-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--cr-gradient); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.parts { display: grid; gap: .7rem; margin-bottom: 1rem; }
.part { display: grid; grid-template-columns: 3.2rem 1fr; align-items: center; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.part b { text-align: center; font-family: var(--font-head); font-size: 1.2rem; color: var(--ink-2); }
.part input { border: 0; border-left: 2px solid var(--line); border-radius: 0; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.word-choice { display: grid; gap: .7rem; }
.word-choice button { text-align: left; padding: 1rem 1.1rem; border-radius: var(--radius-m); border: 2px solid var(--line); background: var(--paper); cursor: pointer; }
.word-choice button:hover, .word-choice button:focus-visible { border-color: var(--ocean); }
.word-choice strong { display: block; font-size: 1.3rem; letter-spacing: .08em; }
.error { background: var(--heat-soft); color: var(--bad); border-radius: var(--radius-s); padding: .7rem .9rem; margin-bottom: 1rem; font-weight: 700; }

/* ---------- herní rozvržení ---------- */
.app { max-width: 620px; margin: 0 auto; min-height: 100vh; padding-bottom: 84px; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.top .logo { height: 34px; width: auto; flex: none; }
.top .bar { display: flex; align-items: center; gap: .7rem; padding: .6rem 1rem; }
.flag { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--nation); margin-right: .4em; vertical-align: 1px; }
.role { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: .78em; padding: .05em .45em; border-radius: 4px; background: var(--cr-gradient); color: #fff; letter-spacing: .03em; }
.top .who { flex: 1; min-width: 0; }
.top .who strong { display: block; font-family: var(--font-head); font-size: 1.25rem; line-height: 1.1; }
.top .who span { font-size: .82rem; color: var(--ink-3); }
.top .round { text-align: right; font-size: .85rem; color: var(--ink-3); }
.coin { display: inline-flex; align-items: center; gap: .25em; font-weight: 700; color: var(--ink); }
.coin img { width: 14px; height: 14px; }
.top .round b { display: block; color: var(--cr-blue); font-family: var(--font-head); font-size: 1rem; }
.top .help { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--cr-blue); font-weight: 700; cursor: pointer; flex: none; }

/* pruh teploty – hlavní vizuální prvek */
.thermo { position: relative; padding: .3rem 1rem .5rem; }
.thermo .band { position: relative; height: 22px; border-radius: 4px; background: var(--stripes); }
.thermo .band { height: 10px; border-radius: 5px; }
.thermo .limit { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1px; background: var(--ink); border-radius: 2px; }
.thermo .marker { position: absolute; top: -5px; width: 20px; height: 20px; margin-left: -10px; background: #fff; border: 4px solid var(--cr-blue); border-radius: 50%; transition: left .8s ease; }
.thermo.over .marker { border-color: var(--heat); }
.thermo .labels { display: flex; justify-content: space-between; color: var(--ink-3); font-size: .74rem; margin-top: .35rem; }
.thermo .now { color: var(--ink); font-weight: 700; font-size: .9rem; }
.thermo.over .now { color: var(--heat); }

.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--paper); border-top: 1px solid var(--line); }
.tabs .inner { max-width: 620px; margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.tabs button { position: relative; min-height: 64px; border: 0; background: transparent; cursor: pointer; font-weight: 700; color: var(--ink-3); padding: .4rem 0 .5rem; }
.tabs button svg { display: block; margin: 0 auto .15rem; width: 24px; height: 24px; }
.tabs button[aria-current=page] { color: var(--ink); }
.tabs button[aria-current=page]::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 4px; border-radius: 0 0 4px 4px; background: var(--nation); }
.tabs .dot { position: absolute; top: 8px; left: calc(50% + 10px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--amber); color: var(--ink); font-size: .72rem; line-height: 18px; }

main { padding: 1rem; }
section.block { margin-bottom: 1.6rem; }
.block > h2 { margin-bottom: .6rem; }
.card { background: var(--paper); border-radius: var(--radius-m); padding: 1rem 1.1rem; margin-bottom: .75rem; border: 1px solid var(--line); }

/* další krok – návodné akce */
.next { border: 0; border-left: 6px solid var(--ocean); background: var(--paper); }
.next.event { border-left-color: var(--amber); background: var(--amber-soft); }
.next.wait { border-left-color: var(--ink-3); }
.next.go { border-left-color: var(--nation); }
.next h3 { margin-bottom: .25rem; }
.next p { margin-bottom: .6rem; }
.next p:last-child { margin-bottom: 0; }

/* informační okénka – tutoriál */
.tip { position: relative; background: var(--ocean-soft); border-radius: var(--radius-m); padding: .9rem 2.8rem .9rem 1rem; margin-bottom: 1rem; }
.tip p { margin-bottom: .3rem; }
.tip p:last-child { margin: 0; }
.tip .x { position: absolute; top: .4rem; right: .4rem; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 1.3rem; color: var(--ocean-dark); }

/* statistiky */
.stats { display: grid; gap: .1rem; }
.stat { display: grid; grid-template-columns: 1fr auto; gap: .1rem .8rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.stat:last-child { border-bottom: 0; }
.stat .name { font-weight: 700; }
.stat .val { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; text-align: right; }
.stat .val small { font-family: var(--font-body); font-weight: 400; font-size: .8rem; color: var(--ink-3); }
.stat .scale { grid-column: 1 / -1; display: flex; gap: 3px; }
.stat .scale i { flex: 1; height: 8px; border-radius: 2px; background: var(--line); }
.stat .scale i.on { background: var(--ink-2); }
.stat .scale i.on.good { background: var(--good); }
.stat .scale i.on.bad { background: var(--bad); }
.stat .scale { position: relative; padding-bottom: 6px; }
.stat .scale i { position: relative; }
.stat .scale i.start::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 2px; background: var(--amber); }
.delta { font-size: .8rem; font-weight: 700; margin-left: .3em; }
.delta.up { color: var(--good); } .delta.down { color: var(--bad); }

/* svět */
.world { width: 100%; border-collapse: collapse; font-size: .92rem; }
.world th, .world td { padding: .5rem .3rem; text-align: right; border-bottom: 1px solid var(--line); }
.world th:first-child, .world td:first-child { text-align: left; white-space: nowrap; }
.world th { font-size: .78rem; color: var(--ink-3); font-weight: 700; }
.world tr.mine td { font-weight: 700; }
.chip-n { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .4em; vertical-align: middle; }

/* banka */
.balance { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.balance .money { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.balance .money small { font-size: 1rem; color: var(--ink-3); }
.tax { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; text-align: center; }
.tax .lvl { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); font-size: 1.5rem; font-weight: 700; cursor: pointer; }
.round-btn[disabled] { opacity: .35; cursor: not-allowed; }
.tx { display: grid; grid-template-columns: 1fr auto; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.tx:last-child { border: 0; }
.tx .amt { font-weight: 700; font-family: var(--font-head); }
.tx .amt.in { color: var(--good); } .tx .amt.out { color: var(--bad); }

/* návrhy čekající na potvrzení */
.proposal { background: var(--paper); border: 2px dashed var(--ink-3); border-radius: var(--radius-m); padding: .9rem 1rem; margin-bottom: .75rem; }
.proposal.mine { border-color: var(--line); }
.proposal .who { font-size: .85rem; color: var(--ink-3); }

/* technologie */
.filters { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: .6rem; }
.filters button { flex: none; border: 2px solid var(--line); background: var(--paper); border-radius: 999px; padding: .35em .9em; min-height: 40px; cursor: pointer; font-weight: 700; color: var(--ink-2); }
.filters button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tech { display: grid; grid-template-columns: 76px 1fr; gap: .8rem; padding: .7rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); margin-bottom: .6rem; cursor: pointer; text-align: left; width: 100%; }
.tech:hover { border-color: var(--ink-3); }
.tech > img, .tech > .noimg { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius-s); background: var(--mist); }
.tech h3 { margin: 0 0 .2rem; font-size: 1.02rem; }
.tech .meta { font-size: .85rem; color: var(--ink-3); }
.fx { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.fx span { font-size: .78rem; font-weight: 700; padding: .1em .5em; border-radius: 4px; background: var(--mist); }
.fx span.good { background: #DDF1E4; color: #145C33; }
.fx span.bad { background: var(--heat-soft); color: #8C1D17; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .1em .55em; border-radius: 4px; background: var(--ink); color: #fff; vertical-align: middle; }
.badge.cert { background: var(--amber); color: var(--ink); }
.badge.active { background: var(--good); }
.badge.wait { background: var(--ink-3); }

/* modální okna */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(16, 35, 63, .55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto; background: var(--paper); border-radius: 18px 18px 0 0; padding: 1.3rem 1.2rem 1.6rem; animation: up .25s ease-out; }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 18px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet .close { float: right; width: 44px; height: 44px; margin: -.4rem -.4rem 0 0; border: 0; background: transparent; font-size: 1.6rem; cursor: pointer; }
.sheet img.hero { width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--radius-m); margin-bottom: 1rem; }
.sheet.event { border-top: 10px solid var(--amber); }
.sheet.global { border-top: 0; padding-top: 0; }
.sheet.global .stripes { height: 54px; margin: 0 -1.2rem 1.2rem; background: var(--stripes); }
.kicker { font-weight: 700; color: var(--ink-3); margin-bottom: .2rem; }
.option { display: block; width: 100%; text-align: left; border: 2px solid var(--line); border-radius: var(--radius-m); background: var(--paper); padding: .9rem 1rem; margin-bottom: .6rem; cursor: pointer; }
.option:hover { border-color: var(--ink-3); }
.option.voted { border-color: var(--ocean); background: var(--ocean-soft); }
.option b { display: block; margin-bottom: .2rem; }
.option .votes { display: flex; gap: .3rem; margin-top: .4rem; flex-wrap: wrap; }
.option .votes span { font-size: .78rem; font-weight: 700; padding: .1em .5em; border-radius: 4px; background: var(--ocean); color: #fff; }
.slides .dots { display: flex; gap: .4rem; justify-content: center; margin: 1rem 0; }
.slides .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.slides .dots i.on { background: var(--ink); }
.role-big { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; margin: .2rem 0 .6rem; }

.toast { width: max-content; position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 70; background: var(--ink); color: #fff; padding: .75rem 1.1rem; border-radius: var(--radius-m); max-width: calc(100% - 2rem); font-weight: 700; animation: up .2s ease-out; }
.toast.err { background: var(--bad); }
.offline { background: var(--amber); color: var(--ink); text-align: center; font-weight: 700; padding: .3rem; font-size: .88rem; }
.empty { color: var(--ink-3); padding: .5rem 0; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* doplňky pro plnou hru: globální události, licence, tajné cíle */
.card { box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.money.neg { color: var(--bad); }
.next.global { border-left-color: var(--heat); background: var(--heat-soft); }
.gu.open { border: 2px solid var(--heat); }
.gu .kicker, .gu-inner .kicker { color: var(--heat); }
.option[disabled] { cursor: default; opacity: .85; }
.badge.patent { background: var(--cr-green); }
.badge.licence { background: var(--ocean-soft); color: var(--ocean-dark); }
.badge.prot { background: var(--cr-blue); }
.card.lic { background: var(--ocean-soft); border: 0; }
.goal { display: flex; gap: .6rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.goal:last-of-type { border-bottom: 0; }
.goal p { margin: 0 0 .2rem; }
.goal.confirmed p { color: var(--good); font-weight: 700; }
.mini-thermo { height: 12px; border-radius: 6px; background: var(--stripes); margin-bottom: 1rem; }
.role-big .role { font-size: .6em; vertical-align: middle; }
.tabs button[aria-current=page] { color: var(--cr-blue); }
.tabs button[aria-current=page]::before { background: var(--cr-gradient); }
.top .who span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .who strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .who strong { display: flex; align-items: center; }
.top .who strong .flag { flex: none; }

/* --- události jako obrázek + symboly --- */
.ev-hero { position: relative; margin: -.2rem -.2rem .8rem; border-radius: var(--radius-m); overflow: hidden; background: #eef4f8; }
.ev-hero img { display: block; width: 100%; aspect-ratio: 485/349; max-height: 32vh; object-fit: cover; }
.ev-kind { position: absolute; left: .6rem; top: .6rem; background: rgba(255,255,255,.92); color: var(--ink); font-size: .75rem; font-weight: 700; padding: .2em .6em; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.card.gu .ev-hero { margin: 0 0 .7rem; }
.sym { display: inline-flex; align-items: center; gap: .25rem; padding: .25em .55em; border-radius: 99px; font-size: .95rem; background: var(--mist); }
.sym svg { width: 20px; height: 20px; flex: none; }
.sym b { font-weight: 800; }
.fx .sym { font-size: .95rem; padding: .25em .6em; }
.sym.good, .fx span.sym.good { background: #DDF1E4; color: #145C33; }
.sym.bad, .fx span.sym.bad { background: var(--heat-soft); color: #8C1D17; }
.sym.none { color: var(--ink-3); font-size: .85rem; }
.sym-opt { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.sym-opt .letter { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--cr-blue, #0099CD); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); font-size: 1.1rem; }
.sym-opt .fx { margin: 0; flex: 1; gap: .4rem; }
.sym-opt .votes, .sym-opt .tally { flex-basis: 100%; margin: 0; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .35rem; font-size: .72rem; color: var(--ink-3); margin: .2rem 0 .8rem; }
.legend svg { width: 14px; height: 14px; }
.legend .lg { display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; margin-right: .6rem; }
.legend .lg span { margin: 0; }
.ev-row { grid-template-columns: 64px 1fr !important; align-items: center; }
.ev-row img { width: 64px; height: 46px; object-fit: cover; border-radius: 6px; }

/* --- technologie: rozpracované, průběh certifikace, bliknutí --- */
.filters .cnt { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; padding: 0 .3em; border-radius: 99px; background: var(--cr-green, #659933); color: #fff; font-size: .75em; margin-left: .2em; }
@keyframes crFlash { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,159,28,0); } 50% { box-shadow: 0 0 0 6px rgba(255,159,28,.55); background-color: #FFF1DC; } }
.flash { animation: crFlash .9s ease-in-out 6; }
nav button.flash, [data-tab].flash { border-radius: 12px; }
.card.wip { padding: 0; overflow: hidden; }
.card.wip .tech { border: 0; border-radius: 0; margin: 0; box-shadow: none; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; padding: .7rem .8rem .2rem; position: relative; }
.step { text-align: center; font-size: .72rem; color: var(--ink-3); position: relative; }
.step .dot { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; margin: 0 auto .25rem; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); font-weight: 800; font-size: .85rem; position: relative; z-index: 1; }
.step:not(:last-child)::after { content: ''; position: absolute; top: .95rem; left: 50%; width: 100%; height: 2px; background: var(--line); }
.step.done .dot { background: var(--cr-green, #659933); border-color: var(--cr-green, #659933); color: #fff; }
.step.done:not(:last-child)::after { background: var(--cr-green, #659933); }
.step.now .dot { border-color: #FF9F1C; color: #B86A00; animation: crFlash 1.4s ease-in-out infinite; }
.step.now b { color: var(--ink); }
.step b { display: block; font-size: .78rem; line-height: 1.15; }
.step small { display: block; line-height: 1.2; margin-top: .1rem; }
.step-help { padding: .6rem .9rem .9rem; font-size: .9rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; background: #FFF6E8; border-top: 1px solid #FBE3C0; }
.sheet .steps { padding: .2rem 0 .6rem; }
.howto { padding-left: 1.2rem; margin: .4rem 0 1rem; } .howto li { margin-bottom: .35rem; }
@media (prefers-reduced-motion: reduce) { .flash, .step.now .dot { animation: none; outline: 3px solid #FF9F1C; } }
.filters { flex-wrap: wrap; overflow: visible; }
.filters button { min-height: 36px; padding: .3em .8em; font-size: .9rem; }

/* --- tajné cíle u státu --- */
.card.goals { margin-top: .7rem; border-left: 5px solid var(--nation, #0099CD); }
.goals-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.goals-head h3 { margin: 0; }
.goal { display: flex; gap: .6rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--line); }
.goal p { margin: 0 0 .15rem; font-weight: 500; }
.goal .gicon { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--ink-3); font-weight: 800; }
.goal.met .gicon { background: #DDF1E4; color: #145C33; }
.goal.confirmed .gicon { background: var(--cr-green, #659933); color: #fff; }
.goal.confirmed p { color: var(--ink-2); }
.clim { border: 1px solid var(--line); border-radius: 12px; padding: .6rem 1rem .2rem; margin: 0 0 1rem; }
.clim legend { font-weight: 700; padding: 0 .4rem; }

/* --- ikonky rolí (z jmenovek plné hry) --- */
.ricon { width: 1.6em; height: auto; vertical-align: middle; margin-right: .3em; }
.ricon.hdr { width: 1.7em; margin: -.2em .3em -.1em 0; }
.ricon.xs { width: 1.15em; margin-right: .2em; }
.ricon.big { width: 72px; margin: 0; }
.role-big { display: flex; align-items: center; gap: .8rem; }
.team { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: .4rem 0 .2rem; }
.team span { display: inline-flex; align-items: center; font-weight: 700; }
.team .ricon { width: 2em; }
.votes span .ricon.xs { filter: drop-shadow(0 0 1px #fff); }
/* --- hrozící globální události a výzvy --- */
.card.threat { display: flex; gap: .8rem; align-items: flex-start; }
.card.threat > img { width: 84px; height: 62px; object-fit: cover; border-radius: 8px; flex: none; }
.card.threat h3 { margin: 0 0 .2rem; }
.card.threat.met { border: 2px solid var(--cr-green, #659933); background: #F2F9EC; }
.cbar { height: 8px; border-radius: 99px; background: var(--mist); overflow: hidden; margin-top: .3rem; }
.cbar i { display: block; height: 100%; background: var(--cr-green, #659933); border-radius: 99px; transition: width .6s ease; }
.good-text { color: #2F6B16; }
.card.gu.prevented { border: 2px solid var(--cr-green, #659933); }
@media (max-width: 420px) { .card.threat { flex-direction: column; } .card.threat > img { width: 100%; height: 120px; } }

/* --- nevyřešená lokální událost --- */
.evbar { position: sticky; top: var(--hdr-h, 0); z-index: 5; display: flex; align-items: center; gap: .7rem; width: calc(100% - 2rem); max-width: 760px; margin: .6rem auto 0; padding: .5rem .8rem; border: 0; border-radius: 12px; background: #FFF1DC; box-shadow: 0 0 0 2px #FF9F1C inset; text-align: left; cursor: pointer; color: var(--ink); font: inherit; animation: crFlash 1.6s ease-in-out 3; }
.evbar img { width: 54px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; }
.evbar b { display: block; font-size: .95rem; }
.evbar small { display: block; color: var(--ink-2); font-size: .8rem; line-height: 1.3; }
.evbar .go { margin-left: auto; font-size: 1.2rem; color: #B86A00; }
.nowstrip { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; background: var(--mist); border-radius: 10px; padding: .45rem .7rem; margin: .4rem 0 .7rem; font-size: .95rem; }
.nowstrip .lbl { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); width: 100%; }
.nowstrip span:not(.lbl) { display: inline-flex; align-items: center; gap: .25rem; }
.nowstrip svg { width: 18px; height: 18px; }
.sym-opt .after { flex-basis: 100%; margin: -.2rem 0 0 2.9rem; }
.bad-text { color: #A3261B; }
.card.evblock { background: #FFF1DC; border: 0; box-shadow: 0 0 0 2px #FF9F1C inset; }

/* --- admin: karty globálních událostí --- */
.gugrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; }
.gucard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.gucard > img { width: 100%; height: 110px; object-fit: cover; }
.gucard .gb { padding: .6rem .75rem .75rem; }
.gucard h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.gucard.met { border: 2px solid var(--cr-green, #659933); }
.gucard.open { border: 2px solid #E4572E; margin-bottom: .8rem; flex-direction: row; }
.gucard.open > img { width: 150px; height: auto; }
.guopt { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .35rem; }
.guopt > b { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--cr-blue, #0099CD); color: #fff; display: grid; place-items: center; font-size: .85rem; flex: none; }
.guopt .fx { margin: 0; }
.guopt .sym { font-size: .85rem; }
.guopt .sym svg { width: 16px; height: 16px; }
.gutab td { vertical-align: top; }
.gutab td .guopt:first-child { margin-top: 0; }
.gutab tr.met td { background: #F2F9EC; }
.gurow { border-top: 1px solid var(--line); padding: .55rem 0; }
.gurow .gh { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.gurow .gopts { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin: .25rem 0; }
.gurow .gopts .guopt { margin-top: 0; }
.gurow.met { background: #F2F9EC; }
@keyframes wipPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,159,28,.7); transform: scale(1); } 50% { box-shadow: 0 0 0 6px rgba(255,159,28,0); transform: scale(1.12); } }
.filters .cnt.wip, .tabs .dot.wip { background: #FF9F1C; color: #fff; font-weight: 800; animation: wipPulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .filters .cnt.wip, .tabs .dot.wip { animation: none; } }
@keyframes crFlashRing { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,159,28,0); } 50% { box-shadow: 0 0 0 6px rgba(255,159,28,.6); } }
.filters button[aria-pressed=true].flash { animation: crFlashRing .9s ease-in-out 6; }
.hintbtn { background: linear-gradient(90deg, #E8F6FC, #EEF6E6); border: 2px dashed var(--cr-blue, #0099CD); color: var(--ink); font-weight: 700; }
.hintbtn[disabled] { border-style: solid; border-color: var(--cr-green, #659933); opacity: 1; }
textarea.filled { animation: fillFlash 1s ease; }
@keyframes fillFlash { 0% { background: #FFF1DC; } 100% { background: #fff; } }

/* --- záložka Hrozby: oddělení aktuální vs. hrozící --- */
.sec-band { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; padding: .6rem .9rem; border-radius: 12px; color: #fff; margin-bottom: .6rem; }
.sec-band.red { background: linear-gradient(90deg, #BA1B02, #E4572E); }
.sec-band.blue { background: linear-gradient(90deg, #0099CD, #659933); }
.cur-gu { background: #FFF4F0; border: 2px solid #E4572E; border-radius: 16px; padding: .6rem .6rem .2rem; margin-bottom: 1.8rem; }
.threats-sec { border-top: 3px dashed var(--line); padding-top: 1.2rem; }
.negot { background: #fff; border-radius: 12px; padding: .7rem .9rem; margin-bottom: .7rem; box-shadow: 0 0 0 2px #FFD3C4 inset; }
.negot .nh { font-weight: 800; margin-bottom: .3rem; }
.negot ol { margin: 0; padding-left: 1.2rem; font-size: .92rem; }
.negot li { margin-bottom: .3rem; }
.sheet .negot { margin-top: .8rem; }

/* --- přechod do nového období (krok za krokem) --- */
.rr h2 { margin-bottom: .6rem; }
.rr-big { font-family: var(--font-head); font-weight: 900; font-size: 3.4rem; text-align: center; line-height: 1.1; }
.trend { text-align: center; font-weight: 800; padding: .5rem .7rem; border-radius: 10px; background: var(--mist); margin: .4rem 0 .8rem; }
.trend.bad { background: #FBE3DF; color: #A3261B; animation: crFlash 1.4s ease-in-out 2; }
.trend.good { background: #DDF1E4; color: #145C33; }
.rr-mine { text-align: center; font-size: 1.1rem; padding: .55rem; border: 2px solid var(--line); border-radius: 12px; margin-bottom: .6rem; }
.rr-temp { display: flex; justify-content: center; align-items: baseline; gap: .7rem; font-family: var(--font-head); font-weight: 900; font-size: 2.2rem; margin: .4rem 0 1rem; }
.rr-temp span { color: var(--ink-3); font-size: 1.5rem; }
.rr-temp .arrow { font-size: 1.6rem; }
.rr-th { padding: .4rem 0 .6rem; }
.rr-th .marker { transition: left 2s cubic-bezier(.4,0,.2,1) !important; }
.rr-list { padding-left: 0; list-style: none; margin: .4rem 0 1rem; }
.rr-list li { background: var(--mist); border-radius: 10px; padding: .6rem .75rem; margin-bottom: .5rem; line-height: 1.4; }
.rr-list li svg { width: 18px; height: 18px; vertical-align: -3px; }
.rr-list.num { counter-reset: n; }
.rr-list.num li { counter-increment: n; position: relative; padding-left: 2.6rem; }
.rr-list.num li::before { content: counter(n); position: absolute; left: .7rem; top: .55rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--cr-blue, #0099CD); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.gu-how { background: #FFF1DC; border-radius: 10px; padding: .55rem .75rem; margin: .4rem 0 .7rem; font-size: .92rem; line-height: 1.4; }
.gu-how.done { background: #DDF1E4; }
.option[disabled] { opacity: .7; }
.option[disabled]:hover { border-color: var(--line); }
.stat .name { display: inline-flex; align-items: center; gap: .35rem; }
.sicon { display: inline-flex; color: var(--cr-blue, #0099CD); }
.sicon svg { width: 20px; height: 20px; }
.world th .sicon { display: block; margin: 0 auto .1rem; }
.world th .sicon svg { width: 18px; height: 18px; }
.hint { position: fixed; z-index: 100; background: #212529; color: #fff; border-radius: 10px; padding: .55rem .7rem; font-size: .85rem; line-height: 1.35; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: fadein .15s ease; }
.hint b { display: block; margin-bottom: .15rem; }
.sym[data-hint] { cursor: help; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }
.world th { vertical-align: bottom; text-align: center; }
.world td { text-align: center; }
.world th:first-child { vertical-align: bottom; }
.world th .sicon { height: 20px; display: flex; justify-content: center; align-items: center; margin: 0 auto .15rem; }
.world th .sicon svg { width: 18px; height: 18px; }
.world th, .world td { padding: .45rem .15rem; }
.world th { font-size: .66rem; letter-spacing: -.01em; }
.world td:first-child, .world th:first-child { padding-right: .4rem; }
.world th .sicon svg { width: 20px; height: 20px; }
.gu-how.deputy { background: #E8F6FC; }

/* --- konec hry --- */
body.over .tabs { display: none; }
.fin-hero { margin: 1rem auto 0; max-width: 760px; width: calc(100% - 2rem); border-radius: 18px; padding: 1.2rem 1.2rem 1rem; color: #fff; box-sizing: border-box; }
.fin-hero.good { background: linear-gradient(120deg, #0099CD, #659933); }
.fin-hero.bad { background: linear-gradient(120deg, #BA1B02, #E4572E 60%, #FF9F1C); }
.fin-hero h1 { color: #fff; font-size: 1.8rem; margin: .2rem 0 .4rem; }
.fin-hero .kicker { color: #fff; opacity: .85; }
.fin-hero p { margin: 0; }
.fin-row { display: flex; align-items: center; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.fin-row .pos { width: 1.6rem; }
.fin-row .nm { font-weight: 700; flex: 1; }
.fin-row.me { background: var(--ocean-soft, #E8F6FC); border-radius: 8px; padding-left: .4rem; }
.fin-cta { background: linear-gradient(120deg, #0099CD 30%, #659933); color: #fff; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.fin-cta h2 { color: #fff; margin-top: .2rem; }
.fin-cta > div:first-child { flex: 1 1 240px; }
.fin-qr { background: #fff; border-radius: 12px; padding: .5rem; text-align: center; color: var(--ink); font-weight: 700; font-size: .8rem; }
.fin-qr svg { width: 120px; height: 120px; display: block; }

/* půjčka */
.loan-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: .5rem; margin-bottom: .8rem; }
.loan-opt input { position: absolute; opacity: 0; }
.loan-opt span { display: block; text-align: center; border: 2px solid var(--line); border-radius: 12px; padding: .55rem .3rem; cursor: pointer; }
.loan-opt span b { display: block; font-size: 1.15rem; }
.loan-opt span small { color: var(--ink-3); font-size: .75rem; line-height: 1.25; display: block; }
.loan-opt input:checked + span { border-color: var(--cr-blue, #2F6DB5); background: rgba(47,109,181,.08); }
.loan-st { border-left: 5px solid var(--good, #659933); background: var(--mist, #f3f5f2); padding: .6rem .8rem; border-radius: 8px; margin-bottom: .6rem; }
.loan-st.wait { border-color: var(--amber, #E6A700); } .loan-st.bad { border-color: var(--bad, #BA1B02); }

/* teploměr jako na projektoru */
.tbm { display: flex; align-items: center; gap: .5rem; padding: .35rem .9rem .5rem; }
.tbm .th svg { width: 30px; height: 30px; display: block; }
.tbm .scale { flex: 1; min-width: 0; }
.tbm .r3 { display: flex; text-align: center; font-weight: 700; line-height: 1.2; }
.tbm .r3 span { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: visible; display: flex; justify-content: center; }
.tbm .lb { font-size: .68rem; }
.tbm .lb .lim { position: relative; }
.tbm .lb .lim i { position: absolute; left: 50%; transform: translateX(-50%); font-style: normal; background: #ba1b02; color: #fff; border-radius: 4px; padding: 0 3px; white-space: nowrap; }
.tbm .gs { font-size: .6rem; color: var(--ink-3); font-weight: 400; }
.tbm .ln-w { position: relative; margin: .3rem 0; }
.tbm .ln { display: flex; height: 5px; } .tbm .ln span { flex: 1 1 0; }
.tbm .ptr { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 15px; height: 15px; border-radius: 50%; background: #262626; box-shadow: 0 0 0 3px #fff; transition: left 1.2s cubic-bezier(.4,0,.2,1); }
.tbm .nw { display: flex; justify-content: space-between; align-items: baseline; font-size: .8rem; margin-top: .15rem; }
.tbm .nw b { font-weight: 900; font-size: .95rem; }
.tc0, .tc1 { color: #0099cd; } .tc2 { color: #ff9f1c; } .tc3 { color: #ba1b02; } .tc4 { color: #262626; }
.tg0, .tg1 { background: #0099cd; } .tg2 { background: #ff9f1c; } .tg3 { background: #ba1b02; } .tg4 { background: #262626; }

.sec-band .bico { width: 1.05em; height: 1.05em; vertical-align: -.15em; margin-right: .25em; }

/* nespokojenost */
.stat.unrest .unrest-note { grid-column: 1 / -1; margin-top: .15rem; }
.unrest-box { border-left: 5px solid var(--bad, #BA1B02); background: #FBEAE6; border-radius: 8px; padding: .55rem .8rem; margin: .4rem 0 .7rem; }
.unrest-box b { display: block; color: var(--bad, #BA1B02); } .unrest-box span { font-size: .85rem; }

/* měna */
.cur { width: .95em; height: .95em; vertical-align: -.12em; margin-left: .15em; display: inline-block; }
.cur.big { width: .8em; height: .8em; vertical-align: -.02em; margin-left: .12em; }
.ccv { white-space: nowrap; }
.coin img { margin-left: .1em; }
/* daně – náhled */
.round-btn.on { background: var(--cr-blue, #0099cd); color: #fff; border-color: var(--cr-blue, #0099cd); }
.tax .lvl .ar { color: var(--ink-3); font-weight: 400; }
.tx-sim { margin-top: .9rem; border: 2px dashed var(--line); border-radius: 12px; padding: .7rem .9rem; background: var(--mist, #f5f6f4); }
.tx-sim-h { font-weight: 700; margin-bottom: .4rem; }
.tx-sim-row { display: grid; grid-template-columns: 22px 1fr auto auto auto; gap: .5rem; align-items: center; padding: .25rem 0; }
.tx-sim-row .sicon svg { width: 18px; height: 18px; }
.tx-sim-row .fr { color: var(--ink-3); } .tx-sim-row .ar { color: var(--ink-3); } .tx-sim-row b { min-width: 1.6em; text-align: right; }
/* platba */
.flbl { display: block; font-weight: 700; margin-bottom: .35rem; }
.to-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.to-chip input { position: absolute; opacity: 0; }
.to-chip span { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .75rem; border: 2px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.to-chip span i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.to-chip input:checked + span { border-color: var(--cr-blue, #0099cd); background: rgba(0,153,205,.08); }
.amt-row { display: flex; gap: .4rem; align-items: stretch; }
.amt-in { position: relative; flex: 1; min-width: 90px; }
.amt-in input { width: 100%; padding-right: 2.2rem; font-size: 1.15rem; font-weight: 700; }
.amt-in .cur { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); width: 1.1rem; height: 1.1rem; margin: 0; }
.amt-q { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 0 .6rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.amt-q.on { border-color: var(--cr-blue, #0099cd); background: rgba(0,153,205,.08); }
.amt-q:disabled { opacity: .4; }
.pay-left { margin-top: .35rem; }
.cur-ic { width: 16px; height: 16px; vertical-align: -3px; display: inline-block; }
.sym .cur-ic, .chip .cur-ic { width: 1.05em; height: 1.05em; }

.goals-teaser { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; cursor: pointer; border: 2px solid var(--cr-blue, #0099cd); background: #fff; font: inherit; color: inherit; }
.goals-teaser .grow { display: flex; flex-direction: column; gap: .1rem; }
.goals-teaser .gt-ic svg { width: 30px; height: 30px; color: var(--cr-blue, #0099cd); display: block; }
.goals-teaser .gt-go { color: var(--cr-blue, #0099cd); font-weight: 700; white-space: nowrap; }
h2 > svg { width: 1em; height: 1em; vertical-align: -.12em; }
@media (max-width: 380px) { .tabs button { font-size: .78rem; } }

/* značka měny vždy malá jako text – nezávisle na okolních pravidlech pro obrázky */
img.cur { width: .95em !important; height: .95em !important; object-fit: contain !important; border-radius: 0 !important; background: none !important; vertical-align: -.12em; margin: 0 0 0 .15em; }
img.cur.big { width: .8em !important; height: .8em !important; }
img.cur-ic { width: 16px !important; height: 16px !important; object-fit: contain !important; border-radius: 0 !important; background: none !important; }
.amt-in img.cur { width: 1.1rem !important; height: 1.1rem !important; margin: 0; }

.fin-brand { display: block; text-align: center; margin: 1.2rem 0 .4rem; } .fin-brand img { height: 46px; width: auto; }

.fin-links { display: grid; gap: .6rem; margin-top: .8rem; }
.fin-links .btn { display: flex; align-items: center; justify-content: space-between; gap: .8rem; background: #fff; color: var(--ink); border: 0; min-height: 56px; }
.fin-links .btn span { font-weight: 800; font-size: 1.1rem; }
.fin-links .btn small { color: var(--ink-3); font-weight: 600; }
.fin-links .fin-l2 img { height: 26px; width: auto; }
.fin-sec > h2 { margin: 1.8rem 0 .8rem; }
.fin-sec > .card { margin-top: 0; }

.share-card canvas { width: 100%; height: auto; border-radius: 14px; display: block; box-shadow: 0 6px 20px rgba(0,0,0,.12); margin: .4rem 0 .8rem; }
.share-ctl { display: flex; gap: .5rem; flex-wrap: wrap; } .share-ctl input[type=text] { flex: 1; min-width: 150px; }
.share-photo { cursor: pointer; }

.share-opts { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin: .3rem 0; }
.share-opts > span { min-width: 6.5em; }
.chip-btn { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: .35rem .8rem; font-weight: 700; cursor: pointer; font: inherit; font-weight: 700; }
.chip-btn.on { border-color: var(--cr-blue, #0099cd); background: rgba(0,153,205,.1); }
.share-ctl .btn { flex: 1; text-align: center; }
.share-opts { flex-wrap: nowrap; overflow-x: auto; }
.share-opts > span { min-width: 0; white-space: nowrap; font-size: .8rem; margin-right: .2rem; }
.chip-btn { font-size: .88rem; padding: .3rem .7rem; white-space: nowrap; flex: none; }
.share-ctl .btn { font-size: .92rem; min-height: 44px; padding: .4rem .6rem; white-space: nowrap; }

/* heslo sedí → výběr role */
.join-ok { display: flex; align-items: center; gap: .9rem; background: #fff; border: 2px solid var(--nc); border-radius: 18px; padding: .8rem 1rem; margin-bottom: .9rem; animation: okIn .45s ease-out; }
.ok-check svg { width: 52px; height: 52px; display: block; }
.ok-check circle { fill: var(--good, #659933); }
.ok-check path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: okDraw .5s .25s ease-out forwards; }
.ok-kicker { color: var(--good, #659933); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.ok-nation { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; display: flex; align-items: center; gap: .5rem; }
.ok-nation i { width: 16px; height: 16px; border-radius: 4px; background: var(--nc); display: inline-block; }
@keyframes okIn { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes okDraw { to { stroke-dashoffset: 0; } }
.join-prog { display: flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; color: var(--ink-3); margin: .2rem 0 .6rem; flex-wrap: wrap; }
.join-prog .done { color: var(--good, #659933); } .join-prog .now { color: #fff; background: var(--cr-blue, #0099cd); border-radius: 999px; padding: .15rem .6rem; }
.join-prog .sep { flex: 0 0 14px; height: 2px; background: var(--line); }
.roles-pick button { display: flex; align-items: center; gap: .8rem; border-left: 6px solid var(--nc); }
.roles-pick .rp-ic { width: 46px; height: 46px; flex: none; }
.roles-pick .rp-txt { flex: 1; display: flex; flex-direction: column; gap: .1rem; }
.roles-pick .rp-role { font-size: .95rem; } .roles-pick small { font-size: .78rem; line-height: 1.3; }
.roles-pick .rp-go { font-size: 1.8rem; color: var(--ink-3); }
.roles-pick .rp-taken { color: var(--amber, #c98417); font-weight: 600; }
.roles-pick button.taken { opacity: .85; }
.join-hero.small { padding-top: .6rem; padding-bottom: 0; } .join-hero.small .hero-logo { width: 90px; height: auto; }
.tax.ro { justify-content: center; text-align: center; }

/* oblasti tajných cílů */
.goal .garea { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #EAF4FA; color: #0077A8; }
.goal .garea svg, .goal .garea img { width: 24px; height: 24px; }
.goal .garea.a-health { background: #FCE9EC; color: #C0304A; }
.goal .garea.a-happiness { background: #FFF4D6; color: #B07A00; }
.goal .garea.a-economy { background: #E7F4E4; color: #3D7A1A; }
.goal .garea.a-gasses { background: #ECEFF3; color: #43505E; }
.goal .garea.a-protect { background: #E4F1FB; color: #1C6FB0; }
.goal .garea.a-tech { background: #F1EAFB; color: #6C4FA3; }
.goal .garea.a-lic { background: #FDEFE3; color: #B4581A; }
.goal .garea.a-money { background: #FFF7DD; color: #8a6a00; }
.goal .gname { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.goal .gicon:empty { display: none; }

/* karta technologie v návrhu ke schválení */
.tmini { display: flex; gap: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .6rem; margin: .5rem 0 .7rem; color: var(--ink); }
.tmini > img, .tmini > .noimg { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; flex: none; background: var(--mist); }
.tmini .tm-b { flex: 1; min-width: 0; }
.tmini .tm-k { font-size: .75rem; color: var(--ink-3); font-weight: 600; }
.tmini .tm-n { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; line-height: 1.2; margin: .1rem 0; }
.tmini .tm-p { font-weight: 800; margin-bottom: .3rem; }
.tmini .fx { gap: .3rem; }
.evbar.gbar { background: #FDECE8 !important; border-color: #E4572E !important; animation: none; box-shadow: 0 0 0 3px rgba(228,87,46,.25); } .evbar.gbar .go { color: #BA1B02; }
.evbar + .evbar { margin-top: .4rem; }
.sheet.noanim { animation: none; }
.negot.echo { border-color: #9ec9e0; background: #F1F8FC; }
.pdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #b8c0c8; margin-right: .35rem; vertical-align: 0; } .pdot.on { background: var(--good, #659933); }
.badge.lock { background: #ECEFF3; color: #43505E; }
.lic-sec .card.next { margin-bottom: .6rem; }
.lic-hist { background: var(--surface, #fff); border-radius: var(--radius-m, 12px); padding: .6rem .8rem; display: grid; gap: .3rem; color: var(--ink-2, #444); }
.lic-sec.flash > h2 { animation: licpulse 1.2s ease-in-out 3; }
@keyframes licpulse { 50% { color: var(--ocean, #2F6DB5); } }
.lang-sw { display: inline-flex; border: 1.5px solid var(--line, #d6dbe1); border-radius: 999px; overflow: hidden; background: #fff; font: 700 .8rem/1 Roboto, sans-serif; }
.lang-sw button { border: 0; background: transparent; padding: .45rem .7rem; color: var(--ink-2, #555); cursor: pointer; min-height: 32px; }
.lang-sw button[aria-pressed=true] { background: var(--ocean, #0099CD); color: #fff; }
.join { position: relative; }
.lang-sw.join-lang { position: absolute; top: 12px; right: 12px; z-index: 5; }
.lang-sw.intro-lang { position: static; margin: 0 0 .7rem; }

.intro-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0 2.4rem .7rem 0; }
.intro-top .lang-sw.intro-lang { margin: 0; }
.intro-top .btn.ghost { background: transparent; border: 1.5px solid var(--line, #d6dbe1); color: var(--ink-2, #555); }
.intro-top .leave-ask { display: inline-flex; gap: .4rem; }
.intro-top .btn.danger { background: var(--bad, #c0392b); color: #fff; border: 0; }
.leave-note { margin: -.3rem 0 .8rem; }
.sheet { padding-bottom: calc(2.4rem + env(safe-area-inset-bottom, 0px)); }
.sheet > .btn.block:last-child, .sheet > .row:last-child { margin-top: 1rem; }

.card.next { position: relative; }
.card.next .guide-x { position: absolute; top: .4rem; right: .4rem; width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.5rem; color: var(--ink-3, #777); cursor: pointer; }
.card.next:has(.guide-x) h3 { padding-right: 2rem; }

/* neutrální statistika (daň) */
.stat .scale i.on.neu { background: #9AA3AD; }
.delta.neu { color: #6B7480; }
.sym.neu, .fx span.sym.neu { background: #ECEEF1; color: #4A525C; }

/* ikonka znečištění místo zkratky SP */
.gas-ic { display: inline-flex; vertical-align: -.15em; margin-left: .12em; }
.gas-ic svg { width: 1em; height: 1em; }

/* proklik na technologii, na které závisí */
.req-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--blue, #0099CD); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }

/* kdo nejvíc znečišťuje */
.poll { display: grid; gap: .45rem; }
.poll-row { display: grid; grid-template-columns: minmax(0, 8.5rem) 1fr auto 2.6rem; gap: .5rem; align-items: center; font-size: .9rem; }
.poll-row.me { font-weight: 700; }
.poll-row .pn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poll-row .pb { height: .7rem; background: #EEF2F4; border-radius: 99px; overflow: hidden; }
.poll-row .pb i { display: block; height: 100%; border-radius: 99px; }
.poll-row .pb i.hot { background: #BA1B02; } .poll-row .pb i.mid { background: #E59E25; } .poll-row .pb i.ok { background: var(--good); }
.poll-row .pv { font-variant-numeric: tabular-nums; text-align: right; min-width: 2rem; }
.poll-row .pv.hot { color: #BA1B02; } .poll-row .pv.ok { color: #2F6B16; }
.poll-row .pp { color: var(--ink-3, #6B7480); font-size: .78rem; text-align: right; font-variant-numeric: tabular-nums; }

/* občané */
.cit-join { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed var(--line, #DCE3DD); }
.feed { display: grid; gap: .55rem; }
.feed-i { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-size: .92rem; }
.feed-i .feed-r { font-size: .72rem; color: var(--ink-3, #6B7480); background: #EEF2F4; border-radius: 6px; padding: .1rem .35rem; white-space: nowrap; margin-top: .1rem; }
.feed-i .fx { display: inline-flex; flex-wrap: wrap; gap: .25rem; vertical-align: middle; }
.stars { display: flex; gap: .3rem; margin: .5rem 0 0; }
.stars .star { font-size: 2rem; line-height: 1; background: none; border: 0; padding: .1rem .15rem; color: #C9D2DA; cursor: pointer; }
.stars .star.on { color: #F2B233; }
.rate-card h3 { margin: 0; }
.cit-tech { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: stretch; margin-bottom: .6rem; }
.cit-tech .tech { margin: 0; }
.cit-tech .like { min-width: 3.4rem; border: 2px solid #DCE3DD; background: #fff; border-radius: 12px; font-size: 1.2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; cursor: pointer; }
.cit-tech .like b { font-size: .85rem; }
.cit-tech .like.on { border-color: #0099CD; background: #E3F4FA; }
.badge.likes { background: #E3F4FA; color: #00739B; }
.cit-like-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; width: 100%; background: none; border: 0; border-bottom: 1px solid #EEF2F4; padding: .45rem 0; font: inherit; text-align: left; cursor: pointer; }
.cit-gov h3, .wishes h3 { margin: 0 0 .2rem; }
.cit-gov .wishes { margin-top: .6rem; box-shadow: none; padding: 0; border: 0; }
.rate-avg { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin: .6rem 0 0; padding: .5rem .7rem; background: #FFF6E0; border-radius: 10px; font-size: .9rem; }
.rate-avg b { font-size: 1.2rem; color: #B7791F; }
.rate-avg small { color: var(--ink-3, #6B7480); }
