@import url('https://fonts.cdnfonts.com/css/fontin');

:root {
  color-scheme: dark;
  --bg: #08090b;
  --bg-soft: #101318;
  --panel: rgba(19, 22, 27, 0.82);
  --panel-strong: rgba(27, 30, 36, 0.94);
  --line: rgba(204, 184, 132, 0.22);
  --line-strong: rgba(204, 184, 132, 0.44);
  --text: #f1eadb;
  --muted: #a9a091;
  --gold: #d8b35f;
  --copper: #a9673c;
  --blue: #7aa7b7;
  --green: #8fb678;
  --red: #b46a62;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
  font-family: 'Fontin', ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 6%, rgba(216, 179, 95, 0.14), transparent 28rem),
    linear-gradient(135deg, #07080a 0%, #101216 45%, #0d1010 100%);
  color: var(--text);
}

a {
  color: inherit;
}

.shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.topbar h1,
.panel h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: 22px;
  font-weight: 650;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 500;
  font-family: 'Fontin SmallCaps', 'Fontin', sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.nav a {
  min-width: 78px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
  background: rgba(216, 179, 95, 0.1);
}

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 29, 35, 0.92), rgba(12, 14, 17, 0.9));
  box-shadow: var(--shadow);
}

.top-widgets {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 18px;
  align-items: stretch;
  margin: 14px 0 18px;
}

.buff-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) 100px minmax(0, 1.5fr);
  grid-template-rows: 40px 1fr;
  grid-template-areas:
    "title title title"
    "last sigil next";
  gap: 10px 0;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  min-height: 220px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 62%, rgba(216, 179, 95, 0.13), transparent 26rem),
    linear-gradient(90deg, rgba(216, 179, 95, 0.07), transparent 42%, rgba(122, 167, 183, 0.05)),
    linear-gradient(180deg, rgba(25, 28, 33, 0.95), rgba(9, 10, 12, 0.95));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  padding: 10px 14px 12px;
}

.exchange-strip {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  min-height: 148px;
  padding: 10px 14px 12px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 40%, rgba(122, 167, 183, 0.12), transparent 22rem),
    linear-gradient(180deg, rgba(25, 28, 33, 0.95), rgba(9, 10, 12, 0.95));
  box-shadow: var(--shadow);
}

.exchange-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.exchange-strip h2 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.exchange-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

#exchange-updated {
  color: rgba(241, 234, 219, 0.35);
  font-size: 10px;
}

.exchange-orb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.orb-rate-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(204, 184, 132, 0.14);
  background: rgba(255, 255, 255, 0.025);
}

.orb-art {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(216, 179, 95, 0.34), transparent 58%),
    rgba(255, 255, 255, 0.035);
  color: rgba(241, 234, 219, 0.72);
  font-size: 9px;
  font-weight: 800;
  overflow: hidden;
}

.orb-art.has-icon {
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: none;
  overflow: visible;
}

.orb-art img,
.mini-exalt img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.orb-card-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.orb-card-name {
  color: rgba(241, 234, 219, 0.7);
  font-size: 8.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orb-price {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  font-size: 17px;
  font-weight: 750;
}

.mini-exalt {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(216, 179, 95, 0.22);
  color: rgba(241, 234, 219, 0.7);
  font-size: 7px;
  overflow: hidden;
}

.mini-exalt.has-icon {
  border-radius: 0;
  background: none;
  overflow: visible;
  width: 15px;
  height: 15px;
}


.buff-flow::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 67%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 179, 95, 0.18), transparent);
  pointer-events: none;
}

.flow-title {
  grid-area: title;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  position: relative;
  z-index: 1;
  align-self: start;
}

.flow-title h2 {
  margin: 0;
  flex: 1;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.see-all-button {
  border: 1px solid rgba(204, 184, 132, 0.22);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
}

.see-all-button:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(216, 179, 95, 0.1);
}

.flow-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 6px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

