/* RO2 LotS Atlas – Kartentisch-Optik (wie Roguard/TalesWeaver Atlas). Nur System-Schriften, damit alles offline laeuft. */
:root {
  color-scheme: dark;
  --ink: #10171a; --panel: #172126; --panel2: #1d2a30; --line: #2c3c43; --text: #e7e2d4; --mute: #94a5a4; --faint: #5f7070;
  --amber: #f2b23a; --amber-soft: rgba(242, 178, 58, .28); --teal: #5cc5b1; --teal-soft: rgba(92, 197, 177, .22); --red: #e5654f;
  --e-neutral: #b9b3a3; --e-wasser: #5aa7e0; --e-erde: #b98b4e; --e-feuer: #e5654f; --e-wind: #8fd06b; --e-gift: #a979d1;
  --e-heilig: #f1e28a; --e-schatten: #7d6f9a; --e-geist: #b7c9d9; --e-untot: #8a9a6e;
  --f-display: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --f-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-mono: Consolas, "Cascadia Mono", "SFMono-Regular", Menlo, monospace;
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { background: var(--ink); color: var(--text); font: 15px/1.45 var(--f-body); margin: 0; }
button { font: inherit; color: inherit; }
.display { font-family: var(--f-display); font-variant: small-caps; letter-spacing: .04em; }

.app { display: grid; grid-template-rows: auto 1fr; height: 100%; padding-inline: 16px; }
header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-block: 12px 10px; border-bottom: 1px solid var(--line); }
header h1 { font: 700 24px/1 var(--f-display); font-variant: small-caps; letter-spacing: .03em; margin: 0; white-space: nowrap; }
header h1 small { font: 400 13px var(--f-body); font-variant: normal; color: var(--mute); letter-spacing: 0; margin-left: 8px; }
header h1 a { color: inherit; text-decoration: none; }
.epsel { display: flex; align-items: center; gap: 8px; font: 700 14px var(--f-display); font-variant: small-caps; letter-spacing: .06em; color: var(--mute); }
.epsel select { background: var(--panel); color: var(--text); border: 1px solid var(--amber); border-radius: 7px; padding: 6px 10px; font: 500 14px var(--f-body); max-width: min(78vw, 460px); cursor: pointer; }
.lang { display: inline-flex; margin-left: auto; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.lang button { background: var(--panel); border: 0; padding: 5px 10px; cursor: pointer; font: 600 12px var(--f-mono); color: var(--mute); letter-spacing: .06em; }
.lang button + button { border-left: 1px solid var(--line); }
.lang button[aria-pressed="true"] { background: var(--amber); color: #1b1407; }
:is(.epsel select, .chip, .tab, .mob, .lnk, .zoom button, .lang button):focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.main { display: grid; grid-template-columns: 270px minmax(0, 1fr) 360px; gap: 14px; min-height: 0; padding-block: 12px; }
aside, .info { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-height: 0; display: flex; flex-direction: column; }
.sect { padding: 12px 12px 8px; }
.sect h2 { font: 700 16px var(--f-display); font-variant: small-caps; letter-spacing: .05em; margin: 0 0 8px; }
input[type=search] { width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; color: var(--text); font: inherit; }
.tabs { display: flex; gap: 4px; margin-top: 8px; }
.tab { flex: 1; padding: 5px 6px; border: 1px solid var(--line); background: var(--panel2); border-radius: 6px; cursor: pointer; font-size: 13px; }
.tab[aria-selected="true"] { border-color: var(--amber); color: var(--amber); }
.bands { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.chip { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font: 500 12px var(--f-mono); color: var(--mute); }
.chip[aria-pressed="true"] { color: var(--text); border-color: var(--teal); background: var(--teal-soft); }
.moblist { overflow: auto; padding: 4px 8px 12px; flex: 1; }
.mob { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 5px 6px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.mob:hover { background: var(--panel2); }
.mob[aria-pressed="true"] { background: var(--amber-soft); }
.mob .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mob .sub { display: block; font-size: 12px; color: var(--mute); }
.mob .ct { font: 12px var(--f-mono); color: var(--mute); }
.lv { font: 500 11px var(--f-mono); text-align: center; border-radius: 4px; padding: 0 5px; color: #12181b; }
.mi { display: inline-block; flex: none; background-repeat: no-repeat; }
.mi.anim { display: inline-flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.mi.anim img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mobbig { display: inline-flex; align-items: flex-end; justify-content: center; flex: none; min-width: 64px; min-height: 64px; }
.mobbig img { max-width: 180px; max-height: 180px; object-fit: contain; }
.mobhead { display: flex; gap: 12px; align-items: flex-end; }
.mvp { color: var(--red); font: 700 11px var(--f-mono); margin-left: 4px; }

.stage { position: relative; background: #0b1113; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-height: 300px; touch-action: none; }
.worlds { position: absolute; left: 10px; top: 10px; z-index: 5; display: flex; gap: 4px; flex-wrap: wrap; }
.worlds .tab { background: rgba(16, 23, 26, .85); flex: none; }
.zoom { position: absolute; right: 10px; top: 10px; z-index: 5; display: flex; flex-direction: column; gap: 4px; }
.zoom button { width: 32px; height: 32px; border: 1px solid var(--line); background: rgba(16, 23, 26, .85); border-radius: 6px; cursor: pointer; font: 700 16px var(--f-mono); }
.layer { position: absolute; left: 0; top: 0; width: 1280px; height: 1024px; transform-origin: 0 0; }
.layer img.wm { position: absolute; inset: 0; width: 1280px; height: 1024px; max-width: none; user-select: none; -webkit-user-drag: none; }
.t { position: absolute; border: 1px solid transparent; cursor: pointer; }
.t.have:hover, .t.sel { border-color: var(--text); box-shadow: 0 0 0 1px #000 inset; }
.t.absent { background: rgba(6, 10, 12, .62); cursor: default; }
.t.hit { background: var(--amber-soft); border-color: var(--amber); }
.t.hit::after { content: attr(data-c); position: absolute; right: 2px; bottom: 1px; z-index: 1; font: 500 10px var(--f-mono); color: var(--amber); text-shadow: 0 0 3px #000; }
.dun { position: absolute; border: 1px solid rgba(229, 101, 79, .75); background: rgba(229, 101, 79, .18); cursor: pointer; }
.dun.hit { background: var(--amber-soft); border-color: var(--amber); }
.dun.hit::after { content: attr(data-c); position: absolute; right: 2px; bottom: 1px; z-index: 1; font: 500 10px var(--f-mono); color: var(--amber); text-shadow: 0 0 3px #000; }
/* animiertes Monster auf Treffer-Kacheln/Dungeon-Boxen (skaliert mit der Karte) */
.tmob { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); max-width: 86%; max-height: 80%;
  object-fit: contain; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .7)); }
.worlds .tab .n { margin-left: 5px; padding: 0 5px; border-radius: 8px; background: var(--amber); color: #111; font: 600 10px var(--f-mono); }
.offmap.hit summary { border-color: var(--amber); color: var(--amber); }
.offmap .list .lnk.hit { color: var(--amber); font-weight: 600; }
.offmap .list .lnk.hit::after { content: " " attr(data-c); color: var(--faint); font-weight: 400; }
.code.var { font-size: 10px; color: var(--faint); margin-left: 4px; }
.dun.sel { border-color: var(--text); }
.tip { position: absolute; z-index: 6; pointer-events: none; background: rgba(12, 18, 20, .95); border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: flex; gap: 8px; align-items: center; max-width: 320px; }
.tip .mm { width: 72px; height: 72px; flex: none; border-radius: 4px; background-color: #0b1113; }
.tip b { display: block; font: 500 13px var(--f-mono); }
.tip span { font-size: 13px; color: var(--mute); }
.offmap { position: absolute; left: 10px; bottom: 10px; z-index: 5; max-width: min(560px, calc(100% - 20px)); }
.offmap summary { cursor: pointer; background: rgba(16, 23, 26, .9); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; font-size: 13px; list-style: none; }
.offmap .list { margin-top: 4px; max-height: 260px; overflow: auto; background: rgba(16, 23, 26, .96); border: 1px solid var(--line); border-radius: 8px; padding: 8px; columns: 3 150px; font: 12px var(--f-mono); }
.offmap .list .lnk { display: block; margin-bottom: 2px; }
.offmap .grp { break-inside: avoid; margin-bottom: 8px; }
.offmap .grp i { display: block; color: var(--faint); font-style: normal; font-family: var(--f-body); }
.status { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mute); z-index: 4; text-align: center; padding: 16px; }

.info { overflow: auto; }
.info .sect + .sect { border-top: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 14px; margin: 0; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; }
.big { display: flex; gap: 12px; align-items: flex-start; }
.big .mm { width: 112px; height: 112px; flex: none; border-radius: 6px; background-color: #0b1113; border: 1px solid var(--line); }
.code { font: 500 13px var(--f-mono); color: var(--amber); }
h2.code { font-size: 16px; font-variant: normal; letter-spacing: 0; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { font-weight: 500; color: var(--mute); text-align: left; padding: 3px 6px; border-bottom: 1px solid var(--line); }
td { padding: 3px 6px; border-bottom: 1px solid rgba(44, 60, 67, .5); vertical-align: top; }
td.n { font-family: var(--f-mono); text-align: right; white-space: nowrap; }
td.mobcell { display: flex; gap: 6px; align-items: center; }
.tw { overflow-x: auto; }
.lnk { background: none; border: 0; padding: 0; color: var(--teal); cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: rgba(92, 197, 177, .4); text-underline-offset: 2px; }
.el { display: inline-block; padding: 1px 7px; border-radius: 999px; font: 500 12px var(--f-mono); color: #12181b; }
.muted { color: var(--mute); }
.small { font-size: 13px; }
.notes { margin: 0; padding-left: 18px; }
.notes li { margin-bottom: 4px; font-size: 13px; color: var(--mute); }
.empty { color: var(--mute); font-size: 14px; padding: 12px; }

@media (max-width: 1100px) {
  .main { grid-template-columns: 240px minmax(0, 1fr); }
  .info { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .app { height: auto; }
  .main { grid-template-columns: 1fr; }
  .stage { height: 62vh; }
  aside { max-height: 360px; }
}
@media (prefers-reduced-motion: no-preference) {
  .layer { transition: transform .12s ease-out; }
  .layer.drag { transition: none; }
}

/* ---- TalesWeaver: Weltkarte mit Kartenpunkten + Verbindungen, Kartenansicht mit Portalen und Spawn-Flaechen */
.layer { width: auto; height: auto; }
.layer img.wm { width: 100%; height: 100%; }
.layer svg.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.links line { stroke: rgba(255, 214, 120, .85); stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 0 1px #000); }
.links line.sel { stroke: var(--teal); stroke-width: 3.4; }
.pt { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; cursor: pointer;
  background: rgba(16, 23, 26, .78); border: 2px solid var(--text); box-shadow: 0 0 0 1px #000; }
.pt.town { width: 16px; height: 16px; margin: -8px 0 0 -8px; border-color: var(--amber); }
.pt.dungeon { border-color: var(--red); }
.pt.multi::before { content: attr(data-n); position: absolute; left: 11px; top: -9px; font: 600 9px var(--f-mono); color: var(--text); text-shadow: 0 0 3px #000; }
.pt:hover, .pt.sel { background: var(--teal); border-color: #fff; z-index: 3; }
.pt.hit { background: var(--amber); border-color: #fff9e6; z-index: 2; animation: glow 1.8s ease-in-out infinite; }
.pt.dim { opacity: .35; }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 1px #000, 0 0 4px 1px rgba(242, 178, 58, .55); }
  50% { box-shadow: 0 0 0 1px #000, 0 0 12px 5px rgba(242, 178, 58, .9); }
}
@media (prefers-reduced-motion: reduce) { .pt.hit { animation: none; box-shadow: 0 0 0 1px #000, 0 0 9px 3px rgba(242, 178, 58, .8); } }
.layer img.mapimg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; user-select: none; -webkit-user-drag: none; image-rendering: auto; }
svg.over { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
svg.over .portal { fill: rgba(92, 197, 177, .35); stroke: var(--teal); stroke-width: 3; cursor: pointer; }
svg.over .portal:hover { fill: rgba(92, 197, 177, .7); }
svg.over .spawn { fill: rgba(229, 101, 79, .10); stroke: rgba(229, 101, 79, .55); stroke-width: 2; }
svg.over .spawn.hit { fill: var(--amber-soft); stroke: var(--amber); stroke-width: 3; }
svg.over text { font: 600 22px var(--f-body); fill: #fff; paint-order: stroke; stroke: #000; stroke-width: 5px; pointer-events: none; }
.legend { position: absolute; right: 10px; bottom: 10px; z-index: 5; background: rgba(16, 23, 26, .9); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12px; color: var(--mute); display: flex; gap: 12px; flex-wrap: wrap; max-width: calc(100% - 20px); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.backbtn { white-space: nowrap; }
.btn { padding: 5px 10px; border: 1px solid var(--amber); background: rgba(16, 23, 26, .9); color: var(--amber); border-radius: 6px; cursor: pointer; font-size: 13px; }
.btn:hover { background: var(--amber-soft); }
.big .mm { background-size: cover; background-position: center; }
.thumb { display: block; width: 100%; border-radius: 6px; border: 1px solid var(--line); background: #0b1113; cursor: zoom-in; }
.kind { font: 500 11px var(--f-mono); border-radius: 4px; padding: 0 5px; color: #12181b; background: var(--mute); }
.kind.town { background: var(--amber); } .kind.dungeon { background: var(--red); } .kind.interior { background: var(--e-geist); } .kind.field { background: var(--e-wind); }
.drops li { margin-bottom: 3px; }
.drops .rate { font: 500 12px var(--f-mono); color: var(--amber); margin-right: 6px; }
.maprow { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; width: 100%; text-align: left; padding: 4px 6px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.maprow:hover { background: var(--panel2); }
.maprow[aria-pressed="true"] { background: var(--amber-soft); }
.maprow .ct { font: 12px var(--f-mono); color: var(--mute); }

/* Weltkarte: Flaechen statt Punkte */
.layer svg.areas { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.areas line { stroke: rgba(255, 214, 120, .8); stroke-width: 1.6; stroke-linecap: round; pointer-events: none; }
.areas line.sel { stroke: var(--teal); stroke-width: 3; }
.ar { fill: rgba(143, 208, 107, .10); stroke: rgba(255, 255, 255, .45); stroke-width: .8; cursor: pointer; transition: fill .15s; }
.ar.town { fill: rgba(242, 178, 58, .22); stroke: rgba(242, 178, 58, .9); }
.ar.dungeon { fill: rgba(229, 101, 79, .18); stroke: rgba(229, 101, 79, .85); }
.ar.interior { fill: rgba(183, 201, 217, .14); }
.ar:hover { fill: rgba(92, 197, 177, .45); stroke: #fff; }
.ar.sel { fill: rgba(92, 197, 177, .5); stroke: #fff; stroke-width: 2; }
.ar.dim { fill: rgba(6, 10, 12, .35); stroke: rgba(255, 255, 255, .12); }
.ar.hit { fill: rgba(242, 178, 58, .5); stroke: #ffe6a8; stroke-width: 1.6; animation: areaglow 1.8s ease-in-out infinite; }
@keyframes areaglow { 0%, 100% { fill-opacity: .55; } 50% { fill-opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ar.hit { animation: none; } }
.dot { fill: #fff; stroke: #000; stroke-width: .8; pointer-events: none; }
.dot.town { fill: var(--amber); }
.dot.dungeon { fill: var(--red); }
.mi.none { background: radial-gradient(circle at 50% 60%, rgba(148, 165, 164, .25) 0 38%, transparent 40%); }
.mobhead .mobbig { min-width: 96px; min-height: 96px; }

/* Kartenplan: User View / Complete Map */
.viewtoggle { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: rgba(16, 23, 26, .9); }
.viewtoggle button { background: transparent; border: 0; padding: 5px 10px; cursor: pointer; font: 600 12px var(--f-body); color: var(--mute); white-space: nowrap; }
.viewtoggle button + button { border-left: 1px solid var(--line); }
.viewtoggle button[aria-pressed="true"] { background: var(--amber); color: #1b1407; }
.viewtoggle button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* NPCs im Kartenplan */
svg.over .npcm { cursor: pointer; }
svg.over .npcm circle { fill: var(--amber); stroke: #1b1407; stroke-width: 2; opacity: .9; }
svg.over .npcm:hover circle, svg.over .npcm.sel circle { fill: #fff3cf; stroke: var(--amber); stroke-width: 3; }
svg.over .npcm.sel circle { animation: areaglow 1.6s ease-in-out infinite; }

/* ---- RO2: Regionsansicht aus Ortsbild-Kacheln, Kartenplan mit Punkten */
.layer img.tile { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; border-radius: 10px; background: #0b1113; }
.areas rect.ar { fill: rgba(255, 255, 255, 0); stroke: rgba(255, 255, 255, .18); stroke-width: 1.5; }
.areas rect.ar.town { stroke: rgba(242, 178, 58, .6); }
.areas rect.ar.dungeon { stroke: rgba(229, 101, 79, .55); }
.areas rect.ar:hover { fill: rgba(92, 197, 177, .16); stroke: #fff; }
.areas rect.ar.sel { fill: rgba(92, 197, 177, .18); stroke: var(--teal); stroke-width: 4; }
.areas rect.ar.dim { fill: rgba(6, 10, 12, .62); stroke: rgba(255, 255, 255, .08); }
.areas rect.ar.hit { fill: rgba(242, 178, 58, .12); stroke: var(--amber); stroke-width: 4; animation: tileglow 1.8s ease-in-out infinite; }
@keyframes tileglow { 0%, 100% { stroke-opacity: .55; } 50% { stroke-opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .areas rect.ar.hit { animation: none; } }
.areas text.cnt { font: 700 30px var(--f-mono); fill: var(--amber); paint-order: stroke; stroke: #000; stroke-width: 6px; pointer-events: none; }
svg.over .gat { fill: #9be28a; opacity: .55; stroke: #0b1113; stroke-width: .6; }
svg.over .gat:hover { opacity: 1; }
svg.over .sp { fill: rgba(229, 101, 79, .8); stroke: #1b0b07; stroke-width: .8; cursor: pointer; }
svg.over .sp:hover { fill: #ffb09f; }
svg.over .sp.hit { fill: var(--amber); stroke: #fff9e6; stroke-width: 2; animation: areaglow 1.6s ease-in-out infinite; }
svg.over circle.npcm { fill: var(--amber); stroke: #1b1407; stroke-width: 1.4; cursor: pointer; }
svg.over circle.npcm:hover, svg.over circle.npcm.sel { fill: #fff3cf; stroke: var(--amber); stroke-width: 3; }
svg.over .portal { cursor: pointer; fill: none; stroke: none; }
svg.over .portal circle { fill: rgba(92, 197, 177, .45); stroke: var(--teal); stroke-width: 3; }
svg.over .portal:hover circle { fill: rgba(92, 197, 177, .85); }
svg.over .portal text { font-weight: 600; fill: #fff; stroke: #000; }
.mi.card { display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 5px; background: #0b1113; }
.mi.card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.mobbig.card img { max-width: 150px; max-height: 200px; border-radius: 8px; border: 1px solid var(--line); }
.mi.npcdot { background: radial-gradient(circle at 50% 50%, var(--amber) 0 22%, transparent 24%); }
.rate { font: 500 12px var(--f-mono); color: var(--amber); }
.empty { color: var(--mute); font-size: 14px; padding: 12px; }

/* 3D-Ansicht */
.v3dbtn { border-color: var(--amber); }
.v3dmodal { position: fixed; inset: 0; z-index: 60; background: rgba(5, 9, 10, .8); display: grid; place-items: center; padding: 12px; }
.v3dwin { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; width: min(1500px, 100%);
  height: calc(100vh - 24px); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.v3dhost { position: relative; flex: 1; min-height: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #0b1113; }
.v3dcanvas { display: block; width: 100%; height: 100%; touch-action: none; }
.v3dstatus { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mute); font-size: 14px; }
.v3dlabels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.v3dlbl { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 12px; padding: 1px 6px; border-radius: 5px;
  background: rgba(12, 18, 20, .82); border: 1px solid rgba(242, 178, 58, .6); color: var(--text); }
.v3dlbl.tr { border-color: rgba(143, 208, 107, .7); }
.v3dlbl.tp { border-color: rgba(185, 139, 224, .7); }
.v3dlbl.hid { border-color: rgba(138, 150, 153, .6); color: var(--mute); }
.v3dlbl.sel { background: var(--amber); color: #1b1407; border-color: var(--amber); font-weight: 600; z-index: 1; }
.v3dfoot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#v3dpick { color: var(--amber); }
.mmhead { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.mmhead h2 { margin: 0; font: 700 18px var(--f-display); flex: 1 1 auto; min-width: 0; }
.mmhead h2 .code { font: 600 16px var(--f-mono); color: var(--amber); }
.mmopts { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--mute); }
.mmopts label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.mmclose { width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; font-size: 20px; line-height: 1; }
.mmclose:hover { border-color: var(--amber); color: var(--amber); }
.v3dlbl.k-mob { border-color: rgba(229, 101, 79, .8); }
.v3dlbl.k-portal { border-color: rgba(92, 197, 177, .8); color: #bff3e8; }
.v3dlbl.k-shop { border-color: rgba(143, 208, 107, .8); }
