/* Staking.cz – styly (v0.1). Bez inline stylů kvůli přísné CSP. */

/* ---------- Písma (self-hosted, OFL – viz assets/fonts/OFL-LICENSE.txt) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-display: swap; font-weight: 600;
  src: url("../fonts/fraunces-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-display: swap; font-weight: 600;
  src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-display: swap; font-weight: 700;
  src: url("../fonts/fraunces-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-display: swap; font-weight: 700;
  src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokeny ---------- */
:root {
  --felt: #0e3b2e;
  --felt-2: #15503e;
  --felt-3: #1d6a52;
  --paper: #f5f1e8;
  --card: #fffdf8;
  --line: #e2dccd;
  --line-2: #cfc7b3;
  --ink: #1a1f1c;
  --muted: #5f675f;
  --gold: #b8892b;
  --gold-2: #9a7020;
  --gold-soft: #f1e4c2;
  --plus: #1e7a4c;
  --minus: #b3261e;
  --warn: #9a5b00;
  --info-bg: #e8f0ec;
  --err-bg: #fbe9e7;
  --ok-bg: #e7f4ec;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 6px 20px rgba(20, 30, 25, .06);
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-head: "Fraunces", Georgia, "Times New Roman", serif;
  --f-num: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--f-body); font-feature-settings: "cv11", "ss01"; }
a { color: var(--felt-3); text-underline-offset: 2px; }
a:hover { color: var(--felt); }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; word-spacing: .08em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; font-family: var(--f-body); font-weight: 650; letter-spacing: 0; }
p { margin: 0 0 .9em; }
img, svg { max-width: 100%; }
code { font-family: var(--f-num); font-size: .88em; }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.warn { color: var(--warn); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #000; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mail-at::before { content: "@"; }
.js-mail { cursor: pointer; }

.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 28px; padding-bottom: 56px; min-height: 60vh; }
.narrow { max-width: 880px; margin-left: auto; margin-right: auto; }

