:root {
  --bg: #0d0f14;
  --panel: #151922;
  --panel-2: #1b2030;
  --line: #2a3142;
  --text: #e7e9ee;
  --muted: #8d94a6;
  --gold: #e6b85c;
  --fel: #7fd35a;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, sans-serif; }
a { color: var(--gold); }
h1, h2, h3, .brand { font-family: Cinzel, Georgia, serif; letter-spacing: .02em; }
code { background: var(--panel-2); padding: 1px 6px; border-radius: 4px; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; background: rgba(13,15,20,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { color: var(--gold); text-decoration: none; font-size: 1.2rem; }
.nav nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; cursor: pointer; }
.nav nav a:hover { color: var(--text); }
.brand { white-space: nowrap; }
@media (max-width: 600px) {
  .nav { padding: 12px 16px; gap: 12px; }
  .nav nav { gap: 12px; font-size: .85rem; }
  .nav nav a[href="#about"], .nav nav a[href="#raids"] { display: none; }
}

.hero { position: relative; display: grid; place-items: center; text-align: center; min-height: clamp(460px, 62vh, 640px);
  padding: 90px 24px; overflow: hidden; background: var(--bg); isolation: isolate; }
/* screenshot mosaic */
.hero::before { content: ""; position: absolute; inset: -8px; z-index: -2;
  background: url(/img/banner.jpg) center / cover no-repeat; filter: saturate(.9); }
/* readability: darken overall, extra-dark behind the text, fade into the page */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 52% 48% at 50% 50%, rgba(10,12,17,.86) 0%, rgba(10,12,17,.72) 50%, rgba(10,12,17,0) 100%),
    linear-gradient(180deg, rgba(13,15,20,.35) 0%, rgba(13,15,20,.1) 30%, rgba(13,15,20,.2) 70%, var(--bg) 100%); }
@media (max-width: 700px) {
  .hero::before { background-image: url(/img/banner-mobile.jpg); }
  .hero::after { background: linear-gradient(180deg, rgba(10,12,17,.72), rgba(10,12,17,.82) 70%, var(--bg)); }
}
.hero-inner { max-width: 1000px; }
.hero-inner .lead { max-width: 560px; }
.hero h1 { font-size: clamp(1.6rem, 6vw, 4.5rem); margin: 8px 0; color: var(--gold); word-spacing: -0.1em;
  white-space: nowrap; line-height: 1.1;
  text-shadow: 0 2px 0 rgba(0,0,0,.6), 0 0 30px rgba(0,0,0,.9), 0 0 40px rgba(230,184,92,.25); }
.hero .eyebrow, .hero .lead { text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 18px rgba(0,0,0,.9); }
.hero .lead { color: #d6d9e0; }
.btn.ghost { background: rgba(13,15,20,.6); backdrop-filter: blur(4px); border-color: rgba(255,255,255,.25); }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin: 0 auto 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--fel); margin: 0; font-weight: 600; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 10px 20px; border-radius: 8px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--gold); color: #1a1406; border-color: var(--gold); }

main { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.note { background: rgba(230,184,92,.1); border: 1px solid rgba(230,184,92,.35); padding: 8px 12px; border-radius: 8px; margin-bottom: 16px; font-size: .9rem; }

.week-nav { display: flex; align-items: center; gap: 10px; }
.week-nav button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 1.2rem; cursor: pointer; }
.week-nav button:disabled { opacity: .35; cursor: default; }
#weekLabel { min-width: 170px; text-align: center; font-weight: 600; }

.mvp-grid { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 20px; }
@media (max-width: 800px) { .mvp-grid { grid-template-columns: 1fr; } }
.mvp-card { background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative; overflow: hidden; }
.mvp-card::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--cls, transparent), 0 0 60px -20px var(--cls, transparent); }
.mvp-name { font-family: Cinzel, serif; font-size: 2rem; margin: 10px 0 0; color: var(--cls, var(--text)); }
.mvp-spec { color: var(--muted); margin: 0 0 16px; }
.mvp-parse { font-size: 3.4rem; font-weight: 700; line-height: 1; }
.mvp-details { margin-top: 14px; color: var(--muted); font-size: .92rem; }
.mvp-details strong { color: var(--text); }

