:root {
  color-scheme: dark;
  --page-max-width: 1720px;
  --page-gutter: clamp(20px, 4vw, 72px);
  --bg: #0c0e12;
  --bg-soft: #12151c;
  --panel: #151924;
  --panel-border: rgba(255, 255, 255, 0.08);
  --accent: #f4c16f;
  --accent-2: #d76f3c;
  --text: #f5f2eb;
  --muted: #b4b8c4;
  --glow: rgba(244, 193, 111, 0.3);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top, #1b1f2c 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

.bg-veil {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(244, 193, 111, 0.15), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(215, 111, 60, 0.2), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(72, 107, 173, 0.18), transparent 50%),
    linear-gradient(120deg, rgba(9, 11, 17, 0.8), rgba(12, 15, 21, 0.8));
  pointer-events: none;
  z-index: -1;
}

.hero {
  width: min(100%, var(--page-max-width));
  margin-inline: auto;
  padding: 48px var(--page-gutter) 72px;
  position: relative;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
}

.nav-tools {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-tools > * {
  position: relative;
}

.nav-tools > * + * {
  margin-left: 28px;
  padding-left: 0;
}

.nav-tools > * + *::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 1px;
  height: 16px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(244, 193, 111, 0.42), rgba(255, 255, 255, 0.04));
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-wordmark {
  font-family: "Cinzel", serif;
  font-size: 1.35rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--accent);
}

.logo-mark {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(244, 193, 111, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.nav-context {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Cinzel", serif;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(245, 242, 235, 0.88);
}

.faq-jump-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  font-family: "Cinzel", serif;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  opacity: 0.96;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.faq-jump-link:hover {
  color: #ffd9a1;
  opacity: 1;
  transform: translateY(-1px);
}

.faq-jump-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  margin: 8px 0 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.lead {
  font-size: 1.1rem;
  max-width: 520px;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, #5865f2, #3c49d6);
  color: #fefefe;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 32px rgba(88, 101, 242, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discord-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(88, 101, 242, 0.45);
}

.discord-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.discord-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.discord-sub {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: var(--muted);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.meta-title {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.meta-value {
  font-weight: 600;
  font-size: 1.1rem;
}

.hero-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px 18px;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(244, 193, 111, 0.08), transparent 60%);
  pointer-events: none;
}

.sigil {
  width: 206px;
  aspect-ratio: 1 / 1;
  position: relative;
  display: grid;
  place-items: center;
}

.sigil::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(104, 145, 210, 0.18) 0%,
    rgba(244, 193, 111, 0.1) 44%,
    rgba(10, 13, 21, 0) 76%
  );
  filter: blur(6px);
  pointer-events: none;
}

.sigil-logo {
  width: 188px;
  height: 188px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 10px rgba(92, 142, 225, 0.16));
}

.card-content h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  border: 1px solid rgba(244, 193, 111, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--accent);
}

main {
  width: min(100%, var(--page-max-width));
  margin-inline: auto;
  padding: 0 var(--page-gutter) 96px;
}

.grid-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 72px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-media {
  margin: -24px -24px 14px;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  position: relative;
}

.panel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 58%, rgba(12, 14, 18, 0.35) 100%);
  pointer-events: none;
}

.panel-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.35s ease;
}

.panel:hover .panel-media img {
  transform: scale(1.07);
}

.panel h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.schedule {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 72px;
}

.muted {
  color: var(--muted);
}

.schedule-table {
  background: var(--bg-soft);
  border-radius: 18px;
  border: 1px solid var(--panel-border);
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}

.schedule-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-row.ghost {
  background: rgba(255, 255, 255, 0.03);
}

.day {
  font-weight: 600;
}

.time {
  color: var(--accent);
}

.type {
  text-align: right;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 72px;
}

.stat {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(244, 193, 111, 0.2);
  background: linear-gradient(140deg, rgba(244, 193, 111, 0.08), rgba(12, 14, 18, 0.9));
}

.stat-title {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.stat-value {
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
  margin: 8px 0;
}

.stat-foot {
  margin: 0;
  color: var(--muted);
}

.recent-achievements {
  margin-bottom: 72px;
}

.recent-achievements-head h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1.45rem, 2.1vw, 1.9rem);
  letter-spacing: 0.04em;
}

.recent-achievements-head .muted {
  margin: 8px 0 0;
}

