/* [clanmenu] KLÁN-MENÜ – B · Műszak tokenekre (style.css :root). Teljes képernyő, élszéltől élszélig; fekete-fehér, hajszálvonal,
   EGYETLEN akcentus a pálya fénye (saját klán / telek, FP). Natív érzet: nincs kijelölés, nincs böngésző-görgetősáv (saját sáv),
   nincs koppintás-villanás; minden vezérlő saját. Mobilon (≤ 760 px) a panel alsó, húzható lap a térkép fölött. */
.cm-overlay { position: fixed; inset: 0; z-index: 70; display: grid; background: var(--bg); color: var(--ink); text-shadow: none; pointer-events: auto;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.cm-overlay input { -webkit-user-select: text; user-select: text; }
.cm-dlg { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); width: 100%; height: 100%; overflow: hidden; background: var(--bg); font-family: var(--f-body); }
.cm-dlg::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background-image: var(--grain); background-size: 160px 160px; opacity: .04; }
.cm-overlay button { font: inherit; color: inherit; }

/* fejléc */
.cm-head { position: relative; display: flex; align-items: flex-end; gap: 28px; padding: clamp(16px, 2.6vh, 34px) var(--m-gutter, 48px) 14px; min-width: 0; border-bottom: 1px solid var(--line); }
.cm-ttl { flex: 1; min-width: 0; display: grid; gap: 10px; }
.cm-kick { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cm-head h2 { margin: 0; font-family: var(--f-disp); font-weight: 900; font-size: clamp(44px, 6.4vh, 88px); line-height: .82; text-transform: uppercase; padding-top: .14em; white-space: nowrap; }
.cm-sum { display: flex; gap: 28px; margin: 0 64px 4px 0; }
.cm-sum div { display: grid; gap: 2px; justify-items: end; }
.cm-sum dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.cm-sum dd { margin: 0; font-family: var(--f-mono); font-size: 16px; color: var(--ink); }
.cm-x { all: unset; cursor: var(--cur-ptr, pointer); position: absolute; top: 16px; right: calc(var(--m-gutter, 48px) - 10px); display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); color: var(--muted); }
.cm-x .ic { width: 24px; height: 24px; }
.cm-x:hover { color: var(--ink); background: var(--fill-2); }
.cm-x:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* törzs: térkép + panel */
.cm-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 31vw, 480px); min-height: 0; }
.cm-map { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #0B0B0C; contain: strict; }
.cm-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: var(--cur-grab, grab); outline: none; }
.cm-cv.hot { cursor: var(--cur-ptr, pointer); }
.cm-cv.grab { cursor: var(--cur-grabbing, grabbing); }
.cm-cv:focus-visible { box-shadow: inset 0 0 0 2px var(--line-3); }
.cm-load { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  background: linear-gradient(90deg, transparent, rgba(245, 242, 236, .03), transparent) 0 0 / 200% 100% #0B0B0C; animation: cmShim 1.4s linear infinite; }
.cm-load:empty::after { content: "Térkép betöltése…"; }
@keyframes cmShim { to { background-position: -200% 0; } }

/* jelmagyarázat, nagyítás, tipp – a térkép sarkaiban, keret nélkül */
.cm-legend { position: absolute; left: 20px; bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); pointer-events: none; text-shadow: var(--hud-sh); }
.cm-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg { display: inline-block; width: 14px; height: 10px; border-radius: 1px; }
.lg.free { box-shadow: inset 0 0 0 1px rgba(245, 242, 236, .4); background: repeating-linear-gradient(90deg, transparent 0 3px, #0B0B0C 3px 6px), transparent; }
.lg.rz { background: rgba(245, 242, 236, .3); box-shadow: inset 0 0 0 1px rgba(245, 242, 236, .7); }
.lg.nf { background: repeating-linear-gradient(-45deg, rgba(245, 242, 236, .45) 0 1px, transparent 1px 4px); box-shadow: inset 0 0 0 1px rgba(245, 242, 236, .7); }
.lg.own { background: rgba(243, 162, 91, .3); box-shadow: inset 0 0 0 1.5px var(--light); }
.cm-zoom { position: absolute; right: 18px; bottom: 18px; display: grid; gap: 4px; }
.cm-zoom button { all: unset; box-sizing: border-box; cursor: var(--cur-ptr, pointer); display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: rgba(12, 12, 14, .82); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); transition: background var(--t), color var(--t); }
.cm-zoom button .ic { width: 18px; height: 18px; }
.cm-zoom button:hover { background: var(--fill-3); color: var(--ink); }
.cm-zoom button:active { scale: .94; }
.cm-zoom button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cm-hint { position: absolute; left: 16px; top: 14px; margin: 0; padding: 5px 8px; border-radius: var(--r-sm); background: rgba(11, 11, 12, .78); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); pointer-events: none; }
.cm-hint kbd { font: inherit; color: var(--ink-2); padding: 1px 5px; margin-right: 3px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line-2); }

