.adventure-page {
  position: relative;
  min-height: calc(100vh - var(--site-header-h, 64px));
  padding: 18px 10px 42px;
  font-size: var(--text-md);
  background:
    linear-gradient(180deg, rgba(5, 8, 7, 0.7), rgba(7, 10, 11, 0.93)),
    url("/assets/backgrounds/outland-portal.jpg") center/cover fixed;
  overflow-x: hidden;
  overflow-y: auto;
}

.adventure-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(116, 201, 78, 0.08), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(208, 166, 89, 0.08), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.22) 46%, rgba(0, 0, 0, 0.52));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.adventure-page > * {
  position: relative;
  z-index: 1;
}

.adventure-page {
  --adventure-control-card-height: 164px;
  --adventure-companion-card-height: calc(var(--adventure-control-card-height) - 34px);
}

@media (min-width: 761px) {
  html:has(body.page-expedicoes),
  body.page-expedicoes {
    height: 100%;
    overflow: hidden;
  }

  body.page-expedicoes .app-main {
    height: calc(100vh - var(--site-header-h, 64px));
    min-height: 0;
    overflow: hidden;
  }

  body.page-expedicoes #expedicoes.adventure-page {
    height: calc(100vh - var(--site-header-h, 64px));
    min-height: 0;
    overflow: hidden;
  }
}

.adventure-hero,
.adventure-control-panel,
.adventure-layout {
  width: min(1820px, 100%);
  margin-inline: auto;
}

.adventure-control-panel {
  width: min(1820px, 100%);
}

.adventure-hero {
  display: grid;
  justify-items: center;
  gap: 0;
  margin-bottom: 4px;
  text-align: center;
}

.adventure-hero .eyebrow {
  margin-bottom: 0;
  font-size: 0.74rem;
}

.adventure-hero h2 {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 2vw, 1.8rem);
  line-height: 1.02;
}

.adventure-hero .section-copy {
  max-width: 860px;
  margin-top: 0;
  font-size: 0.76rem;
  line-height: 1.18;
  white-space: nowrap;
}

.adventure-control-panel {
  display: grid;
  grid-template-columns: minmax(374px, 460px) minmax(860px, 1fr) 190px;
  align-items: start;
  justify-content: center;
  gap: 11px;
  margin-bottom: 2px;
}

.adventure-log {
  display: none;
}

.adventure-companion-panel {
  grid-area: auto;
  display: block;
  width: 100%;
  min-height: var(--adventure-control-card-height);
  max-height: var(--adventure-control-card-height);
  margin: 0;
  padding: 7px;
  overflow: visible;
  border: 1px solid rgba(245, 177, 61, 0.24);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(7, 13, 9, 0.88), rgba(16, 27, 19, 0.78));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

.adventure-companion-panel .adventure-section-head {
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 4px;
  text-align: center;
}

.adventure-companion-panel .adventure-section-head h3 {
  gap: 4px;
  color: #f0c464;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.adventure-companion-panel .adventure-section-head h3 [data-lucide] {
  width: 15px;
  height: 15px;
  color: #d6a441;
}

.adventure-companion-panel .adventure-section-head h3 span {
  min-height: 18px;
  padding: 2px 6px;
  border-color: rgba(208, 166, 89, 0.18);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(233, 221, 190, 0.84);
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1;
}

.adventure-companion-panel .adventure-section-head small {
  color: rgba(233, 221, 190, 0.72);
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.adventure-companion-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  align-items: stretch;
  min-height: 0;
  overflow: visible;
}

.adventure-companion-list > .adventure-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px;
  font-size: 0.82rem;
  text-align: center;
}

.adventure-companion-empty-note {
  border: 1px dashed rgba(173, 112, 54, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.adventure-companion-recruit-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.adventure-companion-recruit-slot {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 96px;
  padding: 5px 4px;
  border: 1px dashed rgba(173, 112, 54, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 36%, rgba(173, 112, 54, 0.14), transparent 58%),
    rgba(8, 13, 13, 0.66);
  color: #d9b47a;
  font-family: var(--font-display);
  font-size: 0.5rem;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 0 16px rgba(173, 112, 54, 0.06);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.adventure-companion-recruit-slot:hover,
.adventure-companion-recruit-slot:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(173, 112, 54, 0.72);
  outline: none;
  box-shadow: 0 0 18px rgba(173, 112, 54, 0.14), inset 0 0 16px rgba(173, 112, 54, 0.08);
}

.adventure-companion-recruit-slot [data-lucide] {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

.adventure-companion-recruit-slot span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adventure-companion-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-rows: minmax(62px, auto) minmax(28px, auto);
  gap: 5px 10px;
  align-items: center;
  align-content: center;
  justify-items: center;
  height: var(--adventure-companion-card-height);
  min-height: var(--adventure-companion-card-height);
  padding: 9px 9px;
  text-align: center;
  overflow: visible;
  border: 1px solid rgba(245, 177, 61, 0.18);
  border-radius: 8px;
  background: rgba(7, 12, 10, 0.86);
}

.adventure-companion-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  border: 1px solid var(--companion-rarity-line, rgba(245, 177, 61, 0.24));
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 58%);
  opacity: 0.72;
  pointer-events: none;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.4);
}

.adventure-companion-card > * {
  position: relative;
  z-index: 2;
}

.adventure-companion-card.is-recruited {
  border-color: rgba(173, 112, 54, 0.36);
  box-shadow: inset 0 0 18px rgba(150, 92, 44, 0.08);
}

.adventure-companion-card.is-busy {
  height: var(--adventure-companion-card-height);
  min-height: var(--adventure-companion-card-height);
  overflow: hidden;
  border-color: rgba(245, 177, 61, 0.34);
  background:
    linear-gradient(135deg, rgba(208, 126, 48, 0.12), transparent 48%),
    rgba(7, 12, 10, 0.76);
}

.adventure-companion-rarity {
  position: absolute;
  left: 8px;
  top: 8px;
  transform: none;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 2px 7px;
  border: 1px solid var(--companion-rarity-line, rgba(255, 255, 255, 0.16));
  border-radius: 999px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--companion-rarity, #d4d4d4) 20%, rgba(0, 0, 0, 0.72)), rgba(0, 0, 0, 0.66));
  color: var(--companion-rarity, #d4d4d4);
  font-family: var(--font-display);
  font-size: 0.48rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  box-shadow:
    0 0 18px color-mix(in srgb, var(--companion-rarity, #d4d4d4) 26%, transparent),
    inset 0 0 12px color-mix(in srgb, var(--companion-rarity, #d4d4d4) 18%, transparent);
}

.adventure-companion-card.companion-rarity-common {
  --companion-rarity: #d4d4d4;
  --companion-rarity-line: rgba(212, 212, 212, 0.2);
  --companion-rarity-bg: rgba(212, 212, 212, 0.06);
  --companion-rarity-glow: rgba(212, 212, 212, 0.1);
}

.adventure-companion-card.companion-rarity-rare {
  --companion-rarity: #d6a441;
  --companion-rarity-line: rgba(214, 164, 65, 0.52);
  --companion-rarity-bg: rgba(94, 58, 18, 0.2);
  --companion-rarity-glow: rgba(214, 164, 65, 0.24);
  box-shadow:
    inset 0 0 24px rgba(150, 92, 44, 0.16),
    0 0 18px rgba(214, 164, 65, 0.08);
}

.adventure-companion-card.companion-rarity-epic {
  --companion-rarity: #d99aff;
  --companion-rarity-line: rgba(163, 53, 238, 0.56);
  --companion-rarity-bg: rgba(163, 53, 238, 0.2);
  --companion-rarity-glow: rgba(163, 53, 238, 0.28);
  box-shadow:
    inset 0 0 28px rgba(163, 53, 238, 0.19),
    0 0 20px rgba(163, 53, 238, 0.1);
}

.adventure-companion-card.companion-rarity-legendary {
  --companion-rarity: #ffbd42;
  --companion-rarity-line: rgba(255, 182, 49, 0.68);
  --companion-rarity-bg: rgba(255, 160, 30, 0.24);
  --companion-rarity-glow: rgba(255, 182, 49, 0.32);
  box-shadow:
    inset 0 0 32px rgba(255, 182, 49, 0.22),
    0 0 24px rgba(255, 182, 49, 0.14);
}

.adventure-companion-card.is-busy .adventure-companion-portrait,
.adventure-companion-card.is-busy .adventure-companion-class-icon,
.adventure-companion-card.is-busy .adventure-companion-main,
.adventure-companion-card.is-busy .adventure-companion-counters {
  filter: grayscale(1) saturate(0.25) brightness(0.72) blur(1px);
}

.adventure-companion-card.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 46%, rgba(245, 177, 61, 0.16), transparent 42%),
    rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.adventure-companion-card:not(.is-busy)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  width: auto;
  border-radius: inherit;
  background-image: var(--companion-class-bg, var(--companion-class-icon));
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.34;
  filter: saturate(1.08) brightness(1.3);
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
  pointer-events: none;
}

.adventure-companion-portrait {
  grid-row: 1 / 3;
  grid-column: 1;
  position: relative;
  width: 74px;
  height: 74px;
  padding: 3px;
  border: 1px solid var(--companion-rarity-line, rgba(245, 177, 61, 0.42));
  border-radius: 12px;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--companion-rarity, #f5b13d) 22%, transparent), rgba(0, 0, 0, 0.18) 64%),
    rgba(0, 0, 0, 0.35);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--companion-rarity, #f5b13d) 18%, transparent),
    inset 0 0 16px rgba(0, 0, 0, 0.52);
}

.adventure-companion-portrait > img:first-child {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: cover;
  image-rendering: pixelated;
}

.adventure-companion-class-icon {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 24px;
  height: 24px;
  padding: 2px;
  border: 1px solid rgba(255, 224, 138, 0.72);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  image-rendering: pixelated;
}

.adventure-companion-main {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  width: 100%;
  align-self: end;
  padding: 15px 4px 0;
}

.adventure-companion-card strong {
  display: block;
  color: #ffd868;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-size: 1.3rem;
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 0 12px color-mix(in srgb, var(--companion-rarity, #ffd868) 28%, transparent);
}

.adventure-companion-flavor {
  position: relative;
  display: block;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 4px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(246, 223, 171, 0.84);
  font-size: 0.62rem;
  font-style: italic;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  text-transform: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.82);
}

.adventure-companion-card > .adventure-companion-flavor {
  position: absolute;
  right: 11px;
  bottom: 7px;
  left: 11px;
  z-index: 1;
  max-width: none;
  pointer-events: none;
}

.adventure-companion-flavor span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}


.adventure-companion-iconline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: rgba(233, 221, 190, 0.74);
}


.adventure-companion-iconline img {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 224, 138, 0.34);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.48);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.32);
  image-rendering: pixelated;
}

.adventure-companion-counters {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-self: start;
  gap: 4px;
  width: 100%;
  min-width: 0;
  min-height: 28px;
  overflow: visible;
}

.adventure-companion-counters.affix-count-0,
.adventure-companion-counters.affix-count-1 {
  padding-inline: 0;
}

.adventure-companion-counters.affix-count-2 {
  --affix-columns: 2;
}

.adventure-companion-counters.affix-count-3 {
  --affix-columns: 3;
}

.adventure-companion-counters span,
.adventure-affix-strip span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1 1 0;
  min-height: 18px;
  min-width: 0;
  max-width: none;
  padding: 2px 5px;
  border: 1px solid var(--affix-line, rgba(173, 112, 54, 0.22));
  border-radius: 999px;
  background: var(--affix-bg, rgba(23, 48, 17, 0.32));
  color: var(--affix-fg, #d9b47a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.45rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.adventure-companion-counters span::after,
.adventure-affix-strip span::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 2600;
  display: none;
  width: max-content;
  max-width: 270px;
  padding: 8px 10px;
  border: 1px solid rgba(208, 166, 89, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 19, 15, 0.98), rgba(5, 8, 7, 0.98)),
    #050807;
  color: #f5e9c9;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.58);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  text-transform: none;
  white-space: normal;
  pointer-events: none;
}

.adventure-companion-counters span {
  width: 28px;
  flex: 0 0 auto;
  max-width: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 3px;
  border-radius: 7px !important;
  font-size: 0;
}

.adventure-companion-counters img,
.adventure-affix-strip img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px !important;
  object-fit: cover;
  image-rendering: pixelated;
  pointer-events: none;
}

.adventure-companion-counters.affix-count-3 span {
  gap: 3px;
  padding: 3px;
  font-size: 0;
}

.adventure-companion-counters span:hover::after,
.adventure-companion-counters span:focus-visible::after,
.adventure-affix-strip span:hover::after,
.adventure-affix-strip span:focus-visible::after {
  display: none !important;
}

.adventure-companion-counters [data-lucide],
.adventure-affix-strip [data-lucide] {
  width: 11px;
  height: 11px;
  color: currentColor;
  flex: 0 0 auto;
}

.affix-sap_humanoid {
  --affix-line: rgba(255, 213, 105, 0.64);
  --affix-bg: linear-gradient(180deg, rgba(86, 61, 18, 0.58), rgba(27, 19, 7, 0.54));
  --affix-fg: #ffe08a;
}

.affix-polymorph_pack,
.affix-interrupt_caster {
  --affix-line: rgba(91, 174, 255, 0.62);
  --affix-bg: linear-gradient(180deg, rgba(22, 64, 114, 0.58), rgba(7, 22, 45, 0.56));
  --affix-fg: #9fd4ff;
}

.affix-shackle_undead,
.affix-sustain_heal,
.affix-cleanse_route {
  --affix-line: rgba(255, 235, 170, 0.62);
  --affix-bg: linear-gradient(180deg, rgba(91, 76, 34, 0.56), rgba(32, 25, 10, 0.56));
  --affix-fg: #fff0b8;
}

.affix-enslave_demon,
.affix-banish_elemental {
  --affix-line: rgba(183, 113, 255, 0.62);
  --affix-bg: linear-gradient(180deg, rgba(68, 27, 112, 0.6), rgba(24, 8, 39, 0.58));
  --affix-fg: #d9b5ff;
}

.affix-misdirect_pull,
.affix-stealth_scout,
.affix-beast_control {
  --affix-line: rgba(117, 255, 105, 0.5);
  --affix-bg: linear-gradient(180deg, rgba(24, 83, 28, 0.52), rgba(7, 33, 11, 0.58));
  --affix-fg: #d9b47a;
}

.affix-fear_break {
  --affix-line: rgba(255, 128, 87, 0.62);
  --affix-bg: linear-gradient(180deg, rgba(103, 38, 17, 0.58), rgba(39, 12, 6, 0.56));
  --affix-fg: #ffb18a;
}

.affix-fel_fire {
  --affix-line: rgba(255, 103, 45, 0.62);
  --affix-bg: linear-gradient(180deg, rgba(120, 32, 14, 0.58), rgba(45, 12, 7, 0.5));
  --affix-fg: #ffb06e;
}

.affix-shadow_ward {
  --affix-line: rgba(174, 122, 255, 0.56);
  --affix-bg: linear-gradient(180deg, rgba(67, 38, 115, 0.58), rgba(19, 12, 38, 0.52));
  --affix-fg: #d8c2ff;
}

.affix-poisoned_route {
  --affix-line: rgba(112, 255, 88, 0.48);
  --affix-bg: linear-gradient(180deg, rgba(26, 96, 29, 0.5), rgba(9, 40, 14, 0.54));
  --affix-fg: #aaff8c;
}

.affix-arcane_noise {
  --affix-line: rgba(100, 181, 255, 0.54);
  --affix-bg: linear-gradient(180deg, rgba(27, 67, 128, 0.54), rgba(10, 28, 62, 0.54));
  --affix-fg: #9fd4ff;
}

.affix-brutal_pull {
  --affix-line: rgba(255, 213, 92, 0.58);
  --affix-bg: linear-gradient(180deg, rgba(116, 82, 18, 0.55), rgba(48, 29, 7, 0.56));
  --affix-fg: #ffe08a;
}

.affix-ambush {
  --affix-line: rgba(255, 85, 112, 0.56);
  --affix-bg: linear-gradient(180deg, rgba(113, 25, 46, 0.55), rgba(42, 9, 21, 0.56));
  --affix-fg: #ff9db1;
}

.affix-muted {
  --affix-line: rgba(255, 255, 255, 0.12);
  --affix-bg: rgba(255, 255, 255, 0.05);
  --affix-fg: rgba(233, 221, 190, 0.7);
}

.adventure-companion-status {
  grid-column: auto;
  justify-self: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 22px;
  padding: 3px 6px;
  border: 1px solid rgba(245, 177, 61, 0.2);
  border-radius: 7px;
  background: rgba(69, 39, 9, 0.26);
  color: #ffd686;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1.1;
}

