:root {
  color-scheme: dark;
  --site-header-height: 71px;
  --bg: #07090d;
  --bg-2: #0d1117;
  --panel: #121923;
  --panel-2: #18202b;
  --panel-3: #1f2630;
  --parchment: #211b15;
  --parchment-2: #2e2418;
  --text: #f3f0e7;
  --muted: #aeb8c6;
  --soft: #788696;
  --line: #303947;
  --gold: #e2b85f;
  --gold-2: #a97732;
  --frost: #71b7d8;
  --ember: #de6b41;
  --green: #49d28c;
  --red: #f06a75;
  --violet: #b58cff;
  --shadow: rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--site-header-height) + 20px);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  padding-top: var(--site-header-height);
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  caret-color: transparent;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  line-height: 1.5;
}

main,
.site-footer {
  transition: transform 420ms ease;
  will-change: transform;
}

body.account-view-open main,
body.account-view-open .site-footer {
  transform: translateX(-100vw);
}

body.account-view-open {
  overflow: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

.side-page {
  position: fixed;
  top: var(--site-header-height);
  left: 100vw;
  z-index: 5;
  width: 100vw;
  height: calc(100vh - var(--site-header-height));
  overflow: auto;
  overscroll-behavior: contain;
  transition: transform 420ms ease;
  will-change: transform;
}

body.account-view-open .side-page {
  transform: translateX(-100vw);
}

.account-side-page {
  background:
    linear-gradient(135deg, rgba(226, 184, 95, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(13, 17, 23, 0.96), rgba(7, 9, 13, 0.98));
}

.account-side-inner {
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

button,
input,
textarea,
select {
  font: inherit;
}

input,
textarea,
[contenteditable="true"] {
  caret-color: var(--gold);
  user-select: text;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
[role="button"],
.nav-link,
.tab-button,
.ghost-button,
.account-panel-link,
.combat-tabs button,
.armory-slot {
  user-select: none;
}

a {
  color: inherit;
}

#riftCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background:
    radial-gradient(circle at 76% 16%, rgba(113, 183, 216, 0.18), transparent 34%),
    radial-gradient(circle at 15% 72%, rgba(222, 107, 65, 0.13), transparent 30%),
    #07090d;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 78%);
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 80;
  padding: 10px 14px;
  background: var(--gold);
  color: #111;
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  min-height: var(--site-header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(7, 9, 13, 0.82);
  border-bottom: 1px solid rgba(226, 184, 95, 0.22);
  backdrop-filter: blur(16px);
}

.section-shell,
.hero {
  scroll-margin-top: calc(var(--site-header-height) + 20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 800;
  box-shadow: 0 0 22px rgba(226, 184, 95, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.top-nav,
.header-actions,
.hero-actions,
.button-row,
.toolbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.top-nav {
  justify-content: center;
}

.header-login-state {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  min-height: 1em;
  white-space: nowrap;
}

.header-login-state.visible {
  color: var(--gold);
}

.main-nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}

.main-nav .nav-link {
  flex: 0 0 auto;
}

.nav-link,
.tab-button,
.ghost-button {
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible,
.tab-button:hover,
.tab-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible {
  color: var(--text);
  border-color: rgba(226, 184, 95, 0.36);
  outline: none;
}

.nav-link.active,
.tab-button.active {
  color: #16110a;
  background: var(--gold);
  border-color: var(--gold);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.primary-button {
  color: #140e07;
  background: linear-gradient(180deg, #f4cf76, #c48a36);
  box-shadow: 0 10px 28px rgba(226, 184, 95, 0.18);
}

.secondary-button {
  color: var(--text);
  background: rgba(18, 25, 35, 0.72);
  border-color: rgba(226, 184, 95, 0.36);
}

.discord-button {
  color: #eef3ff;
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.94), rgba(60, 73, 190, 0.88));
  border-color: rgba(134, 146, 255, 0.5);
  box-shadow: 0 10px 28px rgba(88, 101, 242, 0.16);
}

.compact {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 14px;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--frost);
  outline-offset: 2px;
}

.hero {
  min-height: 84vh;
  display: grid;
  align-content: end;
  gap: 36px;
  padding: 108px clamp(18px, 6vw, 88px) 38px;
}

.hero-copy {
  max-width: 970px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1000px;
  margin-bottom: 18px;
  font-size: 76px;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-text {
  max-width: 720px;
  color: #dbe4ec;
  font-size: 19px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(226, 184, 95, 0.22);
  background: rgba(226, 184, 95, 0.18);
  border-radius: 8px;
}

.hero-metrics div {
  padding: 16px;
  background: rgba(13, 17, 23, 0.82);
}

.hero-metrics span,
.status-item span:not(.signal),
.feature-card p,
.section-heading p,
.side-rail,
.parse-result,
.timeline p,
.step-card p,
.system-card p,
.shop-card p {
  color: var(--muted);
}

.hero-metrics span,
.hero-metrics strong {
  display: block;
}

.hero-metrics strong {
  margin-top: 4px;
  font-size: 17px;
}

.status-live {
  color: var(--green);
}

.status-testing {
  color: var(--gold);
}

.status-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0 clamp(18px, 6vw, 88px) 34px;
}

.status-item {
  display: flex;
  gap: 14px;
  min-height: 100px;
  padding: 18px;
  background: rgba(18, 25, 35, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.signal {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
}

.signal.live {
  background: var(--green);
}

.signal.testing {
  background: var(--gold);
}

.signal.secure {
  background: var(--frost);
}

.section-shell {
  padding: 74px clamp(18px, 6vw, 88px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.dark-band {
  background: rgba(8, 13, 20, 0.76);
}

.parchment-band {
  background:
    linear-gradient(90deg, rgba(46, 36, 24, 0.88), rgba(19, 24, 28, 0.88)),
    var(--parchment);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.account-heading {
  max-width: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.wide-heading {
  max-width: 940px;
}

.step-grid,
.shop-grid,
.pve-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.feature-card,
.step-card,
.system-card,
.shop-card,
.character-card,
.log-card,
.roadmap-card,
.data-panel,
.side-rail,
.tool-surface,
.feedback-form,
.raf-code-card,
.raf-summary {
  background: rgba(18, 25, 35, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  box-shadow: 0 18px 42px var(--shadow);
}

.step-card,
.system-card,
.shop-card,
.feature-card,
.character-card,
.log-card,
.roadmap-card {
  padding: 18px;
}

.step-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.step-action {
  width: max-content;
  margin-top: 6px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  color: #140e07;
  background: var(--gold);
  border-radius: 50%;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #090c10;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge.live {
  background: var(--green);
}

.badge.testing,
.badge.polishing {
  background: var(--gold);
}

.badge.later {
  background: var(--frost);
}

.badge.disabled {
  color: var(--text);
  background: #4a4f59;
}

.system-card {
  min-height: 190px;
}

.system-card header,
.shop-card header,
.character-card header,
.log-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.system-card h3,
.shop-card h3,
.character-card h3,
.log-card h3 {
  margin-bottom: 6px;
}

.foundry-layout,
.support-layout,
.raf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
  gap: 18px;
}

.foundry-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.foundry-preview-card {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(113, 183, 216, 0.07), transparent 52%),
    rgba(13, 17, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.foundry-preview-card img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.foundry-preview-card > img,
.mplus-step-media img,
.raid-explainer-media img {
  cursor: zoom-in;
}

.foundry-preview-card div {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.foundry-preview-card h3,
.foundry-preview-card p {
  margin: 0;
}

.foundry-preview-card p {
  color: var(--muted);
}

.account-layout {
  display: grid;
  gap: 14px;
}

.account-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.account-content-stack {
  display: grid;
  gap: 16px;
}

.account-subnav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 6px;
  width: max-content;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.account-panel-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 14px;
  background: rgba(10, 14, 20, 0.78);
  border: 1px solid rgba(226, 184, 95, 0.24);
  border-radius: 8px;
  box-shadow: 0 18px 42px var(--shadow);
}

.account-panel-link {
  width: 100%;
  min-height: 42px;
  color: var(--muted);
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 11px;
  cursor: pointer;
}

.account-panel-link:hover,
.account-panel-link:focus-visible {
  color: var(--text);
  border-color: rgba(226, 184, 95, 0.36);
  outline: none;
}

.account-panel-link.active {
  color: #16110a;
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 800;
}

.live-panel-placeholder {
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(113, 183, 216, 0.09), transparent 48%),
    rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.live-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.live-panel-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.idea-box-button {
  border-color: rgba(226, 184, 95, 0.4);
}

.live-panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.account-live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-live-card {
  min-height: 82px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.account-live-card span,
.account-live-card strong {
  display: block;
}

.account-live-card span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-live-card strong {
  margin-top: 6px;
  color: var(--text);
}

.account-live-section {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.account-live-section h4 {
  margin: 0;
  color: var(--gold);
}

.account-live-note {
  padding: 14px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.account-character-grid,
.armory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compact-character-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-character-card,
.armory-item,
.account-list-row {
  padding: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.character-select-card {
  width: 100%;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.character-select-card:hover,
.character-select-card:focus-visible,
.character-select-card.selected {
  border-color: rgba(226, 184, 95, 0.55);
  background: rgba(226, 184, 95, 0.11);
}

.account-character-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.account-character-card h5 {
  margin: 0 0 2px;
  font-size: 18px;
}

.account-character-card header span {
  color: var(--muted);
}

.armory-item span,
.armory-item strong,
.account-list-row span,
.account-list-row strong {
  display: block;
}

.armory-item span,
.account-list-row span {
  color: var(--text);
}

.armory-item strong,
.account-list-row strong {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.armory-profile {
  overflow: visible;
  background: #030405;
  border: 1px solid rgba(226, 184, 95, 0.22);
  border-radius: 8px;
  box-shadow: inset 0 0 42px rgba(0, 0, 0, 0.6), 0 18px 42px var(--shadow);
}

.armory-top-tabs {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 18px;
  overflow-x: auto;
  background:
    linear-gradient(180deg, rgba(10, 26, 44, 0.92), rgba(0, 0, 0, 0.9)),
    rgba(0, 0, 0, 0.82);
  border-bottom: 1px solid rgba(77, 185, 255, 0.45);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.armory-top-tabs span {
  color: #64cfff;
  font-weight: 700;
  white-space: nowrap;
}

.armory-top-tabs span.active {
  color: #d8f5ff;
  text-shadow: 0 0 10px rgba(77, 185, 255, 0.45);
}

.armory-profile-shell {
  padding: 24px;
  background:
    radial-gradient(circle at 42% 46%, rgba(50, 112, 150, 0.26), transparent 24%),
    radial-gradient(circle at 76% 28%, rgba(150, 230, 255, 0.12), transparent 24%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 18%, rgba(65, 145, 190, 0.08)),
    #080909;
}

.armory-profile-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}

.armory-profile-header h4 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 48px;
  line-height: 1.02;
}

.armory-profile-header h4 em {
  color: #ffb100;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
}

.armory-profile-header p {
  margin: 0;
  color: #9fdcff;
  font-size: 13px;
}

.armory-vitals {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
  color: #cfcfcf;
  font-weight: 700;
}

.armory-vitals .health strong {
  color: #ff3300;
}

.armory-vitals .mana strong {
  color: #69d8ff;
}

.armory-vitals strong {
  color: #ffffff;
}

.armory-rating {
  min-width: 118px;
  padding: 10px 12px;
  text-align: right;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.armory-rating span,
.armory-rating strong {
  display: block;
}

.armory-rating span {
  color: #b8b8b8;
  font-size: 11px;
  text-transform: uppercase;
}

.armory-rating strong {
  color: #ffd100;
  font-size: 22px;
}

.armory-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  gap: 28px;
  align-items: start;
}

.armory-paperdoll {
  display: grid;
  grid-template-columns: 56px minmax(220px, 1fr) 56px;
  grid-template-areas:
    "left avatar right"
    "left weapons right";
  gap: 10px 24px;
  align-items: start;
}

.armory-column {
  display: grid;
  gap: 8px;
}

.armory-left {
  grid-area: left;
}

.armory-right {
  grid-area: right;
}

.armory-avatar {
  grid-area: avatar;
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 22px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(86, 190, 255, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(210, 246, 255, 0.07), transparent 42%),
    rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(111, 205, 255, 0.18);
  border-radius: 4px;
}

.armory-avatar span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  color: #130e07;
  background: #ffd100;
  border-radius: 50%;
  font-size: 42px;
  font-weight: 900;
}

.armory-avatar strong,
.armory-avatar small {
  display: block;
}

.armory-avatar small {
  max-width: 260px;
  color: #c9c9c9;
}

.armory-weapons {
  grid-area: weapons;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.armory-slot {
  --quality-color: #ffffff;
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.68);
  border: 2px solid var(--quality-color);
  border-radius: 5px;
  box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.06), 0 0 10px rgba(0, 0, 0, 0.65);
}

.armory-slot > div:not(.armory-tooltip),
.armory-slot-label {
  display: none;
}

.armory-slot-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--quality-color);
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(135deg, rgba(226, 184, 95, 0.14), transparent 48%),
    rgba(0, 0, 0, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.72);
  font-size: 18px;
  font-weight: 900;
  overflow: hidden;
}

.armory-icon-fallback {
  grid-area: 1 / 1;
}

.armory-slot-icon img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.armory-slot-icon.has-icon {
  padding: 0;
  background: rgba(0, 0, 0, 0.84);
}

.armory-slot.empty {
  --quality-color: #3c3c3c;
  opacity: 0.74;
}

.quality-0,
.quality-0 strong {
  --quality-color: #9d9d9d;
  color: #9d9d9d;
}

.quality-1,
.quality-1 strong {
  --quality-color: #ffffff;
  color: #ffffff;
}

.quality-2,
.quality-2 strong {
  --quality-color: #1eff00;
  color: #1eff00;
}

.quality-3,
.quality-3 strong {
  --quality-color: #0070dd;
  color: #0070dd;
}

.quality-4,
.quality-4 strong {
  --quality-color: #a335ee;
  color: #a335ee;
}

.quality-5,
.quality-5 strong {
  --quality-color: #ff8000;
  color: #ff8000;
}

.quality-6,
.quality-6 strong,
.quality-7,
.quality-7 strong {
  --quality-color: #e6cc80;
  color: #e6cc80;
}

.armory-tooltip {
  position: absolute;
  left: calc(100% + 10px);
  top: 0;
  z-index: 90;
  width: min(330px, 76vw);
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  color: #ffffff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  background: rgba(2, 2, 6, 0.98);
  border: 1px solid #8a8a8a;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9), 0 14px 32px rgba(0, 0, 0, 0.68);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.23;
  text-align: left;
  transition: opacity 120ms ease, transform 120ms ease;
}

.armory-right .armory-tooltip {
  left: auto;
  right: calc(100% + 10px);
}

.armory-weapons .armory-tooltip {
  left: 50%;
  top: calc(100% + 10px);
  transform: translate(-50%, 4px);
}

.armory-slot:hover .armory-tooltip,
.armory-slot:focus-within .armory-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.armory-weapons .armory-slot:hover .armory-tooltip,
.armory-weapons .armory-slot:focus-within .armory-tooltip {
  transform: translate(-50%, 0);
}

.wow-tooltip-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.wow-tooltip-line,
.wow-stat-main,
.wow-tooltip-row,
.wow-tooltip-muted,
.wow-tooltip-ilvl,
.wow-equip,
.wow-tooltip-flavor,
.wow-socket {
  display: block;
}

.wow-tooltip-row.two {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.wow-tooltip-line,
.wow-stat-main,
.wow-tooltip-row {
  color: #ffffff;
}

.wow-tooltip-muted {
  color: #c7c7c7;
}

.wow-tooltip-ilvl,
.wow-tooltip-flavor {
  color: #ffd100;
}

.wow-equip {
  color: #1eff00;
}

.wow-tooltip-sockets {
  display: grid;
  gap: 1px;
  margin-top: 2px;
}

.socket-meta {
  color: #cfcfcf;
}

.socket-red {
  color: #ff4040;
}

.socket-yellow {
  color: #ffd100;
}

.socket-blue {
  color: #40a0ff;
}

.socket-prismatic {
  color: #ffffff;
}

.wow-money {
  display: inline-flex;
  gap: 5px;
  margin-left: 4px;
  vertical-align: baseline;
}

.wow-money span {
  color: #ffffff;
}

.wow-money b {
  margin-left: 1px;
  font-weight: 800;
}

.coin-g {
  color: #ffd100;
}

.coin-s {
  color: #d7d7d7;
}

.coin-c {
  color: #c87533;
}

.armory-side-panel {
  display: grid;
  gap: 22px;
  padding: 8px 0 0;
}

.armory-side-panel h5 {
  margin: 0;
  padding-bottom: 10px;
  color: #7bdcff;
  border-bottom: 1px solid rgba(77, 185, 255, 0.5);
  text-shadow: 0 0 10px rgba(77, 185, 255, 0.28);
  text-transform: uppercase;
}

.armory-side-section {
  display: grid;
  gap: 10px;
}

.armory-side-section > span {
  color: #7bdcff;
  font-size: 13px;
}

.armory-side-section strong {
  color: #ffffff;
}

.armory-side-section small,
.armory-side-empty {
  color: #bfbfbf;
}

.armory-profession {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.armory-profession-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #7bdcff;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(77, 185, 255, 0.42);
  border-radius: 4px;
  font-weight: 900;
}

.armory-profession span {
  display: block;
  color: #ffffff;
}

.armory-stats-board {
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 22px;
  padding-left: 64px;
}

.armory-stat-block h5 {
  margin: 0 0 8px;
  color: #7bdcff;
  text-shadow: 0 0 10px rgba(77, 185, 255, 0.22);
}

.armory-stat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 2px 0;
  border-bottom: 1px dotted rgba(77, 185, 255, 0.3);
}

.armory-stat-row span {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.armory-stat-row strong {
  color: #d8f5ff;
}

.armory-tab-panel {
  display: grid;
  gap: 18px;
}

.armory-panel-heading {
  display: grid;
  gap: 6px;
  max-width: 720px;
}

.armory-panel-heading span {
  color: #e7bf58;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.armory-panel-heading h5 {
  margin: 0;
  color: #f2f7ff;
  font-size: 22px;
}

.armory-panel-heading p {
  margin: 0;
  color: #b9c6cf;
}

.armory-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.armory-preview-card,
.armory-reputation-row,
.armory-recent-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 13px;
  background: rgba(1, 6, 11, 0.74);
  border: 1px solid rgba(123, 220, 255, 0.18);
  border-radius: 6px;
}

.armory-preview-card.featured {
  border-color: rgba(231, 191, 88, 0.58);
  box-shadow: inset 0 0 18px rgba(231, 191, 88, 0.08);
}

.armory-preview-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #7bdcff;
  background: rgba(0, 0, 0, 0.66);
  border: 1px solid rgba(123, 220, 255, 0.45);
  border-radius: 4px;
  font-weight: 900;
}

.armory-preview-card strong,
.armory-reputation-row strong,
.armory-recent-row strong {
  color: #ffffff;
}

.armory-preview-card small,
.armory-reputation-row span,
.armory-reputation-row small,
.armory-recent-row span {
  color: #b9c6cf;
}

.armory-talent-list {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.armory-talent-list span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #d8f5ff;
  border-bottom: 1px dotted rgba(123, 220, 255, 0.18);
}

.armory-talent-list b {
  color: #e7bf58;
}

.armory-reputation-list,
.armory-recent-list {
  display: grid;
  gap: 10px;
}

.armory-reputation-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.armory-search-label {
  max-width: 420px;
}

.report-list-row {
  display: grid;
  gap: 4px;
}

.report-list-row small {
  color: var(--muted);
}

.compact-note {
  padding: 10px 12px;
  font-size: 13px;
}

.fight-detail {
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
}

.fight-detail summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.fight-detail summary::-webkit-details-marker {
  display: none;
}

.fight-detail summary span,
.fight-detail summary strong {
  display: block;
}

.fight-detail summary span {
  color: var(--text);
}

.fight-detail summary strong {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.fight-detail-body {
  display: grid;
  gap: 16px;
  padding: 0 14px 14px;
}

.fight-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fight-metric {
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.fight-metric span,
.fight-metric strong {
  display: block;
}

.fight-metric span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fight-metric strong {
  margin-top: 5px;
  color: var(--text);
}

.fight-grid {
  display: grid;
  gap: 14px;
}

.fight-grid section {
  display: grid;
  gap: 8px;
}

.fight-grid h5 {
  margin: 0;
  color: var(--gold);
  font-size: 14px;
}

.fight-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.fight-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: auto;
}

.fight-table th,
.fight-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}

.fight-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.04);
}

.fight-table td {
  color: var(--text);
  white-space: nowrap;
}

.fight-table td:first-child {
  white-space: normal;
}

.fight-table td span {
  color: var(--muted);
}

.combat-log-hero,
.combat-report {
  background:
    linear-gradient(135deg, rgba(226, 184, 95, 0.08), transparent 38%),
    linear-gradient(120deg, rgba(113, 183, 216, 0.08), transparent 58%),
    rgba(3, 6, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
}

.combat-log-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
}

.combat-log-hero h4,
.combat-report-header h5 {
  margin: 4px 0 6px;
  color: var(--text);
}

.combat-log-hero p,
.combat-report-header p {
  margin: 0;
  color: var(--muted);
}

.combat-log-stats {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 10px;
  align-items: baseline;
  min-width: 150px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.combat-log-stats strong {
  color: var(--gold);
  font-size: 22px;
}

.combat-log-stats span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.combat-detail[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.combat-report {
  display: grid;
  gap: 14px;
  padding: 16px;
  margin: 0 14px 14px;
}

.combat-report-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.7fr);
  gap: 16px;
  align-items: start;
}

.combat-header-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.combat-header-metrics div {
  padding: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.combat-header-metrics span,
.combat-header-metrics strong {
  display: block;
}

.combat-header-metrics span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.combat-header-metrics strong {
  margin-top: 4px;
  color: var(--text);
}

.combat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.combat-tabs button {
  min-height: 28px;
  display: inline-grid;
  align-items: center;
  padding: 5px 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.combat-tabs button:hover,
.combat-tabs button:focus-visible {
  color: var(--text);
  outline: none;
}

.combat-tabs button.active {
  color: #16110a;
  background: var(--gold);
  font-weight: 800;
}

.combat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 14px;
}

.combat-detail[data-active-combat-tab="summary"] .combat-grid,
.combat-detail[data-active-combat-tab="overall"] .combat-grid {
  grid-template-columns: 1fr;
}

.combat-detail[data-active-combat-tab="bosses"] .combat-grid {
  grid-template-columns: 1fr;
}

.combat-detail .combat-panel {
  display: none;
}

.combat-detail[data-active-combat-tab="summary"] .combat-panel[data-combat-section="summary"],
.combat-detail[data-active-combat-tab="overall"] .combat-panel[data-combat-section="overall"],
.combat-detail[data-active-combat-tab="bosses"] .combat-panel[data-combat-section="bosses"],
.combat-detail[data-active-combat-tab="trash"] .combat-panel[data-combat-section="trash"],
.combat-detail[data-active-combat-tab="damage"] .combat-panel[data-combat-section="damage"],
.combat-detail[data-active-combat-tab="healing"] .combat-panel[data-combat-section="healing"],
.combat-detail[data-active-combat-tab="taken"] .combat-panel[data-combat-section="taken"],
.combat-detail[data-active-combat-tab="spells"] .combat-panel[data-combat-section="spells"],
.combat-detail[data-active-combat-tab="loot"] .combat-panel[data-combat-section="loot"],
.combat-detail[data-active-combat-tab="deaths"] .combat-panel[data-combat-section="deaths"],
.combat-detail[data-active-combat-tab="casts"] .combat-panel[data-combat-section="casts"],
.combat-detail[data-active-combat-tab="buffs"] .combat-panel[data-combat-section="buffs"],
.combat-detail[data-active-combat-tab="timeline"] .combat-panel[data-combat-section="timeline"] {
  display: grid;
}

.combat-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.combat-panel h6 {
  margin: 0;
  color: var(--gold);
  font-size: 14px;
}

.combat-bar-list {
  display: grid;
  gap: 9px;
}

.combat-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  align-items: start;
  min-width: 0;
}

.combat-bar-label {
  min-width: 0;
}

.combat-bar-label strong,
.combat-bar-label span {
  display: block;
  overflow-wrap: anywhere;
}

.combat-bar-label strong {
  color: var(--text);
}

.combat-bar-label span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.combat-bar-track {
  grid-column: 1 / -1;
  height: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.combat-bar-track span {
  display: block;
  width: var(--bar-width);
  height: 100%;
  background: linear-gradient(90deg, #e2b85f, #71b7d8);
  border-radius: inherit;
}

.combat-bar-row b {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.account-tabs {
  margin-bottom: 0;
}

.account-panel {
  display: grid;
  gap: 18px;
}

.account-panel-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.account-download-button {
  margin-top: 2px;
}

.account-panel-copy p,
.account-note {
  color: var(--muted);
}

.account-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

input {
  width: 100%;
  min-height: 42px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 10px;
}

input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--gold);
}

.check-field {
  align-content: start;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: var(--text);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.account-note {
  margin: 0;
  font-size: 13px;
}

.data-panel,
.side-rail,
.tool-surface,
.feedback-form,
.raf-code-card,
.raf-summary {
  padding: 20px;
}

.toolbar-row {
  margin-bottom: 14px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.foundry-card-grid,
.module-grid,
.mini-metric-grid,
.pipeline-grid,
.review-columns {
  display: grid;
  gap: 12px;
}

.foundry-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

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

.mini-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 0 18px;
}

.pipeline-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.review-columns {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.analysis-block {
  margin-top: 18px;
}

.analysis-block h4,
.review-columns h5 {
  margin: 0 0 10px;
  color: var(--gold);
}

.analysis-card,
.module-card,
.pipeline-step {
  min-height: 116px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.analysis-card h4,
.module-card h5 {
  margin: 0 0 8px;
}

.analysis-card p,
.module-card p,
.pipeline-step span {
  margin: 0;
  color: var(--muted);
}

.module-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pipeline-step strong,
.pipeline-step span,
.analysis-value {
  display: block;
}

.pipeline-step strong {
  margin-bottom: 8px;
  color: var(--text);
}

.analysis-value {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 30px;
  line-height: 1;
}

.character-card {
  min-height: 160px;
}

.meta-row,
.stat-line,
.affix-row,
.timeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.meta-row:first-child,
.stat-line:first-child,
.affix-row:first-child {
  border-top: 0;
}

.meta-row span,
.stat-line span,
.affix-row span,
.timeline-row span {
  color: var(--muted);
}

.side-rail h3,
.tool-surface h3,
.feedback-form h3 {
  color: var(--gold);
}

.encounter {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.encounter:first-of-type {
  border-top: 0;
}

.encounter strong,
.encounter span {
  display: block;
}

.raf-code-card {
  display: grid;
  align-content: start;
  gap: 10px;
  background:
    linear-gradient(135deg, rgba(226, 184, 95, 0.18), transparent 45%),
    rgba(18, 25, 35, 0.94);
}

.raf-code-card strong {
  color: var(--gold);
  font-size: 36px;
}

.raf-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-stat {
  padding: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.mini-stat strong,
.mini-stat span {
  display: block;
}

.mini-stat strong {
  color: var(--gold);
  font-size: 24px;
}

.shop-block {
  margin-top: 18px;
}

.raf-shop-categories {
  margin-bottom: 12px;
}

.shop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-shop-grid {
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
}

.price {
  color: var(--gold);
  font-weight: 800;
}

textarea,
select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"] {
  width: 100%;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 10px;
  resize: vertical;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.tool-surface p {
  color: var(--muted);
}

.parse-result {
  margin-top: 14px;
  padding: 14px;
  min-height: 92px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
}

.sim-export {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.sim-export h4 {
  margin: 0 0 6px;
  color: var(--gold);
}

.sim-export p {
  margin: 0;
  color: var(--muted);
}

.sim-export pre {
  overflow: auto;
  margin: 0;
  padding: 16px;
  color: #dff7ff;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(113, 183, 216, 0.26);
  border-radius: 8px;
  font-size: 13px;
}

.pve-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.affix-list {
  display: grid;
  gap: 8px;
}

.affix-pill {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.mplus-walkthrough {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.mplus-walkthrough-heading {
  max-width: 780px;
}

.mplus-walkthrough-heading h3,
.mplus-step-copy h3 {
  margin: 0;
}

.mplus-walkthrough-heading p,
.mplus-step-copy p {
  margin: 0;
  color: var(--muted);
}

.mplus-step-list {
  display: grid;
  gap: 16px;
}

.mplus-step {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(113, 183, 216, 0.06), transparent 50%),
    rgba(13, 17, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.mplus-step-media {
  display: grid;
  place-items: center;
  min-height: 270px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.38);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.mplus-step-media img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.mplus-step-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
}

.raid-explainer {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.raid-explainer-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(113, 183, 216, 0.07), transparent 48%),
    rgba(13, 17, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.raid-explainer-card.reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
}

.raid-explainer-card.reverse .raid-explainer-media {
  order: 2;
  border-right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.raid-explainer-card.reverse .raid-explainer-copy {
  order: 1;
}

.raid-explainer-media {
  display: grid;
  place-items: center;
  min-height: 270px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.35);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.raid-explainer-media img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: contain;
}

.raid-explainer-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
}

.raid-explainer-copy h3,
.raid-explainer-copy p {
  margin: 0;
}

.raid-explainer-copy p {
  color: var(--muted);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(6px);
}

.image-lightbox.open {
  display: grid;
}

.image-lightbox-frame {
  display: grid;
  gap: 12px;
  max-width: min(1180px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
}

.image-lightbox-frame img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(226, 184, 95, 0.32);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
}

.image-lightbox-frame p {
  margin: 0;
  color: var(--text);
  text-align: center;
  font-weight: 700;
}

.image-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--gold);
  background: rgba(7, 9, 13, 0.92);
  border: 1px solid rgba(226, 184, 95, 0.38);
  border-radius: 6px;
  cursor: pointer;
}

.support-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.35fr);
}

.timeline {
  display: grid;
  gap: 12px;
}

.roadmap-card {
  min-height: 122px;
}

.feedback-form {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 26px;
  min-height: 100%;
}

.feedback-form p,
.feedback-form small,
.feedback-status {
  margin: 0;
  color: var(--muted);
}

.feedback-form textarea {
  min-height: 220px;
}

.idea-box-form {
  border-color: rgba(226, 184, 95, 0.22);
  background:
    linear-gradient(135deg, rgba(226, 184, 95, 0.1), transparent 42%),
    rgba(18, 25, 35, 0.9);
}

.attachment-list {
  display: grid;
  gap: 8px;
  min-height: 44px;
  padding: 12px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
}

.attachment-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}

.attachment-row span {
  overflow-wrap: anywhere;
}

.attachment-row strong {
  color: var(--gold);
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 6vw, 88px);
  color: var(--muted);
  background: #05070a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  :root {
    --site-header-height: 124px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero-metrics,
  .status-band,
  .step-grid,
  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foundry-layout,
  .support-layout,
  .raf-layout,
  .account-shell {
    grid-template-columns: 1fr;
  }

  .account-panel-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  :root {
    --site-header-height: 176px;
  }

  .site-header {
    position: fixed;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .top-nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-link,
  .tab-button {
    flex: 0 0 auto;
  }

  .header-actions,
  .header-actions .primary-button {
    width: 100%;
  }

  .header-login-state {
    width: 100%;
    text-align: right;
  }

  .side-page {
    top: var(--site-header-height);
    height: calc(100vh - var(--site-header-height));
    padding-top: 0;
  }

  .account-side-inner {
    width: min(100vw - 28px, 1120px);
    padding: 24px 0 56px;
  }

  .account-heading {
    display: grid;
  }

  .combat-log-hero,
  .combat-report-header {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 64px 18px 28px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions a {
    width: 100%;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .hero-metrics,
  .status-band,
  .step-grid,
  .system-grid,
  .pipeline-grid,
  .mini-metric-grid,
  .shop-grid,
  .pve-grid,
  .dashboard-grid,
  .foundry-preview-grid,
  .foundry-card-grid,
  .module-grid,
  .review-columns,
  .raf-summary,
  .account-panel-nav,
  .account-live-grid,
  .account-character-grid,
  .armory-grid,
  .fight-metric-grid,
  .combat-grid,
  .combat-header-metrics,
  .mplus-step,
  .raid-explainer-card,
  .raid-explainer-card.reverse,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .mplus-step-media {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .raid-explainer-card.reverse .raid-explainer-media,
  .raid-explainer-card.reverse .raid-explainer-copy {
    order: initial;
  }

  .raid-explainer-media,
  .raid-explainer-card.reverse .raid-explainer-media {
    min-height: 220px;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .combat-log-hero {
    display: grid;
  }

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

  .combat-bar-row b {
    text-align: left;
  }

  .fight-detail summary {
    grid-template-columns: 1fr;
  }

  .fight-detail summary strong {
    text-align: left;
  }

  .account-panel-copy {
    display: grid;
  }

  .armory-profile-header,
  .armory-content-grid,
  .armory-stats-board {
    grid-template-columns: 1fr;
  }

  .armory-profile-shell {
    padding: 18px;
  }

  .armory-profile-header h4 {
    font-size: 38px;
  }

  .armory-paperdoll {
    grid-template-columns: 56px minmax(160px, 1fr) 56px;
    gap: 8px 12px;
  }

  .armory-avatar {
    min-height: 220px;
  }

  .armory-tooltip,
  .armory-right .armory-tooltip,
  .armory-weapons .armory-tooltip {
    left: 0;
    right: auto;
    top: calc(100% + 8px);
    transform: translateY(4px);
  }

  .armory-weapons .armory-slot:hover .armory-tooltip,
  .armory-weapons .armory-slot:focus-within .armory-tooltip {
    transform: translateY(0);
  }

  .toolbar-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .section-shell {
    padding: 54px 18px;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