/* telek-kártya (rámutatás / koppintás) */
.cm-card { position: absolute; left: 0; top: 0; z-index: 2; width: 248px; padding: 12px 14px 12px; border-radius: var(--r); background: rgba(9, 9, 11, .94); box-shadow: inset 0 0 0 1px var(--line-2), var(--sh); pointer-events: none; will-change: transform; display: grid; gap: 6px; }
.cm-card small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cm-card > b { font-family: var(--f-disp); font-weight: 800; font-size: 22px; line-height: .95; text-transform: uppercase; }
.cm-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 4px 0 0; }
.cm-card dt { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.cm-card dd { margin: 0; font-family: var(--f-mono); font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-card dd.own { color: var(--light); }
.cm-card-st { font-size: 11.5px; color: var(--muted); }
.cm-card.own { box-shadow: inset 0 0 0 1px rgba(243, 162, 91, .55), var(--sh); }

/* panel */
.cm-side { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; background: var(--bg); border-left: 1px solid var(--line); }
.cm-grip { display: none; }
.cm-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0 20px; border-bottom: 1px solid var(--line); }
.cm-tabs button { all: unset; box-sizing: border-box; cursor: var(--cur-ptr, pointer); position: relative; display: flex; align-items: baseline; justify-content: center; gap: 6px; height: 52px; line-height: 52px;
  font-family: var(--f-disp); font-weight: 800; font-size: 21px; text-transform: uppercase; color: rgba(245, 242, 236, .4); transition: color var(--t); white-space: nowrap; }
.cm-tabs button small { font-family: var(--f-mono); font-weight: 400; font-size: 10px; color: var(--dim); transform: translateY(-9px); }
.cm-tabs button:hover { color: var(--ink-2); }
.cm-tabs button[aria-selected="true"] { color: var(--ink); }
.cm-tabs button[aria-selected="true"] small { color: var(--light); }
.cm-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 2px; background: var(--ink); }
.cm-tabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; border-radius: var(--r-sm); }
.cm-scw { position: relative; min-height: 0; }
.cm-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cm-scroll::-webkit-scrollbar { display: none; }
.cm-pane { padding: 18px 22px 40px; }
/* saját görgetősáv: vékony, csak görgetéskor / rámutatáskor erősödik */
.cm-sbar { position: absolute; top: 6px; bottom: 6px; right: 3px; width: 8px; border-radius: 4px; }
.cm-sbar i { position: absolute; left: 2px; right: 2px; top: 0; border-radius: 3px; background: rgba(245, 242, 236, .16); transition: background var(--t), left var(--t), right var(--t); cursor: var(--cur-ptr, pointer); }
.cm-sbar.on i, .cm-scw:hover .cm-sbar i { background: rgba(245, 242, 236, .3); }
.cm-sbar.drag i, .cm-sbar i:hover { left: 0; right: 0; background: rgba(245, 242, 236, .5); }