.adventure-companion-status.is-locked-status {
  border-color: rgba(173, 112, 54, 0.2);
  background: rgba(18, 39, 18, 0.28);
  color: #d9b47a;
}

.adventure-companion-status.is-busy-status {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: min(82%, 210px);
  min-height: 34px;
  padding: 7px 10px;
  transform: translate(-50%, -50%);
  border-color: rgba(245, 177, 61, 0.46);
  background:
    linear-gradient(180deg, rgba(58, 36, 12, 0.92), rgba(12, 10, 7, 0.92)),
    rgba(0, 0, 0, 0.78);
  color: #ffe08a;
  font-family: var(--font-display);
  font-size: 0.62rem;
  text-align: center;
  text-transform: uppercase;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(245, 177, 61, 0.16);
}

.adventure-companion-status [data-lucide] {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
}

.adventure-companion-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: auto;
  min-width: 56px;
  height: 28px;
  min-height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 0.48rem;
  line-height: 1;
  text-align: center;
}

.adventure-companion-card .btn [data-lucide] {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
  transform: none;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
  line-height: 1;
  overflow: visible;
  stroke-width: 2.4;
}

.adventure-companion-card .btn i[data-lucide] {
  display: inline-block;
}

.adventure-companion-card .btn svg[data-lucide],
.adventure-companion-card .btn .lucide {
  display: block;
  flex: 0 0 auto;
}

.adventure-companion-card .btn span {
  display: block;
  max-width: 44px;
  overflow: hidden;
  color: currentColor;
  font-family: var(--font-display);
  font-size: 0.48rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.adventure-companion-actions {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  display: flex;
  gap: 3px;
}

.btn.btn-danger {
  border-color: rgba(255, 95, 95, 0.34);
  background:
    linear-gradient(180deg, rgba(92, 24, 24, 0.72), rgba(30, 10, 10, 0.82)),
    rgba(0, 0, 0, 0.45);
  color: #ffd1c7;
}

.adventure-character-card,
.adventure-log,
.adventure-mission-card {
  border: 1px solid rgba(208, 166, 89, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 227, 138, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(8, 13, 13, 0.82);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.adventure-character-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  justify-items: center;
  min-height: var(--adventure-control-card-height);
  padding: 5px;
}

.adventure-character-license {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 3px;
  align-items: center;
  justify-items: center;
  min-width: 0;
  min-height: calc(var(--adventure-control-card-height) - 10px);
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(208, 166, 89, 0.2);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(208, 166, 89, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.24);
}

.adventure-character-license.is-horde {
  border-color: rgba(220, 42, 42, 0.36);
  background:
    linear-gradient(135deg, rgba(183, 32, 32, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.24);
}

.adventure-character-license.is-alliance {
  border-color: rgba(42, 118, 220, 0.38);
  background:
    linear-gradient(135deg, rgba(42, 118, 220, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.24);
}

.adventure-character-portrait {
  display: grid;
  place-items: center;
  align-self: center;
  min-height: 48px;
  border: 1px solid rgba(208, 166, 89, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle, rgba(208, 166, 89, 0.16), transparent 62%),
    rgba(0, 0, 0, 0.38);
}

.adventure-character-portrait img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  image-rendering: pixelated;
  box-shadow: 0 0 20px rgba(208, 166, 89, 0.18);
}

.adventure-character-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center;
  justify-items: center;
  gap: 2px 6px;
  min-width: 0;
  text-align: center;
}

.adventure-character-id-head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(170px, 320px) minmax(190px, 1fr);
  gap: 3px;
  align-items: center;
  justify-content: center;
  justify-items: center;
}

.adventure-character-id-head > span {
  grid-column: 1 / -1;
  color: #94a38f;
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.adventure-character-id-head label {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  min-width: 0;
  max-width: 320px;
  grid-column: 1;
}

.adventure-character-id-head label [data-lucide] {
  width: 13px;
  height: 13px;
  color: var(--gold);
}

.adventure-character-id-head select {
  width: 100%;
  min-height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 0.68rem;
  padding: 1px 9px;
}

.adventure-character-id-head .adventure-character-lock {
  grid-column: 2;
  margin-top: 0;
  align-self: stretch;
}

.adventure-character-nameplate strong {
  display: block;
  min-width: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.86rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.adventure-character-nameplate {
  display: none;
}

.adventure-character-badges {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(84px, 1fr);
  justify-content: center;
  justify-items: center;
  align-items: center;
  gap: 7px;
}

.adventure-character-tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.adventure-character-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 19px;
  padding: 2px 5px;
  border: 1px solid rgba(214, 128, 49, 0.24);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: #f2d98d;
  font-size: 0.54rem;
  font-weight: 900;
  text-transform: uppercase;
}

.adventure-character-badges img {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  image-rendering: pixelated;
}

.adventure-character-details {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.adventure-character-details span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  min-height: 19px;
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: #d9ccb0;
  font-size: 0.54rem;
  font-weight: 900;
  text-transform: uppercase;
}

.adventure-character-details [data-lucide] {
  width: 13px;
  height: 13px;
  color: var(--gold);
  flex: 0 0 auto;
}

.adventure-character-details b {
  color: var(--gold);
  font-family: var(--font-display);
}

.adventure-role-selector {
  grid-column: 1 / -1;
  grid-row: auto;
  align-self: center;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: max-content;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.adventure-role-selector button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(208, 166, 89, 0.18);
  border-radius: 999px;
  background: rgba(5, 8, 6, 0.84);
  color: #d7c9a4;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.adventure-role-selector button:hover {
  border-color: rgba(255, 199, 98, 0.48);
  color: #f7e1a3;
  transform: translateY(-1px);
}

.adventure-role-selector [data-lucide] {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  display: block;
  stroke-width: 2.4;
  transform: translate(-50%, -50%);
}

.adventure-role-selector button[data-adventure-role-value="dps"].is-active {
  border-color: rgba(255, 85, 70, 0.65);
  background: rgba(115, 20, 18, 0.8);
  color: #ffd8c8;
}

.adventure-role-selector button[data-adventure-role-value="tank"].is-active {
  border-color: rgba(80, 150, 255, 0.65);
  background: rgba(19, 48, 95, 0.82);
  color: #cfe3ff;
}

.adventure-role-selector button[data-adventure-role-value="heal"].is-active {
  border-color: rgba(120, 255, 120, 0.65);
  background: rgba(21, 80, 34, 0.82);
  color: #d8ffd0;
}

.adventure-role-selector.needs-role {
  box-shadow: 0 0 0 2px rgba(255, 92, 76, 0.12), 0 0 18px rgba(255, 92, 76, 0.22);
}

.adventure-role-alert {
  position: fixed;
  inset: 0;
  z-index: 340;
  background:
    radial-gradient(circle at calc(var(--role-alert-left) + (var(--role-alert-width) / 2)) calc(var(--role-alert-top) + (var(--role-alert-height) / 2)), rgba(157, 255, 108, 0.18), transparent 140px),
    rgba(0, 0, 0, 0.68);
}

.adventure-role-alert-highlight {
  position: fixed;
  top: var(--role-alert-top);
  left: var(--role-alert-left);
  width: var(--role-alert-width);
  height: var(--role-alert-height);
  border: 2px solid rgba(165, 255, 83, 0.95);
  border-radius: 999px;
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.18),
    0 0 26px rgba(142, 255, 58, 0.5),
    inset 0 0 18px rgba(142, 255, 58, 0.16);
  pointer-events: none;
}

.adventure-role-alert-card {
  position: fixed;
  top: var(--role-alert-card-top);
  left: var(--role-alert-card-left);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: center;
  width: var(--role-alert-card-width);
  padding: 12px;
  border: 1px solid rgba(245, 177, 61, 0.5);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(30, 25, 14, 0.98), rgba(8, 12, 10, 0.98)),
    rgba(8, 12, 10, 0.98);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.58), 0 0 24px rgba(245, 177, 61, 0.16);
}

.adventure-role-alert-card > [data-lucide] {
  width: 28px;
  height: 28px;
  color: #ffd868;
}

.adventure-role-alert-card strong,
.adventure-role-alert-card span {
  display: block;
}

.adventure-role-alert-card strong {
  color: #ffe49c;
  font-family: var(--font-display);
  font-size: 0.86rem;
  line-height: 1;
}

.adventure-role-alert-card span {
  margin-top: 2px;
  color: rgba(245, 234, 210, 0.82);
  font-size: 0.72rem;
  line-height: 1.25;
}

.adventure-role-alert-card button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  color: #f0d8aa;
  cursor: pointer;
}

.adventure-character-lock {
  display: grid;
  grid-template-columns: auto auto;
  gap: 7px;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.adventure-character-lock .adventure-role-selector {
  grid-column: auto;
  grid-row: auto;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  transform: none;
}

.adventure-character-lock .btn {
  min-height: 20px;
  min-width: 46px;
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 0.56rem;
}

.adventure-character-lock .btn [data-lucide] {
  width: 12px;
  height: 12px;
}

.adventure-stamina-bar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-top: 2px;
  padding: 0 4px;
}

.adventure-stamina-bar span {
  display: block;
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
}

.adventure-stamina-bar i {
  display: block;
  width: var(--stamina-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #89ff55, #f0c24f);
  box-shadow: 0 0 12px rgba(137, 255, 85, 0.28);
}

.adventure-stamina-bar b {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.62rem;
  line-height: 1;
}

.adventure-character-professions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: #c7c0a8;
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1.2;
}

.adventure-character-professions span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 18px;
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.adventure-character-professions img {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  image-rendering: pixelated;
}

.adventure-character-professions small {
  color: #94a38f;
  font-size: 0.7rem;
}

.adventure-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "missions";
  gap: 0;
  align-items: start;
}

.adventure-section-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  text-align: center;
}

.adventure-log .adventure-section-head {
  justify-content: space-between;
  text-align: left;
}

.adventure-section-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--text-md);
}

.adventure-section-head h3 span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(208, 166, 89, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: #d9ccb0;
  font-family: var(--font-ui);
  font-size: 0.7rem;
}

.adventure-offer-title {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  place-items: center;
  margin-bottom: 0;
}

.adventure-offer-title h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  width: min(420px, 100%);
  margin: 0;
  min-height: 34px;
  padding: 6px 16px;
  border: 1px solid rgba(208, 166, 89, 0.24);
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(245, 177, 61, 0.08), transparent),
    rgba(0, 0, 0, 0.24);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--text-md);
  box-shadow: inset 0 0 16px rgba(245, 177, 61, 0.05);
}

.adventure-mission-area {
  grid-area: missions;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.adventure-mission-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  flex-direction: column;
  gap: 7px;
  align-self: stretch;
  justify-self: stretch;
  padding: 9px 12px;
  border: 1px solid rgba(208, 166, 89, 0.18);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 0%, rgba(232, 120, 36, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(255, 227, 138, 0.045), rgba(255, 255, 255, 0.01)),
    rgba(7, 13, 9, 0.78);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.28);
}

.adventure-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(173, 112, 54, 0.24);
  border-radius: 999px;
  background: rgba(6, 18, 9, 0.62);
  color: #d9ccb0;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: uppercase;
}

.adventure-active-pill [data-lucide] {
  width: 13px;
  height: 13px;
  color: var(--fel);
}

.adventure-active-pill b {
  color: #d9b47a;
}


.adventure-mission-area > .btn,
.adventure-mission-actions .btn {
  width: 100%;
  flex: 0 0 auto;
  justify-self: center;
  min-height: 38px;
  padding: 6px 8px;
  white-space: nowrap;
  border-color: rgba(208, 166, 89, 0.42);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(20, 28, 18, 0.95), rgba(7, 12, 10, 0.94)),
    rgba(26, 20, 12, 0.86);
  color: #f6e7bd;
  box-shadow:
    inset 0 0 0 1px rgba(255, 224, 138, 0.06),
    0 10px 22px rgba(0, 0, 0, 0.22);
  font-size: 0.55rem;
  letter-spacing: 0;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.adventure-mission-actions .btn:hover,
.adventure-mission-actions .btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(245, 177, 61, 0.68);
  box-shadow:
    inset 0 0 0 1px rgba(255, 224, 138, 0.1),
    0 0 20px rgba(232, 120, 36, 0.16),
    0 12px 24px rgba(0, 0, 0, 0.26);
  filter: brightness(1.06);
}

.adventure-mission-actions .btn [data-lucide] {
  width: 15px;
  height: 15px;
}

#adventure-reroll-button {
  border-color: rgba(232, 120, 36, 0.72);
  background:
    linear-gradient(180deg, rgba(238, 133, 42, 0.95), rgba(132, 66, 24, 0.92)),
    rgba(26, 20, 12, 0.9);
  color: #1b1007;
  text-shadow: 0 1px 0 rgba(255, 232, 176, 0.28);
}

.adventure-mission-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
}

.adventure-mission-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.adventure-mission-group > h4 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid rgba(208, 166, 89, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.adventure-mission-group > h4 [data-lucide] {
  width: 14px;
  height: 14px;
}

.adventure-mission-group-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: auto;
  align-items: stretch;
  gap: 8px;
}

.group-profession {
  grid-column: span 2;
}

.group-profession .adventure-mission-group-grid {
  grid-template-columns: repeat(2, minmax(0, 214px));
}

.adventure-mission-empty-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  place-items: center;
  color: rgba(240, 220, 177, 0.66);
  text-align: center;
}

.adventure-mission-empty-card [data-lucide] {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.adventure-mission-empty-card.category-profession {
  border-color: rgba(255, 188, 69, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 188, 69, 0.08), rgba(255, 255, 255, 0.012)),
    rgba(8, 13, 13, 0.82);
}

.adventure-profession-cap-card h4 {
  margin: 0;
  color: #ffd686;
  font-family: var(--font-display);
  font-size: 0.82rem;
}

.adventure-profession-cap-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 188, 69, 0.32);
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(255, 188, 69, 0.14);
  image-rendering: pixelated;
}

.adventure-mission-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 44px 48px 54px 94px minmax(132px, 1fr) minmax(70px, auto) 42px;
  gap: 5px;
  min-width: 0;
  min-height: 620px;
  height: 620px;
  padding: 11px 8px 8px;
  align-content: stretch;
  overflow: visible;
}

.adventure-mission-card.adventure-mission-running {
  grid-template-rows: 44px 34px 138px 42px minmax(104px, 1fr) 40px;
  border-color: rgba(173, 112, 54, 0.35);
  background:
    radial-gradient(circle at 82% 10%, rgba(173, 112, 54, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 227, 138, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(8, 13, 13, 0.88);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.34),
    inset 3px 0 0 rgba(173, 112, 54, 0.42);
  min-height: 590px;
  height: 590px;
}

.adventure-mission-card.adventure-mission-running.is-claimable {
  border-color: rgba(245, 177, 61, 0.5);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.34),
    0 0 22px rgba(245, 177, 61, 0.14),
    inset 3px 0 0 rgba(245, 177, 61, 0.46);
}

.adventure-running-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 4px 8px;
  border: 1px solid rgba(173, 112, 54, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(173, 112, 54, 0.14), rgba(245, 177, 61, 0.05)),
    rgba(0, 0, 0, 0.22);
  color: #d9b47a;
  font-family: var(--font-display);
  font-size: 0.56rem;
  text-transform: uppercase;
}

.adventure-running-banner span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.adventure-running-banner [data-lucide] {
  width: 13px;
  height: 13px;
}

.adventure-running-banner b {
  color: #ffe49c;
}

.adventure-running-showcase {
  display: grid;
  grid-template-rows: 62px minmax(0, 1fr);
  gap: 4px;
  align-items: start;
  justify-items: center;
  min-width: 0;
  min-height: 118px;
  padding: 7px 9px;
  border: 1px solid rgba(173, 112, 54, 0.24);
  border-radius: 9px;
  background:
    radial-gradient(circle at 22% 48%, rgba(173, 112, 54, 0.18), transparent 44%),
    linear-gradient(135deg, rgba(173, 112, 54, 0.11), rgba(245, 177, 61, 0.05)),
    rgba(0, 0, 0, 0.24);
}

.adventure-running-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(245, 177, 61, 0.34);
  border-radius: 12px;
  background:
    radial-gradient(circle, rgba(245, 177, 61, 0.18), rgba(0, 0, 0, 0.22) 64%),
    rgba(0, 0, 0, 0.32);
  box-shadow: 0 0 26px rgba(173, 112, 54, 0.12);
}

.adventure-running-art img {
  width: 50px;
  height: 50px;
  border-radius: 9px;
  image-rendering: pixelated;
}

.adventure-running-art [data-lucide] {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 26px;
  height: 26px;
  padding: 5px;
  border: 1px solid rgba(255, 224, 138, 0.68);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  color: #d9b47a;
}