.activity-layout {
  margin-top: 18px;
  display: block;
}

.activity-achievements .recent-achievements-list {
  margin-top: 0;
}

.raid-progress {
  margin-bottom: 18px;
}

.raid-progress-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.raid-progress-eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.raid-progress-head h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.raid-progress-copy {
  margin: 0;
  text-align: right;
}

.raid-progress-shell {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
}

.raid-progress-board {
  width: max(100%, max-content);
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.raid-progress-raid {
  position: relative;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: start;
  flex: var(--raid-boss-count, 1) 1 0;
  width: calc((var(--raid-boss-count, 1) * 104px) + 28px);
  min-width: 188px;
}

.raid-progress-raid::before {
  content: "";
  position: absolute;
  top: 0;
  right: -10px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(244, 193, 111, 0.26), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.raid-progress-raid-title {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: rgba(245, 242, 235, 0.94);
}

.raid-progress-raid:last-child::before {
  display: none;
}

.raid-progress-bosses {
  display: grid;
  grid-template-columns: repeat(var(--raid-boss-count, 1), minmax(92px, 1fr));
  gap: 8px;
  width: 100%;
}

.raid-progress-boss {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: start;
  min-height: 64px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.raid-progress-boss-name {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.25;
  min-height: 2.4em;
  color: rgba(214, 218, 229, 0.88);
}

.raid-progress-lanes {
  display: grid;
  gap: 5px;
  justify-items: stretch;
}

.raid-progress-lane {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  width: 100%;
  padding: 4px 7px 5px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(214, 218, 229, 0.68);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.raid-progress-lane-label {
  color: rgba(245, 242, 235, 0.7);
}

.raid-progress-lane-meta {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  color: rgba(214, 218, 229, 0.26);
  font-size: 0.58rem;
  letter-spacing: 0.03em;
}

.raid-progress-lane-state {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.raid-progress-lane.is-killed {
  color: rgba(244, 193, 111, 0.98);
  border-color: rgba(244, 193, 111, 0.16);
  background: linear-gradient(90deg, rgba(244, 193, 111, 0.18), rgba(244, 193, 111, 0.07));
}

.raid-progress-lane.is-killed .raid-progress-lane-meta {
  color: rgba(245, 242, 235, 0.34);
}

.raid-progress-lane.is-killed .raid-progress-lane-state {
  background: #f4c16f;
  box-shadow: 0 0 10px rgba(244, 193, 111, 0.34);
}

.raid-progress-empty,
.raid-progress-source {
  margin: 10px 0 0;
}

.recent-achievements-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.achievement-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 14px;
}

.achievement-media {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.achievement-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.achievement-body {
  min-width: 0;
}

.achievement-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.achievement-meta {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.achievement-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.achievement-points {
  color: var(--accent);
  font-weight: 700;
}

.achievement-points-icon {
  width: 0.92rem;
  height: 0.92rem;
  display: block;
  fill: currentColor;
  flex: 0 0 auto;
}

.recent-achievements-empty {
  margin: 10px 0 0;
}

.roster-changes {
  margin-bottom: 72px;
}

.roster-changes-head h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1.45rem, 2.1vw, 1.9rem);
  letter-spacing: 0.04em;
}

.roster-changes-head .muted {
  margin: 8px 0 0;
}

.roster-columns {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.activity-layout .roster-columns {
  margin-top: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.roster-group {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.008) 46%, rgba(255, 255, 255, 0) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 12px 10px 8px;
}

.roster-group h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: rgba(245, 242, 235, 0.96);
  position: relative;
  padding-bottom: 10px;
}

.roster-group h3::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 193, 111, 0.34), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.roster-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0 0 10px;
  position: relative;
}

.roster-tabs::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 193, 111, 0.34), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.roster-tab {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(214, 218, 229, 0.74);
  border-radius: 0;
  padding: 4px 2px 8px;
  font-family: "Cinzel", serif;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.18s ease;
}

.roster-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(244, 193, 111, 0.52);
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.45);
  transform-origin: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.roster-tab:hover {
  color: #ece6d7;
}

.roster-tab.is-active {
  color: #f5f2eb;
}

.roster-tab-static {
  cursor: default;
}

.roster-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.roster-tab:focus-visible {
  outline: 2px solid rgba(244, 193, 111, 0.42);
  outline-offset: 3px;
}

.roster-tab-panel {
  min-width: 0;
}

