/* Macháček naruby — společný vzhled */
:root {
  --ink: #141414;
  --ink-2: #1c1c1c;
  --ink-3: #262626;
  --line: #3a3a3a;
  --paper: #F6F4EF;
  --muted: #bdbab2;
  --muted-2: #918e88;
  --red: #C8102E;
  --red-2: #FF6B6B;
  --ok: #3FB97C;
  --a: #D93A40;
  --b: #3E7BFA;
  --c: #F5B014;
  --d: #23905D;
  --display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--red-2); }

.display { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: 1.15; }
.naruby { display: inline-block; transform: rotate(180deg); }
.muted { color: var(--muted); }
.red { color: var(--red-2); }
.hidden { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 10px; border: 0;
  background: var(--paper); color: var(--ink); font-weight: 800; font-size: 16px;
  cursor: pointer; text-decoration: none; transition: transform .08s ease, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.red { background: var(--red); color: #fff; }
.btn.ghost { background: transparent; color: var(--paper); border: 2px solid var(--line); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 8px; }
.btn.block { width: 100%; }

.input {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 10px;
  border: 2px solid var(--line); background: var(--ink-2); color: var(--paper); font-size: 18px;
}
.input:focus { outline: none; border-color: var(--paper); }
label { display: block; font-weight: 600; margin: 0 0 6px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700; background: var(--ink-3); color: var(--muted);
}
.chip.live { background: var(--red); color: #fff; }
.chip.done { background: #1f3b2c; color: #9fe3bf; }
.chip.wait { background: #3b3320; color: #f2d48a; }

.opt-a { background: var(--a); color: #fff; }
.opt-b { background: var(--b); color: #fff; }
.opt-c { background: var(--c); color: var(--ink); }
.opt-d { background: var(--d); color: #fff; }

.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: var(--paper); color: var(--ink); padding: 12px 18px; border-radius: 10px;
  font-weight: 700; box-shadow: 0 8px 30px rgba(0,0,0,.4); z-index: 100; max-width: 90vw; text-align: center;
}
.toast.err { background: var(--red); color: #fff; }

.offline {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90; background: #7a5c00; color: #fff;
  text-align: center; font-size: 14px; font-weight: 700; padding: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