.adventure-running-status {
  width: 100%;
  min-width: 0;
  text-align: center;
}

.adventure-running-status strong,
.adventure-running-status span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adventure-running-status strong {
  color: #ffe49c;
  font-family: var(--font-display);
  font-size: var(--text-sm);
}

.adventure-running-status span {
  color: rgba(233, 221, 190, 0.78);
  font-size: var(--text-xs);
}

.adventure-mission-progress {
  align-self: center;
  height: 9px;
  margin-top: 5px;
}

.adventure-mission-run-meta {
  align-self: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.adventure-mission-run-companions {
  align-content: center;
  overflow: hidden;
}

.adventure-running-rewards {
  min-height: 0;
  max-height: 82px;
  align-content: center;
  overflow: visible;
}

.adventure-running-bottom {
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.adventure-running-actions {
  display: grid;
  place-items: center;
}

.adventure-mission-running .adventure-run-companions {
  margin-top: 0;
}

.adventure-mission-running .adventure-run-companions span,
.adventure-mission-running .adventure-run-empty-helper {
  min-height: 21px;
  padding: 3px 6px;
  font-size: 0.56rem;
}

.adventure-mission-running .adventure-reward-token {
  width: 34px;
  height: 34px;
}

.adventure-mission-running .adventure-reward-token img {
  width: 34px;
  height: 34px;
}

.adventure-mission-running .adventure-mission-top > div {
  min-width: 0;
}

.adventure-mission-running .adventure-mission-card h4,
.adventure-mission-running h4 {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adventure-mission-running .adventure-mission-card small,
.adventure-mission-running small {
  overflow: hidden;
  font-size: 0.52rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adventure-mission-running .adventure-fixed-reward b {
  max-width: 32px;
  font-size: 0.42rem;
}

.adventure-mission-card.rarity-common {
  border-color: rgba(150, 196, 118, 0.22);
}

.adventure-mission-card.rarity-rare {
  border-color: rgba(0, 112, 221, 0.34);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.34),
    inset 3px 0 0 rgba(0, 112, 221, 0.34);
}

.adventure-mission-card.rarity-epic {
  border-color: rgba(163, 53, 238, 0.4);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.34),
    inset 3px 0 0 rgba(163, 53, 238, 0.4);
}

.adventure-mission-card.category-profession {
  background:
    linear-gradient(180deg, rgba(255, 227, 138, 0.06), rgba(255, 255, 255, 0.012)),
    linear-gradient(135deg, rgba(48, 110, 75, 0.16), transparent 42%),
    rgba(8, 13, 13, 0.82);
}

.adventure-mission-card.category-patrol {
  background:
    linear-gradient(180deg, rgba(255, 227, 138, 0.07), rgba(255, 255, 255, 0.012)),
    linear-gradient(135deg, rgba(214, 128, 49, 0.16), transparent 42%),
    rgba(8, 13, 13, 0.82);
}

.adventure-mission-card.category-raid {
  background:
    linear-gradient(180deg, rgba(255, 227, 138, 0.06), rgba(255, 255, 255, 0.012)),
    linear-gradient(135deg, rgba(112, 54, 150, 0.18), transparent 42%),
    rgba(8, 13, 13, 0.82);
}

.adventure-mission-top {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.adventure-mission-top > div {
  min-width: 0;
}

.adventure-mission-top img,
.adventure-reward-strip img,
.adventure-run-reward img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  image-rendering: pixelated;
}

.adventure-mission-card h4 {
  margin: 0;
  color: #f2d98d;
  font-family: var(--font-display);
  font-size: 0.78rem;
  line-height: 1.12;
}

.adventure-mission-card small {
  display: block;
  margin-top: 2px;
  color: #8f9c91;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.adventure-mission-card p {
  margin: 0;
  color: #c7c0a8;
  font-size: 0.68rem;
  line-height: 1.18;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.adventure-mission-needs {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.adventure-mission-needs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 30px;
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid rgba(245, 177, 61, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(233, 221, 190, 0.82);
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.adventure-mission-needs [data-lucide] {
  width: 12px;
  height: 12px;
  color: #f5b13d;
  flex: 0 0 auto;
}

.adventure-mission-needs img {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 224, 138, 0.28);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.42);
  image-rendering: pixelated;
  flex: 0 0 auto;
}

.adventure-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  align-self: stretch;
  justify-items: stretch;
  overflow: visible;
}

.adventure-affix-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  align-content: start;
  min-height: 30px;
}

.adventure-affix-strip span {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
  width: auto;
  max-width: 100%;
  min-height: 22px;
  padding: 4px 8px;
  border: 1px solid var(--affix-line, rgba(255, 120, 80, 0.22));
  border-radius: 999px;
  background: var(--affix-bg, rgba(45, 12, 10, 0.34));
  color: var(--affix-fg, #ffbc8b);
  font-size: 0.56rem;
  font-weight: 900;
  text-transform: uppercase;
}

.adventure-affix-strip span.is-resolved {
  transform: translateY(-1px);
  border-color: rgba(173, 112, 54, 0.5);
  box-shadow:
    0 0 14px rgba(173, 112, 54, 0.24),
    inset 0 0 14px rgba(173, 112, 54, 0.16);
  filter: saturate(1.18) brightness(1.08);
}

.adventure-affix-strip [data-lucide] {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
}

.adventure-mission-card:has(.adventure-reward-token:hover),
.adventure-mission-card:has(.adventure-reward-token:focus-visible) {
  z-index: 420;
}

.adventure-payout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  align-self: stretch;
}

.adventure-stamina-cost {
  position: absolute;
  top: -20px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 34px;
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid rgba(157, 255, 108, 0.24);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(157, 255, 108, 0.18), rgba(0, 0, 0, 0.28)),
    rgba(6, 14, 9, 0.86);
  color: #cfff93;
  font-family: var(--font-display);
  font-size: 0.64rem;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.adventure-stamina-cost [data-lucide] {
  width: 12px;
  height: 12px;
  color: var(--fel);
}


.adventure-payout span,
.adventure-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px !important;
  background: rgba(0, 0, 0, 0.2);
  color: #d9ccb0;
  font-size: 0.54rem;
  font-weight: 800;
  text-align: center;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.08;
  white-space: normal;
  word-break: keep-all;
}

.adventure-payout span,
.adventure-meta span {
  flex-wrap: wrap;
}

.adventure-payout span small,
.adventure-meta span small {
  color: rgba(233, 221, 190, 0.62);
  font-size: 0.48rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.adventure-payout span b,
.adventure-meta span b {
  color: #ffe08a;
  font-family: var(--font-display);
  font-size: 0.62rem;
  line-height: 1;
}

.adventure-meta span.is-up {
  border-color: rgba(173, 112, 54, 0.34);
  background: rgba(28, 70, 20, 0.28);
  color: #d9b47a;
  box-shadow: inset 0 0 14px rgba(173, 112, 54, 0.08);
}

.adventure-meta span.is-down {
  border-color: rgba(255, 86, 86, 0.34);
  background: rgba(82, 22, 18, 0.3);
  color: #ffb2a5;
  box-shadow: inset 0 0 14px rgba(255, 86, 86, 0.08);
}

.adventure-stat-delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 17px;
  margin-left: 3px;
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 950;
  line-height: 1;
}

.adventure-stat-delta.is-up {
  background: rgba(112, 201, 78, 0.18);
  color: #a8ff72;
  box-shadow: 0 0 12px rgba(112, 201, 78, 0.24);
}

.adventure-stat-delta.is-down {
  background: rgba(255, 86, 86, 0.16);
  color: #ff8c7a;
}

.adventure-payout span {
  min-height: 30px;
  padding: 4px 6px;
  font-size: 0.54rem;
  line-height: 1;
  white-space: nowrap;
}

.adventure-meta [data-lucide],
.adventure-run-meta [data-lucide] {
  width: 11px;
  height: 11px;
  color: var(--gold);
  flex: 0 0 auto;
}

.adventure-payout span {
  color: #f2d98d;
  font-size: 0.54rem;
  line-height: 1;
  white-space: nowrap;
  background:
    linear-gradient(180deg, rgba(208, 166, 89, 0.12), rgba(0, 0, 0, 0.14)),
    rgba(208, 166, 89, 0.06);
}

.adventure-payout [data-lucide] {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.adventure-reward-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  min-height: 0;
  max-height: 70px;
  overflow: visible;
  align-content: start;
}

.adventure-reward-board {
  display: grid;
  grid-template-rows: 74px minmax(66px, auto);
  gap: 10px;
  align-self: stretch;
  min-width: 0;
  padding: 2px 0;
  overflow: visible;
}

.adventure-reward-lane {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.adventure-reward-lane .adventure-reward-strip {
  justify-content: center;
  align-content: center;
  max-height: none;
  min-height: 34px;
  overflow: visible;
}

.adventure-token-lane .adventure-reward-strip {
  gap: 6px;
  min-height: 74px;
}

.adventure-item-lane .adventure-reward-strip {
  min-height: 66px;
  align-content: start;
}

.adventure-running-rewards {
  grid-auto-rows: minmax(30px, auto);
  gap: 3px;
  padding: 0;
}

.adventure-running-rewards .adventure-reward-lane .adventure-reward-strip {
  min-height: 30px;
  max-height: none;
}

.adventure-running-rewards .adventure-reward-token {
  width: 30px;
  height: 30px;
}

.adventure-running-rewards .adventure-fixed-reward {
  grid-template-rows: 28px;
  width: 34px;
  height: 34px;
  padding: 1px;
}

.adventure-running-rewards .adventure-fixed-reward b,
.adventure-running-rewards .adventure-fixed-reward small {
  display: none;
}

.adventure-running-rewards .adventure-reward-token img {
  width: 28px;
  height: 28px;
}

.adventure-companion-slots {
  position: relative;
  z-index: 4;
  display: grid;
  align-content: center;
  min-height: 46px;
  padding: 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.adventure-companion-picks {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 42px;
}

.adventure-companion-slot {
  position: relative;
  z-index: 6;
  display: grid;
  align-items: center;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d9ccb0;
  font-family: var(--font-display);
  text-transform: uppercase;
  pointer-events: auto;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.adventure-companion-slot:hover,
.adventure-companion-slot:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.adventure-companion-slot.is-empty {
  grid-template-rows: 44px 16px;
  justify-items: center;
  align-items: center;
  gap: 4px;
  flex: 0 0 64px;
  width: 64px;
  min-height: 64px;
  padding: 0;
  background: transparent;
}

.adventure-companion-slot.is-active {
  grid-template-rows: 44px 16px;
  justify-items: center;
  gap: 4px;
  flex: 0 0 64px;
  width: 64px;
  min-height: 64px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.adventure-companion-slot.is-locked {
  cursor: not-allowed;
  opacity: 0.72;
}

.adventure-companion-slot.is-locked .adventure-companion-slot-face img {
  filter: grayscale(1) saturate(0.2) brightness(0.82);
}

.adventure-companion-slot.is-locked .adventure-companion-slot-face {
  border-color: rgba(245, 177, 61, 0.55);
  box-shadow: 0 0 14px rgba(245, 177, 61, 0.14);
}

.adventure-companion-slot-face,
.adventure-companion-slot-plus {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 3px;
  overflow: visible;
  border: 1px solid rgba(245, 177, 61, 0.35);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(245, 177, 61, 0.2), rgba(0, 0, 0, 0.25) 64%),
    rgba(0, 0, 0, 0.35);
}

.adventure-companion-slot-face img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  image-rendering: pixelated;
}

.adventure-companion-slot-face > img:first-child {
  position: relative;
  z-index: 1;
}

.adventure-companion-slot-face > [data-lucide] {
  display: none;
}

.adventure-companion-slot-spec {
  position: absolute;
  right: 1px;
  bottom: 1px;
  z-index: 5;
  width: 19px !important;
  height: 19px !important;
  padding: 2px;
  border: 1px solid rgba(255, 224, 138, 0.72);
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.82);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.72);
  image-rendering: pixelated;
}

.adventure-companion-slot-plus {
  width: 38px;
  height: 38px;
  padding: 3px;
  border-radius: 999px;
  border-color: rgba(245, 177, 61, 0.5);
  background:
    radial-gradient(circle at 50% 50%, rgba(173, 112, 54, 0.2), rgba(8, 13, 13, 0.82) 62%),
    rgba(8, 13, 13, 0.82);
  color: #d9b47a;
  box-shadow:
    0 0 0 1px rgba(173, 112, 54, 0.12),
    0 0 12px rgba(173, 112, 54, 0.18),
    inset 0 0 14px rgba(173, 112, 54, 0.1);
}

.adventure-companion-slot-plus [data-lucide] {
  display: block;
  width: 17px;
  height: 17px;
  margin: auto;
  stroke-width: 3;
}

.adventure-companion-slot-copy {
  display: block;
  width: 64px;
  min-width: 0;
  text-align: center;
}

.adventure-companion-slot-copy b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffe08a;
  font-size: 0.54rem;
  line-height: 1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.adventure-companion-slot [data-lucide] {
  width: 15px;
  height: 15px;
  justify-self: center;
  color: currentColor;
}

.adventure-companion-picker {
  position: absolute;
  top: calc(100% - 2px);
  left: 6px;
  right: 6px;
  z-index: 160;
  display: grid;
  gap: 5px;
  max-height: 174px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(173, 112, 54, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(77, 48, 23, 0.24), rgba(0, 0, 0, 0.16)),
    rgba(0, 0, 0, 0.36);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.44);
}

.adventure-companion-picker button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px;
  border: 1px solid rgba(245, 177, 61, 0.16);
  border-radius: 7px;
  background: rgba(8, 13, 13, 0.82);
  color: #e9ddbe;
  text-align: left;
  cursor: pointer;
}

.adventure-companion-picker button.is-active {
  border-color: rgba(173, 112, 54, 0.48);
  background: rgba(77, 48, 23, 0.5);
}

.adventure-companion-picker img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  image-rendering: pixelated;
}

.adventure-companion-picker b,
.adventure-companion-picker small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adventure-companion-picker b {
  color: #ffd868;
  font-size: 0.62rem;
}

.adventure-companion-picker small {
  color: rgba(233, 221, 190, 0.68);
  font-size: 0.55rem;
}

.adventure-companion-picker [data-lucide] {
  width: 14px;
  height: 14px;
  color: #d9b47a;
}

.adventure-meta span.adventure-rank-cap {
  border-color: rgba(255, 188, 69, 0.32);
  background: rgba(77, 48, 5, 0.32);
  color: #ffd686;
}

.adventure-reward-token {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.34);
  cursor: help;
  outline: none;
}

.adventure-reward-token.quality-rare { border-color: rgba(0, 112, 221, 0.52); }
.adventure-reward-token.quality-epic { border-color: rgba(163, 53, 238, 0.56); }
.adventure-reward-token.quality-legendary { border-color: rgba(255, 128, 0, 0.66); }

.adventure-reward-token:hover,
.adventure-reward-token:focus-visible {
  z-index: 8;
  box-shadow: 0 0 18px rgba(208, 166, 89, 0.28);
}

.adventure-reward-token img {
  width: 32px;
  height: 32px;
  border-radius: inherit;
}

.adventure-item-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 1200;
  display: none;
  box-sizing: border-box;
  width: min(380px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  padding: 13px 14px;
  border: 1px solid rgba(163, 53, 238, 0.72);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(36, 28, 52, 0.98), rgba(8, 7, 12, 0.98)),
    #08070c;
  color: #f5e9c9;
  text-align: left;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7);
  transform: translateX(-50%);
  overflow-wrap: anywhere;
  pointer-events: none;
}

.adventure-companion-slot.is-empty .adventure-companion-slot-copy b {
  color: rgba(226, 206, 162, 0.78);
  font-size: 0.46rem;
  letter-spacing: 0.02em;
}

.adventure-companion-slot.is-empty:hover .adventure-companion-slot-plus,
.adventure-companion-slot.is-empty:focus-visible .adventure-companion-slot-plus {
  border-color: rgba(173, 112, 54, 0.72);
  color: #d9b47a;
  box-shadow:
    0 0 0 1px rgba(173, 112, 54, 0.22),
    0 0 18px rgba(173, 112, 54, 0.28),
    inset 0 0 14px rgba(173, 112, 54, 0.14);
}

.adventure-reward-token:hover .adventure-item-tooltip,
.adventure-reward-token:focus-visible .adventure-item-tooltip {
  display: none;
}

.adventure-item-tooltip::after {
  content: "";
  position: absolute;
  left: var(--tooltip-arrow-left, 50%);
  top: 100%;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(80, 160, 255, 0.44);
  border-bottom: 1px solid rgba(163, 53, 238, 0.44);
  background: linear-gradient(135deg, rgba(70, 45, 120, 0.98), rgba(18, 64, 120, 0.98));
  transform: translate(-50%, -7px) rotate(45deg);
}