.roster-scroll-toggle {
  margin-left: auto;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(245, 242, 235, 0.5);
  width: 26px;
  height: 26px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.roster-scroll-toggle-icon {
  position: relative;
  width: 10px;
  height: 10px;
  display: block;
}

.roster-scroll-toggle-icon::before,
.roster-scroll-toggle-icon::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.roster-scroll-toggle-icon::before {
  left: 1px;
}

.roster-scroll-toggle-icon::after {
  right: 1px;
}

.roster-scroll-toggle[aria-pressed="false"] .roster-scroll-toggle-icon::before,
.roster-scroll-toggle[aria-pressed="false"] .roster-scroll-toggle-icon::after {
  opacity: 1;
}

.roster-scroll-toggle[aria-pressed="true"] .roster-scroll-toggle-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  margin-left: 1px;
}

.roster-scroll-toggle[aria-pressed="true"] .roster-scroll-toggle-icon::before,
.roster-scroll-toggle[aria-pressed="true"] .roster-scroll-toggle-icon::after {
  opacity: 0;
}

.roster-scroll-toggle:hover {
  color: rgba(255, 248, 236, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 14px rgba(0, 0, 0, 0.1);
}

.roster-scroll-toggle[aria-pressed="true"] {
  color: rgba(244, 193, 111, 0.58);
  border-color: rgba(244, 193, 111, 0.14);
  background: rgba(244, 193, 111, 0.025);
}

.roster-scroll-toggle:focus-visible {
  outline: 2px solid rgba(244, 193, 111, 0.5);
  outline-offset: 3px;
}

.roster-scroll-toggle[hidden] {
  display: none;
}

.roster-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.roster-list.roster-list-scrollable {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
}

.roster-list.roster-list-scrollable::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.roster-entry {
  --roster-class-color: var(--accent);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.006) 58%, rgba(255, 255, 255, 0));
  border: 0;
  border-radius: 0;
  padding: 13px 10px 13px 16px;
  position: relative;
  overflow: visible;
  transition: background 0.2s ease;
}

.roster-entry:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012) 58%, rgba(255, 255, 255, 0));
}

.roster-entry::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08) 55%, rgba(255, 255, 255, 0));
}

.roster-entry:last-child::after {
  opacity: 0;
}

.roster-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--roster-class-color), rgba(244, 193, 111, 0.3));
  box-shadow: 0 0 9px rgba(244, 193, 111, 0.2);
}

.roster-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.roster-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.roster-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.roster-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #090b10;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  color: #d5d5d5;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.roster-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.roster-icon.is-fallback {
  background: #0f1421;
}