/* panel-elemek */
.cm-v { display: grid; gap: 16px; }
.cm-skel { height: 220px; border-radius: var(--r); background: linear-gradient(90deg, var(--fill), var(--fill-2), var(--fill)) 0 0 / 200% 100%; animation: cmShim 1.4s linear infinite; }
.cm-skel.s { height: 96px; }
.cm-hero { display: grid; gap: 8px; }
.cm-hero.own, .cm-hero.prof { grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 14px; }
.cm-hero small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cm-hero h2 { margin: 2px 0 0; font-family: var(--f-disp); font-weight: 900; font-size: 40px; line-height: .9; text-transform: uppercase; overflow-wrap: anywhere; }
.cm-hero.plot.own h2 { color: var(--light); }
.cm-hero p, .cm-p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.cm-p.dim { color: var(--muted); font-size: 13px; }
.cm-p kbd, .cm-hero kbd { font-family: var(--f-mono); font-size: 11px; padding: 1px 5px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line-2); }
.cm-flag { padding: 3px 8px; border-radius: var(--r-xs); background: var(--ink); color: var(--on-paper); font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; align-self: center; }
.cm-warn { margin: 0; padding: 8px 12px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-3); font-size: 13px; }
.cm-rank { display: grid; justify-items: end; font-family: var(--f-mono); }
.cm-rank b { font-family: var(--f-disp); font-weight: 900; font-size: 34px; line-height: .9; }
.cm-rank small { color: var(--dim); font-size: 11px; }

/* klán-jelvény: rövid név négyzetben – Rózsák tömör papír, Nefelejcsek vonalkázott, saját a fény */
.cm-tag { flex: none; display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: var(--r-sm); background: var(--fill-3); box-shadow: inset 0 0 0 1px var(--line-3);
  font-family: var(--f-disp); font-weight: 900; font-size: 15px; letter-spacing: .03em; color: var(--ink); }
.cm-tag.nf { background: repeating-linear-gradient(-45deg, rgba(245, 242, 236, .14) 0 1px, transparent 1px 5px), var(--fill); }
.cm-tag.own { background: var(--light-t); box-shadow: inset 0 0 0 1.5px var(--light); color: var(--light); }
.cm-tag.big { min-width: 64px; height: 64px; font-size: 28px; border-radius: var(--r); }