/* Sabit yükseklikli satır kutuları — içerik ne olursa olsun pozisyon değişmez */
.flow-kicker                { height: 14px; display: flex; align-items: center; overflow: hidden; }
.flow-item > strong         { height: 18px; display: flex; align-items: center; overflow: hidden; }
.flow-last > span:not(.flow-kicker) { height: 15px; display: flex; align-items: center; overflow: hidden; }
.flow-next > div            { display: flex; flex-direction: column; gap: 4px; }
.flow-next > div strong     { height: 30px; display: flex; align-items: center; overflow: hidden; }
.flow-next > div span       { height: 15px; display: flex; align-items: center; overflow: hidden; }

.flow-last {
  grid-area: last;
  color: rgba(241, 234, 219, 0.35);
  text-align: left;
  align-items: flex-start;
  font-size: 9px;
  padding-left: 4px;
  overflow: hidden;
}

.flow-last strong {
  font-size: 10px !important;
  line-height: 1.6 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flow-last .flow-kicker {
  font-size: 7px;
}

.flow-next {
  grid-area: next;
  font-size: 15px;
  padding-left: 4px;
  overflow: hidden;
}

.flow-kicker {
  color: var(--gold);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.flow-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.flow-next strong {
  font-size: 22px !important;
  line-height: 1.3 !important;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.flow-item span:last-child,
.flow-next > div span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.flow-next * {
  font-size: inherit !important;
}

.flow-next .flow-kicker {
  font-size: 11px !important;
}

.flow-next .after-inline small {
  font-size: 12px !important;
}

.flow-sigil {
  grid-area: sigil;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.sigil-statue-img {
  height: 140px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(216, 179, 95, 0.25));
  pointer-events: none;
  user-select: none;
}

.buff-icon-frame {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid rgba(216, 179, 95, 0.48);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(216, 179, 95, 0.2), transparent 58%),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 24px rgba(216, 179, 95, 0.12), 0 0 30px rgba(0, 0, 0, 0.28);
  position: relative;
}

.buff-icon-frame::before,
.buff-icon-frame::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(216, 179, 95, 0.28);
  transform: rotate(45deg);
}

.buff-icon-frame::after {
  inset: 18px;
  border-color: rgba(122, 167, 183, 0.42);
  transform: rotate(0deg);
}

.after-inline {
  margin: 16px 0 0;
  color: rgba(169, 160, 145, 0.62);
  font-size: 10px;
  line-height: 14px;
  height: 28px;
  overflow: hidden;
  white-space: nowrap;
}

.missed-rewards-badge {
  position: relative;
  flex-shrink: 0;
}

.missed-rewards-badge.is-hidden {
  display: none;
}

.missed-summary {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(180, 106, 98, 0.12);
  border: 1px solid rgba(180, 106, 98, 0.32);
  border-radius: 6px;
  font-size: 12px;
  color: #c97d75;
  cursor: pointer;
  white-space: nowrap;
}

.missed-summary strong {
  font-size: 12px;
  color: #c97d75;
  font-weight: 600;
}

.missed-caret {
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid #c97d75;
  transition: transform 0.15s;
  flex-shrink: 0;
}

.missed-rewards-badge.is-open .missed-caret {
  transform: rotate(180deg);
}

.missed-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  min-width: 220px;
  background: var(--panel-strong);
  border: 1px solid rgba(180, 106, 98, 0.32);
  border-radius: 8px;
  padding: 8px 12px 10px 24px;
  list-style: disc;
  color: rgba(241, 234, 219, 0.8);
  box-shadow: var(--shadow);
}

.missed-rewards-badge.is-open .missed-list {
  display: block;
}

.missed-list li {
  margin: 4px 0;
  font-size: 11px;
}

.missed-list li small {
  color: var(--muted);
  margin-left: 4px;
}

.missed-list li em {
  font-style: normal;
  color: var(--gold);
  margin-left: 5px;
  font-size: 10px;
}

.after-inline span {
  color: rgba(241, 234, 219, 0.56);
}

.after-inline small {
  display: block;
  color: rgba(169, 160, 145, 0.48);
  font-size: 9px;
  line-height: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

.content-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}

.arbitrage-card {
  min-height: 240px;
}