.roster-name {
  margin: 0;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

a.roster-name:hover {
  text-decoration: underline;
}

.roster-name:focus-visible {
  outline: 2px solid var(--roster-class-color);
  outline-offset: 3px;
  border-radius: 2px;
}

.roster-detected {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.roster-rank-label {
  color: rgba(255, 226, 168, 0.7);
  font-family: "Cinzel", serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.roster-rank-label.is-repeated {
  color: rgba(168, 173, 184, 0.32);
}

.roster-details {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.roster-entry-has-ilvl,
.roster-entry-has-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "head head"
    "details ilvl";
  column-gap: 12px;
  align-items: end;
}

.roster-entry-has-ilvl .roster-entry-head,
.roster-entry-has-metric .roster-entry-head {
  grid-area: head;
}

.roster-entry-has-ilvl .roster-details,
.roster-entry-has-metric .roster-details {
  grid-area: details;
}

.roster-entry-has-movement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "head head"
    "details movement";
  column-gap: 12px;
  align-items: end;
}

.roster-entry-has-movement .roster-entry-head {
  grid-area: head;
}

.roster-entry-has-movement .roster-details {
  grid-area: details;
}

.roster-ilvl-display,
.roster-metric-display {
  grid-area: ilvl;
  justify-self: end;
  align-self: center;
  text-align: right;
  margin: 0;
  padding-top: 2px;
  font-family: "Cinzel", serif;
  font-size: clamp(1.08rem, 1.45vw, 1.35rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.015em;
  white-space: nowrap;
  text-transform: lowercase;
  color: #ffe2a8;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.72);
}

.roster-ilvl-display.is-negative {
  color: #ffc6af;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
}

.roster-metric-display-mythic-plus {
  color: #ffe2a8;
  text-transform: none;
}

.roster-movement-display {
  grid-area: movement;
  justify-self: end;
  align-self: center;
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.roster-movement-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-family: "Cinzel", serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #f5f2eb;
}

.roster-movement-badge.is-positive {
  color: #b7f7c8;
  border-color: rgba(116, 223, 154, 0.28);
  background: rgba(50, 122, 77, 0.18);
}

.roster-movement-badge.is-neutral {
  color: rgba(238, 231, 216, 0.78);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.roster-movement-badge.is-negative {
  color: #ffc6af;
  border-color: rgba(255, 159, 122, 0.24);
  background: rgba(131, 58, 41, 0.2);
}

.roster-movement-meta {
  display: grid;
  gap: 2px;
}

.roster-movement-rank-meta,
.roster-movement-ilvl-meta {
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.25;
  white-space: nowrap;
}

.roster-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d7dce8;
  background: rgba(255, 255, 255, 0.04);
}

.roster-tag-level {
  color: var(--accent);
  border-color: rgba(244, 193, 111, 0.32);
  background: rgba(244, 193, 111, 0.1);
}

.roster-tag-spec {
  color: #e3d0ff;
  border-color: rgba(170, 132, 238, 0.34);
  background: rgba(170, 132, 238, 0.12);
}

.roster-tag-role-dps {
  color: #ff9e59;
  border-color: rgba(255, 158, 89, 0.36);
  background: rgba(255, 158, 89, 0.11);
}

.roster-tag-role-tank {
  color: #73c7ff;
  border-color: rgba(115, 199, 255, 0.32);
  background: rgba(115, 199, 255, 0.1);
}

.roster-tag-role-healer {
  color: #93e87e;
  border-color: rgba(147, 232, 126, 0.34);
  background: rgba(147, 232, 126, 0.1);
}

.roster-empty {
  margin: 12px 0 2px;
  padding-left: 2px;
}

.cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
  background: linear-gradient(120deg, rgba(244, 193, 111, 0.12), rgba(12, 14, 18, 0.9));
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 36px;
}

.cta-main {
  display: grid;
  align-content: start;
  gap: 14px;
}

.cta-main h2 {
  margin: 0;
}

.cta-main-copy {
  margin: 0;
  max-width: 56ch;
}

.cta-contact-label {
  margin: 2px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.13rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.cta-box {
  background: rgba(12, 14, 18, 0.75);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--panel-border);
  display: grid;
  gap: 4px;
}

.cta-box ul {
  margin: 12px 0 16px;
  padding-left: 18px;
}

.cta-label {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.cta-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.cta-contact-main {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-contact-main li {
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  letter-spacing: 0.01rem;
}

.cta-discord-line {
  margin: 0;
  color: var(--muted);
}

.cta-discord-inline {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 193, 111, 0.4);
}

.cta-discord-inline:hover {
  border-bottom-color: rgba(244, 193, 111, 0.9);
}

.cta-discord-inline:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-bottom-color: transparent;
}

.faq {
  margin-top: 36px;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding: 8px 0 0;
  border: 0;
  background: transparent;
}

.faq-head h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1.45rem, 2.1vw, 1.9rem);
  letter-spacing: 0.04em;
}

.faq-head .muted {
  margin: 8px 0 0;
}

.faq-list {
  margin-top: 18px;
  display: grid;
  gap: 0;
}

.faq-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.faq-group-body {
  display: grid;
  gap: 0;
}

.faq-section-title {
  margin: 34px 0 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Cinzel", serif;
  font-size: 0.94rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 193, 111, 0.9);
}

.faq-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 193, 111, 0.45), rgba(255, 255, 255, 0.08));
}

.faq-group:first-child .faq-section-title {
  margin-top: 0;
}

.faq-group > summary.faq-section-title {
  list-style: none;
  cursor: pointer;
}

.faq-group > summary.faq-section-title::-webkit-details-marker {
  display: none;
}

.faq-group > summary.faq-section-title::before {
  content: "+";
  color: rgba(244, 193, 111, 0.92);
  font-size: 1.1rem;
  line-height: 1;
}

.faq-group[open] > summary.faq-section-title::before {
  content: "\2212";
}

.faq-group > summary.faq-section-title:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.faq-item {
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 0;
  background: transparent;
  padding: 0;
  transition: border-color 0.2s ease;
}