.cm-tiles, .cm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.cm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cm-tiles > div, .cm-stats > div { display: grid; gap: 4px; align-content: start; padding: 10px 12px; background: var(--bg); min-width: 0; }
.cm-tiles b, .cm-stats b { font-family: var(--f-mono); font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-tiles small, .cm-stats small { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-tiles.lite b { color: var(--ink-2); font-size: 13px; }
.cm-price { display: flex; align-items: baseline; gap: 12px; }
.fpv { font-family: var(--f-mono); color: var(--light); white-space: nowrap; }
.fpv.neg { color: var(--bad); }
.fpv.big { font-size: 26px; }

.cm-sec { display: grid; gap: 8px; padding-top: 6px; }
.cm-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.cm-sh h3 { margin: 0; font-family: var(--f-disp); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; }
.cm-sh span { font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cm-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.cm-acts { display: inline-flex; gap: 6px; flex: none; }

/* gombok (saját) */
.cm-btn { all: unset; box-sizing: border-box; cursor: var(--cur-ptr, pointer); display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: var(--r-sm);
  background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background var(--t), box-shadow var(--t), color var(--t), scale var(--t-fast); }
.cm-btn .ic { width: 15px; height: 15px; }
.cm-btn:hover { background: var(--fill-3); box-shadow: inset 0 0 0 1px var(--line-3); }
.cm-btn:active { scale: .97; }
.cm-btn.pri { background: var(--paper); color: var(--on-paper); box-shadow: none; }
.cm-btn.pri:hover { background: #fff; }
.cm-btn.ghost { background: none; box-shadow: none; color: var(--ink-2); padding: 0 10px; }
.cm-btn.ghost:hover { background: var(--fill-2); color: var(--ink); }
.cm-btn.danger { background: none; box-shadow: inset 0 0 0 1px rgba(242, 99, 99, .45); color: var(--bad); }
.cm-btn.danger:hover { background: var(--bad-t); }
.cm-btn.big { height: 44px; padding: 0 20px; font-size: 15px; }
.cm-btn.ic-only span { font-family: var(--f-mono); font-weight: 400; font-size: 12px; }
.cm-btn[disabled] { cursor: default; opacity: .38; scale: none; }
.cm-btn:focus-visible, .cm-chip:focus-visible, .cm-back:focus-visible, .cm-seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cm-back { all: unset; box-sizing: border-box; cursor: var(--cur-ptr, pointer); display: inline-flex; align-items: center; gap: 6px; height: 30px; width: max-content; padding: 0 10px 0 4px; margin-left: -4px; border-radius: var(--r-sm);
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cm-back .ic { width: 16px; height: 16px; }
.cm-back:hover { color: var(--ink); background: var(--fill-2); }

/* szegmentált választó, chipek */
.cm-src { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.cm-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-sm); background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.cm-seg button { all: unset; box-sizing: border-box; cursor: var(--cur-ptr, pointer); height: 28px; padding: 0 12px; border-radius: 3px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; transition: background var(--t), color var(--t); }
.cm-seg button:hover { color: var(--ink); }
.cm-seg button[aria-checked="true"] { background: var(--paper); color: var(--on-paper); }
.cm-chips, .cm-sorts { display: flex; gap: 6px; flex-wrap: wrap; }
.cm-sorts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -22px; padding: 0 22px 2px; mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
.cm-sorts::-webkit-scrollbar { display: none; }
.cm-chip { all: unset; box-sizing: border-box; cursor: var(--cur-ptr, pointer); flex: none; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: var(--fill-2); color: var(--ink-2);
  font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: background var(--t), color var(--t); }
.cm-chip:hover { background: var(--fill-3); color: var(--ink); }
.cm-chip[aria-checked="true"] { background: var(--paper); color: var(--on-paper); }
.cm-chip i { display: inline-grid; transition: rotate var(--t); }
.cm-chip i .ic { width: 13px; height: 13px; }
.cm-chip i.up { rotate: 180deg; }

/* beviteli mezők (egyedi kinézet; nincs natív keresés-törlő, nincs pörgető) */
.cm-in, .cm-search { position: relative; display: flex; align-items: center; gap: 8px; }
.cm-in input, .cm-search input, .cm-field input { flex: 1 1 auto; min-width: 0; height: 38px; box-sizing: border-box; padding: 0 12px; font: inherit; font-size: 14px; color: var(--ink); background: var(--fill); border: 0; border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--line-2); outline: none; transition: box-shadow var(--t), background var(--t); caret-color: var(--light); }
.cm-in input:focus, .cm-search input:focus, .cm-field input:focus { box-shadow: inset 0 0 0 1px var(--ink-2); background: var(--fill-2); }
.cm-in input::placeholder, .cm-search input::placeholder, .cm-field input::placeholder { color: var(--dim); }
.cm-search input { height: 42px; padding: 0 40px 0 38px; }
.cm-sic { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--dim); pointer-events: none; }
.cm-clr { all: unset; cursor: var(--cur-ptr, pointer); position: absolute; right: 6px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); color: var(--muted); }
.cm-clr .ic { width: 15px; height: 15px; }
.cm-clr:hover { color: var(--ink); background: var(--fill-2); }
.cm-field { display: grid; gap: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cm-field input { height: 44px; font-size: 16px; text-transform: none; letter-spacing: 0; }

/* listák */
.cm-list { list-style: none; margin: 0; padding: 0; display: grid; }
.cm-list li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cm-list li:last-child { border-bottom: 0; }
.cm-nm { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.cm-nm > span:last-child { display: grid; gap: 2px; min-width: 0; }
.cm-nm b { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-nm small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-list li[data-cm] { cursor: var(--cur-ptr, pointer); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: var(--r-sm); transition: background var(--t); }
.cm-list li[data-cm]:hover { background: var(--fill); }
.cm-list li[data-cm]:focus-visible { outline: none; background: var(--fill-2); box-shadow: inset 2px 0 0 var(--ink); }
.cm-rk { flex: none; width: 30px; font-family: var(--f-mono); font-size: 11.5px; color: var(--dim); }
.cm-val { flex: none; display: grid; justify-items: end; gap: 1px; text-align: right; max-width: 40%; }
.cm-val b { font-family: var(--f-mono); font-weight: 500; font-size: 15px; white-space: nowrap; }
.cm-val b.tk { font-family: var(--f-disp); font-weight: 900; font-size: 18px; }
.cm-val small { font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.cm-crow.mine .cm-nm b, .cm-prow.mine .cm-nm b { color: var(--light); }
.cm-prow.on { background: var(--fill-2); box-shadow: inset 2px 0 0 var(--ink); }
.cm-prow .cm-rk { width: 34px; }
/* erőnlét-sáv: fehér; fáradt: a fény; padon: halvány */
.cm-en { position: relative; flex: 0 0 72px; height: 4px; border-radius: 2px; background: var(--fill-3); overflow: hidden; }
.cm-en i { position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: 2px; }
.cm-env { flex: 0 0 24px; text-align: right; font-family: var(--f-mono); font-weight: 400; font-size: 12.5px; color: var(--ink-2); }
.cm-bot.low .cm-en i { background: var(--light); }
.cm-bot.low .cm-env { color: var(--light); }
.cm-bot.out .cm-en i { background: var(--dim); }
.cm-bot.out .cm-nm b, .cm-bot.out .cm-env { color: var(--dim); }
.cm-seat { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r); background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.cm-seat > div { display: grid; gap: 3px; flex: 1 1 180px; min-width: 0; }
.cm-seat b { font-weight: 600; }
.cm-seat small { font-size: 12px; color: var(--muted); }
.cm-seat.own { box-shadow: inset 0 0 0 1px rgba(243, 162, 91, .5); }
.cm-seat.own b { color: var(--light); }
.cm-seat.none b { color: var(--ink-2); }
.cm-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.cm-log li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; }
.cm-log time { font-family: var(--f-mono); font-size: 11px; color: var(--dim); }

/* ---------- mobil: a térkép teljes, a panel alsó, húzható lap (min / mid / max) ---------- */
@media (max-width: 760px) {
  .cm-head { padding: 12px 16px 10px; gap: 12px; }
  .cm-head h2 { font-size: 40px; }
  .cm-kick { font-size: 10.5px; }
  .cm-sum { display: none; }
  .cm-x { top: 8px; right: 6px; }
  .cm-body { display: block; }
  .cm-map { position: absolute; inset: 0; }
  .cm-hint { display: none; }
  .cm-legend { left: 12px; top: 12px; bottom: auto; gap: 4px 10px; font-size: 9.5px; max-width: 70%; }
  .cm-zoom { right: 10px; top: 10px; bottom: auto; }
  .cm-zoom button { width: 38px; height: 38px; }
  .cm-card { width: 220px; }
  .cm-side { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 52%; border-left: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -1px 0 var(--line-2), 0 -18px 40px rgba(0, 0, 0, .55);
    grid-template-rows: auto auto minmax(0, 1fr); transition: height .28s var(--ease-film); will-change: translate; }
  .cm-side[data-sheet="min"] { height: 112px; }
  .cm-side[data-sheet="max"] { height: calc(100% - 24px); }
  .cm-side.drag { transition: none; }
  .cm-grip { display: grid; place-items: center; height: 22px; cursor: grab; touch-action: none; }
  .cm-grip i { width: 40px; height: 4px; border-radius: 2px; background: var(--line-3); }
  .cm-tabs { padding: 0 8px; }
  .cm-tabs button { height: 44px; line-height: 44px; font-size: 19px; }
  .cm-pane { padding: 14px 16px 32px; }
  .cm-sorts { margin: 0 -16px; padding: 0 16px 2px; }
  .cm-hero h2 { font-size: 34px; }
  .cm-tiles, .cm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-list li { min-height: 56px; }
  .cm-en { flex-basis: 48px; }
}
@media (prefers-reduced-motion: reduce) { .cm-load, .cm-skel { animation: none; } .cm-side { transition: none; } }
:root[data-anim="reduced"] .cm-side { transition: none; }

/* [klanmap] a Telek fül felső része (telek-váltáskor csak ez cserélődik) – a rácsban úgy viselkedik, mintha ott sem lenne */
.cm-ptop { display: contents; }
.cm-demo { margin-top: 2px; }
