/* Buditel národa českého – vzhled: vyhláška a herní kostka. Bílá, červená, modrá; žádná vlajka. */
@font-face { font-family: 'Inter'; font-weight: 400; src: url(../fonts/inter-400.woff) format('woff'); font-display: swap; }
@font-face { font-family: 'Inter'; font-weight: 600; src: url(../fonts/inter-600.woff) format('woff'); font-display: swap; }
@font-face { font-family: 'Inter Display'; font-weight: 800; src: url(../fonts/inter-display-800.woff) format('woff'); font-display: swap; }
@font-face { font-family: 'Lora'; font-weight: 400 700; src: url(../fonts/lora-var.woff) format('woff'); font-display: swap; }

:root {
  --paper: #F3F5FA; --card: #FFFFFF; --ink: #0E1A3C; --muted: #566287; --line: #D5DBEA;
  --blue: #1B4E9B; --blue-ink: #FFFFFF; --blue-soft: #E3EBFA; --red: #D7141A; --red-ink: #FFFFFF; --red-soft: #FCE4E5;
  --ok: #17794A; --shadow: #0E1A3C; --focus: #D7141A;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Inter Display', 'Inter', system-ui, sans-serif;
  --font-msg: 'Lora', Georgia, 'Times New Roman', serif;
  --r: 16px; --gut: 16px;
  color-scheme: light;
}
:root[data-theme='dark'] { --paper: #0A1230; --card: #131E45; --ink: #EDF1FF; --muted: #9DA9CE; --line: #28356A; --blue: #7BA4FF; --blue-ink: #0A1230; --blue-soft: #1B2B60;
  --red: #FF5A60; --red-ink: #1A0507; --red-soft: #3A1521; --ok: #5BD79A; --shadow: #000; --focus: #FF8A8E; color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) { --paper: #0A1230; --card: #131E45; --ink: #EDF1FF; --muted: #9DA9CE; --line: #28356A; --blue: #7BA4FF; --blue-ink: #0A1230; --blue-soft: #1B2B60;
    --red: #FF5A60; --red-ink: #1A0507; --red-soft: #3A1521; --ok: #5BD79A; --shadow: #000; --focus: #FF8A8E; color-scheme: dark; }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.45 var(--font-ui); }
body { min-height: 100dvh; overscroll-behavior-y: none; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: 30px; } h2 { font-size: 22px; } h3 { font-size: 17px; letter-spacing: -0.01em; }
p { margin: 0 0 .6em; } .muted { color: var(--muted); } .small { font-size: 13.5px; } .center { text-align: center; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }

#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.screen { flex: 1; padding: calc(env(safe-area-inset-top) + 14px) var(--gut) 110px; display: flex; flex-direction: column; gap: 14px; }
.top { display: flex; align-items: center; gap: 12px; padding: 4px 0 2px; }
.top .grow { flex: 1; min-width: 0; }
.top .sub { color: var(--muted); font-size: 14px; }
.logo-die { flex: none; }

/* ---------- spodní lišta ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--card); border-top: 2px solid var(--ink); display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
.tabbar nav { display: flex; width: 100%; max-width: 560px; }
.tab { flex: 1; background: none; border: 0; padding: 9px 2px 8px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tab svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab[aria-current='page'] { color: var(--red); }
.tab[aria-current='page'] svg { stroke-width: 2.6; }

/* ---------- karty a tlačítka ---------- */
.card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 14px 15px; }
.card.flat { border-color: var(--line); }
.card.hero { box-shadow: 5px 5px 0 var(--shadow); }
.card h3 + p, .card h2 + p { margin-top: 6px; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.btn { appearance: none; border: 2px solid var(--ink); background: var(--card); color: var(--ink); border-radius: 14px; padding: 12px 16px; font-weight: 600; cursor: pointer; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; box-shadow: 3px 3px 0 var(--shadow); transition: transform .08s, box-shadow .08s; }
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--shadow); }
.btn.red { background: var(--red); color: var(--red-ink); } .btn.blue { background: var(--blue); color: var(--blue-ink); }
.btn.ghost { background: transparent; box-shadow: none; border-color: var(--line); } .btn.ghost:active:not(:disabled) { transform: none; }
.btn.small { min-height: 38px; padding: 7px 12px; font-size: 14px; box-shadow: 2px 2px 0 var(--shadow); }
.btn.block { width: 100%; } .btn.big { min-height: 58px; font-size: 18px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--blue); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field > label, .lbl { font-weight: 600; font-size: 14px; }
.input, textarea.input, select.input { width: 100%; background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: 11px 12px; min-height: 46px; }
.input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
textarea.input { resize: vertical; line-height: 1.4; }
.hint { color: var(--muted); font-size: 13px; }
.seg { display: flex; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--card); }
.seg button { flex: 1; background: none; border: 0; padding: 9px 6px; font-weight: 600; cursor: pointer; font-size: 14px; border-right: 2px solid var(--ink); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.seg button:disabled { opacity: .4; }
.days { display: flex; gap: 6px; } .days button { flex: 1; min-width: 0; min-height: 48px; border: 2px dashed var(--line); background: transparent; color: var(--muted); border-radius: 10px; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 0; }
.days button::before { content: ''; font-size: 11px; line-height: 1; height: 11px; }
.days button[aria-pressed='true'] { background: var(--red); border: 2px solid var(--red); color: var(--red-ink); font-weight: 800; }
.days button[aria-pressed='true']::before { content: '✓'; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.switch input { width: 24px; height: 24px; accent-color: var(--blue); flex: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--blue-soft); color: var(--blue); border: 1.5px solid currentColor; }
.badge.red { background: var(--red-soft); color: var(--red); } .badge.ok { color: var(--ok); background: transparent; }
.notice { border-left: 5px solid var(--red); background: var(--red-soft); padding: 10px 12px; border-radius: 4px 12px 12px 4px; font-size: 14px; }
.notice.blue { border-color: var(--blue); background: var(--blue-soft); }
.amt { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; } .amt.pos { color: var(--ok); } .amt.neg { color: var(--red); }
.money { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* ---------- vzkaz jako vyhláška ---------- */
.msg { font-family: var(--font-msg); font-weight: 700; font-size: 22px; line-height: 1.22; letter-spacing: -0.005em; text-wrap: balance; }
.msg.xl { font-size: clamp(34px, 10.2vw, 54px); line-height: 1.1; letter-spacing: -0.015em; }
.quote { font-family: var(--font-msg); font-weight: 600; font-size: 17px; line-height: 1.3; }

/* ---------- kostka ---------- */
.die { display: block; } .die .pip { fill: var(--red); }
@keyframes roll { 0% { transform: rotate(0) scale(.6); } 40% { transform: rotate(300deg) scale(1.15); } 70% { transform: rotate(560deg) scale(.95); } 100% { transform: rotate(720deg) scale(1); } }
.die.rolling { animation: roll 1.2s cubic-bezier(.2, .8, .3, 1); }
@keyframes pulse { 0%, 100% { box-shadow: 5px 5px 0 var(--shadow); } 50% { box-shadow: 5px 5px 0 var(--red); } }
.card.hero.live { animation: pulse 1.2s infinite; border-color: var(--red); }

/* ---------- kruhový odpočet ---------- */
.ringwrap { position: relative; width: min(64vw, 260px); aspect-ratio: 1; margin: 6px auto; }
.ringwrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 14; } .ring-fg { fill: none; stroke: var(--red); stroke-width: 14; stroke-linecap: round; transition: stroke .3s; }
.ring-fg.blue { stroke: var(--blue); }
.ringtxt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ringtxt .n { font-family: var(--font-head); font-weight: 800; font-size: clamp(54px, 18vw, 76px); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ringtxt .l { font-size: 13.5px; color: var(--muted); max-width: 11em; }
.counter { text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; } .counter.over { color: var(--red); font-weight: 600; }

/* ---------- seznamy ---------- */
.list { display: flex; flex-direction: column; } .item { padding: 11px 0; border-bottom: 1.5px solid var(--line); display: flex; gap: 10px; align-items: flex-start; }
.item:last-child { border-bottom: 0; } .item .t { flex: 1; min-width: 0; overflow-wrap: anywhere; } .item .meta { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.item input[type=checkbox] { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.lvl { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 99px; border: 1.5px solid currentColor; vertical-align: 1px; }
.lvl.j { color: var(--blue); } .lvl.p { color: #B35A00; } .lvl.c { color: var(--red); }
:root[data-theme='dark'] .lvl.p { color: #FFB056; } @media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .lvl.p { color: #FFB056; } }
.stat { text-align: center; flex: 1; } .stat b { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; } .stat span { font-size: 12.5px; color: var(--muted); }
.rank { font-family: var(--font-head); font-weight: 800; font-size: 28px; width: 34px; flex: none; color: var(--red); line-height: 1; }
.rank.blue { color: var(--blue); }
.bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; border: 1.5px solid var(--ink); } .bar i { display: block; } .bar .a { background: var(--blue); } .bar .b { background: var(--muted); opacity: .6; } .bar .c { background: var(--red); }
.empty { text-align: center; padding: 22px 10px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-family: var(--font-head); font-size: 18px; margin-bottom: 4px; }

/* ---------- onboarding ---------- */
.onb { min-height: 100dvh; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 20px) var(--gut) calc(env(safe-area-inset-bottom) + 24px); gap: 16px; }
.dots { display: flex; gap: 6px; } .dots i { width: 26px; height: 6px; border-radius: 3px; background: var(--line); } .dots i.on { background: var(--red); }
.choice { text-align: left; width: 100%; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; display: block; }
.choice[aria-pressed='true'] { border-color: var(--ink); box-shadow: 3px 3px 0 var(--shadow); }
.choice b { display: block; font-family: var(--font-head); font-size: 18px; }
.splash-title { font-size: clamp(38px, 11vw, 54px); letter-spacing: -0.035em; line-height: .98; }

/* ---------- ranní obrazovka ---------- */
.morning { position: fixed; inset: 0; z-index: 50; background: var(--blue); color: var(--blue-ink); display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 14px) 18px calc(env(safe-area-inset-bottom) + 18px); gap: 14px; overflow-y: auto; }
:root[data-theme='dark'] .morning { background: #10246B; color: #fff; } @media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .morning { background: #10246B; color: #fff; } }
.morning .head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.morning .head .small { opacity: .85; }
.morning .body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 8px 0; }
.morning .from { opacity: .8; font-size: 14px; }
.rate { display: flex; gap: 10px; } .rate button { flex: 1; height: 68px; font-size: 32px; border-radius: 18px; border: 2.5px solid #fff; background: transparent; cursor: pointer; transition: transform .1s, background .1s; color: #fff; }
.rate button[aria-pressed='true'] { background: #fff; color: #0E1A3C; transform: scale(1.04); } .rate button:active { transform: scale(.94); }
.rate button .l { display: block; font-size: 11.5px; font-family: var(--font-ui); font-weight: 600; margin-top: -2px; }
.morning .btn { box-shadow: none; border-color: #fff; color: #fff; background: transparent; } .morning .btn.wake { background: #fff; color: #0E1A3C; font-size: 22px; min-height: 66px; }
.morning .btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.morning .btn:active:not(:disabled) { transform: none; opacity: .85; }
.morning .hist { opacity: .75; font-size: 13.5px; }
.morning .badge { background: rgba(255,255,255,.18); color: #fff; }
.morning .linkbtn { color: #fff; }

/* ---------- toast, dialog ---------- */
#toast { position: fixed; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 86px); display: flex; justify-content: center; pointer-events: none; z-index: 90; padding: 0 16px; }
#toast div { background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14.5px; max-width: 520px; box-shadow: 0 6px 20px #0006; }
#toast div.err { background: var(--red); color: #fff; }
.modal { position: fixed; inset: 0; z-index: 80; background: #0009; display: flex; align-items: flex-end; justify-content: center; }
.modal .sheet { background: var(--paper); width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; border: 2px solid var(--ink); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 18px var(--gut) calc(env(safe-area-inset-bottom) + 18px); display: flex; flex-direction: column; gap: 12px; }
.sep { height: 2px; background: var(--line); border: 0; margin: 4px 0; }
.spin { display: inline-block; width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- v0.2: ruleta, nahlášení, vzkaz od autora, série, tip ---------- */
.logo-die { flex: none; border-radius: 10px; }
.rateblock { display: flex; align-items: center; gap: 12px; }
.wheel { position: relative; width: 58px; height: 58px; flex: none; }
.wheel svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px #0005); }
.wheel .spin { transform-origin: 50px 50px; transition: transform .42s cubic-bezier(.15, .85, .3, 1); }
.wheel .pointer { position: absolute; left: 50%; top: -5px; margin-left: -6px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 11px solid #fff; }
.chips { flex: 1; display: flex; gap: 8px; }
.chip { flex: 1; min-height: 76px; border-radius: 18px; border: 3px dashed rgba(255,255,255,.75); color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-weight: 600; font-size: 13.5px; outline-offset: 3px; transition: transform .1s, box-shadow .1s; }
.chip svg { width: 26px; height: 26px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chip.green { background: #14894E; } .chip.black { background: #111827; } .chip.red { background: #D7141A; }
.chip[aria-pressed='true'] { border-style: solid; border-color: #fff; box-shadow: 0 0 0 4px #FFD54A; transform: scale(1.05); }
.chip:active { transform: scale(.95); }
.chip:disabled { opacity: .4; }
.report { align-self: center; background: transparent; border: 1.5px solid rgba(255,255,255,.55); color: #fff; border-radius: 99px; padding: 6px 14px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.badge.author { background: #fff; color: #1B4E9B; border-color: #fff; font-size: 13.5px; padding: 4px 12px; }
.msg.xl.long { font-size: clamp(25px, 6.9vw, 34px); line-height: 1.22; }
.sig { font-family: var(--font-msg); font-style: italic; font-size: 19px; opacity: .92; text-align: right; }
.streak .streak-n { font-family: var(--font-head); font-weight: 800; font-size: 46px; letter-spacing: -0.04em; color: var(--red); min-width: 56px; text-align: center; line-height: 1; }
.streakline { font-size: 17px; }
.tip.onblue { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; }
.tip.onblue .hint { color: rgba(255,255,255,.8); }
.item .acts { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }

/* ---------- noční režim (webová verze): záměrně vždy tmavý, ať displej v noci nesvítí ---------- */
.night { min-height: 100dvh; background: #000; color: #7E89AE; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: calc(env(safe-area-inset-top) + 40px) max(var(--gut), env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom) + 24px) max(var(--gut), env(safe-area-inset-left, 0px)); }
.night .nbody { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; flex: 1; justify-content: center; }
.night .nclock { font-family: var(--font-head); font-weight: 800; font-size: clamp(72px, 26vw, 140px); line-height: 1; color: #B9C3E6; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.night .ninfo { font-size: 18px; color: #9AA5CC; }
.night .nhint { max-width: 34ch; font-size: 14px; color: #5E6890; margin: 0; }
.night .nwarn { max-width: 34ch; font-size: 14px; color: #FF8A8A; border: 1px solid #5A1E26; border-radius: 12px; padding: 10px 12px; }
.night .nactions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.night .btn { background: #11162A; color: #9AA5CC; border-color: #262E4F; box-shadow: none; }

/* ---------- v0.3: známky 1–5 jako v žákovské knížce ---------- */
.grades { display: flex; gap: 6px; margin: 0 -6px; }
.grade { flex: 1 1 0; min-width: 0; min-height: 88px; padding: 6px 2px 8px; border: 0; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: #FBF7EA repeating-linear-gradient(180deg, transparent 0 21px, rgba(27,78,155,.13) 21px 22px); color: #3B3F4A;
  box-shadow: 0 2px 0 rgba(0,0,0,.18); transition: transform .12s, opacity .12s, box-shadow .12s; }
.grade .gn { font-family: var(--font-msg); font-style: italic; font-weight: 700; font-size: 44px; line-height: 1; color: #C8102E; transform: rotate(-6deg); }
.grade .gw { font-size: clamp(9px, 2.45vw, 11.5px); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.grade:active { transform: scale(.95); }
.grade:disabled { opacity: .4; }
.grades.has-pick .grade[aria-pressed='false'] { opacity: .62; }
.grade[aria-pressed='true'] { transform: translateY(-3px); box-shadow: 0 0 0 3px #FFD54A, 0 6px 0 rgba(0,0,0,.2); }
.grade[aria-pressed='true'] .gn { animation: stamp .18s ease-out; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
@keyframes stamp { from { transform: rotate(-6deg) scale(1.35); } to { transform: rotate(-6deg) scale(1); } }
.gradehint { text-align: center; font-size: 13px; opacity: .85; }
:root[data-theme='dark'] .grade { background-color: #EDE6D2; } @media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .grade { background-color: #EDE6D2; } }
.gbar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; border: 1.5px solid var(--ink); }
.gbar i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11.5px; font-weight: 700; color: #fff; min-width: 0; overflow: hidden; }
.gbar .g1 { background: #14894E; } .gbar .g2 { background: #5E9E3F; } .gbar .g3 { background: #B08A1E; } .gbar .g4 { background: #C8602A; } .gbar .g5 { background: #C8102E; }
.avgmark { font-family: var(--font-msg); font-style: italic; font-weight: 700; color: var(--red); }

/* ---------- v0.4: nováček a žolík ---------- */
.morning .btn.free { border-style: dashed; }
.morning .btn.joker { min-height: 46px; font-size: 15.5px; background: #FFD54A; border-color: #FFD54A; color: #0E1A3C; }
.jokerline { margin-top: 6px; font-weight: 600; font-size: 14px; }
.joker-gain { display: flex; gap: 12px; align-items: center; background: #FFD54A; color: #0E1A3C; border-radius: 16px; padding: 12px 14px; }
.joker-gain .big { font-size: 40px; line-height: 1; }
.joker-gain b { font-family: var(--font-head); font-size: 22px; }

/* ---------- v0.5: podpis pod vzkazem, druh vzkazu ---------- */
.ai-label { font-family: var(--font-ui); font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 8px; margin-right: 8px; border-radius: 99px; border: 1.5px solid currentColor; opacity: .85; vertical-align: 3px; }
.kind { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 0 7px; border-radius: 99px; border: 1.5px solid var(--line); }
.kind.quote { border-color: var(--blue); color: var(--blue); } .kind.ai { border-color: var(--muted); color: var(--muted); }

/* ---------- v0.6: blokace, právní okno ---------- */
.modrow { justify-content: center; gap: 8px; }
.blockask { background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.5); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.morning .blockask .btn { border-color: #fff; color: #fff; }
.morning .blockask .btn.red { background: var(--red); border-color: var(--red); }
.legal-modal .sheet { height: 92dvh; }
.legal-frame { flex: 1; width: 100%; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); min-height: 60dvh; }
.legal-link { color: var(--blue); font-weight: 600; }

/* v0.7: šest stěn kostky – známky 1–5 a 6 = odpad */
.grades.six { gap: 4px; margin: 0 -8px; }
.grades.six .grade { min-height: 80px; }
.grades.six .gn { font-size: 38px; }
.grades.six .gw { font-size: clamp(8px, 2.2vw, 10.5px); }
.grade.trash { background: #3A3F4B; color: #F4F1E8; }
.grade.trash .gn { color: #F4F1E8; }
:root[data-theme='dark'] .grade.trash { background-color: #2A2E37; } @media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .grade.trash { background-color: #2A2E37; } }
.streak .streak-n.tier { color: var(--blue, #1B4E9B); }
