/* =====================================================================
 * XRPIN demo – style.css
 * Tmavá, futuristická, „organická“ estetika. Bez externích fontů.
 * ===================================================================== */
:root {
  --bg: #03050a;
  --ink: #e6f3ff;
  --muted: rgba(200, 225, 245, 0.62);
  --line: rgba(160, 220, 255, 0.16);
  --glass: rgba(8, 14, 26, 0.72);
  --glass-2: rgba(12, 20, 36, 0.9);
  --accent: #7fffe6;
  --accent-2: #ff4d8d;
  --warn: #ffd23f;
  --bad: #ff5c6c;
  --ok: #5cffa8;
  --mood: #7fffe6;
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--font); }
body { -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.35; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono, code, pre { font-family: var(--mono); }
code { font-size: 0.92em; word-break: break-all; }
.warn { color: var(--warn); }
.bad { color: var(--bad); }

/* ---------------- Vrstvy ---------------- */
#field, #fx { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
#field { z-index: 0; image-rendering: auto; }
#fx { z-index: 2; pointer-events: none; }
#board { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }

/* ---------------- Karty zpráv ---------------- */
.msg {
  --c: var(--mood);
  position: absolute; left: 0; top: 0;
  max-width: 230px; padding: 8px 11px 9px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(10, 16, 30, 0.72), rgba(4, 8, 16, 0.55));
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  pointer-events: auto; cursor: pointer;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  transition: border-color .2s, box-shadow .2s;
  user-select: none;
}
.msg:hover, .msg.selected { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 26px color-mix(in srgb, var(--c) 45%, transparent); opacity: 1 !important; filter: none !important; }
.msg.match { box-shadow: 0 0 0 2px var(--accent), 0 0 30px rgba(127, 255, 230, 0.5); }
.msg-meta { display: flex; gap: 6px; align-items: baseline; font-size: 10.5px; color: var(--muted); margin-bottom: 3px; font-family: var(--mono); }
.msg-meta .who { color: color-mix(in srgb, var(--c) 75%, white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.msg-meta .age { margin-left: auto; opacity: .7; }
.msg-meta .reply-mark { color: var(--c); }
.msg-text { font-size: 13px; line-height: 1.32; color: color-mix(in srgb, var(--c) 35%, white); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.z2 { max-width: 260px; } .msg.z2 .msg-text { font-size: 15.5px; }
.msg.z3 { max-width: 300px; } .msg.z3 .msg-text { font-size: 19px; font-weight: 500; }
.msg.z4 { max-width: 350px; padding: 11px 14px 12px; } .msg.z4 .msg-text { font-size: 25px; font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; }
.msg.tier-plain { border-style: dashed; }
.msg.is-reply { border-radius: 4px 12px 12px 12px; }
.msg.newborn { box-shadow: 0 0 34px color-mix(in srgb, var(--c) 40%, transparent); }

/* Efekty zvýraznění */
.fx-glow .msg-text, .detail-text.fx-glow { text-shadow: 0 0 10px var(--c), 0 0 22px color-mix(in srgb, var(--c) 60%, transparent); }
.fx-pulse { animation: pulse 2.4s ease-in-out infinite; }
.msg.fx-pulse { animation: none; }
.msg.fx-pulse .msg-text { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { text-shadow: 0 0 4px color-mix(in srgb, var(--c) 40%, transparent); } 50% { text-shadow: 0 0 18px var(--c), 0 0 34px var(--c); } }
.fx-shimmer .msg-text, .detail-text.fx-shimmer {
  background: linear-gradient(100deg, color-mix(in srgb, var(--c) 55%, white) 20%, #fff 40%, var(--c) 55%, color-mix(in srgb, var(--c) 55%, white) 75%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 3.2s linear infinite;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -130% 0; } }
.msg.fx-nova { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 40px color-mix(in srgb, var(--c) 55%, transparent), inset 0 0 24px color-mix(in srgb, var(--c) 25%, transparent); }
.msg.fx-nova::before {
  content: ""; position: absolute; inset: -6px; border-radius: 16px; z-index: -1;
  background: conic-gradient(from 0deg, transparent, var(--c), transparent 30%, transparent 60%, var(--c), transparent);
  filter: blur(8px); opacity: .55; animation: spin 6s linear infinite;
}
.fx-nova .msg-text, .detail-text.fx-nova { color: #fff; text-shadow: 0 0 8px var(--c), 0 0 26px var(--c); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- HUD ---------------- */
#hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 18px;
  padding: 12px 18px 22px;
  background: linear-gradient(to bottom, rgba(3, 5, 10, 0.85), rgba(3, 5, 10, 0));
  pointer-events: none;
}
#hud > * { pointer-events: auto; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: 0.06em; }
.logo b { color: var(--accent); text-shadow: 0 0 12px var(--accent); }
.tag { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.hud-ledger { display: flex; align-items: center; gap: 12px; font-size: 12.5px; font-family: var(--mono); min-width: 0; flex-wrap: wrap; }
.badge { padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.badge.live { background: rgba(255, 77, 141, 0.16); color: var(--accent-2); border: 1px solid rgba(255, 77, 141, 0.5); }
.badge.live::before { content: "●"; margin-right: 5px; animation: blink 1.4s infinite; }
.badge.travel { background: rgba(127, 255, 230, 0.12); color: var(--accent); border: 1px solid rgba(127, 255, 230, 0.45); }
@keyframes blink { 50% { opacity: .25; } }
.ledger-idx { background: none; border: 0; padding: 0; font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--ink); border-bottom: 1px dashed var(--line); }
.ledger-idx:hover { color: var(--accent); }
.hash { color: var(--accent); letter-spacing: 0.04em; }
.hash.decay { animation: decay 1.1s ease-out; }
@keyframes decay { 0% { opacity: 0; filter: blur(4px); letter-spacing: 0.4em; } 60% { opacity: 1; filter: blur(0); } 100% { letter-spacing: 0.04em; } }
.hud-actions { display: flex; gap: 6px; }
.hud-actions button, .ghost, .tl-transport button, .tl-jump button, .live-btn {
  background: rgba(14, 22, 38, 0.75); border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px; font-size: 13px;
  transition: border-color .15s, background .15s;
}
.hud-actions button:hover, .ghost:hover, .tl-transport button:hover { border-color: var(--accent); }
.hud-actions button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.primary { background: linear-gradient(135deg, #1de9c8, #5b8cff); color: #031018 !important; border: 0 !important; font-weight: 700; border-radius: 10px; padding: 8px 14px; }
.hud-actions button.primary { background: linear-gradient(135deg, #1de9c8, #5b8cff); }
.primary:hover { filter: brightness(1.12); }
.primary.big { width: 100%; padding: 12px; font-size: 15px; }
.hud-status { grid-column: 1 / -1; display: flex; gap: 12px; font-size: 11px; margin-top: -6px; }
.net::before { content: "●"; margin-right: 5px; color: var(--warn); }
.net.ok::before { color: var(--ok); }
.net { color: var(--muted); }

/* ---------------- Časová osa ---------------- */
#timeline {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 18px 18px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(3, 5, 10, 0.92) 55%, rgba(3, 5, 10, 0));
}
.tl-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.live-btn { font-weight: 700; color: var(--accent); min-width: 118px; }
.live-btn.on { color: var(--accent-2); border-color: rgba(255, 77, 141, 0.55); }
.tl-transport { display: flex; align-items: center; gap: 4px; }
.tl-transport button { min-width: 36px; padding: 6px 8px; font-size: 15px; line-height: 1; }
.speed { font-family: var(--mono); font-size: 12px; color: var(--accent); min-width: 84px; padding-left: 6px; }
.tl-readout { font-family: var(--mono); font-size: 13px; display: flex; gap: 8px; align-items: baseline; }
.tl-readout strong { font-size: 16px; }
.tl-jump { margin-left: auto; display: flex; gap: 6px; }
.tl-jump input { background: rgba(14, 22, 38, 0.75); border: 1px solid var(--line); border-radius: 10px; padding: 5px 8px; font-size: 12.5px; }
.tl-tracks { position: relative; display: grid; gap: 5px; }
#tlOverview, #tlZoom { width: 100%; display: block; border-radius: 8px; background: rgba(10, 16, 28, 0.55); border: 1px solid var(--line); touch-action: none; }
#tlOverview { height: 38px; cursor: crosshair; }
#tlZoom { height: 30px; cursor: grab; }
#tlZoom:active { cursor: grabbing; }
.tl-tip { position: absolute; transform: translate(-50%, -100%); background: var(--glass-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; font-size: 11px; font-family: var(--mono); pointer-events: none; white-space: nowrap; }
body.mode-travel #field { filter: saturate(0.85); }

/* ---------------- Panely a modály ---------------- */
.panel { position: fixed; z-index: 20; background: var(--glass-2); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: flex; flex-direction: column; }
.panel.side { top: 70px; bottom: 150px; width: min(410px, calc(100vw - 24px)); border-radius: var(--radius); }
.panel.right { right: 12px; }
.panel.left { left: 12px; width: min(370px, calc(100vw - 24px)); }
.panel header, .modal-card header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); gap: 10px; }
.panel h2, .modal-card h2 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: 0.02em; }
.close { background: none; border: 0; font-size: 22px; line-height: 1; padding: 2px 6px; color: var(--muted); }
.close:hover { color: var(--ink); }
.panel-body { padding: 14px 16px 18px; overflow: auto; flex: 1; }
.modal { position: fixed; inset: 0; z-index: 30; background: rgba(1, 3, 8, 0.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden], .panel[hidden] { display: none; }
.modal-card { background: var(--glass-2); border: 1px solid var(--line); border-radius: var(--radius); width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6); }
.modal-card.wide { width: min(980px, 100%); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
#wallet { z-index: 40; }
.link { background: none; border: 0; color: var(--accent); padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* Detail */
.parent-link { display: block; width: 100%; text-align: left; background: rgba(127, 255, 230, 0.06); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 12px; font-size: 13px; }
.detail-text { --c: var(--mood); font-size: 19px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); color: color-mix(in srgb, var(--c) 35%, white); }
.detail-text.z3 { font-size: 23px; } .detail-text.z4 { font-size: 28px; font-weight: 600; }
.detail-text.is-hidden { font-size: 14px; display: flex; gap: 10px; align-items: center; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.detail-actions button { font-size: 12.5px; padding: 7px 10px; }
.detail-actions button:not(.primary) { background: rgba(14, 22, 38, 0.75); border: 1px solid var(--line); border-radius: 10px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 13px; margin: 8px 0 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv .addr, .kv .hash { font-family: var(--mono); font-size: 11.5px; }
a.hash { color: var(--accent); word-break: break-all; }
.thread h3, .panel-body h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 18px 0 8px; font-weight: 600; }
.thread-list, .results { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.thread-list li { padding-left: calc(var(--d) * 16px); position: relative; }
.thread-list li::before { content: ""; position: absolute; left: calc(var(--d) * 16px - 8px); top: 0; bottom: 50%; width: 6px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); border-bottom-left-radius: 6px; }
.thread-list li[style*="--d: 0"]::before, .thread-list li[style*="--d:0"]::before { display: none; }
.thread-item, .result { --c: var(--mood); display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; width: 100%; text-align: left; padding: 7px 9px; border-radius: 9px; background: rgba(255, 255, 255, 0.03); border: 1px solid transparent; font-size: 12.5px; }
.thread-item:hover, .result:hover { border-color: var(--line); background: rgba(255, 255, 255, 0.06); }
.thread-item.current { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.thread-item .who, .result .who { color: color-mix(in srgb, var(--c) 70%, white); font-family: var(--mono); font-size: 11px; }
.thread-item .txt, .result .txt { grid-column: 1 / -1; overflow-wrap: anywhere; }
.thread-item .when, .result .when { grid-column: 2; grid-row: 1; justify-self: end; color: var(--muted); font-size: 10.5px; font-family: var(--mono); }
.detail-mod { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.detail-mod p { flex-basis: 100%; margin: 4px 0 0; }
.ghost { font-size: 12.5px; }
details.raw, details.tx-item { margin-top: 12px; font-size: 12px; }
details summary { cursor: pointer; color: var(--muted); }
pre { background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 11px; overflow: auto; max-height: 320px; white-space: pre-wrap; word-break: break-all; }
pre.decoded { border-color: rgba(127, 255, 230, 0.3); }

/* Hledání */
#sQuery { width: 100%; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.chk { display: flex; gap: 8px; align-items: center; font-size: 12.5px; margin: 10px 0 6px; color: var(--muted); }
.results { margin-top: 10px; }

/* Composer */
.reply-to { margin: 10px 16px 0; padding: 8px 10px; border-radius: 10px; background: rgba(127, 255, 230, 0.06); border: 1px solid var(--line); font-size: 13px; display: flex; gap: 8px; align-items: baseline; }
.reply-to q { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; padding: 14px 16px 18px; overflow: auto; }
.field { display: grid; gap: 6px; font-size: 13px; margin-bottom: 4px; }
.field textarea, .field input { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; resize: vertical; font-size: 15px; }
.counter { font-size: 11.5px; color: var(--muted); font-family: var(--mono); margin: 2px 0 12px; }
.counter .warn { color: var(--warn); } .counter .bad { color: var(--bad); }
fieldset { border: 0; padding: 0; margin: 12px 0 0; }
legend { font-size: 13px; margin-bottom: 6px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { display: grid; gap: 1px; padding: 7px 11px; border-radius: 10px; background: rgba(14, 22, 38, 0.75); border: 1px solid var(--line); min-width: 62px; text-align: left; }
.opt.active { border-color: var(--accent); background: rgba(127, 255, 230, 0.1); }
.opt-main { font-weight: 650; font-size: 13px; }
.opt-price { font-size: 10.5px; color: var(--muted); font-family: var(--mono); }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.swatch { --c: #fff; width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; background: var(--c); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 45%, transparent); padding: 0; }
.swatch.active { border-color: #fff; outline: 2px solid var(--c); outline-offset: 2px; }
.sw-default { width: auto; padding: 0 10px; border-radius: 99px; background: linear-gradient(90deg, #1de9c8, #7c5cff, #ff3ea5); color: #031018; font-size: 11px; font-weight: 700; box-shadow: none; }
.swatch-pick { width: 34px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: none; padding: 0; }
.budget { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.budget-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 8px; }
.budget-head strong { font-size: 20px; font-family: var(--mono); color: var(--accent); }
.budget-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, 0.06); position: relative; box-shadow: inset 0 0 0 1px var(--line); }
.budget-bar.over { box-shadow: 0 0 0 2px var(--bad); }
.budget-bar::after { content: "1 XRP"; position: absolute; right: 6px; top: -1px; font-size: 10px; color: rgba(255, 255, 255, 0.5); font-family: var(--mono); }
.seg-part { height: 100%; transition: width .2s; }
.budget-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 11px; font-family: var(--mono); color: var(--muted); }
.leg i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.budget-note { margin-top: 6px; }
.preview-wrap { margin: 12px 0; }
.preview-stage { margin-top: 6px; min-height: 120px; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 18px;
  background: radial-gradient(ellipse at 30% 30%, rgba(40, 90, 120, 0.5), transparent 60%), radial-gradient(ellipse at 70% 80%, rgba(120, 40, 110, 0.45), transparent 60%), #05080f; overflow: hidden; }
.msg.preview { position: relative; pointer-events: none; }
.errors { list-style: none; padding: 0; margin: 0 0 10px; font-size: 12px; color: var(--bad); }

/* Peněženka */
.wallet-body { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 16px; }
.qr { display: grid; gap: 6px; justify-items: center; }
.qr canvas { border-radius: 10px; }
.wallet-status { margin: 0 16px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); font-size: 13px; }
.wallet-status.pending { color: var(--warn); }
.wallet-status.ok { color: var(--ok); background: rgba(92, 255, 168, 0.08); }
.chip { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; letter-spacing: 0.03em; vertical-align: middle; }
.chip.ok { background: rgba(92, 255, 168, 0.15); color: var(--ok); }
.chip.warn { background: rgba(255, 210, 63, 0.15); color: var(--warn); }
.chip.bad { background: rgba(255, 92, 108, 0.15); color: var(--bad); }

/* Nastavení, inspektor, nápověda */
.set-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.set-row label { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.set-row select { background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; max-width: 100%; }
.set-row p { margin: 6px 0 0; }
.bl-item { display: flex; gap: 10px; align-items: center; font-size: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
th, td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-family: var(--mono); }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.help p { line-height: 1.55; font-size: 14px; }
.keys { list-style: none; padding: 0; font-size: 13px; display: grid; gap: 6px; }
kbd { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: rgba(255, 255, 255, 0.05); }
.tx-item summary { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 0; }

/* Toasty a chyby */
#toasts { position: fixed; z-index: 50; left: 50%; bottom: 160px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: var(--glass-2); border: 1px solid var(--accent); color: var(--ink); padding: 9px 16px; border-radius: 99px; font-size: 13px; box-shadow: 0 0 30px rgba(127, 255, 230, 0.25); animation: tin .3s ease-out; transition: opacity .5s, transform .5s; }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }
.fatal { position: fixed; inset: auto 16px 50% 16px; z-index: 99; background: #2a0a12; border: 1px solid var(--bad); padding: 16px; border-radius: 12px; text-align: center; }

/* ---------------- Responzivita ---------------- */
@media (max-width: 860px) {
  .composer-grid { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr; }
  .tl-jump { margin-left: 0; }
}
@media (max-width: 700px) {
  .hide-sm { display: none; }
  #hud { grid-template-columns: 1fr auto; padding: 10px 12px 18px; gap: 6px 10px; }
  .hud-ledger { grid-column: 1 / -1; grid-row: 2; gap: 8px; font-size: 11.5px; }
  .tag { display: none; }
  .hud-status { display: none; }
  #timeline { padding: 12px 10px calc(8px + env(safe-area-inset-bottom)); }
  .tl-controls { gap: 8px; }
  .tl-readout { font-size: 11.5px; }
  .tl-jump { flex: 1; } .tl-jump input { flex: 1; min-width: 0; width: auto; }
  .tl-transport button { min-width: 32px; padding: 6px 6px; }
  .speed { min-width: 0; }
  .live-btn { min-width: 0; }
  #tlOverview { height: 30px; } #tlZoom { height: 24px; }
  .panel.side { top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-height: 72vh; border-radius: var(--radius) var(--radius) 0 0; }
  .wallet-body { grid-template-columns: 1fr; justify-items: center; }
  .msg { max-width: 190px; }
  .msg.z4 .msg-text { font-size: 20px; }
  .msg.z3 .msg-text { font-size: 16px; }
}

/* ---------------- Omezený pohyb ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}
body.reduced *, body.reduced *::before, body.reduced *::after { animation: none !important; transition: none !important; }
