:root {
  --bg: #14121a; --panel: rgba(24, 21, 30, 0.96); --line: #4a3f5c; --text: #ece6d8; --muted: #a59bb3;
  --accent: #e0a64a; --accent2: #8b6cff; --good: #6fd36f; --bad: #ff7a6a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif; font-size: 14px;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: none;
}
#game { position: fixed; inset: 0; display: block; touch-action: none; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; }
h4 { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin: 12px 0 6px; font-weight: 600; }

/* ------------------------------------------------ przyciski */
.btn, .btn-play {
  border: 1px solid var(--line); background: #2a2435; border-radius: 8px; padding: 9px 16px; transition: background .15s, transform .1s;
}
.btn:hover { background: #352d44; }
.btn-play { background: linear-gradient(#e7b55c, #c9873a); color: #22160a; font-weight: 700; border-color: #f2cc7a; font-size: 17px; width: 100%; padding: 12px; }
.btn-play:hover { filter: brightness(1.08); }
.btn-play:active, .btn:active { transform: translateY(1px); }
.btn-play.small { width: auto; font-size: 15px; padding: 9px 22px; }
.btn.wide { width: 100%; margin-top: 8px; }
.btn-x { background: none; border: none; color: var(--muted); font-size: 18px; padding: 2px 6px; }
.btn-x:hover { color: var(--text); }
.btn-icon {
  display: flex; flex-direction: column; align-items: center; gap: 1px; width: 62px; padding: 6px 0 4px; font-size: 22px;
  background: rgba(24, 21, 30, 0.85); border: 1px solid var(--line); border-radius: 10px;
}
.btn-icon small { font-size: 10px; color: var(--muted); }
.btn-icon:hover { background: rgba(48, 40, 62, 0.95); }

/* ------------------------------------------------ nakładki i panele */
.overlay {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; overflow: auto; z-index: 40;
  background: radial-gradient(ellipse at center, rgba(40, 28, 60, 0.6), rgba(5, 4, 8, 0.92));
}
.overlay.dim { background: rgba(0, 0, 0, 0.55); z-index: 45; }
.panel {
  width: min(460px, 100%); margin: auto; padding: 26px 26px 20px; border-radius: 14px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 16px 60px rgba(0, 0, 0, 0.6);
}
.panel.narrow { width: min(360px, 100%); }
.panel h2 { color: var(--accent); margin-bottom: 14px; font-size: 24px; }
.title { font-size: 46px; letter-spacing: 1px; color: var(--accent); text-shadow: 0 3px 0 #5a3a12, 0 0 30px rgba(224, 166, 74, 0.3); }
.subtitle { color: var(--muted); margin: 6px 0 20px; }
.status { color: var(--muted); min-height: 20px; margin: 10px 0 4px; font-size: 13px; }
.menu-row { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.menu-row .btn { flex: 1; }
#nameInput { width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line); background: #0f0d14; color: var(--text); margin-bottom: 10px; font-size: 16px; text-align: center; }
.class-pick { display: grid; gap: 8px; margin-bottom: 12px; }
.class-card { display: grid; grid-template-columns: 18px 1fr; gap: 2px 10px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #1d1926; }
.class-card.sel { border-color: var(--accent); background: #2a2133; }
.class-dot { width: 14px; height: 14px; border-radius: 50%; grid-row: span 2; margin-top: 3px; }
.class-card small { color: var(--muted); line-height: 1.35; }
.char-card { display: flex; flex-direction: column; gap: 2px; padding: 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; background: #1d1926; }
.char-card b { font-size: 20px; color: var(--accent); }
.char-card span, .char-card small { color: var(--muted); }
#setBox { text-align: left; margin-bottom: 8px; }
#setBox select { background: #0f0d14; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }
.help-body { text-align: left; line-height: 1.5; margin-bottom: 14px; }
.help-body p { margin-bottom: 8px; }
.help-body b { color: var(--accent); }

/* ------------------------------------------------ HUD */
#hud { position: fixed; left: 10px; top: 10px; z-index: 10; pointer-events: none; }
.hud-card { background: rgba(20, 17, 26, 0.82); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; width: 220px; }
.hud-name { font-weight: 700; margin-bottom: 5px; }
.hud-name small { color: var(--muted); font-weight: 400; }
.hud-gold { margin-top: 5px; color: #f2d36b; font-size: 13px; }
.bar { position: relative; height: 16px; border-radius: 4px; background: rgba(0, 0, 0, 0.55); overflow: hidden; }
.bar > div { height: 100%; background: linear-gradient(#e0574a, #a8302a); transition: width .25s; }
.bar.res > div { background: #e0533a; }
.bar span { position: absolute; inset: 0; font-size: 11px; line-height: 16px; text-align: center; text-shadow: 0 1px 2px #000; }
.bar.small { height: 13px; margin-top: 4px; }
.bar.small span { font-size: 10px; line-height: 13px; }
#hudButtons { position: fixed; right: 10px; top: 10px; z-index: 10; display: flex; gap: 6px; }
#zoneBanner {
  position: fixed; left: 50%; top: 22%; transform: translateX(-50%); z-index: 9; pointer-events: none;
  font-size: 30px; font-weight: 700; color: #f2e6c8; text-shadow: 0 2px 8px #000; letter-spacing: 2px; transition: opacity 1s;
}
#zoneBanner.fade { opacity: 0; }

/* ------------------------------------------------ okna (postać, worek) */
.window {
  position: fixed; z-index: 30; right: 10px; top: 74px; width: min(560px, calc(100vw - 20px)); max-height: calc(100vh - 90px); overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55); padding: 10px 14px 14px;
}
.window.small { width: min(300px, calc(100vw - 20px)); right: auto; left: 50%; transform: translateX(-50%); top: 18%; }
.win-head { display: flex; justify-content: space-between; align-items: center; }
.win-head h3 { color: var(--accent); }
.char-body { display: flex; gap: 16px; flex-wrap: wrap; }
.char-left, .char-right { flex: 1 1 240px; }
.char-title { margin: 6px 0 8px; }
.char-title span { color: var(--muted); }
.equip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.eq-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.eq-cell small { font-size: 10px; color: var(--muted); text-align: center; line-height: 1.1; }
.bag-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.slot {
  position: relative; width: 100%; aspect-ratio: 1; max-width: 56px; border-radius: 8px; border: 2px solid #3a3346; background: #110f16;
  display: flex; align-items: center; justify-content: center; touch-action: none;
}
.bag-grid .slot { max-width: none; }
.slot.full { cursor: grab; background: #1c1824; }
.slot .icon { font-size: 26px; line-height: 1; pointer-events: none; }
.slot .icon.ghost { opacity: 0.18; filter: grayscale(1); }
.slot .count { position: absolute; right: 4px; bottom: 1px; font-size: 11px; font-weight: 700; text-shadow: 0 1px 2px #000; }
.slot.locked { opacity: 0.55; }
.slot.trash { margin-top: 10px; aspect-ratio: auto; max-width: none; height: 44px; gap: 8px; border-style: dashed; color: var(--muted); font-size: 12px; }
.slot.trash span { font-size: 20px; }
.eui-ghost.slot { border-radius: 8px; }
.stat-list > div { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 13px; }
.stat-list b { color: #f2e6c8; font-weight: 600; }
.char-gold { margin-top: 10px; color: #f2d36b; }
.loot-list { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 10px; }
.loot-row { display: flex; gap: 8px; align-items: center; padding: 6px 8px; text-align: left; background: #1c1824; border: 1px solid var(--line); border-radius: 8px; }
.loot-row:hover { background: #2a2335; }
.loot-row .icon { font-size: 20px; }
#lootAll { width: 100%; }

/* dymki przedmiotów */
.tip-name { font-weight: 700; font-size: 14px; }
.tip-sub { color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.tip-affix { color: #7fb8ff; }
.tip-good { color: var(--good); }
.tip-bad { color: var(--bad); }
.tip-hint { color: #8a8098; font-size: 11px; margin-top: 5px; font-style: italic; }
.tip-sep { margin-top: 6px; border-top: 1px solid #333; padding-top: 4px; }

/* ------------------------------------------------ walka */
#combat {
  position: fixed; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 20; width: min(860px, calc(100vw - 16px));
  background: rgba(18, 15, 24, 0.94); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 12px;
  box-shadow: 0 -6px 40px rgba(0, 0, 0, 0.5);
}
.cb-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
#cbRound { color: var(--muted); font-size: 12px; white-space: nowrap; }
#cbTurn { font-weight: 700; white-space: nowrap; }
#cbTurn.mine { color: var(--accent); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: 0.6; } }
.cb-timer { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
#cbTimer { height: 100%; background: var(--accent); transition: width .1s linear; }
#cbTimer.low { background: var(--bad); }
.cb-sides { display: flex; gap: 10px; align-items: center; }
.cb-side { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }
#cbEnemies { justify-content: flex-end; }
.cb-vs { color: #6a5d7a; font-size: 18px; }
.cb-card {
  position: relative; flex: 0 1 170px; min-width: 120px; padding: 6px 8px; border-radius: 9px; background: #211c2a; border: 2px solid #3a3346;
  transition: border-color .15s, transform .15s;
}
#cbEnemies .cb-card { cursor: pointer; }
.cb-card.active { border-color: #f2cc7a; transform: translateY(-2px); }
.cb-card.target { box-shadow: 0 0 0 2px var(--bad) inset; }
.cb-card.me .cb-name span { color: #fff6c8; }
.cb-card.out { opacity: 0.35; filter: grayscale(1); cursor: default; }
.cb-name { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 600; }
.cb-name small { color: var(--muted); font-weight: 400; }
.cb-status { display: flex; gap: 4px; margin-top: 4px; font-size: 12px; }
.cb-status span { background: rgba(0, 0, 0, 0.4); border-radius: 4px; padding: 0 4px; }
.float { position: absolute; right: 8px; top: -6px; font-weight: 800; font-size: 18px; pointer-events: none; animation: floatUp 1s forwards; text-shadow: 0 2px 3px #000; }
.float.dmg { color: #ff6a5a; }
.float.heal { color: var(--good); }
@keyframes floatUp { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-26px); opacity: 0; } }
.cb-order { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; min-height: 20px; margin: 8px 0 6px; font-size: 11px; }
.cb-order small { color: var(--muted); margin-right: 2px; }
.chip { padding: 1px 7px; border-radius: 10px; background: #2a2435; }
.chip.ally { color: #a8d8ff; }
.chip.foe { color: #ffb0a0; }
.cb-bottom { display: flex; gap: 10px; align-items: stretch; }
.cb-actions { display: flex; gap: 6px; flex-wrap: wrap; flex: 0 1 auto; }
.ab-btn {
  position: relative; width: 74px; padding: 6px 2px 4px; display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: #2a2435; border: 1px solid #5a4d6e; border-radius: 9px;
}
.ab-btn:hover:not(:disabled) { background: #3a3150; border-color: var(--accent); }
.ab-btn:disabled { opacity: 0.4; cursor: default; }
.ab-btn.flee { border-color: #6e4d4d; }
.ab-icon { font-size: 22px; line-height: 1.1; }
.ab-name { font-size: 11px; line-height: 1.15; text-align: center; }
.ab-key { position: absolute; left: 5px; top: 3px; font-size: 10px; color: var(--muted); }
.ab-cost { font-size: 10px; color: #ff9a7a; }
.ab-cd { position: absolute; inset: 0; border-radius: 9px; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; }
.cb-log { flex: 1; min-width: 180px; height: 92px; overflow-y: auto; font-size: 12px; line-height: 1.4; padding: 4px 8px; background: rgba(0, 0, 0, 0.3); border-radius: 8px; user-select: text; }
.cb-log .round { color: #8a7d9c; text-align: center; }
.cb-log .mine { color: #f2d690; }
.cb-log .bad { color: #ff9a8a; }
.cb-log .good { color: var(--good); }
.cb-log .die { color: #d0c0ff; font-weight: 600; }
#cbBanner {
  position: fixed; left: 50%; top: 30%; transform: translate(-50%, -50%) scale(0.8); z-index: 25; pointer-events: none;
  font-size: 40px; font-weight: 800; text-shadow: 0 3px 12px #000; opacity: 0; transition: opacity .3s, transform .3s;
}
#cbBanner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#cbBanner.win { color: #f2d36b; }
#cbBanner.fled { color: #a8d8ff; }
#cbBanner.dead, #cbBanner.lose { color: #ff6a5a; }

/* ------------------------------------------------ telefon */
@media (max-width: 640px) {
  .title { font-size: 34px; }
  .hud-card { width: 170px; padding: 6px 8px; }
  .btn-icon { width: 52px; font-size: 18px; }
  #combat { padding: 8px; bottom: 4px; }
  .cb-card { min-width: 100px; flex-basis: 130px; }
  .cb-bottom { flex-direction: column; }
  .cb-log { height: 56px; }
  .ab-btn { width: 60px; }
  .window { top: 64px; }
}

/* ------------------------------------------------ etapy 2–6: HUD, drużyna, zaproszenia */
.hud-row { display: flex; justify-content: space-between; margin-top: 5px; font-size: 13px; color: #f2d36b; }
.bar.xp > div { background: linear-gradient(#7fb8ff, #3a6ad0); }
.bar.xp.locked > div { background: #666; }
#partyFrames { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; pointer-events: auto; }
.pf { background: rgba(20, 17, 26, 0.82); border: 1px solid #3f5a3f; border-radius: 8px; padding: 4px 8px; width: 170px; font-size: 12px; }
.pf.combat { border-color: #c0603a; }
.pf.off { opacity: 0.5; }
.pf-name { display: flex; justify-content: space-between; }
.pf-name small { color: var(--muted); }
.btn-icon { position: relative; }
.dot { position: absolute; top: 4px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #ffd23f; box-shadow: 0 0 6px #ffd23f; }
#invites { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 20px)); }
.invite { background: var(--panel); border: 1px solid var(--accent); border-radius: 12px; padding: 12px; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.invite.duel { border-color: #ff6a5a; }
.invite p { margin-bottom: 8px; }
.ctx { position: fixed; z-index: 60; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 190px; box-shadow: 0 8px 30px rgba(0,0,0,.6); }
.ctx button { text-align: left; background: #231e2c; border: 1px solid transparent; border-radius: 7px; padding: 7px 10px; }
.ctx button:hover { border-color: var(--accent); }
.ctx-title { font-weight: 700; padding: 4px 6px; color: var(--accent); }
.check { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); margin: 6px 0; cursor: pointer; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.note { color: var(--muted); font-size: 12px; margin: 4px 0 8px; line-height: 1.4; }

/* menu: konto, klasy, polegli, śmierć */
.acc-strip { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: -8px 0 14px; }
.acc-strip b { color: #f2e6c8; }
.class-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 8px; }
.class-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 10px; border: 1px solid var(--line); background: #1d1926; font-size: 12px; }
.class-card.sel { border-color: var(--accent); background: #2a2133; }
.class-icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.class-info { text-align: left; font-size: 13px; background: #17141e; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 12px; }
.class-info p { color: #cfc6dc; margin-bottom: 6px; line-height: 1.4; }
.class-stat { display: flex; gap: 8px; font-size: 12px; padding: 2px 0; color: var(--muted); }
.class-stat b { min-width: 86px; color: #cfc6dc; }
.class-stat.main b { color: var(--accent); }
.fallen { text-align: left; margin-top: 10px; font-size: 12px; }
.fallen h4 { margin-top: 0; }
.fallen-row { display: flex; justify-content: space-between; padding: 2px 0; color: #b8a8c8; }
.fallen-row small { color: var(--muted); }
.death-title { color: #ff6a5a !important; }
.death-stats { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.death-stats div { background: #1d1926; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; min-width: 70px; }
.death-stats span { font-size: 20px; font-weight: 700; color: #f2e6c8; }
.death-stats small { color: var(--muted); font-size: 11px; }

/* okna */
.window.left { right: auto; left: 10px; width: min(380px, calc(100vw - 20px)); }
.window.wide { width: min(760px, calc(100vw - 20px)); left: 50%; right: auto; transform: translateX(-50%); }
.bag-grid.stash { grid-template-columns: repeat(6, 1fr); }
.stash-gold { display: flex; gap: 6px; align-items: center; margin: 10px 0 6px; flex-wrap: wrap; }
.stash-gold input, .auc-filters input, .auc-filters select, .auc-sell-row input { background: #0f0d14; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; }
.stash-gold input { width: 80px; }
.slot.auction { border-style: dashed; opacity: 0.75; }
.slot .badge { position: absolute; left: 3px; top: 1px; font-size: 11px; }
.slot.sel { outline: 2px solid var(--accent); }
.set-info { margin: 6px 0; font-size: 12px; }
.passive-list { margin-top: 8px; font-size: 12px; }
.tip-fx { color: #ffb84a; }
.tip-set { color: #4ee06a; font-weight: 600; }
.tip-set-piece { color: #6a7a6a; font-size: 12px; }
.tip-set-piece.on { color: #9fe0a0; }
.tip-set-bonus { color: #6a7a6a; font-size: 12px; }
.tip-set-bonus.on { color: #4ee06a; }
.tip-price { color: #f2d36b; margin-top: 3px; }

/* talenty */
.tal-head { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 10px; }
.tal-milestones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.tal-ms { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: #17141e; opacity: 0.5; }
.tal-ms.on { opacity: 1; border-color: #ffd23f; }
.tal-ms small { display: block; color: var(--muted); font-size: 11px; }
.tal-icon { font-size: 22px; }
.tal-row { display: flex; gap: 10px; align-items: stretch; margin-bottom: 10px; }
.tal-row.locked { opacity: 0.55; }
.tal-tier { width: 90px; display: flex; flex-direction: column; justify-content: center; font-size: 12px; }
.tal-tier small { color: var(--muted); }
.tal-nodes { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tal-node { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; border: 2px solid #3a3346; background: #1c1824; font-size: 12px; text-align: center; }
.tal-node small { color: var(--muted); font-size: 10px; }
.tal-node.can { border-color: #a08a40; cursor: pointer; }
.tal-node.can:hover { background: #2a2335; }
.tal-node.on { border-color: #4ee06a; background: #1f2a20; }
.tal-node.off:not(.on) { opacity: 0.6; cursor: default; }
.tal-node:disabled { color: inherit; }

/* dom aukcyjny, handlarz, ranking */
.tabs { display: flex; gap: 4px; margin: 8px 0; }
.tabs button { flex: 1; background: #1d1926; border: 1px solid var(--line); border-radius: 8px; padding: 7px; }
.tabs button.sel { border-color: var(--accent); color: var(--accent); }
.auc-filters { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.auc-filters input { flex: 1; min-width: 140px; }
.auc-list, .glory-list { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow-y: auto; }
.auc-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; background: #1c1824; border: 1px solid #2e2838; border-radius: 8px; }
.auc-row .icon { font-size: 20px; }
.auc-name { flex: 1; font-weight: 600; }
.auc-req { color: var(--muted); }
.auc-right { display: flex; align-items: center; gap: 10px; }
.auc-seller { color: var(--muted); }
.auc-sell-row { display: flex; gap: 8px; align-items: center; margin: 10px 0 4px; flex-wrap: wrap; }
.auc-sell-row input { width: 110px; }
#aucSellGrid { grid-template-columns: repeat(8, 1fr); max-height: 34vh; overflow-y: auto; }
.auc-foot, .glory-have { margin-top: 8px; color: #f2d36b; }
.rank-me { margin: 6px 0 8px; color: var(--accent); }
.rank-list { display: flex; flex-direction: column; gap: 2px; max-height: 55vh; overflow-y: auto; }
.rank-row { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 8px; padding: 4px 8px; border-radius: 6px; background: #1c1824; font-size: 13px; }
.rank-row.me { outline: 1px solid var(--accent); }
.rank-row small { color: var(--muted); }

/* walka */
.cb-card.k-elite { border-color: #a08a40; }
.cb-card.k-boss, .cb-card.k-secret { border-color: #c0603a; }
.cb-card.k-titan { border-color: #ff3c3c; box-shadow: 0 0 12px rgba(255, 60, 60, 0.4); }
.cb-card.m { flex-basis: 120px; min-width: 96px; opacity: 0.92; }
.cb-card.ally-sel { box-shadow: 0 0 0 2px var(--good) inset; }
.cb-card.down { opacity: 0.6; filter: grayscale(0.7); cursor: pointer; }
.cb-card.down .cb-name small { color: var(--bad); }
.cb-status span.bad { background: rgba(120, 20, 20, 0.5); }
.cb-status span.good { background: rgba(20, 90, 40, 0.5); }
.bar.shielded { box-shadow: 0 0 0 1px #9fd0ff; }
.ab-btn.ms { border-color: #ffd23f; }

@media (max-width: 640px) {
  .tal-nodes { grid-template-columns: repeat(2, 1fr); }
  .tal-milestones { grid-template-columns: 1fr; }
  #aucSellGrid { grid-template-columns: repeat(5, 1fr); }
  .bag-grid.stash { grid-template-columns: repeat(5, 1fr); }
  .pf { width: 140px; }
}