.board { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
tr:last-child td { border-bottom: 0; }
td a { text-decoration: none; }

/* WCL parse colours */
.p-gray { color: #9d9d9d; } .p-green { color: #1eff00; } .p-blue { color: #0070ff; }
.p-purple { color: #a335ee; } .p-orange { color: #ff8000; } .p-pink { color: #e268a8; } .p-gold { color: #e5cc80; }

.logs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.logs li a { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; }
.logs li a:hover { border-color: var(--gold); }

.two-col { display: grid; grid-template-columns: 3fr 2fr; gap: 32px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.schedule { align-self: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.schedule ul { list-style: none; padding: 0; margin: 0; }
.schedule li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.schedule li:last-child { border: 0; }

.recruit-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.pill { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-weight: 500; }
.pill.high { border-color: var(--fel); color: var(--fel); }
.pill.med { border-color: var(--gold); color: var(--gold); }
.pill.low { color: var(--muted); }

footer { text-align: center; padding: 32px 16px; color: var(--muted); font-size: .9rem; }

.rank { color: var(--muted); font-size: .85rem; }
.mvp-rank { margin-top: 6px; color: var(--text); font-weight: 600; }
.mvp-rank span { color: var(--muted); font-weight: 400; }

.sub-head { margin: 0; }
.sub-head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 40px 0 14px; }
.tabs { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.tabs button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; padding: 6px 16px; border-radius: 7px; cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--gold); color: #1a1406; }
.tabs .count { font-weight: 400; opacity: .7; margin-left: 4px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.tile .v { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.tile .k { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
table.sortable th { cursor: pointer; user-select: none; white-space: normal; letter-spacing: .03em; font-size: .72rem; vertical-align: bottom; line-height: 1.25; min-width: 64px; max-width: 110px; }
table.sortable th, table.sortable td { padding: 9px 10px; }
table.sortable th:first-child { min-width: 120px; }
table.sortable th.sorted { color: var(--gold); }
td.num, th.num { text-align: right; }
td.zero, .zero { color: #4a5063; }

/* consumables: grouped layout */
.cons-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; cursor: pointer; }
.toggle input { accent-color: var(--gold); }
.tiles.groups { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile .breakdown { margin-top: 6px; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.tile .breakdown b { color: var(--text); font-weight: 600; }
table.cons { table-layout: fixed; }
table.cons th, table.cons td { white-space: normal; vertical-align: top; padding: 9px 10px; }
table.cons th { cursor: pointer; user-select: none; font-size: .72rem; letter-spacing: .05em; }
table.cons th.sorted { color: var(--gold); }
table.cons th.player { width: 16%; }
table.cons th.gcol-flasks { width: 27%; }
table.cons th.total { width: 64px; text-align: right; }
table.cons th.gold { width: 80px; text-align: right; }
table.cons td.gold { text-align: right; font-weight: 600; color: var(--gold); white-space: nowrap; }
table.cons td.total { text-align: right; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: .8rem;
  background: var(--panel-2); border: 1px solid var(--line); white-space: nowrap; }
.chip b { font-weight: 700; }
.chip span { color: var(--muted); }
.g-potions .chip { border-color: rgba(163,53,238,.45); }
.g-explosives .chip { border-color: rgba(255,128,0,.45); }
.g-flasks .chip { border-color: rgba(63,199,235,.45); }
.g-buffs .chip { border-color: rgba(127,211,90,.45); }
.role-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); border: 1px dashed var(--line); vertical-align: 1px; }
tr.off-role td:first-child span:first-child { opacity: .85; }
@media (max-width: 700px) {
  table.cons { table-layout: auto; }
  table.cons th.player { width: auto; }
}

.logs li.dup a { opacity: .6; }

/* weekly MVP cards */
.group-head { margin: 28px 0 12px; font-size: 1.1rem; color: var(--muted); }
.mvp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .mvp-cards { grid-template-columns: 1fr; } }
.mvp-cards .mvp-card { padding: 20px; display: flex; flex-direction: column; }
.mvp-cards .mvp-name { font-size: 1.6rem; margin-top: 8px; }
.mvp-cards .mvp-spec { margin-bottom: 10px; }
.mvp-stat { font-size: 2.6rem; font-weight: 700; line-height: 1; }
.mvp-stat small { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: 4px; }
.mvp-stat .arrow { color: var(--muted); font-size: 1.6rem; margin: 0 6px; }
.runners { list-style: none; margin: auto 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: .85rem; }
.mvp-cards .mvp-details { margin-bottom: 12px; }
.runners li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.runners li .muted { white-space: nowrap; }
.board-details { margin-top: 16px; }
.board-details summary { cursor: pointer; color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.board-details summary:hover { color: var(--text); }

/* about */
#about p { color: #c9ccd4; }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 600px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.facts li { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.facts strong { display: block; font-size: 1.4rem; color: var(--gold); line-height: 1.2; }
.facts span { color: var(--muted); font-size: .8rem; }
.team + .team { margin-top: 14px; }
.team-name { margin: 8px 0 2px; color: var(--fel); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }

/* raid filter sidebar */
 /* the MVP section is a bit wider than the rest of the page to fit the sidebar */
#mvp { width: min(1300px, calc(100vw - 32px)); margin-left: calc(50% - min(650px, 50vw - 16px)); }
.mvp-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.mvp-main { min-width: 0; }
.mvp-main > .group-head:first-child { margin-top: 0; }
.raid-filter { position: sticky; top: 76px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.filter-title { margin: 0 0 10px; font-family: Cinzel, serif; font-weight: 700; color: var(--gold); }
.filter-hint { margin: 12px 0 0; font-size: .78rem; }
.raid-opt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; line-height: 1.3; }
.raid-opt:hover { background: var(--panel-2); }
.raid-opt input { accent-color: var(--gold); margin: 0; flex: none; }
.raid-opt .raid-name { flex: 1; }
.raid-opt .raid-kills { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.raid-opt.all { border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; padding-bottom: 8px; }
.mvp-main.updating { opacity: .55; transition: opacity .15s; }
@media (max-width: 900px) {
  #mvp { width: auto; margin-left: 0; }
  .mvp-layout { grid-template-columns: 1fr; gap: 16px; }
  .raid-filter { position: static; padding: 12px; }
  #raidFilter { display: flex; flex-wrap: wrap; gap: 8px; }
  .raid-opt, .raid-opt.all { margin: 0; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
  .raid-opt:has(input:checked) { border-color: var(--gold); }
  .filter-hint { display: none; }
}

/* gold estimates */
.cons-gold { margin: 0 0 12px; }
.gold-big { font-size: 1.4rem; font-weight: 700; color: var(--gold); margin-right: 4px; }
.tile-gold { font-size: .85rem; font-weight: 600; color: var(--gold); margin-left: 8px; }
