/* Sdílený základ automatu i adminu: fonty a tokeny brandu Neužitečných 2026
   (design-system/README.md v neuzitecni-kb). Jen tmavá varianta. */

@font-face {
  font-family: 'Chakra Petch';
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/chakra-petch-400-latin-ext.woff2) format('woff2');
  unicode-range:
    U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1E00-1E9F, U+2020,
    U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Chakra Petch';
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/chakra-petch-400-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Chakra Petch';
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/chakra-petch-600-latin-ext.woff2) format('woff2');
  unicode-range:
    U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1E00-1E9F, U+2020,
    U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Chakra Petch';
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/chakra-petch-600-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Chakra Petch';
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/chakra-petch-700-latin-ext.woff2) format('woff2');
  unicode-range:
    U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1E00-1E9F, U+2020,
    U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Chakra Petch';
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/chakra-petch-700-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Michroma';
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/michroma-400-latin-ext.woff2) format('woff2');
  unicode-range:
    U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1E00-1E9F, U+2020,
    U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Michroma';
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/michroma-400-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  color-scheme: dark;
  --brand: #e700ff;
  --brand-soft: rgba(231, 0, 255, 0.18);
  --accent: #0096ff;
  --hazard: #ffe000;
  --ink: #0a0a0a;
  --bg: #0d0a15;
  --card: #1a1626;
  --hover: #2a2438;
  --text: #e8e4f0;
  --dim: #a49cb8;
  --placeholder: #7a7191;
  --line: rgba(122, 113, 145, 0.32);
  --green: #40c057;
  --red: #fa5252;
  --radius: 4px;
  --font: 'Chakra Petch', system-ui, sans-serif;
  --display: 'Michroma', 'Chakra Petch', sans-serif;
  --hazard-stripes: repeating-linear-gradient(-45deg, var(--hazard) 0 14px, var(--ink) 14px 28px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* Atmosféra brandu: magentové světlo vlevo nahoře, modré vpravo dole, scanlines. */
.atmo {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60vmax 50vmax at 0% 0%, rgba(231, 0, 255, 0.16), transparent 60%),
    radial-gradient(60vmax 50vmax at 100% 100%, rgba(0, 150, 255, 0.14), transparent 60%);
}
.atmo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
}

a {
  color: var(--accent);
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.brandline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 12px;
  color: var(--dim);
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost:hover {
  background: var(--hover);
  color: var(--text);
}

.badge-offline {
  display: inline-block;
  border: 1px solid var(--hazard);
  color: var(--hazard);
  border-radius: var(--radius);
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--card);
  border: 1px solid var(--red);
  color: var(--text);
  border-radius: var(--radius);
  padding: 10px 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

[hidden] {
  display: none !important;
}
