/* IsoRPG client UI — classic MMO look (WoW-like layout): carved gold frames, dark stone, parchment, serif type.
   All ornaments are CSS/canvas, no image assets. */
:root {
  --gold: #f8d36a; --gold2: #c9a04a; --gold3: #7a5a22; --ink: #f0e6cc; --muted: #b0a080; --parch: #e8d9b0; --parch-ink: #3a2a14;
  --stone: #1b1714; --stone2: #2a241e; --red: #c0281e; --font: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --metal: linear-gradient(180deg, #fbe6a2 0%, #d6a94e 22%, #8a6420 50%, #c99a40 78%, #6a4a18 100%);
}
html, body { margin: 0; height: 100%; background: #07060a; overflow: hidden; font-family: var(--font); color: var(--ink); user-select: none; }
.hide { display: none !important; }
/* ---------- generic controls ---------- */
button, .btn {
  font-family: var(--font); font-size: 14px; color: #ffd75e; text-shadow: 0 1px 1px #000; cursor: pointer; padding: 6px 16px;
  background: linear-gradient(#8c1c12, #5a0e08 55%, #3a0804); border: 1px solid #000; border-radius: 3px;
  box-shadow: inset 0 0 0 1px #d0a040, inset 0 1px 0 2px rgba(255, 210, 120, .25), 0 2px 4px rgba(0, 0, 0, .7);
}
button:hover, .btn:hover { filter: brightness(1.25); color: #fff2b0; }
button:active, .btn:active { transform: translateY(1px); }
button.primary { font-size: 16px; padding: 8px 26px; }
button.small, .btn.small { padding: 2px 10px; font-size: 12px; }
input, select { font-family: var(--font); font-size: 15px; color: var(--ink); background: rgba(0, 0, 0, .65); border: 1px solid #5a4a2a; border-radius: 2px; padding: 6px 9px; outline: none; box-shadow: inset 0 1px 4px #000; }
input:focus { border-color: var(--gold2); }
.sub { font-size: 12px; color: var(--muted); }
.sel { border-color: var(--gold) !important; box-shadow: 0 0 0 1px var(--gold), 0 0 12px rgba(240, 200, 120, .35) !important; }
/* carved frame used by every window / panel */
.panel {
  position: fixed; z-index: 20; padding: 34px 16px 14px; border-radius: 6px; color: var(--ink);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(120, 90, 50, .25), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 5px),
    linear-gradient(#211b16, #120e0b);
  border: 3px solid transparent;
  box-shadow: 0 0 0 1px #000, 0 0 0 3px #b48a3a, 0 0 0 4px #4a3412, 0 0 0 6px #1a120a, 0 14px 40px rgba(0, 0, 0, .8), inset 0 0 40px rgba(0, 0, 0, .7);
}
.panel::before, .panel::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid var(--gold2); background: radial-gradient(circle, #ffe08a 0 2px, #8a6420 3px, #2a1a08 6px); top: -9px; transform: rotate(45deg); box-shadow: 0 0 0 1px #000; }
.panel::before { left: -9px; } .panel::after { right: -9px; }
.panel h2 {
  position: absolute; left: 0; right: 0; top: 0; margin: 0; height: 26px; line-height: 26px; padding: 0 34px 0 14px;
  font-weight: normal; font-size: 15px; letter-spacing: 1px; color: var(--gold); text-shadow: 0 1px 2px #000; display: flex; align-items: center; gap: 8px;
  background: linear-gradient(#3a2a18, #1a120a); border-bottom: 1px solid #6a4a1a; border-radius: 4px 4px 0 0; cursor: move;
}
.panel h2 .wicon { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--gold2); overflow: hidden; flex: none; }
.panel h2 .wicon canvas { width: 100%; height: 100%; }
.panel h2 .x { position: absolute; right: 6px; top: 4px; width: 18px; height: 18px; line-height: 16px; text-align: center; font-size: 12px; cursor: pointer; color: #ffd0a0; border-radius: 3px; background: linear-gradient(#a02a1a, #4a0a04); border: 1px solid #000; box-shadow: inset 0 0 0 1px #d09040; }
.panel h2 .x:hover { filter: brightness(1.4); }
.parch { background: linear-gradient(#efe2bd, #d9c592); color: var(--parch-ink); border: 1px solid #6a4a1a; box-shadow: inset 0 0 18px rgba(120, 80, 30, .45); padding: 10px 12px; border-radius: 2px; }
.parch .sub { color: #6a5030; } .parch h3 { margin: 0 0 6px; color: #5a2a08; font-size: 16px; }
/* ---------- full-screen menus ---------- */
.screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 30; }
#bg3d { position: fixed; inset: 0; z-index: 0; image-rendering: pixelated; }
#login .box { width: 360px; text-align: center; padding: 28px 30px 22px; position: relative; background: linear-gradient(#211b16, #120e0b); box-shadow: 0 0 0 1px #000, 0 0 0 3px #b48a3a, 0 0 0 4px #4a3412, 0 20px 60px rgba(0, 0, 0, .8); border-radius: 6px; }
.logo { font-size: 46px; letter-spacing: 6px; color: var(--gold); text-shadow: 0 3px 0 #3a2410, 0 0 30px rgba(240, 180, 90, .45); margin-bottom: 4px; }
.tag { color: var(--muted); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 22px; }
#login input { width: 100%; box-sizing: border-box; margin-bottom: 10px; }
#login .row { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.err { color: #ff7060; font-size: 13px; min-height: 18px; margin-top: 8px; }
.langs { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.langs span { cursor: pointer; font-size: 12px; padding: 3px 7px; border: 1px solid transparent; color: var(--muted); }
.langs span.on { border-color: var(--gold2); color: var(--gold); }
#charsel .list { position: fixed; right: 40px; top: 50%; transform: translateY(-50%); width: 300px; }
.charrow { background: linear-gradient(#211b16, #120e0b); border: 1px solid #5a4422; padding: 10px 14px; margin-bottom: 8px; cursor: pointer; border-radius: 3px; }
.charrow:hover, .charrow.on { border-color: var(--gold); box-shadow: 0 0 10px rgba(248, 211, 106, .3); }
.charrow .n { font-size: 18px; color: var(--gold); }
.charrow .d { font-size: 12px; color: var(--muted); margin-top: 2px; }
#charsel .bottom, #create .bottom { position: fixed; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; }
#create .left { position: fixed; left: 30px; top: 30px; bottom: 100px; width: 330px; overflow-y: auto; padding-top: 16px; }
#create .right { position: fixed; right: 30px; top: 30px; width: 330px; padding-top: 16px; }
.choice { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.choice .btn { flex: 1 1 30%; text-align: center; padding: 8px 4px; font-size: 13px; background: linear-gradient(#3a2a18, #1e150c); box-shadow: inset 0 0 0 1px #6a4a1a; color: #e8d8b0; }
.choice .btn.on { color: #fff; background: linear-gradient(#8c1c12, #4a0a04); box-shadow: inset 0 0 0 1px var(--gold), 0 0 8px rgba(248, 211, 106, .35); }
.lbl { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold2); margin: 8px 0 6px; border-bottom: 1px solid rgba(180, 138, 58, .3); padding-bottom: 3px; }
.desc { font-size: 13px; color: #e0d0b0; line-height: 1.5; margin-bottom: 12px; }
.opt { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.opt .arr { cursor: pointer; color: var(--gold2); padding: 0 8px; }
.opt .val { min-width: 110px; text-align: center; color: #f0e0b8; }

/* ---------- in-game HUD ---------- */
#game { position: fixed; inset: 0; }
#view { position: fixed; inset: 0; overflow: hidden; cursor: default; }
#gl { position: absolute; image-rendering: pixelated; }
#ovl { position: absolute; inset: 0; pointer-events: none; }
/* unit frames: round portrait in a gold ring, name plate, health + resource */
.unitframe { position: fixed; top: 10px; width: 250px; height: 82px; z-index: 10; }
#pframe { left: 10px; } #tframe { left: 290px; }
.unitframe .portrait { position: absolute; top: 0; width: 74px; height: 74px; border-radius: 50%; overflow: hidden; background: #000; box-shadow: 0 0 0 2px #000, 0 0 0 4px #d6a94e, 0 0 0 5px #5a3e12, 0 0 0 7px #120c06, 0 4px 10px rgba(0, 0, 0, .8); }
.unitframe .portrait canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
#pframe .portrait { left: 6px; } #tframe .portrait { right: 6px; }
.unitframe .plate { position: absolute; top: 10px; height: 56px; width: 170px; background: linear-gradient(#1c1612, #0c0907); box-shadow: 0 0 0 1px #000, 0 0 0 3px #b48a3a, 0 0 0 4px #3a2a10, 0 4px 10px rgba(0, 0, 0, .7); border-radius: 3px; padding: 3px 6px; box-sizing: border-box; }
#pframe .plate { left: 74px; padding-left: 14px; } #tframe .plate { right: 74px; padding-right: 14px; }
.unitframe .uname { font-size: 13px; color: #fff; text-shadow: 0 1px 2px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 16px; line-height: 16px; }
.unitframe .lvl { position: absolute; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(#3a2a18, #120c06); box-shadow: 0 0 0 2px #d6a94e, 0 0 0 3px #000; font-size: 12px; line-height: 24px; text-align: center; color: var(--gold); z-index: 2; }
#pframe .lvl { left: 2px; } #tframe .lvl { right: 2px; }
.unitframe.elite .portrait { box-shadow: 0 0 0 2px #000, 0 0 0 4px #ffd75e, 0 0 0 6px #b06a10, 0 0 0 8px #120c06, 0 0 16px rgba(255, 200, 80, .7); }
.unitframe .combo { position: absolute; left: 90px; top: 68px; color: #ffd040; font-size: 14px; letter-spacing: 2px; text-shadow: 0 1px 2px #000; }
.unitframe .buffs { position: absolute; left: 84px; top: 70px; }
#tframe .buffs { left: auto; right: 84px; }
.bar { height: 14px; background: #0a0505; border: 1px solid #000; margin-top: 3px; position: relative; overflow: hidden; box-shadow: inset 0 1px 3px #000; border-radius: 1px; }
.bar i { display: block; height: 100%; width: 100%; transition: width .15s; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .25); }
.bar span { position: absolute; inset: 0; font-size: 11px; text-align: center; line-height: 14px; color: #fff; text-shadow: 0 1px 1px #000, 0 0 2px #000; }
/* profession skill bar: framed like the windows (gold edge, bronze fill with a sheen) */
.bar.skillbar { height: 16px; border: 1px solid #8a6a2a; border-radius: 2px; background: linear-gradient(#140c06, #24170c); box-shadow: inset 0 1px 4px #000, 0 0 0 1px #000; }
.bar.skillbar i { background: linear-gradient(#e8c060, #b07a20 55%, #6a4410); box-shadow: inset 0 1px 0 rgba(255, 240, 190, .5), inset 0 -2px 0 rgba(0, 0, 0, .3); }
.bar.skillbar span { line-height: 16px; font-size: 11px; color: #fff2cc; letter-spacing: .5px; }
/* scrollbars in the UI style everywhere (instead of the browser default white bar) */
* { scrollbar-width: thin; scrollbar-color: #8a6a2a #1a110a; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #1a110a; border-left: 1px solid #000; }
::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #a07a30, #6a4a1a); border: 1px solid #000; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(90deg, #c89a40, #8a6224); }
::-webkit-scrollbar-corner { background: transparent; }
.hp i { background: linear-gradient(#30e030, #10a010 60%, #087008); } .hp.foe i { background: linear-gradient(#f04030, #b01810 60%, #700a04); } .hp.neutral i { background: linear-gradient(#f0e040, #b0a010 60%, #707008); }
.res-mana i { background: linear-gradient(#4080ff, #1050d0 60%, #0a2a90); } .res-rage i { background: linear-gradient(#ff4030, #c01810 60%, #800804); } .res-energy i { background: linear-gradient(#ffe040, #d0b010 60%, #8a7008); } .res-focus i { background: linear-gradient(#ffa040, #d07010 60%, #8a4a08); }
#party { position: fixed; left: 14px; top: 110px; z-index: 10; }
#party .pm { width: 150px; margin-bottom: 8px; padding: 3px 6px; background: linear-gradient(#1c1612, #0c0907); box-shadow: 0 0 0 1px #000, 0 0 0 2px #8a6a2a; border-radius: 2px; font-size: 12px; }
.buffs { display: flex; gap: 3px; flex-wrap: wrap; }
.buffs canvas { width: 22px; height: 22px; border: 1px solid #000; box-shadow: 0 0 0 1px #8a6a2a; }
.buffs .debuff canvas { box-shadow: 0 0 0 1px #c01810; }
/* my helpful auras (shields, buffs, hots) sit just above the action bars, left of centre (growing leftwards); the harmful
   ones (#myauras) mirror them on the right: everything about my own character is where the eyes already are */
#buffbar { position: fixed; right: 50%; margin-right: 8px; bottom: 183px; display: flex; gap: 4px; flex-direction: row-reverse; flex-wrap: wrap-reverse; max-width: 24vw; z-index: 11; }
#buffbar canvas { width: 30px; height: 30px; border: 1px solid #000; }
#buffbar .b { text-align: center; font-size: 11px; color: #ffd75e; text-shadow: 0 1px 1px #000; }
/* main action bar: carved stone with gold edges, end crests */
#mainbar { position: fixed; left: 50%; bottom: 9px; transform: translateX(-50%); z-index: 10; padding: 9px 96px 7px; }
#mainbar .stone { position: absolute; inset: 0 82px 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 7px), linear-gradient(#2e2720, #15110d); box-shadow: 0 0 0 1px #000, 0 0 0 3px #b48a3a, 0 0 0 4px #3a2a10, 0 -4px 16px rgba(0, 0, 0, .7); border-radius: 8px 8px 0 0; }
#mainbar .crest { position: absolute; bottom: -9px; width: 92px; height: 92px; pointer-events: none; }
#mainbar .crest.l { left: 0; } #mainbar .crest.r { right: 0; transform: scaleX(-1); }
#mainbar .slot.empty { opacity: 1; background: radial-gradient(#15100c, #060504); }
#mainbar .slot.empty .key { opacity: .45; }
.abar { position: relative; display: flex; gap: 3px; justify-content: center; }
#actionbar3, #actionbar2 { margin-bottom: 5px; }
#actionbar { margin-top: 2px; }
.slot { width: 46px; height: 46px; position: relative; background: radial-gradient(#1a1410, #080605); cursor: pointer; border-radius: 3px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #6a4e22, inset 0 0 6px #000; }
.slot.empty { opacity: .55; }
.slot canvas { width: 100%; height: 100%; display: block; border-radius: 2px; }
.slot:hover { box-shadow: 0 0 0 1px #000, 0 0 0 2px #ffd75e, 0 0 10px rgba(255, 215, 94, .5); }
.slot .key { position: absolute; right: 3px; top: 1px; font-size: 11px; color: #e8e8e8; text-shadow: 0 0 2px #000, 0 1px 1px #000; font-family: Arial, sans-serif; font-weight: bold; }
/* cooldown, WoW style: --p = % of the cooldown still to run; the icon is uncovered clockwise from 12 o'clock
   (hud.js tickCd). .gcd = global cooldown (lighter, no numbers), .nosweep = settings "cdsweep" off */
.slot .cd { position: absolute; inset: 0; background: conic-gradient(transparent calc(100% - var(--p, 100%)), rgba(0, 0, 0, .74) 0); color: #ffe; font-size: 16px; font-weight: bold; font-family: Arial, sans-serif; display: flex; align-items: center; justify-content: center; text-shadow: 0 0 3px #000, 0 1px 1px #000, 0 0 2px #000; border-radius: 2px; pointer-events: none; }
.slot .cd.gcd { background: conic-gradient(transparent calc(100% - var(--p, 100%)), rgba(0, 0, 0, .5) 0); }
.slot .cd.nosweep { background: none; }
.slot .key { z-index: 2; }
.slot.oncd canvas { filter: grayscale(.85) brightness(.8); }
.slot.nores canvas { filter: grayscale(.4) brightness(.55) sepia(.2) hue-rotate(190deg); }
.slot.far canvas { filter: brightness(.6) sepia(1) hue-rotate(-50deg) saturate(3); }
.slot.far .key { color: #ff2a1a; }
.slot.dim canvas { filter: grayscale(.7) brightness(.45); }
/* spell alert (WoW): a proc made this spell free / ready, e.g. Impending Victory after a kill (client/js/hud.js) */
.slot.proc { box-shadow: 0 0 0 2px #ffd860, 0 0 10px 3px rgba(255, 216, 96, .85); animation: procGlow 1s ease-in-out infinite alternate; }
@keyframes procGlow { from { box-shadow: 0 0 0 2px #ffd860, 0 0 6px 2px rgba(255, 216, 96, .6); } to { box-shadow: 0 0 0 2px #fff0a0, 0 0 14px 5px rgba(255, 216, 96, .95); } }
.slot.flash::after { content: ''; position: absolute; inset: 0; border-radius: 2px; box-shadow: inset 0 0 12px 3px rgba(255, 230, 140, .9); animation: flash .3s ease-out forwards; }
@keyframes flash { to { box-shadow: inset 0 0 0 0 rgba(255, 230, 140, 0); } }
#xpbar { position: fixed; left: 0; right: 0; bottom: 0; height: 9px; background: #0a060c; border-top: 1px solid #000; z-index: 11; }
#xpbar i { display: block; height: 100%; background: linear-gradient(#c070ff, #7a20c0 60%, #4a0a80); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
#xpbar .ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(5% - 1px), rgba(0, 0, 0, .8) calc(5% - 1px) 5%); }
#xpbar span { position: absolute; inset: -2px 0 0; font-size: 9px; text-align: center; color: #fff; text-shadow: 0 0 2px #000; opacity: 0; }
#xpbar:hover span { opacity: 1; }
/* cast bar */
#castbar { position: fixed; left: 50%; bottom: 252px; transform: translateX(-50%); width: 280px; z-index: 12; padding: 3px; background: #000; box-shadow: 0 0 0 2px #b48a3a, 0 0 0 3px #3a2a10, 0 3px 10px #000; border-radius: 2px; }
#castbar .bar { height: 16px; margin: 0; }
#castbar .bar i { background: linear-gradient(#ffe070, #e0a010 60%, #a06a08); }
#castbar .bar span { line-height: 16px; font-size: 12px; }
#castbar.chan .bar i { background: linear-gradient(#a0ff90, #40c040 60%, #207020); } /* channelled spell: green, draining (WoW) */
button:disabled { opacity: .45; filter: grayscale(.7); cursor: default; } /* a button you cannot use yet reads as such (arena queue, bots) */
#castbar canvas { position: absolute; left: -30px; top: -3px; width: 26px; height: 26px; border: 1px solid #000; }
/* micro menu + bags */
#microbar { position: fixed; right: 8px; bottom: 14px; display: flex; gap: 2px; z-index: 10; padding: 5px 6px; background: linear-gradient(#2a241e, #15110d); box-shadow: 0 0 0 1px #000, 0 0 0 3px #b48a3a, 0 0 0 4px #3a2a10; border-radius: 4px; }
#microbar .mb { width: 30px; height: 38px; cursor: pointer; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px #000, 0 0 0 2px #6a4e22; position: relative; }
#microbar .mb canvas { width: 100%; height: 100%; display: block; }
#microbar .mb:hover { box-shadow: 0 0 0 1px #000, 0 0 0 2px #ffd75e, 0 0 8px rgba(255, 215, 94, .6); }
#microbar .mb.on { box-shadow: 0 0 0 1px #000, 0 0 0 2px #fff4c0; filter: brightness(1.25); }
#microbar .sep { width: 8px; }
#microbar .bagslot { width: 38px; height: 38px; }
/* minimap with carved ring, zone banner, clock and zoom */
#mmwrap { position: fixed; right: 12px; top: 8px; width: 200px; height: 228px; z-index: 10; }
#zonebar { position: absolute; left: 10px; right: 10px; top: 0; height: 20px; line-height: 20px; text-align: center; font-size: 13px; color: var(--gold); text-shadow: 0 1px 2px #000; background: linear-gradient(#2a1e10, #120c06); box-shadow: 0 0 0 1px #000, 0 0 0 2px #b48a3a; border-radius: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 8px; }
#zonebar.pvp { color: #ff6050; } #zonebar.city { color: #8af; }
#minimap { position: absolute; left: 14px; top: 30px; width: 172px; height: 172px; border-radius: 50%; background: #0a0806; cursor: pointer; }
#mmring { position: absolute; left: 6px; top: 22px; width: 188px; height: 188px; border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 0 5px #b48a3a, inset 0 0 0 6px #fbe6a2, inset 0 0 0 8px #5a3e12, inset 0 0 0 9px #000, inset 0 0 18px 10px rgba(0, 0, 0, .55), 0 4px 12px rgba(0, 0, 0, .7); }
#mmwrap .mmbtn { position: absolute; width: 22px; height: 22px; border-radius: 50%; text-align: center; line-height: 20px; font-size: 15px; font-weight: bold; color: #ffd75e; cursor: pointer; background: radial-gradient(#3a2a18, #120c06); box-shadow: 0 0 0 2px #b48a3a, 0 0 0 3px #000; font-family: Arial, sans-serif; }
#mmwrap .mmbtn:hover { filter: brightness(1.4); }
#mmin { right: 2px; top: 150px; } #mmout { right: 14px; top: 176px; } #mmmap { left: 2px; top: 150px; font-size: 12px !important; }
#mmclock { position: absolute; left: 50%; transform: translateX(-50%); top: 200px; font-size: 11px; color: #e8d8b0; background: #120c06; padding: 1px 8px; border-radius: 8px; box-shadow: 0 0 0 1px #b48a3a; font-family: Arial, sans-serif; }
#mmcoords { position: absolute; left: 50%; transform: translateX(-50%); top: 216px; font-size: 10px; color: #a89878; font-family: Arial, sans-serif; text-shadow: 0 1px 1px #000; }
/* quest tracker */
#tracker { position: fixed; right: 14px; top: 250px; width: 260px; z-index: 9; font-size: 13px; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
#tracker .hd { color: var(--gold); font-size: 14px; border-bottom: 1px solid rgba(180, 138, 58, .5); margin-bottom: 4px; padding-bottom: 2px; }
#tracker .q { margin-bottom: 7px; cursor: pointer; padding: 2px 4px; border-radius: 3px; }
#tracker .q:hover { background: rgba(0, 0, 0, .35); }
#tracker .q.on { background: rgba(80, 60, 20, .45); box-shadow: inset 2px 0 0 var(--gold); }
#tracker .qt { color: #ffd100; } #tracker .qt.ready { color: #6aff6a; }
#tracker .qo { color: #e8e0d0; padding-left: 10px; font-size: 12px; } #tracker .qo.done { color: #7a7a7a; text-decoration: line-through; }
/* readable over the world (NPC names behind it), story entries framed in orange-gold */
#tracker:not(:empty) { background: linear-gradient(90deg, rgba(10, 6, 2, 0), rgba(10, 6, 2, .55) 18%); padding: 4px 4px 2px 14px; border-radius: 4px; }
#tracker .q.story { background: rgba(90, 45, 0, .35); box-shadow: inset 2px 0 0 #ff9a1a; }
#tracker .q.story.on { background: rgba(120, 60, 0, .5); }
#tracker .qcat { font-size: 11px; letter-spacing: .3px; font-variant: small-caps; }
.qcat-h { font-variant: small-caps; letter-spacing: .5px; }
#tracker .dist { float: right; color: #a8d0ff; font-size: 11px; }
/* chat */
#chat { position: fixed; left: 10px; bottom: 172px; width: 430px; z-index: 9; }
#chattabs { display: flex; gap: 2px; }
#chattabs span { font-size: 12px; padding: 2px 10px; background: rgba(20, 14, 8, .75); color: var(--muted); border-radius: 4px 4px 0 0; cursor: pointer; }
#chattabs span.on { color: var(--gold); background: rgba(40, 28, 14, .85); }
#chatlog { height: 170px; overflow-y: auto; font-size: 13px; line-height: 1.35; text-shadow: 0 1px 1px #000, 0 0 2px #000; padding: 4px 6px; background: rgba(0, 0, 0, .28); scrollbar-width: thin; }
#chatlog .m { margin-bottom: 1px; } #chatlog .system { color: #ffe060; } #chatlog .say { color: #f0f0f0; } #chatlog .yell { color: #ff5040; } #chatlog .zone, #chatlog .trade { color: #f0c8a0; } #chatlog .party { color: #8ab0ff; } #chatlog .guild { color: #40ff40; } #chatlog .whisper { color: #ff80ff; } #chatlog .announce { color: #ff9a30; font-weight: bold; } #chatlog .loot { color: #00cc00; } #chatlog .xp { color: #b080ff; } #chatlog .combat { color: #d0c8b0; }
#chatin { display: flex; gap: 4px; margin-top: 2px; } #chatin select { font-size: 12px; padding: 3px; } #chatin input { flex: 1; font-size: 13px; padding: 4px 8px; }
#chat:not(.typing) #chatin { opacity: .35; } #chat.typing #chatin { opacity: 1; }
/* messages */
#toast { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); font-size: 30px; color: var(--gold); text-shadow: 0 0 4px #000, 0 2px 3px #000, 0 0 24px rgba(240, 180, 90, .55); z-index: 25; pointer-events: none; text-align: center; transition: opacity .6s; letter-spacing: 1px; }
#toast .sub2 { display: block; font-size: 16px; color: #f0e6cc; letter-spacing: 0; }
#err { position: fixed; left: 50%; top: 13%; transform: translateX(-50%); z-index: 25; pointer-events: none; text-align: center; }
#err div { color: #ff2a1a; font-size: 18px; font-weight: bold; text-shadow: 0 0 3px #000, 0 1px 2px #000, 0 0 1px #000; transition: opacity .5s; margin-bottom: 2px; }
#tip, .tipx { position: fixed; z-index: 50; background: linear-gradient(rgba(10, 10, 30, .96), rgba(4, 4, 14, .96)); border: 1px solid #000; box-shadow: 0 0 0 1px #8a8aa0, 0 0 0 2px #2a2a3a, 0 6px 18px rgba(0, 0, 0, .8); padding: 8px 10px; font-size: 13px; max-width: 320px; pointer-events: none; border-radius: 4px; }
#tip .l, .tipx .l { margin: 1px 0; } #tip .big, .tipx .big { font-size: 15px; }
#tip .l, .tipx .l { break-inside: avoid; } /* two-column tall tooltips (client/js/ui.js fitTall) */
.tipx .hdr { color: #a0a0a0; font-size: 11px; margin-bottom: 3px; font-variant: small-caps; letter-spacing: .4px; }
.tipx.hide { display: none; }
/* windows content */
.grid { display: grid; gap: 4px; }
.item { width: 40px; height: 40px; position: relative; cursor: pointer; background: radial-gradient(#1a1410, #050403); border-radius: 3px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #4a3a20, inset 0 0 6px #000; }
.item:hover { box-shadow: 0 0 0 1px #000, 0 0 0 2px #ffd75e; }
.item canvas { width: 100%; height: 100%; display: block; border-radius: 2px; }
.item .n { position: absolute; right: 2px; bottom: 0; font-size: 12px; font-weight: bold; text-shadow: 0 0 2px #000, 0 1px 1px #000; font-family: Arial, sans-serif; }
.item .ph { font-size: 9px; text-align: center; padding-top: 14px; color: #6a5a40; }
.row2 { display: flex; gap: 14px; }
.stats { font-size: 13px; line-height: 1.6; min-width: 160px; } .stats b { color: #fff; font-weight: normal; float: right; margin-left: 12px; }
.list .li { padding: 6px 8px; border: 1px solid transparent; cursor: pointer; font-size: 14px; border-radius: 2px; } .list .li:hover, .list .li.on { border-color: #8a6a2a; background: rgba(107, 82, 50, .2); }
.li { padding: 4px 6px; }
.qmark { color: #ffd100; font-weight: bold; } .qmark.act { color: #a0a0a0; }
.talent { width: 44px; height: 44px; position: relative; cursor: pointer; border-radius: 4px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #2a7a2a; }
.talent.max { box-shadow: 0 0 0 1px #000, 0 0 0 2px #ffd75e; }
.talent canvas { width: 100%; height: 100%; border-radius: 3px; }
.talent .r { position: absolute; right: -6px; bottom: -6px; font-size: 11px; background: #000; padding: 0 4px; color: #3aff3a; border-radius: 6px; border: 1px solid #555; font-family: Arial, sans-serif; }
.talent.max .r { color: #ffd75e; }
.talent.locked { filter: grayscale(1) brightness(.45); box-shadow: 0 0 0 1px #000, 0 0 0 2px #444; }
.tree { background: radial-gradient(ellipse at 50% 30%, rgba(60, 50, 30, .6), rgba(0, 0, 0, .6)), repeating-linear-gradient(90deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 30px); padding: 10px; border-radius: 4px; box-shadow: inset 0 0 20px #000; }
.money { color: #fff; font-family: Arial, sans-serif; font-size: 12px; } .money .g { color: #ffd700; } .money .s { color: #c8c8d0; } .money .c { color: #e08a40; }
.tabs { display: flex; gap: 2px; margin-bottom: 8px; }
.tabs .btn { background: linear-gradient(#3a2a18, #1e150c); box-shadow: inset 0 0 0 1px #6a4a1a; color: #c8b890; border-radius: 4px 4px 0 0; }
.tabs .btn.on { background: linear-gradient(#5a3a18, #2e1e0c); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold2); }
.npcname { color: var(--gold); font-size: 16px; }
/* paper doll */
.doll { display: grid; grid-template-columns: 44px 200px 44px; gap: 6px 8px; align-items: start; }
.doll .col { display: flex; flex-direction: column; gap: 6px; }
.doll .model { height: 296px; background: radial-gradient(ellipse at 50% 60%, #3a3428, #0c0a08 75%); box-shadow: inset 0 0 0 1px #000, inset 0 0 20px #000; border-radius: 4px; position: relative; overflow: hidden; }
.doll .model canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.doll .bottomrow { grid-column: 1 / 4; display: flex; justify-content: center; gap: 6px; }
/* spellbook as an open book */
.book { display: flex; gap: 0; background: linear-gradient(90deg, #d9c592, #efe2bd 48%, #b8a070 50%, #efe2bd 52%, #d9c592); padding: 12px 14px; border-radius: 3px; box-shadow: inset 0 0 22px rgba(90, 60, 20, .5); color: var(--parch-ink); }
.book .page { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; align-content: start; min-height: 320px; }
.book .page + .page { margin-left: 22px; }
.book .sp { display: flex; gap: 6px; align-items: center; cursor: grab; }
.book .sp .slot { width: 38px; height: 38px; flex: none; }
.book .sp .n { font-size: 13px; color: #2a1a08; line-height: 1.1; } .book .sp .s { font-size: 11px; color: #6a5030; }
.book .sp.locked { opacity: .45; cursor: default; }
.sidetabs { position: absolute; right: -40px; top: 40px; display: flex; flex-direction: column; gap: 4px; }
.sidetabs span { width: 34px; height: 34px; border-radius: 3px; cursor: pointer; box-shadow: 0 0 0 1px #000, 0 0 0 2px #6a4e22; overflow: hidden; }
.sidetabs span.on { box-shadow: 0 0 0 1px #000, 0 0 0 2px #ffd75e; }
.sidetabs canvas { width: 100%; height: 100%; }
/* keybinds */
.kb { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; font-size: 13px; }
.kb .k { min-width: 70px; text-align: center; padding: 2px 6px; background: #000; border: 1px solid #6a4a1a; border-radius: 3px; cursor: pointer; font-family: Arial, sans-serif; font-size: 12px; color: #fff; }
.kb .k.wait { border-color: var(--gold); color: var(--gold); }
.scroll { max-height: 420px; overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
/* settings window (ui.js settings): the tab body scrolls inside the screen (title, tabs and frame stay visible
   down to ~600 px tall screens); controls as "key: action" rows */
.setbody { max-height: min(640px, calc(100vh - 150px)); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; margin-top: 6px; }
.setbody .lbl:first-child { margin-top: 0; }
.ctlrow { display: grid; grid-template-columns: minmax(96px, 38%) 1fr; gap: 10px; padding: 2px 4px; font-size: 13px; line-height: 1.35; border-bottom: 1px solid rgba(106, 74, 26, .25); }
.ctlrow b { color: var(--gold); font-weight: normal; }
.ctlrow span:only-child { grid-column: 1 / -1; color: #d8c8a0; }
/* dialog (gossip) */
.gossip .opt2 { display: flex; gap: 8px; align-items: center; padding: 4px 4px; cursor: pointer; color: #2a1a08; font-size: 14px; }
.gossip .opt2:hover { color: #8a1a08; text-decoration: underline; }
.gossip .ic { width: 18px; height: 18px; flex: none; text-align: center; font-weight: bold; color: #ffd100; text-shadow: 0 0 2px #000, 0 1px 1px #000; }
#game.menu #pframe, #game.menu #tframe, #game.menu #party, #game.menu #mmwrap, #game.menu #tracker, #game.menu #chat, #game.menu #mainbar, #game.menu #microbar, #game.menu #xpbar, #game.menu #castbar, #game.menu #buffbar { display: none !important; }

/* ---------- phase 6/7: auction house, guild, guild bank, calendar, arena ---------- */
#chatlog .channel { color: #ffc0a0; }
.panel select { background: #120e0b; color: #e8d8b0; border: 1px solid #6a4a1a; border-radius: 3px; padding: 3px 4px; font-size: 12px; max-width: 100%; }
.ah-body { display: flex; gap: 10px; }
.ah-filters { width: 150px; flex: none; display: flex; flex-direction: column; gap: 2px; }
.ah-filters select { width: 100%; }
.ah-filters .lbl { margin: 6px 0 2px; font-size: 10px; letter-spacing: 1px; }
.ah-check { font-size: 12px; color: #e0d0b0; margin-top: 6px; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.ah-res { flex: 1; min-width: 0; background: rgba(0, 0, 0, .3); border-radius: 3px; padding: 4px; box-shadow: inset 0 0 8px #000; }
.ah-row { display: grid; grid-template-columns: minmax(0, 1fr) 34px 52px 92px 92px 92px; gap: 4px; align-items: center; padding: 3px 4px; border-bottom: 1px solid rgba(90, 60, 20, .35); font-size: 13px; }
.ah-row:hover { background: rgba(107, 82, 50, .2); }
.ah-head { font-size: 11px; color: var(--gold2); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #6a4a1a; }
.ah-head span { cursor: pointer; user-select: none; } .ah-head span.on, .ah-head span:hover { color: var(--gold); }
.ah-head:hover { background: none; }
.ah-row .c-name { display: flex; gap: 6px; align-items: center; min-width: 0; }
.ah-row .c-name .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-row .c-name .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.ah-row .c-lvl, .ah-row .c-left { text-align: center; color: #e0d0b0; }
.ah-row .c-act { display: flex; flex-direction: column; gap: 2px; align-items: stretch; }
.ah-row .c-act button { padding: 2px 4px; font-size: 11px; }
.ah-pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 6px 4px 2px; font-size: 12px; }
.ah-pager .sub { margin-right: auto; }
.ah-post { display: flex; gap: 10px; align-items: flex-start; padding: 6px; background: rgba(0, 0, 0, .25); border-radius: 3px; }
.g-list { max-height: 260px; background: rgba(0, 0, 0, .3); border-radius: 3px; padding: 2px; }
.g-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) 24px 74px minmax(0, 1fr) 72px 44px; gap: 4px; align-items: center; font-size: 12px !important; padding: 3px 4px !important; }
.g-row.off { opacity: .6; }
.g-row .g-n { color: #f0e0c0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-row .g-z, .g-row .g-c { color: #b8a888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-row .g-r { font-size: 11px; color: #a09070; } .g-row .g-r.r0 { color: #ff9a30; } .g-row .g-r.r1 { color: #8ab0ff; }
.g-acts { display: flex; gap: 3px; justify-content: flex-end; }
.g-a { cursor: pointer; color: #c8b890; padding: 0 3px; border-radius: 2px; } .g-a:hover { color: #fff; background: rgba(255, 220, 140, .15); } .g-a.del { color: #c06050; }
.gb-grid { grid-template-columns: repeat(8, 40px); gap: 3px; padding: 6px; background: rgba(0, 0, 0, .35); border-radius: 4px; box-shadow: inset 0 0 10px #000; justify-content: center; }
.gb-log { max-height: 140px; font-size: 12px; color: #e0d0b0; background: rgba(0, 0, 0, .25); padding: 4px 6px; border-radius: 3px; }
.gb-log > div { padding: 1px 0; }
.cal-ev { padding: 4px 0; border-bottom: 1px solid rgba(90, 60, 20, .3); }
.cal-ev .when { float: right; font-size: 12px; }
.parch .cal-ev.on b, .parch .cal-ev.on .when { color: #2a7a2a; font-weight: bold; }
.list .cal-ev b { color: var(--gold); }
.x-del { cursor: pointer; color: #c06050; } .x-del:hover { color: #ff8070; }
.ar-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; font-size: 13px; color: #e0d0b0; }
.ar-stats b { color: #fff; }
.ar-titles { display: flex; flex-wrap: wrap; gap: 4px; }
.ar-title { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: linear-gradient(#5a3a18, #2e1e0c); box-shadow: inset 0 0 0 1px var(--gold2); color: var(--gold); }
.ar-team { background: rgba(0, 0, 0, .3); border-radius: 3px; padding: 6px 8px; margin-bottom: 4px; }
.ar-lad { display: grid; grid-template-columns: 34px minmax(0, 1fr) 70px 90px; gap: 6px; padding: 3px 6px; font-size: 13px; border-bottom: 1px solid rgba(90, 60, 20, .3); color: #e0d0b0; }
.ar-lad.on { background: rgba(248, 211, 106, .12); box-shadow: inset 0 0 0 1px var(--gold2); }
.ar-vend { display: flex; gap: 6px; align-items: center; cursor: pointer; background: rgba(0, 0, 0, .3); border-radius: 3px; }
.ar-vend.poor { opacity: .55; }

/* ---------- tutorial (client/js/tutorial.js): parchment hint cards with an arrow, glow on the HUD element ---------- */
.tut-card { z-index: 40; width: 330px; padding: 30px 12px 10px; animation: tutIn .35s ease-out; pointer-events: auto; }
.tut-card h2 { cursor: default; font-size: 13px; }
.tut-card .tut-body { font-size: 14px; line-height: 1.5; }
.tut-card .tut-body h3 { font-size: 17px; margin-bottom: 4px; }
.tut-card .tut-text kbd, .tut-card .tut-note kbd { display: inline-block; min-width: 14px; padding: 0 5px; margin: 0 1px; font: bold 12px/18px Arial, sans-serif; color: #2a1a06; text-align: center; background: linear-gradient(#fff6dc, #d8c290); border: 1px solid #6a4a1a; border-radius: 3px; box-shadow: 0 1px 0 #6a4a1a; }
.tut-card .tut-gold { color: #c08000; font-size: 17px; text-shadow: 0 0 2px #fff4c0; }
.tut-card .tut-note { margin-top: 6px; font-size: 12px; font-style: italic; color: #6a5030; }
.tut-card .tut-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.tut-card .tut-foot .primary { font-size: 13px; padding: 3px 16px; }
.tut-card.tut-done .tut-body { box-shadow: inset 0 0 18px rgba(120, 80, 30, .45), 0 0 0 2px #6ad06a, 0 0 18px rgba(106, 208, 106, .7); }
.tut-card.tut-done h2::after { content: ' ✔'; color: #6ad06a; }
.tut-tip { width: 300px; z-index: 39; }
.tut-tip h2 { color: #ffc070; }
/* arrow on the card edge, pointing at the anchor */
.tut-arrow { position: absolute; width: 0; height: 0; display: none; }
.tut-arrow.left, .tut-arrow.right, .tut-arrow.top, .tut-arrow.bottom { display: block; }
.tut-arrow.left { right: -19px; margin-top: -11px; border: 11px solid transparent; border-left: 13px solid #b48a3a; filter: drop-shadow(1px 0 0 #000); }
.tut-arrow.right { left: -19px; margin-top: -11px; border: 11px solid transparent; border-right: 13px solid #b48a3a; filter: drop-shadow(-1px 0 0 #000); }
.tut-arrow.top { bottom: -19px; margin-left: -11px; border: 11px solid transparent; border-top: 13px solid #b48a3a; filter: drop-shadow(0 1px 0 #000); }
.tut-arrow.bottom { top: -19px; margin-left: -11px; border: 11px solid transparent; border-bottom: 13px solid #b48a3a; filter: drop-shadow(0 -1px 0 #000); }
.tut-arrow.left { animation: tutNudgeX 1s ease-in-out infinite; } .tut-arrow.right { animation: tutNudgeXn 1s ease-in-out infinite; }
.tut-arrow.top { animation: tutNudgeY 1s ease-in-out infinite; } .tut-arrow.bottom { animation: tutNudgeYn 1s ease-in-out infinite; }
/* pulsing gold frame over the HUD element the card talks about */
.tut-glow { position: fixed; z-index: 38; pointer-events: none; border-radius: 6px; box-shadow: 0 0 0 2px #ffd75e, 0 0 16px 4px rgba(255, 215, 94, .75), inset 0 0 12px rgba(255, 215, 94, .45); animation: tutGlow 1.1s ease-in-out infinite; }
#tutcv { position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 8; pointer-events: none; }
@keyframes tutGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes tutIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tutNudgeX { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes tutNudgeY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes tutNudgeXn { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-5px); } }
@keyframes tutNudgeYn { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
/* settings: music / effects volume sliders */
.panel input.volslider { width: 170px; padding: 0; accent-color: #c9a04a; box-shadow: none; background: transparent; border: 0; }

/* auras with timers: under the target frame (mine first, bigger, gold) and on me above the action bars */
#tframe.tcasting .tauras { margin-top: 30px; }
#tcast { position: absolute; top: 100%; right: 74px; margin-top: 4px; width: 170px; height: 20px; display: flex; gap: 4px; align-items: center; }
#tcast canvas { width: 20px; height: 20px; box-shadow: 0 0 0 1px #000; }
#tcast .tcb { position: relative; flex: 1; height: 16px; background: #2a2016; box-shadow: 0 0 0 1px #000, 0 0 0 2px #b48a3a; border-radius: 2px; overflow: hidden; }
#tcast .tcb i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#ffd050, #c08010); }
#tcast.chan .tcb i { background: linear-gradient(#70e070, #208020); }
#tcast .tcb span { position: absolute; inset: 0; font-size: 11px; line-height: 16px; text-align: center; color: #fff; text-shadow: 0 1px 2px #000; white-space: nowrap; overflow: hidden; }
#tframe .tauras { position: absolute; top: 100%; right: 74px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; max-width: 260px; justify-content: flex-end; align-items: flex-start; }
#myauras { position: fixed; left: 50%; margin-left: 8px; bottom: 183px; z-index: 11; display: flex; gap: 6px; flex-wrap: wrap-reverse; max-width: 24vw; pointer-events: auto; }
.aura { position: relative; border-radius: 3px; background: #000; }
.aura canvas { border-radius: 3px; }
.aura .at { text-align: center; font: bold 11px Arial, sans-serif; color: #fff; text-shadow: 0 1px 2px #000, 0 0 2px #000; margin-top: 1px; }
.aura.mine .at { color: #ffe080; }
.aura.ending .at { color: #ff5040; animation: auraBlink .5s steps(2) infinite; }
@keyframes auraBlink { 50% { opacity: .35; } }
/* money on parchment: darker metals with a dark outline so silver/gold stay readable on light paper */
.parch .money { text-shadow: 0 0 1px #000, 0 1px 1px rgba(0, 0, 0, .9), 0 0 3px rgba(0, 0, 0, .5); font-weight: bold; }
.parch .money .g { color: #ffd23a; } .parch .money .s { color: #e8e8f2; } .parch .money .c { color: #ff9a4a; }
/* ---------- talents window: Specialization tab (WoW-style cards) + Talents tab (client/js/ui.js talents()) ---------- */
.spectabs { margin-bottom: 0; border-bottom: 1px solid var(--gold3); }
.spectabs .btn { font-size: 15px; padding: 6px 22px; }
.specbody { max-height: calc(100vh - 13% - 130px); overflow-y: auto; padding: 14px 4px 4px; }
.specinvite { margin: 0 0 14px; padding: 8px 12px; border-radius: 4px; background: linear-gradient(90deg, rgba(120, 80, 20, .55), rgba(60, 40, 10, .25)); box-shadow: inset 3px 0 0 var(--gold); font-size: 13px; line-height: 1.45; color: #f0e2c0; }
.specinvite.dim { box-shadow: inset 3px 0 0 #807050; background: rgba(0, 0, 0, .3); }
.specinvite-t { font-size: 18px; color: var(--gold); margin-bottom: 3px; letter-spacing: .5px; }
.speccards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 6px; }
.speccard { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 14px 12px 10px; border-radius: 6px; background: linear-gradient(#1d1813, #0e0b08); box-shadow: 0 0 0 1px #000, 0 0 0 2px #4a3a22, inset 0 0 24px rgba(0, 0, 0, .7); }
.speccard.active { background: linear-gradient(#2c2412, #120e06); box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--gold), 0 0 18px rgba(255, 210, 90, .45), inset 0 0 24px rgba(0, 0, 0, .6); }
.speccard.switching { box-shadow: 0 0 0 1px #000, 0 0 0 2px #80c0ff, 0 0 14px rgba(120, 180, 255, .4); }
.specbadge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 2px 14px; border-radius: 10px; font-size: 12px; font-weight: bold; letter-spacing: 2px; color: #1a1000; background: linear-gradient(#ffe890, #d0a030); box-shadow: 0 0 0 1px #000, 0 2px 6px rgba(0, 0, 0, .7); white-space: nowrap; }
.spechead { display: flex; gap: 10px; align-items: center; }
.specicon { width: 52px; height: 52px; flex: none; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold3); }
.specicon.small { width: 40px; height: 40px; }
.specicon canvas { width: 100%; height: 100%; display: block; }
.speccard.active .specicon { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold); }
.specname { font-size: 21px; line-height: 1.1; text-shadow: 0 1px 2px #000; }
.specrole { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; padding: 1px 9px 1px 3px; border-radius: 10px; font-size: 12px; font-weight: bold; background: rgba(0, 0, 0, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.specrole i { font-style: normal; display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 50%; font-size: 11px; color: #fff; }
.specrole.r-tank i { background: #2860c0; } .specrole.r-heal i { background: #2a9a3a; } .specrole.r-ranged i, .specrole.r-melee i { background: #b02818; }
.specrole.r-tank { color: #9cc4ff; } .specrole.r-heal { color: #8ff09a; } .specrole.r-ranged, .specrole.r-melee { color: #ffa090; }
.specplay { font-size: 13px; line-height: 1.45; color: #e8dcc0; min-height: 57px; }
.specfacts { font-size: 12px; line-height: 1.4; color: #d8ccb0; display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; border-radius: 4px; background: rgba(0, 0, 0, .35); }
.speclbl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold2); }
.speckeys { display: flex; gap: 9px; }
.spk { position: relative; width: 40px; height: 40px; border-radius: 4px; cursor: help; box-shadow: 0 0 0 1px #000, 0 0 0 2px #5a4a2a; }
.spk canvas { width: 100%; height: 100%; border-radius: 3px; display: block; }
.spk .lv { position: absolute; right: -5px; bottom: -5px; font: 10px Arial, sans-serif; color: #e8d8b0; background: #000; border: 1px solid #555; border-radius: 6px; padding: 0 3px; }
.specfoot { margin-top: auto; padding-top: 4px; display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
.specbtn { width: 100%; font-size: 14px; padding: 7px 8px; }
.specbtn[disabled] { cursor: default; filter: none; transform: none; }
.speccard.active .specbtn[disabled] { color: #1a1000; text-shadow: none; background: linear-gradient(#ffe890, #c89a30); box-shadow: inset 0 0 0 1px #fff3b0, 0 0 0 1px #000; }
.speccard:not(.active) .specbtn[disabled] { color: #a09070; background: linear-gradient(#3a3028, #1e1812); box-shadow: inset 0 0 0 1px #5a4a30; }
.specerr { font-size: 12px; color: #ff7060; text-align: center; line-height: 1.3; }
.specrules { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.4; }
.talhead { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.taltitle { font-size: 19px; color: var(--gold); text-shadow: 0 1px 2px #000; }
.talpts { font-size: 14px; color: #3aff3a; white-space: nowrap; }
@media (max-width: 900px) { .speccards { grid-template-columns: 1fr; } }
/* chapter labels: lining figures (old-style "1" looked like ":" in small caps) */
.qcat-h, #tracker .qcat { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
/* controller focus inside windows (client/js/padui.js) */
.padfocus { outline: 2px solid #ffd75e !important; outline-offset: 1px; box-shadow: 0 0 10px 2px rgba(255, 200, 80, .55) !important; position: relative; z-index: 2; }