/* ============ Písma (stejná jako Streamer Tool a PC Analyzer) ============ */
@font-face { font-family: "Inter Variable"; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Inter Variable"; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk Variable"; font-weight: 300 700; font-display: swap; src: url(fonts/space-grotesk-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Space Grotesk Variable"; font-weight: 300 700; font-display: swap; src: url(fonts/space-grotesk-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --accent: #9b6bff; --on-accent: #0c0b12; --bg: #08070c; --panel: #15131f;
  --line: #262335; --text: #f1eff8; --muted: #9a96ab; --glow-strength: .3;
  --panel-glass: color-mix(in srgb, var(--panel) 60%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 45%, transparent);
  --ok: #34d399; --warn: #fbbf24; --crit: #ff5a6a; --kick: #53fc18;
  --font-text: "Inter Variable", "Inter", "Segoe UI", sans-serif;
  --font-head: "Space Grotesk Variable", "Space Grotesk", "Segoe UI", sans-serif;
  --radius: 18px;
}

/* ============ Základ ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: var(--line) transparent; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font-family: var(--font-text); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-head); margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.accent { color: var(--accent); }
.icon { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.glow {
  position: fixed; width: 1100px; height: 1100px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle closest-side, var(--accent) 0%, color-mix(in srgb, var(--accent) 85%, transparent) 38%, color-mix(in srgb, var(--accent) 38%, transparent) 62%, transparent 100%);
  opacity: var(--glow-strength);
}
.glow-a { top: -610px; left: -450px; }
.glow-b { bottom: -650px; right: -430px; }

/* ============ Rozložení ============ */
/* Plovoucí lišta: jen tak široká, kolik potřebuje, uprostřed nahoře. */
.topbar {
  position: fixed; top: 16px; left: 0; right: 0; width: fit-content; max-width: calc(100% - 32px); margin-inline: auto; z-index: 40;
  display: flex; align-items: center; gap: 18px; height: 60px; padding: 0 10px 0 12px;
  border: 1px solid var(--line); border-radius: 20px;
  background: color-mix(in srgb, var(--panel) 78%, transparent); backdrop-filter: blur(18px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .4);
}
.main { padding: 112px 32px 0; min-height: 100dvh; display: flex; flex-direction: column; }
.main > * { width: 100%; max-width: 1160px; margin-inline: auto; }
#view { flex: 1; }
.foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 80px; padding: 24px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent); }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }

.nav { display: flex; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 13px; border-radius: 12px; color: var(--muted); font-size: 14.5px; font-weight: 500; transition: background-color .15s, color .15s; }
.nav-item > .icon { display: none; }
.nav-item:hover { color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-count { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.nav-count:empty { display: none; }
.nav-live { width: 8px; height: 8px; border-radius: 50%; background: var(--crit); box-shadow: 0 0 10px var(--crit); animation: pulse 1.6s ease-in-out infinite; }

.user-box { display: flex; align-items: center; gap: 8px; }
.gem-box { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 13px; border: 1px solid var(--accent-line); border-radius: 12px; background: var(--accent-soft); }
.gem-box .icon { width: 18px; height: 18px; color: var(--accent); }
.gem-box b { font-family: var(--font-head); font-size: 16px; font-variant-numeric: tabular-nums; }
.gem-box.bump { animation: bump .5s ease; }
@keyframes bump { 40% { transform: scale(1.08); border-color: var(--accent); } }
.me { display: grid; border-radius: 50%; }
.me:hover .avatar { box-shadow: 0 0 0 2px var(--accent); }
.me .avatar { width: 40px; height: 40px; }
.avatar {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; object-fit: cover;
  background: var(--accent-soft); color: var(--accent); font-family: var(--font-head); font-weight: 700;
}
.avatar.lg { width: 64px; height: 64px; font-size: 26px; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 30px; font-weight: 700; }
.sub { color: var(--muted); margin-top: 4px; }
#view > * { animation: screen-in .35s ease both; }
@keyframes screen-in { from { transform: translateY(10px); } }

/* ============ Prvky ============ */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-glass); padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2 { font-size: 19px; font-weight: 600; }
.stack { display: grid; gap: 18px; }
.hint { color: var(--muted); font-size: 13px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.link { color: var(--accent); font-weight: 600; font-size: 14px; background: none; border: 0; padding: 0; }
.link:hover { text-decoration: underline; }
.icon-tile { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.icon-tile.sm { width: 38px; height: 38px; border-radius: 10px; }
.icon-tile.sm .icon { width: 18px; height: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 18px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--on-accent); font-family: var(--font-head); font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .15s, filter .15s, border-color .15s, background-color .15s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; filter: none; transform: none; }
.btn .icon { width: 18px; height: 18px; stroke-width: 2.1; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-sm { height: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 10px; gap: 7px; }
.btn-sm .icon { width: 16px; height: 16px; }
.btn-full { width: 100%; }
.btn-ghost { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { filter: none; border-color: var(--accent-line); background: var(--accent-soft); }
.btn-danger:hover { background: color-mix(in srgb, var(--crit) 16%, transparent); border-color: color-mix(in srgb, var(--crit) 50%, transparent); color: var(--crit); }
.btn-kick { background: var(--kick); color: #0b0b10; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); flex: none; }
.icon-btn:hover { color: var(--text); border-color: var(--accent-line); }
.icon-btn .icon { width: 18px; height: 18px; }

.input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--bg) 60%, transparent); outline: none; transition: border-color .15s; }
textarea.input { height: auto; padding: 11px 14px; resize: vertical; }
select.input option { background: var(--panel); }
.input:focus { border-color: var(--accent); }
.input::placeholder { color: var(--muted); }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); align-content: start; }
.field .input { color: var(--text); font-weight: 400; font-size: 15px; }
.field small { font-weight: 400; }
.form { display: grid; gap: 14px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.check { display: flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; }
.check span.t { flex: 1; } .check small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background-color .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: transform .2s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); background: var(--on-accent); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pill.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.pill.err { background: color-mix(in srgb, var(--crit) 14%, transparent); color: var(--crit); }
.pill.muted { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--muted); }
.pill .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--crit); font-weight: 700; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar > div { height: 100%; width: 0; border-radius: 4px; background: var(--accent); transition: width .6s ease; }
.price { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 700; font-variant-numeric: tabular-nums; }
.price .icon { color: var(--accent); width: 18px; height: 18px; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--muted); padding: 56px 24px; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty .icon-tile { width: 56px; height: 56px; border-radius: 16px; }
.empty .icon-tile .icon { width: 26px; height: 26px; }
.empty b { color: var(--text); font-family: var(--font-head); font-size: 18px; }
.empty p { max-width: 400px; }
.notice { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border: 1px solid var(--accent-line); border-radius: 14px; background: var(--accent-soft); margin-bottom: 18px; }
.notice .icon { color: var(--accent); }