.league-start-card {
  min-height: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.league-tab-content {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.league-tab-content::-webkit-scrollbar {
  width: 4px;
}

.league-tab-content::-webkit-scrollbar-track {
  background: transparent;
}

.league-tab-content::-webkit-scrollbar-thumb {
  background: rgba(204, 184, 132, 0.22);
  border-radius: 2px;
}

.league-tab-content::-webkit-scrollbar-thumb:hover {
  background: rgba(204, 184, 132, 0.44);
}

.league-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
  margin-left: auto;
}

.league-tab {
  padding: 8px 10px;
  border: 1px solid rgba(204, 184, 132, 0.18);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
}

.league-tab.is-active {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(216, 179, 95, 0.08);
}

.league-tab-content ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1;
}

.league-tab-content li {
  padding: 7px 0;
  font-size: 13px;
  line-height: 1.5;
  border-bottom: 1px solid rgba(204, 184, 132, 0.07);
}

.league-tab-content li:last-child {
  border-bottom: none;
}

.arb-calculator {
  display: grid;
  gap: 12px;
}

.arb-calculator label {
  display: grid;
  gap: 6px;
}

.arb-calculator label span,
.arb-results span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.arb-calculator input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(204, 184, 132, 0.2);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 8px 10px;
}

.arb-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.arb-results div {
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(204, 184, 132, 0.14);
  background: rgba(255, 255, 255, 0.025);
}

.arb-results strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 18px;
}

.panel {
  min-height: 280px;
  padding: 22px;
}

.campaign-card {
  height: 345px;
  overflow: hidden;
}

.campaign-card .panel-heading {
  border-bottom: none;
  padding-bottom: 0;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.panel h2 {
  font-size: 22px;
  font-weight: 650;
}

.panel h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

.link-list a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(204, 184, 132, 0.14);
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
}

.link-list a span {
  color: var(--muted);
  font-size: 12px;
}

.link-list a:hover {
  border-color: var(--line-strong);
  background: rgba(216, 179, 95, 0.08);
}

.act-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}

.campaign-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.act-tab {
  min-width: 62px;
  padding: 7px 10px;
  border: 1px solid rgba(204, 184, 132, 0.22);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.act-tab.is-active {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(216, 179, 95, 0.1);
}

.interlude-wrapper {
  position: relative;
  display: inline-block;
}

.interlude-toggle::after {
  content: ' ▾';
  font-size: 9px;
  opacity: 0.7;
}

.interlude-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 100;
  flex-direction: column;
  gap: 2px;
  background: #1a1710;
  border: 1px solid rgba(204, 184, 132, 0.3);
  padding: 4px;
  min-width: 130px;
}

.interlude-dropdown.is-open {
  display: flex;
}

.interlude-option {
  padding: 7px 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.interlude-option:hover {
  border-color: rgba(204, 184, 132, 0.22);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.interlude-option.is-selected {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(216, 179, 95, 0.1);
}

.quest-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 265px;
  padding: 14px 28px;
  overflow: hidden;
}

.icon-button {
  border: 1px solid rgba(204, 184, 132, 0.2);
  background: rgba(255, 255, 255, 0.025);
  color: var(--gold);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: rgba(216, 179, 95, 0.08);
}


.reset-button {
  border: 1px solid rgba(204, 184, 132, 0.26);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  padding: 5px 9px;
  min-width: 34px;
}

.reset-button:hover {
  border-color: rgba(180, 106, 98, 0.4);
  color: var(--red);
  background: rgba(255, 255, 255, 0.025);
}


.adjacent-step {
  display: flex;
  align-items: baseline;
  gap: 8px;
  overflow: hidden;
  min-width: 0;
  color: rgba(169, 160, 145, 0.48);
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}

.adjacent-step:hover {
  color: rgba(169, 160, 145, 0.8);
}

.adjacent-step:hover strong {
  color: var(--text);
}

.quest-nav-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: baseline;
  margin-top: auto;
  padding-top: 10px;
}

.next-step-preview {
  justify-self: start;
  padding-left: 10px;
}

