/* NoFaceMatch – vlastní vizuální styl: "galerie siluet".
   Tmavá švestková noc, krémové rámy jako galerijní tisky, limetkový akcent. */
:root {
  --ink: #17131c;
  --ink-2: #221c29;
  --ink-3: #2f2738;
  --line: #3d3347;
  --cream: #f3ece1;
  --cream-2: #e4dacb;
  --mute: #a99fb3;
  --lime: #c9f26b;
  --lime-ink: #1e2a06;
  --plum: #8b5cf6;
  --rose: #ff7a8a;
  --gold: #f2c14e;
  --radius: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--cream); font: 15px/1.5 var(--sans); }
body { overscroll-behavior: none; }
a { color: var(--lime); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(30px, 7vw, 46px); line-height: 1.05; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.mute { color: var(--mute); }
.small { font-size: 13px; }
#app { max-width: 520px; margin: 0 auto; min-height: 100%; padding: 16px 16px calc(96px + var(--safe-b)); }
.no-tabs #app { padding-bottom: 32px; }

/* tlačítka a formuláře */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 22px; font: 600 15px var(--sans); cursor: pointer; text-decoration: none; transition: transform .12s, background .2s; }
.btn:active { transform: scale(.97); }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-ghost { background: transparent; color: var(--cream); border: 1.5px solid var(--line); }
.btn-danger { background: transparent; color: var(--rose); border: 1.5px solid #5a2b35; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
label { display: block; font-size: 13px; color: var(--mute); margin: 14px 0 6px; }
input, select, textarea { width: 100%; background: var(--ink-2); color: var(--cream); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px; font: 15px var(--sans); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--lime); }
textarea { resize: vertical; min-height: 80px; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--cream); font-size: 14px; margin: 12px 0; }
.check input { width: 20px; height: 20px; flex: none; accent-color: var(--lime); margin-top: 2px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--ink-3); color: var(--cream-2); }
.pill.lime { background: var(--lime); color: var(--lime-ink); }
.pill.gold { background: var(--gold); color: #3a2a00; }
.pill.rose { background: #4a2029; color: var(--rose); }
.topbar { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 14px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.brand i { width: 26px; height: 26px; border-radius: 8px; background: url(/icons/icon-192.png) center/cover; display: inline-block; }
.seg { display: flex; background: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button { flex: 1; border: 0; background: transparent; color: var(--mute); border-radius: 999px; padding: 9px; font: 600 13px var(--sans); cursor: pointer; }
.seg button.on { background: var(--cream); color: var(--ink); }

/* úvodní stránka */
.hero { padding: 36px 0 8px; }
.hero h1 em { font-style: italic; color: var(--lime); }
.frames { position: relative; height: 300px; margin: 18px 0 26px; }
.frames .f { position: absolute; width: 46%; aspect-ratio: 3/4; background: var(--cream); padding: 8px 8px 26px; border-radius: 6px; box-shadow: 0 20px 40px #0008; }
.frames .f div { width: 100%; height: 100%; border-radius: 3px; background-size: cover; background-position: center; }
.frames .f:nth-child(1) { left: 2%; top: 30px; transform: rotate(-7deg); }
.frames .f:nth-child(2) { left: 27%; top: 0; transform: rotate(2deg); z-index: 2; }
.frames .f:nth-child(3) { right: 2%; top: 40px; transform: rotate(8deg); }
.how { display: grid; gap: 10px; margin: 18px 0 24px; }
.how div { display: flex; gap: 12px; align-items: flex-start; }
.how b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink-3); color: var(--lime); display: grid; place-items: center; font-family: var(--serif); }

/* karta profilu = galerijní tisk */
.deck { position: relative; height: calc(100vh - 250px - var(--safe-b)); height: calc(100dvh - 250px - var(--safe-b)); min-height: 360px; max-height: 640px; margin-top: 4px; }
.print { position: absolute; inset: 0; background: var(--cream); color: var(--ink); border-radius: 18px; padding: 10px 10px 0; box-shadow: 0 24px 50px #000a; display: flex; flex-direction: column; touch-action: pan-y; user-select: none; -webkit-user-select: none; will-change: transform; }
.print.behind { transform: scale(.95) translateY(14px); filter: brightness(.8); }
.print .shot { position: relative; flex: 1; border-radius: 12px; overflow: hidden; background: #ddd center/cover no-repeat; }
.shot .guard { position: absolute; inset: 0; } /* zachytí pravé tlačítko a dlouhý stisk */
.shot .bars { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; z-index: 2; }
.shot .bars i { flex: 1; height: 3px; border-radius: 3px; background: #ffffff55; }
.shot .bars i.on { background: #fff; }
.shot .facebadge { position: absolute; left: 10px; top: 20px; z-index: 2; }
.shot .stamp { position: absolute; z-index: 3; top: 40px; padding: 6px 14px; border: 3px solid; border-radius: 10px; font: 800 22px var(--sans); letter-spacing: .08em; opacity: 0; transform: rotate(-12deg); }
.stamp.like { left: 20px; color: var(--lime); border-color: var(--lime); background: #1e2a06aa; }
.stamp.pass { right: 20px; color: var(--rose); border-color: var(--rose); background: #4a2029aa; transform: rotate(12deg); }
.stamp.super { left: 50%; top: auto; bottom: 30px; transform: translateX(-50%); color: var(--gold); border-color: var(--gold); background: #3a2a00aa; }
.plaque { padding: 12px 6px 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.plaque h3 { font-size: 22px; margin: 0; color: var(--ink); }
.plaque .meta { font-size: 13px; color: #6a6070; }
.plaque .bio { font-size: 13px; color: #3c3442; margin-top: 4px; }
.plaque .flag { border: 0; background: transparent; color: #8a8090; font-size: 20px; cursor: pointer; padding: 4px; }
.actions { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 18px; }
.act { width: 62px; height: 62px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--ink-2); color: var(--cream); font-size: 24px; cursor: pointer; display: grid; place-items: center; transition: transform .12s; }
.act:active { transform: scale(.9); }
.act.like { width: 74px; height: 74px; background: var(--lime); color: var(--lime-ink); border: 0; font-size: 30px; }
.act.super { color: var(--gold); }
.act.pass { color: var(--rose); }
.act small { display: block; font-size: 10px; font-weight: 600; margin-top: -4px; }
.empty { text-align: center; padding: 50px 10px; }
.empty .ico { font-size: 54px; margin-bottom: 8px; }

/* spodní menu */
#tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--safe-b)); width: min(488px, calc(100% - 24px)); display: flex; background: #221c29ee; backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 999px; padding: 6px; z-index: 10; }
#tabs a { flex: 1; text-align: center; color: var(--mute); text-decoration: none; font-size: 11px; font-weight: 600; padding: 6px 0; border-radius: 999px; }
#tabs a .ti { display: block; font-size: 18px; line-height: 1.2; }
#tabs a.on { color: var(--ink); background: var(--cream); }
#tabs a .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); margin-left: 3px; vertical-align: top; }

/* mřížky fotek */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { position: relative; aspect-ratio: 3/4; border-radius: 12px; background: var(--ink-3) center/cover; overflow: hidden; }
.tile .st { position: absolute; left: 6px; bottom: 6px; }
.tile .x { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #000a; color: #fff; cursor: pointer; }
.tile.add { display: grid; place-items: center; border: 1.5px dashed var(--line); background: transparent; color: var(--mute); font-size: 28px; cursor: pointer; }
.tile.locked { filter: blur(14px) saturate(.6); }
.lockwrap { position: relative; }
.lockwrap .over { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }

/* zprávy */
.list a { display: flex; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); color: var(--cream); text-decoration: none; }
.ava { width: 54px; height: 54px; border-radius: 14px; background: var(--ink-3) center/cover; flex: none; }
.list .t { flex: 1; min-width: 0; }
.list .t div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.newmatches { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; }
.newmatches a { text-align: center; font-size: 12px; color: var(--cream); text-decoration: none; }
.newmatches .ava { width: 70px; height: 92px; border: 2px solid var(--lime); }
.chat { display: flex; flex-direction: column; height: calc(100vh - 32px); height: calc(100dvh - 32px); }
.chat .head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.chat .head .back { font-size: 22px; text-decoration: none; color: var(--cream); }
.msgs { flex: 1; overflow-y: auto; padding: 14px 0; display: flex; flex-direction: column; gap: 6px; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 18px; background: var(--ink-3); align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--lime); color: var(--lime-ink); }
.bubble .tm { display: block; font-size: 10px; opacity: .6; margin-top: 2px; }
.composer { display: flex; gap: 8px; padding-top: 8px; }
.composer input { flex: 1; border-radius: 999px; }

/* modální okna */
.modal { position: fixed; inset: 0; background: #000b; display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet { width: 100%; max-width: 520px; background: var(--ink-2); border-radius: 24px 24px 0 0; padding: 22px 18px calc(22px + var(--safe-b)); max-height: 92vh; overflow-y: auto; }
.matchpop { text-align: center; }
.matchpop h2 { font-size: 40px; color: var(--lime); font-style: italic; }

/* nahrávání s ořezem hlavy */
.cropper { position: relative; border-radius: 14px; overflow: hidden; background: #000; max-height: 50vh; }
.cropper img { display: block; width: 100%; max-height: 50vh; object-fit: contain; }
.cropper .cut { position: absolute; left: 0; right: 0; top: 0; background: repeating-linear-gradient(45deg, #000d 0 10px, #222d 10px 20px); border-bottom: 2px dashed var(--lime); }
.cropper .cut span { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--lime); font-weight: 600; }
input[type=range] { padding: 0; accent-color: var(--lime); }

#toast { position: fixed; left: 50%; bottom: calc(100px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; z-index: 30; max-width: 90vw; text-align: center; }
#toast.on { opacity: 1; transform: translateX(-50%); }
.prem { background: linear-gradient(160deg, #2c2238, #1c1622); border: 1px solid #4d3e5c; }
.prem ul { padding-left: 0; list-style: none; }
.prem li { padding: 6px 0 6px 28px; position: relative; }
.prem li::before { content: '✦'; position: absolute; left: 4px; color: var(--gold); }
.price { font-family: var(--serif); font-size: 40px; font-weight: 700; }
.legal h3 { margin-top: 18px; }
.admin-item { display: flex; gap: 12px; align-items: flex-start; }
.admin-item .tile { width: 110px; flex: none; }
#tabs[hidden], [hidden] { display: none !important; }

.heroprint { background: var(--cream); padding: 10px 10px 0; border-radius: 18px; margin: 18px 0 24px; box-shadow: 0 24px 50px #000a; transform: rotate(-1.5deg); }
.heroprint .shot { aspect-ratio: 3/4; border-radius: 12px; background: center/cover no-repeat; position: relative; }
.heroprint .cap { color: #3c3442; font-family: var(--serif); font-size: 16px; text-align: center; padding: 10px 0 12px; }
.print .shot { background-size: contain; background-color: #e9dfd1; background-position: center; } /* celá postava, nic se neořízne */

/* ===================================================================
   GLASS THEME – moderní průhledný styl v barvách loga
   (tmavé víno, neonově růžovo-červená záře, matné sklo)
   =================================================================== */
:root {
  --ink: #0b0609;
  --ink-2: rgba(255, 255, 255, 0.06);
  --ink-3: rgba(255, 255, 255, 0.10);
  --line: rgba(255, 255, 255, 0.14);
  --cream: #fff4f6;
  --cream-2: #f3d9df;
  --mute: #c5a9b2;
  --lime: #ff3d7f;          /* hlavní akcent = růžová z loga */
  --lime-ink: #ffffff;
  --rose: #ff6b81;
  --gold: #ffc15e;
  --grad: linear-gradient(135deg, #ff2e63 0%, #ff5d8f 55%, #ff9ab8 100%);
  --glow: 0 0 24px rgba(255, 46, 99, .55), 0 0 60px rgba(255, 46, 99, .25);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(30, 10, 18, 0.55);
  --blur: blur(18px) saturate(160%);
  --serif: 'Poppins', 'Inter', system-ui, sans-serif;
}
html, body { background: var(--ink); }
body::before {
  content: ''; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 15% 10%, rgba(255, 46, 99, .35), transparent 70%),
    radial-gradient(45% 40% at 90% 30%, rgba(180, 20, 70, .35), transparent 70%),
    radial-gradient(50% 45% at 40% 95%, rgba(255, 93, 143, .22), transparent 70%),
    #0b0609;
}
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }
h1 em, .hero h1 em, .matchpop h2 { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand { font-family: var(--serif); font-style: italic; }
.brand i { border-radius: 9px; box-shadow: var(--glow); }

/* sklo všude */
.card, .sheet, #tabs, .seg, .pill, input, select, textarea, .btn-ghost, .act {
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line);
}
.card { border-radius: 24px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 40px rgba(0,0,0,.35); }
.sheet { background: var(--glass-strong); border-bottom: 0; }
.modal { background: rgba(5, 2, 4, .6); backdrop-filter: blur(6px); }
input:focus, select:focus, textarea:focus { border-color: #ff5d8f; box-shadow: 0 0 0 3px rgba(255, 61, 127, .18); }
select option { background: #1a0c12; }

/* tlačítka */
.btn-lime { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn-lime:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--cream); }
.btn-danger { background: rgba(255, 60, 90, .08); border-color: rgba(255, 90, 120, .35); }
.pill { color: var(--cream-2); }
.pill.lime { background: var(--grad); color: #fff; border-color: transparent; }
.pill.gold { background: rgba(255, 193, 94, .18); color: var(--gold); border-color: rgba(255, 193, 94, .4); }
.pill.rose { background: rgba(255, 60, 90, .15); color: var(--rose); border-color: rgba(255, 90, 120, .35); }
.seg button.on { background: var(--grad); color: #fff; box-shadow: var(--glow); }

/* karta profilu = skleněná karta se zářícím okrajem */
.print {
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  color: var(--cream); border: 1px solid rgba(255, 120, 160, .35);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 20px 60px rgba(0,0,0,.55), 0 0 40px rgba(255, 46, 99, .18);
}
.print .shot { background-color: rgba(0,0,0,.25) !important; }
.plaque h3 { color: #fff; }
.plaque .meta { color: var(--mute); }
.plaque .bio { color: var(--cream-2); }
.plaque .flag { color: var(--mute); }
.stamp.like { color: #fff; border-color: #ff5d8f; background: rgba(255, 46, 99, .55); box-shadow: var(--glow); }
.act { color: var(--cream); }
.act.like { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.act.super { color: var(--gold); }
.act.pass { color: var(--rose); }

/* menu */
#tabs { background: rgba(25, 10, 16, .55); }
#tabs a.on { background: var(--grad); color: #fff; box-shadow: var(--glow); }
#tabs a .dot { background: #ff5d8f; }

/* úvod */
.heroprint { background: var(--glass); backdrop-filter: var(--blur); border: 1px solid rgba(255, 120, 160, .35); box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 50px rgba(255, 46, 99, .25); transform: none; }
.heroprint .cap { color: var(--cream-2); font-style: italic; }
.how b { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.prem { background: linear-gradient(160deg, rgba(255, 46, 99, .18), rgba(255,255,255,.04)); border-color: rgba(255, 120, 160, .35); }
.prem li::before { color: #ff5d8f; }
.price { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* chat */
.bubble { background: var(--glass); backdrop-filter: var(--blur); border: 1px solid var(--line); }
.bubble.me { background: var(--grad); color: #fff; border-color: transparent; }
.newmatches .ava { border-color: #ff5d8f; box-shadow: var(--glow); }
.tile { border: 1px solid var(--line); }
.tile.add { border: 1.5px dashed rgba(255, 120, 160, .45); }
.cropper .cut { border-bottom-color: #ff5d8f; }
.cropper .cut span { color: #ff9ab8; }
#toast { background: rgba(255, 244, 246, .92); backdrop-filter: var(--blur); }
a { color: #ff7aa8; }

/* ===================================================================
   LIQUID GLASS – víc průhlednosti, lesk na hranách, plovoucí záře
   =================================================================== */
:root {
  --glass: rgba(255, 255, 255, 0.045);
  --glass-hi: rgba(255, 255, 255, 0.09);
  --glass-strong: rgba(28, 8, 16, 0.42);
  --line: rgba(255, 255, 255, 0.16);
  --blur: blur(28px) saturate(190%) brightness(1.06);
  --rim: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(255,255,255,.06), inset 1px 0 0 rgba(255,255,255,.08), inset -1px 0 0 rgba(255,255,255,.08);
}
/* plovoucí barevné kapky za sklem */
body::before {
  background:
    radial-gradient(38% 30% at 12% 8%, rgba(255, 46, 99, .55), transparent 70%),
    radial-gradient(40% 34% at 92% 28%, rgba(190, 24, 93, .5), transparent 70%),
    radial-gradient(45% 40% at 35% 92%, rgba(255, 120, 170, .35), transparent 70%),
    radial-gradient(30% 25% at 70% 65%, rgba(120, 40, 200, .25), transparent 70%),
    #08040a;
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-4%, 3%, 0) scale(1.08); } 100% { transform: translate3d(3%, -2%, 0) scale(1.03); } }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

.card, .sheet, #tabs, .seg, .pill, input, select, textarea, .btn-ghost, .act, .print, .heroprint, .bubble {
  background: linear-gradient(145deg, var(--glass-hi), var(--glass) 45%, rgba(255,255,255,.02));
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  box-shadow: var(--rim), 0 12px 40px rgba(0, 0, 0, .35);
}
/* lesklý odlesk nahoře jako na tekutém skle */
.card, .heroprint, .sheet { position: relative; overflow: hidden; } .print, #tabs { overflow: hidden; }
.pill { white-space: nowrap; }
.card::after, .print::after, .heroprint::after, .sheet::after, #tabs::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(170deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.04) 22%, transparent 40%),
              radial-gradient(120% 60% at 0% 0%, rgba(255,255,255,.08), transparent 50%);
}
.print { border-color: rgba(255, 150, 185, .38); box-shadow: var(--rim), 0 24px 70px rgba(0,0,0,.55), 0 0 50px rgba(255, 46, 99, .22); }
.print .shot { background-color: rgba(0,0,0,.18) !important; border: 1px solid rgba(255,255,255,.08); }
.sheet { background: linear-gradient(160deg, rgba(60, 18, 34, .55), rgba(20, 6, 12, .55)); border-radius: 28px 28px 0 0; }
.modal { background: rgba(4, 1, 3, .45); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); }
#tabs { background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.03)); border-radius: 999px; }
#tabs a { position: relative; z-index: 1; }
.pill { box-shadow: var(--rim); }

/* tlačítka jako kapky skla s růžovou náplní */
.btn-lime, .act.like, #tabs a.on, .seg button.on, .pill.lime, .bubble.me, .how b {
  background: linear-gradient(160deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 38%), var(--grad);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 6px rgba(120, 0, 40, .35), var(--glow);
  border-color: rgba(255,255,255,.25);
}
.act { width: 64px; height: 64px; }
.act.like { width: 78px; height: 78px; }
.act:hover, .btn:hover { transform: translateY(-1px); }

/* mapa cestování */
.mapsheet { max-height: 94vh; }
#map { height: 46vh; min-height: 280px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--rim); background: #120810; }
.leaflet-container { font: 12px var(--sans); background: #120810; }
.leaflet-control-attribution { background: rgba(0,0,0,.4) !important; color: #bba !important; }
.leaflet-control-attribution a { color: #ff9ab8 !important; }
.mappin span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--grad); border: 3px solid #fff; box-shadow: var(--glow); }
.mappin.home span { background: #fff; border-color: #ff5d8f; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.chips .pill { flex: none; cursor: pointer; font: 600 13px var(--sans); padding: 7px 12px; color: var(--cream); }

/* vzájemné odhalení obličeje */
.reveal { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 10px 12px; border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.03)); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255,150,185,.3); box-shadow: var(--rim), 0 0 30px rgba(255,46,99,.15); }
.reveal .lock { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.reveal .pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255,61,127,.25); } }
.reveal strong { font-size: 14px; }
.face { width: 48px; height: 48px; flex: none; border-radius: 50%; background: #222 center/cover; border: 2px solid #ff5d8f; box-shadow: var(--glow); cursor: zoom-in; }
.face.big { width: min(80vw, 420px); height: min(80vw, 420px); border-width: 3px; cursor: zoom-out; }
/* vodoznak s ID diváka */
.shot, .tile, .ava, .face { position: relative; }
.shot::after, .tile[data-photo]::after, .ava[data-photo]::after, .face::after { content: ''; position: absolute; inset: 0; background: var(--wm, none); pointer-events: none; border-radius: inherit; z-index: 1; }
.tile .st, .tile .x, .tile .pill { z-index: 2; }
/* horní karta nesmí prosvítat na kartu pod ní */
.print { background: linear-gradient(145deg, rgba(60, 20, 36, .88), rgba(22, 8, 14, .92)); }
.print .shot { background-color: #160a10 !important; }
.print.behind { filter: brightness(.55) blur(1px); }
.chat .head .small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.search input { border-radius: 999px; padding-left: 40px; background-image: none; margin-bottom: 10px; }
.search { position: relative; }
.search::before { content: '⌕'; position: absolute; left: 15px; top: 9px; font-size: 20px; color: var(--mute); z-index: 1; }
#map { height: 40vh; }
.pill.visit { position: absolute; left: 10px; bottom: 12px; z-index: 2; background: rgba(20, 8, 14, .7); color: #fff; border-color: rgba(255, 150, 185, .45); }
#trv { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.topbar .brand { min-width: 0; }

/* přehled majitele */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.stat { padding: 12px; border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid var(--line); box-shadow: var(--rim); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); min-width: 0; }
.stat.big { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; }
.stat.big .v { font-size: 30px; grid-row: span 2; }
.stat .v { font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .l { font-size: 12px; color: var(--cream-2); }
.stat .s { font-size: 11px; color: var(--mute); }
.stat.pink .v { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat.gold .v { color: var(--gold); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 16px; }
.bars .b { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bars .b i { width: 100%; border-radius: 6px 6px 2px 2px; background: var(--grad); box-shadow: 0 0 12px rgba(255,46,99,.35); }
.bars .b span { position: absolute; top: -2px; font-size: 9px; color: var(--mute); }
.bars-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--mute); margin-top: 4px; }
.toggle { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--cream); font-size: 14px; margin: 0; cursor: pointer; }
.toggle input { display: none; }
.toggle i { flex: none; width: 50px; height: 30px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid var(--line); position: relative; transition: .2s; }
.toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.toggle input:checked + i { background: var(--grad); box-shadow: var(--glow); }
.toggle input:checked + i::after { left: 23px; }
.ticket { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ticket.closed { opacity: .55; }
.urow { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.urow select { width: 130px; flex: none; padding: 9px 10px; font-size: 13px; }

/* 3D zeměkoule */
#globe { position: relative; height: 44vh; min-height: 300px; border-radius: 24px; overflow: hidden; cursor: grab; touch-action: none;
  background: radial-gradient(60% 60% at 50% 45%, rgba(255, 46, 99, .18), transparent 70%), radial-gradient(120% 90% at 50% 120%, rgba(120, 20, 60, .35), transparent 60%), rgba(8, 3, 6, .6);
  border: 1px solid rgba(255, 150, 185, .28); box-shadow: var(--rim), inset 0 0 60px rgba(0,0,0,.6); }
#globe:active { cursor: grabbing; }
#globe canvas { display: block; }
.glabel { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2; pointer-events: none; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; font: 600 13px var(--sans); color: #fff; background: rgba(20, 6, 12, .55);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid rgba(255,150,185,.35); box-shadow: var(--rim); }
.gtip { padding: 4px 10px; border-radius: 999px; background: rgba(20, 6, 12, .8); color: #fff; font: 600 12px var(--sans); border: 1px solid rgba(255,150,185,.4); }
.globewrap { position: relative; }
