/* ================= SoftPC ================= */
:root {
  --ink: #1B2A41;
  --muted: #5F6B7E;
  --bg: #F3F6FB;
  --card: #FFFFFF;
  --line: #E1E7F0;
  --blue: #4F46E5;
  --blue-d: #4338CA;
  --blue-l: #E7E6FF;
  --amber: #F2A93B;
  --amber-l: #FFF1D6;
  --green: #16A34A;
  --green-l: #DCFCE7;
  --red: #DC2626;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(27, 42, 65, .06), 0 4px 14px rgba(27, 42, 65, .06);
  --font: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --display: 'Fredoka', 'Nunito', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
.muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* ---------- tlačidlá ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px;
  padding: 10px 20px; font-weight: 700; text-decoration: none; transition: transform .1s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-d); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn.ghost:hover { background: var(--blue-l); border-color: var(--blue-l); }
.btn.danger { background: var(--red); color: #fff; }
.btn.big { padding: 14px 28px; font-size: 18px; }
.btn.small { padding: 6px 14px; font-size: 13px; }

/* ---------- logo ---------- */
.logo { font-family: var(--display); font-size: 24px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--blue); }
.logo small { font-family: var(--font); font-size: 13px; color: var(--muted); font-weight: 700; margin-left: 4px; }
.logo-ico { font-size: 28px; }