.adjacent-step span {
  display: block;
  color: rgba(216, 179, 95, 0.48);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.adjacent-step strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-step {
  flex: 1;
  margin: 0 0 10px;
  overflow: hidden;
}

.step-count {
  margin: 0;
  color: var(--gold);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.step-act {
  color: rgba(169, 160, 145, 0.55);
}

.step-num {
  color: rgba(216, 179, 95, 0.7);
  letter-spacing: 0.08em;
}

.step-total {
  color: rgba(216, 179, 95, 0.38);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.step-title-line {
  display: grid;
  grid-template-columns: auto 130px 1fr 120px;
  grid-template-rows: auto;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.step-title-line .complete-check {
  grid-row: 1;
  grid-column: 1;
  align-self: center;
}

.step-title-line .step-count {
  grid-row: 1;
  grid-column: 2;
  align-self: center;
  overflow: hidden;
  white-space: nowrap;
}

.step-title-line h3 {
  grid-row: 1;
  grid-column: 3;
}

.step-title-line .step-reward-inline {
  grid-row: 1;
  grid-column: 4;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(216, 179, 95, 0.7);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}


.quest-nav h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 760;
  text-transform: none;
  text-shadow: 0 0 18px rgba(216, 179, 95, 0.16);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-bottom: 4px;
}

.quest-nav p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reward-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-left: 0;
  justify-self: end;
  min-width: 0;
}

.complete-check {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
}

.complete-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.complete-check span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  flex: 0 0 22px;
  aspect-ratio: 1;
  border: 1px solid rgba(216, 179, 95, 0.52);
  background: rgba(255, 255, 255, 0.03);
}

.complete-check span::after {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(-45deg);
}

.complete-check input:checked + span {
  background: rgba(216, 179, 95, 0.18);
  box-shadow: inset 0 0 18px rgba(216, 179, 95, 0.12);
}

.complete-check input:checked + span::after {
  border-color: var(--gold);
}

.reward-line strong {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid rgba(216, 179, 95, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(216, 179, 95, 0.34), transparent 54%),
    rgba(255, 255, 255, 0.035);
  font-size: 13px;
}

.step-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  margin: 10px 0 8px;
  background: rgba(204, 184, 132, 0.18);
  border-radius: 0;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
}

.step-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(216, 179, 95, 0.4);
}

.step-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: start center;
  padding: 11vh 24px 24px;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
  display: none;
}

.buff-modal {
  width: min(920px, 100%);
  max-height: 76vh;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 179, 95, 0.12), transparent 24rem),
    linear-gradient(180deg, rgba(25, 28, 33, 0.98), rgba(8, 9, 11, 0.98));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.62);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(204, 184, 132, 0.26);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.buff-modal-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(76vh - 82px);
  overflow: auto;
  padding: 18px 20px 20px;
}

.act-buff-group {
  border: 1px solid rgba(204, 184, 132, 0.16);
  background: rgba(255, 255, 255, 0.025);
}

.act-buff-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.act-buff-group h3 {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.act-buff-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(204, 184, 132, 0.14);
}

.act-buff-head span {
  color: var(--muted);
  font-size: 12px;
}

.buff-status-section {
  padding: 10px 0 12px;
}

.act-buff-body .buff-status-section + .buff-status-section {
  border-top: none;
  border-left: 1px solid rgba(204, 184, 132, 0.1);
}

.buff-status-section h4 {
  margin: 0;
  padding: 0 14px 8px;
  color: rgba(241, 234, 219, 0.72);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.empty-state {
  margin: 0;
  padding: 0 14px;
  color: rgba(169, 160, 145, 0.58);
  font-size: 12px;
}

.modal-buff-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(204, 184, 132, 0.08);
}

.modal-buff-row:last-child {
  border-bottom: 0;
}

.modal-buff-row.is-done {
  opacity: 0.62;
}

.buff-state {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(204, 184, 132, 0.28);
  color: var(--gold);
  font-size: 12px;
}

