/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ---- téma ---- */
:root {
  --bg:        #0a0713;
  --bg-2:      #140d24;
  --panel:     #1b1230;
  --panel-2:   #251a41;
  --line:      #3a2a63;
  --text:      #e8e2ff;
  --muted:     #9184b8;

  --neon:      #00f0ff;   /* cyan   */
  --neon-2:    #ff2d95;   /* magenta */
  --neon-3:    #ffd12e;   /* amber  */
  --good:      #3ddc84;
  --bad:       #ff4d4d;

  --radius: 12px;
  --shadow-neon: 0 0 12px rgba(0, 240, 255, .45);
  --font-display: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

html, body { height: 100%; }

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, #2a1a4d 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* jemné CRT pruhy cez celú stránku */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, .18) 0 1px,
    transparent 1px 3px
  );
  opacity: .35;
  mix-blend-mode: multiply;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* display: inline-flex/grid nižšie by inak prebilo vstavané [hidden] */
[hidden] { display: none !important; }

/* ---- tlačidlá ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--neon);
  background: linear-gradient(180deg, rgba(0,240,255,.18), rgba(0,240,255,.06));
  color: var(--text);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .8rem;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { box-shadow: var(--shadow-neon); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--neon-3); outline-offset: 2px; }

.btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text); box-shadow: none; border-color: var(--neon-2); }

.btn-danger { border-color: var(--neon-2); background: linear-gradient(180deg, rgba(255,45,149,.2), rgba(255,45,149,.06)); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
