/* XHP Level Up — the My bonus page (#my-bonus-view): payout hero, How you
   earn, quota, level road, Today, weekly quest, raid card, rewards, points,
   competitions and the odds. Ported from the approved preview; scoped to
   #my-bonus-view / lu-* so nothing else in the portal changes. Tokens:
   fulfillment.css (portal) and level-up.css (game layer). */

#my-bonus-view { font-family: var(--font); color: var(--text); }
.lu-page { padding: 18px 24px 28px; max-width: 1040px; margin: 0 auto; font-size: 14px; line-height: 1.5; }
.lu-page h1, .lu-page h2, .lu-page h3 { text-wrap: balance; }
.lu-page a { color: var(--accent); }
.lu-page button { font-family: inherit; }
/* The portal's listing-table rules must not leak into these small tables. */
.lu-page thead { position: static; }
.lu-page tbody tr { transition: none; }
.lu-page tbody tr:hover { background: transparent; }
.lu-page .lu-num { font-variant-numeric: tabular-nums; }

.lu-state-box { margin: 40px auto; max-width: 420px; padding: 24px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); color: var(--text-muted); }
.lu-state-box .spinner { margin: 0 auto 10px; }
.lu-state-box strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.lu-state-box p { margin: 0 0 12px; }
.lu-state-box.lu-error { border-color: #fecaca; }

/* Hero: estimated payout */
.lu-hero {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap;
  padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-bg) 0%, var(--surface) 60%); box-shadow: var(--shadow); margin-bottom: 16px;
}
.lu-hero:focus { outline: none; }
.lu-hero-text { min-width: 0; flex: 1 1 300px; }
.lu-eyebrow { font-size: 11px; font-weight: 700; color: var(--accent-hover); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.lu-hero h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.lu-subtitle { margin: 6px 0 0; color: var(--text-muted); font-size: 13px; }
.lu-subtitle .lu-sep { padding: 0 4px; }
.lu-hero-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lu-hero-k { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin: 16px 0 0; }
.lu-preview-note { margin: 14px 0 0; padding: 9px 11px; border-radius: 6px; background: rgba(255,255,255,.7); border: 1px dashed var(--amber-border); font-size: 12px; color: var(--amber-ink); max-width: 520px; }
.lu-metric { flex: 0 1 340px; min-width: 280px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.lu-metric-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.lu-metric-total { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 2px; }
.lu-metric-total strong { font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lu-metric-unopened { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.lu-metric-lines { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid var(--border); font-size: 13px; font-variant-numeric: tabular-nums; }
.lu-metric-lines > li { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0 8px; padding: 3px 0; color: var(--text-muted); }
.lu-metric-lines > li > b { color: var(--text); font-weight: 600; }
.lu-metric-lines li.muted > b { color: var(--text-muted); font-weight: 500; }
.lu-metric-lines li small { font-size: 11px; color: var(--text-muted); }
.lu-metric-lines li .lbl { min-width: 0; }
.lu-metric-lines li .lbl small { display: block; line-height: 1.3; }
.lu-bd-toggle { display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; background: none; font: inherit; color: var(--text-muted); cursor: pointer; text-align: left; border-radius: 4px; }
.lu-bd-toggle:hover { color: var(--text); }
.lu-bd-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.lu-bd-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.lu-bd { list-style: none; flex: 1 1 100%; margin: 4px 0; padding: 4px 0 4px 10px; border-left: 2px solid var(--lu-gold-border); display: grid; gap: 1px; font-size: 12.5px; }
.lu-bd li { display: flex; justify-content: space-between; gap: 8px; color: var(--text-muted); }
.lu-bd li b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Cards and pills */
.lu-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: 14px 16px; min-width: 0; }
.lu-card:focus { outline: none; }
.lu-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lu-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.lu-card-head h2 { margin: 0; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.lu-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; margin-bottom: 16px; }
.lu-grid.even { grid-template-columns: 1fr 1fr; }
.lu-section { margin-bottom: 16px; }
.lu-sub { margin: 0; font-size: 12px; color: var(--text-muted); }
.lu-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.5; border: 1px solid var(--border); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lu-pill svg { width: 12px; height: 12px; flex-shrink: 0; }
.lu-pill.green { color: var(--green-ink); background: var(--green-bg); border-color: var(--green-border); }
.lu-pill.amber { color: var(--amber-ink); background: var(--amber-bg); border-color: var(--amber-border); }
.lu-pill.blue { color: var(--accent-hover); background: var(--blue-bg); border-color: var(--blue-border); }
.lu-pill.neutral { color: var(--text-muted); background: var(--surface-2); }
.lu-pill.gold { color: var(--lu-gold-ink); background: var(--lu-gold-bg); border-color: var(--lu-gold-border); }
.lu-pill.gold svg { color: var(--lu-gold); }
.lu-pill.lg { font-size: 12px; padding: 4px 10px; }
.lu-pill.lg svg { width: 14px; height: 14px; }
.lu-pill-btn { cursor: pointer; font-family: inherit; }
.lu-pill-btn:hover { background: #dbeafe; }

/* How you earn */
.lu-earn-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px 28px; }
.lu-earn-grid h3, .lu-tips h3 { margin: 0 0 6px; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.lu-etable { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.lu-etable th { padding: 6px 8px; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); text-align: left; font-weight: 700; border: 0; }
.lu-etable td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 13px; }
.lu-etable tr:last-child td { border-bottom: 0; }
.lu-etable .r { text-align: right; white-space: nowrap; }
.lu-etable td.pts { font-weight: 800; }
.lu-etable td small { display: block; color: var(--text-muted); font-size: 11.5px; }
.lu-extras { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 13px; }
.lu-extras li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--border); }
.lu-extras li:last-child { border-bottom: 0; }
.lu-extras .xi { display: inline-grid; place-items: center; }
.lu-extras .xi svg { width: 16px; height: 16px; color: var(--lu-gold-ink); }
.lu-extras b { font-weight: 800; color: var(--lu-gold-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lu-extras small { color: var(--text-muted); }
.lu-tips { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.lu-tips ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lu-tip { display: flex; gap: 8px; align-items: flex-start; padding: 9px 11px; border-radius: 8px; background: var(--blue-bg); border: 1px solid var(--blue-border); font-size: 13px; line-height: 1.4; }
.lu-tip svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--accent-hover); }
.lu-tip b { font-variant-numeric: tabular-nums; }
.lu-earn-foot { margin: 10px 0 0; font-size: 12.5px; }
.lu-earn-foot a { font-weight: 700; }

/* Quota */
.lu-quota { margin-bottom: 16px; }
.lu-quota-lead { margin: 0 0 6px; font-size: 13px; color: var(--text-muted); }
.lu-quota-lead strong { color: var(--text); }
.lu-quota-figure { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.lu-quota-figure strong { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.lu-quota-figure > span { color: var(--text-muted); font-size: 13px; }
.lu-quota-figure .pct { font-weight: 700; color: var(--green-ink); }
.lu-quota-figure .pct.under { color: var(--text-muted); }
.lu-qbar-wrap { position: relative; margin: 44px 0 28px; }
.lu-qbar { position: relative; height: 16px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); display: flex; overflow: hidden; }
.lu-seg { height: 100%; flex-shrink: 0; }
.lu-seg.assign { background: var(--lu-slate); }
.lu-seg.xhp { background: var(--accent); }
.lu-seg + .lu-seg { border-left: 1px solid #fff; }
.lu-qtick { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: var(--text); border-radius: 1px; }
.lu-qpin { position: absolute; bottom: calc(100% + 6px); display: flex; flex-direction: column; align-items: flex-end; }
.lu-qpin .lu-pill { box-shadow: var(--shadow); }
.lu-qpin::after { content: ''; width: 2px; height: 10px; background: currentColor; margin-right: -1px; }
.lu-qpin.left { align-items: flex-start; }
.lu-qpin.left::after { margin-right: 0; margin-left: -1px; }
.lu-qpin.green { color: var(--green-ink); }
.lu-qpin.amber { color: var(--amber-ink); }
.lu-qaxis { position: absolute; top: calc(100% + 6px); font-size: 11px; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lu-qaxis b { color: var(--text); }
.lu-qaxis.mid { transform: translateX(-50%); font-weight: 700; color: var(--text); }
.lu-qaxis.midr { transform: translateX(calc(-100% + 1px)); }
.lu-qaxis.end { right: 0; }
.lu-qaxis.start { left: 0; }
.lu-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-muted); margin: 0; padding: 0; list-style: none; }
.lu-legend li { display: flex; align-items: center; gap: 6px; }
.lu-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex-shrink: 0; }
.lu-legend b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.lu-quota-notes { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); display: grid; gap: 4px; }
.lu-quota-notes p { margin: 0; }
.lu-quota-notes strong { color: var(--text); }

/* Level road */
.lu-road { position: relative; list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.lu-road-rail { position: absolute; left: 5%; right: 5%; top: 21px; height: 4px; border-radius: 2px; background: #e5e7eb; }
.lu-road-rail .rg, .lu-road-rail .rb { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 2px; }
.lu-road-rail .rg { background: var(--lu-gold); }
.lu-road-rail .rb { background: var(--accent); }
.lu-lv { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 2px 8px; border-radius: 8px; min-width: 0; }
.lu-lv-ic { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid #e5e7eb; display: grid; place-items: center; position: relative; z-index: 1; }
.lu-lv-ic .lu-chest-svg { width: 30px; height: 27px; }
.lu-lv.done .lu-lv-ic { border-color: var(--lu-gold); background: var(--lu-gold-bg); }
.lu-lv.cur { background: var(--blue-bg); box-shadow: inset 0 0 0 1px var(--blue-border); }
.lu-lv.cur .lu-lv-ic { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent); }
.lu-lv.next .lu-lv-ic { border-style: dashed; border-color: var(--accent); }
.lu-lv-n { font-size: 12px; font-weight: 800; margin-top: 6px; white-space: nowrap; }
.lu-lv-t { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lu-lv-v { font-size: 12px; font-weight: 800; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lu-lv.done .lu-lv-v, .lu-lv.next .lu-lv-v { color: var(--lu-gold-ink); }
.lu-lv-s { font-size: 10.5px; font-weight: 700; color: var(--text-muted); white-space: nowrap; margin-top: 2px; }
.lu-lv.done .lu-lv-s { color: var(--lu-gold-ink); }
.lu-lv.cur .lu-lv-s, .lu-lv.next .lu-lv-s { color: var(--accent-hover); }
.lu-road-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.lu-road-foot b { color: var(--text); }

/* Today */
.lu-today-grid { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 16px; align-items: start; }
.lu-missions { list-style: none; margin: 0; padding: 0; }
.lu-mission { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 5px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); }
.lu-mission:first-child { border-top: 0; padding-top: 2px; }
.lu-m-ic { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cbd5e1; display: grid; place-items: center; color: #fff; background: #fff; }
.lu-m-ic svg { width: 12px; height: 12px; }
.lu-mission.done .lu-m-ic { background: var(--green); border-color: var(--green); }
.lu-m-l { font-weight: 600; min-width: 0; }
.lu-m-l small { font-weight: 500; color: var(--text-muted); font-size: 12px; }
.lu-m-c { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.lu-mission.done .lu-m-c { color: var(--green-ink); }
.lu-m-bar { grid-column: 2 / -1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.lu-m-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.lu-mission.done .lu-m-bar i { background: var(--green); }
.lu-dchest { border: 1px solid var(--border); border-radius: 8px; padding: 12px 10px; text-align: center; background: var(--surface-2); display: grid; justify-items: center; gap: 4px; }
.lu-dchest .lu-chest-svg { width: 64px; height: 57px; }
.lu-dchest.ready, .lu-dchest.opened { background: var(--lu-gold-bg); border-color: var(--lu-gold-border); }
.lu-dchest-t { font-weight: 800; font-size: 13px; }
.lu-dchest-s { font-size: 12px; color: var(--text-muted); line-height: 1.35; }
.lu-dchest-v { font-size: 20px; font-weight: 800; color: var(--lu-gold-ink); font-variant-numeric: tabular-nums; }
.lu-dchest .lu-btn-gold { margin-top: 4px; width: 100%; }
.lu-streak { display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.lu-streak-main { display: flex; align-items: center; gap: 8px; }
.lu-streak-main svg { width: 36px; height: 36px; color: var(--lu-flame); flex-shrink: 0; }
.lu-streak-main.cold svg { color: #9ca3af; }
.lu-streak-n { font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lu-streak-l { display: block; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.lu-mults { display: flex; gap: 4px; flex-wrap: wrap; }
.lu-mult { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid var(--border); color: var(--text-muted); background: var(--surface); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lu-mult.on { background: var(--lu-flame-bg); border-color: var(--lu-flame-border); color: var(--lu-flame-ink); }
.lu-freeze { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.lu-freeze svg { width: 14px; height: 14px; color: #0369a1; }
.lu-warn { margin-top: 12px; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 6px; background: var(--amber-bg); border: 1px solid var(--amber-border); font-size: 13px; }
.lu-warn > svg { width: 16px; height: 16px; color: var(--amber-ink); flex-shrink: 0; margin-top: 2px; }
.lu-warn .k { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--amber-ink); }
.lu-warn q { quotes: '\201C' '\201D'; font-weight: 600; }
.lu-warn.safe { background: var(--green-bg); border-color: var(--green-border); }
.lu-warn.safe > svg, .lu-warn.safe .k { color: var(--green-ink); }

/* Weekly quest */
.lu-quest-top { display: flex; gap: 14px; align-items: center; }
.lu-qring { width: 78px; height: 78px; position: relative; flex-shrink: 0; }
.lu-qring svg { width: 100%; height: 100%; display: block; }
.lu-qring-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.lu-qring-c b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lu-qring-c small { font-size: 10px; color: var(--text-muted); font-weight: 600; }
.lu-quest-big { font-size: 15px; font-weight: 800; }
.lu-quest-pitch { margin: 0 0 4px; font-size: 13px; color: var(--text); }
.lu-quest-cta { margin-top: 12px; display: grid; gap: 6px; justify-items: start; }
.lu-inline-err { margin: 0; font-size: 12.5px; color: var(--red-ink, #b91c1c); font-weight: 600; }
.lu-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.lu-step { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 6px; background: var(--surface-2); }
.lu-step.done { background: var(--lu-gold-bg); }
.lu-step.next { background: var(--blue-bg); box-shadow: inset 0 0 0 1px var(--blue-border); }
.lu-s-ic { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid #cbd5e1; color: #6b7280; flex-shrink: 0; font-size: 11px; font-weight: 800; }
.lu-s-ic svg { width: 12px; height: 12px; }
.lu-step.done .lu-s-ic { background: var(--lu-gold); border-color: var(--lu-gold); color: #fff; }
.lu-step.next .lu-s-ic { border-color: var(--accent); color: var(--accent-hover); }
.lu-s-l { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 0; }
.lu-s-l small { font-weight: 600; color: var(--text-muted); font-size: 12px; }
.lu-s-v { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-muted); white-space: nowrap; font-size: 13px; }
.lu-step.done .lu-s-v, .lu-step.next .lu-s-v { color: var(--lu-gold-ink); }
.lu-countdown { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.lu-countdown svg { width: 14px; height: 14px; }
.lu-fine { margin: 10px 0 0; font-size: 12px; color: var(--text-muted); }

/* Raid card */
.lu-raid-hero { display: grid; grid-template-columns: 156px minmax(0, 1fr) 230px; gap: 14px 22px; align-items: start; }
.lu-raid-hero .lu-mon-stage.big { margin: 2px auto 0; }
.lu-mon-col { display: grid; justify-items: center; gap: 10px; }
.lu-mon-wrapbig { position: relative; }
.lu-boss-id { margin: -2px 0 0; display: grid; justify-items: center; gap: 1px; text-align: center; line-height: 1.3; }
.lu-boss-mo { font-size: 10.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; }
.lu-boss-id b { font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.lu-boss-fl { font-size: 12px; color: var(--text-muted); text-wrap: balance; }
.lu-boss-cta { text-align: center; width: 100%; }
.lu-boss-cta .lu-btn-gold { width: 100%; white-space: normal; line-height: 1.25; padding: 9px 10px; }
.lu-boss-got { margin: 0; font-size: 13px; color: var(--text); font-weight: 600; }
.lu-boss-got b { color: var(--lu-gold-ink); font-variant-numeric: tabular-nums; }
.lu-hitlog-wrap h3, .lu-boss-grid2 h3 { margin: 0 0 6px; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.lu-hitlog { list-style: none; margin: 0; padding: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.lu-hitlog li { padding: 5px 0; border-top: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-muted); }
.lu-hitlog li:first-child { border-top: 0; }
.lu-hitlog li b { color: var(--text); }
.lu-hitlog li.you b { color: var(--accent-hover); }
.lu-hitlog li .n { color: var(--lu-hp-ink); font-weight: 700; }
.lu-boss-hp { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.lu-boss-hp small { font-size: 13px; color: var(--text-muted); font-weight: 600; letter-spacing: 0; }
.lu-hp-wrap { position: relative; margin: 12px 0 22px; }
.lu-hp-track { position: relative; height: 18px; border-radius: 999px; background: #1e293b; box-shadow: inset 0 1px 2px rgba(0,0,0,.4); overflow: hidden; }
.lu-hp-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #dc2626 0%, #ea580c 55%, #f59e0b 100%); border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255,255,255,.28); }
.lu-hp-fill.down { background: linear-gradient(90deg, #d97706 0%, #f59e0b 50%, #fcd34d 100%); }
.lu-hp-pace { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--text); border-radius: 1px; }
.lu-hp-pace-l { position: absolute; top: calc(100% + 5px); font-size: 11px; color: var(--text-muted); white-space: nowrap; font-weight: 600; }
.lu-boss-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.lu-boss-stats div { padding: 7px 9px; border-radius: 6px; background: var(--surface-2); min-width: 0; }
.lu-boss-stats dt { font-size: 10.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.lu-boss-stats dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 14px; }
.lu-boss-stats dd small { font-weight: 600; color: var(--text-muted); font-size: 11px; }
.lu-pace { margin: 10px 0 0; font-size: 13px; color: var(--text); }
.lu-pace b { font-variant-numeric: tabular-nums; }
.lu-boss-grid2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 28px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.lu-reward-box { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 6px; background: var(--lu-gold-bg); border: 1px solid var(--lu-gold-border); font-size: 13px; }
.lu-reward-box svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.lu-reward-box strong { color: var(--lu-gold-ink); }
.lu-reward-box p { margin: 0; color: var(--text); }
.lu-vs { margin: 12px 0 0; padding: 9px 11px; border-radius: 6px; background: var(--blue-bg); border: 1px solid var(--blue-border); font-size: 13px; color: var(--text); }
.lu-vs b { font-variant-numeric: tabular-nums; }
.lu-top-today .lu-ctr { grid-template-columns: 20px 24px minmax(0, 1fr) 0 60px; }

/* Rewards this month */
.lu-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.lu-tile { border: 1px solid var(--border); border-radius: 8px; padding: 10px; background: var(--surface); min-width: 0; }
.lu-tile .lu-pips { margin-top: 6px; }
.lu-tile .lu-pips i { width: 7px; height: 10px; }
.lu-tile-k { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.lu-tile-k svg { width: 14px; height: 14px; flex-shrink: 0; }
.lu-tile-v { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.lu-tile-v small { font-size: 12px; font-weight: 700; color: var(--lu-gold-ink); letter-spacing: 0; margin-left: 4px; }
.lu-tile p { margin: 2px 0 0; font-size: 11.5px; color: var(--text-muted); line-height: 1.35; }
.lu-tile.golden { border-color: var(--lu-gold-border); background: linear-gradient(180deg, var(--lu-gold-bg), #fff); }
.lu-pending { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 9px 12px; border-radius: 6px; background: var(--lu-gold-bg); border: 1px solid var(--lu-gold-border); font-size: 13px; }
.lu-pending .lu-chest-svg { width: 30px; height: 27px; flex-shrink: 0; }
.lu-pending span { flex: 1; min-width: 0; color: var(--lu-gold-ink); font-weight: 700; }
.lu-ledger { list-style: none; margin: 0 -16px; padding: 0; }
.lu-ledger li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 16px; border-top: 1px solid var(--border); }
.lu-li-ic { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: var(--lu-gold-bg); color: var(--lu-gold-ink); }
.lu-li-ic svg { width: 16px; height: 16px; }
.lu-li-ic.fix { background: var(--green-bg); color: var(--green-ink); }
.lu-li-ic.combo, .lu-li-ic.quest { background: var(--blue-bg); color: var(--accent-hover); }
.lu-li-ic.daily { background: var(--lu-flame-bg); color: var(--lu-flame); }
.lu-li-ic.boss { background: #1e293b; color: #fca5a5; }
.lu-li-t { min-width: 0; }
.lu-li-t b { display: block; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-li-t small { display: block; color: var(--text-muted); font-size: 11px; }
.lu-li-v { font-weight: 800; font-size: 13px; color: var(--lu-gold-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lu-ledger-more { margin: 8px 0 0; font-size: 12px; color: var(--text-muted); }

/* XHP points table */
.lu-xtable-wrap { margin: 0 -16px; }
.lu-xtable { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.lu-xtable th { padding: 8px 10px; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); border-bottom: 1px solid var(--border); text-align: left; font-weight: 700; }
.lu-xtable th.r, .lu-xtable td.r { text-align: right; white-space: nowrap; }
.lu-xtable td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 13px; }
.lu-xtable td small { display: block; color: var(--text-muted); font-size: 11px; line-height: 1.35; margin-top: 2px; }
.lu-xtable tfoot td { font-weight: 800; border-bottom: none; border-top: 1px solid rgba(0,0,0,0.16); }
.lu-xtable .lu-mult-c { color: var(--text-muted); }
.lu-xtable-wrap .lu-xtable th:first-child, .lu-xtable-wrap .lu-xtable td:first-child { padding-left: 16px; }
.lu-xtable-wrap .lu-xtable th:last-child, .lu-xtable-wrap .lu-xtable td:last-child { padding-right: 16px; }
.lu-convert { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; padding: 10px 12px; border-radius: 6px; background: var(--blue-bg); border: 1px solid var(--blue-border); font-variant-numeric: tabular-nums; }
.lu-convert > span { color: var(--text-muted); font-size: 13px; }
.lu-convert strong { font-size: 18px; font-weight: 800; color: var(--text); }
.lu-convert b { color: var(--text); }
.lu-always { margin: 8px 0 0; font-size: 12px; color: var(--green-ink); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.lu-always svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Competitions */
.lu-amount { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lu-amount.waiting { color: var(--text-muted); }
.lu-note { margin: 6px 0 0; color: var(--text-muted); font-size: 13px; }
.lu-note.small { font-size: 12px; }
.lu-lockline { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--amber-ink); font-weight: 600; }
.lu-lockline svg { width: 14px; height: 14px; flex-shrink: 0; }
.lu-prize-line, .lu-qualify { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lu-ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
.lu-ladder li { border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; text-align: center; background: var(--surface); font-variant-numeric: tabular-nums; min-width: 0; }
.lu-ladder li .r { display: block; font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.lu-ladder li .v { display: block; font-weight: 800; font-size: 14px; }
.lu-ladder li .w { display: block; font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu-ladder li .w svg { width: 11px; height: 11px; vertical-align: -1px; color: var(--green-ink); }
.lu-ladder li.you { border-color: var(--accent); background: var(--blue-bg); box-shadow: inset 0 0 0 1px var(--accent); }
.lu-ladder li.you .r { color: var(--accent-hover); }
.lu-ladder li.open { border: 1px dashed var(--amber-ink); background: var(--amber-bg); }
.lu-ladder li.open .r, .lu-ladder li.open .w { color: var(--amber-ink); font-weight: 700; }
.lu-gaps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lu-ctable { width: 100%; border-collapse: collapse; font-size: 13px; }
.lu-ctable td { padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 13px; }
.lu-ctable tr:last-child td { border-bottom: none; }
.lu-ctable td.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lu-ctable td.pts { font-weight: 800; }
.lu-ctable td.pts small { margin-left: 2px; font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.lu-ctable td.prize { color: var(--text-muted); width: 56px; }
.lu-ctable tr.you td { background: var(--blue-bg); }
.lu-ctable tr.you td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.lu-ctable tr.gap td { text-align: center; color: var(--text-muted); font-size: 12px; padding: 2px; }
.lu-you-tag, .lu-q-tag { margin-left: 6px; }
.lu-rank { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; color: var(--text-muted); background: var(--surface-2); border: 1px solid transparent; font-variant-numeric: tabular-nums; }
.lu-rank.rank-1 { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.lu-rank.rank-2 { color: #475569; background: #f1f5f9; border-color: #cbd5e1; }
.lu-rank.rank-3 { color: #c2410c; background: #fff7ed; border-color: #fed7aa; }
.lu-person { font-weight: 700; }
.lu-minibar { position: relative; height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); margin: 10px 0 4px; overflow: hidden; }
.lu-minibar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--lu-slate); }
.lu-minibar-legend { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.lu-minibar-legend b { color: var(--text); }
.lu-open-prize { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 6px; background: var(--amber-bg); border: 1px solid var(--amber-border); font-size: 13px; color: var(--text); }
.lu-open-prize svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--amber-ink); margin-top: 1px; }
.lu-open-prize strong { display: block; color: var(--amber-ink); }
.lu-open-prize p { margin: 2px 0 0; color: var(--text-muted); }

/* Odds and full rules */
.lu-rules-d > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lu-rules-d > summary::-webkit-details-marker { display: none; }
.lu-rules-d > summary::before { content: '▸'; color: var(--text-muted); font-size: 12px; }
.lu-rules-d[open] > summary::before { content: '▾'; }
.lu-rules-d > summary h2 { margin: 0; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.lu-rules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 24px; margin-top: 12px; }
.lu-rules-grid h3 { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--text); }
.lu-rules-grid p { margin: 0 0 6px; font-size: 12.5px; color: var(--text-muted); }
.lu-odds { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; margin: 0 0 6px; }
.lu-odds th { padding: 4px 6px; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); text-align: left; font-weight: 700; border: 0; }
.lu-odds td { padding: 4px 6px; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.lu-odds .r { text-align: right; }
.lu-rule-list { margin: 0 0 6px 16px; padding: 0; font-size: 12.5px; color: var(--text-muted); }

.lu-notes { margin-top: 0; padding: 12px 16px; border: 1px dashed rgba(0,0,0,0.14); border-radius: var(--radius); font-size: 12px; color: var(--text-muted); display: grid; gap: 6px; }
.lu-notes p { margin: 0; display: flex; gap: 8px; }
.lu-notes svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--text-faint); }
.lu-notes a { font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .lu-road-rail .rg, .lu-road-rail .rb { transition: width .8s var(--lu-ease-out); }
  .lu-hp-fill { transition: width .5s var(--lu-ease-out); }
  .lu-unlocking { animation: lu-cardglow .9s ease-out; }
  #my-bonus-view .unlocking { animation: lu-cardglow .9s ease-out; }
  @keyframes lu-cardglow { 0% { box-shadow: var(--shadow), 0 0 0 0 rgba(5,150,105,.45); } 100% { box-shadow: var(--shadow), 0 0 0 12px rgba(5,150,105,0); } }
  .lu-lv.pop .lu-lv-ic { animation: lu-pillpop .8s var(--lu-ease-pop); }
  .lu-dchest.ready .lu-chest-svg { animation: lu-wiggle .7s ease-in-out; }
}

@media (max-width: 1000px) { .lu-raid-hero { grid-template-columns: 132px minmax(0, 1fr); } .lu-hitlog-wrap { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .lu-road { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 14px; }
  .lu-road-rail { display: none; }
}
@media (max-width: 820px) {
  .lu-grid, .lu-grid.even, .lu-boss-grid2, .lu-earn-grid { grid-template-columns: 1fr; }
  .lu-tips ol { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lu-page { padding: 14px 12px 24px; }
  .lu-hero { padding: 14px; }
  .lu-metric { flex: 1 1 100%; min-width: 0; }
  .lu-card { padding: 12px; }
  .lu-xtable-wrap, .lu-ledger { margin: 0 -12px; }
  .lu-ledger li { padding: 8px 12px; }
  .lu-xtable-wrap .lu-xtable th:first-child, .lu-xtable-wrap .lu-xtable td:first-child { padding-left: 12px; }
  .lu-xtable-wrap .lu-xtable th:last-child, .lu-xtable-wrap .lu-xtable td:last-child { padding-right: 12px; }
  .lu-xtable th, .lu-xtable td { padding-left: 6px; padding-right: 6px; }
  .lu-ladder li { padding: 6px 4px; }
  .lu-ctable td { padding: 6px 4px; }
  .lu-ctable .lu-q-tag { display: none; }
  .lu-today-grid { grid-template-columns: 1fr; }
  .lu-dchest { grid-template-columns: 64px 1fr; justify-items: start; text-align: left; column-gap: 12px; }
  .lu-dchest .lu-chest-svg { grid-row: span 4; }
  .lu-tiles { grid-template-columns: 1fr; }
  .lu-tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center; }
  .lu-tile p { grid-column: 1 / -1; }
  .lu-boss-stats { grid-template-columns: 1fr 1fr; }
  .lu-boss-stats div:last-child { grid-column: 1 / -1; }
  .lu-raid-hero { grid-template-columns: 1fr; }
  .lu-raid-hero .lu-mon-stage.big { width: 112px; height: 112px; }
  .lu-lv-ic { width: 40px; height: 40px; }
  .lu-lv-ic .lu-chest-svg { width: 26px; height: 23px; }
  .lu-lv-n { font-size: 11px; }
  .lu-lv-t, .lu-lv-s { font-size: 10px; }
  .lu-lv-v { font-size: 11px; }
}