.adventure-floating-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
  z-index: 9999;
  display: none;
  width: min(380px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  height: auto;
  min-height: 0;
  overflow: visible;
  transform: none;
}

.adventure-floating-tooltip.is-visible {
  display: grid;
  gap: 7px;
}

.adventure-floating-tooltip.is-below::after {
  top: auto;
  bottom: 100%;
  transform: translate(-50%, 7px) rotate(225deg);
}

.adventure-item-tooltip strong {
  min-width: 0;
  color: #a335ee;
  font-family: var(--font-display);
  font-size: 0.94rem;
  line-height: 1.15;
}

.quality-rare .adventure-item-tooltip strong { color: #0070dd; }
.quality-epic .adventure-item-tooltip strong { color: #a335ee; }
.quality-legendary .adventure-item-tooltip strong { color: #ff8000; }

.adventure-item-tooltip em {
  min-width: 0;
  color: #9ba7a0;
  font-style: normal;
  font-size: 0.72rem;
  line-height: 1.25;
}

.adventure-item-tooltip span {
  min-width: 0;
  color: #fff0bc;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.28;
}

.adventure-item-tooltip small {
  min-width: 0;
  color: #b7c2b7;
  font-size: 0.72rem;
  line-height: 1.3;
}

.adventure-tooltip-stats {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin: 3px 0;
  padding: 8px 0 7px;
  border-block: 1px solid rgba(255, 255, 255, 0.09);
  list-style: none;
}

.adventure-tooltip-stats li {
  min-width: 0;
  color: #ddd4ba;
  font-size: 0.72rem;
  line-height: 1.28;
}

.adventure-tooltip-stats li.muted {
  color: #aeb8ad;
}

.adventure-tooltip-chance {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 8px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(208, 166, 89, 0.22);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(208, 166, 89, 0.13), rgba(116, 255, 78, 0.04)),
    rgba(0, 0, 0, 0.2);
}

.adventure-tooltip-chance b {
  grid-row: span 2;
  color: #ffe49c;
  font-family: var(--font-display);
  font-size: 1rem;
}

.adventure-tooltip-chance span {
  color: #f5e9c9;
  font-size: 0.73rem;
  font-weight: 800;
}

.adventure-tooltip-chance small {
  color: #aeb8ad;
  font-size: 0.66rem;
}

.adventure-tooltip-stats li {
  color: #f5e9c9;
  font-size: 0.76rem;
  line-height: 1.22;
}

.adventure-tooltip-stats li.muted {
  color: #9fd58c;
  font-style: italic;
}

.adventure-mission-card .btn {
  justify-self: center;
  align-self: center;
  margin-top: 0;
  justify-content: center;
  width: auto;
  min-width: 116px;
  max-width: 100%;
  min-height: 30px;
  height: 30px;
  padding: 5px 10px;
  border-color: rgba(232, 120, 36, 0.46);
  background:
    linear-gradient(180deg, rgba(232, 120, 36, 0.68), rgba(104, 56, 24, 0.76)),
    rgba(20, 31, 20, 0.78);
  color: #fff0bc;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  font-size: var(--text-xs);
}

.adventure-run .btn,
.adventure-log .adventure-section-head .btn {
  min-height: 26px;
  padding: 5px 9px;
  border-color: rgba(208, 166, 89, 0.28);
  font-size: 0.68rem;
}

.adventure-run .btn {
  justify-self: center;
  width: auto;
  min-width: 94px;
}

.adventure-log {
  align-self: start;
  margin-top: 0;
  padding: 10px;
  min-height: 184px;
  min-width: 0;
}

.adventure-fixed-reward {
  display: grid;
  grid-template-rows: 28px 14px 15px;
  justify-items: center;
  width: 74px;
  height: 68px;
  padding: 4px 5px 7px;
  border-color: rgba(208, 166, 89, 0.34);
  background:
    linear-gradient(180deg, rgba(208, 166, 89, 0.14), rgba(0, 0, 0, 0.28)),
    rgba(0, 0, 0, 0.34);
}

.adventure-fixed-reward img {
  align-self: center;
  width: 26px;
  height: 26px;
}

.adventure-fixed-reward b {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #ffe0a0;
  font-family: var(--font-display);
  font-size: 0.44rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adventure-log > p {
  min-height: 14px;
  margin: -5px 0 7px;
  color: #d9ccb0;
  font-size: 0.72rem;
  line-height: 1.2;
}

#adventure-run-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
  gap: 7px;
  min-height: 130px;
  max-height: none;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.adventure-run {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(32px, 1fr);
  gap: 7px;
  width: 100%;
  padding: 9px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 227, 138, 0.045), rgba(255, 255, 255, 0.01)),
    rgba(0, 0, 0, 0.22);
  min-height: 130px;
  padding-right: 34px;
}

.adventure-run.rarity-rare {
  border-color: rgba(0, 112, 221, 0.28);
}

.adventure-run.rarity-epic {
  border-color: rgba(163, 53, 238, 0.34);
}

.adventure-run-top {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  justify-content: center;
  gap: 8px;
  align-items: center;
}

.adventure-run-top img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  image-rendering: pixelated;
}

.adventure-run-top div {
  min-width: 0;
}

.adventure-run strong {
  display: block;
  color: #f2d98d;
  font-family: var(--font-display);
  font-size: 0.72rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adventure-run span,
.adventure-run small {
  color: #bbc7b9;
  font-size: 0.62rem;
  line-height: 1.25;
}

.adventure-run-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.adventure-run-meta span {
  display: inline-flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
  min-height: 24px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  text-align: center;
  font-weight: 800;
}

.adventure-run-companions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 2px;
}

.adventure-run-companions span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border: 1px solid rgba(245, 177, 61, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(233, 221, 190, 0.84);
  font-size: 0.66rem;
}

.adventure-run-companions [data-lucide] {
  width: 12px;
  height: 12px;
  color: #f5b13d;
}

.adventure-run-cancel {
  position: absolute;
  top: 7px;
  right: 7px;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  color: #f0d8aa;
  cursor: pointer;
}

.adventure-run-cancel:hover,
.adventure-run-cancel:focus-visible {
  border-color: rgba(232, 120, 36, 0.54);
  color: #fff0bc;
}

.adventure-run-cancel [data-lucide] {
  width: 13px;
  height: 13px;
}

.adventure-run-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 8px;
  align-items: end;
  align-self: end;
}

.adventure-run-footer > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.adventure-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.adventure-progress i {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fel), var(--gold));
}

.adventure-run-reward {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.adventure-run-reward img {
  width: 30px;
  height: 30px;
}

.adventure-empty {
  margin: 0;
  color: #aeb9ad;
}

#adventure-run-list .adventure-empty {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
}

.adventure-result-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.adventure-result-modal[hidden] {
  display: none;
}

.adventure-catalog-modal {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(8px);
}

.adventure-catalog-modal[hidden] {
  display: none;
}

.adventure-companion-modal {
  position: fixed;
  inset: 0;
  z-index: 84;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 10%, rgba(173, 112, 54, 0.1), transparent 34%),
    rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(10px);
}

.adventure-companion-modal[hidden] {
  display: none;
}

.adventure-companion-dialog {
  position: relative;
  width: min(1280px, calc(100vw - 28px));
  max-height: min(84vh, 760px);
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(208, 166, 89, 0.42);
  border-radius: 10px;
  background:
    radial-gradient(circle at 14% 10%, rgba(173, 112, 54, 0.12), transparent 32%),
    radial-gradient(circle at 86% 0%, rgba(208, 166, 89, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(13, 18, 15, 0.98), rgba(5, 9, 8, 0.97));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
}

.adventure-companion-modal-heading {
  display: grid;
  gap: 4px;
  justify-items: start;
  margin-bottom: 12px;
  padding: 0 44px 12px 0;
  text-align: left;
  border-bottom: 1px solid rgba(208, 166, 89, 0.2);
}

.adventure-companion-modal-heading h3 {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.34rem;
  line-height: 1.05;
}

.adventure-companion-modal-heading p:not(.eyebrow) {
  margin: 0;
  color: #cfc4a6;
  max-width: 680px;
  font-size: 0.78rem;
  line-height: 1.28;
}

.adventure-companion-modal-body {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  max-height: none;
  padding: 0;
  overflow: visible;
}

.adventure-companion-modal .adventure-companion-choice {
  grid-template-columns: 1fr;
  grid-template-rows: 18px 72px auto auto minmax(24px, 1fr);
  gap: 6px;
  align-content: stretch;
  justify-items: center;
  height: 304px;
  min-height: 304px;
  padding: 10px 10px 11px;
  overflow: hidden;
}

.adventure-companion-modal .adventure-companion-choice.is-recruit-candidate {
  grid-template-rows: 18px 72px auto auto auto minmax(24px, 1fr);
  height: 304px;
  min-height: 304px;
  gap: 6px;
}

.adventure-companion-modal .adventure-companion-choice.is-card-selectable {
  cursor: pointer;
  transition:
    transform 75ms ease,
    border-color 75ms ease,
    box-shadow 75ms ease;
}

.adventure-companion-modal .adventure-companion-choice.is-card-selectable:hover,
.adventure-companion-modal .adventure-companion-choice.is-card-selectable:focus-visible {
  transform: none;
  outline: none;
  border-color: color-mix(in srgb, var(--companion-rarity, #f5b13d) 76%, #fff1b6);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--companion-rarity, #f5b13d) 42%, transparent),
    0 0 18px color-mix(in srgb, var(--companion-rarity, #f5b13d) 16%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--companion-rarity, #f5b13d) 12%, transparent);
}

.adventure-companion-modal .adventure-companion-choice.is-card-selectable:hover .adventure-companion-portrait,
.adventure-companion-modal .adventure-companion-choice.is-card-selectable:focus-visible .adventure-companion-portrait {
  filter: brightness(1.06);
}

.adventure-companion-modal .adventure-companion-choice.is-card-selectable.is-locked {
  cursor: not-allowed;
}

.adventure-companion-modal .adventure-companion-choice.is-card-selectable.is-locked:hover,
.adventure-companion-modal .adventure-companion-choice.is-card-selectable.is-locked:focus-visible {
  transform: none;
}

.adventure-companion-modal .adventure-companion-choice.is-recruit-candidate .adventure-companion-portrait {
  width: 70px;
  height: 70px;
  transition: filter 75ms ease;
}

.adventure-companion-modal .adventure-companion-choice.is-recruit-candidate .adventure-companion-main {
  gap: 5px;
}

.adventure-companion-modal .adventure-companion-choice.is-group-candidate {
  grid-template-rows: 18px 72px auto auto auto minmax(24px, 1fr);
  height: 304px;
  min-height: 304px;
  gap: 6px;
  padding: 10px 10px 11px;
}

.adventure-companion-modal .adventure-companion-choice.is-group-candidate .adventure-companion-portrait {
  width: 70px;
  height: 70px;
}

.adventure-companion-modal .adventure-companion-choice.is-group-candidate .adventure-companion-main {
  gap: 4px;
}

.adventure-companion-modal .adventure-companion-choice.is-group-candidate strong {
  font-size: 1.04rem;
}

.adventure-companion-modal .adventure-companion-choice.is-group-candidate .adventure-companion-modal-info {
  gap: 4px;
  margin-top: 0;
}

.adventure-companion-modal .adventure-companion-choice.is-group-candidate .adventure-companion-modal-info span,
.adventure-companion-modal .adventure-companion-choice.is-group-candidate .adventure-companion-counters span {
  min-height: 22px;
  height: 22px;
  max-height: 22px;
  padding: 0 7px;
  font-size: 0.55rem;
}

.adventure-companion-modal .adventure-companion-choice.is-group-candidate .adventure-companion-counters {
  min-height: 24px;
  gap: 4px;
}

.adventure-companion-modal .adventure-companion-counters span.is-mission-match {
  box-shadow:
    0 0 0 1px rgba(255, 236, 154, 0.24),
    0 0 12px rgba(255, 209, 91, 0.18);
}

.adventure-companion-modal .adventure-companion-choice > .adventure-companion-flavor {
  position: relative;
  inset: auto;
  grid-column: auto;
  grid-row: auto;
  align-self: end;
  max-width: 96%;
  min-height: 22px;
  padding-block: 0;
  font-size: 0.57rem;
  line-height: 1.08;
  pointer-events: auto;
}

.adventure-companion-modal .adventure-companion-choice > .adventure-companion-flavor span {
  -webkit-line-clamp: 1;
}

.adventure-companion-modal .adventure-companion-choice.is-recruit-candidate .adventure-companion-modal-info {
  gap: 4px;
  margin-top: 0;
}

.adventure-companion-modal .adventure-companion-choice.is-recruit-candidate .adventure-companion-modal-info span {
  min-height: 22px;
  padding: 2px 7px;
  font-size: 0.55rem;
}

.adventure-companion-modal .adventure-companion-choice.is-recruit-candidate .adventure-companion-counters {
  min-height: 24px;
  gap: 4px;
}

.adventure-companion-modal .adventure-companion-choice.is-recruit-candidate .adventure-companion-counters span {
  height: 22px;
  min-height: 22px;
  max-height: 22px;
  padding: 0 7px;
  font-size: 0.55rem;
}

.adventure-companion-modal .adventure-companion-choice.is-selected {
  border-color: rgba(173, 112, 54, 0.58);
  box-shadow:
    inset 0 0 24px rgba(173, 112, 54, 0.1),
    0 0 16px rgba(173, 112, 54, 0.1);
}

.adventure-companion-modal .adventure-companion-choice.is-locked {
  opacity: 0.72;
  filter: grayscale(0.28);
}

.adventure-companion-modal .adventure-companion-rarity {
  position: static;
  justify-self: start;
  min-height: 18px;
  padding-inline: 8px;
}

.adventure-companion-modal .adventure-companion-portrait {
  grid-column: auto;
  grid-row: auto;
  width: 88px;
  height: 88px;
  border-radius: 14px;
}

.adventure-companion-modal .adventure-companion-portrait > img:first-child {
  border-radius: 10px;
}

.adventure-companion-modal .adventure-companion-main {
  grid-column: auto;
  grid-row: auto;
  align-self: start;
  justify-items: center;
  gap: 9px;
  width: 100%;
  padding: 0;
  text-align: center;
}

.adventure-companion-modal .adventure-companion-card strong {
  width: 100%;
  color: #ffe18f;
  font-size: 1.26rem;
  letter-spacing: 0;
  text-align: center;
}

.adventure-companion-modal .adventure-companion-iconline img {
  width: 26px;
  height: 26px;
}

.adventure-companion-modal-info {
  grid-column: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  margin-top: 2px;
}

.adventure-companion-modal-info span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(245, 177, 61, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: #f2d98d;
  font-size: 0.55rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.adventure-companion-modal .adventure-companion-counters {
  grid-column: auto;
  grid-row: auto;
  align-self: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 0;
  gap: 6px;
}

.adventure-companion-modal .adventure-companion-counters span {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  height: 22px;
  min-height: 22px;
  max-height: 22px;
  padding: 0 8px;
  box-sizing: border-box;
  font-size: 0.54rem;
  line-height: 1;
  text-overflow: clip;
  white-space: nowrap;
}

.adventure-fixed-reward small {
  align-self: center;
  max-width: 100%;
  color: rgba(255, 232, 174, 0.72);
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 850;
  line-height: 1;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adventure-fixed-reward img[alt="Coins"] {
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 244, 166, 0.9), rgba(226, 151, 37, 0.78) 52%, rgba(77, 42, 8, 0.95));
  box-shadow:
    0 0 0 1px rgba(255, 213, 91, 0.42),
    0 0 14px rgba(245, 177, 61, 0.32);
}

.adventure-fixed-reward:has(img[alt="Coins"]) {
  border-color: rgba(255, 213, 91, 0.45);
  background:
    radial-gradient(circle at 50% 40%, rgba(245, 177, 61, 0.22), transparent 62%),
    rgba(44, 29, 7, 0.5);
}

.adventure-fixed-reward:has(img[alt="Coins"]) b {
  color: #ffd65f;
  background: transparent;
  font-size: var(--ui-micro);
  font-weight: 950;
  box-shadow: none;
}

.adventure-companion-modal .adventure-companion-counters.affix-count-3 span {
  padding-inline: 7px;
  font-size: 0.52rem;
}

.adventure-companion-modal .adventure-companion-counters [data-lucide] {
  width: 12px;
  height: 12px;
}

.adventure-companion-modal-info [data-lucide] {
  width: 12px;
  height: 12px;
}

.adventure-companion-modal .adventure-companion-choice > .btn {
  grid-column: auto;
  align-self: end;
  justify-self: center;
  width: min(156px, 100%);
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.66rem;
}

.adventure-companion-modal .adventure-companion-choice-actions {
  position: relative;
  top: auto;
  right: auto;
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
  align-content: center;
  justify-content: center;
  align-self: end;
  width: 100%;
  margin-top: 3px;
}

.adventure-companion-modal .adventure-companion-choice-actions .btn {
  width: auto;
  min-width: 66px;
  height: 27px;
  min-height: 27px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.48rem;
}

.adventure-companion-modal .adventure-companion-choice-actions .btn [data-lucide] {
  width: 15px;
  height: 15px;
}

@media (max-width: 680px) {
  .adventure-companion-dialog {
    width: calc(100vw - 18px);
    padding: 13px;
  }

  .adventure-companion-modal .adventure-companion-choice {
    height: auto;
    min-height: 300px;
  }

  .adventure-companion-modal .adventure-companion-portrait {
    width: 78px;
    height: 78px;
  }

  .adventure-companion-choice-class {
    width: 22px !important;
    height: 22px !important;
  }

  .adventure-companion-modal .adventure-companion-choice > .btn,
  .adventure-companion-modal .adventure-companion-choice-actions {
    grid-column: auto;
  }

  .adventure-companion-modal .adventure-companion-choice-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1180px) {
  .adventure-companion-modal-body {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: calc(min(84vh, 760px) - 126px);
    padding-right: 6px;
    overflow: auto;
  }
}

@media (max-width: 760px) {
  .adventure-companion-modal-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.adventure-catalog-dialog {
  position: relative;
  width: min(1180px, 100%);
  max-height: min(84vh, 820px);
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(208, 166, 89, 0.42);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(13, 18, 15, 0.98), rgba(5, 9, 8, 0.97)),
    rgba(5, 9, 8, 0.97);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
}

.adventure-catalog-heading {
  display: grid;
  gap: 4px;
  justify-items: center;
  margin-bottom: 14px;
  padding-right: 44px;
  text-align: center;
}

.adventure-catalog-heading h3 {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.adventure-catalog-heading p:not(.eyebrow) {
  margin: 0;
  color: #cfc4a6;
}

.adventure-catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
}

.adventure-catalog-tabs button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(208, 166, 89, 0.24);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #d7ccb1;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.adventure-catalog-tabs button:hover,
.adventure-catalog-tabs button.is-active {
  border-color: rgba(245, 174, 58, 0.72);
  background: linear-gradient(180deg, rgba(245, 143, 38, 0.28), rgba(97, 61, 20, 0.26));
  color: #ffe49c;
}

.adventure-catalog-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  align-items: center;
  justify-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 12px;
  text-align: center;
  border: 1px solid rgba(208, 166, 89, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(208, 166, 89, 0.1), rgba(104, 255, 72, 0.035)),
    rgba(0, 0, 0, 0.22);
}

.adventure-catalog-brief strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.adventure-catalog-brief strong [data-lucide] {
  width: 15px;
  height: 15px;
}

.adventure-catalog-brief p {
  margin: 3px 0 0;
  color: #c7c0a8;
  font-size: 0.72rem;
  line-height: 1.25;
}

.adventure-catalog-brief > span {
  min-width: 82px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: #f2d98d;
  font-family: var(--font-display);
  font-size: 0.62rem;
  text-align: center;
  text-transform: uppercase;
}

.adventure-catalog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  gap: 10px;
  max-height: calc(min(84vh, 820px) - 232px);
  padding-right: 4px;
  overflow: auto;
}

.adventure-catalog-card {
  display: grid;
  grid-template-rows: auto 38px auto auto minmax(42px, auto);
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 12px;
  text-align: center;
  border: 1px solid rgba(208, 166, 89, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(208, 166, 89, 0.08), transparent 42%),
    rgba(8, 13, 13, 0.86);
}

.adventure-catalog-card.rarity-rare { border-color: rgba(0, 112, 221, 0.38); }
.adventure-catalog-card.rarity-epic { border-color: rgba(163, 53, 238, 0.46); }

.adventure-catalog-top {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.adventure-catalog-top img {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  image-rendering: pixelated;
}

.adventure-catalog-top h4 {
  margin: 0;
  color: #f2d98d;
  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1.12;
}

.adventure-catalog-top small {
  display: block;
  margin-top: 3px;
  color: #8f9c91;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.adventure-catalog-card p {
  margin: 0;
  color: #c7c0a8;
  font-size: 0.72rem;
  line-height: 1.25;
  overflow: hidden;
}

.adventure-catalog-requirements,
.adventure-catalog-payout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.adventure-catalog-requirements span,
.adventure-catalog-payout span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 25px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
  color: #d9ccb0;
  font-size: 0.63rem;
  font-weight: 800;
  text-align: center;
}

.adventure-catalog-requirements [data-lucide],
.adventure-catalog-payout [data-lucide] {
  width: 12px;
  height: 12px;
  color: var(--gold);
  flex: 0 0 auto;
}

.adventure-catalog-rewards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  align-content: start;
}

.adventure-catalog-reward {
  display: inline-grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 32px;
  padding: 3px 7px 3px 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.28);
}

.adventure-catalog-reward.quality-rare { border-color: rgba(0, 112, 221, 0.5); }
.adventure-catalog-reward.quality-epic { border-color: rgba(163, 53, 238, 0.56); }
.adventure-catalog-reward.quality-legendary { border-color: rgba(255, 128, 0, 0.66); }

.adventure-catalog-fixed-reward {
  border-color: rgba(208, 166, 89, 0.36);
  background:
    linear-gradient(180deg, rgba(208, 166, 89, 0.12), rgba(0, 0, 0, 0.22)),
    rgba(0, 0, 0, 0.28);
}

.adventure-catalog-reward img {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  image-rendering: pixelated;
}

.adventure-catalog-reward b {
  min-width: 0;
  color: #f5e9c9;
  font-size: 0.68rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adventure-catalog-reward small {
  color: #f2d98d;
  font-size: 0.66rem;
  font-weight: 900;
}

.adventure-result-card {
  position: relative;
  width: min(480px, 100%);
  padding: 22px;
  text-align: center;
  border: 1px solid rgba(208, 166, 89, 0.32);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 227, 138, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 13, 13, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
}

.adventure-result-card h3 {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--text-xl);
}

.adventure-result-status {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  justify-content: center;
  justify-items: center;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.22);
}

