/* battle arena layout: css/battle_arena.css */
/* Battle Feed & Top Bar positioning (NEVER overlaps turn tokens or monster name) */
.battle-top { position: absolute !important; top: calc(8px + var(--safe-t, 0px)) !important; left: 10px !important; right: 10px !important; z-index: 10 !important; display: flex !important; justify-content: space-between !important; align-items: flex-start !important; pointer-events: auto !important; }
.battle-top-right { display: flex !important; flex-direction: column !important; align-items: flex-end !important; gap: 4px !important; }
.log-btn { background: linear-gradient(135deg, #2e141d, #14080d) !important; border: 1px solid #ffd36b !important; color: #ffd36b !important; font-family: Cinzel, serif !important; font-weight: 700 !important; font-size: 11px !important; padding: 3px 9px !important; border-radius: 5px !important; box-shadow: 0 2px 6px rgba(0,0,0,0.7) !important; cursor: pointer !important; pointer-events: auto !important; }
.battle-feed { position: absolute !important; top: calc(70px + var(--safe-t, 0px)) !important; right: 8px !important; left: auto !important; max-width: 46% !important; max-height: none !important; overflow: visible !important; display: flex !important; flex-direction: column !important; justify-content: flex-end !important; align-items: flex-end !important; gap: 1px !important; pointer-events: none !important; z-index: 8 !important; text-align: right !important; }
.battle-feed p { margin: 0.5px 0 !important; font-size: 8.5px !important; line-height: 10.5px !important; text-shadow: 0 1px 3px #000, 0 0 2px #000 !important; background: rgba(10, 4, 6, 0.72) !important; padding: 1.5px 5px !important; border-radius: 3px !important; align-self: flex-end !important;
  display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden !important; max-width: 100%; overflow-wrap: anywhere; }
.battle-feed p:not(:nth-last-child(-n+2)) { display: none !important; }
#battle:has(#raid-bar.on) .battle-feed { top: calc(95px + var(--safe-t, 0px)) !important; }
/* ===== Starborn-layout inventory + class paths (Starborn dark style) ===== */
/* toolbar */
.inv-bar2 { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--bone-d); }
.inv-bar2 .inv-search { flex: 1; min-width: 0; min-height: 38px; background: transparent; border: none; border-bottom: 1px solid var(--bone-d); border-radius: 0; color: #f3e6d0; font: inherit; padding: 0 4px; }
.sort-btn { position: relative; font-size: 13px; color: #e9dccb; cursor: pointer; white-space: nowrap; padding: 6px 4px; user-select: none; }
.sort-menu { display: none; position: absolute; left: -10px; top: 100%; z-index: 50; min-width: 160px; max-height: 60vh; overflow-y: auto; padding: 4px 0;
  background: linear-gradient(#efe6dc, #ddd0c2); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.7); }
.sort-menu.open { display: block; }
.sort-menu .so { padding: 7px 14px; font-size: 13px; color: #2a1a14; }
.sort-menu .so.on { background: rgba(120,40,40,.22); font-weight: 700; }
.more-btn { min-height: 30px; padding: 0 12px; border: none; border-radius: 4px; background: linear-gradient(#5f8a5a, #3e6340); color: #eaf5e4; font: 700 11px Cinzel, serif; letter-spacing: .08em; box-shadow: 0 2px 0 #1e331f; }
.more-btn.on { background: linear-gradient(#8a3a3a, #5a1e1e); box-shadow: 0 2px 0 #2b0c0c; }
.vsep { width: 1px; height: 24px; background: var(--bone-d); }
.inv-bar2 .vt { width: 34px; height: 32px; border: 1px solid var(--bone-d); background: #12080c; color: var(--bone); border-radius: 4px; font-size: 16px; }
.inv-bar2 .vt.on { background: linear-gradient(#5f8a5a, #3e6340); color: #fff; }
/* categories + list */
.inv-wrap2 { display: flex; gap: 10px; align-items: flex-start; }
.inv-side2 { flex: none; width: 104px; display: flex; flex-direction: column; position: sticky; top: 0; }
.inv-side2 .c2 { position: relative; display: flex; align-items: center; gap: 7px; padding: 7px 2px; background: none; border: none; color: #a99d92; font-size: 12.5px; text-align: left; }
.inv-side2 .c2 img { width: 18px; height: 18px; object-fit: contain; opacity: .75; }
.inv-side2 .c2.on { color: #fff; font-weight: 700; }
.inv-side2 .c2.on img { opacity: 1; }
.inv-side2 .c2 em { margin-left: auto; font-style: normal; font-size: 10px; background: var(--blood); color: #fff; border-radius: 8px; padding: 0 5px; }
.inv-list2 { flex: 1; min-width: 0; }
.lrow.r2 { margin: 0 0 6px; padding: 8px; background: rgba(255,255,255,.03); border: none; border-radius: 4px; }
.lrow.r2.sel { background: rgba(255,255,255,.09); }
.lrow.r2 .lt { font-size: 14px; }
.lrow.r2 .btn.view { min-width: 56px; min-height: 30px; font-size: 10px; letter-spacing: .1em; border-radius: 4px; background: #241418; border: 1px solid rgba(217,199,184,.35); }
.cur-orb { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #1a0b10; font-size: 15px; background: radial-gradient(circle at 35% 30%, #fff, var(--c) 45%, #2a1408 100%); box-shadow: 0 0 8px var(--c); }
.cur-orb.big { width: 64px; height: 64px; font-size: 30px; }
.inv-grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.inv-grid2 .gt { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: rgba(255,255,255,.04); border: 1px solid; border-radius: 6px; }
.inv-grid2 .gt .li, .inv-grid2 .gt img { width: 36px; height: 36px; object-fit: contain; }
.inv-grid2 .gt b { position: absolute; right: 3px; bottom: 1px; font-size: 10px; color: #fff; text-shadow: 0 1px 2px #000; }
.inv-grid2 .gt i { position: absolute; left: 3px; top: 1px; font-style: normal; font-size: 10px; color: #7df97d; }
/* MORE bar */
.bulk2 { position: sticky; bottom: 0; margin-top: 10px; padding: 8px; background: linear-gradient(#1c0d12, #0e0609); border-top: 1px solid var(--bone-d); }
.bb-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 13px; color: #e9dccb; }
.bb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.bb { min-height: 36px; border: 1px solid rgba(217,199,184,.25); border-radius: 4px; background: #241418; color: #e9dccb; font: 700 11px Cinzel, serif; letter-spacing: .08em; }
.bb.green { background: linear-gradient(#557f50, #375a38); color: #f0f8ec; border-left: 4px solid #c9a24a; }
.bb.red { background: linear-gradient(#b8303a, #7e1820); color: #fff; border-left: 4px solid #ff8a5a; }
.bb.block { width: 100%; }
/* item page */
.ip-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ip-back { min-height: 32px; padding: 0 10px; background: none; border: 1px solid var(--bone-d); border-radius: 4px; color: var(--bone); font-size: 13px; }
.ip-crumb { display: flex; flex-direction: column; line-height: 1.1; }
.ip-crumb small { color: #a99d92; font-size: 12px; }
.ip-crumb b { font-size: 20px; color: #f3e6d0; font-weight: 600; }
.ip-hero { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin: 10px 0 4px; }
.ip-arrow { height: 64px; background: none; border: none; color: #f3e6d0; font-size: 42px; line-height: 1; text-shadow: 0 2px 6px #000; }
.ip-glow { justify-self: center; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--g) 45%, transparent) 0, transparent 68%); }
.ip-img { width: 64px; height: 64px; object-fit: contain; }
.ip-name { text-align: center; font-size: 17px; font-weight: 600; margin-top: 2px; }
.ip-sub { text-align: center; color: #b9ab9e; font-size: 12.5px; margin-top: 2px; }
.ip-desc { text-align: center; color: #d9cfc4; font-size: 14px; line-height: 1.5; margin: 10px 8px; }
.ip-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin: 12px 6px; }
.ip-stats > div { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(217,199,184,.12); padding: 3px 0; font-size: 13px; }
.ip-stats span { color: #a99d92; }
.ip-stats i { font-style: normal; font-size: 11px; } .ip-stats i.up { color: #6be36b; } .ip-stats i.down { color: #ff6b6b; }
.ip-note { text-align: center; font-size: 11.5px; color: #8f8379; }
.ip-sec { text-align: center; font-family: Cinzel, serif; font-size: 12px; letter-spacing: .1em; color: var(--bone); margin: 12px 0 6px; }
.ip-info { margin: 14px auto 4px; max-width: 340px; }
.ip-info > div { display: flex; justify-content: center; gap: 10px; font-size: 13px; padding: 3px 0; }
.ip-info span { color: #a99d92; letter-spacing: .06em; }
.ip-info b { color: #f3e6d0; font-weight: 600; }
.ip-btns { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 18px 0 calc(96px + var(--safe-b, 0px)); }
.ipb { min-width: 190px; min-height: 40px; padding: 0 18px; border: 1px solid rgba(217,199,184,.25); border-radius: 4px; background: linear-gradient(#2b191d, #1a0e11); color: #eadfd2;
  font: 700 12px Cinzel, serif; letter-spacing: .1em; box-shadow: 0 3px 0 rgba(0,0,0,.6); }
.ipb.green { min-width: 120px; background: linear-gradient(#5f8a5a, #3e6340); color: #f0f8ec; }
.ipb.red { min-width: 120px; background: linear-gradient(#d24a4a, #9c2626); color: #fff; }
.ipb:disabled { opacity: .45; }
/* class paths */
.path-head { display: grid; grid-template-columns: 76px 1fr 76px; align-items: center; padding: 4px 0 10px; margin-bottom: 6px; border-bottom: 1px solid var(--bone-d); }
.ph-side { display: flex; align-items: center; gap: 2px; background: none; border: none; color: var(--bone); padding: 0; }
.ph-side.r { justify-content: flex-end; text-align: right; }
.ph-side i { font-style: normal; font-size: 30px; line-height: 1; }
.ph-side small { display: block; font-size: 9.5px; color: #b9ab9e; line-height: 1.1; }
.ph-ic { width: 34px; height: 34px; margin: 0 auto 2px; display: grid; place-items: center; border-radius: 50%; font-size: 18px; color: #ffd9a0;
  background: radial-gradient(circle at 40% 35%, #5a1a26, #16070c 75%); border: 1px solid rgba(217,199,184,.4); }
.ph-mid { text-align: center; line-height: 1.2; }
.ph-mid small { color: #b9ab9e; font-size: 13px; }
.ph-mid b { display: block; font-family: Cinzel, serif; font-size: 18px; letter-spacing: .06em; color: #f3e6d0; }
.tier-row { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 4px 4px; }
.tier-row b { font-size: 15px; letter-spacing: .1em; }
.tier-row span { font-family: Cinzel, serif; font-size: 16px; color: #f3e6d0; letter-spacing: .05em; }
.tier-chev { text-align: center; color: #e9dccb; font-size: 22px; line-height: .6; margin: 6px 0 -2px; letter-spacing: -4px; transform: scaleY(.8); }
.cp-card { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; cursor: pointer;
  background: linear-gradient(#1c1013, #120a0c); border: 2px solid rgba(217,199,184,.35); box-shadow: 0 3px 10px rgba(0,0,0,.5); }
.cp-card.cur { border-color: #b46bff; box-shadow: 0 0 14px rgba(180,107,255,.45); }
.cp-card.own { border-color: #6fbf5a; }
.cp-card.avail { border-color: rgba(255,215,140,.7); }
.cp-card.locked { opacity: .78; }
.cp-img { width: 58px; height: 58px; object-fit: contain; flex: none; }
.cp-name { font-family: Cinzel, serif; font-size: 16px; font-weight: 700; color: #f3e6d0; text-transform: uppercase; letter-spacing: .04em; }
.cp-desc { font-size: 12px; color: #b9ab9e; margin-top: 1px; }
.cp-foot { display: flex; justify-content: flex-end; gap: 12px; margin-top: 6px; font-size: 11.5px; color: #d9cfc4; flex-wrap: wrap; }
.cp-state { margin-right: auto; color: #ffd36b; }
.cp-card.locked .cp-state { color: #8f8379; }
/* class page (popup) */
.cls-page { text-align: center; }
.cpg-stars { font-size: 15px; letter-spacing: .1em; }
.cpg-name { font-family: Cinzel, serif; font-size: 26px; color: #f3e6d0; letter-spacing: .06em; margin: 2px 0 4px; text-transform: uppercase; }
.cpg-port .cp-img { width: 84px; height: 84px; }
.cpg-desc { color: #d9cfc4; font-size: 14px; line-height: 1.5; margin: 8px 6px; }
.cpg-line { color: #b9ab9e; font-size: 13px; margin: 3px 0; }
.cpg-bonus { color: #6be36b; font-size: 13px; margin: 8px 0 4px; word-spacing: 4px; }
.cpg-tabs { display: flex; justify-content: center; gap: 10px; margin: 12px 0 8px; }
.cpg-tabs button { min-height: 36px; padding: 0 14px; background: #241418; border: 1px solid rgba(217,199,184,.3); border-radius: 4px; color: #b9ab9e; font: 700 11px Cinzel, serif; letter-spacing: .08em; }
.cpg-tabs button.on { color: #fff; border-color: var(--bone); text-decoration: underline; text-underline-offset: 4px; }
.cpg-list { max-height: 42vh; overflow-y: auto; text-align: center; }
.cpg-sp { padding: 8px 6px; border-bottom: 1px solid rgba(217,199,184,.1); }
.cpg-spn { color: #f3e6d0; font-size: 14px; }
.cpg-spn small { color: #a99d92; }
.cpg-spn i { font-style: normal; }
.cpg-spd { color: #c9bdb1; font-size: 12.5px; line-height: 1.45; margin-top: 3px; }
.cpg-spm { color: #a99d92; font-size: 12px; margin-top: 3px; }

/* ===== Starborn-Authentic Class Tree Styles (Matching reference images) ===== */
.starborn-tree-wrap { display: flex; flex-direction: column; gap: 12px; padding-bottom: 70px; }
.starborn-tier-block { display: flex; flex-direction: column; gap: 6px; }
.starborn-tier-header { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.starborn-tier-stars { font-size: 14px; letter-spacing: 2px; font-weight: 700; }
.starborn-tier-level { font-family: Cinzel, serif; font-size: 15px; font-weight: 700; color: #f3e6d0; letter-spacing: 0.06em; }
.starborn-chevrons { text-align: center; color: #d1c4b4; font-size: 18px; line-height: 1; margin: 4px 0 0; letter-spacing: -2px; opacity: 0.85; }

/* Single class card */
.starborn-class-card { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; cursor: pointer; background: linear-gradient(135deg, #181216, #0e090b); border: 1.5px solid rgba(217, 199, 184, 0.25); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6); position: relative; transition: transform 0.15s, border-color 0.15s; }
.starborn-class-card:active { transform: scale(0.98); }
.starborn-class-card.cur { border-color: #3b82f6 !important; box-shadow: 0 0 16px rgba(59, 130, 246, 0.55), inset 0 0 8px rgba(59, 130, 246, 0.2) !important; }
.starborn-class-card.own { border-color: #ffd36b !important; }
.starborn-class-card.avail { border-color: rgba(255, 215, 140, 0.7) !important; }
.starborn-class-card.locked { opacity: 0.65; border-color: rgba(255, 255, 255, 0.08) !important; }
.occ-box { width: 58px; height: 58px; background: #080406; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; overflow: hidden; }
.occ-img { width: 52px; height: 52px; object-fit: contain; }
.occ-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.occ-title { font-family: Cinzel, serif; font-size: 16px; font-weight: 700; color: #f3e6d0; text-transform: uppercase; letter-spacing: 0.06em; }
.occ-desc { font-size: 11.5px; color: #b9ab9e; line-height: 1.3; }
.occ-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.occ-status { font-size: 10.5px; font-weight: 600; }
.occ-counts { display: flex; gap: 8px; font-size: 11px; color: #c9a46b; margin-left: auto; }

/* Two-column crossover grid (for T4 and T7) */
.starborn-crossover-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.starborn-crossover-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 8px 8px; border-radius: 12px; cursor: pointer; background: linear-gradient(135deg, #181216, #0e090b); border: 1.5px solid rgba(217, 199, 184, 0.25); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6); position: relative; transition: transform 0.15s; }
.starborn-crossover-card:active { transform: scale(0.98); }
.starborn-crossover-card.cur { border-color: #3b82f6 !important; box-shadow: 0 0 16px rgba(59, 130, 246, 0.55) !important; }
.starborn-crossover-card.own { border-color: #ffd36b !important; }
.starborn-crossover-card.avail { border-color: rgba(255, 215, 140, 0.7) !important; }
.starborn-crossover-card.locked { opacity: 0.65; border-color: rgba(255, 255, 255, 0.08) !important; }
.starborn-crossover-card .occ-box { width: 52px; height: 52px; margin-bottom: 6px; }
.starborn-crossover-card .occ-img { width: 46px; height: 46px; }
.starborn-crossover-card .occ-title { font-size: 13.5px; margin-top: 2px; }
.starborn-crossover-card .occ-status { font-size: 10px; margin-top: 3px; }
.occ-co-badges { position: absolute; top: 4px; right: 6px; font-size: 11px; opacity: 0.8; display: flex; gap: 2px; }

/* Clean Modal Overrides */
.modal.clean-modal #win-head { display: none !important; }
.modal.clean-modal #modal-tabs { display: none !important; }
.modal.clean-modal .modal-body { padding-top: 10px !important; }

/* Starborn Discipline Switcher Header */
.starborn-path-nav {
  display: grid !important;
  grid-template-columns: 90px minmax(0, 1fr) 90px !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 6px !important;
  margin-bottom: 12px !important;
  border-bottom: 1px solid rgba(217, 199, 184, 0.22) !important;
  background: linear-gradient(180deg, rgba(34, 18, 24, 0.96), rgba(16, 9, 12, 0.9)) !important;
  border: 1px solid rgba(217, 199, 184, 0.2) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55) !important;
}
.starborn-path-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  min-height: 36px !important;
  padding: 2px 5px !important;
  background: linear-gradient(180deg, #2b181e, #170c10) !important;
  border: 1px solid rgba(217, 199, 184, 0.35) !important;
  border-radius: 6px !important;
  color: #e5d5c5 !important;
  font-family: Cinzel, serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}
.starborn-path-btn:active {
  transform: scale(0.96) !important;
  background: #3d2029 !important;
  border-color: #ffd36b !important;
}
.starborn-path-btn .opb-arr {
  font-size: 18px !important;
  color: #ffd36b !important;
  line-height: 1 !important;
}
.starborn-path-btn .opb-label {
  /* full name always visible (no ellipsis): smaller font, wraps between words if ever needed */
  font-size: 10px !important;
  white-space: normal !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
}
.starborn-path-center {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}
.starborn-path-center .opc-sub {
  font-size: 9.5px !important;
  color: #a89d91 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.2 !important;
  max-width: 100% !important;
  white-space: normal !important;   /* the whole subtitle is readable, wrapped */
}
.starborn-path-center .opc-title {
  font-family: Cinzel, serif !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  color: #ffd36b !important;
  letter-spacing: 0.06em !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8) !important;
  margin-top: 2px !important;
  text-transform: uppercase !important;
}

/* Quick 4-Pill Row above 2x3 Battle Grid */
.starborn-quick-row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 6px !important;
  width: 100% !important;
  margin-bottom: 6px !important;
}
.o-quick-pill {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  height: 28px !important;
  background: rgba(28, 16, 22, 0.88) !important;
  border: 1px solid rgba(217, 199, 184, 0.3) !important;
  border-radius: 14px !important;
  color: #e5d5c5 !important;
  font-family: Cinzel, serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  padding: 0 6px !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}
.o-quick-pill:active {
  transform: scale(0.96) !important;
  border-color: #ffd36b !important;
}
.o-quick-pill:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}
.o-quick-pill .oqp-icon {
  font-size: 12px !important;
  line-height: 1 !important;
}
.o-quick-pill .oqp-txt {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  letter-spacing: 0.03em !important;
}

/* ---- Codex browser ---- */
.cx-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.cx-search { width: 100%; box-sizing: border-box; padding: 9px 12px; border-radius: 10px; border: 1px solid #6b4a2a; background: #140d12; color: #f0e4c4; font-size: 15px; margin-bottom: 6px; }
.cx-tiers { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 4px; }
.cx-tier { padding: 3px 7px; border-radius: 8px; border: 1px solid #4a3a2a; background: #1a1116; color: #bba; font-size: 11px; }
.cx-tier.on { background: #6a4a16; color: #ffe9a0; border-color: #c9a24a; }
.cx-info { margin: 4px 0 6px; }
.cx-list { display: flex; flex-direction: column; gap: 4px; }
.cx-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: rgba(30, 16, 24, .7); border: 1px solid rgba(201, 162, 74, .18); cursor: pointer; }
.cx-row img { width: 42px; height: 42px; object-fit: contain; flex: none; }
.cx-ico { width: 40px; height: 40px; flex: none; border-radius: 9px; border: 2px solid #888; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #f0e4c4; background: #120a10; }
.cx-t { min-width: 0; display: flex; flex-direction: column; }
.cx-t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-t small { font-size: 11px; color: #a99; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Story chapters + achievements ---- */
.qcard.story .story-lore { font-style: italic; color: #d9c7a8; font-size: 13px; line-height: 1.4; margin: 4px 0 8px; }
.ach-medals { display: flex; gap: 3px; }
.ach-medals .medal { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #444; border: 1px solid #333; background: #120a10; }
.ach-medals .medal.on { color: #120a10; background: var(--mc); border-color: var(--mc); box-shadow: 0 0 8px var(--mc); }

/* ---- follower bond ---- */
.bond-box { margin-top: 4px; }
.bond-l { color: #ff9fb2; }
.bond-bar { height: 5px; border-radius: 3px; background: rgba(0,0,0,.5); overflow: hidden; margin: 2px 0 3px; max-width: 180px; }
.bond-bar i { display: block; height: 100%; background: linear-gradient(90deg, #a3203a, #ff6f8f); }
.bond-perk { color: #d7b6ff; font-size: 11px; }

/* ---- memories ---- */
.ent-icon.ent-echo { display: flex; align-items: center; justify-content: center; position: relative; }
.ent-icon.ent-echo img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 2; filter: drop-shadow(0 0 10px rgba(120,200,255,.9)); animation: echoFloat 3.2s ease-in-out infinite; }
.echo-aura { position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(120,200,255,.45), transparent 65%); animation: towerAura 3.2s ease-in-out infinite; }
@keyframes echoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.echo-choice { display: block; width: 100%; text-align: left; margin: 6px 0; padding: 10px 12px; border-radius: 12px; border: 2px solid #888; background: rgba(16,10,24,.9); color: #eee; cursor: pointer; }

/* ---- other players on the map (no captions) ---- */
.net-player { width: 44px; height: 52px; position: relative; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; }
.net-player img { width: 44px; height: 44px; object-fit: contain; position: relative; z-index: 2; filter: drop-shadow(0 2px 3px #000); opacity: .9; }
.net-player.ally img { filter: drop-shadow(0 0 6px rgba(120, 255, 170, .9)) drop-shadow(0 2px 3px #000); opacity: 1; }
.net-player .np-shadow { position: absolute; bottom: 0; left: 18%; width: 64%; height: 9px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); }
.net-player .np-fight { display: none; position: absolute; top: -6px; right: -4px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, rgba(255,60,40,.95), rgba(140,0,0,.6) 60%, transparent 70%); animation: towerAura 1.2s ease-in-out infinite; z-index: 3; }
.net-player.fighting .np-fight { display: block; }
.net-tower-hero { opacity: .92; }
