
.tip-lines { display: grid; gap: .22rem; }
.tip-line { --line: var(--tip-rar, var(--text-1)); display: flex; align-items: center; gap: .45rem; min-width: 0; font: 700 .84rem/1.25 var(--font-num); color: var(--line); }
.tip-line .tl-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tip-line small { flex: none; font: 500 .66rem/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.tip-line .tl-tier { flex: none; display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.1rem; padding: 0 .3rem; border-radius: .3rem; font: 800 .62rem/1 var(--font-num); letter-spacing: .04em; color: var(--line); border: 1px solid color-mix(in srgb, var(--line) 55%, transparent); background: color-mix(in srgb, var(--line) 12%, rgba(0, 0, 0, .35)); }
.tip-line.r-common { --line: var(--rar-common); }
.tip-line.r-uncommon { --line: var(--rar-uncommon); }
.tip-line.r-rare { --line: var(--rar-rare); }
.tip-line.r-epic { --line: var(--rar-epic); }
.tip-line.r-legendary { --line: var(--rar-legendary); }
.tip-line.r-mythic { --line: var(--rar-mythic); }
.tip-line.is-greater .tl-tier { color: #1d1204; background: var(--line); border-color: var(--line); }
.tip-line.is-empty { color: var(--text-3); font-weight: 600; }
.tip-line.is-empty .tl-text::before { content: ""; display: inline-block; width: .7rem; height: .7rem; margin-right: .4rem; vertical-align: -.08rem; border: 1px dashed var(--text-4); border-radius: .2rem; }
.tip-line.is-imbue { --line: var(--gold-1); }
.tip-line.is-imbue .ia-glyph { flex: none; width: 1rem; height: 1rem; color: var(--gold-2); }
.tip-line.is-imbue.is-open { color: var(--text-3); font-weight: 600; }
.tip-line.is-imbue.is-open .ia-glyph { color: var(--text-4); }
.tip-line.is-signature { --line: var(--gold-1); }
.tip-line.is-signature .tl-text::before { content: ""; display: inline-block; width: .42rem; height: .42rem; margin-right: .45rem; vertical-align: .08rem; rotate: 45deg; background: var(--gold-2); box-shadow: 0 0 0 1px rgba(0, 0, 0, .7); }
.tip-line .tl-act { flex: none; padding: .15rem .45rem; font-size: .7rem; }
.tip-line .tl-act .ia-glyph { width: .8rem; height: .8rem; }

.tip-offer { --offer: var(--tip-rar, var(--gold-2)); }
.item-card .tip-offer, .enchant-detail .tip-offer { padding: .55rem .6rem; border: 1px solid color-mix(in srgb, var(--offer) 40%, transparent); border-radius: .5rem; background: color-mix(in srgb, var(--offer) 7%, rgba(0, 0, 0, .3)); }
.offer-head { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.offer-head .ia-glyph { flex: none; width: .95rem; height: .95rem; color: var(--gold-2); }
.offer-head b { color: var(--gold-1); font-size: .84rem; }
.offer-head small { margin-left: auto; color: var(--text-3); font-size: .7rem; text-align: right; }
.offer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.offer-col { display: grid; align-content: start; gap: .22rem; padding: .4rem .45rem; border-radius: .4rem; background: rgba(0, 0, 0, .25); }
.offer-col > .t-caps { font-size: .58rem; color: var(--gold-3); }
.offer-col .tip-line { font-size: .78rem; }
.offer-power { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .4rem; font-size: .74rem; }
.offer-power b { color: var(--text-1); }
.offer-power .up { color: var(--emerald); font-weight: 700; }
.offer-power .down { color: var(--crimson); font-weight: 700; }
.offer-acts { display: flex; flex-wrap: wrap; gap: .35rem; }
.offer-acts .btn { flex: 1 1 auto; }
.offer-verdict { margin: 0; font-weight: 700; color: var(--text-1); }
.offer-verdict.is-up { color: var(--emerald); }
.offer-verdict.is-down { color: var(--crimson); }
.offer-advice { margin: 0; color: var(--text-2); }
.roll-note { margin: .25rem 0 0; font-size: .74rem; line-height: 1.4; color: var(--text-3); }

.gear-attrs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; margin: .15rem 0 .35rem; }
.attr-cell { --skill: var(--gold-2); display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .3rem; align-items: center; min-width: 0; padding: .22rem .35rem; border-radius: .4rem; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .05); }
.attr-cell .ia-emblem { grid-row: 1 / 3; width: 1.15rem; height: 1.15rem; }
.attr-cell small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .6rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.attr-cell b { min-width: 0; white-space: nowrap; font: 700 .82rem/1.1 var(--font-num); color: var(--text-1); }
.attr-cell b em { margin-left: .2rem; font-style: normal; color: var(--emerald); }
.attr-cell.is-boosted { border-color: rgba(88, 214, 127, .3); background: rgba(47, 154, 82, .12); }

.enchant-grid { align-content: start; }
.enchant-card .card-copy > small { white-space: normal; }
.enchant-detail .detail-scroll { display: grid; align-content: start; gap: .75rem; }
.enchant-section { display: grid; gap: .45rem; padding: .6rem .7rem; border-radius: .6rem; border: 1px solid var(--edge-soft); background: rgba(0, 0, 0, .22); }
.enchant-section > header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-width: 0; }
.enchant-section > header .t-caps { display: inline-flex; align-items: center; gap: .3rem; color: var(--gold-2); font-size: .66rem; }
.enchant-section > header .t-caps .ia-glyph { width: .9rem; height: .9rem; }
.enchant-section > header .t-muted { font-size: .74rem; text-align: right; }
.enchant-note { margin: 0; font-size: .78rem; line-height: 1.4; color: var(--text-2); }
.cost-chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .15rem .55rem; vertical-align: middle; }
.cost-chips > span { display: inline-flex; align-items: center; gap: .2rem; font: 700 .8rem var(--font-num); color: var(--text-1); }
.cost-chips > span.t-bad { color: var(--crimson); }
.cost-chips .item-img, .cost-chips .ia-emblem { width: 1.2rem; height: 1.2rem; }
.imbue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .3rem; }
.imbue-opt { display: grid; gap: .08rem; min-width: 0; padding: .35rem .5rem; text-align: left; border-radius: .45rem; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); color: var(--text-1); cursor: pointer; }
.imbue-opt strong { font: 600 .8rem/1.2 var(--font-ui); overflow-wrap: anywhere; }
.imbue-opt small { font: 700 .72rem/1.2 var(--font-num); color: var(--gold-1); overflow-wrap: anywhere; }
.imbue-opt:hover { border-color: rgba(242, 198, 106, .32); background: rgba(255, 255, 255, .06); }
.imbue-opt.is-on { border-color: rgba(242, 198, 106, .7); background: rgba(242, 198, 106, .12); }
.imbue-opt.is-current strong::after { content: " · yours"; font-weight: 400; color: var(--text-3); }
.imbue-detail { display: grid; gap: .45rem; padding: .5rem .6rem; border-radius: .5rem; background: rgba(242, 198, 106, .06); border: 1px solid rgba(242, 198, 106, .22); }
.imbue-detail p { margin: 0; font-size: .8rem; line-height: 1.4; color: var(--text-2); }
.imbue-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem; }
.reforge-choice { display: grid; gap: .4rem; padding: .5rem .6rem; border-radius: .5rem; border: 1px solid rgba(242, 198, 106, .3); background: rgba(242, 198, 106, .06); }
.reforge-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .2rem .5rem; }
.reforge-opt .tip-line { grid-column: 1; }
.reforge-opt .offer-power { grid-column: 1; }
.reforge-opt .btn { grid-column: 2; grid-row: 1 / 3; }
.engrave-row { display: flex; align-items: center; gap: .45rem; min-width: 0; font-size: .82rem; }
.engrave-row .engrave-well { flex: none; width: 2.2rem; }
.engrave-row .engrave-well > .item-img { width: 80%; height: 80%; object-fit: contain; }
.ench-split { display: flex; align-items: center; gap: .55rem; padding: .45rem .6rem; border-radius: .55rem; border: 1px solid rgba(201, 162, 255, .28); background: rgba(201, 162, 255, .07); }
.ench-split > .piece-mark { width: 1.45rem; }
.ench-full { margin: 0; }
.engrave-row > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.engrave-row .btn { flex: none; }
.enchant-section .btn .item-img { flex: none; width: 1.35rem; height: 1.35rem; object-fit: contain; }
.enchant-foot { padding: .6rem .8rem; }
.enchant-auto { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.enchant-auto span { display: grid; gap: .1rem; min-width: 0; }
.enchant-auto b { color: var(--text-1); font-size: .86rem; }
.enchant-auto small { color: var(--text-3); font-size: .74rem; line-height: 1.3; }
.enchant-auto .toggle { flex: none; }
.bank-inspect .inspect-use .btn .ia-glyph, .bank-inspect .inspect-foot .btn .ia-glyph { flex: none; }

@media (min-width: 761px) and (min-height: 501px), (min-width: 761px) and (pointer: fine), (min-width: 761px) and (pointer: none) {
  .is-hud .stage .enchant-card:not(.win-card) .card-copy > strong.rar-text.r-rare { color: var(--rar-rare); }
  .is-hud .stage .enchant-card:not(.win-card) .card-copy > strong.rar-text.r-epic { color: var(--rar-epic); }
  .is-hud .stage .enchant-card:not(.win-card) .card-copy > strong.rar-text.r-legendary { color: var(--rar-legendary); }
  .is-hud .stage .enchant-card:not(.win-card) .card-copy > strong.rar-text.r-mythic { color: var(--rar-mythic); }
  .is-hud .stage .enchant-card:not(.win-card) .card-copy > strong.rar-text.r-uncommon { color: var(--rar-uncommon); }
  .is-hud .hud-panel .gear-attrs { margin: .4rem 0 .5rem; }
}