.chips { scrollbar-width: none; display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-glass); overflow-x: auto; max-width: 100%; }
.chip { height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.chip:hover { color: var(--text); }
.chip.active { background: var(--accent-soft); color: var(--accent); }

/* ============ Domů ============ */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 30px; min-height: min(640px, calc(100dvh - 190px)); padding-bottom: 30px; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel-glass); font-size: 14px; color: var(--muted); }
a.status:hover { border-color: var(--accent-line); color: var(--text); }
.status b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-title { font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: 1.02; letter-spacing: -.04em; margin-top: 22px; }
.hero-sub { color: var(--muted); font-size: 18px; line-height: 1.55; margin-top: 20px; max-width: 470px; }
.hero-sub b { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-height: 520px; justify-self: center; width: 100%; perspective: 900px; }
.hero-art::before { content: ""; position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle closest-side, color-mix(in srgb, var(--accent) 46%, transparent), transparent); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.1); } }
.gem-tilt { width: 72%; position: relative; translate: 0 calc(var(--sy, 0px) * .16); transform: rotateY(calc(var(--tx, 0) * 34deg)) rotateX(calc(var(--ty, 0) * -24deg)); transition: transform .25s ease-out; }
.big-gem { display: block; width: 100%; animation: float 6s ease-in-out infinite; overflow: visible; }
.gem-facets polygon { stroke: #efe4ff; stroke-opacity: .32; stroke-width: 2.5; stroke-linejoin: round; }
.gem-girdle { fill: none; stroke: #fff; stroke-opacity: .7; stroke-width: 5; }
.gem-rim { fill: none; stroke: url(#gem-rim); stroke-width: 9; stroke-linejoin: round; }
.gem-glints { transform: translate(calc(var(--tx, 0) * 70px), calc(var(--ty, 0) * 50px)); transition: transform .35s ease-out; }
.gem-sheen { transform: skewX(-22deg); animation: gem-sheen 5.5s ease-in-out infinite; }
@keyframes gem-sheen { 0%, 30% { transform: translateX(0) skewX(-22deg); } 75%, 100% { transform: translateX(2300px) skewX(-22deg); } }
.gem-star { fill: #fff; animation: twinkle 3.6s ease-in-out infinite; }
g:nth-of-type(3) > .gem-star { animation-delay: -1.2s; } g:nth-of-type(4) > .gem-star { animation-delay: -2.4s; }
@keyframes twinkle { 0%, 100% { transform: scale(.55) rotate(0deg); opacity: .65; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }
@keyframes float { 50% { transform: translateY(-14px); } }
.plus { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: var(--panel); border: 1px solid var(--accent-line); font-family: var(--font-head); font-weight: 700; color: var(--accent); animation: float 5s ease-in-out infinite; }
.plus .icon { width: 16px; height: 16px; }
.plus { translate: calc(var(--tx, 0) * 34px) calc(var(--ty, 0) * 34px + var(--sy, 0px) * -.08); }
.plus:nth-of-type(1) { top: 12%; right: 8%; animation-delay: -1s; }
.plus:nth-of-type(2) { top: 46%; left: 0; animation-delay: -3s; }
.plus:nth-of-type(3) { bottom: 13%; right: 12%; animation-delay: -2s; }

.sec { margin-top: 96px; }
.sec > h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.03em; }
.sec > .sub { font-size: 16px; max-width: 560px; margin-bottom: 30px; }
.sec > h2 + :not(.sub) { margin-top: 30px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; border-radius: 2px; background: var(--line); }
.steps::after { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 35%, transparent)); transform: scaleX(0); transform-origin: left; transition: transform 1.8s cubic-bezier(.3, .7, .2, 1) .25s; }
.steps.play::after { transform: none; }
.steps li { padding-right: 34px; position: relative; z-index: 1; }
.steps .n { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--muted); transition: background-color .5s, color .5s, border-color .5s, box-shadow .5s; }
.steps.play .n { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 0 34px color-mix(in srgb, var(--accent) 55%, transparent); }
.steps li:nth-child(1) .n { transition-delay: .25s; } .steps li:nth-child(2) .n { transition-delay: .75s; } .steps li:nth-child(3) .n { transition-delay: 1.3s; }
.steps h3 { font-size: 22px; margin: 22px 0 8px; }
.steps p { color: var(--muted); max-width: 300px; }

/* Další gemy */
.tiles { display: flex; flex-wrap: wrap; gap: 16px; }
.tile { --mx: 50%; --my: -40%; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; flex: 1 1 250px; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel-glass); transition: border-color .25s, transform .25s; }
.tile::before, .next-row::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%); }
.tile:hover { border-color: var(--accent-line); transform: translateY(-5px); }
.tile:hover::before, .next-row:hover::before { opacity: 1; }
.tile h3 { font-size: 21px; font-weight: 600; }
.tile p { color: var(--muted); margin-top: 6px; }
.gain { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 22px; font-family: var(--font-head); font-weight: 700; font-size: 34px; letter-spacing: -.03em; color: var(--accent); line-height: 1; }
.gain b { margin-left: -5px; } .gain .icon { width: 25px; height: 25px; } .gain small { font-family: var(--font-text); font-weight: 400; font-size: 14px; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.t-chat { flex: 2 1 600px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; background: linear-gradient(130deg, color-mix(in srgb, var(--accent) 20%, var(--panel-glass)), var(--panel-glass) 65%); border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); }
.t-chat .tile-text { display: flex; flex-direction: column; } .t-chat h3 { font-size: 26px; letter-spacing: -.02em; }
.chat { display: flex; flex-direction: column; gap: 9px; justify-content: center; min-height: 210px; }
.tile .msg { align-self: flex-start; margin: 0; padding: 10px 14px; border-radius: 15px 15px 15px 4px; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); font-size: 14.5px; max-width: 100%; }
.msg b { color: var(--kick); font-weight: 600; margin-right: 5px; } .msg.bot b { color: var(--accent); }
.tile .msg.pay { align-self: flex-end; display: flex; align-items: center; gap: 6px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-family: var(--font-head); font-weight: 700; } .msg.pay .icon { width: 16px; height: 16px; }
.tile.play .msg { animation: pop .5s cubic-bezier(.2, 1.5, .4, 1) backwards; }
.tile.play .msg:nth-child(1) { animation-delay: .5s; } .tile.play .msg:nth-child(2) { animation-delay: 1.2s; } .tile.play .msg:nth-child(3) { animation-delay: 2s; } .tile.play .msg:nth-child(4) { animation-delay: 2.8s; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.85); } }
.t-mult { flex: 1 1 340px; }
.mult { font-family: var(--font-head); font-weight: 700; font-size: 72px; letter-spacing: -.05em; line-height: 1; margin: 18px 0; background: linear-gradient(110deg, var(--accent) 30%, #e3d6ff 50%, var(--accent) 70%) 100% 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 45% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.bars { display: grid; gap: 8px; margin-top: auto; }
.bars > div { position: relative; height: 34px; border-radius: 11px; background: color-mix(in srgb, var(--text) 5%, transparent); overflow: hidden; display: flex; align-items: center; padding: 0 13px; font-size: 13.5px; font-weight: 600; }
.bars i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: color-mix(in srgb, var(--text) 15%, transparent); border-radius: inherit; transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1) .35s; }
.tile.play .bars i { transform: none; }
.bars .sub-bar i { background: var(--accent); transition-delay: .7s; } .bars span { position: relative; } .sub-bar span { color: var(--on-accent); }
.orb { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 20px; margin-bottom: 20px; color: var(--accent); background: var(--accent-soft); position: relative; }
.orb .icon { width: 28px; height: 28px; }
.t-heart .orb { color: #ff6f9c; background: color-mix(in srgb, #ff6f9c 15%, transparent); } .t-crown .orb { color: #ffc85a; background: color-mix(in srgb, #ffc85a 14%, transparent); } .t-gift .orb { color: #5fd9c4; background: color-mix(in srgb, #5fd9c4 14%, transparent); }
.t-heart .orb .icon { animation: beat 1.9s ease-in-out infinite; } .t-crown:hover .orb .icon { animation: wiggle .6s ease; } .t-gift:hover .orb .icon { animation: hop .6s ease; }
@keyframes beat { 0%, 30%, 100% { transform: none; } 10% { transform: scale(1.2); } 20% { transform: scale(.97); } }
@keyframes wiggle { 25% { transform: rotate(-14deg); } 60% { transform: rotate(12deg); } }
@keyframes hop { 35% { transform: translateY(-8px) rotate(-6deg); } 70% { transform: translateY(0) scale(1.1, .9); } }

.next-list { display: grid; gap: 12px; }
.next-row { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 20px; padding: 16px 24px 16px 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel-glass); transition: transform .25s, border-color .25s; }
.next-row:hover { transform: translateX(8px); border-color: var(--accent-line); }
.date { width: 64px; height: 64px; flex: none; display: grid; place-content: center; text-align: center; border-radius: 16px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.date b { font-family: var(--font-head); font-size: 24px; line-height: 1; letter-spacing: -.03em; } .date small { color: var(--muted); font-size: 13px; margin-top: 3px; }
.nr-text { flex: 1; min-width: 0; } .nr-text b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 19px; overflow-wrap: anywhere; } .nr-text small { color: var(--muted); font-size: 14.5px; }
.soon { color: var(--muted); font-size: 14.5px; white-space: nowrap; } .soon b { font-variant-numeric: tabular-nums; }
.next-row.first { padding: 24px 30px 24px 24px; border-color: var(--accent-line); background: linear-gradient(110deg, color-mix(in srgb, var(--accent) 26%, var(--panel-glass)), var(--panel-glass) 75%); }
.first .date { width: 78px; height: 78px; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 45%, transparent); } .first .date small { color: inherit; } .first .date b { font-size: 30px; }
.first .nr-text b { font-size: 25px; letter-spacing: -.02em; } .first .soon { color: var(--text); font-family: var(--font-head); font-size: 20px; }
.next-list + .link { display: inline-block; margin-top: 18px; }