.adventure-result-status > [data-lucide] {
  width: 36px;
  height: 36px;
}

.adventure-result-status.success > [data-lucide] {
  color: #d9b47a;
}

.adventure-result-status.failed > [data-lucide] {
  color: #f0a33a;
}

.adventure-result-status strong,
.adventure-result-item strong {
  display: block;
  color: #f2d98d;
  font-family: var(--font-display);
}

.adventure-result-status span,
.adventure-result-item small {
  color: #c7c0a8;
  font-size: var(--text-sm);
  line-height: 1.35;
}

.adventure-result-rewards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.adventure-result-rewards div {
  display: grid;
  justify-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.adventure-result-rewards dt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
  color: #94a38f;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.adventure-result-rewards dd {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--text-md);
}

.adventure-result-rewards .is-empty dd {
  color: #9ba7a0;
}

.adventure-rank-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 188, 69, 0.24);
  border-radius: 8px;
  background: rgba(77, 48, 5, 0.24);
  color: #ffe0a1;
  font-size: 0.86rem;
  line-height: 1.3;
}

.adventure-rank-warning [data-lucide] {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex: 0 0 auto;
}

.adventure-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(163, 53, 238, 0.38);
  border-radius: 8px;
  background: rgba(80, 42, 112, 0.2);
}

.adventure-result-item img {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  image-rendering: pixelated;
}

/* Typography pass: keep expedition UI on the same scale as the rest of the portal. */
.adventure-page .eyebrow,
.adventure-page small,
.adventure-character-id-head > span,
.adventure-character-badges span,
.adventure-character-details span,
.adventure-character-professions,
.adventure-mission-group > h4,
.adventure-meta span,
.adventure-run-meta span,
.adventure-companion-status,
.adventure-active-pill,
.adventure-mission-actions .btn,
.adventure-mission-card .btn {
  font-size: var(--ui-label);
}

.adventure-companion-recruit-slot,
.adventure-companion-slot-copy b,
.adventure-fixed-reward b,
.adventure-tour-visual b {
  font-size: var(--ui-micro);
}

.adventure-mission-card p,
.adventure-catalog-card p,
.adventure-companion-choice-main small,
.adventure-catalog-top small,
.adventure-result-status span,
.adventure-result-item small {
  font-size: var(--ui-body);
}

.adventure-section-head h3,
.adventure-offer-title h3,
.adventure-character-nameplate strong,
.adventure-catalog-top h4,
.adventure-result-status strong,
.adventure-result-item strong {
  font-size: var(--ui-heading);
}

.adventure-mission-card h4,
.adventure-catalog-top small {
  font-size: var(--text-sm);
}

/* Expedition screen polish: unify card rhythm, pills and action alignment. */
.adventure-control-panel {
  align-items: stretch;
  grid-template-columns: minmax(374px, 460px) minmax(860px, 1fr) 190px;
  justify-content: center;
  gap: 8px;
}

.adventure-character-card,
.adventure-companion-panel {
  min-height: 164px;
  max-height: 164px;
  border-radius: 10px;
}

.adventure-companion-panel {
  min-width: 0;
  padding: 7px;
  overflow: hidden;
  border-color: rgba(208, 166, 89, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 227, 138, 0.045), rgba(255, 255, 255, 0.01)),
    rgba(7, 13, 9, 0.82);
}

.adventure-companion-panel .adventure-section-head {
  min-height: 18px;
  margin-bottom: 5px;
}

.adventure-companion-list {
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.adventure-companion-recruit-slot {
  height: 124px;
  min-height: 124px;
  max-height: 124px;
  padding: 10px 9px 8px;
  border-style: solid;
  border-color: rgba(173, 112, 54, 0.34);
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 38%, rgba(173, 112, 54, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(255, 227, 138, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(7, 12, 10, 0.86);
  color: #d9b47a;
}

.adventure-companion-card {
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: minmax(58px, auto) minmax(30px, auto);
  gap: 5px 9px;
  height: 124px;
  min-height: 124px;
  min-width: 0;
  max-width: 100%;
  padding: 10px 9px 8px;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(7, 12, 10, 0.86);
}

.adventure-companion-list .adventure-companion-card.is-busy {
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: minmax(58px, auto) minmax(30px, auto);
  height: 124px;
  min-height: 124px;
  max-height: 124px;
}

.adventure-companion-card::before {
  opacity: 0.62;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.4);
}

.adventure-companion-rarity {
  top: 7px;
  left: 7px;
  min-height: 16px;
  padding: 2px 6px;
  font-size: 0.44rem;
}

.adventure-companion-actions {
  top: 7px;
  right: 7px;
  gap: 4px;
}

.adventure-companion-card .btn {
  min-width: 58px;
  height: 24px;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 999px;
}

.adventure-companion-card .btn [data-lucide] {
  width: 14px;
  height: 14px;
}

.adventure-companion-card .btn span {
  max-width: 42px;
  font-size: 0.45rem;
}

.adventure-companion-portrait {
  width: 50px;
  height: 50px;
  border-radius: 9px;
}

.adventure-companion-main {
  align-self: center;
  gap: 4px;
  padding: 9px 64px 0 1px;
}

.adventure-companion-card strong {
  font-size: 1.02rem;
  line-height: 1;
}

.adventure-companion-flavor {
  max-width: 178px;
  padding-block: 2px;
  font-size: 0.62rem;
  line-height: 1.1;
}

.adventure-companion-iconline {
  gap: 6px;
}

.adventure-companion-iconline img {
  width: 20px;
  height: 20px;
}

.adventure-companion-counters {
  align-self: center;
  gap: 4px;
  min-height: 24px;
}

.adventure-companion-counters span,
.adventure-affix-strip span {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  text-overflow: clip;
}

.adventure-companion-counters span {
  min-height: 20px;
  padding: 2px 7px;
  font-size: 0.5rem;
}

.adventure-companion-counters.affix-count-3 span {
  padding-inline: 7px;
  font-size: 0.52rem;
}

.adventure-offer-title {
  margin: 0;
  place-items: center;
}

.adventure-offer-title h3 {
  width: min(420px, 100%);
  min-height: 34px;
  font-size: 1rem;
}

.adventure-mission-actions {
  gap: 6px;
  margin-bottom: 0;
  flex-wrap: nowrap;
}

.adventure-mission-actions .btn,
.adventure-active-pill {
  min-height: 32px;
  border-radius: 8px;
}

.adventure-mission-actions .btn {
  padding-block: 4px;
  font-size: 0.52rem;
}

.adventure-mission-grid {
  gap: 10px;
}

.adventure-mission-group {
  gap: 7px;
}

.adventure-mission-group > h4 {
  justify-self: center;
  min-height: 26px;
  padding: 4px 9px;
  border-color: rgba(208, 166, 89, 0.24);
  background: rgba(0, 0, 0, 0.3);
}

.adventure-mission-card {
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 227, 138, 0.045), rgba(255, 255, 255, 0.01)),
    rgba(8, 13, 13, 0.84);
}

.adventure-mission-top {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
}

.adventure-mission-card h4 {
  color: #f5dc91;
  font-size: 0.82rem;
}

.adventure-mission-card small {
  margin-top: 3px;
  color: rgba(205, 214, 194, 0.72);
  font-size: 0.58rem;
}

.adventure-affix-strip {
  gap: 6px;
  align-content: center;
  justify-content: center;
  min-height: 30px;
}

.adventure-affix-strip span {
  min-height: 22px;
  padding: 4px 9px;
  font-size: 0.56rem;
}

.adventure-mission-card > .adventure-affix-strip {
  justify-content: flex-start;
  align-content: center;
  min-height: 32px;
  padding: 0 2px;
}

.adventure-mission-card > .adventure-affix-strip span {
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 0.53rem;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.16);
}

.adventure-mission-card > p {
  align-self: stretch;
  margin: 0;
  padding: 2px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(232, 220, 190, 0.78);
  font-style: italic;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
  -webkit-line-clamp: 3;
}

.adventure-payout {
  align-self: stretch;
  gap: 0;
  padding: 4px 0 6px;
  border-top: 1px solid rgba(208, 166, 89, 0.16);
  border-bottom: 1px solid rgba(208, 166, 89, 0.16);
}

.adventure-payout span,
.adventure-meta span {
  min-height: 0;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 227, 138, 0.055), rgba(255, 255, 255, 0.01)),
    rgba(0, 0, 0, 0.24);
}

.adventure-payout span {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  justify-content: stretch;
  align-items: center;
  min-height: 44px;
  padding: 4px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  white-space: normal;
}

.adventure-payout span + span {
  border-left: 1px solid rgba(208, 166, 89, 0.22);
}

.adventure-payout span [data-lucide] {
  grid-row: 1 / 3;
  width: 16px;
  height: 16px;
  color: #ffc95a;
}

.adventure-payout span small {
  color: rgba(226, 206, 162, 0.7);
  font-size: 0.51rem;
  letter-spacing: 0;
}

.adventure-payout span b {
  color: #f8e4ab;
  font-size: 0.72rem;
}

.adventure-meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-self: stretch;
  align-items: center;
  min-width: 0;
  padding: 4px 0;
  border-top: 1px solid rgba(208, 166, 89, 0.14);
  border-bottom: 1px solid rgba(208, 166, 89, 0.14);
  overflow: hidden;
}

.adventure-meta span {
  position: relative;
  display: inline-grid;
  grid-template-columns: 12px minmax(0, 1fr);
  grid-template-rows: 11px 15px;
  align-items: center;
  justify-content: stretch;
  flex: 1 1 0;
  min-width: 0;
  min-height: 30px;
  padding: 2px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.adventure-meta span + span {
  border-left: 1px solid rgba(208, 166, 89, 0.2);
}

.adventure-meta span [data-lucide] {
  grid-row: 1 / 3;
  width: 11px;
  height: 11px;
}

.adventure-meta span small {
  color: rgba(233, 221, 190, 0.58);
  font-size: 0.42rem;
  line-height: 1;
  white-space: nowrap;
}

.adventure-meta span b {
  color: #f7e3a3;
  font-size: 0.58rem;
  line-height: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adventure-meta .adventure-stat-delta {
  position: absolute;
  right: 3px;
  top: 3px;
  min-width: 18px;
  min-height: 12px;
  padding: 1px 3px;
  font-size: 0.4rem;
}

.adventure-card-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 47px);
  gap: 0;
  align-self: center;
  min-width: 0;
  height: 94px;
  padding: 0;
  border-top: 1px solid rgba(208, 166, 89, 0.16);
  border-bottom: 1px solid rgba(208, 166, 89, 0.16);
  overflow: hidden;
}