/* ================= žiak: úvodné obrazovky ================= */
.screen {
  min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 30% 10%, #6D5DF6 0%, transparent 60%), linear-gradient(160deg, #1E1B4B 0%, #312E81 55%, #0F766E 100%);
}
.boot-deco span {
  position: absolute; font-family: ui-monospace, Consolas, monospace; font-size: 28px; font-weight: 800; color: rgba(255, 255, 255, .14);
  animation: float 6s ease-in-out infinite;
}
.boot-deco span:nth-child(1) { top: 12%; left: 8%; }
.boot-deco span:nth-child(2) { top: 22%; right: 10%; animation-delay: -2s; font-size: 40px; }
.boot-deco span:nth-child(3) { bottom: 18%; left: 14%; animation-delay: -4s; font-size: 56px; }
.boot-deco span:nth-child(4) { bottom: 12%; right: 16%; animation-delay: -1s; font-size: 50px; }
.boot-deco span:nth-child(5) { top: 60%; left: 45%; animation-delay: -3s; }
.boot-bar { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--blue), #14B8A6); border-radius: 99px; animation: boot 1.6s ease-in-out infinite; }
@keyframes boot { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.sky-deco span {
  position: absolute; background: #fff; border-radius: 999px; opacity: .8; animation: drift 30s linear infinite;
}
.sky-deco span::before, .sky-deco span::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.sky-deco span:nth-child(1) { width: 220px; height: 64px; top: 12%; left: -240px; }
.sky-deco span:nth-child(2) { width: 160px; height: 48px; top: 30%; left: -240px; animation-duration: 42s; animation-delay: -18s; }
.sky-deco span:nth-child(3) { width: 260px; height: 72px; top: 70%; left: -240px; animation-duration: 36s; animation-delay: -8s; }
.sky-deco span::before { width: 45%; height: 140%; top: -60%; left: 15%; }
.sky-deco span::after { width: 35%; height: 110%; top: -40%; left: 50%; }
@keyframes drift { to { transform: translateX(calc(100vw + 520px)); } }

.join-card, .lobby-card {
  position: relative; z-index: 1; width: min(440px, 100%); background: var(--card); border-radius: 28px;
  padding: 36px 32px; text-align: center; box-shadow: 0 20px 60px rgba(29, 78, 216, .25);
  display: flex; flex-direction: column; gap: 14px;
}
.join-logo, .lobby-avatar { font-size: 72px; line-height: 1; animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.join-card h1, .lobby-card h1 { font-size: 40px; }
.join-card h1 span { color: var(--blue); }
.join-card p { margin: 0; color: var(--muted); }
.join-card input {
  border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 18px; text-align: center; outline: none;
}
.join-card input:focus { border-color: var(--blue); }
.join-card .btn { justify-content: center; }
.error { color: var(--red) !important; font-weight: 700; }

.wait { font-size: 18px; font-weight: 700; margin: 0; }
.dots i { font-style: normal; animation: blink 1.4s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.lobby-info { display: flex; gap: 10px; justify-content: center; }
.lobby-info div { flex: 1; background: var(--blue-l); border-radius: 16px; padding: 12px 8px; display: flex; flex-direction: column; }
.lobby-info b { font-family: var(--display); font-size: 28px; color: var(--blue-d); }
.lobby-info span { font-size: 13px; color: var(--muted); font-weight: 700; }
.place { font-family: var(--display); font-size: 26px; color: var(--blue); margin: 0; }

/* ================= žiak: cloud aplikácia ================= */
.app {
  display: grid; height: 100vh;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-rows: 68px minmax(0, 1fr);
  grid-template-areas: "top top" "desk missions";
}
.topbar {
  grid-area: top; display: flex; align-items: center; gap: 20px; padding: 0 20px;
  background: var(--card); border-bottom: 1px solid var(--line);
}
.timer-box {
  margin-left: auto; font-family: var(--display); font-size: 22px; font-weight: 600;
  background: var(--bg); padding: 6px 16px; border-radius: 999px;
}
.timer.hurry { color: var(--red); animation: pulse 1s infinite; display: inline-block; }
@keyframes pulse { 50% { transform: scale(1.12); } }
.me { display: flex; align-items: center; gap: 10px; }
.me .avatar { font-size: 30px; }
.me-name { font-weight: 800; }
.score {
  background: var(--amber); color: var(--ink); font-weight: 800; padding: 6px 14px; border-radius: 999px;
  font-family: var(--display); font-size: 18px;
}
.score.bump { animation: bump .7s ease; }
@keyframes bump { 30% { transform: scale(1.35) rotate(-6deg); background: #FFD166; } 60% { transform: scale(.95); } }

/* bočný panel */
.sidebar { grid-area: side; padding: 16px 12px; display: flex; flex-direction: column; gap: 14px; background: var(--card); border-right: 1px solid var(--line); }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.new { position: relative; }
.btn-new {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 18px; cursor: pointer;
  background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, .15), 0 4px 10px rgba(37, 99, 235, .12);
  font-weight: 800; font-size: 16px; transition: box-shadow .15s;
}
.btn-new span { font-size: 24px; color: var(--blue); line-height: 1; }
.btn-new:hover { box-shadow: 0 2px 6px rgba(0, 0, 0, .18), 0 8px 20px rgba(37, 99, 235, .18); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 0; background: transparent;
  border-radius: 999px; text-align: left; font-weight: 700;
}
.nav button:hover { background: var(--bg); }
.nav button.active { background: var(--blue-l); color: var(--blue-d); }
.storage { margin-top: auto; padding: 0 8px; }
.storage-bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.storage-bar div { height: 100%; background: var(--blue); border-radius: 99px; transition: width .5s; }
.storage small { color: var(--muted); }

/* rozbaľovacie menu */
.menu-list {
  position: absolute; z-index: 20; min-width: 230px; background: var(--card); border-radius: 14px; padding: 6px;
  box-shadow: 0 10px 30px rgba(27, 42, 65, .2); display: flex; flex-direction: column;
}
.new .menu-list { top: calc(100% + 6px); left: 0; }
.menu-list button {
  border: 0; background: transparent; text-align: left; padding: 9px 12px; border-radius: 8px; font-weight: 600; white-space: nowrap;
}
.menu-list button:hover { background: var(--bg); }
.menu-list button.danger { color: var(--red); }
.menu-label { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; padding: 6px 12px 2px; letter-spacing: .5px; }

/* hlavná časť */
.main { grid-area: main; overflow: auto; padding: 18px 24px 40px; }
.main-head { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 8px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.crumb { border: 0; background: transparent; font-family: var(--display); font-size: 22px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.crumb:hover { background: var(--blue-l); }
.crumbs .crumb:last-child { color: var(--blue-d); }
.sep { color: var(--muted); font-size: 22px; }
.view-title { font-size: 24px; }
.group-title { font-family: var(--font); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 18px 0 10px; }
.grid { display: grid; gap: 12px; }
.grid-folders { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.grid-files { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

.item { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .15s, transform .15s; animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
/* karta s otvoreným menu ⋮ musí byť nad ostatnými kartami, inak ju prekryjú súbory pod ňou */
.item.menu-open, .item:has(details.menu[open]) { z-index: 30; transform: none; animation: none; }
.item-open {
  width: 100%; border: 0; background: transparent; text-align: left; padding: 14px 44px 14px 14px;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center;
}
.item-open .ico { grid-row: span 2; font-size: 30px; }
.item-open .nm { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-open .meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-folder { background: #F7FAFF; }
.grid-files .item-open { grid-template-columns: 1fr; grid-template-rows: 90px auto auto; padding: 0 0 12px; }
.grid-files .item-open .ico {
  grid-row: auto; font-size: 46px; display: grid; place-items: center; background: var(--bg);
  border-radius: var(--radius) var(--radius) 0 0; margin-bottom: 8px; height: 90px;
}
.grid-files .item-open .nm, .grid-files .item-open .meta { padding: 0 14px; }
.item-doc .ico { background: #E8F0FF !important; }
.badge-star, .badge-share { position: absolute; font-size: 14px; top: 8px; right: 40px; color: var(--amber); }
.badge-share { right: 58px; color: inherit; }
.badge-star + .badge-share { right: 58px; }
.grid-files .badge-star, .grid-files .badge-share { top: 10px; }
.menu { position: absolute; top: 8px; right: 6px; }
.menu summary {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  font-size: 20px; font-weight: 800; color: var(--muted);
}
.menu summary:hover, .menu[open] summary { background: var(--blue-l); color: var(--blue-d); }
.menu .menu-list { right: 0; top: 36px; }

.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-cloud { font-size: 80px; animation: float 3s ease-in-out infinite; }

/* panel misií */
.missions { grid-area: missions; overflow: auto; padding: 18px; background: linear-gradient(180deg, #EEF4FF, #F7F9FD); border-left: 1px solid var(--line); }
.m-head { display: flex; align-items: center; justify-content: space-between; }
.m-head h2 { font-size: 22px; }
.m-level { margin-left: auto; margin-right: 10px; font-size: 13px; font-weight: 800; background: #fff; border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.m-count { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--blue-d); }
.m-progress { height: 10px; background: #fff; border-radius: 99px; margin: 10px 0 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.m-progress div { height: 100%; background: linear-gradient(90deg, var(--blue), #38BDF8); border-radius: 99px; transition: width .6s; }
.m-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.m-list li {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px;
}
.m-check { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); font-size: 17px; }
.m-text b { display: block; font-size: 14px; line-height: 1.3; }
.m-text small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.m-pts { font-family: var(--display); font-weight: 600; color: var(--blue-d); background: var(--blue-l); border-radius: 999px; padding: 3px 9px; font-size: 14px; }
.m-list li.done { background: var(--green-l); border-color: #A7F3D0; }
.m-list li.done .m-check { background: var(--green); color: #fff; font-weight: 800; }
.m-list li.done b { text-decoration: line-through; text-decoration-color: rgba(22, 163, 74, .5); color: #166534; }
.m-list li.done .m-pts { background: var(--green); color: #fff; }
.m-bonus { font-size: 12px; color: var(--muted); margin: 14px 2px 0; }

/* okná */
.modal-backdrop { position: fixed; inset: 0; background: rgba(27, 42, 65, .45); z-index: 50; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal {
  position: fixed; z-index: 51; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 40px); overflow: auto; background: var(--card); border-radius: 24px; padding: 22px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3); animation: rise .22s ease;
}
.modal.wide { width: min(820px, calc(100vw - 32px)); }
@keyframes rise { from { transform: translate(-50%, -44%); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modal-head h3 { font-size: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x { border: 0; background: var(--bg); width: 36px; height: 36px; border-radius: 50%; font-size: 16px; flex: none; }
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.field input, .field select {
  border: 2px solid var(--line); border-radius: 12px; padding: 11px 14px; font-size: 16px; outline: none; background: #fff; width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--blue); }
.with-ext { display: flex; align-items: center; gap: 6px; }
.with-ext em { font-style: normal; color: var(--muted); font-weight: 800; }
.modal-text { margin: 0; font-size: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; border: 2.5px dashed #A5C1F5;
  border-radius: 18px; background: #F5F9FF; cursor: pointer; text-align: center; position: relative;
}
.dropzone:hover { background: var(--blue-l); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-ico { font-size: 40px; }
.dz-name { font-size: 13px; color: var(--muted); word-break: break-all; }
.picker { border: 1px solid var(--line); border-radius: 14px; max-height: 280px; overflow: auto; padding: 6px; }
.pick { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.pick:hover { background: var(--bg); }
.pick:has(input:checked) { background: var(--blue-l); color: var(--blue-d); }
.shared-now { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.shared-now .btn { margin-left: auto; }
.roles { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); display: grid; gap: 2px; }

.doc-toolbar { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 12px; }
.doc-file { position: relative; top: auto; right: auto; }
.doc-file summary { width: auto; height: auto; padding: 7px 14px; border-radius: 10px; font-size: 15px; color: var(--ink); }
.doc-file .menu-list { left: 0; right: auto; }
.doc-status { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 700; }
.doc-status .htmx-indicator { display: none; }
.doc-status .htmx-request.htmx-indicator { display: inline; }
.doc-status:has(.htmx-request) .saved { display: none; }
.doc-paper {
  width: 100%; min-height: 360px; resize: vertical; border: 1px solid var(--line); border-radius: 6px; padding: 32px 40px;
  font-size: 17px; line-height: 1.7; outline: none; background: #fff; box-shadow: 0 2px 12px rgba(27, 42, 65, .08);
}
.doc-paper:focus { border-color: #A5C1F5; }
.preview { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; margin-bottom: 14px; }
.preview-ico { font-size: 80px; text-align: center; background: var(--bg); border-radius: 20px; padding: 10px; }
.preview dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; }
.preview dt { color: var(--muted); font-weight: 700; }
.preview dd { margin: 0; font-weight: 700; }
.preview .modal-text { grid-column: 1 / -1; }

/* toasty */
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 18px;
  min-width: 260px; max-width: 380px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); animation: toastIn .35s cubic-bezier(.2, 1.4, .4, 1);
  transition: opacity .4s, transform .4s;
}
.toast.out { opacity: 0; transform: translateX(40px); }
.toast b { display: block; }
.toast small { display: block; opacity: .8; font-size: 13px; }
.t-ico { font-size: 26px; }
.toast-warn { background: #7C2D12; }
.toast-win { background: linear-gradient(135deg, #16A34A, #22C55E); font-size: 16px; }
.toast-win .t-ico, .toast-gold .t-ico { font-size: 34px; animation: spin .8s ease; }
.toast-gold { background: linear-gradient(135deg, #D97706, #F59E0B); color: #1B2A41; font-size: 17px; }
@keyframes toastIn { from { transform: translateY(30px) scale(.9); opacity: 0; } }
@keyframes spin { from { transform: rotate(-200deg) scale(.3); } }

@media (max-width: 1100px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 68px 640px auto; grid-template-areas: "top" "desk" "missions"; height: auto; min-height: 100vh; }
  .missions { border-left: 0; border-top: 1px solid var(--line); }
}

/* ================= učiteľ ================= */
.teacher { background: var(--bg); }
.t-wrap { max-width: 1080px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.t-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.t-links { display: flex; gap: 8px; }
.t-card { background: var(--card); border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow); }
.t-card h2 { font-size: 22px; margin-bottom: 12px; }
.t-status { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.t-status h2 { margin-bottom: 4px; }
.t-status p { margin: 4px 0; }
.big-timer { font-family: var(--display); font-size: 40px; font-weight: 600; }
.url { color: var(--blue-d); }
.t-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline-flex; gap: 10px; align-items: center; margin: 0; }
form.inline input[type=number] { width: 70px; padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px; font-weight: 800; }
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ptable th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 8px; border-bottom: 2px solid var(--line); }
.ptable td { padding: 8px; border-bottom: 1px solid var(--line); }
.ptable form { margin: 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #CBD5E1; margin-right: 6px; }
.dot.on { background: var(--green); }
.t-missions { margin: 0 0 10px; padding-left: 22px; display: grid; gap: 4px; font-size: 14px; }
.start-form { display: flex; flex-direction: column; gap: 12px; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.level-opt { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; max-width: 230px; position: relative; }
.level-opt input { position: absolute; opacity: 0; }
.level-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-l); }
.level-opt .lv-emoji { font-size: 24px; }
.level-opt b { font-family: var(--display); font-size: 18px; }
.level-opt small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.start-row { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.start-row input[type=number] { width: 70px; padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px; font-weight: 800; }
.t-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 10px 0; }
.t-level { border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.t-level.current { border: 2px solid var(--blue); background: #F7FAFF; }
.t-level h3 { font-size: 18px; margin-bottom: 8px; }
.t-level h3 small { display: block; font-family: var(--font); font-size: 12px; color: var(--muted); font-weight: 700; }
@media (max-width: 900px) { .levels, .t-levels { grid-template-columns: 1fr; } }

/* ================= projektor ================= */
.board-page {
  min-height: 100vh; color: #fff; overflow: hidden;
  background: radial-gradient(ellipse at 20% 0%, #6D5DF6 0%, transparent 55%), radial-gradient(ellipse at 90% 100%, #0D9488 0%, transparent 50%), linear-gradient(180deg, #1E1B4B 0%, #312E81 100%);
}
.sky span {
  position: fixed; background: rgba(255, 255, 255, .08); border-radius: 999px; animation: drift 60s linear infinite; z-index: 0;
}
.sky span::before, .sky span::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
.sky span::before { width: 45%; height: 140%; top: -60%; left: 15%; }
.sky span::after { width: 35%; height: 110%; top: -40%; left: 50%; }
.sky .c1 { width: 300px; height: 80px; top: 15%; left: -320px; }
.sky .c2 { width: 200px; height: 56px; top: 45%; left: -320px; animation-duration: 80s; animation-delay: -30s; }
.sky .c3 { width: 360px; height: 96px; top: 75%; left: -380px; animation-duration: 70s; animation-delay: -50s; }
.sky .c4 { width: 240px; height: 64px; top: 30%; left: -320px; animation-duration: 90s; animation-delay: -70s; }
#board { position: relative; z-index: 1; height: 100vh; display: flex; flex-direction: column; padding: 22px 32px; gap: 18px; }

.b-head { display: flex; align-items: center; gap: 24px; }
.b-title { font-family: var(--display); font-size: 40px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.b-title small { font-size: 22px; opacity: .7; font-weight: 500; }
.b-cloud { font-size: 48px; animation: float 3s ease-in-out infinite; display: inline-block; }
.b-timer {
  margin-left: auto; font-family: var(--display); font-size: 56px; font-weight: 700; background: rgba(255, 255, 255, .12);
  padding: 4px 28px; border-radius: 24px; font-variant-numeric: tabular-nums;
}
.b-timer .hurry { color: #FFB4B4; }
.b-chip { margin-left: auto; font-family: var(--display); font-size: 28px; background: rgba(255, 255, 255, .14); padding: 10px 26px; border-radius: 999px; }
.b-chip.end { background: var(--amber); color: var(--ink); }
.b-chip.lvl { margin-left: auto; font-size: 26px; padding: 10px 22px; }
.b-chip.lvl + .b-timer { margin-left: 0; }
.b-count { font-family: var(--display); font-size: 30px; background: rgba(255, 255, 255, .12); padding: 10px 22px; border-radius: 999px; }
.b-empty { font-size: 28px; opacity: .7; text-align: center; margin: 60px 0; }

/* čakáreň */
.b-lobby { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; min-height: 0; }
.b-join {
  align-self: center; background: #fff; color: var(--ink); border-radius: 32px; padding: 44px; text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.b-join p { font-size: 26px; margin: 0; color: var(--muted); font-weight: 700; }
.b-url { font-family: var(--display); font-size: clamp(32px, 3.6vw, 60px); font-weight: 700; color: var(--blue-d); margin: 14px 0; word-break: break-all; line-height: 1.15; }
.b-rules { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.b-rules span { background: var(--blue-l); color: var(--blue-d); padding: 10px 18px; border-radius: 999px; font-weight: 800; font-size: 20px; }
.b-bubbles { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 14px; overflow: hidden; }
.bubble {
  display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .95); color: var(--ink); padding: 10px 20px 10px 12px;
  border-radius: 999px; font-weight: 800; font-size: 22px; animation: float 5s ease-in-out infinite; box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}
.bubble span { font-size: 34px; }

/* pretek */
.b-race { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 24px; min-height: 0; }
.track-wrap { display: flex; flex-direction: column; gap: 8px; overflow: hidden; --lane: 56px; }
.track-wrap.compact { --lane: 38px; gap: 5px; }
.track-wrap.tiny { --lane: 26px; gap: 3px; }
.lane { display: grid; grid-template-columns: 54px 170px minmax(0, 1fr) 96px; gap: 12px; align-items: center; height: var(--lane); }
.lane-rank { font-family: var(--display); font-size: calc(var(--lane) * .5); text-align: center; opacity: .85; }
.lane-name { font-weight: 800; font-size: calc(var(--lane) * .38); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lane-track { position: relative; height: 100%; background: rgba(255, 255, 255, .08); border-radius: 999px; }
.lane-track::before {
  content: ''; position: absolute; left: 16px; right: 56px; top: 50%; border-top: 2px dashed rgba(255, 255, 255, .25);
}
.lane-fill {
  position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; min-width: var(--lane);
  background: linear-gradient(90deg, rgba(56, 189, 248, .15), rgba(56, 189, 248, .45)); transition: width 1.2s cubic-bezier(.3, 1.3, .5, 1);
}
.top1 .lane-fill { background: linear-gradient(90deg, rgba(242, 169, 59, .2), rgba(242, 169, 59, .65)); }
.top2 .lane-fill { background: linear-gradient(90deg, rgba(226, 232, 240, .15), rgba(226, 232, 240, .5)); }
.top3 .lane-fill { background: linear-gradient(90deg, rgba(217, 119, 6, .15), rgba(217, 119, 6, .45)); }
.runner {
  position: absolute; top: 50%; transform: translateY(-50%); width: 64px; display: grid; place-items: center;
  transition: left 1.2s cubic-bezier(.3, 1.3, .5, 1); z-index: 2;
}
.runner-av { font-size: calc(var(--lane) * .78); display: inline-block; animation: hop .9s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
@keyframes hop { 50% { transform: translateY(-12%) rotate(-6deg); } }
.runner.leader::before { content: '👑'; position: absolute; top: calc(var(--lane) * -.42); font-size: calc(var(--lane) * .42); }
.lane-goal { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: calc(var(--lane) * .66); opacity: .9; }
.lane-score { font-family: var(--display); text-align: right; white-space: nowrap; }
.lane-score b { font-size: calc(var(--lane) * .5); }
.lane-score small { font-size: calc(var(--lane) * .3); opacity: .7; }

.b-side { display: flex; flex-direction: column; gap: 18px; min-height: 0; }
.b-card { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); border-radius: 24px; padding: 18px 20px; min-height: 0; overflow: hidden; }
.b-card:first-child { flex: 1; }
.b-card h3 { font-size: 24px; margin-bottom: 12px; }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.feed li { background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 10px 14px; font-size: 18px; font-weight: 700; }
.feed li.new { animation: feedIn .6s cubic-bezier(.2, 1.4, .4, 1); background: rgba(255, 255, 255, .25); }
.feed li.all_done { background: var(--amber); color: var(--ink); }
.feed li.join { opacity: .75; font-weight: 600; }
@keyframes feedIn { from { transform: translateX(60px) scale(.9); opacity: 0; } }
.mstats { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.mstats li { display: grid; grid-template-columns: 28px 1fr 90px 52px; gap: 8px; align-items: center; font-size: 15px; font-weight: 700; }
.ms-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-bar { height: 8px; background: rgba(255, 255, 255, .15); border-radius: 99px; overflow: hidden; }
.ms-bar i { display: block; height: 100%; background: #4ADE80; border-radius: 99px; transition: width 1s; }
.ms-c { text-align: right; opacity: .8; font-variant-numeric: tabular-nums; }

/* koniec */
.b-final { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; position: relative; min-height: 0; }
.final-title { font-size: 64px; text-shadow: 0 6px 20px rgba(0, 0, 0, .3); animation: float 3s ease-in-out infinite; }
.podium { display: flex; align-items: flex-end; gap: 20px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 240px; }
.pod-av { font-size: 96px; animation: hop 1.1s ease-in-out infinite; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .35)); }
.pod-1 .pod-av { font-size: 130px; }
.pod-1 .pod-av::before { content: '👑'; display: block; font-size: 54px; text-align: center; margin-bottom: -18px; }
.pod-name { font-family: var(--display); font-size: 30px; font-weight: 600; text-align: center; }
.pod-score { font-size: 22px; font-weight: 800; opacity: .85; }
.pod-block {
  width: 100%; display: grid; place-items: center; font-family: var(--display); font-size: 72px; font-weight: 700;
  border-radius: 20px 20px 0 0; color: var(--ink); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .1);
  animation: grow .9s cubic-bezier(.3, 1.3, .5, 1) both;
}
.pod-1 .pod-block { height: 220px; background: linear-gradient(180deg, #FFE066, #F2A93B); }
.pod-2 .pod-block { height: 160px; background: linear-gradient(180deg, #F1F5F9, #CBD5E1); animation-delay: .15s; }
.pod-3 .pod-block { height: 120px; background: linear-gradient(180deg, #FDBA74, #D97706); animation-delay: .3s; }
@keyframes grow { from { transform: scaleY(0); transform-origin: bottom; } }
.final-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 1400px; counter-reset: r 3; }
.final-list li { counter-increment: r; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 8px 18px; font-size: 20px; font-weight: 700; display: flex; gap: 12px; }
.final-list li::before { content: counter(r) '.'; opacity: .6; }
.confetti { position: absolute; inset: -40px 0 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 12px; height: 18px; border-radius: 3px; animation: fall linear infinite; opacity: .9; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }


/* ================= SoftPC: simulovaný počítač ================= */
.desk {
  grid-area: desk; position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: radial-gradient(ellipse at 70% 20%, #7C6CF7 0%, transparent 55%), radial-gradient(ellipse at 10% 90%, #14B8A6 0%, transparent 50%), linear-gradient(135deg, #312E81, #1E3A8A);
}
.app.infected .desk { animation: glitch 2.5s infinite; background: radial-gradient(ellipse at 50% 40%, #7F1D1D 0%, transparent 70%), linear-gradient(135deg, #450A0A, #1F2937); }
@keyframes glitch { 0%, 92%, 100% { filter: none; } 94% { filter: hue-rotate(90deg) contrast(1.4); transform: translateX(-3px); } 96% { filter: invert(.15); transform: translateX(3px); } }
.virus-banner {
  position: relative; z-index: 6; align-self: center; margin: 12px 16px 0; background: #DC2626; color: #fff; font-weight: 800; text-align: center;
  padding: 10px 20px; border-radius: 14px; box-shadow: 0 10px 30px rgba(220, 38, 38, .5); animation: blinkbg 1.2s infinite;
}
@keyframes blinkbg { 50% { background: #991B1B; } }
.fake-ad {
  position: absolute; z-index: 5; width: 210px; background: #FEF08A; color: #1B2A41; border: 3px solid #EF4444; border-radius: 12px;
  padding: 10px 12px; font-size: 13px; line-height: 1.35; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transform: rotate(-3deg); pointer-events: none;
}
.fake-ad span { color: #2563EB; text-decoration: underline; font-weight: 800; }
.fake-ad.ad1 { top: 70px; right: 18px; animation: float 3s ease-in-out infinite; }
.fake-ad.ad2 { bottom: 70px; left: 18px; transform: rotate(3deg); background: #FECACA; }
.fake-ad.ad3 { bottom: 70px; right: 18px; transform: rotate(2deg); background: #BBF7D0; border-color: #16A34A; animation: float 4s ease-in-out infinite; }

.icons { display: grid; grid-template-columns: repeat(auto-fill, 96px); gap: 6px; padding: 18px; align-content: start; flex: 1; position: relative; z-index: 1; }
.dicon {
  border: 0; background: transparent; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px;
  border-radius: 10px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.dicon:hover { background: rgba(255, 255, 255, .15); }
.di { font-size: 38px; line-height: 1; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3)); }
.dn { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.2; max-height: 2.4em; overflow: hidden; }
.wall-logo {
  position: absolute; right: 30px; bottom: 76px; color: rgba(255, 255, 255, .25); font-family: var(--display); font-size: 44px; font-weight: 600; text-align: right; pointer-events: none;
}
.wall-logo small { display: block; font-family: var(--font); font-size: 14px; }

.win {
  position: relative; z-index: 2; margin: 16px 16px 8px; flex: 1; min-height: 0; display: flex; flex-direction: column;
  background: var(--card); border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); overflow: hidden; animation: rise2 .2s ease;
}
@keyframes rise2 { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.win-title { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 16px; background: #F1F0FF; border-bottom: 1px solid var(--line); font-weight: 800; }
.win-x { border: 0; background: transparent; width: 34px; height: 30px; border-radius: 8px; font-size: 15px; }
.win-x:hover { background: #EF4444; color: #fff; }
.win-body { flex: 1; overflow: auto; padding: 16px 18px 24px; }
.win-hint { margin: 0 0 12px; font-size: 13px; color: var(--muted); background: var(--bg); padding: 8px 12px; border-radius: 10px; }

.taskbar {
  position: relative; z-index: 3; display: flex; align-items: center; gap: 4px; padding: 6px 10px; margin: 0 12px 12px;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(10px); border-radius: 16px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.tb { position: relative; border: 0; background: transparent; width: 46px; height: 42px; border-radius: 10px; font-size: 22px; display: grid; place-items: center; }
.tb:hover { background: rgba(79, 70, 229, .12); }
.tb.active { background: rgba(79, 70, 229, .18); }
.tb.active::after { content: ''; position: absolute; bottom: 2px; left: 35%; right: 35%; height: 3px; border-radius: 3px; background: var(--blue); }
.tb.start span { color: var(--blue); font-weight: 800; }
.tb i { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: #EF4444; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; display: grid; place-items: center; }
.tray { margin-left: auto; display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 800; padding-right: 6px; }

/* obchod */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { border: 1.5px solid var(--line); background: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.chip:hover { border-color: var(--blue); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.app-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #fff; transition: box-shadow .15s, transform .15s; }
.app-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ac-top { display: flex; gap: 10px; align-items: center; }
.ac-ico { font-size: 34px; width: 52px; height: 52px; display: grid; place-items: center; background: var(--bg); border-radius: 14px; flex: none; }
.ac-name b { display: block; line-height: 1.2; }
.ac-name small { color: var(--muted); font-size: 12px; }
.ac-kind { margin: 0; font-size: 13px; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 4px; min-height: 22px; }
.ac-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ac-foot .btn { margin-left: auto; }
.installed { color: var(--green); font-weight: 800; font-size: 13px; }
.installed.big { font-size: 16px; }
.lic, .cat, .warn-b, .ok-b, .price { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.lic { background: #E0E7FF; color: #3730A3; }
.lic-open { background: #DCFCE7; color: #166534; }
.lic-freeware { background: #DBEAFE; color: #1E40AF; }
.lic-shareware, .lic-trial { background: #FEF3C7; color: #92400E; }
.lic-paid, .lic-oem { background: #F3E8FF; color: #6B21A8; }
.lic-crack { background: #FEE2E2; color: #991B1B; }
.cat { background: #F1F5F9; color: #334155; }
.warn-b { background: #FEE2E2; color: #B91C1C; }
.ok-b { background: #DCFCE7; color: #166534; }
.price { background: #1B2A41; color: #fff; }

/* programy */
.ptab { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptab th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 8px; border-bottom: 2px solid var(--line); }
.ptab td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pt-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.pt-name > span:first-child { font-size: 22px; }
.pt-act { white-space: nowrap; text-align: right; }
.pt-act .btn + .btn { margin-left: 4px; }

/* aktualizácie, zariadenia */
.upd-list, .dev-list { display: flex; flex-direction: column; gap: 8px; }
.upd, .dev { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.upd small, .dev small { display: block; color: var(--muted); font-size: 13px; }
.upd-ico, .dev-ico { font-size: 28px; text-align: center; }
.dev.bad { border-color: #FCA5A5; background: #FEF2F2; }
.dev-st { font-weight: 800; font-size: 13px; }
.big-ok { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 50px 20px; font-size: 56px; text-align: center; }
.big-ok b { font-family: var(--display); font-size: 26px; }
.big-ok span { font-size: 15px; color: var(--muted); }

/* antivírus */
.av { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 30px 20px; border-radius: 18px; }
.av-shield { font-size: 90px; line-height: 1; animation: float 3s ease-in-out infinite; }
.av h2 { font-size: 26px; }
.av p { margin: 0; color: var(--muted); }
.av-ok { background: linear-gradient(180deg, #ECFDF5, #fff); }
.av-bad { background: linear-gradient(180deg, #FEF2F2, #fff); }
.av-scare { background: repeating-linear-gradient(45deg, #FEF08A 0 18px, #FDE047 18px 36px); }
.av-scare .scare { color: #B91C1C; font-weight: 800; font-size: 20px; animation: pulse .8s infinite; }
.av-none { background: var(--bg); }

.sys { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
.sys-logo { font-size: 96px; text-align: center; }
.sys dl, .detail { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.sys dt, .detail dt { color: var(--muted); font-weight: 700; }
.sys dd, .detail dd { margin: 0; font-weight: 700; }
.sys .win-hint { grid-column: 1 / -1; }
.detail-desc { margin: 0 0 14px; }
.lic-desc { display: block; font-weight: 600; color: var(--muted); margin-top: 4px; font-size: 13px; }
.detail dd .warn-b { margin-top: 6px; }

/* sprievodca inštaláciou */
.steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; gap: 6px; }
.steps li { flex: 1; text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); padding: 6px 4px; border-radius: 8px; background: var(--bg); }
.steps li.now { background: var(--blue); color: #fff; }
.steps li.past { background: var(--blue-l); color: var(--blue-d); }
.wiz-body { min-height: 190px; display: flex; flex-direction: column; gap: 10px; }
.wiz-body p { margin: 0; }
.wiz-hello { display: flex; gap: 18px; align-items: center; }
.wiz-hello > span { font-size: 70px; }
.wiz-hello small { color: var(--muted); }
.eula {
  margin: 0; white-space: pre-wrap; font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: #F8FAFC; border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; max-height: 190px; overflow: auto;
}
.check, .radio { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; cursor: pointer; padding: 8px 10px; border-radius: 10px; }
.check:hover, .radio:hover { background: var(--bg); }
.check input, .radio input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); }
.radio small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
.custom-box { display: none; border: 1.5px dashed #C7D2FE; border-radius: 12px; padding: 10px 12px; background: #F8F8FF; }
.wizard.is-custom .custom-box, .wizard:has(input[value=custom]:checked) .custom-box { display: block; }
.custom-box code { background: #fff; padding: 2px 6px; border-radius: 6px; }
.wiz-err { color: var(--red); font-weight: 800; margin: 6px 0 0; }
.installing { align-items: center; justify-content: center; text-align: center; }
.spin { font-size: 60px; animation: hop .8s ease-in-out infinite; }
.bar { width: 80%; height: 14px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), #14B8A6); border-radius: 99px; animation: fill 1.6s ease-out forwards; }
@keyframes fill { to { width: 100%; } }

/* kvíz v misiách */
.m-list li.quiz { background: #FFFBEB; border-color: #FDE68A; }
.q-opts { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.q-opt { border: 1.5px solid #FCD34D; background: #fff; text-align: left; padding: 6px 10px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.q-opt:hover { background: #FEF3C7; border-color: #F59E0B; }
.m-list li.fail { background: #FEF2F2; border-color: #FECACA; }
.m-list li.fail .m-check { background: var(--red); color: #fff; font-weight: 800; }
.m-list li.fail .m-pts { background: #FCA5A5; color: #7F1D1D; }
.toast-bad { background: linear-gradient(135deg, #991B1B, #DC2626); }
.toast-bad .t-ico { font-size: 32px; animation: spin .6s ease; }

/* projektor – doplnky */
.matrix span { position: fixed; z-index: 0; font-family: ui-monospace, Consolas, monospace; font-weight: 800; color: rgba(255, 255, 255, .045); font-size: 60px; animation: float 8s ease-in-out infinite; }
.matrix span:nth-child(1) { top: 10%; left: 5%; }
.matrix span:nth-child(2) { top: 40%; right: 8%; font-size: 120px; animation-delay: -2s; }
.matrix span:nth-child(3) { bottom: 10%; left: 30%; font-size: 100px; animation-delay: -4s; }
.matrix span:nth-child(4) { top: 70%; left: 4%; animation-delay: -6s; }
.matrix span:nth-child(5) { top: 20%; left: 50%; font-size: 90px; animation-delay: -3s; }
.matrix span:nth-child(6) { bottom: 6%; right: 30%; animation-delay: -5s; }
.b-count.virus { background: rgba(220, 38, 38, .35); }
.feed li.infect, .feed li.scareware { background: rgba(220, 38, 38, .55); }
.feed li.adware { background: rgba(234, 179, 8, .35); }
.runner-virus { position: absolute; right: -6px; bottom: -4px; font-size: calc(var(--lane) * .4); animation: pulse 1s infinite; }
.lane-fill { background: linear-gradient(90deg, rgba(45, 212, 191, .15), rgba(45, 212, 191, .45)); }
