/* Futuristická přihlašovací obrazovka */
@font-face { font-family: "Orbitron"; font-weight: 500; font-display: swap; src: url("../fonts/web/orbitron-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Orbitron"; font-weight: 700; font-display: swap; src: url("../fonts/web/orbitron-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JBM"; font-weight: 400; font-display: swap; src: url("../fonts/web/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JBM"; font-weight: 400; font-display: swap; src: url("../fonts/web/jetbrains-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "JBM"; font-weight: 700; font-display: swap; src: url("../fonts/web/jetbrains-mono-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JBM"; font-weight: 700; font-display: swap; src: url("../fonts/web/jetbrains-mono-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

body.fx {
  --fx-bg: #03060c; --fx-cy: #4fd8ff; --fx-cy2: #2f8cff; --fx-vi: #9b6bff; --fx-ink: #dbe9ff; --fx-mut: #7f93b3;
  --fx-line: rgba(79,216,255,.22); --fx-glass: rgba(8,16,32,.62);
  margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--fx-bg); color: var(--fx-ink);
  font-family: "JBM", ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13.5px;
  cursor: default;
}
.fx .orb { font-family: "Orbitron", "JBM", sans-serif; letter-spacing: .12em; }
#fx-canvas { position: fixed; inset: 0; z-index: 0; display: block; }
.fx-vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.75) 100%); }
.fx-scan { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }
.fx-scan::after { content: ""; position: absolute; left: 0; right: 0; height: 120px; top: -120px;
  background: linear-gradient(to bottom, transparent, rgba(79,216,255,.06), transparent); animation: scanmove 7s linear infinite; }
@keyframes scanmove { to { top: 110%; } }

/* ---------------- HUD */
.hud { position: fixed; left: 0; right: 0; z-index: 5; display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 22px; font-size: 11px; color: var(--fx-mut); text-transform: uppercase; letter-spacing: .08em; pointer-events: none; }
.hud-top { top: 0; border-bottom: 1px solid var(--fx-line); background: linear-gradient(to bottom, rgba(3,6,12,.85), transparent); }
.hud-bot { bottom: 22px; }
.hud > div { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.hud b { color: var(--fx-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.hud b.ok { color: #5dffb0; }
.hud .sep { opacity: .4; }
#hud-clock { color: var(--fx-cy); font-size: 13px; }
.hud .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fx-cy); box-shadow: 0 0 10px var(--fx-cy); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.ticker { position: fixed; bottom: 0; left: 0; right: 0; height: 22px; z-index: 5; overflow: hidden; pointer-events: none;
  border-top: 1px solid var(--fx-line); background: rgba(3,6,12,.8); font-size: 10.5px; color: rgba(79,216,255,.55); line-height: 22px; }
.ticker > div { white-space: nowrap; display: inline-block; padding-left: 100%; animation: tick 60s linear infinite; }
@keyframes tick { to { transform: translateX(-100%); } }

/* ---------------- stage */
.fx-stage { position: relative; z-index: 3; min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr;
  align-items: center; gap: 40px; padding: 80px 6vw 70px; box-sizing: border-box; }
.fx-brand { display: flex; flex-direction: column; align-items: center; gap: 28px; perspective: 900px; }
.brand-holo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px;
  transform-style: preserve-3d; transition: transform .2s ease-out; }
.holo-mark { width: clamp(110px, 12vw, 170px); filter: drop-shadow(0 0 14px rgba(79,216,255,.55)) drop-shadow(0 0 40px rgba(47,140,255,.35));
  animation: float 6s ease-in-out infinite; transform: translateZ(60px); }
@keyframes float { 50% { transform: translateZ(60px) translateY(-10px); } }
.holo-word { width: clamp(260px, 34vw, 520px); filter: drop-shadow(0 0 10px rgba(79,216,255,.45)); transform: translateZ(30px); }
.holo-ring { position: absolute; left: 50%; top: clamp(55px, 6vw, 85px); width: 260px; height: 260px; margin: -130px 0 0 -130px;
  border-radius: 50%; border: 1px solid rgba(79,216,255,.35); transform: rotateX(72deg); pointer-events: none; }
.holo-ring.r1 { animation: ring 6s linear infinite; }
.holo-ring.r2 { width: 340px; height: 340px; margin: -170px 0 0 -170px; border-style: dashed; border-color: rgba(155,107,255,.35); animation: ring 11s linear infinite reverse; }
.holo-ring.r3 { width: 420px; height: 420px; margin: -210px 0 0 -210px; border-color: rgba(79,216,255,.14); animation: ring 18s linear infinite; }
@keyframes ring { to { transform: rotateX(72deg) rotateZ(360deg); } }

/* glitch na wordmarku */
.glitch { animation: glitch 7s infinite steps(1); }
@keyframes glitch {
  0%, 92%, 100% { transform: translateZ(30px); filter: drop-shadow(0 0 10px rgba(79,216,255,.45)); clip-path: none; }
  93% { transform: translateZ(30px) translateX(-6px); filter: drop-shadow(3px 0 0 #ff2bd6) drop-shadow(-3px 0 0 #00f0ff); clip-path: inset(10% 0 55% 0); }
  94% { transform: translateZ(30px) translateX(5px); clip-path: inset(50% 0 20% 0); }
  95% { transform: translateZ(30px) translateX(-2px); clip-path: inset(30% 0 40% 0); filter: drop-shadow(-4px 0 0 #ff2bd6) drop-shadow(4px 0 0 #00f0ff); }
  96% { transform: translateZ(30px); clip-path: none; }
}
.brand-sub { font-size: 14px; color: var(--fx-mut); min-height: 1.5em; text-align: center; }
.brand-sub .typed { color: var(--fx-ink); }
.caret { color: var(--fx-cy); animation: blink 1s steps(1) infinite; margin-left: 2px; }

/* ---------------- karta */
.fx-panel { display: flex; justify-content: center; perspective: 1100px; }
body.fx .fx-card { position: relative; width: 100%; max-width: 410px; box-sizing: border-box; padding: 26px 28px 18px;
  background: var(--fx-glass); color: var(--fx-ink); border: 1px solid rgba(79,216,255,.28); border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(79,216,255,.06) inset, 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(47,140,255,.15);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  transform-style: preserve-3d; transition: transform .15s ease-out; animation: materialize .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes materialize { 0% { opacity: 0; transform: translateY(20px) rotateX(18deg); filter: blur(6px); clip-path: inset(0 0 100% 0); }
  60% { clip-path: inset(0 0 0 0); } 100% { opacity: 1; transform: none; filter: none; } }
.fx-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 4px;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(79,216,255,.12), transparent 40%); }
.fx-card .crn { position: absolute; width: 16px; height: 16px; border: 2px solid var(--fx-cy); filter: drop-shadow(0 0 4px var(--fx-cy)); }
.fx-card .crn.tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.fx-card .crn.tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.fx-card .crn.bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.fx-card .crn.br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.card-head, .card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; color: var(--fx-mut); letter-spacing: .1em; }
.card-head { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--fx-line); }
.card-foot { padding-top: 14px; margin-top: 20px; border-top: 1px solid var(--fx-line); text-transform: uppercase; }
.led { display: inline-flex; align-items: center; gap: 6px; color: #5dffb0; font-family: "Orbitron", sans-serif; letter-spacing: .12em; }
.led i { width: 7px; height: 7px; border-radius: 50%; background: #5dffb0; box-shadow: 0 0 8px #5dffb0; animation: blink 1.2s infinite; }

body.fx .fx-card h1 { font-family: "JBM", monospace; font-size: 21px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 4px;
  background: linear-gradient(90deg, #fff, var(--fx-cy)); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.fx .fx-card .muted, body.fx .fx-card .steps { color: var(--fx-mut); }
body.fx .fx-card .field { margin-top: 16px; }
body.fx .fx-card label { color: var(--fx-cy); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; }
body.fx .fx-card label::before { content: "› "; opacity: .7; }
body.fx .fx-card input { background: rgba(2,8,18,.7); color: #fff; border: 1px solid rgba(79,216,255,.25); border-radius: 2px;
  padding: 11px 12px; font-family: "JBM", monospace; font-size: 14px; caret-color: var(--fx-cy); transition: border-color .2s, box-shadow .2s, background .2s; }
body.fx .fx-card input:focus { outline: none; border-color: var(--fx-cy); background: rgba(4,16,32,.9);
  box-shadow: 0 0 0 3px rgba(79,216,255,.12), 0 0 18px rgba(79,216,255,.25); }
body.fx .fx-card .code-input { font-family: "Orbitron", monospace; font-size: 26px; letter-spacing: .5em; color: var(--fx-cy); text-shadow: 0 0 10px rgba(79,216,255,.6); }
body.fx .fx-card button.btn-primary { position: relative; overflow: hidden; width: 100%; justify-content: center; margin-top: 22px; padding: 12px;
  border: 1px solid var(--fx-cy); border-radius: 2px; color: #02101f; font-family: "JBM", monospace; font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--fx-cy), var(--fx-cy2)); box-shadow: 0 0 22px rgba(79,216,255,.35); transition: transform .15s, box-shadow .2s, filter .2s; }
body.fx .fx-card button.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 34px rgba(79,216,255,.6); filter: brightness(1.08); }
body.fx .fx-card button.btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 35%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
body.fx .fx-card .flash { border-radius: 2px; font-size: 12.5px; }
body.fx .fx-card .flash.error { background: rgba(255,43,90,.12); border-color: rgba(255,43,90,.5); color: #ff9fb5; animation: shake .45s ease; }
body.fx .fx-card .flash.ok { background: rgba(93,255,176,.1); border-color: rgba(93,255,176,.4); color: #a9ffd6; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
body.fx .fx-card .secret { background: rgba(2,8,18,.8); color: var(--fx-cy); border: 1px dashed rgba(79,216,255,.35); }
body.fx .fx-card .qr { box-shadow: 0 0 0 1px var(--fx-cy), 0 0 30px rgba(79,216,255,.35); border-radius: 4px; }
body.fx .fx-card code { color: var(--fx-cy); }
body.fx .fx-card > form > *, body.fx .fx-card > h1, body.fx .fx-card > p, body.fx .fx-card > ol, body.fx .fx-card > img, body.fx .fx-card > .secret { animation: fade-up .6s ease both; animation-delay: .5s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- kurzor */
.fx-cursor { position: fixed; z-index: 50; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none;
  border: 1px solid rgba(79,216,255,.7); border-radius: 50%; transition: width .2s, height .2s, margin .2s, border-color .2s, opacity .3s; opacity: 0;
  box-shadow: 0 0 12px rgba(79,216,255,.4); }
.fx-cursor span { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--fx-cy); }
.fx-cursor.on { opacity: 1; }
.fx-cursor.hover { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-color: #fff; }
@media (pointer: coarse) { .fx-cursor { display: none; } }

/* ---------------- boot */
.boot { position: fixed; inset: 0; z-index: 100; background: #02040a; display: grid; place-items: center; cursor: pointer; transition: opacity .7s ease, visibility .7s; }
.boot.done { opacity: 0; visibility: hidden; }
body[data-intro="off"] .boot { display: none; }
.boot-inner { width: min(560px, 88vw); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.boot-mark { width: 120px; opacity: 0; filter: drop-shadow(0 0 18px rgba(79,216,255,.8)); animation: boot-mark 1.1s .15s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes boot-mark { 0% { opacity: 0; transform: scale(.4) rotate(-90deg); clip-path: inset(50% 0 50% 0); } 60% { opacity: 1; clip-path: inset(0); } 100% { opacity: 1; transform: none; } }
.boot-word { width: min(420px, 80vw); opacity: 0; animation: boot-word .9s .8s ease forwards; }
@keyframes boot-word { 0% { opacity: 0; clip-path: inset(0 100% 0 0); filter: drop-shadow(0 0 0 transparent); } 100% { opacity: 1; clip-path: inset(0 0 0 0); filter: drop-shadow(0 0 10px rgba(79,216,255,.6)); } }
.boot-log { align-self: stretch; margin: 6px 0 0; min-height: 7.5em; font: 12px/1.5 "JBM", monospace; color: rgba(79,216,255,.85); white-space: pre-wrap; }
.boot-log .ok { color: #5dffb0; }
.boot-bar { align-self: stretch; height: 2px; background: rgba(79,216,255,.15); overflow: hidden; }
.boot-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--fx-cy2), var(--fx-cy)); box-shadow: 0 0 10px var(--fx-cy); transition: width .25s ease; }
.boot-skip { font-size: 10.5px; color: var(--fx-mut); letter-spacing: .14em; text-transform: uppercase; opacity: .6; }

/* ---------------- responsivita */
@media (max-width: 900px) {
  .fx-stage { grid-template-columns: 1fr; gap: 26px; padding: 64px 16px 64px; }
  .fx-brand { gap: 14px; }
  .holo-mark { width: 84px; }
  .holo-word { width: min(320px, 82vw); }
  .holo-ring { display: none; }
  .brand-sub { font-size: 12px; }
  .hud { padding: 10px 14px; font-size: 10px; }
  .hud-top .hud-l span:nth-child(n+3), .hud-bot .hud-r { display: none; }
  .hud-bot .hud-l span:nth-child(n+5), .hud-bot .hud-l b:nth-of-type(n+3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fx *, .fx *::before, .fx *::after { animation: none !important; transition: none !important; }
  .boot { display: none; }
}

/* ---------------- live feed (symboly výkazu) */
.feed { width: min(560px, 92%); margin-top: 6px; }
.feed-head { position: relative; display: flex; padding: 3px 6px; background: rgba(3,8,18,.7); justify-content: space-between; font-size: 10px; color: var(--fx-mut); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.feed-head .orb { color: var(--fx-cy); display: inline-flex; align-items: center; gap: 6px; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: #ff3b6b; box-shadow: 0 0 8px #ff3b6b; animation: blink 1.2s infinite; display: inline-block; }
.chips { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.chip { position: relative; padding: 10px 11px 9px; border: 1px solid rgba(79,216,255,.22); background: rgba(6,14,30,.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 3px; overflow: hidden;
  animation: fade-up .7s ease both; transition: border-color .3s, box-shadow .3s, transform .2s; }
.chip:nth-child(1) { animation-delay: .9s; } .chip:nth-child(2) { animation-delay: 1.05s; } .chip:nth-child(3) { animation-delay: 1.2s; } .chip:nth-child(4) { animation-delay: 1.35s; }
.chip:hover { border-color: rgba(79,216,255,.6); transform: translateY(-2px); }
.chip.flash { border-color: var(--fx-cy); box-shadow: 0 0 18px rgba(79,216,255,.35); }
.chip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--c, var(--fx-cy)); box-shadow: 0 0 8px var(--c, var(--fx-cy)); }
.chip[data-kind="h"] { --c: #4fd8ff; } .chip[data-kind="kc"] { --c: #ffce5c; } .chip[data-kind="cl"] { --c: #9b6bff; } .chip[data-kind="tk"] { --c: #5dffb0; }
.chip .ci { position: absolute; right: 8px; top: 8px; width: 18px; height: 18px; fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; opacity: .9; }
.chip .ci text { fill: var(--c); stroke: none; font: 700 7px "JBM", monospace; }
.chip .cl { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fx-mut); }
.chip .cv { font-size: 15px; color: #fff; margin-top: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip .cv b { color: var(--c); text-shadow: 0 0 10px var(--c); font-weight: 700; }
.chip .cs { font-size: 10px; color: var(--fx-mut); margin-top: 4px; }
.chip .spark { display: block; width: 100%; height: 18px; margin-top: 4px; }
.chip .spark polyline { fill: none; stroke: var(--c); stroke-width: 1.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px var(--c)); }
.chip .dots { display: flex; gap: 3px; margin-top: 7px; flex-wrap: wrap; }
.chip .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); opacity: .25; transition: opacity .4s; }
.chip .dots i.on { opacity: 1; box-shadow: 0 0 6px var(--c); }
.chip .pbar { height: 3px; background: rgba(93,255,176,.15); margin-top: 9px; }
.chip .pbar span { display: block; height: 100%; width: 0; background: var(--c); box-shadow: 0 0 6px var(--c); transition: width 1s ease; }
.chip .plus { position: absolute; right: 10px; bottom: 6px; font-size: 11px; font-weight: 700; color: var(--c); text-shadow: 0 0 8px var(--c); animation: plus-up 1.4s ease forwards; pointer-events: none; }
@keyframes plus-up { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-22px); } }
@media (max-width: 1200px) { .chips { grid-template-columns: repeat(2, minmax(0,1fr)); } .feed { width: min(400px, 92%); } }
@media (max-width: 900px) { .chips { grid-template-columns: repeat(2, minmax(0,1fr)); } .feed { width: 100%; } .chip .spark { height: 14px; } }
@media (max-width: 420px) { .feed { display: none; } }