/* Objevování při scrollování (třídy přidává motion.js) */
.rv { opacity: 0; transform: translateY(38px) scale(.975); }
.rv.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .85s cubic-bezier(.16, 1, .3, 1); }
.steps.rv { transform: none; }
.next-row.rv { transform: translateX(-46px); } .next-row.rv.in { transform: none; }
.hero-art.rv { transform: scale(.8); } .hero-art.rv.in { transform: none; }
.sec, #view > .hero { animation: none; }
.hero > div:first-child > .status { width: fit-content; }

.mini-list { display: grid; gap: 6px; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--text) 3%, transparent); }
.mini-row .mr-text { flex: 1; min-width: 0; }
.mini-row .mr-text b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row .mr-text small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.mini-row .pos { width: 20px; text-align: center; font-family: var(--font-head); font-weight: 700; color: var(--muted); }
.mini-row:first-child .pos { color: var(--accent); }
.mini-empty { color: var(--muted); font-size: 14px; padding: 6px 0; }
.delta { font-family: var(--font-head); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta.plus { color: var(--ok); } .delta.minus { color: var(--muted); }

/* ============ Obchod ============ */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.item { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.item:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.item-pic { aspect-ratio: 16/10; position: relative; display: grid; place-items: center; color: var(--accent); background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%), color-mix(in srgb, var(--bg) 60%, transparent); border-bottom: 1px solid var(--line); }
.item-pic > .icon { width: 58px; height: 58px; stroke-width: 1.4; }
.item-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-pic .pill { position: absolute; top: 12px; left: 12px; background: color-mix(in srgb, var(--bg) 78%, transparent); color: var(--text); }
.item-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item-body h3 { font-size: 18px; font-weight: 600; }
.item-body p { color: var(--muted); font-size: 14px; flex: 1; }
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.item-foot .price { font-size: 19px; }
.item.off .item-pic, .item.off h3 { opacity: .55; }

.gate { max-width: 470px !important; margin: 7vh auto 0 !important; text-align: center; display: grid; justify-items: center; gap: 14px; padding: 40px 34px; }
.gate .icon-tile { width: 68px; height: 68px; border-radius: 20px; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 50%, transparent); }
.gate .icon-tile .icon { width: 34px; height: 34px; }
.gate h1 { font-size: 30px; }
.gate p { color: var(--muted); }
.gate .btn { margin-top: 8px; }
.gate-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; text-align: left; color: var(--muted); font-size: 14px; }
.gate-list li { display: flex; gap: 10px; align-items: center; } .gate-list .icon { color: var(--ok); width: 17px; height: 17px; }

