/* Feature styles: key rebinding, loot filter, character switch, nameplate level */

/* ---------- key rebinding ---------- */
.keys-grid.rebind { grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
.keys-grid.rebind div { justify-content: flex-start; }
.keys-grid.rebind button.kbd { min-width: 64px; padding: 3px 10px; cursor: pointer; transition: transform 0.08s, box-shadow 0.12s; }
.keys-grid.rebind button.kbd:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--accent-2, #5fb0ff); }
.keys-grid.rebind button.kbd.fixed { opacity: 0.55; cursor: default; }
.keys-grid.rebind button.kbd.listening { min-width: 128px; color: #1b1300; background: linear-gradient(180deg, #ffe27a, #ffb21c); border-color: #b97800; animation: kbdPulse 0.9s ease-in-out infinite; }
@keyframes kbdPulse { 50% { box-shadow: 0 0 0 4px rgba(255, 197, 49, 0.45); } }

/* ---------- character panel: switch hero ---------- */
.card.char-switch { display: flex; align-items: center; gap: 12px; margin-top: 4px; }

/* ---------- kill streak damage bonus ---------- */
.hud-streak em { margin-top: 2px; font-style: normal; font-weight: 800; font-size: 13px; color: #ffb36b; text-shadow: 0 1px 2px #000, 0 0 8px rgba(255, 120, 40, 0.6); }

/* ---------- loot filter / premium ---------- */
.chip.prem-chip { background: linear-gradient(180deg, #ffe27a, #e2a100); color: #3a2400; font-weight: 800; border: 1px solid #fff0b3; box-shadow: 0 0 10px rgba(255, 200, 60, 0.45); }

/* ---------- rare drops: odds in tooltip + banner ---------- */
.tt-odds { margin-top: 6px; padding: 5px 8px; border-radius: 8px; font-size: 12.5px; color: #ffe9a8; background: linear-gradient(90deg, rgba(255, 94, 209, 0.18), rgba(255, 197, 49, 0.12)); border: 1px solid rgba(255, 197, 49, 0.35); }
.tt-odds b { color: #fff; }
.tt-odds span { display: block; font-size: 11px; color: #c9b88a; margin-top: 1px; }
.banner-raredrop .bt { color: var(--rd, #ff5ed1); }
.banner-raredrop .bodds { margin-top: 4px; font-family: var(--font-title); font-size: 22px; color: #ffe27a; letter-spacing: 1px; }

/* ---------- portraits: avatar + frame ---------- */
.avatar.has-portrait { width: 84px; height: 84px; background: none; border: 0; box-shadow: none; }
.avatar.has-portrait.premium { box-shadow: none; }
.avatar.has-portrait .lvl { z-index: 3; }
.portrait { position: relative; flex: none; border-radius: 50%; isolation: isolate; }
.portrait .pt-inner { position: absolute; inset: 9%; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 28%, #3d4f8f 0%, #1a2148 62%, #0d1230 100%); box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6); z-index: 1; }
.portrait .pt-inner img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.portrait .pt-inner svg { width: 74%; height: 74%; }
.portrait .pt-ring { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 2; }
/* ring helper: a conic gradient masked to a band */
.portrait .pt-ring::before, .portrait .pt-ring::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.portrait .pt-ring::before { inset: 0; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); }
@keyframes ptSpin { to { transform: rotate(360deg); } }
@keyframes ptPulse { 50% { opacity: 0.55; } }

.frame-basic .pt-ring::before { background: linear-gradient(160deg, #ffffff, #9fb6e8 55%, #ffffff); }
.frame-basic .pt-ring { box-shadow: 0 0 0 2px rgba(95, 176, 255, 0.25), 0 5px 14px rgba(0, 0, 0, 0.45); }

.frame-bronze .pt-ring::before { background: conic-gradient(#8a4b1d, #e3a46a, #7a3f15, #d69157, #8a4b1d); }
.frame-bronze .pt-ring { box-shadow: 0 0 10px rgba(214, 145, 87, 0.45), 0 5px 14px rgba(0, 0, 0, 0.45); }

.frame-silver .pt-ring::before { background: conic-gradient(#8e9bb0, #ffffff, #a9b6c9, #eef3fb, #8e9bb0); }
.frame-silver .pt-ring { box-shadow: 0 0 12px rgba(220, 232, 255, 0.55), 0 5px 14px rgba(0, 0, 0, 0.45); }

.frame-gold .pt-ring::before, .frame-premium .pt-ring::before { background: conic-gradient(#b8860b, #fff3b0, #d4a017, #ffe27a, #a87400, #fff3b0, #b8860b); animation: ptSpin 6s linear infinite; }
.frame-gold .pt-ring, .frame-premium .pt-ring { box-shadow: 0 0 16px rgba(255, 205, 70, 0.6), 0 5px 14px rgba(0, 0, 0, 0.45); }
.frame-premium .pt-ring::after { content: "\265B"; inset: auto; left: 50%; top: -15px; transform: translateX(-50%); font-size: 22px; line-height: 1; color: #ffe27a; text-shadow: 0 0 8px rgba(255, 200, 60, 0.9), 0 2px 2px #6b3a00; }

.frame-vip .pt-ring::before { background: conic-gradient(#38bdf8, #e0f7ff, #6366f1, #a5f3fc, #38bdf8); animation: ptSpin 5s linear infinite; }
.frame-vip .pt-ring { box-shadow: 0 0 16px rgba(56, 189, 248, 0.65), 0 5px 14px rgba(0, 0, 0, 0.45); }
.frame-vip .pt-ring::after { content: "\25C6"; inset: auto; left: 50%; top: -12px; transform: translateX(-50%); font-size: 18px; color: #bff4ff; text-shadow: 0 0 10px #38bdf8; }

.frame-vine .pt-ring::before { background: conic-gradient(#2f7a26, #8be06b, #3f8f2f, #c6f68d, #2f7a26); }
.frame-vine .pt-ring { box-shadow: 0 0 12px rgba(120, 220, 90, 0.5), 0 5px 14px rgba(0, 0, 0, 0.45); }
.frame-vine .pt-ring::after { inset: -4px; background: radial-gradient(circle at 15% 25%, #ff6b9a 0 3px, transparent 4px), radial-gradient(circle at 85% 20%, #ffd93b 0 3px, transparent 4px), radial-gradient(circle at 80% 85%, #ff6b9a 0 3px, transparent 4px), radial-gradient(circle at 18% 80%, #ffffff 0 2.5px, transparent 3.5px); }

.frame-frost .pt-ring::before { background: conic-gradient(#e0f7ff, #4fc3f7, #ffffff, #81d4fa, #b3e5fc, #e0f7ff); animation: ptSpin 9s linear infinite; }
.frame-frost .pt-ring { box-shadow: 0 0 18px rgba(129, 212, 250, 0.75), 0 5px 14px rgba(0, 0, 0, 0.45); }
.frame-frost .pt-ring::after { inset: -6px; background: radial-gradient(circle at 50% 2%, #fff 0 2px, transparent 3px), radial-gradient(circle at 98% 50%, #e0f7ff 0 2px, transparent 3px), radial-gradient(circle at 50% 98%, #fff 0 2px, transparent 3px), radial-gradient(circle at 2% 50%, #e0f7ff 0 2px, transparent 3px); animation: ptSpin 14s linear infinite reverse; }

.frame-ember .pt-ring::before { background: conic-gradient(#7f1d1d, #ff6d00, #ffd54f, #ff3d00, #b71c1c, #ffab00, #7f1d1d); animation: ptSpin 3.5s linear infinite; }
.frame-ember .pt-ring { box-shadow: 0 0 20px rgba(255, 109, 0, 0.75), 0 0 6px rgba(255, 200, 80, 0.9), 0 5px 14px rgba(0, 0, 0, 0.45); }
.frame-ember .pt-ring::after { inset: -5px; box-shadow: 0 0 14px 2px rgba(255, 90, 0, 0.55); animation: ptPulse 1.2s ease-in-out infinite; }

.frame-royal .pt-ring::before { background: conic-gradient(#6a1b9a, #ffd54f, #8e24aa, #fff3b0, #4a148c, #ffd54f, #6a1b9a); animation: ptSpin 7s linear infinite; }
.frame-royal .pt-ring { box-shadow: 0 0 0 2px #ffd54f, 0 0 18px rgba(186, 104, 200, 0.7), 0 5px 14px rgba(0, 0, 0, 0.45); }

.frame-tide .pt-ring::before { background: repeating-conic-gradient(#0e7490 0 12deg, #67e8f9 12deg 20deg, #f0fdff 20deg 24deg, #0891b2 24deg 36deg); animation: ptSpin 8s linear infinite; }
.frame-tide .pt-ring { box-shadow: 0 0 20px rgba(103, 232, 249, 0.75), 0 5px 14px rgba(0, 0, 0, 0.45); }
.frame-tide .pt-ring::after { inset: -6px; background: radial-gradient(circle at 50% 0%, #fff 0 3.5px, transparent 4.5px), radial-gradient(circle at 93% 75%, #fdf2f8 0 3px, transparent 4px), radial-gradient(circle at 7% 75%, #fdf2f8 0 3px, transparent 4px); animation: ptSpin 12s linear infinite reverse; }

.frame-void .pt-ring::before { background: conic-gradient(#0b0218, #7c4dff, #1a0533, #d36bff, #0b0218, #651fff, #0b0218); animation: ptSpin 2.8s linear infinite; }
.frame-void .pt-ring { box-shadow: 0 0 22px rgba(124, 77, 255, 0.85), 0 0 44px rgba(101, 31, 255, 0.35), 0 5px 14px rgba(0, 0, 0, 0.5); }
.frame-void .pt-ring::after { inset: -8px; border: 2px dashed rgba(211, 107, 255, 0.55); animation: ptSpin 10s linear infinite reverse; }

/* the two rarest frames: starlight / rainbow, glow pulse and orbiting sparks */
.frame-celestial .pt-ring::before { background: conic-gradient(#fff8d6, #80deea, #ffffff, #b388ff, #fff59d, #80deea, #fff8d6); animation: ptSpin 4s linear infinite; }
.frame-celestial .pt-ring { box-shadow: 0 0 24px rgba(255, 248, 214, 0.85), 0 0 50px rgba(128, 222, 234, 0.45), 0 5px 14px rgba(0, 0, 0, 0.5); }
.frame-celestial .pt-ring::after { inset: -10px; background:
  radial-gradient(circle at 50% 0%, #fff 0 2.5px, transparent 3.5px), radial-gradient(circle at 100% 50%, #fff59d 0 2px, transparent 3px),
  radial-gradient(circle at 50% 100%, #80deea 0 2.5px, transparent 3.5px), radial-gradient(circle at 0% 50%, #fff 0 2px, transparent 3px),
  radial-gradient(circle at 15% 15%, #b388ff 0 1.5px, transparent 2.5px), radial-gradient(circle at 85% 85%, #fff 0 1.5px, transparent 2.5px);
  animation: ptSpin 7s linear infinite reverse; }

.frame-divine .pt-ring::before { background: conic-gradient(#ff5252, #ffab40, #ffff00, #69f0ae, #40c4ff, #e040fb, #ff5252); animation: ptSpin 2.2s linear infinite; }
.frame-divine .pt-ring { box-shadow: 0 0 26px rgba(255, 94, 209, 0.9), 0 0 56px rgba(255, 255, 255, 0.35), 0 5px 14px rgba(0, 0, 0, 0.5); }
.frame-divine .pt-ring::after { inset: -11px; background:
  radial-gradient(circle at 50% 0%, #fff 0 3px, transparent 4px), radial-gradient(circle at 100% 50%, #ffff8d 0 2.5px, transparent 3.5px),
  radial-gradient(circle at 50% 100%, #ff80ab 0 3px, transparent 4px), radial-gradient(circle at 0% 50%, #84ffff 0 2.5px, transparent 3.5px);
  box-shadow: 0 0 18px 4px rgba(255, 94, 209, 0.35); animation: ptSpin 4s linear infinite reverse, ptPulse 1.6s ease-in-out infinite; }

.pt-card { align-items: center; }
.pt-card.active { box-shadow: 0 0 0 2px var(--accent, #ffc531), 0 0 18px rgba(255, 197, 49, 0.35); }

/* ---------- auto settings groups ---------- */
.card.auto-group { margin-bottom: 12px; }
.card.auto-group h3 { margin-bottom: 2px; }

/* ---------- rarity 7: Kosmisch (animated starfield + shimmer) ---------- */
:root { --r7: #8ef6ff; }
.slot.r7 {
  background:
    radial-gradient(1.4px 1.4px at 18% 22%, #ffffff 98%, transparent),
    radial-gradient(1.1px 1.1px at 72% 18%, #cffaff 98%, transparent),
    radial-gradient(1.6px 1.6px at 42% 68%, #ffffff 98%, transparent),
    radial-gradient(1px 1px at 84% 74%, #e9d5ff 98%, transparent),
    radial-gradient(1.2px 1.2px at 28% 86%, #ffffff 98%, transparent),
    radial-gradient(1px 1px at 60% 40%, #a5f3fc 98%, transparent),
    radial-gradient(ellipse at 30% 20%, rgba(168, 85, 247, 0.55), transparent 60%),
    radial-gradient(ellipse at 75% 80%, rgba(34, 211, 238, 0.45), transparent 60%),
    linear-gradient(160deg, #0b1036 0%, #1e0b4a 50%, #04182e 100%);
  background-size: 64px 64px, 52px 52px, 70px 70px, 46px 46px, 58px 58px, 40px 40px, 100% 100%, 100% 100%, 100% 100%;
  animation: cosmicDrift 9s linear infinite;
  box-shadow: inset 0 0 0 2px rgba(142, 246, 255, 0.85), 0 0 16px rgba(142, 246, 255, 0.75), 0 0 30px rgba(168, 85, 247, 0.45), 0 4px 10px rgba(0, 0, 0, 0.5);
}
@keyframes cosmicDrift {
  to { background-position: 64px 32px, -52px 26px, 35px 70px, -46px -23px, 29px -58px, 40px 20px, 0 0, 0 0, 0 0; }
}
.slot.r7::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.55) 45%, rgba(142, 246, 255, 0.5) 50%, rgba(232, 121, 249, 0.45) 55%, transparent 75%);
  background-size: 250% 100%; animation: shine 2.4s infinite; mix-blend-mode: screen; }
.slot.r7::after { content: '✧'; position: absolute; top: -6px; right: -4px; font-size: 16px; color: #e3fdff; text-shadow: 0 0 6px #8ef6ff, 0 0 12px #a855f7; animation: ptPulse 1.4s ease-in-out infinite; pointer-events: none; }

.r-text-7, .cosmic-text {
  background: linear-gradient(90deg, #8ef6ff, #ffffff, #e879f9, #8ef6ff, #ffffff);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important; -webkit-text-fill-color: transparent;
  animation: cosmicText 3s linear infinite;
  filter: drop-shadow(0 0 6px rgba(142, 246, 255, 0.55));
}
@keyframes cosmicText { to { background-position: 300% 0; } }
.tt-cosmic { font-weight: 800; color: #9ff9ff; text-shadow: 0 0 8px rgba(142, 246, 255, 0.6); }

/* Berufe: the HUD menu has 9 buttons – keep it clear of the centred skill bar on narrower screens (16:10, 4:3) */
@media (max-aspect-ratio: 16/9) { .hud-menu { gap: 2px; } .hud-menu .mbtn { width: 61px; } }
@media (max-aspect-ratio: 8/5) { .hud-menu .mbtn { width: 56px; } .hud-menu .mbtn .ml { font-size: 10px; } }

/* ---------- main quest chapters ---------- */
.card.chapter-card { margin-bottom: 12px; background: linear-gradient(135deg, rgba(255, 197, 49, 0.12), rgba(95, 176, 255, 0.08)); border: 1px solid rgba(255, 197, 49, 0.35); }
.chapter-card .ch-kicker { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--w-gold, #ffc531); }
.chapter-card .ch-title { font-size: 26px; color: var(--w-title, #ffe27a); margin: 2px 0 4px; }
.chapter-card .ch-story { font-size: 14px; line-height: 1.45; color: var(--w-ink-soft, #c9d3f0); font-style: italic; margin-bottom: 8px; }

/* ---------- backup / restore ---------- */
.recovery-code { font-family: Consolas, "Courier New", monospace; font-size: 20px; font-weight: 800; letter-spacing: 3px; padding: 4px 14px; border-radius: 10px; color: #ffe27a; background: rgba(0, 0, 0, 0.35); border: 1px dashed rgba(255, 197, 49, 0.6); user-select: all; }

/* ---------- bank chest ---------- */
.card.bank-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bank-count { font-family: var(--font-title); font-size: 20px; color: var(--w-gold, #ffc531); white-space: nowrap; }
.bank-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bank-tab { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 74px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--w-line, rgba(255, 255, 255, 0.15)); background: rgba(255, 255, 255, 0.04); color: var(--w-ink, #eef2ff); font-weight: 700; font-size: 13px; cursor: pointer; }
.bank-tab small { font-weight: 600; font-size: 11px; color: var(--w-ink-soft, #a9b4d6); }
.bank-tab.on { border-color: var(--w-gold, #ffc531); background: linear-gradient(180deg, rgba(255, 197, 49, 0.22), rgba(255, 197, 49, 0.06)); box-shadow: 0 0 12px rgba(255, 197, 49, 0.25); }
.bank-tab.buy { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px; border-style: dashed; border-color: rgba(255, 197, 49, 0.6); color: #ffe27a; }
.bank-tab.buy small { flex-basis: 100%; text-align: center; color: #ffe27a; }
.bank-tab.locked { flex-direction: row; gap: 4px; opacity: 0.35; cursor: default; }
.bank-grid .bank-empty { opacity: 0.35; }

/* ---------- 'new' badge in wardrobe ---------- */
.chip.new-chip { background: linear-gradient(180deg, #ff6b6b, #e02424); color: #fff; font-weight: 800; border: 1px solid #ffb3b3; box-shadow: 0 0 8px rgba(255, 70, 70, 0.6); }
.pt-card { position: relative; }
.chip.pt-new { position: absolute; top: 6px; right: 6px; }

/* ---------- auto mode locked (first two worlds) ---------- */
.auto-btn.locked, .locked.auto-btn { filter: grayscale(1) brightness(0.7); }
.card.auto-lock { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; border: 1px solid rgba(255, 197, 49, 0.4); }

/* ---------- dialogs: buttons wrap instead of being cut off ---------- */
.dialog { max-width: min(94vw, 900px); }
.dialog-foot { flex-wrap: wrap; row-gap: 10px; }
.dialog-foot .btn { flex: 0 1 auto; white-space: nowrap; }

/* ---------- backpack dock: a little wider, action row wraps if needed ---------- */
.win.dock-right { width: 620px; }
.bag-actions { flex-wrap: wrap; row-gap: 6px; }
.bag-actions .inp { min-width: 0; }

/* ---------- backpack: automatic loot row ---------- */
.auto-loot-row { flex-wrap: wrap; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--w-line, rgba(255,255,255,0.12)); }
.auto-loot-row .seg button { padding: 3px 10px; }

.auto-sets { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; cursor: pointer; }

/* ---------- Kluften (rifts): window, HUD progress, dungeon list entry ---------- */
.card.rift-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; border: 1px solid rgba(180, 77, 255, 0.45); background: radial-gradient(ellipse at 12% 50%, rgba(180, 77, 255, 0.22), transparent 60%), var(--g-bg-soft, rgba(14, 18, 40, 0.62)); }
.rift-orb { width: 86px; height: 86px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle, rgba(227, 184, 255, 0.35), rgba(120, 40, 200, 0.12) 60%, transparent 72%); }
.rift-stage { display: flex; align-items: center; gap: 10px; }
.rift-stage .rs-num { font-family: var(--font-title); font-size: 40px; min-width: 70px; text-align: center; color: #e3b8ff; text-shadow: 0 0 14px rgba(180, 77, 255, 0.7); }
.rift-rw { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.rift-rw > span:nth-child(2) { flex: 1; }
.rift-rw b { text-align: right; }
.boss-item.rift-entry { border-color: rgba(180, 77, 255, 0.6); background: linear-gradient(90deg, rgba(180, 77, 255, 0.22), rgba(180, 77, 255, 0.04)); }
.instance-timer .rift-timer { position: relative; min-width: 280px; text-align: center; margin: -2px -18px; padding: 2px 18px; border-radius: 999px; overflow: hidden; }
.instance-timer .rift-timer .rt-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(120, 40, 200, 0.8), rgba(200, 120, 255, 0.8)); box-shadow: inset -6px 0 12px rgba(255, 220, 255, 0.35); transition: width 0.3s; }
.instance-timer .rift-timer .rt-txt { position: relative; }

/* ---------- map overview (click on minimap) + legend (also in the route window) ---------- */
.win[data-win="mapview"] { width: 900px; max-width: calc(100vw - 28px); }
.mv-layout { display: grid; grid-template-columns: 236px 1fr; gap: 12px; height: 100%; min-height: 0; }
.mv-right { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
.mv-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mv-top .title-font { font-size: 18px; }
.mv-map { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--w-line-strong, #2c3560); box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5); aspect-ratio: 1; max-height: calc(100vh - 330px); align-self: center; width: 100%; max-width: calc(100vh - 330px); cursor: crosshair; }
.mv-canvas { width: 100%; height: 100%; display: block; }
.mv-info, .mv-focus { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; }
.mv-focus { background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.35); font-weight: 700; }
.mv-sel { font-weight: 800; font-size: 14px; }
.map-legend { display: flex; flex-direction: column; min-height: 0; max-height: 100%; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 8px; }
.mk-head { display: flex; align-items: center; gap: 4px; }
.mk-head b { font-size: 15px; }
.mk-mini { font: inherit; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); color: inherit; cursor: pointer; }
.mk-mini:hover { background: rgba(255, 255, 255, 0.14); }
.mk-hint { font-size: 11px; opacity: 0.65; margin: 3px 0 6px; line-height: 1.3; }
.mk-list { overflow-y: auto; min-height: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; padding-right: 2px; }
.mk-sec { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.55; margin: 8px 2px 2px; }
.mk-sec:first-child { margin-top: 0; }
.mk-row { display: flex; align-items: center; gap: 7px; padding: 4px 6px; border-radius: 9px; cursor: pointer; transition: background 0.12s, opacity 0.12s; }
.mk-row:hover { background: rgba(255, 255, 255, 0.07); }
.mk-row.off { opacity: 0.35; }
.mk-row.off .mk-l { text-decoration: line-through; }
.mk-row.focus { background: rgba(74, 222, 128, 0.14); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.45); }
.mk-sym { width: 22px; height: 22px; flex: none; }
.mk-txt { flex: 1; min-width: 0; }
.mk-l { font-size: 13px; font-weight: 700; line-height: 1.15; }
.mk-s { font-size: 10.5px; opacity: 0.6; line-height: 1.2; }
.mk-target { flex: none; font-size: 14px; width: 28px; height: 26px; border-radius: 8px; border: 1px solid rgba(74, 222, 128, 0.4); background: rgba(74, 222, 128, 0.1); cursor: pointer; padding: 0; }
.mk-target:hover { background: rgba(74, 222, 128, 0.3); }
.route-layout.with-legend { grid-template-columns: 220px minmax(0, 1fr) 320px; }
.route-layout.with-legend .map-legend { max-height: 100%; overflow: hidden; }
.safe-chip { font-size: 11px; font-weight: 800; padding: 0 8px; border-radius: 999px; color: #052e16; background: linear-gradient(180deg, #86efac, #22c55e); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); white-space: nowrap; }
.minimap canvas { cursor: pointer; }
.round-btn { position: relative; }
.mount-pick { position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: #1b2140; border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); cursor: pointer; }
.mount-pick:hover { background: #2d3768; }
/* instance timer + boss bar below the HUD feature row (the row got taller with labels) */
.instance-timer { top: 88px; }
.hud-boss { top: 128px; }