.adventure-card-stats span {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, max-content);
  grid-template-rows: 16px 20px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 47px;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: #d9ccb0;
  line-height: 1;
  text-align: center;
}

.adventure-card-stats span:nth-child(2n) {
  border-left: 1px solid rgba(208, 166, 89, 0.2);
}

.adventure-card-stats span:nth-child(n + 3) {
  border-top: 1px solid rgba(208, 166, 89, 0.12);
}

.adventure-card-stats [data-lucide] {
  grid-row: 1 / 3;
  justify-self: center;
  width: 18px;
  height: 18px;
  color: #f0bd58;
}

.adventure-card-stats small {
  justify-self: start;
  min-width: 0;
  color: rgba(226, 206, 162, 0.72);
  font-size: 0.56rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.adventure-card-stats b {
  justify-self: start;
  min-width: 0;
  color: #f8e4ab;
  font-family: var(--font-display);
  font-size: 0.8rem;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adventure-card-stats .adventure-stat-delta {
  position: absolute;
  right: 5px;
  top: 5px;
  min-width: 24px;
  min-height: 15px;
  padding: 2px 5px;
  font-size: 0.48rem;
}

.adventure-card-stats span.is-up {
  background: linear-gradient(90deg, rgba(112, 201, 78, 0.12), transparent 70%);
}

.adventure-card-stats span.is-up > b:not(.adventure-stat-delta),
.adventure-card-stats .adventure-stat-delta.is-up {
  color: #a8ff72;
  text-shadow: 0 0 10px rgba(112, 201, 78, 0.24);
}

.adventure-card-stats span.is-down {
  background: linear-gradient(90deg, rgba(255, 86, 86, 0.08), transparent 70%);
}

.adventure-reward-strip {
  justify-content: center;
  gap: 5px;
}

/* Palette pass: keep fel as a rare success accent, move the page weight to bronze/arcane tones. */
.adventure-page {
  --adventure-arcane: #62b7ff;
  --adventure-arcane-soft: rgba(98, 183, 255, 0.16);
  --adventure-violet: #b88cff;
  --adventure-bronze: #d6a441;
  --adventure-success: #b7e879;
}

.adventure-page::before {
  background:
    radial-gradient(circle at 18% 20%, rgba(98, 183, 255, 0.085), transparent 29%),
    radial-gradient(circle at 82% 13%, rgba(184, 140, 255, 0.075), transparent 28%),
    radial-gradient(circle at 62% 68%, rgba(208, 166, 89, 0.07), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.25) 46%, rgba(0, 0, 0, 0.54));
}

.adventure-companion-panel,
.adventure-mission-card,
.adventure-mission-actions,
.adventure-character-card {
  background:
    linear-gradient(180deg, rgba(255, 227, 138, 0.04), rgba(98, 183, 255, 0.018)),
    rgba(8, 12, 13, 0.86);
}

.adventure-active-pill {
  border-color: rgba(98, 183, 255, 0.26);
  background: rgba(8, 18, 24, 0.62);
}

.adventure-active-pill [data-lucide],
.adventure-active-pill b {
  color: var(--adventure-arcane);
}

.adventure-stamina-bar i,
.adventure-progress i {
  background: linear-gradient(90deg, var(--adventure-arcane), var(--adventure-bronze));
}

.adventure-mission-card.adventure-mission-running {
  border-color: rgba(98, 183, 255, 0.38);
  background:
    radial-gradient(circle at 82% 10%, rgba(98, 183, 255, 0.13), transparent 32%),
    linear-gradient(180deg, rgba(255, 227, 138, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(8, 13, 14, 0.9);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.34),
    inset 3px 0 0 rgba(98, 183, 255, 0.44);
}

.adventure-running-banner {
  border-color: rgba(98, 183, 255, 0.28);
  background:
    linear-gradient(90deg, rgba(98, 183, 255, 0.12), rgba(245, 177, 61, 0.05)),
    rgba(0, 0, 0, 0.24);
  color: #b9dcff;
}

.adventure-affix-strip span.is-resolved {
  border-color: rgba(98, 183, 255, 0.58);
  box-shadow:
    0 0 14px rgba(98, 183, 255, 0.22),
    inset 0 0 14px rgba(98, 183, 255, 0.14);
}

.adventure-card-stats span.is-up {
  background: linear-gradient(90deg, rgba(112, 201, 78, 0.12), transparent 70%);
}

.adventure-companion-slot-plus {
  border-color: rgba(214, 164, 65, 0.58);
  background:
    radial-gradient(circle at 50% 50%, rgba(173, 112, 54, 0.22), rgba(8, 13, 13, 0.82) 62%),
    rgba(8, 13, 13, 0.82);
  color: #d9b47a;
  box-shadow:
    0 0 0 1px rgba(173, 112, 54, 0.16),
    0 0 12px rgba(173, 112, 54, 0.18),
    inset 0 0 14px rgba(173, 112, 54, 0.12);
}

.adventure-companion-slot.is-empty:hover .adventure-companion-slot-plus,
.adventure-companion-slot.is-empty:focus-visible .adventure-companion-slot-plus {
  border-color: rgba(214, 164, 65, 0.8);
  color: #f0c464;
  box-shadow:
    0 0 0 1px rgba(214, 164, 65, 0.22),
    0 0 18px rgba(173, 112, 54, 0.28),
    inset 0 0 14px rgba(214, 164, 65, 0.12);
}

.adventure-companion-empty-note {
  border-color: rgba(173, 112, 54, 0.24);
}

.adventure-companion-modal {
  background:
    radial-gradient(circle at 50% 10%, rgba(173, 112, 54, 0.12), transparent 34%),
    rgba(0, 0, 0, 0.76);
}

.adventure-tooltip-chance {
  background:
    linear-gradient(90deg, rgba(208, 166, 89, 0.13), rgba(98, 183, 255, 0.05)),
    rgba(0, 0, 0, 0.2);
}

@media (min-width: 981px) {
  .adventure-character-card,
  .adventure-companion-panel {
    min-height: 164px;
    max-height: 164px;
  }

  .adventure-companion-card,
  .adventure-companion-list .adventure-companion-card.is-busy {
    height: 124px;
    min-height: 124px;
    max-height: 124px;
  }

  .adventure-mission-card,
  .adventure-mission-card.adventure-mission-running {
    min-height: 555px;
    height: 555px;
  }
}

.adventure-tour {
  background:
    radial-gradient(circle at var(--tour-left, 50%) var(--tour-top, 50%), rgba(98, 183, 255, 0.13), transparent 18rem),
    rgba(4, 6, 6, 0.76);
}

.adventure-tour-highlight {
  border-color: rgba(98, 183, 255, 0.9);
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.26),
    0 0 26px rgba(98, 183, 255, 0.34),
    inset 0 0 18px rgba(98, 183, 255, 0.12);
}

.adventure-tour-step {
  border-color: rgba(98, 183, 255, 0.36);
  color: #9fd5ff;
}

@media (max-width: 980px) {
  .adventure-page {
    padding: 76px 16px 36px;
  }

  .adventure-hero,
  .adventure-control-panel,
  .adventure-layout,
  .adventure-character-card {
    grid-template-columns: 1fr;
  }

  .adventure-layout {
    grid-template-areas: "missions";
  }

  .adventure-mission-area {
    grid-template-columns: 1fr;
  }

  .adventure-offer-title,
  .adventure-mission-actions {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
  }

  .adventure-offer-title {
    place-items: center;
  }

  .adventure-mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group-patrol,
  .group-profession {
    grid-column: span 1;
  }

  .group-patrol .adventure-mission-group-grid,
  .group-profession .adventure-mission-group-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .adventure-log {
    margin-top: 0;
  }

  .adventure-hero {
    display: grid;
    align-items: start;
  }

}

@media (max-width: 620px) {
  .adventure-character-identity {
    grid-template-columns: minmax(0, 1fr);
  }

  .adventure-character-license {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .adventure-character-portrait img {
    width: 50px;
    height: 50px;
  }

  .adventure-character-id-head {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .adventure-character-id-head label,
  .adventure-character-id-head .adventure-character-lock {
    grid-column: 1;
  }

  .adventure-character-badges {
    grid-template-columns: 1fr;
  }

  .adventure-character-details,
  .adventure-role-selector {
    grid-column: 1 / -1;
  }

  .adventure-role-selector {
    grid-row: auto;
    justify-self: center;
    width: max-content;
  }

  .adventure-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adventure-mission-grid {
    grid-template-columns: 1fr;
  }

  .adventure-catalog-list {
    grid-template-columns: 1fr;
  }

  .adventure-catalog-brief {
    grid-template-columns: 1fr;
  }

  .adventure-catalog-brief > span {
    min-width: 0;
  }

  .adventure-catalog-requirements,
  .adventure-catalog-payout {
    grid-template-columns: 1fr;
  }
}

.adventure-tour {
  position: fixed;
  inset: 0;
  z-index: 320;
  background:
    radial-gradient(circle at var(--tour-left, 50%) var(--tour-top, 50%), rgba(153, 255, 77, 0.14), transparent 18rem),
    rgba(4, 6, 4, 0.76);
}

.adventure-tour[hidden] {
  display: none !important;
}

.adventure-tour-highlight {
  position: fixed;
  top: var(--tour-top, 20px);
  left: var(--tour-left, 20px);
  width: var(--tour-width, 120px);
  height: var(--tour-height, 60px);
  border: 2px solid rgba(165, 255, 83, 0.9);
  border-radius: 12px;
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.26),
    0 0 26px rgba(142, 255, 58, 0.42),
    inset 0 0 18px rgba(142, 255, 58, 0.14);
  pointer-events: none;
}

.adventure-tour-card {
  position: fixed;
  top: var(--tour-card-top, 120px);
  left: var(--tour-card-left, 24px);
  width: var(--tour-card-width, 360px);
  padding: 15px;
  border: 1px solid rgba(237, 174, 64, 0.48);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(19, 25, 16, 0.98), rgba(8, 12, 10, 0.98)),
    rgba(10, 12, 8, 0.98);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 28px rgba(246, 150, 43, 0.16);
  color: var(--text, #f5ead2);
}

.adventure-tour-card::before {
  content: "";
  position: absolute;
  top: -15px;
  left: min(52%, calc(100% - 44px));
  width: 28px;
  height: 28px;
  transform: rotate(45deg);
  border-left: 1px solid rgba(237, 174, 64, 0.48);
  border-top: 1px solid rgba(237, 174, 64, 0.48);
  background: rgba(18, 24, 15, 0.98);
}

.adventure-tour-card.is-above-target::before {
  top: auto;
  bottom: -15px;
  border: 0;
  border-right: 1px solid rgba(237, 174, 64, 0.48);
  border-bottom: 1px solid rgba(237, 174, 64, 0.48);
}

.adventure-tour-step {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(142, 255, 58, 0.35);
  color: #9cff55;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.adventure-tour-card h3 {
  margin: 10px 0 5px;
  color: var(--gold, #f2b544);
  font-size: 0.96rem;
}

.adventure-tour-card p {
  margin: 0;
  color: rgba(245, 234, 210, 0.82);
  font-size: 0.78rem;
  line-height: 1.34;
}

.adventure-tour-card p > span {
  display: block;
}

.adventure-tour-visual {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.adventure-tour-visual b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 27px;
  padding: 5px 8px;
  border: 1px solid rgba(125, 82, 255, 0.36);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(88, 44, 178, 0.45), rgba(31, 87, 160, 0.34));
  color: #e8ddff;
  font-family: var(--font-display);
  font-size: 0.63rem;
  text-transform: uppercase;
}

.adventure-tour-visual [data-lucide] {
  width: 13px;
  height: 13px;
  color: #bfa7ff;
}

/* Stability pass: keep companion action icons identical before/after lucide hydration. */
.adventure-companion-card .adventure-companion-actions .btn [data-lucide],
.adventure-companion-card .adventure-companion-actions .btn .lucide {
  display: block;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
  flex: 0 0 16px;
  margin: 0;
  overflow: visible;
  line-height: 1;
}

/* Companion modal sizing follows the number of available cards. */
.adventure-companion-modal[data-companion-count="1"] .adventure-companion-dialog {
  width: min(310px, calc(100vw - 28px));
}

.adventure-companion-modal[data-companion-count="2"] .adventure-companion-dialog {
  width: min(560px, calc(100vw - 28px));
}

.adventure-companion-modal[data-companion-count="3"] .adventure-companion-dialog {
  width: min(810px, calc(100vw - 28px));
}

.adventure-companion-modal[data-companion-count="4"] .adventure-companion-dialog {
  width: min(1060px, calc(100vw - 28px));
}

.adventure-companion-modal[data-companion-count="5"] .adventure-companion-dialog {
  width: min(1280px, calc(100vw - 28px));
}

.adventure-companion-modal-body[data-companion-count] {
  max-height: none;
  padding-right: 0;
  overflow: visible;
}

.adventure-companion-modal-body[data-companion-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.adventure-companion-modal-body[data-companion-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.adventure-companion-modal-body[data-companion-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.adventure-companion-modal-body[data-companion-count="4"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.adventure-companion-modal-body[data-companion-count="5"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .adventure-companion-modal-body[data-companion-count="4"],
  .adventure-companion-modal-body[data-companion-count="5"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: calc(min(84vh, 760px) - 126px);
    padding-right: 6px;
    overflow: auto;
  }
}

@media (max-width: 760px) {
  .adventure-companion-modal-body[data-companion-count] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: calc(min(84vh, 760px) - 126px);
    padding-right: 6px;
    overflow: auto;
  }
}

@media (max-width: 520px) {
  .adventure-companion-modal-body[data-companion-count] {
    grid-template-columns: minmax(0, 1fr);
  }
}

.adventure-tour-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 13px;
}

.adventure-tour-actions .btn {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.68rem;
}

@media (max-width: 620px) {
  .adventure-tour-card {
    width: calc(100vw - 28px);
  }

  .adventure-tour-actions {
    justify-content: stretch;
  }

  .adventure-tour-actions .btn {
    flex: 1;
  }
}

@media (max-width: 760px) {
  .adventure-tour {
    background:
      linear-gradient(180deg, rgba(2, 4, 3, 0.46), rgba(2, 4, 3, 0.74)) !important;
    touch-action: pan-y;
  }

  .adventure-tour .adventure-tour-highlight,
  .adventure-tour.is-mobile-tour .adventure-tour-highlight {
    border-width: 2px;
    border-radius: 10px;
    box-shadow:
      0 0 0 9999px rgba(0, 0, 0, 0.30),
      0 0 18px rgba(142, 255, 58, 0.34),
      inset 0 0 12px rgba(142, 255, 58, 0.12);
  }

  .adventure-tour .adventure-tour-card,
  .adventure-tour.is-mobile-tour .adventure-tour-card {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    top: auto;
    width: auto;
    max-height: min(42vh, 310px);
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "step close"
      "title title"
      "text text"
      "actions actions";
    gap: 7px 10px;
    padding: 12px;
    overflow: auto;
    border-radius: 14px;
    background:
      linear-gradient(160deg, rgba(18, 26, 17, 0.98), rgba(7, 11, 9, 0.98)),
      #0b100d;
    box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.56);
  }

  .adventure-tour .adventure-tour-card::before,
  .adventure-tour.is-mobile-tour .adventure-tour-card::before {
    display: none;
  }

  .adventure-tour .modal-close,
  .adventure-tour.is-mobile-tour .modal-close {
    grid-area: close;
    position: static;
    justify-self: end;
    width: 32px;
    height: 32px;
    min-height: 32px;
  }

  .adventure-tour .adventure-tour-step,
  .adventure-tour.is-mobile-tour .adventure-tour-step {
    grid-area: step;
    align-self: center;
    width: max-content;
  }

  .adventure-tour .adventure-tour-card h3,
  .adventure-tour.is-mobile-tour .adventure-tour-card h3 {
    grid-area: title;
    margin: 0;
    font-size: 1rem;
    line-height: 1.08;
  }

  .adventure-tour .adventure-tour-card p,
  .adventure-tour.is-mobile-tour .adventure-tour-card p {
    grid-area: text;
    max-height: 104px;
    overflow: auto;
    padding-right: 2px;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .adventure-tour .adventure-tour-visual,
  .adventure-tour.is-mobile-tour .adventure-tour-visual {
    gap: 5px;
    margin-bottom: 7px;
  }

  .adventure-tour .adventure-tour-visual b,
  .adventure-tour.is-mobile-tour .adventure-tour-visual b {
    min-height: 24px;
    padding: 4px 7px;
    font-size: 0.58rem;
  }

  .adventure-tour .adventure-tour-actions,
  .adventure-tour.is-mobile-tour .adventure-tour-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 2px;
  }

  .adventure-tour .adventure-tour-actions .btn,
  .adventure-tour.is-mobile-tour .adventure-tour-actions .btn {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.68rem;
  }
}

/* Mobile expedition pass: stacked, scrollable, and touch-friendly. */
@media (max-width: 760px) {
  body:has(#expedicoes:not([hidden])) {
    overflow: auto;
  }

  .adventure-page {
    min-height: calc(100vh - var(--site-header-h, 58px));
    padding: 22px 10px 34px;
    overflow-x: hidden;
  }

  .adventure-hero {
    margin-bottom: 10px;
    padding-inline: 6px;
  }

  .adventure-hero h2 {
    font-size: clamp(1.35rem, 7vw, 1.9rem);
  }

  .adventure-hero .section-copy {
    max-width: 34ch;
    margin-inline: auto;
    white-space: normal;
    line-height: 1.28;
  }

  .adventure-control-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 14px;
  }

  .adventure-character-card,
  .adventure-companion-panel {
    min-height: 0;
    max-height: none;
  }

  .adventure-character-card {
    padding: 8px;
  }

  .adventure-character-license {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
  }

  .adventure-character-portrait img {
    width: 52px;
    height: 52px;
  }

  .adventure-character-id-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }

  .adventure-character-id-head label {
    grid-column: 1 / -1;
    font-size: 0.62rem;
  }

  .adventure-character-id-head select {
    min-width: 0;
    width: 100%;
  }

  .adventure-role-selector {
    grid-column: auto;
    grid-row: auto;
    justify-self: end;
  }

  .adventure-character-badges,
  .adventure-character-details,
  .adventure-character-professions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .adventure-character-professions {
    grid-column: 1 / -1;
  }

  .adventure-stamina-bar {
    grid-column: 1 / -1;
  }

  .adventure-companion-panel {
    padding: 8px;
  }

  .adventure-companion-list {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .adventure-companion-card {
    min-height: 92px;
  }

  .adventure-mission-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    width: min(100%, 360px);
    margin-inline: auto;
  }

  .adventure-mission-actions .btn {
    width: 100%;
    min-height: 36px;
  }

  .adventure-layout,
  .adventure-mission-area {
    width: 100%;
  }

  .adventure-offer-title h3 {
    font-size: 1rem;
  }

  .adventure-mission-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .adventure-mission-group,
  .group-patrol,
  .group-profession {
    grid-column: auto;
  }

  .adventure-mission-group-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .adventure-mission-card {
    min-height: 0;
    height: auto;
    padding: 10px;
  }

  .adventure-card-stats {
    grid-template-rows: repeat(2, 42px);
    height: 84px;
  }

  .adventure-reward-board {
    gap: 6px;
  }

  .adventure-companion-slots {
    min-height: 54px;
  }

  .adventure-companion-picks {
    gap: 7px;
  }

  .adventure-companion-slot {
    min-height: 48px;
  }

  .adventure-catalog-dialog,
  .adventure-companion-dialog,
  .adventure-result-card {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100vh - 34px);
    padding: 14px;
    overflow: auto;
  }

  .adventure-companion-modal-body[data-companion-count],
  .adventure-companion-modal-body {
    grid-template-columns: minmax(0, 1fr) !important;
    max-height: none;
    padding-right: 0;
    overflow: visible;
  }

  .adventure-companion-modal .adventure-companion-choice,
  .adventure-companion-modal .adventure-companion-choice.is-group-candidate,
  .adventure-companion-modal .adventure-companion-choice.is-recruit-candidate {
    height: auto;
    min-height: 244px;
  }

  .adventure-catalog-list {
    max-height: none;
    overflow: visible;
  }
}

