:root {
  --bg: #100d0a;
  --bg2: #17130f;
  --card: #1a1511d9;
  --line: #e8b04f24;
  --text: #efe6d8;
  --muted: #ab9e8a;
  --gold: #e8b04f;
  --gold2: #f5cf86;
  --blue: #4a90e2;
  --ok: #3fbf7f;
  --warn: #e7a23b;
  --bad: #e35d5d;
  --radius: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: radial-gradient(1200px 600px at 20% -10%, #1b2b52 0%, transparent 60%), var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.7rem; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; }
code { background: #0003; padding: 0 .3em; border-radius: 4px; }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--gold); margin: 0 0 .25rem; }
.lead { font-size: 1.1rem; margin: .25rem 0; }
.error-text { color: var(--bad); }
.warn-text { color: var(--warn); font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1rem; padding: .6rem 1.25rem; background: #0e0b09e6; backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--text); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--gold); font-size: 1.3rem; }
.nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--text); }
.nav a:hover { color: var(--gold2); text-decoration: none; }
.nav-user { display: flex; align-items: center; gap: .6rem; padding-left: .75rem; border-left: 1px solid var(--line); }
.navtoggle, .navbtn { display: none; }
@media (max-width: 860px) {
  .navbtn { display: block; margin-left: auto; font-size: 1.4rem; cursor: pointer; padding: 0 .4rem; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #0e0b09; border-bottom: 1px solid var(--line); padding: .75rem 1.25rem; gap: .6rem; }
  .navtoggle:checked ~ .nav { display: flex; }
  .nav-user { border: 0; padding: 0; }
}

.container { width: 100%; max-width: 980px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; flex: 1; }
.container.wide { max-width: 1280px; }
.footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 1.5rem; border-top: 1px solid var(--line); }

/* cards and layout */
.card { background: linear-gradient(180deg, #221b15, var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1rem; box-shadow: 0 6px 20px #0004; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.card-head h2 { margin: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.actions, .row { display: flex; gap: .5rem; align-items: center; }
.row.wrap { flex-wrap: wrap; align-items: flex-end; }
.grow { flex: 1; min-width: 200px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.grid-side { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.grid2 > .card, .grid-side > .card { margin-bottom: 0; }
.grid2, .grid-side { margin-bottom: 1rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.stack > .card { margin-bottom: 0; }
.loot-cols { columns: 2 320px; column-gap: 2rem; }
.loot-cols li { break-inside: avoid; }
@media (max-width: 760px) {
  .grid2, .grid3, .grid-side { grid-template-columns: 1fr; }
  .grid5 { grid-template-columns: repeat(2, 1fr); }
}
.stack { display: flex; flex-direction: column; gap: .75rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }

/* forms */
label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: .4rem; color: var(--text); }
label.check.inline { display: inline-flex; margin-right: .75rem; }
input, select, textarea { font: inherit; color: var(--text); background: #15110d; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--gold); }
input[type=color] { padding: 0; width: 2.5rem; height: 2rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
form.inline { display: inline; }
.inline-form { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; margin: .75rem 0; }
.inline-form label { min-width: 220px; }
details summary { cursor: pointer; color: var(--gold2); margin: .5rem 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 9px; padding: .55rem 1rem; color: #1a1406; background: linear-gradient(180deg, var(--gold2), var(--gold)); box-shadow: 0 2px 0 #9b7a22; }
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn-small { padding: .3rem .7rem; font-size: .85rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--gold); }
.btn-danger { background: var(--bad); color: #fff; box-shadow: none; }
.linkbtn { background: none; border: 0; color: var(--gold2); cursor: pointer; font: inherit; padding: 0; }
.linkbtn.danger { color: var(--bad); }
.flash { background: #1e3a2d; border: 1px solid #2e6b4d; color: #cdeedd; padding: .7rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.flash.error { background: #3a1e22; border-color: #7a3039; color: #f6d2d6; }

/* badges, chips */
.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; background: #3d3226; color: var(--text); margin-left: .35rem; vertical-align: middle; white-space: nowrap; }
.badge.ok { background: #1f4b37; color: #a8f0c9; }
.badge.warn { background: #4f3b17; color: #ffd99a; }
.badge.cta { background: var(--gold); color: #1a1406; }
.badge.muted { background: #252f44; color: var(--muted); }
.badge.init { background: #2d2552; color: #cbbcff; }
.badge.status-open { background: #1f4b37; color: #a8f0c9; }
.badge.status-locked { background: #283f6b; color: #f0dcb4; }
.badge.status-completed { background: #3d3226; }
.badge.status-cancelled { background: #4b1f25; color: #f5b8bf; }
.chip { display: inline-block; padding: .2rem .6rem; border-radius: 999px; background: #15110d; border: 1px solid var(--line); margin: 0 .3rem .3rem 0; font-size: .85rem; color: var(--text); }
.chips { margin: .5rem 0 1rem; }
.cls { font-weight: 600; }

/* item quality colors */
.item { display: inline-flex; align-items: center; gap: .35rem; }
.item a { color: inherit; }
.item-icon { width: 20px; height: 20px; border-radius: 4px; border: 1px solid #0007; }
.q-poor { color: #9d9d9d; } .q-common { color: #fff; } .q-uncommon { color: #1eff00; }
.q-rare { color: #0070dd; } .q-epic { color: #a335ee; } .q-legendary { color: #ff8000; } .q-artifact { color: #e6cc80; }
.q-rare a, .q-epic a, .q-legendary a, .q-uncommon a { color: inherit; }
.q-rare { color: #3a8ef0; }

/* tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .45rem .55rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.table tr.muted td { opacity: .6; }
.table.compact td { padding: .3rem .4rem; }
.wrapcell { max-width: 520px; }

/* hero */
.hero { text-align: center; padding: 4rem 1rem; }
.hero h1 { font-size: 2.6rem; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; margin: 1.5rem 0; }

/* home */
.event-list, .plain, .todo { list-style: none; margin: 0; padding: 0; }
.event-list li + li { border-top: 1px solid var(--line); }
.event-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .2rem; color: var(--text); }
.event-link:hover { background: #ffffff06; text-decoration: none; }
.plain li { padding: .3rem 0; }
.todo li { padding: .3rem 0 .3rem 1.2rem; position: relative; }
.todo li::before { content: '•'; position: absolute; left: .2rem; color: var(--gold); }
.summary { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--muted); align-items: center; }
.summary strong { color: var(--text); }

/* event page */
.event-head { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.event-status { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.fill { display: flex; gap: .5rem; }
.fill-role { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .4rem .7rem; display: flex; flex-direction: column; align-items: center; font-size: .8rem; color: var(--muted); }
.fill-role strong { color: var(--text); font-size: 1.15rem; }
.notes { background: #15110d; border-left: 3px solid var(--gold); padding: .5rem .75rem; border-radius: 6px; white-space: pre-wrap; }
.status-buttons { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.pill { flex-direction: row; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: .9rem; }
.pill input:checked + span { border-color: transparent; color: #100d0a; }
.pill.confirmed input:checked + span { background: var(--ok); }
.pill.tentative input:checked + span, .pill.late input:checked + span { background: var(--warn); }
.pill.out input:checked + span { background: var(--bad); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--gold); }
.signup-form { display: flex; flex-direction: column; gap: .75rem; }
.signup-form .btn { align-self: flex-start; }
.sr-form { display: flex; gap: .5rem; align-items: flex-end; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.sr-form label { flex: 1; min-width: 220px; }
.roster-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .roster-grid { grid-template-columns: 1fr; } }
.people { list-style: none; margin: 0; padding: 0; }
ol.people { list-style: decimal; padding-left: 1.4rem; }
.person { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid #ffffff0d; }
.person:last-child { border-bottom: 0; }
.person-main { min-width: 0; }
.person.tentative .cls, .person.late .cls { opacity: .85; }
.person.out { opacity: .6; }
.open-slot { color: var(--muted); font-style: italic; border: 1px dashed var(--line); border-radius: 8px; padding: .4rem .6rem; margin: .3rem 0; justify-content: center; }
.move select { width: auto; padding: .2rem .3rem; font-size: .8rem; }
.sr { color: #cbbcff; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; }
.person:has(.avatar) { justify-content: flex-start; }
.comp { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 760px) { .comp { grid-template-columns: 1fr; } }
.buffs { list-style: none; margin: 0; padding: 0; columns: 2; font-size: .9rem; }
.buffs li { padding: .15rem 0; break-inside: avoid; }
.buffs .has { color: #a8f0c9; }
.buffs .missing { color: var(--muted); }
.bosslog { display: grid; gap: .6rem; }
.boss { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; background: #15110d80; }
.boss.killed { border-color: #2e6b4d; }
.boss-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.drops { margin: .4rem 0 0; padding-left: 1.1rem; }
.loot-form { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.loot-form select, .loot-form input { width: auto; flex: 1; min-width: 140px; padding: .35rem .5rem; font-size: .85rem; }
.officer-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.import textarea { margin: .5rem 0; }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: .3rem 0; }
.cal-day { background: var(--card); border: 1px solid var(--line); border-radius: 8px; min-height: 96px; padding: .3rem; display: flex; flex-direction: column; gap: 3px; }
.cal-week .cal-day { min-height: 220px; }
.cal-day.other { opacity: .45; }
.cal-day.today { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.cal-date { font-size: .8rem; color: var(--muted); }
.cal-date a { color: var(--muted); }
.cal-ev { display: block; font-size: .75rem; padding: .15rem .35rem; border-radius: 5px; color: #100d0a; background: #b3a48c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cal-ev:hover { text-decoration: none; filter: brightness(1.1); }
.cal-ev.mine-roster { background: var(--ok); }
.cal-ev.mine-bench, .cal-ev.mine-backup { background: var(--warn); }
.cal-ev.mine-none { background: #b3a48c; }
.cal-ev.mine-out { background: #3a4660; color: var(--muted); text-decoration: line-through; }
.cal-ev.cancelled { background: #4b1f25; color: #f5b8bf; text-decoration: line-through; }
.cal-away { font-size: .72rem; color: var(--muted); margin-top: auto; }
.legend { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.legend .cal-ev { display: inline-block; }
@media (max-width: 640px) {
  .cal-month .cal-day { min-height: 64px; }
  .cal-month .cal-ev { font-size: 0; padding: 0; height: 8px; }
  .cal-week { grid-template-columns: 1fr; }
  .cal-week .cal-dow { display: none; }
  .cal-week .cal-day { min-height: 0; }
}

/* member / stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 0; }
.stats div { background: #15110d; border-radius: 10px; padding: .6rem; text-align: center; }
.stats dt { font-size: .75rem; color: var(--muted); }
.stats dd { margin: 0; font-size: 1.4rem; font-weight: 700; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0 0 .75rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; white-space: pre-wrap; }
.notes-list { list-style: none; padding: 0; margin: .75rem 0 0; }
.notes-list li { padding: .5rem 0; border-top: 1px solid var(--line); }

/* health */
.warnings { list-style: none; padding: 0; margin: 0; }
.warnings li { padding: .5rem .7rem; border-radius: 8px; margin-bottom: .4rem; background: #15110d; }
.warnings .w-warn { border-left: 3px solid var(--warn); }
.warnings .w-good { border-left: 3px solid var(--ok); }
.warnings .w-info { border-left: 3px solid var(--blue); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; }
.kpi-n { font-size: 1.9rem; font-weight: 800; color: var(--gold2); }
.kpi-l { color: var(--muted); font-size: .85rem; }

/* raids */
.raid-card { display: block; background: linear-gradient(160deg, #22325a, var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; color: var(--text); }
.raid-card:hover { border-color: var(--gold); text-decoration: none; }
.small-head { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 1rem; }
.strategy { white-space: pre-wrap; background: #15110d; border-radius: 8px; padding: .6rem .8rem; }
.loot-list { list-style: none; padding: 0; margin: 0; columns: 2; }
.loot-list li { padding: .2rem 0; break-inside: avoid; }
@media (max-width: 640px) { .loot-list, .buffs { columns: 1; } }
.empty { margin: .25rem 0; }

/* ---------------------------------------------------------------- round 2 */
.brand-crest { width: 28px; height: 32px; }
.nav a.active { color: var(--gold2); }
.subnav { display: flex; flex-wrap: wrap; gap: .35rem; margin: -.5rem 0 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.subnav a { padding: .35rem .75rem; border-radius: 999px; color: var(--muted); font-size: .88rem; }
.subnav a:hover { color: var(--text); text-decoration: none; background: #ffffff0a; }
.subnav a.active { background: var(--gold); color: #1a1406; font-weight: 600; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 760px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* hero */
.hero-band { position: relative; background-size: cover; background-position: center 35%; min-height: min(78vh, 640px); display: flex; align-items: flex-end; }
.hero-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0e0b0900 30%, #0e0b09e6 88%, var(--bg)); pointer-events: none; }
.hero-band.hero-slim { min-height: 260px; }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 3rem 1.25rem 2.5rem; }
.hero-inner h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.02em; margin: .2rem 0 .4rem; text-shadow: 0 4px 30px #000a; }
.hero-slim .hero-inner h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.hero-inner .lead { font-size: 1.2rem; max-width: 640px; color: #efe6d8; }
.hero-crest { width: 92px; height: auto; filter: drop-shadow(0 6px 18px #0009); }
.hero-times { display: inline-block; background: #0e0b09b3; border: 1px solid #ffffff22; padding: .35rem .8rem; border-radius: 999px; font-weight: 600; color: var(--gold2); }
.hero-inner .hero-actions { justify-content: flex-start; margin: 1.2rem 0 0; }
.band { margin: 2rem 0; }
.section-title { font-size: 1.4rem; margin-bottom: 1rem; }
.needs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.need { display: flex; gap: .8rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; color: var(--text); }
.need-icon { font-size: 1.8rem; }
.need p { margin: .15rem 0 0; }
.need-cta { background: linear-gradient(135deg, #3a2f12, #221b15); border-color: var(--gold); flex-direction: column; align-items: flex-start; justify-content: center; }
.need-cta:hover { text-decoration: none; filter: brightness(1.1); }
.prose { line-height: 1.7; }
.prose p { margin: 0 0 .9rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }

/* progress */
.progress-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.progress-card { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); color: var(--text); transition: transform .15s, border-color .15s; }
.progress-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--gold); }
.raid-art { background-size: cover; background-position: center; }
.progress-art { height: 120px; }
.progress-body { padding: .9rem 1rem 1rem; }
.progress-body h3 { margin: 0 0 .6rem; font-size: 1.15rem; }
.progress-bar { height: 8px; background: #15110d; border-radius: 999px; overflow: hidden; margin: .3rem 0 .5rem; }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #ffe7a3); border-radius: 999px; }
.progress-count { margin: 0; }
.raid-banner { height: 140px; border-radius: 10px; margin-bottom: .75rem; }
.raid-hero { height: 220px; border-radius: var(--radius); margin-bottom: 1rem; box-shadow: 0 10px 30px #0006; }
.time-chip { display: inline-block; padding: .1rem .5rem; margin: 0 .25rem .2rem 0; border-radius: 6px; background: #15110d; border: 1px solid var(--line); font-variant-numeric: tabular-nums; font-weight: 600; font-size: .85rem; color: var(--text); }
.time-chip.rank-1 { border-color: #e0b84a; color: #ffe7a3; }
.time-chip.rank-2 { border-color: #c9bca6; }
.time-chip.rank-3 { border-color: #c98a55; }
.raid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.raid-tile { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); color: var(--text); }
.raid-tile:hover { text-decoration: none; border-color: var(--gold); }
.raid-tile-art { height: 150px; }
.raid-tile-body { padding: 1rem; }
.raid-tile-body h2 { font-size: 1.3rem; margin: 0 0 .4rem; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: .6rem 0 0; }
.mini-stats dt { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mini-stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.boss-records { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.boss-records > div:first-child { min-width: 180px; }
.podium { list-style: none; padding: 0; margin: 0; }
.podium li { padding: .25rem 0; font-variant-numeric: tabular-nums; }
.podium li::before { display: inline-block; width: 1.4rem; }
.podium .rank-1::before { content: '🥇'; } .podium .rank-2::before { content: '🥈'; } .podium .rank-3::before { content: '🥉'; }
.podium a { font-weight: 700; }

/* members (public) */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.member-card { display: flex; flex-direction: column; gap: .1rem; padding: .7rem .9rem; border-radius: 10px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--cls, var(--line)); }

/* news + video */
.news { list-style: none; padding: 0; margin: 0; }
.news li { padding: .45rem 0; border-bottom: 1px solid #ffffff0d; }
.news li.patch a::before { content: '📜 '; }
.video-lite { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; cursor: pointer; background: #000 center / cover no-repeat; background-color: #221b15; }
.video-lite .play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; display: grid; place-items: center; background: #e0b84a; color: #1a1406; border-radius: 12px; font-size: 1.4rem; box-shadow: 0 6px 20px #0008; }
.video-lite:hover .play { filter: brightness(1.1); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.video-title { margin: .5rem 0 0; font-weight: 600; }

/* parses (Warcraft Logs colors) */
.parse { display: inline-block; min-width: 2.1em; text-align: center; padding: .05rem .35rem; border-radius: 6px; font-weight: 800; font-variant-numeric: tabular-nums; background: #15110d; }
.parse-gray { color: #9d9d9d; } .parse-green { color: #1eff00; } .parse-blue { color: #0070ff; } .parse-purple { color: #a335ee; }
.parse-orange { color: #ff8000; } .parse-pink { color: #e268a8; } .parse-gold { color: #e5cc80; } .parse-none { color: var(--muted); font-weight: 400; }
.parse-block { padding: .75rem 0; border-top: 1px solid var(--line); }
.parse-block:first-of-type { border-top: 0; }
.parse-head { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-bottom: .4rem; }
.spark { color: var(--gold2); vertical-align: middle; }
.spark-wrap.parse-purple .spark { color: #a335ee; } .spark-wrap.parse-orange .spark { color: #ff8000; } .spark-wrap.parse-blue .spark { color: #3a8ef0; } .spark-wrap.parse-green .spark { color: #1eff00; }

/* sortable tables */
th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
th[data-sort]::after { content: ' ↕'; opacity: .35; }
th[data-sort].asc::after { content: ' ↑'; opacity: 1; } th[data-sort].desc::after { content: ' ↓'; opacity: 1; }

/* loot */
.loot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .6rem; }
.loot-tile { display: flex; flex-direction: column; gap: .4rem; padding: .7rem .8rem; border-radius: 10px; background: var(--card); border: 1px solid var(--line); border-left-width: 3px; }
.q-border-epic { border-left-color: #a335ee; } .q-border-rare { border-left-color: #0070dd; } .q-border-uncommon { border-left-color: #1eff00; } .q-border-legendary { border-left-color: #ff8000; }
.loot-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; font-size: .9rem; }
.item-icon { width: 22px; height: 22px; }
.item-icon-blank { display: inline-block; border-radius: 4px; background: linear-gradient(135deg, #3d3226, #17130f); border: 1px solid #0007; }
.item-big .item-icon { width: 36px; height: 36px; border-radius: 6px; }
.item-big { font-weight: 600; }
.wow-tooltip { position: fixed; z-index: 100; max-width: 330px; background: #070b18f2; border: 1px solid #5a6a8f; border-radius: 6px; padding: .6rem .75rem; font-size: .86rem; line-height: 1.4; box-shadow: 0 8px 30px #000c; pointer-events: none; text-align: left; color: #fff; }
.wow-tooltip .tt-name { font-size: 1rem; font-weight: 700; margin-bottom: .15rem; }
.wow-tooltip .tt-row { display: flex; justify-content: space-between; gap: 1rem; }
.wow-tooltip .tt-green { color: #1eff00; } .wow-tooltip .tt-yellow { color: #ffd100; } .wow-tooltip .tt-muted { color: #9aa6bf; }
.item-page-tooltip .wow-tooltip { position: static; display: block; max-width: none; margin-top: .75rem; pointer-events: auto; }

/* recipes */
.prof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.prof-card { display: flex; gap: .8rem; align-items: center; padding: .9rem 1rem; border-radius: var(--radius); background: linear-gradient(135deg, #1e2b4a, var(--card)); border: 1px solid var(--line); color: var(--text); transition: transform .15s, border-color .15s; }
.prof-card:hover, .prof-card.active { text-decoration: none; border-color: var(--gold); transform: translateY(-1px); }
.prof-card p { margin: .1rem 0 0; }
.prof-icon { display: inline-grid; place-items: center; border-radius: 12px; color: var(--prof); background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--prof) 35%, transparent), #15110d 70%); border: 1px solid color-mix(in srgb, var(--prof) 45%, transparent); flex-shrink: 0; vertical-align: middle; }
.crafters { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.crafter { display: flex; gap: .6rem; align-items: center; }
.avatar-blank { display: inline-block; background: #15110d; }
.skillbar { height: 6px; background: #15110d; border-radius: 99px; overflow: hidden; margin: .25rem 0 .1rem; }
.skillbar span { display: block; height: 100%; background: linear-gradient(90deg, #3fbf7f, #a8f0c9); }
.recipe-list { display: flex; flex-direction: column; }
.recipe { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid #ffffff0d; flex-wrap: wrap; }
.recipe-main { min-width: 0; flex: 1; }
.small-input { width: 160px; padding: .3rem .5rem; font-size: .85rem; }

/* calendar kinds */
.cal-ev.kind-dungeon, .cal-ev.kind-alt_raid, .cal-ev.kind-pvp, .cal-ev.kind-social, .cal-ev.kind-other { outline: 1px dashed #ffffff88; outline-offset: -2px; }
.cal-ev.kind-pvp { background-image: linear-gradient(90deg, #e35d5d44, transparent); }
.cal-ev.kind-social { background-image: linear-gradient(90deg, #b98cff44, transparent); }

.kpi-n time { font-size: 1.2rem; }


/* Cinzel (SIL Open Font License, bundled in /fonts) */
@font-face { font-family: Cinzel; font-weight: 600; font-display: swap; src: url('/fonts/cinzel-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: Cinzel; font-weight: 700; font-display: swap; src: url('/fonts/cinzel-latin-700-normal.woff2') format('woff2'); }
.nav a.btn, .nav a.btn:hover { color: #1a1406; }

/* ---------------------------------------------------------------- painted theme
   Warm "guild hall" look: one painting faded behind every page, engraved serif
   headings, see-through cards with thin gold borders. */
:root { --serif: Cinzel, "Trajan Pro", Georgia, serif; --hero-fallback: radial-gradient(ellipse at 70% 20%, #e8b04f22, transparent 60%), linear-gradient(180deg, #2a1f14, #100d0a); }
body { background: var(--bg); }
.backdrop { position: fixed; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: .2; filter: saturate(.85) blur(2px); transform: scale(1.03); pointer-events: none; }
.backdrop::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 20%, transparent 0%, #100d0a 85%); }
h1, h2, .brand span, .hero-inner h1 { font-family: var(--serif); font-weight: 700; letter-spacing: .04em; }
h1 { letter-spacing: .05em; }
.card h2, .card-head h2 { font-size: 1.02rem; letter-spacing: .06em; }
.eyebrow, .small-head { letter-spacing: .14em; }
.card { background: linear-gradient(180deg, #221b15e0, var(--card)); border-color: var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 10px 30px #0006; }
.topbar { background: #0e0b09d9; border-bottom-color: var(--line); }
.hero-band { background-color: #1a140e; }
.hero-band::after { background: linear-gradient(90deg, #100d0acc 0%, #100d0a55 40%, transparent 65%), linear-gradient(180deg, transparent 45%, #100d0ae6 88%, var(--bg)); }
.hero-inner h1 { text-shadow: 0 2px 18px #000a; }
.btn-ghost { background: #100d0a99; color: var(--text); border-color: #efe6d833; }
.raid-art { background-color: #221a12; background-size: cover; position: relative; }
.raid-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
/* the shared raid painting, re-cropped and tinted per raid */
.tint-barrow { background-position: 30% 55%; filter: saturate(.9); }
.tint-barrow::after { background: linear-gradient(180deg, #1aa58a33, #0e3b3a55); mix-blend-mode: color; }
.tint-summit { background-position: 70% 40%; }
.tint-summit::after { background: linear-gradient(180deg, #8a5bd055, #2b1b4a55); mix-blend-mode: color; }
.tint-lair { background-position: 50% 60%; filter: saturate(1.1) contrast(1.05); }
.tint-default { background-position: 50% 45%; }
.event-banner { height: 150px; border-radius: var(--radius); margin-bottom: 1rem; background-position: center 45%; box-shadow: 0 10px 30px #0006; }
.event-banner.tint-barrow, .event-banner.tint-summit { background-position: center 45%; }
.raid-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, #100d0acc); z-index: 1; pointer-events: none; }

/* ---------------------------------------------------------------- event page */
.manage-toggle { position: absolute; opacity: 0; pointer-events: none; }
.ev-hero { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 1rem; min-height: 230px; display: flex; align-items: flex-end; box-shadow: 0 12px 34px #0007; }
.ev-hero-art { position: absolute; inset: 0; }
.ev-hero-art::before { background: linear-gradient(90deg, #100d0ae0 0%, #100d0a99 40%, #100d0a1a 75%, transparent 100%), linear-gradient(0deg, #100d0acc, transparent 55%); }
.ev-hero-body { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; width: 100%; padding: 1.4rem 1.5rem; }
.ev-hero-text { min-width: 0; flex: 1 1 360px; }
.ev-hero h1 { font-size: 2rem; margin: .1rem 0 .4rem; text-shadow: 0 2px 14px #000c; }
.ev-when { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: 1.1rem; font-weight: 600; }
.ev-dot { color: var(--muted); }
.ev-countdown { font-size: .85rem; font-weight: 600; color: #1a1406; background: var(--gold2); padding: .15rem .6rem; border-radius: 999px; }
.ev-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .6rem; font-size: .85rem; color: var(--muted); }
.ev-status { font-weight: 700; }
.ev-status.open { color: #7fe0ae; } .ev-status.locked { color: var(--gold2); } .ev-status.cancelled { color: #f5b8bf; } .ev-status.completed { color: var(--text); }
.ev-fill { background: #100d0ab3; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; min-width: 250px; backdrop-filter: blur(6px); }
.ev-fill-total { display: flex; align-items: baseline; gap: .1rem; margin-bottom: .4rem; }
.ev-fill-total strong { font-size: 1.8rem; line-height: 1; }
.ev-fill-total span { color: var(--muted); font-weight: 600; }
.ev-fill-total small { margin-left: .5rem; color: var(--muted); }
.ev-meter { display: grid; grid-template-columns: 6.5rem 1fr 3rem; align-items: center; gap: .5rem; font-size: .85rem; padding: .12rem 0; }
.ev-meter-label { color: var(--muted); white-space: nowrap; }
.ev-meter-bar { height: 6px; background: #ffffff14; border-radius: 99px; overflow: hidden; }
.ev-meter-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); border-radius: 99px; }
.ev-meter-n { text-align: right; font-weight: 700; }

.myspot { border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1rem; background: linear-gradient(180deg, #221b15e6, var(--card)); backdrop-filter: blur(6px); }
.myspot.in { border-left-color: var(--ok); } .myspot.wait { border-left-color: var(--warn); } .myspot.out { border-left-color: var(--bad); } .myspot.none { border-left-color: var(--gold); }
.myspot-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1.5rem; align-items: center; }
.myspot-title { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; }
.myspot.in .myspot-title { color: #7fe0ae; } .myspot.wait .myspot-title { color: #ffd99a; } .myspot.out .myspot-title { color: #f5b8bf; }
.myspot-sub { color: var(--muted); font-size: .9rem; margin-top: .1rem; }
.myspot-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.seg { font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; padding: .5rem .95rem; border-radius: 999px; border: 1px solid #efe6d833; background: #100d0a80; color: var(--text); transition: background .15s, border-color .15s; }
.seg:hover { border-color: var(--gold); }
.seg.confirmed.on { background: var(--ok); color: #0c1a12; border-color: transparent; }
.seg.tentative.on, .seg.late.on { background: var(--warn); color: #1d1206; border-color: transparent; }
.seg.out.on { background: var(--bad); color: #fff; border-color: transparent; }
.myspot.none .seg.confirmed { background: var(--ok); color: #0c1a12; border-color: transparent; }
.myspot-more { grid-column: 1 / -1; margin-top: .25rem; }
.myspot-more summary, .buff-details summary { cursor: pointer; color: var(--gold2); font-size: .88rem; }
.myspot-more[open] summary { margin-bottom: .6rem; }
.sr-box { margin-top: .6rem; }
@media (max-width: 760px) { .myspot-form { grid-template-columns: 1fr; } .myspot-actions { justify-content: flex-start; } }

.ev-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; align-items: start; }
.ev-side > .card, .ev-main > .card { margin-bottom: 1rem; }
@media (max-width: 980px) { .ev-grid { grid-template-columns: 1fr; } }
.manage-btn { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--gold2); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .75rem; }
.manage-btn .on { display: none; }
.manage-toggle:checked ~ .ev-grid .manage-btn { background: var(--gold); color: #1a1406; }
.manage-toggle:checked ~ .ev-grid .manage-btn .on { display: inline; }
.manage-toggle:checked ~ .ev-grid .manage-btn .off { display: none; }

.rgroup + .rgroup { margin-top: 1rem; }
.rgroup-head { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding-bottom: .35rem; margin-bottom: .35rem; border-bottom: 1px solid var(--line); }
.rgroup-count { color: var(--warn); letter-spacing: .04em; }
.rgroup-count.full { color: #7fe0ae; }
.prows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .35rem .75rem; }
.prows.compact { grid-template-columns: 1fr; }
.prow { position: relative; display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem .45rem .75rem; border-radius: 8px; background: #ffffff06; border-left: 3px solid var(--cls, #9d9d9d); min-height: 2.6rem; }
.prow:hover { background: #ffffff0d; }
.prow.me { background: #e8b04f14; box-shadow: inset 0 0 0 1px #e8b04f40; }
.prow.out { opacity: .65; }
.prow-rank { font-weight: 700; color: var(--muted); font-size: .8rem; width: 1.1rem; text-align: center; }
.prow-who { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.prow-name { color: var(--cls); font-weight: 700; }
.prow-sub { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-note { color: var(--text); opacity: .8; font-size: .78rem; font-style: italic; }
.prow-tags { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.prow-tags .parse { margin-left: .1rem; }
.tag { font-size: .7rem; font-weight: 700; padding: .08rem .45rem; border-radius: 999px; background: #ffffff14; color: var(--muted); white-space: nowrap; }
.tag.warn { background: #4f3b17; color: #ffd99a; }
.tag.init { background: #2d2552; color: #cbbcff; }
.tag.sr { background: #1f3b4b; color: #a8dcf0; }
.prow.open { justify-content: center; color: var(--muted); font-style: italic; font-size: .85rem; background: transparent; border: 1px dashed #efe6d826; border-left-width: 1px; }
.prow .move { display: none; }
.ev-list .prow .move { display: block; }
.prow .move select { width: auto; padding: .2rem .35rem; font-size: .78rem; }
.ev-notes { margin: 0 0 .4rem; white-space: pre-line; }
.comp-classes { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.buff-sum { font-size: .85rem; margin: 0 0 .4rem; color: #ffd99a; }
.buff-sum.ok { color: #7fe0ae; }
.buff-details .buffs { columns: 2; margin-top: .5rem; }

.prows.compact .prow { flex-wrap: wrap; }
.prows.compact .move { flex-basis: 100%; padding-left: 1.7rem; }
.prows.compact .move select { width: 100%; }
.ev-side .officer-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.ev-side .officer-actions .btn { padding: .4rem .8rem; font-size: .85rem; }
@media (max-width: 760px) { .ev-hero h1 { font-size: 1.6rem; } .ev-fill { width: 100%; } }
.bosslog form.inline { margin-left: .5rem; }
.bosslog .drops { margin: .3rem 0 .5rem; }

/* ---------------------------------------------------------------- gear (armory-style) */
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.tab { font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; padding: .25rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--cls, var(--text)); }
.tab.on { background: #ffffff14; border-color: var(--cls, var(--gold)); }
.paperdoll { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) minmax(0, 1fr); grid-template-areas: "left center right" "weapons weapons weapons"; gap: .6rem 1rem; align-items: start; }
.pd-left { grid-area: left; } .pd-right { grid-area: right; } .pd-center { grid-area: center; } .pd-weapons { grid-area: weapons; }
.pd-col, .pd-weapons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.pd-weapons { flex-direction: row; justify-content: center; gap: .6rem; flex-wrap: wrap; margin-top: .3rem; }
.pd-weapons .gslot { flex: 0 1 280px; }
.gslot { display: flex; align-items: center; gap: .6rem; padding: .3rem .4rem; border-radius: 8px; min-height: 3.1rem; cursor: default; }
.gslot:hover { background: #ffffff0d; }
.gslot.right { flex-direction: row-reverse; text-align: right; }
.gicon { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 7px; border: 2px solid var(--q, #ffffff26); background: radial-gradient(circle at 30% 25%, #3a2f24, #15110d); box-shadow: 0 0 10px color-mix(in srgb, var(--q, transparent) 35%, transparent), inset 0 0 0 1px #0008; display: grid; place-items: center; overflow: hidden; }
.gicon img { width: 100%; height: 100%; object-fit: cover; }
.gicon svg { width: 62%; height: 62%; fill: none; stroke: color-mix(in srgb, var(--q, #ab9e8a) 70%, #ab9e8a); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; opacity: .85; }
.gslot.empty .gicon { border-style: dashed; box-shadow: none; opacity: .55; }
.gtext { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.gname { color: var(--q, var(--text)); font-weight: 700; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gslot.empty .gname { font-weight: 500; font-size: .8rem; }
.gsub { display: flex; flex-wrap: wrap; gap: .1rem .45rem; font-size: .74rem; margin-top: .1rem; }
.gslot.right .gsub { justify-content: flex-end; }
.gilvl { color: #ffd100; font-weight: 700; }
.genchant { color: #1eff00; }
.ggem { color: #a8dcf0; }
.gmissing { color: #ff8a8a; font-weight: 600; }
.pd-center { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 440px; border-radius: 12px; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, color-mix(in srgb, var(--cls) 28%, transparent), transparent 65%), linear-gradient(180deg, #ffffff08, #0000); border: 1px solid var(--line); }
.pd-render { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.pd-figure { position: absolute; inset: 1.5rem 0 8rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; }
.pd-figure img { width: 46%; max-width: 150px; opacity: .55; filter: drop-shadow(0 0 30px color-mix(in srgb, var(--cls) 60%, transparent)); }
.pd-figure span { font-family: var(--serif); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; color: color-mix(in srgb, var(--cls) 70%, #fff); opacity: .6; }
.pd-ident { position: relative; width: 100%; text-align: center; padding: 2.5rem .75rem .9rem; background: linear-gradient(0deg, #100d0af2 40%, transparent); }
.pd-name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: .05em; color: var(--cls); text-shadow: 0 2px 10px #000; }
.pd-line { color: var(--muted); font-size: .85rem; }
.pd-ilvl { margin-top: .3rem; font-size: .85rem; color: var(--muted); }
.pd-ilvl strong { color: #ffd100; font-size: 1.15rem; }
.pd-armory { display: inline-block; margin-top: .35rem; font-size: .8rem; }
.pd-updated { margin: .75rem 0 0; text-align: center; }
.tt-gem { color: #a8dcf0; }
@media (max-width: 900px) {
  .paperdoll { grid-template-columns: 1fr 1fr; grid-template-areas: "center center" "left right" "weapons weapons"; }
  .pd-center { min-height: 300px; }
  .gslot.right { flex-direction: row; text-align: left; }
  .gslot.right .gsub { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .paperdoll { grid-template-columns: 1fr; grid-template-areas: "center" "left" "right" "weapons"; }
  .pd-weapons { flex-direction: column; }
  .pd-weapons .gslot { flex-basis: auto; }
}

/* ---------------------------------------------------------------- landing (classy, type-led) */
.page-home .backdrop { opacity: .42; filter: saturate(.9); transform: none; background-position: center 30%; }
.page-home .backdrop::after { background: radial-gradient(ellipse 70% 55% at 50% 38%, #100d0a8c 0%, transparent 70%), linear-gradient(180deg, #100d0a40 0%, #100d0a99 55%, #100d0a 92%); }
.lp-hero { position: relative; text-align: center; padding: clamp(4rem, 14vh, 9rem) 1.25rem clamp(3rem, 10vh, 6rem); max-width: 860px; margin: 0 auto; }
.lp-hero-slim { padding: 3.5rem 1.25rem 2.5rem; }
.lp-crest { width: 64px; height: auto; margin-bottom: 1.1rem; filter: drop-shadow(0 4px 18px #0009); }
.lp-kicker { margin: 0 0 .9rem; font-size: .74rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.lp-title { margin: 0; font-family: var(--serif); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; line-height: 1.05; font-size: clamp(2.6rem, 8vw, 5.2rem); color: #f3ece0; text-shadow: 0 4px 30px #000c; }
.lp-title span { display: block; margin-top: .5rem; font-size: clamp(1.1rem, 3vw, 1.9rem); letter-spacing: .16em; color: var(--gold2); }
.lp-hero-slim .lp-title { font-size: clamp(2rem, 5vw, 3rem); }
.lp-rule { width: 140px; height: 1px; margin: 1.6rem auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.lp-tagline { margin: 0 auto .5rem; max-width: 34rem; font-size: 1.1rem; color: #e9dfcf; }
.lp-times { margin: 0 0 1.75rem; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.lp-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.lp-actions .btn { padding: .7rem 1.4rem; letter-spacing: .04em; }
.lp-actions .btn-ghost { background: #100d0a66; border-color: #efe6d84d; backdrop-filter: blur(4px); }

.container.lp { max-width: 1040px; }
.lp-section { padding: 2.75rem 0; border-top: 1px solid var(--line); }
.lp-section:first-child { border-top: 0; padding-top: 0; }
.lp-label { text-align: center; margin: 0 0 1.6rem; font-size: .74rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }

.lp-quote { margin: 0 auto; max-width: 720px; text-align: center; font-style: italic; font-size: 1.1rem; line-height: 1.7; color: #e9dfcf; position: relative; padding: 0 2rem; }
.lp-quote::before { content: '“'; position: absolute; left: -.25rem; top: -1.1rem; font-family: var(--serif); font-style: normal; font-size: 4rem; color: var(--gold); opacity: .7; }
.lp-quote .prose p { margin: 0 0 .8rem; }
.lp-quote footer { font-style: normal; font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; margin-top: 1rem; }

.records { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.record { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.4rem 1rem; border: 1px solid var(--line); border-radius: 4px; background: #100d0a73; }
.record-label { font-size: .7rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.record-value { font-family: var(--serif); font-weight: 700; font-size: 2.6rem; line-height: 1.15; margin: .35rem 0 .2rem; color: #f3ece0; font-variant-numeric: lining-nums; }
.record-note { font-size: .85rem; color: var(--muted); }

.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li + li { border-top: 1px solid #efe6d814; }
.ledger-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 4.5rem; align-items: center; gap: 1.25rem; padding: .95rem .25rem; color: var(--text); }
.ledger-row:hover { text-decoration: none; background: #ffffff06; }
.ledger-name { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; letter-spacing: .05em; display: flex; flex-direction: column; }
.ledger-name small { font-family: system-ui, sans-serif; font-weight: 500; font-size: .78rem; letter-spacing: .04em; color: var(--muted); }
.ledger-bar { height: 2px; background: #efe6d81f; }
.ledger-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2)); box-shadow: 0 0 8px #e8b04f88; }
.ledger-count { text-align: right; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; }
.ledger-count span { color: var(--muted); font-size: .95rem; }
.ledger-count.done { color: var(--gold2); }
.card .records { margin-bottom: 1rem; }
.card .record { padding: 1rem .75rem; }
.card .record-value { font-size: 1.9rem; }

.lp-recruit { text-align: center; }
.lp-needs { list-style: none; margin: 0 auto 1.6rem; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.lp-needs li { display: flex; flex-direction: column; padding: .2rem 2rem; }
.lp-needs li + li { border-left: 1px solid var(--line); }
.lp-needs strong { font-family: var(--serif); font-size: 1.25rem; letter-spacing: .08em; text-transform: uppercase; }
.lp-needs span { color: var(--muted); font-size: .9rem; }

.lp-news { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2.5rem; }
.lp-news .small-head:first-child { margin-top: 0; }
@media (max-width: 760px) {
  .lp-news { grid-template-columns: 1fr; }
  .ledger-row { grid-template-columns: minmax(0, 1fr) 3.5rem; }
  .ledger-bar { grid-column: 1 / -1; grid-row: 2; }
  .lp-needs li { padding: .5rem 1.25rem; }
  .lp-quote { padding: 0 .75rem; font-size: 1rem; }
  .lp-quote::before { display: none; }
}
@media (max-width: 560px) {
  .records { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .record { padding: .85rem .35rem; }
  .record-label { font-size: .56rem; letter-spacing: .14em; }
  .record-value { font-size: 1.35rem; }
  .record-note { font-size: .72rem; }
}

/* ---------------------------------------------------------------- raid teams */
.manage-hint { margin-top: -.5rem; }
.team-group { margin-bottom: 2rem; }
.team-group-head { display: flex; align-items: baseline; gap: .75rem; margin-bottom: .75rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.team-group-head h2 { margin: 0; font-size: 1.25rem; }
.team-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; align-items: start; }
.tcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: linear-gradient(180deg, #221b15e6, var(--card)); backdrop-filter: blur(6px); transition: border-color .15s, box-shadow .15s; }
.tcard.drop-over { border-color: var(--gold); box-shadow: 0 0 0 2px #e8b04f55, 0 10px 30px #0006; }
.tcard-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.tcard-name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: .05em; color: var(--text); }
.tcard-fill { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--warn); }
.tcard-fill.full { color: #7fe0ae; }
.tcard-meta { color: var(--muted); font-size: .8rem; margin: .15rem 0 .5rem; }
.tcard .ev-meter-bar { display: block; margin-bottom: .55rem; }
.tcard-roles { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .82rem; font-weight: 600; margin-bottom: .6rem; }
.tcard-roles .short { color: #ffd99a; }
.tcard-role + .tcard-role { margin-top: .5rem; }
.tcard-role-label { margin: 0 0 .25rem; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.tp { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .5rem; padding: .3rem .5rem .3rem .6rem; border-radius: 6px; background: #ffffff07; border-left: 3px solid var(--cls, #9d9d9d); font-size: .88rem; }
.tp[draggable="true"] { cursor: grab; }
.tp.dragging, .pool-chip.dragging { opacity: .4; }
.tp.backup { background: transparent; border-left-style: dashed; }
.tp-name { color: var(--cls); font-weight: 700; }
.tp-sub { color: var(--muted); font-size: .76rem; }
.tp-tags { margin-left: auto; display: flex; gap: .3rem; align-items: center; }
.tp.open { justify-content: center; color: var(--muted); font-style: italic; font-size: .8rem; border: 1px dashed #efe6d826; border-left-width: 1px; background: transparent; }
.tp-menu { display: none; }
.manage-toggle:checked ~ .team-group .tp-menu { display: block; }
.tp-menu select { width: auto; padding: .1rem .3rem; font-size: .76rem; }
.tp-edit { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-top: .35rem; }
.tp-edit select { width: auto; padding: .2rem .35rem; font-size: .8rem; }
.team-pool { margin-top: .75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; }
.team-pool-label { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pool { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.pool-chip { font-size: .82rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; border: 1px solid #efe6d826; border-left: 3px solid var(--cls); color: var(--cls); background: #100d0a80; }
.pool-chip[draggable="true"] { cursor: grab; }
.pool-chip a { color: var(--cls); }
.new-team summary { cursor: pointer; color: var(--gold2); }
.new-team[open] summary { margin-bottom: .75rem; }
.team-chip { display: inline-block; font-size: .72rem; font-weight: 700; padding: .1rem .5rem; margin: .1rem .25rem .1rem 0; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold2); white-space: nowrap; }
.team-chip.backup { border-style: dashed; border-color: #efe6d84d; color: var(--muted); }
.team-chip:hover { text-decoration: none; background: #e8b04f1f; }
.grid-table th small { color: var(--muted); font-weight: 500; }
.grid-table tr.no-team td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.gcell { display: inline-flex; flex-direction: column; line-height: 1.2; padding: .25rem .55rem; border-radius: 6px; border-left: 3px solid var(--gold); background: #e8b04f12; color: var(--text); font-weight: 700; font-size: .85rem; }
.gcell span { color: var(--muted); font-weight: 500; font-size: .75rem; }
.gcell.backup { border-left-style: dashed; border-left-color: #efe6d855; background: transparent; }
.gcell:hover { text-decoration: none; background: #e8b04f22; }
.page-head > div > .eyebrow { margin-bottom: .2rem; }
.tcard.wide { grid-column: 1 / -1; }
.tcard.wide .tcard-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.tcard.wide .tcard-role + .tcard-role { margin-top: 0; }
.tcard.wide .role-dps .tlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .25rem; }
@media (max-width: 900px) { .tcard.wide .tcard-body { grid-template-columns: 1fr 1fr; } .tcard.wide .role-dps { grid-column: 1 / -1; } }
@media (max-width: 560px) { .tcard.wide .tcard-body { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- teams as raid frames */
.board-hint { margin-top: -.5rem; }
.teams-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.tc { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; background: linear-gradient(180deg, #221b15e6, var(--card)); backdrop-filter: blur(6px); box-shadow: 0 10px 30px #0006; }
.tc-wide { grid-column: 1 / -1; }
.tc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.tc-name { margin: 0; font-size: 1.25rem; }
.tc-name a { color: var(--text); }
.tc-meta { margin: .1rem 0 0; color: var(--muted); font-size: .82rem; }
.tc-fill { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--muted); white-space: nowrap; }
.tc-fill strong { font-size: 1.7rem; color: #ffd99a; }
.tc-fill.full strong { color: #7fe0ae; }
.tc-stats { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .9rem; font-size: .82rem; font-weight: 600; margin: .45rem 0 .8rem; }
.tc-stats .short { color: #ffd99a; }
.tc-next { margin-left: auto; font-weight: 600; }
.rframes { display: grid; grid-template-columns: repeat(var(--groups), minmax(0, 1fr)); gap: .5rem; padding: .35rem; margin: 0 -.35rem; border-radius: 8px; border: 1px solid transparent; transition: border-color .15s, background .15s; }
.rgrp { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rgrp-label { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1px 2px; }
.rf { position: relative; display: flex; align-items: center; gap: .35rem; height: 1.95rem; padding: 0 .5rem; min-width: 0; border-radius: 3px; border: 1px solid #000c;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cls) 94%, #fff), color-mix(in srgb, var(--cls) 72%, #000));
  box-shadow: inset 0 1px 0 #ffffff47, 0 1px 2px #0008; color: var(--ink); font-weight: 700; font-size: .82rem; text-decoration: none; transition: opacity .12s; }
.rf:hover { text-decoration: none; filter: brightness(1.08); }
.rf-role { font-size: .72rem; line-height: 1; flex: none; }
.rf-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 15%, transparent); }
.rf.init::after { content: ''; flex: none; margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #cbbcff; box-shadow: 0 0 0 1.5px #0009; }
.rf.open { background: #ffffff06; border: 1px dashed #efe6d830; box-shadow: none; color: var(--muted); font-weight: 500; font-style: italic; }
.rf.open .rf-role { opacity: .6; }
.rf-sm { display: inline-flex; height: 1.65rem; font-size: .76rem; max-width: 11rem; }
.rf[draggable="true"] { cursor: grab; }
.rf.dragging { opacity: .35; }
.rbench, .pool-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: .55rem; padding: .45rem .5rem; min-height: 2.5rem; border-radius: 8px; background: #100d0a66; border: 1px dashed #efe6d81f; transition: border-color .15s, background .15s; }
.rbench .rf-sm { opacity: .82; }
.rbench-label { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: .35rem; }
.pool-strip { margin: 1rem 0; padding: .6rem .75rem; }
.pool-strip .team-pool-label { margin-right: .5rem; }
.drop-over { border-color: var(--gold) !important; background: #e8b04f14 !important; }
.hl-mode .teams-board .rf:not(.hl), .hl-mode .pool-strip .rf:not(.hl) { opacity: .22; }
.rf.hl { outline: 2px solid #fff; outline-offset: 1px; z-index: 1; }
.everyone summary { cursor: pointer; }
.everyone[open] summary { margin-bottom: .75rem; }
@media (max-width: 900px) { .teams-board { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .rframes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tc-next { margin-left: 0; } }
.init-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #cbbcff; vertical-align: middle; margin: 0 .15rem; }
.player-name { font-weight: 700; }
.rf-role { background: #0000004d; border-radius: 3px; padding: 2px 2px 1px; }
.rf.open .rf-role { background: transparent; }
.tc-draft { border-style: dashed; border-color: #efe6d840; background: linear-gradient(180deg, #1a1511cc, #14100dcc); }
.draft-bar { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .45rem; }
.draft-tag { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 999px; background: #2d2552; color: #cbbcff; }
.drafts { margin-top: 2rem; }
.alt-tag { margin-left: .4rem; font-size: .75rem; color: var(--muted); }
.boss-portrait { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: .55rem; border: 2px solid var(--gold); box-shadow: 0 0 10px #000a; background: #100d0a; }

/* ---------------------------------------------------------------- member dashboard */
.alerts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.alerts-label { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-right: .25rem; }
.alert { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; border-radius: 999px; background: #e8b04f1a; border: 1px solid #e8b04f55; color: var(--gold2); font-size: .88rem; font-weight: 600; }
.alert:hover { text-decoration: none; background: #e8b04f2e; }
.alert.error { background: #4a1d1d; border-color: #c25b5b; color: #f5b8bf; }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; align-items: start; margin-bottom: 1.5rem; }
@media (max-width: 980px) { .dash { grid-template-columns: 1fr; } }
.dash-section { margin-top: 1.5rem; }
.dash-side .dash-section:first-child, .dash-side .podcast { margin-top: 0; }
.dash-side .dash-section { margin-top: 1.5rem; }
.dash-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.dash-head h2 { margin: 0; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.dash-head a { font-size: .85rem; }

.nextup { position: relative; display: flex; align-items: flex-end; min-height: 270px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background-size: cover; background-position: center 40%; box-shadow: 0 14px 40px #0008; color: var(--text); transition: transform .15s, box-shadow .15s; }
.nextup::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #100d0af0 0%, #100d0ab3 45%, #100d0a26 100%), linear-gradient(0deg, #100d0acc, transparent 60%); }
.nextup:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 18px 46px #000a; }
.nextup-body { position: relative; padding: 1.5rem 1.75rem; width: 100%; }
.nextup-kicker { margin: 0 0 .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.nextup-title { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3.4vw, 2.3rem); text-shadow: 0 2px 16px #000; }
.nextup-when { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1rem; font-size: 1.05rem; font-weight: 600; }
.nextup-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.nextup-fill { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted); font-weight: 600; }
.nextup-fill .ev-meter-bar { width: 180px; }

.pill { display: inline-flex; align-items: center; white-space: nowrap; font-size: .8rem; font-weight: 700; padding: .3rem .75rem; border-radius: 999px; }
.pill.ok { background: #1f5c3f; color: #b8f2d2; }
.pill.warn { background: #5a4417; color: #ffd99a; }
.pill.muted { background: #ffffff12; color: var(--muted); }
.pill.cta { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1406; }

.tickets { display: flex; flex-direction: column; gap: .5rem; }
.ticket { display: grid; grid-template-columns: 3.6rem 4.5rem minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: .55rem .9rem .55rem .55rem; border-radius: 10px;
  background: linear-gradient(180deg, #221b15e0, var(--card)); border: 1px solid var(--line); color: var(--text); transition: border-color .15s, transform .15s; }
.ticket:hover { text-decoration: none; border-color: #e8b04f66; transform: translateX(2px); }
.ticket-date { display: flex; flex-direction: column; align-items: center; line-height: 1.05; padding: .3rem 0; border-right: 1px solid var(--line); }
.ticket-date small { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ticket-date small:last-child { color: var(--muted); }
.ticket-date strong { font-family: var(--serif); font-size: 1.55rem; margin: .1rem 0; }
.ticket-art { width: 4.5rem; height: 3rem; border-radius: 6px; background-size: cover; background-position: center; border: 1px solid #0009; box-shadow: inset 0 0 0 1px #ffffff14; }
.ticket-main { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.ticket-title { font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); }
.ticket-tag { font-size: .68rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; background: #ffffff12; color: var(--muted); }
.ticket-tag.team { background: #e8b04f1f; color: var(--gold2); }
.ticket-fill { display: flex; align-items: center; gap: .45rem; font-size: .74rem; color: var(--muted); font-weight: 600; }
.ticket-fill .ev-meter-bar { width: 110px; height: 4px; }
@media (max-width: 560px) {
  .ticket { grid-template-columns: 3.2rem minmax(0, 1fr) auto; gap: .65rem; }
  .ticket-art { display: none; }
  .nextup-fill .ev-meter-bar { width: 110px; }
}

.podcast .video-lite { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 10px 30px #0008; }
.podcast .video-title { margin-top: .6rem; font-weight: 600; }
.newscards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.newscard { display: flex; flex-direction: column; gap: .3rem; padding: .7rem .85rem; border-radius: 10px; background: linear-gradient(180deg, #221b15e0, var(--card)); border: 1px solid var(--line); border-left: 3px solid var(--gold); color: var(--text); }
.newscard.news { border-left-color: #6aa7ff; }
.newscard:hover { text-decoration: none; border-color: #e8b04f66; }
.newscard-top { display: flex; justify-content: space-between; gap: .5rem; font-size: .72rem; color: var(--muted); }
.newscard-tag { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.newscard.news .newscard-tag { color: #9cc4ff; }
.newscard-title { font-weight: 600; font-size: .92rem; line-height: 1.35; }
.loot-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: .5rem; }
.lootdrop { display: flex; flex-direction: column; gap: .3rem; padding: .6rem .75rem; border-radius: 10px; background: #100d0a73; border: 1px solid var(--line); }
.lootdrop .item { font-weight: 700; }
.lootdrop-meta { font-size: .78rem; color: var(--muted); padding-left: 2.6rem; }

/* ---------- Raids page: banner rows ---------- */
.raid-rows { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.raid-row { display: grid; grid-template-columns: 270px 1fr auto; align-items: center; min-height: 116px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); color: var(--text); transition: border-color .15s, transform .15s; }
.raid-row:hover { text-decoration: none; border-color: var(--gold); transform: translateY(-1px); }
.raid-row-art { align-self: stretch; height: auto; min-height: 116px; -webkit-mask-image: linear-gradient(90deg, #000 65%, transparent); mask-image: linear-gradient(90deg, #000 65%, transparent); }
.raid-row-main { padding: .9rem 1.25rem .9rem .5rem; min-width: 0; }
.raid-row-main .eyebrow { margin: 0 0 .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.raid-row-main h2 { font-size: 1.35rem; margin: 0 0 .55rem; }
.raid-row-prog { display: flex; align-items: center; gap: .75rem; max-width: 380px; }
.raid-row-prog .progress-bar { flex: 1; margin: 0; }
.rr-frac { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.rr-frac strong { color: var(--text); font-variant-numeric: tabular-nums; }
.raid-row-stats { display: flex; margin: 0; padding: 0 1.25rem; }
.raid-row-stats > div { padding: .2rem .9rem; border-left: 1px solid var(--line); text-align: center; min-width: 84px; }
.raid-row-stats dt { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.raid-row-stats dd { margin: .15rem 0 0; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 .75rem; }
.section-head h2 { margin: 0; }
.dungeon-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .75rem; }
.dungeon-tile { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: .9rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); color: var(--text); min-height: 76px; }
.dungeon-tile:hover { text-decoration: none; border-color: var(--gold); }
.dungeon-tile-art { align-self: stretch; height: auto; min-height: 76px; -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); }
.dungeon-tile > div { display: flex; flex-direction: column; gap: .1rem; padding: .6rem .9rem .6rem 0; }
.dt-cta { font-size: .8rem; color: var(--gold); opacity: 0; transition: opacity .15s; }
.dungeon-tile:hover .dt-cta { opacity: 1; }

@media (max-width: 760px) {
  .raid-row { grid-template-columns: 1fr; }
  .raid-row-art { min-height: 120px; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
  .raid-row-main { padding: 0 1rem .5rem; }
  .raid-row-stats { padding: 0 .5rem .9rem; }
  .raid-row-stats > div { flex: 1; min-width: 0; padding: .2rem .5rem; }
  .raid-row-stats > div:first-child { border-left: 0; }
}

/* ---------------------------------------------------------------- raid night: raid frames */
.ev-roster-head { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: .9rem; }
.ev-roster-head h2 { margin: 0; }
.ev-roster-head .tc-stats { margin: 0; }
.ev-roster-head .manage-btn { margin-left: auto; }
.ev-list { display: none; }
.manage-toggle:checked ~ .ev-grid .ev-list { display: block; }
.manage-toggle:checked ~ .ev-grid .ev-frames { display: none; }
.rcols { display: flex; flex-wrap: wrap; gap: .6rem .9rem; }
.rcol { flex: var(--cols) 1 calc(var(--cols) * 150px); min-width: 0; padding: .3rem; margin: -.3rem; border-radius: 8px; border: 1px solid transparent; transition: border-color .15s, background .15s; }
.rcol-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin: 0 2px .35rem; }
.rcol-frames { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 3px; }
.ef { height: 2.15rem; gap: .3rem; }
.ef .rf-name { flex: 1; min-width: 0; }
.ef .parse { flex: none; font-size: .72rem; min-width: 1.9em; padding: .05rem .25rem; background: #000000a6; border-radius: 3px; }
.ef-marks { display: inline-flex; gap: 2px; flex: none; }
.ef-marks i, .ev-legend i { font-style: normal; font-size: .68rem; font-weight: 800; line-height: 1; padding: 2px 3px; border-radius: 3px; background: #000000a6; color: #fff; }
.ef-marks i.warn, .ev-legend i.warn { background: #ffd99a; color: #3a2a08; }
.ef.dim { opacity: .62; }
.ef.me { outline: 2px solid var(--gold2); outline-offset: 1px; z-index: 1; }
.ef.fillin::before, .ef.tbackup::before, .lg-fillin, .lg-tbackup { content: ''; width: 0; height: 0; border-top: 9px solid #cbbcff; border-left: 9px solid transparent; }
.ef.fillin::before, .ef.tbackup::before { position: absolute; top: 0; right: 0; }
.ef.tbackup::before, .lg-tbackup { border-top-color: #8fd3ff; }
.lg-fillin, .lg-tbackup { display: inline-block; vertical-align: middle; }
.ef-n { flex: none; font-size: .66rem; font-weight: 800; padding: 1px 4px; border-radius: 3px; background: #00000059; }
.ef.rf-sm { max-width: 13rem; }
.ev-standby, .ev-out { margin-top: .8rem; }
.ev-out .ef { filter: grayscale(.85) brightness(.72); }
.ev-strip-hint { margin-left: auto; }
.ev-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.1rem; font-size: .78rem; color: var(--muted); margin: .75rem 0 0; }
.ev-legend .muted { margin-left: auto; }
.rcol.drop-over, .rbench.drop-over { border-color: var(--gold) !important; background: #e8b04f14 !important; }
@media (max-width: 700px) { .rcol { flex-basis: 100%; } .ev-strip-hint { display: none; } }

/* sign-up strip: status and buttons on one line, the two "more" links on the next */
.myspot { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.25rem; padding: .85rem 1.25rem; }
.myspot-form { display: contents; }
.myspot-state { flex: 1 1 280px; min-width: 0; }
.myspot-break { flex-basis: 100%; height: 0; }
.myspot-more { flex: 0 0 auto; margin-top: 0; grid-column: auto; }
.myspot-more[open] { flex-basis: 100%; }

/* ---------------------------------------------------------------- raid night: composition */
.cbars { display: flex; flex-direction: column; gap: 4px; }
.cbar { display: grid; grid-template-columns: 4.6rem 1fr 2.2rem; align-items: center; gap: .55rem; font-size: .82rem; }
.cbar-name { color: var(--cls); font-weight: 700; white-space: nowrap; }
.cbar-track { display: flex; height: 12px; border-radius: 3px; background: #ffffff0d; overflow: hidden; }
.cbar-in { display: block; height: 100%; background: linear-gradient(180deg, color-mix(in srgb, var(--cls) 92%, #fff), color-mix(in srgb, var(--cls) 70%, #000)); box-shadow: inset 0 1px 0 #ffffff40; }
.cbar-wait, .cbar-wait-swatch { display: block; height: 100%; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--cls, #9d9d9d) 55%, transparent) 0 3px, transparent 3px 6px); }
.cbar-n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.cbar-n small { color: var(--muted); font-weight: 600; margin-left: 2px; }
.cbar.none { opacity: .38; }
.cbar.none .cbar-n { font-weight: 400; }
.cbar-note { font-size: .74rem; color: var(--muted); margin: .4rem 0 0; display: flex; align-items: center; gap: .35rem; }
.cbar-wait-swatch { display: inline-block; width: 18px; height: 9px; border-radius: 2px; --cls: #cfc4b0; }
.buffs-head { display: flex; justify-content: space-between; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin: 1rem 0 .4rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.buffs-head .ok { color: #7fe0ae; } .buffs-head .short { color: #ffd99a; }
.bufftiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.bufftiles li { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 2.3rem; padding: .3rem .5rem; border-radius: 6px; font-size: .78rem; line-height: 1.2; }
.bufftiles .has { background: #ffffff0a; border: 1px solid #ffffff12; }
.bufftiles .missing { border: 1px dashed #ffd99a59; background: #ffd99a0d; }
.bt-name { font-weight: 700; }
.bufftiles .missing .bt-name { color: #ffd99a; }
.bt-dots { display: flex; gap: 3px; }
.bt-dots i { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 1px #0008; }
.bt-need { font-size: .7rem; color: var(--muted); }
.bufftiles .has { flex-direction: row; align-items: center; justify-content: space-between; min-height: 0; padding: .22rem .5rem; font-weight: 600; }
.bufftiles .has .bt-name { font-weight: 600; color: #d9d0c1; }
.bufftiles .missing { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; min-height: 0; padding: .35rem .55rem; }
.bt-need { font-size: .74rem; }

/* composition: role summary + one block per player */
.comp-sum { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 4px; margin-bottom: .85rem; }
.comp-sum > div { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .45rem .2rem; border-radius: 6px; background: #ffffff0a; border: 1px solid #ffffff12; text-align: center; }
.comp-sum strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.comp-sum strong small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.comp-sum span { font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.comp-sum .cs-total { background: #e8b04f14; border-color: #e8b04f40; }
.comp-sum .cs-total strong { font-family: var(--serif); font-size: 1.45rem; line-height: 1; color: var(--gold2); }
.comp-sum .cs-role.short { border-color: #ffd99a66; }
.comp-sum .cs-role.short strong { color: #ffd99a; }
.cbar-track { height: 17px; gap: 2px; background: #ffffff0a; }
.cu { display: flex; align-items: center; justify-content: center; height: 100%; flex: none; font-style: normal; font-size: 9px; line-height: 1; border-radius: 2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cls) 92%, #fff), color-mix(in srgb, var(--cls) 70%, #000)); box-shadow: inset 0 1px 0 #ffffff40; }
.cu.wait { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--cls) 55%, transparent) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cls) 45%, transparent); opacity: .85; }
/* role badge on each player block: dark disc so the icon reads on every class color */
.cbar-track { height: 20px; }
.cu b { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #0d0a08d9; box-shadow: 0 0 0 1px #ffffff2e, 0 1px 2px #000a; font-size: 10px; line-height: 1; font-weight: 400; }
.cu.wait b { background: #0d0a08f2; }

/* role icons (SVG) */
.ri { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.22em; flex: none; filter: drop-shadow(0 1px 1px #000c); }
.rf-role .ri { width: 1.25em; height: 1.25em; vertical-align: middle; }
.cu b .ri { width: 12px; height: 12px; vertical-align: 0; }
.rf-role { background: transparent; padding: 0; display: inline-flex; }
.cbar-track { height: 22px; }
.cu b { width: 18px; height: 18px; }
.cu b .ri { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- sign-up strip (v3) */
.myspot { display: block; padding: .9rem 1.25rem .8rem; }
.myspot-top { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; }
.myspot-state { flex: 1 1 260px; min-width: 0; }
.myspot-sub { font-size: .86rem; }
.seg-group { display: inline-flex; border: 1px solid #efe6d833; border-radius: 999px; background: #100d0a99; padding: 3px; gap: 2px; }
.seg-group .seg { border: 0; border-radius: 999px; padding: .45rem .95rem; background: transparent; color: var(--muted); }
.seg-group .seg:hover { color: var(--text); background: #ffffff0f; }
.seg-group .seg.on { color: #0c1a12; }
.seg-group .seg.confirmed.on { background: var(--ok); }
.seg-group .seg.tentative.on, .seg-group .seg.late.on { background: var(--warn); color: #1d1206; }
.seg-group .seg.out.on { background: var(--bad); color: #fff; }
.myspot.none .seg-group .seg.confirmed { background: var(--ok); color: #0c1a12; }
.myspot-opts { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .75rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.opt { display: inline-flex; align-items: center; gap: .35rem; margin: 0; padding: .1rem .2rem .1rem .65rem; border-radius: 8px; background: #100d0a80; border: 1px solid #efe6d81f; font-size: .82rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.opt:focus-within { border-color: var(--gold); }
.opt > span { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.opt select, .opt input { width: auto; margin: 0; padding: .3rem .45rem; border: 0; background: transparent; color: var(--text); font: inherit; font-size: .86rem; font-weight: 700; box-shadow: none; }
.opt select:focus, .opt input:focus { outline: none; box-shadow: none; }
.opt select option, .opt select optgroup { background: #1a1511; color: var(--text); }
.opt-char select { color: var(--cls); }
.opt-note { flex: 1 1 220px; }
.opt-note input { flex: 1; min-width: 0; font-weight: 500; }
.opt-note input::placeholder { color: #efe6d84d; font-weight: 400; }
.opt-sr { margin-left: auto; }
.opt-sr span { color: #a8dcf0; }
.opt-sr select { max-width: 15rem; text-overflow: ellipsis; }
.opt [disabled] { opacity: .6; cursor: not-allowed; }
@media (max-width: 760px) {
  .seg-group { width: 100%; } .seg-group .seg { flex: 1; padding: .5rem .3rem; font-size: .82rem; }
  .opt-sr { margin-left: 0; } .opt { flex: 1 1 auto; }
}
.myspot-opts .opt { display: inline-flex; flex-direction: row; align-items: center; gap: .35rem; }
.myspot-opts .opt select, .myspot-opts .opt input { width: auto; border: 0; background: transparent; padding: .32rem .4rem; border-radius: 6px; }
.myspot-opts .opt input { width: 100%; }
.myspot-opts .opt select:focus, .myspot-opts .opt input:focus { outline: none; }
.myspot-opts .opt .ri { width: 1.1em; height: 1.1em; }
@media (max-width: 760px) { .seg-group .seg { white-space: nowrap; font-size: .78rem; padding: .5rem .2rem; } }
@media (max-width: 700px) { .rcol-frames { grid-template-columns: repeat(var(--mcols, 1), minmax(0, 1fr)); } }
/* lots of one class (e.g. 10+ warriors): smaller badges, then icon only */
.cbars.dense .cu b { width: 14px; height: 14px; } .cbars.dense .cu b .ri { width: 10px; height: 10px; }
.cbars.xdense .cu b { width: auto; height: auto; background: none; box-shadow: none; } .cbars.xdense .cu b .ri { width: 9px; height: 9px; }
.cbars.dense .cbar-track, .cbars.xdense .cbar-track { gap: 1px; }

/* attunement requirement + guide link */
.attune { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; margin: .4rem 0 0; font-size: .88rem; color: var(--text); line-height: 1.45; }
.attune-label { flex-basis: 100%; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); }
.attune-link { display: inline-flex; align-items: center; gap: .3rem; margin-top: .2rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid #e8b04f55; background: #e8b04f14; color: var(--gold2); font-size: .82rem; font-weight: 600; }
.attune-link:hover { text-decoration: none; background: #e8b04f2b; }
.attune + .kpis { margin-top: 1.1rem; }

/* parse privacy */
.switch { display: flex; flex-direction: row; align-items: center; gap: .8rem; cursor: pointer; color: var(--text); font-size: .95rem; }
.switch > span:last-child { display: flex; flex-direction: column; gap: .15rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { flex: none; position: relative; width: 44px; height: 24px; border-radius: 999px; background: #ffffff1f; border: 1px solid #efe6d833; transition: background .15s; }
.switch-track i { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #cfc4b0; transition: transform .15s, background .15s; }
.switch input:checked + .switch-track { background: var(--ok); border-color: transparent; }
.switch input:checked + .switch-track i { transform: translateX(20px); background: #fff; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--gold); outline-offset: 2px; }
.private-note { font-size: .85rem; color: var(--muted); background: #ffffff08; border: 1px dashed #efe6d833; border-radius: 8px; padding: .45rem .7rem; margin: 0 0 .6rem; }
.parse-private { display: inline-flex; } .parse-private .parse { outline: 1px dashed #efe6d8aa; outline-offset: 1px; opacity: .8; }
.table td:has(> .ri) { white-space: nowrap; }

/* roster: "Raid ready" icons */
.ready-cell { white-space: nowrap; }
.gi { display: inline-flex; align-items: center; gap: 2px; height: 22px; min-width: 22px; padding: 0 4px; margin: 1px 2px 1px 0; border-radius: 5px; vertical-align: middle; border: 1px solid transparent; }
.gi .gi-svg { width: 13px; height: 13px; flex: none; }
.gi b { font-size: .68rem; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.gi-ench.ok { color: #c9a8ff; background: #b98cff1f; border-color: #b98cff4d; }
.gi-ench.warn { color: #ffd99a; background: #ffd99a1f; border-color: #ffd99a66; }
.gi-ench.unknown { color: #efe6d84d; background: transparent; border: 1px dashed #efe6d833; }
.gi-key.on { color: #f0c56a; background: #e8b04f1f; border-color: #e8b04f66; }
.gi-key.off { color: #efe6d866; background: transparent; border: 1px dashed #efe6d840; }
.gi-key.off b { text-decoration: line-through; text-decoration-thickness: 1px; }
.ready-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.1rem; margin: .9rem 0 0; font-size: .8rem; color: var(--muted); }
.ready-legend > span { display: inline-flex; align-items: center; gap: .35rem; }
.ready-legend-title { font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); }

/* roster: profession icons */
.prof-cell { white-space: nowrap; }
.prof-chip { display: inline-flex; vertical-align: middle; margin-right: 3px; }
.prof-chip .prof-icon, .ready-legend .prof-icon { border-radius: 6px; }
.prof-chip.secondary { opacity: .75; }
.prof-chip.leveling .prof-icon { opacity: .5; border-style: dashed; }
.table td:nth-child(2) { white-space: nowrap; }

/* ---------------------------------------------------------------- professions page */
.prof-search { display: flex; align-items: center; gap: .5rem; padding: .45rem .45rem .45rem 1rem; margin-bottom: 1rem; border-radius: 999px; background: #100d0acc; border: 1px solid #e8b04f55; box-shadow: 0 10px 30px #0006; backdrop-filter: blur(6px); }
.prof-search:focus-within { border-color: var(--gold); }
.prof-search-icon { opacity: .7; }
.prof-search input { flex: 1; border: 0; background: transparent; font-size: 1.05rem; padding: .55rem .3rem; }
.prof-search input:focus { outline: none; }
.prof-search .btn { border-radius: 999px; }

.creqs { display: grid; gap: .6rem; margin-bottom: 1rem; }
.creq-group { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #221b15e6, var(--card)); padding: .7rem 1rem; backdrop-filter: blur(6px); }
.creq-group.can { border-color: #e8b04f80; background: linear-gradient(180deg, #3a2a12e6, var(--card)); }
.creq-group h2 { display: inline; margin: 0; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); font-family: inherit; font-weight: 700; }
.creq-group summary { cursor: pointer; }
.creq-group ul { list-style: none; margin: .45rem 0 0; padding: 0; }
.creq { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; padding: .45rem 0; border-top: 1px solid #ffffff0d; }
.creq:first-child { border-top: 0; }
.creq-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; min-width: 0; }
.creq-note { font-style: italic; color: var(--text); opacity: .8; font-size: .88rem; }
.creq-actions { display: flex; align-items: center; gap: .6rem; }

.prof-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1rem; align-items: start; }
.prof-nav { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: .15rem; padding: .6rem; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, #221b15e6, var(--card)); backdrop-filter: blur(6px); }
.prof-nav-group { margin-top: .55rem; display: flex; flex-direction: column; gap: .15rem; }
.prof-nav-label { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: 0 .45rem .15rem; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.prof-nav-label span { font-size: .66rem; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--muted); }
.prof-nav-item { display: flex; align-items: center; gap: .6rem; padding: .35rem .45rem; border-radius: 8px; color: var(--text); font-weight: 600; font-size: .92rem; }
.prof-nav-item:hover { text-decoration: none; background: #ffffff0d; }
.prof-nav-item.on { background: #e8b04f1f; box-shadow: inset 0 0 0 1px #e8b04f66; }
.prof-nav-item .prof-icon { border-radius: 7px; }
.prof-nav-all { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #e8b04f1f; color: var(--gold2); }
.prof-nav-n { min-width: 1.6rem; text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); background: #ffffff0f; border-radius: 999px; padding: .05rem .4rem; }
.prof-pane { margin: 0; min-height: 300px; }
.prof-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.prof-pane-head h2 { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: 1.2rem; }
.prof-crafters { padding: .2rem 0 .9rem; margin-bottom: .6rem; border-bottom: 1px solid var(--line); }
.prof-sub { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.prof-chips, .rrow-who { display: flex; flex-wrap: wrap; gap: 4px; }
.chip-note { margin-left: .3rem; font-size: .68rem; font-weight: 800; padding: 0 4px; border-radius: 3px; background: #0000004d; }
.prof-hint { margin: -.2rem 0 .6rem; }
.rlist { list-style: none; margin: 0; padding: 0; }
.rrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: .4rem 1rem; align-items: center; padding: .65rem 0; border-top: 1px solid #ffffff0d; }
.rrow:first-child { border-top: 0; }
.rrow-item { min-width: 0; }
.rrow-prof { display: inline-flex; align-items: center; gap: .3rem; margin-left: .5rem; font-size: .75rem; color: var(--muted); }
.rrow-prof .prof-icon { border-radius: 5px; }
.rrow-mats { display: flex; flex-wrap: wrap; gap: 4px; margin-top: .3rem; }
.mat { font-size: .74rem; padding: .05rem .45rem; border-radius: 999px; background: #ffffff0d; border: 1px solid #ffffff12; color: var(--muted); }
.rrow-act { justify-self: end; position: relative; }
.req-pop > summary { list-style: none; cursor: pointer; }
.req-pop > summary::-webkit-details-marker { display: none; }
.req-pop[open] > summary { background: var(--gold2); }
.req-form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; display: flex; gap: .4rem; width: 320px; padding: .55rem; border-radius: 10px; background: #1a1511f7; border: 1px solid var(--gold); box-shadow: 0 12px 30px #000a; }
.req-form input { flex: 1; padding: .35rem .5rem; font-size: .85rem; }
@media (max-width: 860px) {
  .prof-layout { grid-template-columns: 1fr; }
  .prof-nav { position: static; flex-direction: row; overflow-x: auto; gap: .3rem; padding: .45rem; }
  .prof-nav-group { flex-direction: row; margin: 0; gap: .3rem; }
  .prof-nav-label { display: none; }
  .prof-nav-item { white-space: nowrap; flex: none; }
  .rrow { grid-template-columns: 1fr auto; } .rrow-who { grid-column: 1 / -1; order: 3; }
  .req-form { width: min(320px, 80vw); }
}
.pn-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lp-about-link { text-align: center; padding: 1.6rem 0; }
.lp-about-link a { font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold2); }

/* ---------------------------------------------------------------- public pages */
.raid-row.static:hover { transform: none; border-color: var(--line); }
.progress-blocks { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.25rem; }
.raid-block { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; box-shadow: 0 10px 30px #0006; }
.raid-block > .raid-row { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.raid-block-empty { margin: 0; padding: .9rem 1.25rem; }
.boss-ledger { list-style: none; margin: 0; padding: .35rem 1.25rem; }
.boss-ledger li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .55rem 0; border-top: 1px solid #ffffff0d; }
.boss-ledger li:first-child { border-top: 0; }
.bl-face { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #100d0a; border: 2px solid #efe6d826; overflow: hidden; }
.bl-face img { width: 100%; height: 100%; object-fit: cover; }
.boss-ledger li.down .bl-face { border-color: var(--gold); box-shadow: 0 0 10px #e8b04f33; }
.bl-skull { color: var(--gold2); font-size: .95rem; }
.bl-name { display: flex; flex-direction: column; font-weight: 700; }
.bl-name small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.boss-ledger li:not(.down) .bl-name { color: var(--muted); }
.bl-times { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.raid-block-foot { margin: 0; padding: .6rem 1.25rem .9rem; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }

.pm-group { margin-bottom: 1.4rem; }
.pm-label { font-family: inherit; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 .55rem; }
.pm-label span { color: var(--muted); margin-left: .3rem; }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .5rem; }
.pm-card { position: relative; padding: .6rem .75rem .65rem; border-radius: 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--cls) 14%, #1a1511), #1a1511e6 60%); border: 1px solid color-mix(in srgb, var(--cls) 30%, transparent); border-left: 3px solid var(--cls); backdrop-filter: blur(6px); }
.pm-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.pm-name { font-weight: 800; color: var(--cls); font-size: 1rem; }
.pm-role .ri { width: 1.2em; height: 1.2em; }
.pm-sub { font-size: .78rem; color: var(--muted); margin-top: .05rem; }
.pm-profs { display: flex; gap: 3px; margin-top: .45rem; }

.apply-facts { display: grid; gap: .45rem; margin: .2rem 0 1rem; padding: .75rem .9rem; border-radius: 10px; background: #e8b04f12; border: 1px solid #e8b04f40; }
.apply-facts > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; }
.apply-k { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); min-width: 6.5rem; }
.apply-needs { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
@media (max-width: 560px) { .pm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; } .pm-card { padding: .5rem .55rem; } .pm-name { font-size: .92rem; } .pm-sub { font-size: .72rem; } }

/* ---------------------------------------------------------------- news page: guild posts + spots to fill */
.news-section + .news-section { margin-top: 1.75rem; }
.gpost-new > summary { list-style: none; display: inline-flex; margin-bottom: .6rem; cursor: pointer; }
.gpost-new > summary::-webkit-details-marker { display: none; }
.gpost-form { margin-bottom: .9rem; padding: .8rem; border-radius: 12px; border: 1px solid #e8b04f55; background: #1a1511e6; }
.gpost-opts { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.gposts { display: flex; flex-direction: column; gap: .6rem; }
.gpost { padding: .85rem 1rem .9rem; border-radius: 12px; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: linear-gradient(180deg, #221b15e6, var(--card)); backdrop-filter: blur(6px); }
.gpost.pinned { border-color: #e8b04f66; background: linear-gradient(180deg, #3a2a12e6, var(--card)); }
.gpost-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.gpost-tags { display: inline-flex; align-items: center; gap: .5rem; }
.gpost-head .newscard-tag { color: var(--gold); }
.gpost-private { font-size: .66rem; font-weight: 700; letter-spacing: .06em; padding: .05rem .45rem; border-radius: 999px; background: #2d2552; color: #cbbcff; }
.gpost-title { margin: .25rem 0 .2rem; font-size: 1.08rem; font-family: inherit; font-weight: 800; letter-spacing: 0; text-transform: none; }
.gpost-body { font-size: .92rem; color: #e9dfcf; }
.gpost-body p { margin: .35rem 0 0; }
.gpost-actions { display: flex; gap: .9rem; margin-top: .55rem; padding-top: .45rem; border-top: 1px solid #ffffff0d; }
.gpost-empty { padding: .9rem 1rem; border-radius: 12px; border: 1px dashed #efe6d833; }

.spots { padding: .9rem 1rem 1rem; border-radius: var(--radius); border: 1px solid #e8b04f55; background: linear-gradient(180deg, #2a2014e6, var(--card)); backdrop-filter: blur(6px); margin-bottom: 1.5rem; }
.spots .dash-head { margin-bottom: .5rem; }
.spot-list { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.spot { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .4rem .5rem; border-radius: 9px; background: #100d0a80; border: 1px solid #ffffff10; color: var(--text); }
.spot:hover { text-decoration: none; border-color: var(--gold); }
.spot-when { display: flex; flex-direction: column; align-items: center; line-height: 1.05; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.spot-when b { font-size: 1.05rem; color: var(--text); letter-spacing: 0; }
.spot-main { display: flex; flex-direction: column; min-width: 0; }
.spot-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role-needs { display: inline-flex; gap: .45rem; font-weight: 800; font-size: .85rem; white-space: nowrap; color: #ffd99a; }
.role-needs .ri { width: 1.05em; height: 1.05em; }
.spot-sub { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: .4rem 0 .3rem; }
.spot-teams { display: flex; flex-direction: column; gap: 4px; margin-bottom: .6rem; }
.spot-team { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .35rem .5rem; border-radius: 9px; background: #100d0a80; border: 1px solid #ffffff10; color: var(--text); }
.spot-team:hover { text-decoration: none; border-color: var(--gold); }
.spot-public .role-needs { font-size: 1.1rem; gap: .9rem; }
.spot-needs { list-style: none; margin: .5rem 0 .8rem; padding: 0; display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; }
.spot-apply { width: 100%; justify-content: center; }
.spots-none { margin: .2rem 0 .6rem; }
.ok-text { color: #7fe0ae; } .discord-status { justify-content: space-between; align-items: center; }

/* ---- Raid archive (Raids page): past raid nights and their loot ---- */
.archive-section { margin-top: 2.25rem; scroll-margin-top: 70px; }
.archive-section .section-head { flex-wrap: wrap; align-items: center; }
.archive-section .section-head form input { min-width: 220px; }
.archive-note { margin: -.25rem 0 .9rem; }
.loot-leaders { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1rem; }
.ll-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-right: .35rem; }
.ll-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .15rem .3rem .15rem .6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .85rem; }
.ll-chip:hover { text-decoration: none; border-color: var(--gold); }
.ll-chip b { font-weight: 600; font-size: .75rem; color: var(--text); background: #ffffff12; border-radius: 999px; padding: 0 .45rem; }
.ll-hint { flex-basis: 100%; font-size: .78rem; }
.archive { display: flex; flex-direction: column; gap: .6rem; }
.archive-night { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.archive-night > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 120px 1fr auto 1.5rem; align-items: center; gap: 1rem; min-height: 64px; padding-right: .9rem; }
.archive-night > summary::-webkit-details-marker { display: none; }
.archive-night > summary:hover { background: #ffffff06; }
.archive-night[open] > summary { border-bottom: 1px solid var(--line); }
.an-art { align-self: stretch; height: auto; min-height: 64px; -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent); mask-image: linear-gradient(90deg, #000 55%, transparent); }
.an-main { padding: .55rem 0; min-width: 0; }
.an-main .eyebrow { margin: 0 0 .1rem; font-size: .7rem; }
.an-main h3 { font-family: var(--serif); font-weight: 700; letter-spacing: .05em; font-size: 1.05rem; margin: 0; }
.an-stats { display: flex; gap: 1.4rem; margin: 0; }
.an-stats div { text-align: center; }
.an-stats dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.an-stats dd { margin: 0; font-weight: 600; font-size: 1.05rem; }
.an-chev { color: var(--muted); transition: transform .15s; text-align: center; }
.archive-night[open] .an-chev { transform: rotate(180deg); }
.an-body { padding: .8rem .9rem .7rem; }
.an-body .loot-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.an-foot { margin: .6rem 0 0; text-align: right; }
.archive-more { text-align: center; margin: .4rem 0 0; }
@media (max-width: 640px) {
  .archive-night > summary { grid-template-columns: 64px 1fr auto 1.2rem; gap: .7rem; }
  .an-stats { gap: .8rem; }
  .archive-section .section-head form { width: 100%; }
  .archive-section .section-head form input { min-width: 0; flex: 1; }
}
.prose h2 { margin: 1.6rem 0 .6rem; } .prose h3 { margin: 1.2rem 0 .5rem; }

.cal-ev.kind-quest { outline: 1px dashed #ffffff88; outline-offset: -2px; background-image: linear-gradient(90deg, #e8b04f44, transparent); }
/* Members' home: guild news */
.dash-head-links { display: inline-flex; gap: 1rem; }
.gpost-excerpt { margin: .3rem 0 0; color: var(--text); opacity: .9; font-size: .92rem; }
.gpost-title a { color: inherit; }

/* Members' home: pick a role for your main */
.role-prompt { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .85rem 1.1rem; margin-bottom: 1rem;
  border: 1px solid #e8b04f55; border-radius: 12px; background: #e8b04f14; }
.role-prompt-q { font-weight: 600; }
.role-prompt-btns { display: inline-flex; gap: .45rem; flex-wrap: wrap; }
.role-prompt-btns .btn { display: inline-flex; align-items: center; gap: .35rem; }
.role-prompt-btns .btn svg { width: 1.05em; height: 1.05em; }

/* Raid groups and wanted specs (Teams board) */
.rslot { min-width: 0; border-radius: 4px; }
.rslot > .rf, .rslot > .rf-pick > .rf { width: 100%; }
.rslot.drop-over { outline: 2px solid #ffd99a; outline-offset: 1px; }
.rf-pick { position: relative; min-width: 0; }
.rf-pick > summary { list-style: none; cursor: pointer; margin: 0; }
.rf-pick > summary.rf.want { color: var(--cls); }
.rf-pick > summary::-webkit-details-marker { display: none; }
.rf-pick[draggable="true"] > summary { cursor: grab; }
.rf-pick > summary.rf.open:hover { border-color: #efe6d870; color: var(--text); }
.rf.want { background: color-mix(in srgb, var(--cls) 14%, #0000); border: 1px dashed color-mix(in srgb, var(--cls) 75%, transparent); box-shadow: none; color: var(--cls); font-weight: 600; }
.rf.want .rf-role { opacity: .75; }
.want-pop { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; width: max-content; max-width: 20rem; padding: .55rem; border: 1px solid var(--line); border-radius: 8px; background: #1b1511; box-shadow: 0 10px 24px #000a; }
.want-pop select { width: auto; max-width: 13rem; padding: .25rem .4rem; font-size: .82rem; }
.tc:has(.rf-pick[open]) { position: relative; z-index: 20; }
.tc-also { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .5rem 0 0; }
.want-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .45rem; border-radius: 4px; border: 1px dashed color-mix(in srgb, var(--cls) 75%, transparent); color: var(--cls); font-size: .76rem; font-weight: 600; }
.want-chip .linkbtn { color: var(--muted); padding: 0 .1rem; }
.tp.open.want { color: var(--cls); border-color: color-mix(in srgb, var(--cls) 60%, transparent); font-weight: 600; }
.want-list li { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem .6rem; padding: .3rem 0; border-bottom: 1px solid #efe6d814; }
.want-name { color: var(--cls); font-weight: 600; }
.want-list form { margin-left: auto; }

/* Team buffs */
.tc-buffs { margin-top: .6rem; border-top: 1px solid var(--line); padding-top: .45rem; }
.tc-buffs > summary { display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin: 0; font-size: .74rem; font-weight: 600; color: var(--muted); cursor: pointer; list-style: none; }
.tc-buffs > summary::-webkit-details-marker { display: none; }
.tc-buffs > summary::after { content: 'Show buffs ▾'; margin-left: auto; color: var(--gold2); font-weight: 500; }
.tc-buffs[open] > summary::after { content: 'Hide ▴'; }
.tc-buffs > summary .ok b { color: #7fe0ae; } .tc-buffs > summary .plan b { color: #cbbcff; } .tc-buffs > summary .short b { color: #ffd99a; }
.tc-buffs .buffs-head:first-of-type { margin-top: .5rem; }
.bufftiles .has.planned { background: transparent; border: 1px dashed #cbbcff55; }
.bufftiles .has.planned .bt-name { color: #cbbcff; font-weight: 500; font-style: italic; }
.bt-dots i.plan, .bt-dot.plan { background: transparent !important; border: 1.5px solid #cbbcff; box-sizing: border-box; }
.bh-plan { font-style: normal; color: #cbbcff; font-weight: 600; }
.bt-legend { margin: .5rem 0 0; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.bt-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d9d0c1; }

/* Team buffs as in-game icons */
.bi-wrap { display: flex; flex-direction: column; gap: .7rem; margin-top: .55rem; }
.bi-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.bi-head .ok { color: #7fe0ae; } .bi-head .plan { color: #cbbcff; } .bi-head .short { color: #ffd99a; }
.bi-head em { font-style: normal; color: #cbbcff; }
.bicons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bi { position: relative; width: 34px; height: 34px; border-radius: 5px; box-shadow: 0 0 0 2px var(--bi), 0 2px 4px #0009; background: #0006; cursor: help; }
.bi img, .bi-txt { width: 34px; height: 34px; border-radius: 5px; display: block; }
.bi-txt { display: grid; place-items: center; font-size: .66rem; font-weight: 700; color: var(--text); background: #2a221b; }
.bi.has { --bi: #3fbf6f; }
.bi.planned { --bi: #9b86f0; }
.bi.planned img { opacity: .78; }
.bi.missing { --bi: #b4473f; }
.bi.missing img, .bi.missing .bi-txt { filter: grayscale(1) brightness(.5); }
.bi-mark { position: absolute; right: -5px; bottom: -5px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; line-height: 1; color: #fff; box-shadow: 0 0 0 1.5px #120e0b; }
.bi.has .bi-mark { background: #2f9e5b; } .bi.has .bi-mark::before { content: '✓'; }
.bi.planned .bi-mark { background: #120e0b; border: 2px solid #9b86f0; box-sizing: border-box; }
.bi.missing .bi-mark { background: #b4473f; } .bi.missing .bi-mark::before { content: '✕'; font-size: 8px; }
.bi-missing { margin: .4rem 0 0; font-size: .76rem; color: var(--muted); line-height: 1.5; }
.bi-missing b { color: #ffb4a8; font-weight: 600; }
.bi-legend { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; font-size: .72rem; color: var(--muted); }
.bi-key { display: inline-block; width: 11px; height: 11px; border-radius: 3px; border: 2px solid; margin-left: .3rem; }
.bi-key.has { border-color: #3fbf6f; background: #3fbf6f44; } .bi-key.planned { border-color: #9b86f0; } .bi-key.missing { border-color: #b4473f; background: #0008; }
.wow-tooltip .tt-plan, #tooltip .tt-plan { color: #cbbcff; } #tooltip .tt-red { color: #ff7b6b; }
.buff-icon-edit { display: flex; align-items: center; gap: .35rem; margin-top: .2rem; }
.buff-icon-edit img { border-radius: 3px; flex: none; }

/* Profession icons from the game */
.prof-icon.prof-img { background: #0007; border: 1px solid #000c; overflow: hidden; box-shadow: 0 1px 2px #0008, inset 0 0 0 1px #ffffff14; }
.prof-icon.prof-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.prof-chip.leveling .prof-icon.prof-img { opacity: .6; border-style: solid; filter: saturate(.5); }
