/* Apotheosis theme: deep forest greens and sage, taken from the guild logo. Loaded last, so it only re-colours. */
:root {
  --bg: #060b08; --card: #0e1712; --card-2: #13201a; --line: #1c2d24; --line-2: #22382c;
  --text: #dce8df; --text-strong: #f3fbf5; --muted: #7f9787; --muted-2: #a3b8aa;
  --bar: #4fbf7f; --track: #17261e;
  --g1: #4fbf7f; --g2: #8fd4a4; --g3: #c6ecd1; --gdeep: #0f3a24; --glow: rgba(79,191,127,.18);
}
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 45% at 50% -8%, rgba(79,191,127,.16), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(30,90,60,.18), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.012) 0 2px, transparent 2px 7px);
  background-attachment: fixed;
}
a { color: var(--g2); }
a:hover { color: var(--g3); }
h1, h2, .gi-text h2, .card-head h2, .section-title h2 { font-family: Cinzel, Georgia, serif; letter-spacing: .03em; }

/* Header */
.topbar { align-items: center; margin-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand-logo { width: 74px; height: 74px; border-radius: 18px; border: 1px solid rgba(143,212,164,.35); box-shadow: 0 0 28px rgba(79,191,127,.25); }
.topbar h1 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; margin: 0 0 2px;
  background: linear-gradient(180deg, var(--g3), var(--g2) 45%, #3f9a66); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar h1 .realm { font-family: system-ui, sans-serif; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted-2); -webkit-text-fill-color: var(--muted-2); }
.generated { margin-bottom: 6px; }

/* Cards */
.card, .char, .stat-box, .lt-tile, .boss-tile, .member, .team-tile, .hs-panel {
  background: linear-gradient(180deg, rgba(20,36,27,.92), rgba(12,21,16,.95)); border: 1px solid var(--line-2);
  box-shadow: 0 6px 20px rgba(0,0,0,.45), inset 0 1px 0 rgba(143,212,164,.05);
}
.card { border-radius: 12px; }
.card-head { border-bottom: 1px solid var(--line-2); }
.card-head h2 { color: var(--g3); }

/* Main tabs, sub-tabs, chips */
.nav a { background: rgba(15,30,22,.85); border-color: #24402f; color: #c4d8ca; }
.nav a:hover { border-color: var(--g1); color: #fff; }
.nav a.on { background: linear-gradient(180deg, #1f6a43, #164e32); border-color: var(--g1); color: #fff; box-shadow: 0 0 14px var(--glow); }
.main-tabs { gap: 8px; margin-bottom: 10px; }
.main-tabs a { font-size: 14.5px; padding: 8px 18px; border-radius: 10px; }
.main-tabs a.off-tab { border-color: rgba(227,179,65,.45); color: #e3c272; }
.main-tabs a.off-tab.on { background: linear-gradient(180deg, #5a4716, #3d300f); border-color: #e3b341; color: #fff; box-shadow: 0 0 14px rgba(227,179,65,.2); }
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 8px 10px; border-radius: 10px;
  background: rgba(14,26,19,.75); border: 1px solid var(--line-2); }
.subnav.sub2 { margin-left: 22px; background: rgba(14,26,19,.5); }
.subnav + .tab, .subnav.sub2 { margin-bottom: 16px; }
.st-chip { background: #0f1c15; border-color: #284634; color: #cfe2d5; }
.st-chip:hover { border-color: var(--g1); color: #fff; }
.st-chip.on { background: #1f6a43; border-color: var(--g1); color: #fff; }
.st-chip.grp .caret { font-size: 10px; opacity: .75; }
.st-chip.lock-chip { margin-left: auto; border-color: rgba(227,179,65,.45); color: #e3c272; }
.off-count { display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #e3b341; color: #1a1406; font-size: 11px; font-weight: 800; text-align: center; }
.chip { background: #0f1c15; border-color: #284634; color: #cfe2d5; }
.chip.on { background: #1d5a3a; border-color: var(--g1); color: #fff; }
.toggle-btn { background: #102019; border-color: #2a4a37; color: #d5e8dc; }
.toggle-btn:hover { border-color: var(--g1); }
.sim-tab.on { border-color: var(--g1) !important; background: rgba(31,106,67,.35) !important; }
.lock { background: #102019; border-color: #2a4a37; }
.guild-links a { background: rgba(15,30,22,.85) !important; border-color: #24402f !important; }

/* Tables */
.logs-table th { color: var(--g2); border-bottom-color: var(--line-2); }
.logs-table td { border-bottom-color: rgba(34,56,44,.6); }
.logs-table tbody tr:hover td { background: rgba(79,191,127,.05); }
.bar-row .bf, .lt-bar span { background: linear-gradient(90deg, #2f8f5a, var(--g1)); }

/* Guild intro */
.guild-intro { position: relative; overflow: hidden; border-color: rgba(79,191,127,.35);
  background: radial-gradient(ellipse at 0% 0%, rgba(79,191,127,.16), transparent 55%), linear-gradient(180deg, rgba(20,40,29,.95), rgba(10,19,14,.97)); }
.gi-wrap { display: flex; gap: 22px; align-items: flex-start; }
.gi-logo { width: 120px; height: 120px; border-radius: 22px; flex: 0 0 auto; box-shadow: 0 0 30px rgba(79,191,127,.3); border: 1px solid rgba(143,212,164,.3); }
.gi-text h2 { margin: 0 0 8px; font-size: 24px; color: var(--g3); }
.gi-lead { font-size: 15px; line-height: 1.6; margin: 0 0 14px; color: #d6e6db; }
.gi-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 12px; }
.gi-pt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: rgba(79,191,127,.07); border: 1px solid rgba(79,191,127,.2); }
.gi-pt b { display: block; color: var(--g3); }
.gi-pt span { font-size: 13px; color: var(--muted-2); }
.gi-ic { font-size: 20px; line-height: 1; }
.gi-cta { margin: 0; color: #cfe0d4; }
.gi-sign { font-family: Cinzel, Georgia, serif; color: var(--g2); margin-left: 6px; white-space: nowrap; }
@media (max-width: 640px) { .gi-wrap { flex-direction: column; } .gi-logo { width: 84px; height: 84px; } .subnav.sub2 { margin-left: 0; } }

/* Log links */
.log-link { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 10px; text-decoration: none; border: 1px solid; white-space: nowrap; }
.log-link.wa { color: #f4d27a; border-color: rgba(244,210,122,.4); }
.log-link.wf { color: #ff8f6b; border-color: rgba(255,143,107,.4); }
.log-link:hover { background: rgba(255,255,255,.06); }

/* Guild members */
.gm-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
#gm-search { max-width: 320px; background: #0b140f; border: 1px solid #2a4a37; color: #eee; border-radius: 8px; padding: 7px 10px; font: inherit; }
.gm-group { margin-bottom: 14px; }
.gm-rank { display: flex; gap: 8px; align-items: baseline; padding-bottom: 4px; margin-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.gm-rank b { color: var(--g2); font-family: Cinzel, Georgia, serif; }
.gm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 10px; }
.gm-m { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; font-size: 13px; padding: 2px 4px; border-radius: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-m:hover { background: rgba(79,191,127,.1); }

/* By Boss & Item */
.loot-needed { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.bi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.bi-boss { position: relative; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: rgba(10,20,14,.7); overflow: hidden; }
.bi-boss.has-art::before { content: ''; position: absolute; inset: 0; background: var(--art) center 20% / cover no-repeat; opacity: .12; pointer-events: none; }
.bi-boss > * { position: relative; }
.bi-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.bi-head b { font-family: Cinzel, Georgia, serif; color: var(--g3); font-size: 15px; }
.bi-item { padding: 5px 0; border-top: 1px solid rgba(34,56,44,.6); }
.bi-item:not(.need) .bi-name, .bi-item:not(.need) .bi-name a { color: #7d9587; }
.bi-name { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.bi-name a { text-decoration: none; }
.bi-n { margin-left: auto; font-size: 11px; font-weight: 800; padding: 0 7px; border-radius: 9px; background: #1f6a43; color: #fff; }
.bi-who { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px 8px; }

/* Mythic+ > Guild */
.mg-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.mg-pod { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px; border-radius: 10px; background: rgba(79,191,127,.07); border: 1px solid rgba(79,191,127,.25); }
.mg-pod.p1 { border-color: rgba(229,204,128,.55); background: rgba(229,204,128,.08); }
.mg-pod b { font-size: 20px; }
.mg-medal { font-size: 24px; }
.mg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.mg-stats .stat { background: rgba(10,20,14,.7); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; }
.mg-stats .k { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .04em; }
.mg-stats .v { font-size: 20px; font-weight: 800; }
.mg-score { display: flex; align-items: center; gap: 8px; min-width: 180px; }
.mg-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.mg-bar span { display: block; height: 100%; border-radius: 3px; }
@media (max-width: 640px) { .mg-podium { grid-template-columns: 1fr; } }

/* Teams */
.team-tile { border-top: 4px solid var(--team, var(--g1)) !important; }
.team-tile .tn { color: var(--team, var(--g3)); }
.team-tile.on { box-shadow: 0 0 0 2px var(--team, var(--g1)), 0 6px 20px rgba(0,0,0,.45); }
.team-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: 0; }
.tm-sc { font-size: 10.5px; font-weight: 700; margin-left: 4px; opacity: .95; }

/* Rotational placeholder */
.rot-links { display: flex; flex-wrap: wrap; gap: 8px; }
.rot-links a { padding: 7px 14px; border-radius: 8px; border: 1px solid #2a4a37; background: #0f1c15; text-decoration: none; font-weight: 600; }
.rot-links a:hover { border-color: var(--g1); }
@media (max-width: 640px) {
  .brand { align-items: flex-start; gap: 12px; }
  .brand-logo { width: 56px; height: 56px; border-radius: 14px; }
  .topbar h1 { font-size: 28px; text-align: left; }
  .main-tabs a { padding: 7px 13px; font-size: 13.5px; }
}

/* Guild links: top-right of the header, apart from the tabs */
.top-links { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto; }
.tl-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.top-links .guild-links { margin: 0; gap: 8px; justify-content: flex-end; }
.top-links .guild-links a.glink { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px !important; border-radius: 10px !important; font-size: 14px; font-weight: 700;
  color: #e6f2ea; text-decoration: none; background: linear-gradient(180deg, rgba(31,60,43,.95), rgba(16,32,23,.95)) !important; border: 1px solid #3a6a4d !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.35); transition: transform .12s, border-color .12s, box-shadow .12s; }
.top-links .guild-links a.glink:hover { transform: translateY(-1px); border-color: var(--g1) !important; box-shadow: 0 0 16px var(--glow); color: #fff; }
.top-links .guild-links a.glink img { width: 18px; height: 18px; }
.main-tabs { margin-top: 14px; }
@media (max-width: 760px) {
  .top-links { align-items: flex-start; margin-left: 0; width: 100%; }
  .top-links .guild-links { justify-content: flex-start; }
  .top-links .guild-links a.glink { padding: 7px 12px !important; font-size: 13px; }
}

/* Rotational */
.rot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; margin-bottom: 14px; align-items: start; }
.rot-tile { border-radius: 12px; border: 1px solid var(--line-2); border-top: 3px solid var(--accent, var(--g1)); background: linear-gradient(180deg, rgba(20,36,27,.92), rgba(12,21,16,.95)); padding: 12px 14px; }
.rot-tile.open { grid-column: 1 / -1; }
.rot-top { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.rot-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rot-n { font-weight: 800; font-size: 16px; }
.rot-who small { color: var(--muted-2); display: inline-flex; gap: 4px; align-items: center; }
.rot-match { display: flex; flex-direction: column; align-items: center; font-size: 20px; font-weight: 800; line-height: 1; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--line-2); }
.rot-match small { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
.rot-match.good, .rot-mini.good { color: #6fe39b; border-color: rgba(111,227,155,.4); }
.rot-match.ok, .rot-mini.ok { color: #f0c050; border-color: rgba(240,192,80,.4); }
.rot-match.low, .rot-mini.low { color: #ff8f6b; border-color: rgba(255,143,107,.4); }
.rot-head { margin-top: 8px; font-size: 13px; color: #d2e3d8; cursor: pointer; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g1); flex: 0 0 auto; }
.rot-dot.abc, .rot-dot.low { background: #f0c050; } .rot-dot.miss { background: #ff8f6b; } .rot-dot.extra, .rot-dot.high { background: #8fbdf5; }
.rot-more { margin-top: 12px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.rot-tips { margin: 6px 0 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.rot-tips li { padding: 7px 10px; border-radius: 8px; background: rgba(79,191,127,.06); border-left: 3px solid var(--g1); font-size: 13.5px; display: block; }
.rot-tips li.miss { border-left-color: #ff8f6b; } .rot-tips li.low, .rot-tips li.abc { border-left-color: #f0c050; } .rot-tips li.extra, .rot-tips li.high { border-left-color: #8fbdf5; }
.rot-ic { width: 18px; height: 18px; border-radius: 4px; vertical-align: -4px; margin-right: 5px; display: inline-block; }
.rot-good { color: #6fe39b; margin: 6px 0 0; }
.rot-table td.r, .rot-table th.r { text-align: right; width: 56px; }
.rot-ab { white-space: nowrap; }
.rot-bars { width: 45%; min-width: 120px; }
.rb { display: block; height: 5px; border-radius: 3px; margin: 2px 0; }
.rb.me, .rb-key.me { background: var(--g1); } .rb.top, .rb-key.top { background: #8a9aa0; }
.rb-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 3px 0 8px; vertical-align: -1px; }
.rot-bosses { display: flex; flex-wrap: wrap; gap: 6px; }
.rot-boss { font-size: 12.5px; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(10,20,14,.7); }
.rot-mini { font-weight: 800; padding: 0 6px; border-radius: 8px; border: 1px solid; margin: 0 4px; }
.rot-role { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8fe0a8; border: 1px solid rgba(143,224,168,.4); border-radius: 8px; padding: 3px 7px; }
.rot-top .rot-match + .rot-match { margin-left: -4px; }
.rot-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 6px; margin-right: 4px; }
.rot-tag.heal { background: rgba(111,227,155,.15); color: #6fe39b; } .rot-tag.dmg { background: rgba(255,143,107,.15); color: #ff9d7e; }
.rot-tips li.open { border-left-color: #c47bff; } .rot-dot.open { background: #c47bff; }
.rot-op { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; }
.rot-op.mine { opacity: .85; }
.rot-op.mine .hint { margin-right: 6px; }
.rot-step { position: relative; display: inline-flex; flex-direction: column; align-items: center; padding: 4px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(10,20,14,.7); }
.rot-step .rot-ic { width: 30px; height: 30px; margin: 0; }
.rot-step small { font-size: 10px; color: var(--muted); }
.rot-step b { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; line-height: 16px; text-align: center; color: #fff; }
.rot-step.ok { border-color: rgba(111,227,155,.5); } .rot-step.ok b { background: #2f9a5a; }
.rot-step.no { border-color: rgba(255,111,111,.5); } .rot-step.no b { background: #c23b3b; }
.rot-arrow { color: var(--muted); font-size: 16px; }
.rot-fill { display: inline-flex; align-items: center; gap: 2px; padding: 4px 8px; border-radius: 8px; border: 1px solid rgba(255,143,107,.35); background: rgba(255,143,107,.06); font-size: 13px; font-weight: 600; }
.rot-fill small { color: var(--muted); font-weight: 400; margin-left: 4px; }