.faq-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.faq-item[open] {
  border-bottom-color: rgba(244, 193, 111, 0.42);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 2px 15px;
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: clamp(1.03rem, 1.55vw, 1.16rem);
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: rgba(245, 242, 235, 0.95);
  transition: color 0.2s ease;
}

.faq-item summary:hover {
  color: #ffffff;
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: rgba(244, 193, 111, 0.92);
  font-size: 1.25rem;
  line-height: 1;
  min-width: 1.3rem;
  text-align: center;
  transition: color 0.2s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 0;
  margin-left: 3px;
  padding: 0 2px 0 14px;
  border-left: 2px solid rgba(244, 193, 111, 0.34);
  font-size: 1.02rem;
  line-height: 1.72;
  color: rgba(245, 242, 235, 0.82);
  max-width: none;
}

.faq-item p + p {
  margin-top: 10px;
}

.faq-item > p:last-of-type {
  margin-bottom: 10px;
}

.footer {
  width: min(100%, var(--page-max-width));
  margin-inline: auto;
  padding: 32px var(--page-gutter) 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04rem;
  transition: color 0.2s ease;
}

.footer-discord:hover {
  color: var(--accent);
}

.footer-discord:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.footer-discord-icon {
  width: 18px;
  height: 18px;
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero,
  .panel,
  .schedule,
  .stats,
  .recent-achievements,
  .roster-changes,
  .cta,
  .faq {
    animation: fadeUp 0.9s ease both;
  }

  .panel:nth-child(2) {
    animation-delay: 0.1s;
  }

  .panel:nth-child(3) {
    animation-delay: 0.2s;
  }

  .schedule {
    animation-delay: 0.3s;
  }

  .stats {
    animation-delay: 0.4s;
  }

  .recent-achievements {
    animation-delay: 0.5s;
  }

  .roster-changes {
    animation-delay: 0.6s;
  }

  .cta {
    animation-delay: 0.7s;
  }
}

@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 14px;
  }

  .hero-card .sigil {
    margin: 0 auto;
  }

  .sigil {
    width: 182px;
  }

  .sigil-logo {
    width: 166px;
    height: 166px;
  }

  .schedule {
    grid-template-columns: 1fr;
  }

  .type {
    text-align: left;
  }

  .activity-layout {
    display: block;
  }

  .recent-achievements-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .raid-progress-board {
    width: max(100%, max-content);
    gap: 18px;
  }

  .activity-layout .roster-columns {
    margin-top: 6px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-tools {
    justify-content: flex-start;
    column-gap: 0;
    row-gap: 10px;
  }

  .nav-tools > * + * {
    margin-left: 22px;
    padding-left: 0;
  }

  .nav-tools > * + *::before {
    left: -11px;
    height: 14px;
  }

  .hero {
    padding: 36px 6vw 64px;
  }

  main {
    padding: 0 6vw 72px;
  }

  .faq {
    margin-top: 30px;
    padding-top: 4px;
  }

  .schedule-row {
    grid-template-columns: 1fr;
  }

  .achievement-item {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .recent-achievements-list {
    grid-template-columns: 1fr;
  }

  .raid-progress-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .raid-progress-copy {
    text-align: left;
  }

  .raid-progress-shell {
    overflow: visible;
  }

  .raid-progress-board {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .raid-progress-raid {
    flex: 0 0 auto;
    width: auto;
    gap: 8px;
  }

  .raid-progress-raid::before {
    display: none;
  }

  .raid-progress-bosses {
    grid-template-columns: 1fr;
  }

  .raid-progress-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .roster-entry-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .roster-scroll-toggle {
    width: 24px;
    height: 24px;
  }

  .roster-entry-has-ilvl,
  .roster-entry-has-metric,
  .roster-entry-has-movement {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "details"
      "ilvl";
  }

  .roster-entry-has-movement {
    grid-template-areas:
      "head"
      "details"
      "movement";
  }

  .roster-ilvl-display,
  .roster-metric-display {
    justify-self: start;
    text-align: left;
    margin-top: 8px;
    font-size: 0.95rem;
  }

  .roster-movement-display {
    justify-self: start;
    justify-items: start;
    text-align: left;
    margin-top: 8px;
  }

  .roster-movement-rank-meta,
  .roster-movement-ilvl-meta {
    white-space: normal;
  }

  .roster-detected {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
