/* Web-only additions: boot overlay. */
.boot {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(900px 500px at 50% 30%, #1a1726 0%, #0e0e12 60%);
}
.boot.hide { opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.boot-box { text-align: center; max-width: 420px; padding: 20px; }
.boot .brand-mark { font-size: 34px; color: var(--gold); text-shadow: 0 0 18px rgba(200,168,87,.6); }
.boot-title { font-size: 22px; margin: 10px 0 18px; color: #d8d6cf; }
.boot-title b { color: var(--gold-bright); }
.boot-status { color: var(--muted); font-size: 13px; margin-bottom: 12px; min-height: 18px; }
.boot-bar { height: 6px; background: #20202b; border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }
.boot-fill { height: 100%; width: 10%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); transition: width .4s ease; }
.boot-note { margin-top: 16px; font-size: 11.5px; color: #6b6a78; line-height: 1.5; }

/* Upgrade recommendations */
.rec { display: flex; gap: 10px; padding: 11px 12px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--border-soft); border-left: 3px solid var(--gold); margin-bottom: 8px; }
.rec.resist { border-left-color: var(--amber); }
.rec.roll { border-left-color: var(--blue); }
.rec.slot { border-left-color: var(--red); }
.rec.rune { border-left-color: var(--green-soft); }
.rec-body { flex: 1; }
.rec-title { font-size: 13px; color: #e6e3d8; font-weight: 600; margin-bottom: 3px; }
.rec-detail { font-size: 12px; color: var(--muted); line-height: 1.5; }
.rec-ico { font-size: 14px; line-height: 1.3; }

.stats-note { grid-column: 1 / -1; font-size: 11px; color: var(--amber); line-height: 1.5; margin-top: 4px; }
.caveat { margin: 14px 0; padding: 10px 13px; border-radius: 9px; background: rgba(224,168,58,.10); border: 1px solid rgba(224,168,58,.4); color: #e6cd95; font-size: 12.5px; line-height: 1.5; }
.ovr { color: var(--green-soft); font-size: 10px; font-weight: 700; }
.unc { color: var(--red-soft); font-size: 10px; font-weight: 700; }

/* Edit control on equipped items */
.bd-edit { color: var(--muted); cursor: pointer; padding: 0 6px; font-size: 13px; opacity: 0; transition: opacity .12s; }
.bd-item-head:hover .bd-edit { opacity: 1; }
.bd-edit:hover { color: var(--gold-bright); }

/* Skills */
.skill-group { padding: 8px 11px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--border-soft); margin-bottom: 7px; }
.skill-main { color: var(--gold-bright); font-weight: 600; font-size: 13px; }
.skill-main.is-main::after { content: " · main"; color: var(--muted); font-weight: 400; font-size: 11px; }
.skill-supports { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.skill-trigger { font-size: 11px; color: var(--blue); margin-left: 8px; font-weight: 500; }

/* Gear tab — paper-doll equipment layout */
.gear-doll { display: flex; flex-direction: column; gap: 11px; }
.doll-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  grid-template-areas:
    "weapon1 helmet weapon2"
    "weapon1 body   weapon2"
    "amulet  body   ring1"
    "gloves  belt   ring2"
    "boots   belt   .";
  gap: 9px;
}
/* Consumables row: Life Flask · 3 Charms · Mana Flask (like the in-game panel) */
.doll-consumables { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 9px; align-items: stretch;
  border-top: 1px solid var(--border-soft); padding-top: 11px; }
.doll-charms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.doll-consumables .slot { min-height: 46px; }
.gear-doll .slot {
  border-radius: 9px; border: 1px solid var(--border-soft); background: var(--panel-2);
  padding: 9px 10px; min-height: 56px; display: flex; flex-direction: column; justify-content: center;
  gap: 3px; transition: border-color .12s, background .12s;
}
.gear-doll .slot.empty { opacity: .45; border-style: dashed; }
.gear-doll .slot.filled { cursor: pointer; border-left-width: 3px; }
.gear-doll .slot.filled:hover { background: #23222e; }
.gear-doll .slot.sel { border-color: var(--gold-bright); box-shadow: 0 0 0 1px rgba(200,168,87,.45) inset; }
.gear-doll .slot.has-icon { align-items: center; text-align: center; }
.gear-doll .slot-icon { width: 44px; height: 44px; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.gear-doll .slot-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.gear-doll .slot-name { font-size: 12.5px; color: #e6e3d8; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.detail-icon { width: 40px; height: 40px; object-fit: contain; vertical-align: middle; margin-right: 9px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.g-icon { width: 26px; height: 26px; object-fit: contain; margin-right: 8px; vertical-align: middle; flex: 0 0 auto; }
.skill-icon { width: 24px; height: 24px; object-fit: contain; vertical-align: middle; margin-right: 7px; }
.trade-row { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--border-soft); }
.trade-link { text-decoration: none; }
.gear-doll .slot.rarity-rare { border-left-color: var(--rare, #d4c84a); }
.gear-doll .slot.rarity-rare .slot-name { color: #e9df8e; }
.gear-doll .slot.rarity-unique { border-left-color: var(--unique, #c06a30); }
.gear-doll .slot.rarity-unique .slot-name { color: #d99e63; }
.gear-doll .slot.rarity-magic { border-left-color: #6a8ed4; }
.gear-doll .slot.rarity-magic .slot-name { color: #9fb6e6; }
.gear-doll .slot.rarity-normal { border-left-color: #8a8a93; }
@media (max-width: 620px) {
  .doll-grid { grid-template-columns: 1fr 1fr; grid-template-areas:
    "weapon1 weapon2" "helmet body" "amulet belt" "gloves boots" "ring1 ring2"; }
}

/* AI Build Read (advisory) */
#aiBuildModel { font-size: 10px; font-weight: 500; color: var(--blue); }
.sense-arch { font-size: 14px; font-weight: 700; color: var(--gold-bright); margin-bottom: 4px; }
.sense-main { font-size: 12.5px; color: var(--text); margin-bottom: 7px; }
.sense-main-tag {
  font-size: 10px; text-transform: uppercase; letter-spacing: .8px; font-weight: 700;
  color: var(--blue); background: rgba(106,166,224,.12); padding: 2px 7px; border-radius: 5px; margin-right: 6px;
}
.sense-summary { font-size: 12.5px; color: #cfcdc4; line-height: 1.5; margin-bottom: 10px; }
.sense-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 10px 0 5px; }
.sense-label.warn { color: var(--amber); }
.sense-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.sense-skill { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--border-soft); color: #d6d4cb; cursor: default; }
.sense-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.sense-flag { font-size: 11.5px; color: #e6cd95; line-height: 1.45; margin-top: 5px; padding-left: 8px; border-left: 2px solid rgba(224,168,58,.5); }
.sense-flag b { color: #f0d9a0; }

/* Glossary: hover-definition for game terms in mod text */
.gloss { border-bottom: 1px dotted var(--blue); cursor: help; }
.gloss:hover { color: var(--blue); }

/* AI Recommendations box */
#aiRecsModel { font-size: 10px; font-weight: 500; color: var(--blue); }
.airec-summary { font-size: 12.5px; color: #cfcdc4; line-height: 1.5; margin-bottom: 12px; }
.airec { padding: 10px 12px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--border-soft); border-left: 3px solid var(--blue); margin-bottom: 8px; }
.airec.v-replace { border-left-color: var(--red); }
.airec.v-upgrade { border-left-color: var(--amber); }
.airec.v-keep { border-left-color: var(--green-soft); }
.airec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.airec-slot { font-size: 13px; font-weight: 700; color: #e6e3d8; }
.airec-verdict { font-size: 10px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; padding: 1px 7px; border-radius: 5px; background: #2a2a36; }
.airec-verdict.replace { color: var(--red-soft); }
.airec-verdict.upgrade { color: var(--amber); }
.airec-verdict.keep { color: var(--green-soft); }
.airec-prio { font-size: 9.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-left: auto; }
.airec-prio.high { color: var(--red-soft); }
.airec-reason { font-size: 12px; color: var(--muted); line-height: 1.5; }
.airec-look { font-size: 12px; color: #d6d4cb; margin-top: 6px; }
.airec-look b { color: var(--gold-bright); }

/* "Not in the score" effects under an analysis result */
.unscored { margin-top: 16px; padding: 12px 14px; border-radius: 9px; background: rgba(106,166,224,.05); border: 1px solid rgba(106,166,224,.18); }
.unscored h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); margin-bottom: 4px; }
.unscored p { margin: 0 0 9px; }

/* ---- Compare tab -------------------------------------------------------- */
.cmp-import { display: flex; flex-direction: column; gap: 9px; }
.cmp-input {
  width: 100%; padding: 9px 12px; border-radius: 9px; font-size: 13px;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  resize: vertical; font-family: inherit; line-height: 1.5;
}
.cmp-input:focus { outline: none; border-color: var(--gold); }
.cmp-import-btns { display: flex; gap: 8px; }
.cmp-pct {
  font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  background: rgba(255,255,255,.05);
}
.cmp-pct.good { color: var(--green-soft); background: rgba(108,192,112,.12); }
.cmp-pct.mid  { color: var(--amber); background: rgba(224,168,58,.12); }
.cmp-pct.low  { color: var(--red-soft); background: rgba(224,105,90,.12); }

.cmp-bars { display: grid; gap: 11px; }
.cmp-bar-top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 4px; }
.cmp-track { height: 8px; border-radius: 6px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--border-soft); }
.cmp-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #b8923f, var(--gold-bright)); transition: width .4s ease; }
.cmp-fill.full { background: linear-gradient(90deg, #4f9e53, var(--green-soft)); }
.cmp-fill.dps  { background: linear-gradient(90deg, #4a78b0, var(--blue)); }
.cmp-dpsrow { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border-soft); }

.cmp-gap {
  padding: 11px 13px; border-radius: 9px; margin-bottom: 9px;
  background: var(--bg-2); border: 1px solid var(--border);
}
.cmp-gap-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.cmp-slot { font-weight: 700; font-size: 13px; color: var(--gold-bright); }
.cmp-served { font-size: 11.5px; color: var(--muted); }
.cmp-gap-body { font-size: 12.5px; color: var(--text); line-height: 1.55; }
.cmp-gap-body b { color: var(--text); }
.cmp-gap-body .trade-link { margin-left: 4px; vertical-align: baseline; }
.cmp-ontrack { font-size: 12.5px; color: var(--green-soft); padding: 6px 2px 0; }
.cmp-diff { font-size: 13px; line-height: 1.6; color: var(--text); padding: 3px 0; }
.cmp-diff + .cmp-diff { border-top: 1px solid var(--border-soft); margin-top: 6px; padding-top: 9px; }