.modal-buff-row strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.modal-buff-row span:last-child {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

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

.horizontal-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  aspect-ratio: 2508 / 627;
  padding: 8px 20px;
  border: none;
  background: #131210 url('./images/link-frame.png') center / 100% 100% no-repeat;
  text-align: center;
  text-decoration: none;
}

.horizontal-links a strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(216, 179, 95, 0.18);
}

.horizontal-links a:hover {
  border: none;
  background: #1a1812 url('./images/link-frame.png') center / 100% 100% no-repeat;
  filter: brightness(1.1) drop-shadow(0 0 6px rgba(216, 179, 95, 0.18));
}

.horizontal-links a span {
  display: none;
}

/* ── Campaign page layout ────────────────────────────── */
.campaign-page-layout {
  display: grid;
  grid-template-columns: minmax(400px, 1fr) minmax(320px, 0.6fr);
  gap: 18px;
  margin-top: 14px;
  align-items: start;
}

.campaign-left,
.campaign-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Active nav link */
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(216, 179, 95, 0.1);
  border-color: var(--line-strong);
}

/* ── Character lookup ────────────────────────────────── */
.character-panel { min-height: 0; }

.search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.search-row input {
  flex: 1;
  min-height: 36px;
  border: 1px solid rgba(204, 184, 132, 0.2);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  padding: 6px 10px;
  outline: none;
}

.search-row input:focus {
  border-color: var(--line-strong);
}

.char-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(204, 184, 132, 0.14);
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 6px;
  position: relative;
}

.char-rank {
  color: var(--gold);
  font-size: 15px;
  font-weight: 750;
  text-align: center;
}

.char-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.char-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.char-class {
  font-size: 11px;
  color: var(--muted);
}

.char-stats {
  display: flex;
  gap: 16px;
}

.char-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-label {
  font-size: 9px;
  color: var(--gold);
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-value {
  font-size: 18px;
  font-weight: 750;
  color: var(--text);
  line-height: 1;
}

.char-online-dot {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 9px;
  color: var(--green);
  font-weight: 600;
}

/* ── Ladder ──────────────────────────────────────────── */
.ladder-panel { overflow: hidden; }

.ladder-league-label {
  color: var(--muted);
  font-size: 11px;
}

.ladder-content {
  overflow-y: auto;
  max-height: 420px;
}

.ladder-content::-webkit-scrollbar { width: 4px; }
.ladder-content::-webkit-scrollbar-track { background: transparent; }
.ladder-content::-webkit-scrollbar-thumb {
  background: rgba(204, 184, 132, 0.22);
  border-radius: 2px;
}
.ladder-content::-webkit-scrollbar-thumb:hover {
  background: rgba(204, 184, 132, 0.44);
}

.ladder-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ladder-table thead th {
  padding: 6px 10px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(12, 14, 17, 0.96);
}

.ladder-row td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(204, 184, 132, 0.06);
}

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

.ladder-row.is-online .rank-cell { color: var(--green); }

.rank-cell { color: var(--gold); font-weight: 750; width: 32px; }

.char-cell strong { display: block; color: var(--text); font-size: 12px; }
.char-cell small { color: var(--muted); font-size: 10px; }

.class-cell { color: var(--muted); }
.level-cell { font-weight: 700; color: var(--text); text-align: right; }
.xp-cell { color: var(--muted); text-align: right; }

@media (max-width: 920px) {
  .topbar,
  .two-up,
  .buff-flow {
    grid-template-columns: 1fr;
  }

  .buff-flow {
    grid-template-areas:
      "title"
      "last"
      "sigil"
      "next";
    width: 100%;
    min-width: 0;
  }

  .top-widgets {
    grid-template-columns: 1fr;
  }

  .content-pair {
    grid-template-columns: 1fr;
  }

  .campaign-page-layout {
    grid-template-columns: 1fr;
  }

  .flow-last {
    text-align: left;
  }

  .topbar {
    display: grid;
  }

  .nav {
    overflow-x: auto;
  }

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

@media (max-width: 560px) {
  .shell {
    width: min(100% - 20px, 1440px);
  }

  .panel {
    padding: 18px;
  }

  .horizontal-links {
    grid-template-columns: 1fr;
  }
}