/* ---------- Hlavička ---------- */
.top { background: var(--felt); color: #f4efe2; border-bottom: 3px solid var(--gold); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; min-height: 64px; }
.top-in > .brand { margin-right: 0; }
.test-badge { margin-right: auto; align-self: center; background: #c0262d; color: #fff; font: 700 .72rem/1 var(--f-body);
  text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 560px) {
  .top-in { flex-wrap: wrap; }
  .test-badge { order: 3; flex: 0 0 calc(100% + 32px); margin: 0 -16px; border-radius: 0; text-align: center; padding: 5px 8px; font-size: .66rem; }
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.chip { width: 34px; height: 34px; flex: none; }
.chip-o { fill: var(--gold); }
.chip-i { fill: var(--felt); stroke: #f4efe2; stroke-width: 1.5; }
.chip-t { stroke: #f4efe2; stroke-width: 3; stroke-linecap: round; }
.brand-t { font-family: var(--f-head); font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; }
.brand-t span { color: var(--gold-soft); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a, .linkbtn { color: #e9e3d3; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; font-weight: 500; }
.nav a:hover, .linkbtn:hover { background: var(--felt-2); color: #fff; }
.nav a[aria-current="page"] { background: var(--felt-2); color: #fff; box-shadow: inset 0 -2px 0 var(--gold); }
.nav .btn { color: #1a1a1a; }
.nav-sep { width: 1px; height: 22px; background: var(--felt-3); margin: 0 6px; }
.linkbtn { background: none; border: 0; cursor: pointer; font: inherit; }
form.inline { display: inline; margin: 0; }
.menu > summary { list-style: none; display: none; cursor: pointer; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: #fff; }
.menu > summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
@media (min-width: 861px) {
  .menu { display: none; }
}
@media (max-width: 860px) {
  .nav-desk { display: none; }
  .menu > summary { display: flex; }
  .menu { position: relative; }
  .menu > .nav { position: absolute; right: 0; top: calc(100% + 10px); background: var(--felt); border: 1px solid var(--felt-3); border-radius: 12px;
    flex-direction: column; align-items: stretch; min-width: 220px; padding: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.25); z-index: 20; }
  .menu:not([open]) > .nav { display: none; }
  .nav-sep { width: auto; height: 1px; margin: 6px 0; }
  .nav-plain a:not(.btn) { padding: 8px; }
}
@media (max-width: 480px) {
  .brand-t { font-size: 1.25rem; }
}
.nav-mob { display: none; align-items: center; gap: 6px; }
@media (max-width: 860px) { .nav-mob { display: flex; } .nav-mob .menu-l { display: none; } }

/* ---------- Patička ---------- */
.foot { background: #10251d; color: #c8c2b2; font-size: .9rem; padding: 32px 0; }
.foot a { color: #efe7d2; }
.foot-in { display: grid; gap: 18px 40px; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.foot-links { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 36px; }
.foot-small { grid-column: 1 / -1; font-size: .82rem; color: #9fa89f; border-top: 1px solid #22392f; padding-top: 14px;
  display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.foot-op { color: #c8c2b2; white-space: nowrap; }
.foot-age { flex: 1 1 420px; }
.age { display: inline-block; border: 1.5px solid #c8c2b2; border-radius: 50%; font-weight: 700; font-size: .72rem; padding: 3px 4px; margin-right: 6px; color: #efe7d2; }
@media (max-width: 640px) { .foot-in { grid-template-columns: 1fr; } .foot-links { gap: 8px 28px; } }

/* ---------- Tlačítka ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink); font: 600 .95rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: var(--felt-3); color: var(--felt); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-gold { background: var(--gold); border-color: var(--gold-2); color: #1b1407; }
.btn-gold:hover { background: #c99a37; color: #1b1407; border-color: var(--gold-2); }
.btn-light { background: transparent; color: #fff; border-color: #5b8a78; }
.btn-light:hover { background: var(--felt-2); color: #fff; border-color: #fff; }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--minus); border-color: #8d1d17; color: #fff; }
.btn-danger:hover { background: #971f18; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn-block { display: flex; width: 100%; margin-bottom: 8px; }

/* ---------- Zprávy ---------- */
.flash { padding: 12px 16px; border-radius: 10px; margin: 0 0 18px; border: 1px solid; }
.flash ul { margin: 6px 0 0; padding-left: 20px; }
.flash-ok { background: var(--ok-bg); border-color: #b9dcc8; }
.flash-error { background: var(--err-bg); border-color: #efbdb7; }
.flash-info { background: var(--info-bg); border-color: #c7dacf; }

/* ---------- Karty a rozvržení ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.center-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); max-width: 480px; margin-top: 12px; }
.pagehead { margin-bottom: 20px; }
.pagehead .muted { margin: 0; }
.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 28px 0 12px; }
.section-head h2 { margin: 0; }
.lead { font-size: 1.12rem; color: #394139; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.empty { padding: 36px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }
.list { padding-left: 20px; }
.list li { margin-bottom: 6px; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 20px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
a.tile:hover { border-color: var(--gold); }
.tile-n { font-family: var(--f-num); font-size: 1.7rem; font-weight: 650; letter-spacing: -.03em; color: var(--felt); }
.tile-l { font-size: .86rem; color: var(--muted); }
.tile-warn .tile-n { color: var(--minus); }
@media (max-width: 800px) { .tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Záložky, filtry ---------- */
.tabs, .subnav { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line-2); margin-bottom: 18px; }
.tabs a, .subnav a { padding: 9px 14px; text-decoration: none; color: var(--muted); font-weight: 550; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover, .subnav a:hover { color: var(--ink); }
.tabs a[aria-current="page"], .subnav a[aria-current="page"] { color: var(--felt); border-bottom-color: var(--gold); }
.subnav { background: var(--felt); border-radius: 10px; border: 0; padding: 4px; }
.subnav a { color: #d7d1c1; border: 0; border-radius: 7px; margin: 0; padding: 7px 12px; }
.subnav a:hover { color: #fff; background: var(--felt-2); }
.subnav a[aria-current="page"] { background: var(--gold); color: #1b1407; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filters input[type="search"] { flex: 1 1 240px; }

/* ---------- Formuláře ---------- */
.form label { display: block; margin-bottom: 14px; font-weight: 550; font-size: .94rem; }
.form label small { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="number"],
input[type="datetime-local"], input[type="file"], select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff;
  font: 400 1rem/1.4 var(--f-body); color: var(--ink); }
.filters input, .filters select { margin-top: 0; width: auto; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(184, 137, 43, .45); outline-offset: 1px; border-color: var(--gold); }
input:disabled, select:disabled { background: #f1ede3; color: var(--muted); }
textarea { resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 4px; margin: 0 0 16px; }
legend { font-weight: 650; padding: 0 6px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--felt-3); flex: none; }
.hint { font-size: .86rem; color: var(--muted); margin-top: -4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.calc { background: var(--gold-soft); border-radius: 9px; padding: 10px 14px; font-size: .94rem; }
.card h2:not(:first-child), .form h2:not(:first-child) { margin-top: 1.4em; }

/* ---------- Nabídky – karty ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; position: relative; }
.pcard:hover { border-color: var(--gold); }
.pcard h3 { font-family: var(--f-head); font-size: 1.2rem; font-weight: 700; margin: 4px 0 0; }
.pcard h3 a { color: var(--ink); text-decoration: none; }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; }
.pcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.venue { font-size: .8rem; color: var(--muted); text-align: right; }
.pcard-event { margin: 0; font-size: .9rem; color: #3d453e; }
.pcard-player { margin: 0; font-size: .9rem; position: relative; z-index: 1; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 6px; padding: 10px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.kv div { display: flex; flex-direction: column; }
.kv dt { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kv dd { margin: 0; font-size: .95rem; font-weight: 600; }
.thermo-cap { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; color: var(--muted); margin: 4px 0 0; flex-wrap: wrap; }
.thermo-cap b { color: var(--ink); }
.result-line { margin: 4px 0 0; }

.tag { display: inline-block; font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; padding: 4px 9px; border-radius: 999px; background: #ece7da; color: #4b524b; white-space: nowrap; }
.tag-open { background: #d7eee0; color: #155c38; }
.tag-closed { background: var(--gold-soft); color: #6d4f10; }
.tag-settling { background: #e3e9f7; color: #2d4a8a; }
.tag-done { background: #ece7da; color: #4b524b; }
.tag-cancelled { background: var(--err-bg); color: var(--minus); }
.tag-pending { background: #f3ead8; color: var(--warn); }
.badge-ok { display: inline-block; font-size: .75rem; font-weight: 650; color: var(--plus); background: var(--ok-bg); border-radius: 999px; padding: 1px 8px; margin-left: 4px; vertical-align: 1px; }

.roi { font-family: var(--f-num); font-weight: 650; }
.roi.plus { color: var(--plus); }
.roi.minus { color: var(--minus); }

/* ---------- Teploměr ---------- */
.thermo { display: block; width: 100%; height: 14px; }
.thermo-big { height: auto; margin: 6px 0 4px; }
.th-tube { fill: #ebe5d6; }
.th-paid { fill: var(--gold); }
.th-res { fill: var(--gold); opacity: .75; }
.th-res-bg { fill: var(--gold-soft); }
.th-outline { fill: none; stroke: var(--line-2); stroke-width: 1; }
.th-bulb-ring { fill: #ebe5d6; stroke: var(--line-2); }
.th-bulb { fill: #d9d2c0; }
.th-bulb.on { fill: var(--gold); }
.th-tick { stroke: var(--line-2); }
.th-label { font: 500 11px var(--f-num); fill: var(--muted); }
.legend { list-style: none; padding: 0; margin: 4px 0 16px; display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: .88rem; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sw-paid { background: var(--gold); }
.sw-res { background: repeating-linear-gradient(45deg, var(--gold) 0 3px, var(--gold-soft) 3px 6px); }
.sw-free { background: #ebe5d6; border: 1px solid var(--line-2); }
.market-row { margin-bottom: 14px; }
.h-thermo { margin-top: 1.2em; }

/* ---------- Graf ---------- */
.curve { display: block; width: 100%; max-width: 760px; height: auto; margin-top: 8px; }
.cv-zero { stroke: var(--line-2); stroke-dasharray: 4 4; }
.cv-axis { font: 500 11px var(--f-num); fill: var(--muted); }
.cv-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.cv-line.plus { stroke: var(--plus); }
.cv-line.minus { stroke: var(--minus); }
.cv-dot { fill: var(--card); stroke: var(--felt); stroke-width: 2; }

/* ---------- Detail nabídky ---------- */
.phead { margin-bottom: 18px; }
.phead h1 { margin: 8px 0 6px; }
.phead-event { color: #3d453e; margin: 0 0 4px; }
.phead-player { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.detail-side { position: sticky; top: 16px; }
.detail-main, .detail-side { min-width: 0; }
.rating-form + h3, .rating-form + .rating-form { margin-top: 18px; }
.rating-row + h3 { margin-top: 18px; }
@media (max-width: 960px) { .detail { grid-template-columns: minmax(0, 1fr); } .detail-side { position: static; order: -1; } }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 16px; margin: 0; }
.facts-3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 10px; }
.facts dt { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.facts dd.big { font-size: 1.35rem; }
@media (max-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } .facts-3 { grid-template-columns: 1fr 1fr; } }
.panel h2 { font-size: 1.15rem; }
.bignum { font-family: var(--f-num); font-size: 1.4rem; font-weight: 650; margin: 0 0 10px; }
.bignum small { font-family: var(--f-body); font-size: .85rem; color: var(--muted); font-weight: 400; }
.payinfo { background: var(--gold-soft); border-radius: 9px; padding: 10px 12px; margin: 8px 0 12px; font-size: .9rem; overflow-wrap: anywhere; }
.payinfo.warn { background: var(--err-bg); }
.prose { overflow-wrap: anywhere; }
.report { font-size: 1.02rem; border-left: 3px solid var(--gold); padding-left: 14px; }
details.danger { margin-top: 12px; }
details.danger > summary { cursor: pointer; color: var(--minus); font-size: .9rem; }
details.danger[open] > summary { margin-bottom: 10px; }
.how-mini p:last-child { margin-bottom: 0; }

/* ---------- Kroky ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 14px; counter-reset: s; }
.steps li { position: relative; padding: 0 0 14px 38px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 700 .8rem var(--f-num); background: #ebe5d6; color: var(--muted); }
.steps li.done::before { content: "✓"; background: var(--plus); color: #fff; }
.steps li.now::before { background: var(--gold); color: #1b1407; }
.steps li b { display: block; }
.steps li span { font-size: .88rem; color: var(--muted); display: block; margin: 2px 0 8px; }
.steps-sm li { padding-bottom: 8px; }

/* ---------- Tabulky ---------- */
.tablewrap { position: relative; overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table .r { text-align: right; }
.table tr.mine td { background: #fbf5e6; }
.table tr.st-cancelled td, .table tr.st-rejected td { color: var(--muted); }
.table td.rowact { min-width: 200px; }
.rowact > form, .rowact > details, .rowact > div { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0 6px 6px 0; vertical-align: top; }
.admin-users td { min-width: 110px; }

/* ---------- Hodnocení ---------- */
.stars { color: var(--gold); white-space: nowrap; letter-spacing: 1px; }
.stars .off { color: #d9d2c0; }
.stars-num { color: var(--ink); font-weight: 650; margin-left: 4px; font-size: .9em; letter-spacing: 0; }
.stars-n { color: var(--muted); margin-left: 3px; font-size: .85em; letter-spacing: 0; }
.stars.empty { color: var(--muted); font-size: .88rem; letter-spacing: 0; }
.stars-in { border: 0; padding: 0; margin: 0 0 10px; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.stars-in input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form .stars-in label { margin: 0; font-size: 1.7rem; line-height: 1; color: #d9d2c0; cursor: pointer; font-weight: 400; }
.stars-in input:checked ~ label, .stars-in label:hover, .stars-in label:hover ~ label { color: var(--gold); }
.stars-in input:focus-visible + label { outline: 2px solid var(--gold); border-radius: 4px; }
.rating-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.rating-row .stars-in { margin: 0; }
.rating-row input[type="text"] { flex: 1 1 200px; width: auto; margin: 0; }
.rating-who { font-weight: 650; min-width: 110px; }
.reviews { list-style: none; padding: 0; }
.reviews li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ---------- Úkoly ---------- */
.todo { list-style: none; padding: 0; margin: 0; }
.todo li { border-left: 4px solid var(--line-2); padding: 8px 12px; margin-bottom: 6px; background: #faf7ef; border-radius: 0 8px 8px 0; }
.todo li a { color: var(--ink); text-decoration: none; }
.todo li a:hover { text-decoration: underline; }
.todo-urgent { border-left-color: var(--minus) !important; background: var(--err-bg) !important; }
.todo-todo { border-left-color: var(--gold) !important; }

/* ---------- Úvod ---------- */
.hero { background: var(--felt); color: #efe9da; border-radius: 20px; padding: 44px 40px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center;
  background-image: radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.07), transparent 60%), radial-gradient(ellipse at 100% 100%, rgba(184,137,43,.18), transparent 55%); }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.hero .lead { color: #d8d2c2; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--gold-soft); font-weight: 650; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.hero-card { background: var(--card); color: var(--ink); border-radius: 16px; padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.3); transform: rotate(-1.5deg); }
.hc-title { font-family: var(--f-head); font-weight: 700; margin-bottom: 4px; }
.hc-row { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); margin: 0; }
.hc-row b { color: var(--ink); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding: 30px 22px; } .hero-card { transform: none; } }
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0; }
.steps4 > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.steps4 .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #1b1407; font: 700 .9rem var(--f-num); margin-bottom: 8px; }
.steps4 p { margin: 0; font-size: .92rem; color: #3d453e; }
@media (max-width: 860px) { .steps4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps4 { grid-template-columns: 1fr; } }
.note { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px 20px; font-size: .92rem; background: #faf7ef; }
.note p { margin: 0; }

/* ---------- Textové stránky ---------- */
.prose-page h2 { margin-top: 1.6em; }
.draft { background: #fff3d6; border: 1px dashed var(--gold); border-radius: 8px; padding: 8px 12px; font-size: .9rem; }
.glossary dt { font-weight: 650; margin-top: 10px; }
.glossary dd { margin: 2px 0 0; color: #3d453e; }
.flow li { margin-bottom: 8px; }
.extlinks { display: flex; gap: 12px; flex-wrap: wrap; }
.report-item h2, .report-item h3 { margin-bottom: 2px; }
.report-item + .report-item { margin-top: 14px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }

/* ---------- Lišta souhlasu (obě tlačítka stejně výrazná) ---------- */
.consent { position: sticky; bottom: 0; z-index: 30; background: var(--card); border-top: 3px solid var(--gold); box-shadow: 0 -8px 24px rgba(0,0,0,.12); }
.consent-in { display: flex; align-items: center; gap: 16px 24px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.consent-in p { margin: 0; flex: 1 1 420px; font-size: .92rem; }
.consent-btns { display: flex; gap: 10px; flex: none; }
.consent-btns .btn { min-width: 130px; background: var(--felt); border-color: var(--felt); color: #fff; }
.consent-btns .btn:hover { background: var(--felt-2); color: #fff; }
@media (max-width: 480px) { .consent-btns { width: 100%; } .consent-btns .btn { flex: 1; min-width: 0; } }

/* ---------- QR platba ---------- */
.paybox { border: 2px solid var(--gold); border-radius: 12px; padding: 14px; margin: 0 0 14px; background: #fffaf0; }
.paybox-h { margin: 0 0 10px; }
.paybox-qr { background: #fff; border-radius: 8px; padding: 6px; max-width: 240px; margin: 0 auto 10px; }
.paybox-qr .qr { display: block; width: 100%; height: auto; }
.paybox-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 8px; font-size: .9rem; }
.paybox-dl div { display: contents; }
.paybox-dl dt { color: var(--muted); }
.paybox-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.feebox { background: var(--gold-soft); border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; }
.feebox p { margin: 0 0 8px; }
.amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.amounts .btn[aria-current="true"] { background: var(--gold); border-color: var(--gold-2); }

.note-fee { margin-top: 8px !important; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.inline-date { display: flex; gap: 6px; align-items: center; }
.inline-date input { margin: 0; width: auto; padding: 5px 8px; font-size: .85rem; }

/* ---------- Kalkulačky ---------- */
.kalk { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .kalk { grid-template-columns: minmax(0, 1fr); } }
.kalk-out { margin-top: 18px; }
.kalk-out:empty { display: none; }
.kalk-help ul { padding-left: 18px; }
.progress { height: 4px; background: transparent; border-radius: 2px; margin-top: 12px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .1s; }
.seg { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.kalk-cards .pcard h3 { font-size: 1.25rem; }

.table td.num { white-space: nowrap; }
@media (max-width: 640px) { .icm-row.grid2 { grid-template-columns: 1fr 1fr; gap: 0 10px; } }
.vouch-row { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.vouch-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.vouch-form .check { margin: 0 8px 0 0; }
.vouch-card { border-color: var(--gold); }
.ident-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0; }
.ident-form select, .ident-form input { width: auto; margin: 0; padding: 5px 8px; font-size: .85rem; }

/* ---------- Arch karet ---------- */
.deck { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 14px; user-select: none; }
.deck-row { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 4px; }
.card-btn { position: relative; padding: 9px 0; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; font: 700 .95rem/1 var(--f-body); cursor: pointer; }
.card-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.card-btn.suit-s { color: #111; }
.card-btn.suit-h { color: #c0262d; }
.card-btn.suit-d { color: #1f5fb4; }
.card-btn.suit-c { color: #1e7a4c; }
.card-btn.used { background: #e9e4d6; color: #a9a291; border-style: dashed; }
.card-btn.used::after { content: attr(data-who); position: absolute; top: 1px; right: 2px; font-size: .55rem; color: var(--felt-3); font-weight: 700; }
.form label.is-active input { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 137, 43, .25); }
.deck-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 480px) { .deck-row { gap: 2px; } .card-btn { font-size: .72rem; padding: 8px 0; border-radius: 4px; } }
@media (max-width: 640px) { .grid3.hands { grid-template-columns: 1fr 1fr; gap: 0 10px; } }
.cards + .note, .empty + .note { margin-top: 24px; }