/* Mobile scroll normalization: the document scrolls, expedition content does not create a second scrollbar. */
@media (max-width: 760px) {
  html:has(body.page-expedicoes) {
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable !important;
    touch-action: pan-y !important;
  }

  body.page-expedicoes,
  body.page-expedicoes .app-main,
  body.page-expedicoes #expedicoes.adventure-page {
    height: auto !important;
    overflow: visible !important;
    touch-action: pan-y !important;
  }
}

/* Mobile performance pass: keep the look, stop expensive repaint work during scroll. */
@media (max-width: 760px) {
  body.page-expedicoes #expedicoes.adventure-page {
    background-attachment: scroll !important;
    background-position: center top !important;
  }

  body.page-expedicoes #expedicoes.adventure-page::before {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.26) 48%, rgba(0, 0, 0, 0.58)),
      linear-gradient(180deg, rgba(4, 7, 6, 0.36), rgba(4, 7, 6, 0.78)) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.page-expedicoes .adventure-control-panel,
  body.page-expedicoes .adventure-character-card,
  body.page-expedicoes .adventure-companion-panel,
  body.page-expedicoes .adventure-companion-card,
  body.page-expedicoes .adventure-mission-card,
  body.page-expedicoes .adventure-mission-actions .btn,
  body.page-expedicoes .adventure-catalog-dialog,
  body.page-expedicoes .adventure-companion-dialog,
  body.page-expedicoes .adventure-result-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }

  body.page-expedicoes .adventure-companion-card {
    contain: layout paint style !important;
    content-visibility: auto;
  }

  body.page-expedicoes .adventure-mission-card {
    contain: none !important;
    content-visibility: visible !important;
  }

  body.page-expedicoes .adventure-companion-card {
    contain-intrinsic-size: 260px 112px;
  }

  body.page-expedicoes .adventure-page *,
  body.page-expedicoes .adventure-page *::before,
  body.page-expedicoes .adventure-page *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  body.page-expedicoes .adventure-page :hover:not(.adventure-tour):not(.adventure-tour *):not(.adventure-tour-highlight) {
    transform: none !important;
  }
}

.adventure-affix-strip span,
.adventure-companion-counters span {
  box-sizing: border-box !important;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: 1px solid rgba(156, 110, 64, 0.58) !important;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(44, 30, 17, 0.92), rgba(11, 9, 7, 0.9)) !important;
  font-size: 0;
  line-height: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 223, 157, 0.07),
    0 2px 9px rgba(0, 0, 0, 0.48) !important;
  overflow: visible !important;
}

.adventure-affix-strip span img,
.adventure-companion-counters span img {
  box-sizing: border-box !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255, 224, 138, 0.28);
  object-fit: cover;
  image-rendering: pixelated;
  filter: brightness(0.9) saturate(0.9);
}

.adventure-companion-counters span.is-mission-match {
  border-color: rgba(226, 178, 96, 0.95) !important;
  background:
    linear-gradient(135deg, rgba(226, 178, 96, 0.22), transparent 58%),
    linear-gradient(180deg, rgba(70, 43, 18, 0.96), rgba(16, 11, 7, 0.94)) !important;
  box-shadow:
    0 0 0 1px rgba(255, 226, 155, 0.18),
    0 0 16px rgba(226, 154, 58, 0.34),
    inset 0 0 16px rgba(255, 196, 92, 0.14) !important;
}

.adventure-companion-counters span.is-mission-match img {
  border-color: rgba(255, 224, 138, 0.86);
  filter: brightness(1.16) saturate(1.1);
}

.adventure-companion-counters span.is-mission-match::before {
  content: "";
  position: absolute;
  right: 7px;
  bottom: -3px;
  left: 7px;
  z-index: 4;
  width: auto;
  height: 3px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 226, 155, 0.95), transparent);
  box-shadow:
    0 0 10px rgba(226, 154, 58, 0.46);
  pointer-events: none;
}

.adventure-mission-card > .adventure-affix-strip span.is-resolved {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background:
    linear-gradient(180deg, rgba(36, 36, 34, 0.94), rgba(9, 9, 8, 0.94)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 2px 9px rgba(0, 0, 0, 0.5) !important;
}

.adventure-mission-card > .adventure-affix-strip span.is-resolved img {
  border-color: rgba(255, 255, 255, 0.22) !important;
  filter: grayscale(1) saturate(0) brightness(0.72) contrast(1.12) !important;
}

.adventure-mission-card > .adventure-affix-strip span.is-resolved::before {
  content: "✓";
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(121, 255, 86, 0.94);
  font-family: var(--font-ui);
  font-size: 2.15rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(80, 255, 64, 0.36),
    0 0 1px rgba(0, 0, 0, 0.95);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.26);
  pointer-events: none;
}

.adventure-mission-card > .adventure-affix-strip span,
.adventure-mission-card > .adventure-affix-strip span.is-resolved,
.adventure-mission-card > .adventure-affix-strip span.is-spec-match {
  border-radius: 6px !important;
}

.adventure-affix-strip span,
.adventure-companion-counters span,
.adventure-affix-strip span.is-resolved,
.adventure-companion-counters span.is-mission-match,
.adventure-affix-strip span.is-spec-match,
.adventure-companion-counters span.is-spec-match {
  border-radius: 6px !important;
}

.adventure-mission-card > .adventure-affix-strip span img {
  border-radius: 4px !important;
}

.adventure-mission-card:has(.adventure-affix-strip span:hover),
.adventure-mission-card:has(.adventure-affix-strip span:focus-visible) {
  z-index: 90;
}

.adventure-mission-card > .adventure-affix-strip span::after {
  top: calc(100% + 8px) !important;
  bottom: auto !important;
  left: 50% !important;
  z-index: 2600 !important;
  transform: translateX(-50%);
}

.adventure-mission-card > .adventure-affix-strip span:nth-child(1)::after {
  left: 0 !important;
  transform: none;
}

.adventure-mission-card > .adventure-affix-strip span:nth-last-child(1)::after {
  right: 0 !important;
  left: auto !important;
  transform: none;
}

.adventure-mission-card > .adventure-affix-strip {
  min-height: 44px !important;
  gap: 6px !important;
  padding: 2px 4px !important;
}

.adventure-mission-card > .adventure-affix-strip span,
.adventure-mission-card > .adventure-affix-strip span.is-resolved,
.adventure-mission-card > .adventure-affix-strip span.is-spec-match {
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
}

.adventure-mission-card > .adventure-affix-strip span img {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
}

.adventure-mission-card > p {
  padding: 2px 3px !important;
  font-size: 0.86rem !important;
  line-height: 1.12 !important;
  -webkit-line-clamp: 3;
}

.adventure-mission-card > .adventure-reward-board {
  gap: 4px !important;
  align-content: start !important;
  min-height: 0;
  overflow: visible;
}

.adventure-mission-card > .adventure-reward-board .adventure-token-lane .adventure-reward-strip,
.adventure-mission-card > .adventure-reward-board .adventure-item-lane .adventure-reward-strip {
  align-content: center !important;
}

.adventure-mission-card > .btn[data-adventure-start] {
  align-self: end;
}

.adventure-tour-visual img {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 224, 138, 0.36);
  border-radius: 5px;
  image-rendering: pixelated;
}

.adventure-companion-counters {
  width: 136px !important;
  min-width: 136px !important;
  max-width: 136px !important;
  justify-content: center !important;
  justify-self: center !important;
  gap: 5px !important;
}

.adventure-affix-strip {
  min-height: 32px !important;
  justify-content: center !important;
  gap: 6px !important;
}

.adventure-companion-iconline {
  gap: 5px !important;
}

.adventure-companion-iconline img {
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255, 224, 138, 0.34) !important;
  background: rgba(0, 0, 0, 0.48) !important;
  object-fit: cover;
  image-rendering: pixelated;
}

.adventure-companion-panel .adventure-companion-card {
  grid-template-columns: 76px minmax(0, 1fr) !important;
  grid-template-rows: auto 44px auto !important;
  align-items: center !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 9px 10px !important;
  min-height: 124px !important;
  padding: 10px 10px !important;
  overflow: visible !important;
  background: rgba(7, 12, 10, 0.91) !important;
  contain: none !important;
  content-visibility: visible !important;
}

.adventure-companion-panel .adventure-companion-card:has(.adventure-companion-counters span:hover),
.adventure-companion-panel .adventure-companion-card:has(.adventure-companion-counters span:focus-visible) {
  z-index: 160;
}

.adventure-companion-panel .adventure-companion-counters span::after {
  top: calc(100% + 8px) !important;
  bottom: auto !important;
  left: 50% !important;
  z-index: 3200 !important;
  max-width: 260px;
  border-color: rgba(208, 166, 89, 0.42) !important;
  font-weight: 600 !important;
  transform: translateX(-50%);
}

.adventure-companion-panel .adventure-companion-counters span:nth-child(1)::after {
  left: 0 !important;
  transform: none;
}

.adventure-skill-floating-tooltip {
  width: max-content;
  max-width: min(280px, calc(100vw - 24px));
  padding: 9px 11px;
  border-color: rgba(208, 166, 89, 0.44);
  color: #ead8ad;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.28;
  text-align: left;
}

.adventure-companion-panel .adventure-companion-counters span:nth-last-child(1)::after {
  right: 0 !important;
  left: auto !important;
  transform: none;
}

.adventure-companion-panel .adventure-companion-card:not(.is-busy)::after {
  inset: 0 !important;
  width: auto !important;
  background-image: var(--companion-class-bg, var(--companion-class-icon)) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: cover !important;
  opacity: 0.42 !important;
  filter: saturate(1.1) brightness(1.35) !important;
}

.adventure-companion-panel .adventure-companion-rarity {
  left: 8px !important;
  top: 8px !important;
  min-height: 16px !important;
  padding: 2px 6px !important;
  font-size: 0.44rem !important;
}

.adventure-companion-panel .adventure-companion-portrait {
  grid-column: 1 !important;
  grid-row: 1 / 4 !important;
  align-self: center !important;
  justify-self: center !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 10px !important;
}

.adventure-companion-panel .adventure-companion-portrait > img:first-child {
  border-radius: 6px !important;
}

.adventure-companion-panel .adventure-companion-class-icon {
  right: -4px !important;
  bottom: -4px !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 5px !important;
}

.adventure-companion-panel .adventure-companion-main {
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
  align-self: center !important;
  justify-self: stretch !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  box-sizing: border-box !important;
  gap: 5px !important;
  justify-items: center !important;
  width: 100% !important;
  padding: 0 56px 0 0 !important;
}

.adventure-companion-panel .adventure-companion-card strong {
  justify-self: center !important;
  max-width: 100% !important;
  font-size: 1.12rem !important;
  line-height: 1 !important;
  text-align: center !important;
}

.adventure-companion-panel .adventure-companion-iconline {
  justify-self: center !important;
  width: max-content !important;
  min-height: 24px !important;
  margin-inline: auto !important;
}

.adventure-companion-panel .adventure-companion-counters {
  grid-column: auto !important;
  grid-row: auto !important;
  align-self: center !important;
  justify-self: center !important;
  box-sizing: border-box !important;
  width: max-content !important;
  max-width: 100% !important;
  padding-right: 0 !important;
  justify-content: center !important;
  margin: 0 !important;
}

.adventure-companion-panel .adventure-companion-card > .adventure-companion-flavor {
  position: static !important;
  grid-column: 2 !important;
  grid-row: 3 !important;
  align-self: start !important;
  justify-self: center !important;
  width: min(100%, 300px) !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  font-size: 0.62rem !important;
  line-height: 1.16 !important;
}

.adventure-companion-panel .adventure-companion-actions {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 4 !important;
  display: flex !important;
  justify-content: center !important;
}

.adventure-companion-panel .adventure-companion-actions .btn {
  min-width: 46px !important;
  height: 24px !important;
  padding: 0 6px !important;
  gap: 3px !important;
  font-size: 0.5rem !important;
}

.adventure-companion-panel .adventure-companion-actions .btn [data-lucide],
.adventure-companion-panel .adventure-companion-actions .btn .lucide {
  width: 12px !important;
  height: 12px !important;
}

.adventure-companion-panel .adventure-companion-actions .btn span {
  font-size: 0.48rem !important;
}

@media (max-width: 760px) {
  .adventure-companion-panel .adventure-companion-card {
    grid-template-columns: 62px minmax(0, 1fr) 58px !important;
    min-height: 128px !important;
    padding: 13px 8px !important;
    gap: 5px 7px !important;
  }

  .adventure-companion-panel .adventure-companion-recruit-slot {
    height: 128px !important;
    min-height: 128px !important;
    max-height: 128px !important;
  }

  .adventure-companion-panel .adventure-companion-portrait {
    width: 60px !important;
    height: 60px !important;
  }

  .adventure-companion-panel .adventure-companion-card strong {
    font-size: 0.96rem !important;
  }

  .adventure-companion-panel .adventure-companion-card > .adventure-companion-flavor {
    width: min(100%, 185px) !important;
    font-size: 0.56rem !important;
  }

  .adventure-companion-panel .adventure-companion-actions .btn {
    min-width: 50px !important;
    padding-inline: 6px !important;
  }
}

.adventure-affix-strip span.is-spec-match img,
.adventure-companion-counters span.is-spec-match img {
  border-color: rgba(226, 178, 96, 0.86);
  box-shadow: 0 0 12px rgba(173, 112, 54, 0.3);
  filter: brightness(1.18) saturate(1.12);
}