/* ============ Sledovat ============ */
.watch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.player { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; display: grid; place-items: center; position: relative; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .off { color: var(--muted); text-align: center; padding: 24px; display: grid; gap: 10px; justify-items: center; }
.player .off b { color: var(--text); font-family: var(--font-head); font-size: 20px; }
.watch-side { display: grid; gap: 14px; }
.meter b.n { font-family: var(--font-head); font-size: 38px; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 10px; }
.meter b.n .icon { width: 28px; height: 28px; color: var(--accent); }
.meter .bar { margin: 18px 0 8px; }
.meter .next { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Když odejdeš jinam, přehrávač zůstane hrát v rohu. */
.watch.mini { position: fixed; right: 20px; bottom: 20px; width: 320px; z-index: 30; margin: 0; }
.watch.mini .page-head, .watch.mini .watch-side { display: none; }
.watch.mini .watch-grid { display: block; }
.watch.mini .player { box-shadow: 0 16px 60px rgba(0, 0, 0, .6); border-color: var(--accent-line); }
.mini-bar { display: none; }
.watch.mini .mini-bar { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; gap: 6px; }
.mini-bar .icon-btn { background: color-mix(in srgb, var(--bg) 85%, transparent); width: 34px; height: 34px; color: var(--text); }

/* ============ Rozvrh ============ */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day { border: 1px solid var(--line); border-radius: 16px; background: var(--panel-glass); padding: 14px 12px; min-height: 230px; display: flex; flex-direction: column; gap: 10px; }
.day.today { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel-glass)); }
.day-head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-head); font-weight: 600; }
.day-head small { color: var(--muted); font-family: var(--font-text); font-weight: 400; font-size: 13px; }
.day.today .day-head { color: var(--accent); }
.slot { border-radius: 12px; background: var(--accent-soft); padding: 12px; display: grid; gap: 4px; }
.slot time { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--accent); font-variant-numeric: tabular-nums; }
.slot b { font-weight: 600; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.slot small { color: var(--muted); font-size: 12.5px; }
.slot .slot-edit { display: flex; gap: 6px; margin-top: 4px; }
.day .free { color: var(--muted); font-size: 13.5px; margin: auto; opacity: .7; }

/* ============ Profil a správa ============ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-bottom: 18px; }
.stat { display: flex; align-items: center; gap: 16px; padding: 20px; }
.stat-value { font-family: var(--font-head); font-weight: 700; font-size: 28px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 13.5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.order { align-items: flex-start; flex-wrap: wrap; }
.order .mr-text { flex: 1 1 200px; }
.order .acts { display: flex; gap: 8px; align-items: center; }
.quote { margin-top: 4px; font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.row-acts { display: flex; gap: 6px; }

/* ============ Okna a hlášky ============ */
.modal { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid var(--line); border-radius: 22px; padding: 26px; background: var(--panel); color: var(--text); }
.modal::backdrop { background: rgba(5, 4, 9, .7); backdrop-filter: blur(5px); }
.modal[open] { animation: screen-in .22s ease both; }
.modal h2 { font-size: 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.sum { display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--text) 4%, transparent); }
.sum div { display: flex; justify-content: space-between; color: var(--muted); }
.sum div b { color: var(--text); font-variant-numeric: tabular-nums; }
.icons-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.icons-pick label { cursor: pointer; } .icons-pick input { position: absolute; opacity: 0; }
.icons-pick i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line); color: var(--muted); }
.icons-pick input:checked + i { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.icons-pick input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.toasts { position: fixed; right: 20px; top: 90px; z-index: 100; display: grid; gap: 10px; justify-items: end; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); font-weight: 600; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); animation: screen-in .25s ease both; max-width: min(400px, calc(100vw - 40px)); }
.toast .icon { color: var(--accent); } .toast.ok .icon { color: var(--ok); } .toast.err .icon { color: var(--crit); }
.loading { display: grid; place-items: center; min-height: 40vh; }
.loading::after { content: ""; width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Menší obrazovky ============ */
@media (max-width: 1080px) {
  .two { grid-template-columns: minmax(0, 1fr); }
  .watch-grid { grid-template-columns: minmax(0, 1fr); }
  .week { grid-template-columns: minmax(0, 1fr); }
  .day { min-height: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: start; gap: 0 10px; }
  .day-head { flex-direction: column; grid-row: 1 / span 9; } .day .slot, .day .free { grid-column: 2; margin: 0; } .day .slot + .slot { margin-top: 8px; }
}
@media (max-width: 900px) {
  .topbar { gap: 10px; } .brand-name { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-art { max-width: 340px; order: -1; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .steps::before, .steps::after { left: 27px; right: auto; top: 10px; bottom: 60px; width: 2px; height: auto; }
  .steps::after { transform: scaleY(0); transform-origin: top; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 35%, transparent)); }
  .steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; padding: 0; }
  .steps .n { grid-row: span 2; } .steps h3 { margin: 2px 0 4px; } .steps p { max-width: none; }
}
@media (max-width: 760px) {
  .glow { width: 700px; height: 700px; } .glow-a { top: -400px; left: -300px; } .glow-b { bottom: -420px; right: -300px; }
  .main { padding: 88px 16px 0; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  /* backdrop-filter by z lišty udělal „obal“ pro pevné menu dole, proto tu není */
  .topbar { top: 10px; left: 12px; right: 12px; width: auto; max-width: none; margin: 0; height: 56px; justify-content: space-between; border-radius: 18px; backdrop-filter: none; background: var(--panel); }
  .brand-name { display: block; }
  .nav { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; padding: 5px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: 0 10px 40px rgba(0, 0, 0, .55); }
  .nav-item { flex: 1; min-width: 0; flex-direction: column; justify-content: center; gap: 3px; height: 52px; padding: 0 2px; font-size: 11.5px; position: relative; border-radius: 15px; }
  .nav-item > .icon { display: block; }
  .nav-count, .nav-live { position: absolute; top: 5px; left: calc(50% + 10px); } .nav-count { font-size: 10px; padding: 0 5px; }
  .hero-art { max-width: 250px; } .plus { padding: 6px 11px; font-size: 14px; } .plus:nth-of-type(1) { top: 2%; right: -14%; } .plus:nth-of-type(2) { top: 54%; left: -16%; } .plus:nth-of-type(3) { bottom: 10%; right: -8%; }
  .hero-sub { font-size: 16.5px; } .hero-actions .btn { flex: 1; }
  .sec { margin-top: 68px; }
  .t-chat { grid-template-columns: minmax(0, 1fr); flex-basis: 100%; } .tile { padding: 24px 22px; }
  .next-row, .next-row.first { padding: 14px; gap: 14px; flex-wrap: wrap; } .first .soon { width: 100%; font-size: 18px; } .first .date { width: 64px; height: 64px; } .first .date b { font-size: 24px; } .first .nr-text b { font-size: 20px; }
  .card { padding: 18px; } .item { padding: 0; } .gate { padding: 32px 22px; }
  .row-3 { grid-template-columns: 1fr 1fr; }
  .watch.mini { width: 210px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); }
  .toasts { top: 76px; right: 16px; left: 16px; }
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
}
.active-left { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 11px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); font-size: 14px; }
.active-left .icon { width: 17px; height: 17px; color: var(--accent); } .active-left b { margin-left: auto; font-variant-numeric: tabular-nums; }
.active-left.low { background: rgba(255, 180, 84, .14); } .active-left.low .icon { color: #ffb454; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
