:root {
  --gold: #f2c14e; --gold2: #c9952f; --ink: #f3ead6; --dim: #a99f8a; --edge: #6b4f2a; --edge2: #3a2814;
  --panel: linear-gradient(#21170d, #140e08); --red: #7a1f14;
  --r0: #c8c8c8; --r1: #3ad34a; --r2: #3a8cff; --r3: #b660ff; --r4: #ff9a1f;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0d0a07; color: var(--ink); font: 15px/1.4 Georgia, 'Times New Roman', serif; overflow: hidden; }
canvas#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.viewbtn.autopickbtn, body.wowui button.viewbtn.autopickbtn { right: 52px; } .autopickbtn.on { color: #1eff00; border-color: #1eff00; box-shadow: 0 0 6px rgba(30, 255, 0, .6); }
.card.autopick, #skipBtn.autopick, .lsu-col.autopick { box-shadow: 0 0 0 3px #1eff00, 0 0 22px rgba(30, 255, 0, .7) !important; }
#stressHud { position: fixed; right: 118px; top: 186px; z-index: 7; padding: 2px 6px; background: rgba(0, 0, 0, .7); border: 1px solid #5a4420; border-radius: 3px; font: 13px FrizQT, Georgia, serif; color: #ffd100; text-shadow: 1px 1px 0 #000; pointer-events: none; }
.viewbtn, body.wowui button.viewbtn { position: fixed; right: 8px; top: 184px; z-index: 7; min-width: 34px; padding: 2px 6px; opacity: .85; }
.hidden { display: none !important; }
button { font: inherit; color: var(--ink); background: linear-gradient(#3a2a18, #22180e); border: 1px solid var(--edge); border-radius: 4px; padding: 8px 16px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.12); }
button:hover { border-color: var(--gold); }
button.small { padding: 4px 10px; font-size: 13px; }
button:disabled { opacity: 0.45; cursor: default; }
button.enter { font-size: 19px; padding: 12px 28px; color: #fff3cf; background: linear-gradient(#a3361e, #5c160a); border: 1px solid #e0a050; box-shadow: 0 0 0 2px #2a1206, 0 0 18px rgba(255, 140, 40, 0.25), inset 0 1px 0 rgba(255, 220, 160, 0.35); letter-spacing: 0.5px; text-shadow: 0 1px 2px #000; }
button.enter:hover { filter: brightness(1.12); }
input, select { font: inherit; color: var(--ink); background: #0f0a06; border: 1px solid var(--edge); border-radius: 4px; padding: 6px 8px; min-width: 0; }
label { display: inline-flex; gap: 8px; align-items: center; }
kbd { font: 10px system-ui, sans-serif; border: 1px solid var(--edge); border-radius: 3px; padding: 0 4px; margin-left: 6px; color: var(--dim); }
h1 { font-size: 34px; margin: 0 0 4px; color: var(--gold); letter-spacing: 1px; text-align: center; font-weight: normal; }
.muted { color: var(--dim); }
.small { font-size: 13px; }
.err { color: #ff7a6a; min-height: 1.2em; margin: 4px 0 0; font-size: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.row.center { justify-content: center; }

/* screens and frames */
.screen { position: fixed; inset: 0; display: flex; padding: 12px; background: radial-gradient(ellipse at center, rgba(40, 24, 10, 0.6), rgba(0, 0, 0, 0.9)); overflow: auto; z-index: 10; }
.frame { margin: auto; width: min(1240px, 100%); background: var(--panel); border: 1px solid var(--gold2); border-radius: 6px; box-shadow: 0 0 0 3px #1a0f06, 0 0 0 4px var(--edge), 0 14px 50px rgba(0, 0, 0, 0.7); padding: 0 14px 10px; }
.topbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 2px 8px; border-bottom: 1px solid var(--edge); }
.brand { font-size: 26px; color: var(--gold); letter-spacing: 1px; text-shadow: 0 2px 0 #000, 0 0 12px rgba(242, 193, 78, 0.25); white-space: nowrap; }
.brand span { font-size: 15px; color: var(--ink); margin-left: 4px; letter-spacing: 2px; text-transform: uppercase; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: linear-gradient(#2a1d10, #170f08); border-color: var(--edge2); border-radius: 4px 4px 0 0; padding: 6px 12px; font-size: 14px; color: var(--dim); white-space: nowrap; }
.tabs button.on { color: var(--gold); border-color: var(--gold2); background: linear-gradient(#4a321a, #22170c); }
.lz { flex: 1; text-align: right; color: var(--dim); font-size: 14px; }
.lz b { color: var(--gold); font-weight: normal; }
.cols { display: grid; grid-template-columns: 1fr 1.05fr 1.15fr; gap: 12px; padding-top: 12px; }
.lcols { display: grid; grid-template-columns: 340px 1fr; gap: 12px; padding-top: 12px; }
.pane { background: rgba(0, 0, 0, 0.28); border: 1px solid var(--edge2); border-radius: 5px; padding: 10px 12px 12px; box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5); min-width: 0; }
.ph { margin: -10px -12px 10px; padding: 6px 12px; font-size: 15px; font-weight: normal; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); background: linear-gradient(#3a2814, #1e140a); border-bottom: 1px solid var(--edge); border-radius: 5px 5px 0 0; }
.sh { margin: 12px 0 6px; font-size: 12px; font-weight: normal; letter-spacing: 2px; text-transform: uppercase; color: var(--gold2); }

/* class picker */
.cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cls { position: relative; border: 1px solid var(--edge2); border-radius: 4px; padding: 6px 2px 5px; text-align: center; cursor: pointer; background: linear-gradient(#24180d, #120c07); font-size: 13px; user-select: none; }
.cls:hover { border-color: var(--edge); }
.cls.sel { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, 0 0 10px rgba(242, 193, 78, 0.25); background: linear-gradient(#3a2814, #1c120a); }
.glyph { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 0 auto 3px; border-radius: 50%; border: 2px solid currentColor; background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.7)); font: 18px/1 'Segoe UI Symbol', 'Noto Sans Symbols', Georgia, serif; box-shadow: 0 0 0 1px #000; }
.cgrid.small .glyph { width: 24px; height: 24px; font-size: 13px; }
.cgrid.small .cls { font-size: 11px; padding: 4px 1px; }
.classinfo h2 { margin: 12px 0 2px; font-size: 22px; font-weight: normal; }
.classinfo p { margin: 0 0 8px; font-size: 14px; color: #ddd0b4; }
.stats { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 14px; border-top: 1px solid var(--edge2); border-bottom: 1px solid var(--edge2); padding: 6px 0; }
.stats span { color: var(--gold2); font-size: 11px; letter-spacing: 1.5px; align-self: center; }
.pool { display: flex; flex-wrap: wrap; gap: 4px; }
.sicon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 4px; border: 1px solid #000; box-shadow: inset 0 0 0 1px var(--c, #888), inset 0 0 12px rgba(0, 0, 0, 0.8); background: radial-gradient(circle at 35% 30%, var(--c, #888), #140c06 85%); color: #fff; font: bold 12px/1 system-ui, sans-serif; text-shadow: 0 1px 2px #000; }
.sicon.start { outline: 1px solid var(--gold); outline-offset: 1px; }

/* hero pane */
.namerow { display: flex; gap: 6px; }
.namerow input { flex: 1; font-size: 20px; text-align: center; color: var(--gold); background: #0b0805; }
.heroline { text-align: center; margin: 6px 0 8px; font-size: 16px; }
.races { display: grid; gap: 4px; }
.races .fac { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.races .fac > span { flex: 0 0 64px; font-size: 10px; letter-spacing: 1.5px; color: var(--dim); }
.races .fac.horde > span { color: #d35a4a; }
.races .fac.alliance > span { color: #5a8ad3; }
.race { border: 1px solid var(--edge2); border-radius: 3px; padding: 3px 8px; font-size: 13px; cursor: pointer; background: #160f08; user-select: none; }
.race.sel { border-color: var(--gold); color: var(--gold); background: #2c1e0f; }
.equip { display: flex; flex-wrap: wrap; gap: 4px; min-height: 28px; }
.equip .item { border: 1px solid var(--edge2); border-radius: 3px; padding: 2px 7px; font-size: 12px; background: #120c07; }
.equip .none { color: var(--dim); font-size: 13px; font-style: italic; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
button.tall { display: flex; flex-direction: column; align-items: center; padding: 8px 6px; color: var(--gold); font-size: 16px; }
button.tall small { color: var(--dim); font-size: 11px; }
.traits { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.traits li { padding: 3px 0 3px 14px; position: relative; color: #ddd0b4; }
.traits li::before { content: '\25C6'; position: absolute; left: 0; top: 3px; color: var(--gold2); font-size: 9px; }
.traits li b { color: var(--gold); font-weight: normal; }

/* zones */
.zones { display: flex; flex-direction: column; gap: 4px; max-height: 560px; overflow-y: auto; padding-right: 2px; }
.zone { border: 1px solid var(--edge2); border-radius: 4px; padding: 6px 10px; cursor: pointer; background: linear-gradient(90deg, #1e140b, #110b06); }
.zone .zn { font-size: 15px; }
.zone .zs { font-size: 12px; color: var(--dim); }
.zone.locked { opacity: 0.55; }
.zone.sel { border-color: var(--gold); background: linear-gradient(#33230f, #160f08); cursor: default; padding: 10px 12px; }
.zone.sel .zn { font-size: 20px; color: var(--gold); }
.zone.sel p { font-size: 13px; color: #ddd0b4; margin: 6px 0; }
.zone .foes { font-size: 12px; color: var(--dim); margin: 4px 0; }
.zone .foes b { color: var(--gold2); font-weight: normal; letter-spacing: 1px; font-size: 10px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chip { font-size: 12px; border: 1px solid #5a2a1a; background: #2a120b; border-radius: 10px; padding: 1px 8px; white-space: nowrap; }
.chip b { color: var(--gold); font-weight: normal; margin-right: 4px; }
.chip.final { border-color: #c0703a; background: #431a0c; }

/* run bar */
.runbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--edge2); border-radius: 5px; background: rgba(0, 0, 0, 0.3); }
.runopts { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.runopts .sh { margin: 0; }
.ro { font-size: 14px; }
.joinrow { display: flex; gap: 6px; }
.joinrow input { width: 96px; text-transform: uppercase; letter-spacing: 3px; text-align: center; font-family: 'Courier New', monospace; font-weight: bold; }
.check { color: var(--dim); font-size: 13px; }
.enterbox { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-left: auto; text-align: center; }
.hint { text-align: center; color: var(--dim); font-size: 12px; padding-top: 8px; }

/* lobby */
.code { font: bold 54px/1 'Courier New', monospace; letter-spacing: 10px; text-align: center; color: var(--gold); margin: 6px 0; text-shadow: 0 0 14px rgba(242, 193, 78, 0.3); }
.code { overflow: hidden; white-space: nowrap; max-width: 100%; }
.code.addr { font-size: 32px; letter-spacing: 1px; }
.diff { text-align: center; margin: 8px 0; padding: 6px; border: 1px solid var(--edge2); border-radius: 4px; background: rgba(0, 0, 0, 0.3); font-size: 14px; }
.diff b { color: var(--gold); font-size: 18px; font-weight: normal; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px; }
.slots li { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 6px; border: 1px solid var(--edge2); border-radius: 4px; background: #150e08; font-size: 13px; min-width: 0; }
.slots li.empty { border-style: dashed; color: #5d4f3c; background: transparent; justify-content: center; font-style: italic; }
.slots li.me { border-color: var(--gold2); }
.slots .glyph { width: 24px; height: 24px; font-size: 13px; margin: 0; flex: 0 0 24px; }
.slots .who { min-width: 0; line-height: 1.1; }
.slots .who b { display: block; font-weight: normal; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.slots .who span { font-size: 11px; color: var(--dim); white-space: nowrap; }
.slots .tag { margin-left: auto; font-size: 10px; color: var(--gold2); letter-spacing: 1px; }

/* HUD */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; font-family: system-ui, sans-serif; text-shadow: 0 1px 2px #000; }
#xpbar { position: absolute; top: 0; left: 0; right: 0; height: 12px; background: rgba(0, 0, 0, 0.7); border-bottom: 1px solid #000; }
#xpfill { height: 100%; width: 0; background: linear-gradient(#b48cff, #6a3fd1); transition: width 0.2s; }
#lvl { position: absolute; left: 50%; top: -2px; transform: translateX(-50%); font-size: 11px; font-weight: bold; }
#unit { position: absolute; top: 20px; left: 12px; display: flex; align-items: center; }
#portrait { position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--gold2); box-shadow: 0 0 0 2px #000, inset 0 0 14px #000; background: radial-gradient(circle at 40% 35%, #3a2a18, #0b0704); display: flex; align-items: center; justify-content: center; font: 30px/1 'Segoe UI Symbol', 'Noto Sans Symbols', Georgia, serif; }
#portrait b { position: absolute; bottom: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 3px; border-radius: 11px; background: #1a0f06; border: 1px solid var(--gold2); font: bold 12px/20px system-ui, sans-serif; color: var(--gold); text-align: center; }
.uf { margin-left: -10px; padding: 3px 8px 4px 16px; background: linear-gradient(90deg, rgba(20, 12, 6, 0.9), rgba(20, 12, 6, 0.6)); border: 1px solid #000; border-left: 0; border-radius: 0 4px 4px 0; }
#pname { font: 13px Georgia, serif; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
#hpbar { position: relative; width: 200px; height: 16px; background: rgba(0, 0, 0, 0.8); border: 1px solid #000; margin-top: 2px; }
#hpfill { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; background: linear-gradient(#4ae35a, #1f8a2a); }
#shfill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: rgba(220, 230, 255, 0.55); box-shadow: inset 0 0 4px #fff; }
#hptxt { position: absolute; inset: 0; text-align: center; font-size: 11px; line-height: 16px; font-weight: bold; }
#party { position: absolute; top: 90px; left: 12px; width: 180px; display: grid; gap: 2px; font-size: 11px; }
#party.dense { width: 250px; grid-template-columns: 1fr 1fr; }
.pm { position: relative; height: 15px; background: rgba(0, 0, 0, 0.75); border: 1px solid #000; overflow: hidden; }
.pm i { position: absolute; top: 0; bottom: 0; left: 0; opacity: 0.85; }
.pm u { position: absolute; top: 0; bottom: 0; left: 0; background: rgba(255, 230, 120, 0.55); text-decoration: none; }
.pm b { position: relative; padding-left: 4px; line-height: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; padding-right: 30px; }
.pm em { position: absolute; right: 3px; top: 0; line-height: 13px; font-style: normal; font-size: 9px; color: #ffb0a0; }
.pm.dn { border-color: #6a1010; }
.pm.dn i { background: #3a0c0c !important; width: 100% !important; }
#party .more { color: var(--dim); font-size: 11px; }
#party.dense .pm { height: 12px; }
#party.dense .pm b, #party.dense .pm em { line-height: 10px; font-size: 9px; }
#top { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); text-align: center; width: min(520px, 46vw); }
#timer { font: bold 30px/1.1 Georgia, serif; color: #fff4d8; letter-spacing: 1px; }
#nextBoss { font-size: 13px; color: #e8c9a0; }
#nextBoss span { color: var(--dim); }
#bossbar { margin-top: 6px; font: 14px Georgia, serif; color: #ffd28a; }
#bossbar > div { height: 14px; background: rgba(0, 0, 0, 0.8); border: 1px solid #000; box-shadow: 0 0 0 1px var(--edge); margin-top: 2px; }
#bossFill { height: 100%; background: linear-gradient(#e0402a, #7a140a); transition: width 0.15s; }
#tally { position: absolute; top: 20px; right: 12px; min-width: 120px; padding: 6px 10px; background: rgba(20, 12, 6, 0.75); border: 1px solid var(--edge); border-radius: 4px; font-size: 13px; }
#tally > div { display: flex; justify-content: space-between; gap: 12px; }
#tally span { color: var(--dim); }
#tally b { color: #fff4d8; }
#goldRow b { color: var(--gold); }
#horde { font-size: 11px; justify-content: flex-end !important; }
#banner { position: absolute; top: max(24%, var(--lfl-bot, 0px)); left: 0; right: 0; padding: 0 16px; text-align: center; font: 26px Georgia, serif; color: var(--gold); opacity: 0; transition: opacity 0.4s; }
#banner.show { opacity: 1; }
.friends { margin: 6px 0; padding: 6px 8px; border: 1px solid var(--edge); border-radius: 5px; background: rgba(0, 0, 0, 0.45); max-height: 220px; overflow-y: auto; }
.friends .fhd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.friends .frow { display: flex; align-items: center; gap: 8px; padding: 2px 0; font-size: 13px; }
.friends .fname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friends .fst { font-size: 11px; color: #9a8f7a; }
.friends .fst.ing { color: #1eff00; }
#wowLoad { position: fixed; left: 50%; bottom: 14%; transform: translateX(-50%); z-index: 9; padding: 4px 12px; border: 1px solid #5a4420; border-radius: 4px; background: rgba(0, 0, 0, 0.75); font: 13px FrizQT, Georgia, serif; color: #ffd100; text-shadow: 1px 1px 0 #000; pointer-events: none; }
.prebar { position: relative; height: 18px; margin: 6px 0; border: 1px solid #5a4420; border-radius: 3px; background: rgba(0, 0, 0, 0.6); overflow: hidden; }
.prebar .prefill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(#b48a2a, #6e4f12); transition: width 0.3s; }
.prebar span { position: relative; display: block; text-align: center; font: 12px/18px var(--fbody, Georgia, serif); color: #f3ead6; text-shadow: 1px 1px 0 #000; }
.preover { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.85); }
.preover .prebar { width: min(420px, 90vw); }
.preover.hidden { display: none; }
#plist .pre { margin-left: auto; margin-right: 6px; font-size: 11px; color: #ffd100; }
#plist .pre.ok { color: #1eff00; }
.zone .ztag { margin-left: 6px; padding: 0 4px; border: 1px solid #a335ee; border-radius: 3px; font: 9px/14px var(--fbody, Georgia, serif); color: #d8b4ff; vertical-align: middle; letter-spacing: 1px; text-transform: uppercase; }
.exerow { margin: 4px 0 2px; text-align: center; line-height: 1.4; }
.exerow a { color: #ffd100; margin-right: 4px; }
.friends .ferr { color: #ff6a50; font-size: 12px; }
#gate { position: absolute; top: 34%; left: 0; right: 0; text-align: center; font: 32px var(--ftitle, Georgia, serif); color: #f3ead6; text-shadow: 0 2px 3px #000, 0 0 10px #000; }
#banner small { display: block; font-size: 17px; color: var(--ink); font-style: italic; }
#bottom { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); }
#spells { display: flex; flex-wrap: wrap; justify-content: center; max-width: 96vw; gap: 5px; padding: 5px; background: rgba(15, 9, 4, 0.75); border: 1px solid var(--edge); border-radius: 5px; }
.sp { position: relative; width: 50px; height: 50px; border-radius: 4px; overflow: hidden; }
.sp .sicon { width: 100%; height: 100%; font-size: 14px; }
.sp.empty { border: 1px dashed #4a3620; background: rgba(0, 0, 0, 0.4); }
.sp .cd { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.65); }
.sp .rk { position: absolute; bottom: 1px; left: 0; right: 0; text-align: center; font-size: 8px; letter-spacing: 1px; color: var(--gold); }
#downNote { position: absolute; top: 24%; left: 50%; transform: translateX(-50%); z-index: 9; width: min(340px, 80vw); text-align: center; padding: 10px 14px; background: rgba(40, 6, 6, 0.75); border: 1px solid #a03020; border-radius: 6px; }
#downNote b { display: block; font: 22px Georgia, serif; color: #ff9080; }
#mplusRow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
#mplusRow .mpl { font: 14px var(--ftitle, Georgia, serif); color: #a335ee; margin-right: 4px; }
#mplusRow input { width: 64px; text-align: center; background: #1a120a; color: #ffd100; border: 1px solid #6b5428; border-radius: 3px; font: 13px FrizQT, Georgia, serif; }
#mplusRow .mpstep { min-width: 24px; }
#mpInfo { flex-basis: 100%; color: #c8bca0; line-height: 1.35; }
#mtBadge { margin-top: 2px; font: 12px FrizQT, Georgia, serif; color: #c8bca0; text-shadow: 1px 1px 0 #000; }
#mtBadge b { color: #a335ee; font-weight: normal; margin-right: 4px; }
#endMt { margin: -4px 0 8px; font: 18px var(--ftitle, Georgia, serif); color: #a335ee; text-shadow: 0 1px 2px #000; }
#hitEdge { position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, transparent 58%, rgba(190, 0, 0, 0.45) 86%, rgba(150, 0, 0, 0.85) 100%); }
#specNote { position: absolute; top: 24%; left: 50%; transform: translateX(-50%); z-index: 9; width: min(340px, 80vw); text-align: center; padding: 10px 14px; background: rgba(0, 0, 0, 0.6); border: 1px solid #5a4420; border-radius: 6px; pointer-events: none; }
#specNote b { display: block; font: 22px Georgia, serif; color: #ffd100; }
#specNote span { font-size: 13px; color: #f2e3b8; }
body.wowui #specNote { background: none; border: 0; }
body.wowui #specNote b { font: 26px FrizQT, Georgia, serif; text-shadow: 2px 2px 0 #000; }
body.wowui #specNote span { color: #fff; text-shadow: 1px 1px 0 #000; }
body.lf-arena-spec #lfRecap { display: none; }
#downNote span { font-size: 13px; color: #ffd0c8; }
#downNote .rv { height: 8px; margin-top: 6px; background: rgba(0, 0, 0, 0.7); border: 1px solid #000; }
#rvfill { display: block; height: 100%; width: 0; background: linear-gradient(#ffe27a, #c9952f); }
#pickHint { position: absolute; bottom: 86px; left: 50%; transform: translateX(-50%); color: var(--gold); font-size: 14px; white-space: nowrap; }

/* level up */
#levelup { position: fixed; inset: 0; z-index: 8; display: flex; padding: 12px; background: rgba(0, 0, 0, 0.65); overflow: auto; --rays: rgba(255, 196, 80, 0.16); }
/* Co-op never pauses: the cards become a compact strip at the bottom, the field stays visible, and every
   mouse drag outside the cards still steers and looks in the 3D view. */
/* Co-op (Ryan: full size, no pause): the solo layout over a lighter dim so danger stays visible; drags pass through outside the cards. */
#levelup:not(.solo) { background: rgba(0, 0, 0, 0.3); --rays: rgba(255, 196, 80, 0.12); pointer-events: none; overflow: visible; }
#levelup:not(.solo)::after { opacity: 0.7; }
#levelup:not(.solo) #luQueue:empty { display: none; }
#levelup:not(.solo) .card { pointer-events: auto; background: linear-gradient(color-mix(in srgb, var(--rc) 20%, rgba(11, 11, 11, 0.85)), rgba(11, 11, 11, 0.85) 70%); }
#levelup:not(.solo) .lufoot button, #levelup:not(.solo) .lucast, #levelup:not(.solo) #luNote button { pointer-events: auto; }
#levelup::before { content: ''; position: fixed; left: 50%; top: 45%; width: 130vmax; height: 130vmax; margin: -65vmax 0 0 -65vmax; border-radius: 50%; pointer-events: none; background: repeating-conic-gradient(from 0deg, var(--rays) 0deg 5deg, transparent 5deg 15deg); -webkit-mask: radial-gradient(closest-side, #000, rgba(0, 0, 0, 0.5) 40%, transparent); mask: radial-gradient(closest-side, #000, rgba(0, 0, 0, 0.5) 40%, transparent); animation: lurays 60s linear infinite; }
#levelup::after { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, rgba(255, 190, 70, 0.22), transparent 45%); }
@keyframes lurays { to { transform: rotate(360deg); } }
.lubox { position: relative; z-index: 1; margin: auto; width: min(780px, 100%); text-align: center; font-family: var(--fbody, Georgia, serif); }
.lulvl { display: inline-block; font: bold 11px/1 var(--fbody, system-ui, sans-serif); letter-spacing: 3px; color: #2a1a00; background: linear-gradient(#ffd866, #e0a92c); border-radius: 10px; padding: 4px 12px 3px; box-shadow: 0 0 10px rgba(255, 190, 60, 0.45); }
.lubox h2 { margin: 6px 0 0; font: normal clamp(34px, 4.6vw, 64px)/1.1 var(--ftitle, Georgia, serif); color: #f5cf5e; background: linear-gradient(#fff2b8, #f1c24c 55%, #b9811f); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 1px #000) drop-shadow(0 0 14px rgba(255, 190, 60, 0.45)); animation: lutitle 0.35s ease-out both; }
@keyframes lutitle { from { opacity: 0; transform: scale(0.85); } }
.lusub { margin: 2px 0 16px; color: #e8e0d0; font-size: 14px; text-shadow: 0 1px 2px #000; }
#cards { display: flex; justify-content: center; gap: clamp(10px, 2.2vw, 24px); perspective: 1200px; }
.card { --rc: #9d9d9d; position: relative; display: flex; flex-direction: column; align-items: center; flex: 0 1 230px; min-height: 340px; padding: 16px 14px 10px; text-align: center; border: 1.5px solid var(--rc); border-radius: 7px; cursor: pointer; font-size: 13px; color: #e8e0d0; background: linear-gradient(color-mix(in srgb, var(--rc) 20%, #0b0b0b), #0b0b0b 70%); box-shadow: 0 0 12px color-mix(in srgb, var(--rc) 55%, transparent), inset 0 0 24px rgba(0, 0, 0, 0.6); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; animation: ludeal 0.45s cubic-bezier(.2, .8, .3, 1.2) both; }
.card:nth-child(2) { animation-delay: 0.12s; } .card:nth-child(3) { animation-delay: 0.24s; } .card:nth-child(4) { animation-delay: 0.36s; }
@keyframes ludeal { from { opacity: 0; transform: rotateY(90deg) scale(0.9); } }
.card:hover { transform: translateY(-6px) scale(1.04); border-color: color-mix(in srgb, var(--rc) 60%, #fff); box-shadow: 0 0 20px color-mix(in srgb, var(--rc) 80%, transparent), inset 0 0 24px rgba(0, 0, 0, 0.6); }
.card .key { position: absolute; top: 7px; left: 7px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--rc) 70%, #000); background: rgba(0, 0, 0, 0.7); color: #e8e0d0; font: bold 11px/18px system-ui, sans-serif; text-align: center; }
.card .new { position: absolute; top: 8px; right: 8px; font: bold 9px/1 system-ui, sans-serif; letter-spacing: 1px; color: #fff; background: color-mix(in srgb, var(--rc) 75%, #000); border-radius: 3px; padding: 3px 5px; text-shadow: 0 1px 1px #000; }
#cards .card .sicon { display: block; width: 52px; height: 52px; flex: 0 0 52px; margin: 8px 0 10px; font-size: 16px; box-shadow: 0 0 0 1px #000, 0 0 0 2px color-mix(in srgb, var(--rc) 45%, #000), 0 3px 8px rgba(0, 0, 0, 0.8); }
.card .rar { font: bold 10px system-ui, sans-serif; letter-spacing: 2px; color: var(--rc); text-transform: uppercase; }
.card h3 { margin: 3px 0 1px; font: normal 17px/1.15 var(--fbody, Georgia, serif); color: var(--nc, var(--rc)); text-shadow: 0 1px 2px #000; }
.card.r0 h3 { --nc: #fff; }
.card .kind { font-size: 11px; color: #9a8f7a; }
.card .tip { margin: 8px 0 6px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.12); width: 100%; color: #e8e0d0; flex: 1; line-height: 1.35; }
.card .bonus { display: block; margin-top: 6px; color: #e8e0d0; }
.card .bonus b { color: #1eff00; font-weight: normal; }
.card .foot { width: 100%; font-size: 11px; color: #9a8f7a; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 6px; }
/* Spell forks (lf-gameplay spellvars.js): a gold double frame and a FORK tag so the one-time choice stands out. */
.card.fork { box-shadow: 0 0 0 1px #000, 0 0 0 3px #c9a24a, 0 0 18px rgba(255, 200, 80, 0.45); background-image: linear-gradient(rgba(201, 162, 74, 0.18), transparent 55%); }
.card.fork .new { background: #8a6418; color: #fff4c8; }
/* Spell upgrades (spellmods.js): a thin blue-silver double frame, quieter than forks. */
.card.smod { box-shadow: 0 0 0 1px #000, 0 0 0 2px #7fb0e0; }
.card.smod .new { background: #2a4a70; color: #e8f2ff; }
/* Keystones (keystones.js, levels 10/20/30): a legendary orange frame with a slow glow; the downside reads in red. */
.card.keystone { box-shadow: 0 0 0 1px #000, 0 0 0 3px #ff8000, 0 0 22px rgba(255, 128, 0, 0.55); background-image: linear-gradient(rgba(255, 128, 0, 0.2), transparent 60%); animation: kspulse 2.4s ease-in-out infinite; }
.card.keystone .new { background: #8a4200; color: #ffe8c8; }
.card .kscost { display: block; margin-top: 6px; color: #ff5050; }
@keyframes kspulse { 50% { box-shadow: 0 0 0 1px #000, 0 0 0 3px #ffb040, 0 0 30px rgba(255, 160, 40, 0.7); } }
/* School sets: the set tag under a card name, and the build-maker glow. */
.card .archtag.core { color: #9d9d9d; font-style: italic; }
.card .archtag { margin-top: 2px; font: 11px FrizQT, Georgia, serif; color: #ff9a3c; text-shadow: 1px 1px 0 #000; }
.card.oc-new .new { background: #1a8a1a; } .card.oc-upgrade .new { background: #a07800; } .card.oc-choice .new { background: #1d5a9a; } .card.oc-bags .new { background: #555; }
.card .vd, .lsu-v .vd-up, .lsu-v .vd-down, .lsu-v .vd-side { font-weight: bold; }
.card .vd { margin: 2px 0 4px; font-size: 13px; text-align: center; }
.vd-up { color: #1eff00; } .vd-down { color: #ff3030; } .vd-side { color: #ffd100; }
.card .vd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; text-align: left; font-size: 11px; line-height: 1.3; }
.card .vd-cols b { display: block; margin-bottom: 2px; color: #ffd100; font-weight: normal; font-size: 11px; }
.lsu-v { text-align: center; margin: -2px 0 6px; font-size: 11px; }
.card .settag { margin-top: 2px; font: 11px FrizQT, Georgia, serif; color: #66ccff; text-shadow: 1px 1px 0 #000; }
.card.bmaker { box-shadow: 0 0 0 1px #000, 0 0 0 2px #66ccff, 0 0 18px rgba(102, 204, 255, 0.55); }
/* Class signatures (classsig.js): framed in your class colour. */
.card.sig { box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--clsc, #ffd100), 0 0 18px color-mix(in srgb, var(--clsc, #ffd100) 45%, transparent); background-image: linear-gradient(color-mix(in srgb, var(--clsc, #ffd100) 18%, transparent), transparent 55%); }
.card.sig .new { background: color-mix(in srgb, var(--clsc, #ffd100) 60%, #000); color: #fff; }
.card.r0 { --rc: #9d9d9d; } .card.r1 { --rc: #1eff00; } .card.r2 { --rc: #0070dd; } .card.r3 { --rc: #a335ee; } .card.r4 { --rc: #ff8000; }
.card.banish { --rc: #ff5a4a; }
#cards.picking .card { animation: none; pointer-events: none; transition: transform 0.9s cubic-bezier(.2, .8, .3, 1), opacity 0.9s; }
#cards.picking .card.picked { transform: scale(1.12); box-shadow: 0 0 34px var(--rc); z-index: 1; }
#cards.picking .card:not(.picked) { transform: scale(0.82); opacity: 0; }
.lufoot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.lulab { font: bold 10px system-ui, sans-serif; letter-spacing: 2px; color: #9a8f7a; text-transform: uppercase; }
#luSlots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 70%; }
/* 4 and 5 card hands: a wider box and tighter cards so every card fits at 800 px. */
@media (min-width: 641px) {
  .lubox:has(.card:nth-child(4)) { width: min(1000px, 100%); }
  .lubox:has(.card:nth-child(5)) { width: min(1200px, 100%); }
  #cards:has(.card:nth-child(4)) { gap: clamp(6px, 1.2vw, 18px); }
  #cards:has(.card:nth-child(4)) .card { min-height: 300px; padding: 14px 9px 8px; font-size: 12px; }
  #cards:has(.card:nth-child(5)) .card { font-size: 11.5px; padding: 13px 7px 8px; }
  #cards:has(.card:nth-child(5)) .card h3 { font-size: 15px; }
  #cards:has(.card:nth-child(5)) .card .sicon { width: 44px; height: 44px; flex-basis: 44px; }
}
.card:nth-child(5) { animation-delay: 0.48s; }
@media (max-width: 640px) {
  #cards:has(.card:nth-child(4)) { gap: 4px; }
  #cards:has(.card:nth-child(4)) .card { padding: 5px 8px 4px 28px; }
  #cards:has(.card:nth-child(4)) .card .foot { display: none; }
  #cards:has(.card:nth-child(4)) .card .tip { font-size: 11px; line-height: 1.25; margin: 2px 0 0; padding-top: 3px; }
  #cards:has(.card:nth-child(4)) .card .bonus { margin-top: 2px; }
}
#luSlots .sicon, #luSlots .es { width: 30px; height: 30px; font-size: 10px; }
#luSlots .es { display: inline-block; border: 1px solid #3a2e1c; background: rgba(0, 0, 0, 0.5); border-radius: 3px; }
#levelup .lufoot button { height: auto; border-radius: 12px; border-width: 1px; padding: 4px 12px; background: linear-gradient(#4a1c10, #26100a); border: 1px solid #b08a3a; border-image: none; color: #e8e0d0; font: 12px/16px var(--fbody, Georgia, serif); }
#rerollBtn b { color: var(--gold); }
#levelup .lufoot button:disabled { opacity: .5; cursor: default; }
/* WoW CastingBarFrame look for the co-op auto-pick countdown. */
.lucast { position: relative; width: min(260px, 80%); height: 14px; margin: 14px auto 0; border: 2px solid #8a7a5a; border-radius: 3px; background: rgba(0, 0, 0, 0.75); box-shadow: 0 0 0 1px #000, 0 2px 6px rgba(0, 0, 0, 0.8); }
.lucast-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#ffd75a, #e8a000); transition: width 0.12s linear; }
.lucast span { position: absolute; inset: 0; font: 11px/14px var(--fbody, Georgia, serif); color: #fff; text-align: center; text-shadow: 1px 1px 0 #000; }
#luNote:empty, #luQueue:empty { display: none; }
#luNote { margin: 8px 0 0; }

/* end */
.endframe { width: min(640px, 100%); padding: 16px 18px; text-align: center; }
#endLine { margin: 4px 0 10px; color: #ddd0b4; }
.award { color: var(--gold); font-size: 14px; }
.award:empty, .loot:empty { display: none; }
.loot { margin: 8px 0; padding: 8px; border: 1px solid var(--edge2); border-radius: 4px; background: rgba(0, 0, 0, 0.3); }
.loot h4 { margin: 0 0 6px; font: 11px system-ui, sans-serif; letter-spacing: 2px; color: var(--gold2); }
.loot .item { display: inline-block; margin: 2px; padding: 2px 8px; border: 1px solid currentColor; border-radius: 3px; font-size: 13px; }
.loot .item sup { font: bold 9px system-ui, sans-serif; margin-left: 4px; color: var(--r1); }
.scorewrap { max-height: 40vh; overflow: auto; }
#score { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
#score th, #score td { padding: 4px 6px; border-bottom: 1px solid #3a2a18; text-align: right; }
#score th { color: var(--gold2); font-weight: normal; font-size: 12px; letter-spacing: 1px; }
#score th:first-child, #score td:first-child { text-align: left; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: 90vw; background: #1a110a; border: 1px solid var(--edge); padding: 8px 14px; border-radius: 6px; z-index: 30; }

@media (max-width: 1000px) {
  .cols { grid-template-columns: 1fr 1fr; }
  .cols > .pane:last-child { grid-column: 1 / -1; }
  .zones { max-height: none; }
}
@media (max-width: 640px) {
  .screen { padding: 6px; }
  .frame { padding: 0 8px 8px; box-shadow: 0 0 0 2px var(--edge); }
  .brand { font-size: 21px; }
  .topbar { gap: 6px; }
  .tabs { flex-basis: 100%; }
  .cols, .lcols { grid-template-columns: 1fr; }
  .runbar { position: sticky; bottom: 0; z-index: 2; background: #140d07; padding: 8px; }
  .enterbox { margin-left: 0; width: 100%; }
  button.enter { width: 100%; font-size: 17px; padding: 10px 12px; }
  .hint { display: none; }
  .code { font-size: 42px; letter-spacing: 6px; }
  .slots { grid-template-columns: 1fr 1fr; }
  .slots li { height: 30px; font-size: 12px; }
  .slots .tag { display: none; }
  #unit { top: 16px; left: 6px; }
  #portrait { width: 40px; height: 40px; font-size: 20px; }
  #portrait b { min-width: 18px; height: 18px; font-size: 10px; line-height: 16px; }
  .uf { padding-left: 13px; }
  #pname { max-width: 80px; font-size: 11px; }
  #hpbar { width: 84px; height: 13px; }
  #hptxt { font-size: 9px; line-height: 13px; }
  #top { top: 14px; width: 110px; }
  #timer { font-size: 22px; }
  #nextBoss { font-size: 10px; }
  #nextBoss span { display: none; }
  #bossbar { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); width: 92vw; font-size: 12px; }
  #tally { top: 16px; right: 6px; min-width: 0; padding: 3px 6px; font-size: 11px; }
  #tally > div { gap: 6px; }
  #party, #party.dense { top: 62px; left: 6px; width: 120px; grid-template-columns: 1fr; gap: 1px; }
  #party .pm { height: 10px; }
  #party .pm b, #party .pm em { font-size: 8px; line-height: 8px; }
  #spells { gap: 3px; padding: 3px; }
  .sp { width: 42px; height: 42px; }
  #cards { flex-direction: column; align-items: stretch; gap: 6px; }
  .card { flex: none; min-height: 0; display: grid; grid-template-columns: 40px 1fr; grid-template-areas: "icon head" "tip tip" "foot foot"; align-items: center; text-align: left; column-gap: 8px; padding: 8px 10px 6px 30px; }
  #cards .card .sicon { grid-area: icon; width: 36px; height: 36px; flex-basis: 36px; margin: 0; }
  .card .hd { grid-area: head; }
  .card .tip { grid-area: tip; font-size: 12px; margin: 4px 0 3px; padding-top: 4px; }
  .card .foot { grid-area: foot; padding-top: 3px; }
  .card h3 { font-size: 15px; }
  .lubox h2 { font-size: 28px; }
  .lusub { font-size: 12px; margin-bottom: 8px; }
  #luSlots .sicon, #luSlots .es { width: 24px; height: 24px; }
}
#banishBtn.on { border-color: #ff5a4a; color: #ffb0a0; }

/* main menu, laid out like the original picker */
#menu { --mp: rgba(14, 10, 6, 0.86); --mb: #5a4420; --cream: #e8e0d0; --lab: #9a8f7a; flex-direction: column; }
#menu::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 50% 60%, transparent 30%, rgba(0, 0, 0, 0.75)); }
#menu .frame { width: 1140px; margin: auto; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
#menu .topbar { flex-direction: column; gap: 6px; padding: 0 0 10px; border: 0; background: none; }
#menu .brand { font: normal clamp(36px, 4.4vw, 56px)/1 var(--ftitle, Georgia, serif); letter-spacing: 1px; text-align: center; color: #f5cf5e; background: linear-gradient(#fff0b0, #f2c450 50%, #b47a1c); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 1px #000) drop-shadow(0 0 10px rgba(255, 180, 60, 0.3)); text-shadow: none; }
#menu .brand span { display: block; margin: 2px 0 0; font: 11px/1 var(--fbody, Georgia, serif); letter-spacing: 4px; color: var(--lab); -webkit-text-fill-color: var(--lab); }
#menu .tabs { flex: none; justify-content: center; gap: 4px; max-width: 100%; }
#menu .tabs button, #menu .tabs button.on { height: auto; padding: 2px 8px; border: 1px solid #6b5428; border-image: none; border-radius: 4px; background: #1a120a; color: var(--cream); font: 11px/15px var(--fbody, Georgia, serif); text-shadow: 0 1px 1px #000; filter: none; }
#menu .tabs button.on { border-color: #c9a24a; background: #2e2010; color: #ffe9a8; }
#menu .tabs button:hover { border-color: #c9a24a; color: #fff; }
#menu .tabs button.pts { color: #3ce03c; }
#menu .cols { grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; padding: 0; }
#menu .pane { background: var(--mp); border: 1px solid var(--mb); border-radius: 6px; box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.6), 0 4px 18px rgba(0, 0, 0, 0.6); padding: 10px 14px 14px; color: var(--cream); }
#menu .ph { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 0; background: none; border: 0; border-radius: 0; font: normal 20px/1.2 var(--ftitle, Georgia, serif); letter-spacing: 0.5px; text-transform: none; color: #f2c450; text-shadow: 0 1px 2px #000; justify-content: center; }
#menu .ph::before, #menu .ph::after, #menu .sh.orn::before, #menu .sh.orn::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 162, 74, 0.6)); }
#menu .ph::after, #menu .sh.orn::after { background: linear-gradient(90deg, rgba(201, 162, 74, 0.6), transparent); }
#menu .sh { margin: 12px 0 6px; font: bold 10px var(--fbody, system-ui, sans-serif); letter-spacing: 1.5px; text-transform: uppercase; color: var(--lab); text-shadow: none; }
#menu .sh.orn { display: flex; align-items: center; gap: 10px; font: normal 17px var(--ftitle, Georgia, serif); letter-spacing: 0.5px; text-transform: none; color: #f2c450; }

#menu .cgrid { grid-template-columns: repeat(3, 64px); justify-content: center; gap: 8px 18px; }
#menu .cgrid.many { grid-template-columns: repeat(4, 56px); gap: 6px 10px; }
#menu .cgrid.many .cls .glyph { width: 40px; height: 40px; }
#menu .cgrid.huge { grid-template-columns: repeat(5, 46px); gap: 4px 8px; max-height: 280px; overflow-y: auto; padding-right: 4px; }
#menu .cgrid.huge .cls { font-size: 9px; line-height: 10px; }
#menu .cgrid.huge .cls .glyph { width: 34px; height: 34px; margin-bottom: 2px; }
.cgrid .cgh { grid-column: 1 / -1; margin: 4px 0 0; padding-bottom: 2px; border-bottom: 1px solid #5a4420; color: #ffd100; font: 11px FrizQT, Georgia, serif; text-align: left; }
.cgrid.many { grid-template-columns: repeat(4, 1fr); }
#menu .cls, #menu .cls.sel { padding: 0; border: 0; background: none; box-shadow: none; font-size: 11px; color: var(--cream); }
#menu .cls .glyph { width: 46px; height: 46px; margin: 0 auto 3px; border-radius: 3px; border: 1px solid #6b5428; box-shadow: 0 0 0 1px #000, 0 2px 6px rgba(0, 0, 0, 0.8); overflow: hidden; }
#menu .cls .glyph .wicon { width: 100%; height: 100%; border: 0; box-shadow: none; }
#menu .cls:hover .glyph { border-color: #c9a24a; }
#menu .cls.sel .glyph { border: 2px solid #ffd100; box-shadow: 0 0 0 1px #000, 0 0 12px rgba(255, 209, 0, 0.55); }
#menu .cls.sel { color: #ffd100; }
#menu .classinfo { margin-top: 10px; border-top: 1px solid rgba(201, 162, 74, 0.25); }
#menu .classinfo h2 { margin: 10px 0 2px; font: 20px var(--fbody, Georgia, serif); color: var(--cream); }
#menu .classinfo p { font-size: 13px; color: #cfc6b4; }
#menu .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border: 0; padding: 0; font-size: 13px; }
#menu .stats > div { padding: 4px 8px; border: 1px solid #3e301a; border-radius: 4px; background: rgba(0, 0, 0, 0.35); color: var(--cream); }
#menu .stats span { display: block; font: bold 9px var(--fbody, system-ui, sans-serif); letter-spacing: 1px; color: var(--lab); }
#menu .pool { gap: 3px; }
#menu .pool .sicon { width: 28px; height: 28px; }
/* Big pools (15+ spells) fill the class panel in a grid instead of shrinking to tiny icons. */
#menu .pool:has(.sicon:nth-child(15)) { display: grid; grid-template-columns: repeat(auto-fill, minmax(32px, 1fr)); }
#menu .pool:has(.sicon:nth-child(15)) .sicon { width: 100%; height: auto; aspect-ratio: 1; }

#menu .herotop { display: flex; gap: 12px; }
#menu .heroport { position: relative; flex: 0 0 96px; height: 128px; border: 1px solid #3e301a; border-radius: 4px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #3a2a16, #0b0805 75%); display: flex; align-items: center; justify-content: center; }
#menu .heroport .hpimg { width: 80px; height: 80px; border-radius: 50%; border: 1px solid #000; box-shadow: 0 0 14px rgba(0, 0, 0, 0.8); }
#menu .heroport .fac { position: absolute; top: 4px; left: 4px; font: bold 8px/1 system-ui, sans-serif; letter-spacing: 1px; padding: 2px 4px; border-radius: 6px; border: 1px solid currentColor; background: rgba(0, 0, 0, 0.6); }
#menu .heroport .fac.alliance { color: #5a9cff; } #menu .heroport .fac.horde { color: #ff5a4a; }
#menu .heroport .hpcls { position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px; border: 1px solid #000; box-shadow: 0 0 0 1px #6b5428; }
#menu .heroport > .glyph { width: 56px; height: 56px; font-size: 30px; }
#menu .heroid { flex: 1; min-width: 0; }
#menu .namerow { gap: 0; }
#menu .namerow input { height: 30px; font: 16px var(--fbody, Georgia, serif); text-align: left; color: #ffe9a8; background: rgba(0, 0, 0, 0.6); border: 1px solid #6b5428; border-radius: 4px 0 0 4px; border-image: none; padding: 0 8px; }
#menu .namerow button { height: 30px; padding: 0 10px; border: 1px solid #6b5428; border-left: 0; border-image: none; border-radius: 0 4px 4px 0; background: #2a1d10; color: var(--cream); font: 11px var(--fbody, Georgia, serif); }
#menu .heroline { margin: 6px 0 4px; text-align: left; font-size: 14px; color: var(--cream); }
#menu .races { gap: 3px; }
#menu .races .fac > span { flex: 0 0 56px; font-size: 9px; }
#menu .race { padding: 2px 6px; border: 1px solid #3e301a; border-radius: 3px; background: rgba(0, 0, 0, 0.4); font-size: 11px; color: var(--cream); }
#menu .race.sel { border-color: #ffd100; color: #ffd100; background: rgba(60, 40, 10, 0.6); box-shadow: none; }
#menu .race.rport { padding: 0; width: 26px; height: 26px; overflow: hidden; }
#menu .race.rport .wicon { width: 100%; height: 100%; border: 0; box-shadow: none; }
#menu .race.rport.sel { border: 2px solid #ffd100; }
#menu .equip { justify-content: center; gap: 3px; min-height: 0; }
#menu .eslot { width: 30px; height: 30px; border: 1px solid #000; box-shadow: 0 0 0 1px #3e301a; background: rgba(0, 0, 0, 0.5); overflow: hidden; }
#menu .eslot[style] { box-shadow: 0 0 0 1px var(--rc); }
#menu .eslot.on { background: radial-gradient(circle, var(--rc), #000 80%); }
#menu .eslot .wicon { width: 100%; height: 100%; border: 0; box-shadow: none; }
#menu .equipnote { margin: 6px 0 0; font-size: 11px; }
#menu .coll { display: flex; justify-content: space-between; font: bold 9px var(--fbody, system-ui, sans-serif); letter-spacing: 1px; color: var(--lab); }
#menu .coll b { color: var(--cream); font-weight: normal; letter-spacing: 0; }
#menu .duo { gap: 8px; margin-top: 10px; }
#menu button.tall { height: auto; min-height: 46px; padding: 6px 4px; border: 1px solid #8a3a24; border-image: none; border-radius: 4px; background: linear-gradient(#5c100b, #2b0605); color: #f2c450; font: 17px/1.1 var(--ftitle, Georgia, serif); text-shadow: 0 1px 2px #000; }
#menu button.tall small { margin-top: 2px; font: 10px var(--fbody, Georgia, serif); color: #cfc6b4; }
#menu button.tall.pts { border-color: #3d8a2a; background: linear-gradient(#174d0f, #0a2306); }
#menu button.tall.pts small { color: #3ce03c; }
#menu button.tall:hover { filter: brightness(1.2); }
#menu .racebox { display: flex; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(201, 162, 74, 0.25); }
#menu .racebox .rbimg { flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid #000; box-shadow: 0 0 0 1px #6b5428; }
#menu .racebox h4 { margin: 0 0 4px; font: 15px var(--fbody, Georgia, serif); color: var(--cream); }
#menu .traits li { padding: 1px 0 1px 12px; font-size: 12px; color: #cfc6b4; }
#menu .traits li::before { content: '\2022'; top: 1px; font-size: 12px; color: #cfc6b4; }
#menu .traits li b { color: #cfc6b4; }

#menu .zones { max-height: none; overflow: visible; gap: 4px; padding: 0; }
#menu .zone { position: relative; overflow: hidden; padding: 4px 10px; border: 1px solid #3e301a; border-radius: 3px; background: #120c07; box-shadow: none; }
#menu .zone .zart { position: absolute; inset: 0; width: auto; height: auto; border: 0; box-shadow: none; background-size: cover; background-position: center 30%; opacity: 0.35; z-index: 0; -webkit-mask: linear-gradient(90deg, transparent 10%, #000 70%); mask: linear-gradient(90deg, transparent 10%, #000 70%); }
#menu .zone > :not(.zart) { position: relative; z-index: 1; }
#menu .zone .zn { font: 15px/1.2 var(--ftitle, Georgia, serif); color: #f2c450; text-shadow: 0 1px 2px #000; }
#menu .zone .zs { font-size: 10px; color: var(--lab); }
#menu .zone.locked { opacity: 1; }
#menu .zone.locked .zn { color: #8f7d55; }
#menu .zone:not(.sel):hover { border-color: #6b5428; }
#menu .zone.sel { padding: 8px 12px 10px; border: 1px solid #c9a24a; background: #1c130a; box-shadow: 0 0 10px rgba(201, 162, 74, 0.25); }
#menu .zone.sel .zart { opacity: 0.45; }
#menu .zone.sel .zn { font-size: 21px; color: #f2c450; }
#menu .zone.sel .zs { font-size: 12px; color: #ff9a3a; }
#menu .zone.sel p { margin: 4px 0; font-size: 12px; color: var(--cream); }
#menu .zone .foes { margin: 2px 0; font-size: 11px; color: #cfc6b4; }
#menu .zone .foes b { display: inline; font-size: 9px; color: var(--lab); }
#menu .chips { gap: 4px; }
#menu .chip { padding: 1px 7px; border: 1px solid #5a4420; border-radius: 3px; background: rgba(0, 0, 0, 0.55); font-size: 11px; color: var(--cream); }
#menu .chip b { color: #ffd100; }
#menu .chip.final { border-color: #d9541e; background: rgba(90, 20, 8, 0.6); }

#menu .runbar { flex-direction: column; align-items: center; gap: 6px; margin-top: 12px; padding: 0; border: 0; background: none; }
#menu .enterbox { flex-direction: row; align-items: stretch; gap: 10px; margin: 0; }
#menu button.enter { display: flex; flex-direction: column; align-items: center; justify-content: center; height: auto; min-width: 320px; padding: 8px 34px 7px; border: 1px solid #c9a24a; border-image: none; border-radius: 4px; background: linear-gradient(#5c100b, #2b0605); box-shadow: 0 0 0 1px #000, 0 4px 16px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 200, 120, 0.2); font: 26px/1.1 var(--ftitle, Georgia, serif); color: #f8e3a8; text-shadow: 0 2px 2px #000; letter-spacing: 0.5px; }
#menu button.enter small { margin-top: 3px; font: 11px var(--fbody, Georgia, serif); color: #cfc6b4; letter-spacing: 0; }
#menu button.enter:hover { filter: brightness(1.15); }
#menu button.ropt { display: flex; flex-direction: column; align-items: center; justify-content: center; height: auto; padding: 4px 12px; border: 1px solid #6b5428; border-image: none; border-radius: 4px; background: #1a120a; color: #f2c450; font: 13px/1.2 var(--fbody, Georgia, serif); }
#menu button.ropt small { font-size: 10px; color: #cfc6b4; }
#menu .joinrow { align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
#menu .joinrow input { width: 136px; height: 24px; padding: 0 6px; border: 1px solid #6b5428; border-image: none; border-radius: 3px; background: rgba(0, 0, 0, 0.6); color: #ffe9a8; font-size: 13px; }
#menu .joinrow button { height: 24px; padding: 0 10px; border: 1px solid #6b5428; border-image: none; border-radius: 3px; background: #1a120a; color: var(--cream); font: 12px/22px var(--fbody, Georgia, serif); }
#menu .check { font-size: 12px; gap: 4px; }
#menu .check input { width: 13px; height: 13px; margin: 0; padding: 0; border: 0; }
#menu .err:empty { display: none; }
#menu .hint { color: var(--lab); font-size: 11px; padding-top: 4px; }
#menu .fanfoot { max-width: 780px; margin: 0 auto; padding: 6px 0 2px; text-align: center; color: #e6dcc4; opacity: 0.7; font-size: 11px; font-variant: small-caps; letter-spacing: 0.08em; text-shadow: 0 1px 2px #000; }
#menu .steamgames { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; font-size: 12px; }
#menu .steamgames button { height: 22px; padding: 0 8px; border: 1px solid #6b5428; border-image: none; border-radius: 3px; background: #1a120a; color: var(--cream); font: 11px/20px var(--fbody, Georgia, serif); }
.ropanel { position: fixed; inset: 0; z-index: 20; display: flex; padding: 12px; background: rgba(0, 0, 0, 0.7); }
.robox { margin: auto; width: min(460px, 100%); padding: 12px 16px; border: 1px solid #5a4420; border-radius: 6px; background: rgba(14, 10, 6, 0.96); box-shadow: 0 10px 40px #000; color: #e8e0d0; }
.rorow { display: grid; grid-template-columns: 1fr auto 58px auto; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.rorow.rocheck { grid-template-columns: 1fr auto; cursor: pointer; }
.rorow b { display: block; font-weight: normal; font-size: 14px; }
.rorow span { font-size: 11px; color: #9a8f7a; }
.rorow em { font-style: normal; text-align: center; color: #ffd100; }
.roreward { margin: 10px 0 4px; text-align: center; font-size: 13px; }
.roreward b { color: #3ce03c; font-weight: normal; }
@media (min-width: 641px) {
  #menu .cols > .pane:last-child { grid-column: auto; }
}
@media (max-width: 640px) {
  #menu .frame { width: 100%; }
  #menu .cols { grid-template-columns: 1fr; }
  #menu .runbar { position: sticky; bottom: 0; z-index: 2; padding: 8px 0; background: rgba(10, 7, 4, 0.95); }
  #menu .enterbox { width: 100%; }
  #menu button.enter { min-width: 0; flex: 1; font-size: 20px; padding: 6px 10px; }
  #menu button.enter small { display: none; }
  #menu .tabs { flex-wrap: wrap; }
  #menu .tabs button { padding: 3px 8px; font-size: 11px; }
}

/* end of run, laid out like the original */
#end .endframe { width: min(520px, 100%); padding: 18px 20px 16px; background: rgba(14, 10, 6, 0.92); border: 1px solid #5a4420; border-radius: 6px; box-shadow: 0 14px 50px #000; color: #e8e0d0; }
#end h1 { font: normal clamp(34px, 4vw, 52px)/1.1 var(--ftitle, Georgia, serif); color: #f2c450; text-shadow: 0 2px 2px #000; }
#endLine { color: #cfc6b4; }
.tpanel { margin: 10px 0; padding: 10px 14px; border: 1px solid #3e301a; border-radius: 4px; background: rgba(0, 0, 0, 0.4); text-align: left; }
.tpanel h3 { display: flex; justify-content: space-between; margin: 0 0 6px; font: 17px var(--fbody, Georgia, serif); color: #f2c450; }
.tpanel h3 b, .tpanel .tl b { color: #3ce03c; font-weight: normal; }
.tpanel .tl { display: flex; justify-content: space-between; font-size: 13px; color: #cfc6b4; }
.tbar { position: relative; height: 14px; margin: 8px 0 6px; border: 1px solid #000; background: #0f0a06; box-shadow: 0 0 0 1px #3e301a; }
.tbar i { display: block; height: 100%; background: linear-gradient(#b48cff, #6a3fd1); }
.tbar span { position: absolute; inset: 0; text-align: center; font: 10px/14px system-ui, sans-serif; color: #fff; text-shadow: 0 1px 1px #000; }
.endstats { display: grid; grid-template-columns: 1fr; gap: 0; margin: 8px 0; text-align: left; font-size: 13px; }
.endstats div { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding: 2px 0; }
.endstats span { color: #9a8f7a; }
#end .row button.enter { display: inline-flex; align-items: center; height: auto; min-width: 150px; justify-content: center; padding: 8px 20px; border: 1px solid #c9a24a; border-image: none; border-radius: 4px; background: linear-gradient(#5c100b, #2b0605); font: 20px var(--ftitle, Georgia, serif); color: #f8e3a8; }
/* END-01: the buttons stay on screen; long stats scroll above them. */
#end .endframe { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; }
#end .endstats .best { grid-column: 1 / -1; margin: 0 0 6px; text-align: center; color: #1eff00; }
#end .endframe > .row.center { position: sticky; bottom: -16px; margin: 8px -20px -16px; padding: 10px 20px 12px; background: rgba(14, 10, 6, 0.97); border-top: 1px solid #3a2e1c; }
.card.rec:not(.banish) { box-shadow: 0 0 22px color-mix(in srgb, var(--rc) 85%, #fff), inset 0 0 24px rgba(0, 0, 0, 0.6); }
.fwhelp { margin-top: 4px; text-align: left; }
.reach { margin: 2px 0 4px; font-weight: bold; }
.reach.ok { color: #1eff00; } .reach.wait { color: #ffd100; } .reach.lan { color: #ff9a1f; }
.runbar .resume { display: block; margin: 6px auto 0; }
.pvpquick { display: block; margin: 6px auto 0; }
#startBtn.allready { animation: readyPulse 1.2s ease-in-out infinite; }
@keyframes readyPulse { 50% { box-shadow: 0 0 0 2px #1eff00, 0 0 18px rgba(30, 255, 0, 0.6); } }
.psbox { width: min(560px, 100%); margin: 6px auto 0; padding: 6px 10px; border: 1px solid #5a4420; border-radius: 4px; background: rgba(0, 0, 0, 0.45); text-align: left; }
.psbox .pshead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.psbox .check { display: block; margin-top: 4px; font-size: 12px; }
.psbox .pstitle { margin-top: 6px; color: #ffd100; font: 13px FrizQT, Georgia, serif; }
.psrooms { max-height: 150px; overflow-y: auto; }
.psroom { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 44px minmax(0, 1.4fr) auto; align-items: center; gap: 8px; padding: 3px 0; border-top: 1px solid rgba(90, 68, 32, 0.5); font-size: 12px; }
.psroom b { color: #f2e3b8; font-weight: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psroom span { color: #c8bca0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pvpfmt { display: flex; justify-content: center; gap: 4px; margin: 6px auto 0; }
.pvpfmt button { min-width: 44px; height: auto; padding: 2px 8px; border: 1px solid #6b5428; border-image: none; border-radius: 4px; background: #1a120a; color: #f2e3b8; font: 11px/15px var(--fbody, Georgia, serif); text-shadow: 0 1px 1px #000; }
.pvpfmt button.on { border-color: #ffd100; color: #ffd100; box-shadow: 0 0 6px rgba(255, 209, 0, 0.35); }
.pvpfmt button:disabled { opacity: 0.45; }
#plist li.tm0 { box-shadow: inset 3px 0 0 #3c8cff; }
#plist li.tm1 { box-shadow: inset 3px 0 0 #ff3c3c; }
#end .talpts { color: #3ce03c; cursor: pointer; text-decoration: underline; }
.mlist { max-height: 60vh; overflow-y: auto; margin: 8px 0; }
.mrow { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-bottom: 1px solid #2a2014; }
.mrow .sicon { width: 32px; height: 32px; flex: none; }
.mrow .mn { flex: 1; display: flex; flex-direction: column; text-align: left; }
.mrow.locked .sicon { filter: grayscale(1) brightness(0.6); }
.mrow.sel { background: rgba(201, 162, 74, 0.12); }
#plist .kick { margin-left: 6px; padding: 0 6px; height: 20px; border: 1px solid #5a4420; border-radius: 3px; background: #1a120a; color: #ff6a50; font: 14px/18px Georgia, serif; }
.recent { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; align-items: center; margin: 4px 0 0; }
.recent .chip { padding: 1px 8px; font-size: 11px; }
#joinCode { min-width: 15ch; }
#optsRows .opthead { margin: 8px 0 2px; font: 11px var(--fbody, Georgia, serif); letter-spacing: 2px; text-transform: uppercase; color: #9a8f7a; }
#menu, #lobby, #end { zoom: var(--textscale, 1); }
#end .mvp { color: #ffd100; }
#toast { display: flex; flex-direction: column; gap: 4px; padding: 0; background: none; border: 0; }
#toast .tline { background: #1a110a; border: 1px solid var(--edge); padding: 8px 14px; border-radius: 6px; }
#toast .tline.err { border-color: #a03020; color: #ff8a70; }
#plist .pm { margin-left: 4px; padding: 0 4px; border: 1px solid #5a4420; border-radius: 3px; font-size: 10px; color: #c8bca0; }
.copybox { width: 100%; font-size: 11px; }
.friends .fhd input { width: 90px; }
#menu .joinerzone #zones { display: none; }
#menu .joinerzone::after { content: 'The host picks the zone.'; display: block; margin: 8px; color: #9a8f7a; text-align: center; }
#talentsBtn.pts, #lobbyTalents.pts { animation: tpulse 1.6s ease-in-out infinite; }
@keyframes tpulse { 50% { box-shadow: 0 0 10px 2px rgba(60, 224, 60, 0.6); } }
body.netwait #game { filter: brightness(0.45) grayscale(0.5); }
#netWait { display: none; }
body.netwait #netWait { display: block; position: fixed; top: 40%; left: 50%; transform: translateX(-50%); z-index: 20; padding: 8px 16px; border: 1px solid #c9a24a; border-radius: 4px; background: rgba(14, 10, 6, 0.9); color: #ffd100; font: 16px var(--fbody, Georgia, serif); }
.lchat { margin: 4px auto; width: min(520px, 96%); }
#lchatLog { max-height: 90px; overflow-y: auto; font-size: 12px; color: #e8e0d0; text-align: left; }
#lchatLog:empty { display: none; }
#lchatIn { width: 100%; font-size: 12px; }
.joininfo { margin: 6px auto; text-align: center; color: #f3ead6; }
.datapick { margin: 6px auto; text-align: center; color: #ffd100; }
.fwhelp summary { cursor: pointer; color: #c8bca0; }
#menuErr:not(:empty) { cursor: pointer; }
#menuErr:not(:empty)::after { content: ' \00d7'; color: #c8bca0; }
#end .row button.enter.alt { border-color: #6b5428; background: #1a120a; }
#menu .heroport .hpmodel { position: absolute; inset: 0; z-index: 1; }
#menu .heroport .hpmodel canvas { width: 100% !important; height: 100% !important; cursor: grab; }
#menu .heroport.m3d .hpimg { display: none; }
#menu .heroport .fac, #menu .heroport .hpcls { z-index: 2; }
body:has(#levelup:not(.hidden)) #banner { visibility: hidden; }
#menu .gender { font-size: 12px; color: #9a8f7a; }
.vfoot { position: fixed; right: 14px; bottom: 10px; z-index: 11; font: 12px var(--fbody, Georgia, serif); color: #cfc6b4; text-shadow: 0 1px 2px #000; pointer-events: none; }
.updbox { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 25; display: flex; gap: 10px; align-items: center; padding: 8px 14px; border: 1px solid #c9a24a; border-radius: 4px; background: rgba(14, 10, 6, 0.94); box-shadow: 0 4px 18px #000; font: 14px var(--fbody, Georgia, serif); color: #f2c450; }
.updbox.in-run { display: none; }
.updbox button { height: auto; padding: 3px 12px; border: 1px solid #3d8a2a; border-image: none; border-radius: 4px; background: linear-gradient(#174d0f, #0a2306); color: #3ce03c; font: 12px var(--fbody, Georgia, serif); }
.loot .item .licon { width: 18px; height: 18px; margin-right: 5px; vertical-align: -4px; border: 1px solid #000; }
#menu .mtop { position: fixed; top: 10px; right: 14px; z-index: 11; display: flex; gap: 6px; }
#menu .mtop .pill { display: inline-block; height: auto; padding: 3px 10px; border: 1px solid #c9a24a; border-image: none; border-radius: 4px; background: linear-gradient(#3a1a0e, #1c0b06); color: #f2e3b8; font: 11px/15px var(--fbody, Georgia, serif); text-decoration: none; text-shadow: 0 1px 1px #000; }
#menu .mtop .pill:hover { filter: brightness(1.2); }
.optrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 14px; color: #e8e0d0; }
.optrow input[type=range] { width: 170px; padding: 0; border: 0; background: none; }
@media (max-width: 640px) { #menu .mtop { position: static; justify-content: flex-end; margin-bottom: 6px; } }
/* pvp.js's in-run "Duel over" banner never sits on the end screen. */
body:has(#end:not(.hidden)) .lfv-win { display: none; }
#lobbyClasses.pulse { animation: tpulse 0.8s ease-in-out 3; border-radius: 4px; }
.jfbox { width: min(360px, calc(100vw - 32px)); }
.jfbox .jfname { display: flex; gap: 8px; align-items: center; margin: 6px 0 10px; }
.jfbox .jfname input { flex: 1; }
.jfbox .cgrid { margin-bottom: 10px; }
body:has(#joinFirst:not(.hidden)) .qol-welcome { display: none; }
/* Lobby for a small LAN party: everything fits 1280x720, roomy rows, one status chip per friend. */
#lobby .frame { display: flex; flex-direction: column; height: calc((100dvh - 24px) / var(--textscale, 1)); }
#lobby .lcols { flex: 1; min-height: 0; }
#lobby .pane { overflow-y: auto; }
#lobby .runbar { flex: 0 0 auto; }
.invitebtn { padding: 6px 18px; font-size: 15px; border-color: var(--gold2); color: #ffe9a8; }
.exelink { display: block; margin: 4px 0 8px; text-align: center; font-size: 12px; color: #69ccf0; }
.lstat { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; padding: 6px 10px; border: 1px solid var(--edge2); border-radius: 4px; background: rgba(0, 0, 0, 0.35); font-size: 13px; color: var(--dim); }
.lstat:empty { display: none; }
.lstat.wait b { color: var(--gold); font-weight: normal; font-size: 15px; }
.lstat .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: lstatp 1.2s ease-in-out infinite; }
@keyframes lstatp { 50% { opacity: 0.25; } }
#plist .st { flex: 0 0 auto; margin-left: auto; padding: 1px 8px; border: 1px solid #4a3a22; border-radius: 3px; font-size: 11px; color: #9d9d9d; }
#plist .st.ok { border-color: #1f7a12; color: #1eff00; }
#plist .st.load { position: relative; width: 96px; overflow: hidden; color: #ffd100; text-align: center; }
#plist .st.load i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255, 209, 0, 0.18); }
#plist .st.load em { position: relative; font-style: normal; }
#plist .st + .tag, #plist .st ~ .pm { margin-left: 6px; }
#plist.roomy { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
#plist.roomy li { height: 54px; padding: 0 10px; gap: 10px; font-size: 15px; }
#plist.roomy .glyph { width: 36px; height: 36px; flex: 0 0 36px; font-size: 18px; }
#plist.roomy .who span { font-size: 12px; }
#plist.roomy .st { font-size: 12px; padding: 2px 10px; }
#plist.roomy li.empty { height: 54px; }
#startBtn.warn { box-shadow: 0 0 0 1px #c9a24a, 0 0 12px rgba(255, 209, 0, 0.35); }
#lobby .runbar { flex-wrap: nowrap; align-items: center; }
#lobby .runbar .lchat { flex: 1 1 340px; min-width: 0; }
#lobby .runbar .runopts { flex: 0 1 240px; }
#lobby .runbar .runopts > button { width: auto; align-self: flex-start; }
#lobby .runbar .enterbox { margin-left: 0; }
#lobby #readyBtn { padding: 6px 22px; font-size: 15px; align-self: flex-start; }
.znote { margin: -2px 0 6px; text-align: center; font-size: 11px; }
/* Menu hubs (crew/PROGRESSION.md): sub-tabs under every Collection and Renown panel, like the tabs under a WoW character frame. */
.hubnav { position: fixed; left: 50%; bottom: 6px; z-index: 90; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 2px; max-width: calc(100vw - 16px); padding: 0 6px; }
.hubnav .hubt { align-self: center; margin-right: 6px; color: #ffd100; font: 12px FrizQT, Georgia, serif; text-shadow: 1px 1px 0 #000; white-space: nowrap; }
.hubnav button, body.wowui .hubnav button { position: static; height: 26px; min-width: 0; padding: 0 10px; border: 1px solid #6b5428; border-image: none; border-top: 0; border-radius: 0 0 6px 6px; background: linear-gradient(#1c130a, #2c1f10); color: #cbb98f; font: 12px/24px FrizQT, Georgia, serif; text-shadow: 1px 1px 0 #000; white-space: nowrap; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.7); }
.hubnav button:hover, body.wowui .hubnav button:hover { color: #fff; border-color: #a8873e; }
.hubnav button.on, body.wowui .hubnav button.on { height: 30px; color: #ffd100; border-color: #c9a24a; background: linear-gradient(#3a2812, #20160b); }
body:has(#hubNav:not(.hidden)) .lfg-overlay, body:has(#hubNav:not(.hidden)) .lfr-modal, body:has(#hubNav:not(.hidden)) #mountsPanel, body:has(#hubNav:not(.hidden)) .lft2-root { padding-bottom: 46px; }
@media (max-width: 760px) { .hubnav .hubt { display: none; } .hubnav button, body.wowui .hubnav button { padding: 0 6px; font-size: 11px; } }
/* Lobby Ladder: zone, Mythic+, mutators, and Run Options under a fold. */
.ladder { margin: 6px 0 2px; }
.ladder .sh { margin-top: 6px; }
.ladder .sh .muted { margin-left: 4px; letter-spacing: 0; text-transform: none; }
.ladfold { margin: 4px 0 2px; }
.ladfold summary { cursor: pointer; color: #cbb98f; font-size: 12px; list-style: none; }
.ladfold summary::before { content: '+ '; color: #ffd100; }
.ladfold[open] summary::before { content: '- '; }
.ladfold summary:hover { color: #fff; }
.ladfold .row { gap: 8px; align-items: center; margin-top: 4px; }
.pvpfmt .pvphonor { margin-left: 8px; }
/* End screen: the next unlock, opens What's Next. */
.endnext, body.wowui button.endnext { display: block; margin: -4px auto 10px; padding: 3px 12px; border: 1px solid #6b5428; border-image: none; border-radius: 3px; background: rgba(20, 14, 8, 0.85); color: #e8e0d0; font: 13px FrizQT, Georgia, serif; }
.endnext.hidden { display: none; }
.endnext b { color: #ffd100; font-weight: normal; }
.endnext span { margin-left: 8px; color: #9a8f7a; }
.endnext:hover span { color: #fff; }
/* What's Next cards (js/progress-ui.js). */
.lfx-grp { margin: 0 0 10px; }
.lfx-grp h4 { margin: 0 0 4px; padding-bottom: 2px; border-bottom: 1px solid rgba(201, 162, 74, 0.35); color: #ffd100; font: 14px FrizQT, Georgia, serif; }
.lfx-grp h4 small { margin-left: 6px; color: #9a8f7a; font-size: 12px; }
.lfx-card, body.wowui button.lfx-card { position: static; display: flex; gap: 10px; align-items: center; width: 100%; height: auto; margin: 0 0 4px; padding: 6px 8px; border: 1px solid #3d2e16; border-image: none; border-radius: 4px; background: rgba(30, 22, 12, 0.85); color: #e8e0d0; font: 13px FrizQT, Georgia, serif; text-align: left; text-shadow: 1px 1px 0 #000; }
button.lfx-card { cursor: pointer; }
button.lfx-card:hover { border-color: #c9a24a; background: rgba(48, 34, 16, 0.9); }
.lfx-ic { flex: none; width: 36px; height: 36px; border: 1px solid #000; border-radius: 3px; }
.lfx-ic0 { display: inline-block; background: #222; }
.lfx-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lfx-tx b { color: #fff; font-weight: normal; }
.lfx-tx small { color: #cbb98f; font-size: 12px; }
.lfx-bar { position: relative; height: 12px; margin-top: 2px; border: 1px solid #000; background: #1a1209; }
.lfx-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#5e9cff, #2659b8); }
.lfx-bar span { position: relative; display: block; color: #fff; font-size: 10px; line-height: 12px; text-align: center; text-shadow: 1px 1px 0 #000; }
.lfx-none { color: #9a8f7a; text-align: center; }
/* Supplies: the professions panel's one-line explainer. */
.lfp-why { margin: 0 0 6px; color: #cbb98f; font-size: 12px; text-align: center; }
.lfp-t small { margin-left: 6px; color: #9a8f7a; font-size: 12px; }
/* Difficulty dialog: tier pills over the Mythic+ stepper and mutators; the lobby's Difficulty button shows the same summary. */
.rotier { display: flex; gap: 4px; margin: 4px 0 2px; }
.rotier button, body.wowui .rotier button { position: static; flex: 1; height: 26px; border: 1px solid #6b5428; border-image: none; border-radius: 3px; background: linear-gradient(#2a1d10, #170f08); color: #cbb98f; font: 13px/24px FrizQT, Georgia, serif; text-shadow: 1px 1px 0 #000; }
.rotier button:hover, body.wowui .rotier button:hover { color: #fff; border-color: #a8873e; }
.rotier button.on, body.wowui .rotier button.on { color: #ffd100; border-color: #ffd100; background: linear-gradient(#4a3214, #24180a); }
.rotiertxt { min-height: 32px; margin: 4px 0 8px; color: #cfc6b4; font-size: 12px; }
.rotiertxt b { color: #ffd100; font-weight: normal; }
#runOpts #mplusRow { margin: 0 0 6px; }
#runOpts .lfr-mut { margin-bottom: 6px; }
#lobby button.ropt, body.wowui #lobby button.ropt { display: inline-flex; flex-direction: column; align-items: center; height: auto; margin-left: 8px; padding: 2px 10px; line-height: 1.2; }
#lobby button.ropt small { font-size: 11px; color: #cfc6b4; }
/* Result screen (audit 4): run HUD leftovers and toasts stay off the result; the button footer is opaque. */
body:has(#end:not(.hidden)) .qol-bars, body:has(#end:not(.hidden)) .lfr-toasts, body:has(#end:not(.hidden)) .lft2-toast, body:has(#end:not(.hidden)) .qol-rw { display: none; }
#end .endframe > .row.center { background: #0e0a06; }
/* Noise cut (Ryan): one big plain headline per card, a short line or two, detail on hover. */
.card { min-height: 230px; }
.card h3.hl { margin: 4px 0 3px; font: bold 21px/1.15 FrizQT, Georgia, serif; color: #fff; text-shadow: 0 2px 2px #000; }
.card.r1 h3.hl { color: #b6ffa8; } .card.r2 h3.hl { color: #9fd0ff; } .card.r3 h3.hl { color: #e0b0ff; } .card.r4 h3.hl, .card.r5 h3.hl { color: #ffc070; }
.card .hd .kind { margin-top: 2px; font-size: 12px; color: color-mix(in srgb, var(--rc) 55%, #cfc6b4); }
.card .tip.brief { font-size: 14px; line-height: 1.35; }
.card .tip.brief .vd { display: inline; margin: 0 4px 0 0; font-size: 14px; }
#cards:has(.card:nth-child(4)) .card h3.hl { font-size: 18px; }
@media (max-width: 700px) { .card h3.hl { font-size: 16px; } .card .tip.brief { font-size: 12px; } }
.lsu-h.lsu-one b { font: bold 18px FrizQT, Georgia, serif; color: #fff; } .lsu-h.lsu-one span { color: #cfc6b4; font-size: 13px; }
/* Menu taller than a small window (720p): it keeps a readable zoom and its panes scroll instead of shrinking the text. */
#menu .frame.fitscroll { display: flex; flex-direction: column; }
#menu .frame.fitscroll .cols { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
#menu .frame.fitscroll .pane { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #6b5428 transparent; }
/* Evolution cards (js/evolutions.js): gold, styled like keystones. */
.card.evo { --rc: #ffd100; box-shadow: 0 0 0 1px #000, 0 0 0 3px #ffd100, 0 0 24px rgba(255, 209, 0, 0.55); background-image: linear-gradient(rgba(255, 209, 0, 0.18), transparent 60%); animation: kspulse 2.4s ease-in-out infinite; }
.card.evo .new { background: #8a6a00; color: #fff6c8; }
.card .evoline { margin-top: 6px; font-size: 12px; color: #ffd100; }
#menu .frame.fitscroll .pane.more { -webkit-mask-image: linear-gradient(#000 calc(100% - 40px), rgba(0, 0, 0, 0.15)); mask-image: linear-gradient(#000 calc(100% - 40px), rgba(0, 0, 0, 0.15)); }
#menu .frame.fitscroll .pane { scrollbar-width: auto; }
/* Item hands size to their content (lf-audit r239: 150 px of empty body on treasure cards). */
#cards:has(.card[class*=" oc-"]) .card { min-height: 0; }
/* Wider hand cards and a 13px body so most short lines fit on one line at 1280x720 (lf-playtest). */
.card { flex-basis: 290px; }
.card .tip.brief { font-size: 13px; }
/* 720p and other short windows (fitMenu adds .fitscroll): a compact menu that fits without scrolling. */
#menu .frame.fitscroll .cgrid.many { grid-template-columns: repeat(5, 52px); gap: 4px 8px; }
#menu .frame.fitscroll .cgrid.many .cls .glyph { width: 34px; height: 34px; }
#menu .frame.fitscroll .pool .sicon { width: 25px; height: 25px; }
#menu .frame.fitscroll .pool:has(.sicon:nth-child(15)) { grid-template-columns: repeat(auto-fill, minmax(27px, 1fr)); }
#menu .frame.fitscroll .zone.sel > p, #menu .frame.fitscroll .zone.sel .foes { display: none; }
#menu .frame.fitscroll .zone.locked { min-height: 0; padding-top: 4px; padding-bottom: 4px; }
#menu .frame.fitscroll .zone.locked .zs { display: none; }
#menu .frame.fitscroll .chip { padding: 1px 5px; }
#menu .frame.fitscroll .pane { padding-top: 6px; padding-bottom: 8px; }
#menu .frame.fitscroll .znote { display: none; }
#menu .frame.fitscroll #classInfo .sh { margin: 6px 0 3px; }
.card .tip.brief .cfx { margin: 0 0 4px; color: #1eff00; font: bold 15px/1.25 FrizQT, Georgia, serif; text-shadow: 0 1px 2px #000; }
.card h3.hl.fxh { color: #1eff00; }
body:has(#levelup:not(.hidden)) .lft2-toast { visibility: hidden; }
/* Lobby: the host's shared settings for joiners, and each player's own menu options. */
.ladro { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 8px 0 4px; padding: 6px 10px; border: 1px solid #3e301a; border-radius: 4px; background: rgba(0, 0, 0, 0.35); font-size: 13px; }
.ladro span { color: #9a8f7a; } .ladro b { color: #ffd100; font-weight: normal; } .ladro small { grid-column: 1 / -1; color: #9a8f7a; font-size: 11px; }
.lobbyown { flex-wrap: wrap; gap: 4px; }