.adventure-affix-strip span.is-spec-match,
.adventure-companion-counters span.is-spec-match {
  border-color: rgba(173, 112, 54, 0.82) !important;
  box-shadow:
    0 0 0 1px rgba(226, 178, 96, 0.18),
    0 0 16px rgba(173, 112, 54, 0.28),
    inset 0 0 14px rgba(226, 178, 96, 0.13) !important;
}

/* Launcher UX sync: clearer hierarchy, consistent glass and responsive cards. */
.adventure-page {
  padding: 28px clamp(18px, 3vw, 54px) 64px;
  background:
    linear-gradient(180deg, rgba(5, 7, 5, 0.58), rgba(5, 7, 5, 0.86)),
    url("/assets/backgrounds/outland-portal.jpg") center/cover fixed;
}

.adventure-page::before {
  background:
    radial-gradient(circle at 14% 4%, rgba(255, 181, 54, 0.08), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.16) 48%, rgba(0, 0, 0, 0.5));
  backdrop-filter: none;
}

@media (min-width: 761px) {
  html:has(body.page-expedicoes),
  body.page-expedicoes {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.page-expedicoes .app-main,
  body.page-expedicoes #expedicoes.adventure-page {
    height: auto;
    min-height: calc(100vh - var(--site-header-h, 64px));
    overflow: visible;
  }
}

.adventure-hero,
.adventure-control-panel,
.adventure-layout {
  width: min(1600px, 100%);
}

.adventure-hero {
  margin-bottom: 18px;
}

.adventure-hero h2 {
  color: #ffbd46;
  font-size: clamp(1.65rem, 2.3vw, 2.25rem);
  line-height: 1.05;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.72);
}

.adventure-hero .section-copy {
  margin-top: 6px;
  color: #d8ccb4;
  font-size: 0.86rem;
  line-height: 1.35;
  white-space: normal;
}

.adventure-control-panel {
  grid-template-columns: minmax(340px, 400px) minmax(600px, 1fr) 180px;
  gap: 12px;
  margin-bottom: 24px;
}

.adventure-character-card,
.adventure-companion-panel,
.adventure-mission-actions,
.adventure-mission-card,
.adventure-mission-empty-card,
.adventure-catalog-dialog,
.adventure-companion-dialog,
.adventure-result-card {
  border-color: rgba(190, 138, 27, 0.46);
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 181, 54, 0.08), transparent 38%),
    linear-gradient(145deg, rgba(16, 19, 14, 0.84), rgba(5, 8, 6, 0.78));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 222, 145, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.adventure-character-card,
.adventure-companion-panel,
.adventure-mission-actions {
  min-height: 176px;
  max-height: none;
}

.adventure-character-card {
  padding: 8px;
}

.adventure-character-license {
  min-height: 158px;
  border-color: rgba(190, 138, 27, 0.28);
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(255, 181, 54, 0.08), transparent 42%),
    rgba(0, 0, 0, 0.2);
}

@media (min-width: 761px) {
  .adventure-character-license {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    justify-items: stretch;
    min-height: 158px;
    padding: 9px;
    overflow: visible;
  }

  .adventure-character-portrait {
    align-self: start;
    min-height: 68px;
    padding: 4px;
    border-radius: 10px;
  }

  .adventure-character-portrait img {
    width: 58px;
    height: 58px;
    border-radius: 9px;
  }

  .adventure-character-identity {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    align-content: start;
    gap: 6px;
    width: 100%;
    text-align: left;
  }

  .adventure-character-id-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    justify-items: stretch;
    align-items: start;
  }

  .adventure-character-id-head > span {
    grid-column: auto;
    justify-self: start;
    color: rgba(226, 206, 162, 0.66);
    font-size: 0.5rem;
    line-height: 1;
    letter-spacing: 0.06em;
  }

  .adventure-character-id-head label {
    grid-column: auto;
    max-width: none;
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid rgba(190, 138, 27, 0.28);
    border-radius: 8px;
    background:
      linear-gradient(180deg, rgba(255, 224, 138, 0.05), rgba(0, 0, 0, 0.04)),
      rgba(0, 0, 0, 0.24);
  }

  .adventure-character-id-head select {
    min-height: 26px;
    height: auto;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #f4dfac;
    font-size: 0.72rem;
    font-weight: 900;
  }

  .adventure-character-id-head .adventure-character-lock {
    grid-column: auto;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    width: 100%;
    min-width: 0;
  }

  .adventure-character-lock .adventure-role-selector {
    flex: 0 0 auto;
    gap: 3px;
  }

  .adventure-role-selector button {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
  }

  .adventure-character-lock .btn {
    min-width: 56px;
    min-height: 24px;
    height: 24px;
    padding: 0 8px;
    gap: 4px;
    border-radius: 999px;
    font-size: 0.5rem;
    line-height: 1;
  }

  .adventure-character-lock .btn [data-lucide] {
    width: 12px;
    height: 12px;
  }

  .adventure-character-nameplate {
    display: block;
    min-width: 0;
    padding: 0;
  }

  .adventure-character-nameplate strong {
    color: #ffd56f;
    font-size: 1rem;
    line-height: 1.05;
    overflow: visible;
    overflow-wrap: anywhere;
    white-space: normal;
    text-shadow: 0 0 12px rgba(255, 181, 54, 0.18);
  }

  .adventure-character-badges {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 0;
  }

  .adventure-character-tag-row,
  .adventure-character-details {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr) minmax(0, 0.85fr);
    justify-content: stretch;
    align-items: stretch;
    gap: 5px;
    min-width: 0;
    overflow: visible !important;
  }

  .adventure-character-details {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adventure-character-badges span,
  .adventure-character-details span {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 1px 5px;
    align-items: center;
    min-width: 0;
    min-height: 34px;
    padding: 4px 6px;
    overflow: visible !important;
    border-radius: 8px;
    white-space: normal !important;
  }

  .adventure-character-badges img,
  .adventure-character-details [data-lucide] {
    grid-row: 1;
    align-self: center;
  }

  .adventure-character-badges small,
  .adventure-character-details small {
    display: block;
    min-width: 0;
    color: rgba(226, 206, 162, 0.62);
    font-size: 0.46rem;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    white-space: normal;
  }

  .adventure-character-badges b,
  .adventure-character-details b {
    display: block;
    grid-column: 1 / -1;
    min-width: 0;
    color: #f2d98d;
    font-family: var(--font-display);
    font-size: 0.62rem;
    line-height: 1.05;
    overflow: visible !important;
    overflow-wrap: normal;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  .adventure-character-details b {
    color: #ffd56f;
  }

  .adventure-character-professions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
    overflow: visible;
    text-align: left;
    white-space: normal;
  }

  .adventure-character-professions span {
    max-width: 100%;
    white-space: normal;
  }

  .adventure-character-professions b,
  .adventure-character-professions small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .adventure-stamina-bar {
    margin-top: 0;
  }
}

.adventure-companion-panel {
  padding: 10px;
}

.adventure-companion-panel .adventure-section-head {
  margin-bottom: 8px;
}

.adventure-companion-panel .adventure-section-head h3 {
  color: #ffd56f;
  font-size: 0.9rem;
}

.adventure-companion-recruit-slots {
  gap: 8px;
}

.adventure-companion-recruit-slot {
  min-height: 118px;
  border-style: solid;
  border-color: rgba(190, 138, 27, 0.34);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 181, 54, 0.1), transparent 56%),
    rgba(3, 6, 4, 0.5);
  color: #d9b772;
  font-size: 0.64rem;
}

.adventure-mission-actions {
  gap: 9px;
  padding: 12px;
}

.adventure-mission-actions .btn,
.adventure-mission-area > .btn {
  min-height: 42px;
  border-color: rgba(190, 138, 27, 0.48);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(25, 29, 21, 0.96), rgba(6, 9, 7, 0.94));
  color: #f0e5ca;
  font-size: 0.66rem;
}

#adventure-reroll-button {
  border-color: #ffb248;
  background: linear-gradient(180deg, #f6a33a, #c85b16);
  color: #211006;
  box-shadow: inset 0 1px 0 rgba(255, 239, 190, 0.3), 0 8px 20px rgba(190, 76, 10, 0.2);
}

.adventure-offer-title {
  margin: 0 0 14px;
}

.adventure-offer-title h3 {
  width: auto;
  min-height: 40px;
  padding: 8px 20px;
  border-color: rgba(190, 138, 27, 0.42);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(23, 26, 19, 0.9), rgba(6, 9, 7, 0.86));
  color: #ffc453;
  font-size: 1rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.adventure-mission-area {
  gap: 0;
}

.adventure-mission-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.adventure-mission-group,
.group-profession {
  grid-column: auto;
  gap: 8px;
}

.group-profession .adventure-mission-group-grid {
  grid-template-columns: minmax(0, 1fr);
}

.adventure-mission-group > h4 {
  min-height: 30px;
  padding: 6px 10px;
  border-color: rgba(190, 138, 27, 0.36);
  border-radius: 8px;
  background: rgba(4, 7, 5, 0.62);
  color: #f5b93e;
  font-size: 0.72rem;
}

.adventure-mission-card,
.adventure-mission-card.adventure-mission-running,
.adventure-mission-empty-card {
  width: 100%;
  min-height: 600px;
  height: auto;
  padding: 14px 11px 11px;
}

.adventure-mission-card.rarity-rare,
.adventure-mission-card.rarity-epic,
.adventure-mission-card.category-patrol,
.adventure-mission-card.category-raid {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 181, 54, 0.07), transparent 38%),
    linear-gradient(145deg, rgba(16, 19, 14, 0.86), rgba(5, 8, 6, 0.8));
}

.adventure-mission-card h4 {
  color: #f6d985;
  font-size: 0.86rem;
  line-height: 1.2;
}

.adventure-mission-card small {
  color: #aaa28f;
  font-size: 0.66rem;
}

.adventure-mission-card > p {
  color: #d0c5ac;
  font-size: 0.78rem !important;
  line-height: 1.3 !important;
}

.adventure-mission-needs span,
.adventure-meta span,
.adventure-payout span {
  border-color: rgba(190, 138, 27, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.adventure-mission-card .btn {
  min-width: 142px;
  min-height: 38px;
  height: 38px;
  border-color: #e68a2a;
  border-radius: 9px;
  background: linear-gradient(180deg, #ed9034, #9a4315);
  color: #1d0d04;
  font-size: 0.7rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 231, 169, 0.26), 0 8px 18px rgba(0, 0, 0, 0.25);
}

.adventure-mission-card .btn:disabled {
  border-color: rgba(190, 138, 27, 0.28);
  background: linear-gradient(180deg, rgba(123, 70, 28, 0.68), rgba(58, 31, 16, 0.72));
  color: rgba(239, 220, 184, 0.58);
}

.adventure-mission-empty-card {
  padding: 28px 18px;
  color: #b9ad94;
}

@media (max-width: 1250px) {
  .adventure-control-panel {
    grid-template-columns: minmax(320px, 0.8fr) minmax(520px, 1.2fr);
  }

  .adventure-mission-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .adventure-page {
    padding: 22px 12px 42px;
  }

  .adventure-hero {
    margin-bottom: 14px;
  }

  .adventure-control-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .adventure-character-card,
  .adventure-companion-panel,
  .adventure-mission-actions {
    min-height: 0;
  }

  .adventure-mission-actions {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .adventure-mission-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .adventure-mission-card,
  .adventure-mission-card.adventure-mission-running,
  .adventure-mission-empty-card {
    min-height: 0;
  }
}

/* Final expedition card pass: restore character card and normalize mission card geometry. */
.adventure-character-card {
  min-height: 176px;
}

.adventure-character-license {
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  min-height: 158px;
  padding: 9px;
}

.adventure-character-portrait {
  align-self: start;
  min-height: 68px;
  padding: 4px;
  border-radius: 10px;
}

.adventure-character-portrait img {
  width: 58px;
  height: 58px;
  border-radius: 9px;
}

.adventure-character-identity {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  text-align: left;
}

.adventure-character-id-head {
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}

.adventure-character-id-head .adventure-character-lock {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.adventure-character-nameplate {
  display: block;
}

.adventure-character-badges {
  grid-template-columns: minmax(0, 1fr);
}

.adventure-character-tag-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.adventure-character-tag-row span:nth-child(n + 2) {
  display: inline-flex;
}

.adventure-character-details {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.adventure-stamina-bar {
  display: flex;
}

.adventure-character-professions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  text-align: left;
}

body.page-expedicoes .adventure-mission-group-grid {
  align-items: stretch;
}

body.page-expedicoes .adventure-mission-card,
body.page-expedicoes .adventure-mission-card.adventure-mission-running,
body.page-expedicoes .adventure-mission-empty-card {
  display: grid;
  width: 100%;
  min-height: 560px;
  height: 560px;
  padding: 12px;
  overflow: visible;
}

body.page-expedicoes .adventure-mission-card:not(.adventure-mission-running):not(.adventure-mission-empty-card) {
  grid-template-rows: 46px 34px 58px 30px 116px 150px 54px 40px;
  gap: 7px;
}

body.page-expedicoes .adventure-mission-card.adventure-mission-running {
  grid-template-rows: 46px 34px 132px 42px 150px 40px;
  gap: 8px;
}

body.page-expedicoes .adventure-mission-empty-card {
  grid-template-rows: 58px minmax(0, 1fr);
  place-items: center;
  gap: 12px;
}

body.page-expedicoes .adventure-mission-top {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  justify-content: initial;
  min-height: 46px;
  text-align: left;
}

body.page-expedicoes .adventure-mission-top img,
body.page-expedicoes .adventure-running-art img {
  width: 42px;
  height: 42px;
  border-radius: 7px;
}

body.page-expedicoes .adventure-mission-top > div {
  min-width: 0;
}

body.page-expedicoes .adventure-mission-card h4 {
  min-height: 18px;
  overflow: hidden;
  color: #f6d985;
  font-size: 0.82rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-expedicoes .adventure-mission-card small {
  overflow: hidden;
  font-size: 0.58rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-expedicoes .adventure-affix-strip {
  min-height: 34px;
  max-height: 34px;
  overflow: hidden;
  align-content: center;
}

body.page-expedicoes .adventure-mission-card > p {
  min-height: 58px;
  max-height: 58px;
  display: -webkit-box;
  overflow: hidden;
  color: #d0c5ac;
  font-size: 0.7rem !important;
  line-height: 1.22 !important;
  text-align: left;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

body.page-expedicoes .adventure-stamina-cost {
  position: static;
  justify-self: start;
  min-height: 28px;
}

body.page-expedicoes .adventure-card-stats {
  align-self: stretch;
  min-height: 116px;
  max-height: 116px;
  overflow: hidden;
}

body.page-expedicoes .adventure-meta span,
body.page-expedicoes .adventure-payout span,
body.page-expedicoes .adventure-card-stats span {
  min-height: 34px;
}

body.page-expedicoes .adventure-reward-board {
  grid-template-rows: 68px 66px;
  min-height: 150px;
  max-height: 150px;
  overflow: visible;
}

body.page-expedicoes .adventure-token-lane .adventure-reward-strip,
body.page-expedicoes .adventure-item-lane .adventure-reward-strip {
  min-height: 0;
  max-height: none;
  align-content: center;
}

body.page-expedicoes .adventure-companion-slots {
  min-height: 54px;
  max-height: 54px;
  overflow: hidden;
}

body.page-expedicoes .adventure-mission-card > .btn[data-adventure-start],
body.page-expedicoes .adventure-running-actions .btn {
  align-self: end;
  justify-self: center;
  min-width: 142px;
  height: 38px;
  min-height: 38px;
}

body.page-expedicoes .adventure-running-showcase,
body.page-expedicoes .adventure-running-bottom {
  min-height: 0;
  max-height: 150px;
  overflow: hidden;
}

@media (max-width: 760px) {
  .adventure-character-license {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .adventure-character-tag-row,
  .adventure-character-details {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-expedicoes .adventure-mission-card,
  body.page-expedicoes .adventure-mission-card.adventure-mission-running,
  body.page-expedicoes .adventure-mission-empty-card {
    min-height: auto;
    height: auto;
  }

  body.page-expedicoes .adventure-mission-card:not(.adventure-mission-running):not(.adventure-mission-empty-card),
  body.page-expedicoes .adventure-mission-card.adventure-mission-running {
    grid-template-rows: none;
  }

  body.page-expedicoes .adventure-card-stats,
  body.page-expedicoes .adventure-reward-board,
  body.page-expedicoes .adventure-companion-slots,
  body.page-expedicoes .adventure-running-showcase,
  body.page-expedicoes .adventure-running-bottom {
    max-height: none;
  }
}
