:root {
  --bg0: #0a0b0e;
  --bg1: #12141a;
  --bg2: #191c24;
  --line: #2a2f3c;
  --ash: #b7b1a6;
  --fog: #6b7280;
  --ember: #e85d04;
  --ember-dim: #9a3412;
  --steel: #7dd3c0;
  --danger: #ef4444;
  --heal: #34d399;
  --gold: #fbbf24;
  --rare: #60a5fa;
  --epic: #c084fc;
  --text: #f3f0e7;
  --text-dim: #9ca3af;
  --font-display: "Syne", system-ui, sans-serif;
  --font-brand: "Bebas Neue", Impact, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scrollbars no tom ASHLINE (Chrome/Edge/Safari + Firefox) */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 93, 4, 0.65) rgba(18, 20, 26, 0.95);
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  background: rgba(10, 11, 14, 0.95);
  border-left: 1px solid rgba(42, 47, 60, 0.85);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(232, 93, 4, 0.72), rgba(154, 52, 18, 0.88));
  border-radius: 8px;
  border: 2px solid rgba(10, 11, 14, 0.95);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.9), rgba(232, 93, 4, 0.95));
}

*::-webkit-scrollbar-corner {
  background: var(--bg0);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Campos de texto / chat: ainda dá pra selecionar e colar */
input,
textarea,
select,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

body {
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(232, 93, 4, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 80%, rgba(125, 211, 192, 0.06), transparent 50%),
    var(--bg0);
}

[hidden] {
  display: none !important;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--steel);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.idle-app {
  max-width: 1080px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0 clamp(0.9rem, 2.5vw, 1.5rem) 2rem;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-x: clip;
}

/* HEADER — HUD do play: logo · recursos · Conta · menu */
.game-header {
  display: flex;
  align-items: center;
  gap: 0.65rem 1rem;
  flex-wrap: nowrap;
  padding: 0.65rem 0;
  margin: 0 calc(-1 * clamp(0.9rem, 2.5vw, 1.5rem));
  padding-left: clamp(0.9rem, 2.5vw, 1.5rem);
  padding-right: clamp(0.9rem, 2.5vw, 1.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 14, 0.85);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-brand);
  font-size: 1.65rem;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover {
  text-decoration: none;
  color: var(--text);
}

.logo-text {
  display: inline;
}

.logo-beta {
  display: inline-block;
  padding: 0.12rem 0.35rem 0.08rem;
  border: 1px solid rgba(232, 93, 4, 0.45);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ember);
  opacity: 0.9;
}

.logo:hover .logo-beta {
  border-color: rgba(232, 93, 4, 0.7);
  opacity: 1;
}

.presence-online {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.22rem 0.5rem 0.22rem 0.4rem;
  border: 1px solid rgba(232, 93, 4, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(232, 93, 4, 0.1), transparent 70%),
    rgba(18, 20, 26, 0.9);
  font-family: var(--font-mono);
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}

.presence-online[hidden] {
  display: none !important;
}

.presence-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 0 rgba(232, 93, 4, 0.45);
  animation: presencePulse 2.2s ease-in-out infinite;
}

.presence-n {
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: 0.01em;
}

.presence-lbl {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fog);
}

.presence-online-nav {
  display: none;
}

@keyframes presencePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 93, 4, 0.35);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 4px rgba(232, 93, 4, 0);
    opacity: 0.85;
  }
}

.game-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-left: auto;
}

.game-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: 100%;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0.5rem clamp(0.9rem, 2.5vw, 1.5rem) 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg0);
  z-index: 11;
  font-size: 0.95rem;
}

.game-nav[hidden] {
  display: none !important;
}

.game-header.nav-open .game-nav {
  display: flex;
}

.game-nav a,
.game-nav button.nav-market {
  display: block;
  width: 100%;
  box-sizing: border-box;
  color: var(--steel);
  text-decoration: none;
  padding: 0.85rem 0.35rem;
  border: none;
  border-bottom: 1px solid rgba(42, 47, 60, 0.85);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.game-nav a:last-child {
  border-bottom: none;
}

.game-nav a:hover,
.game-nav button.nav-market:hover {
  color: var(--text);
  text-decoration: none;
}

.game-nav a.nav-shop {
  color: #d4a574;
}

.game-nav a.nav-shop:hover {
  color: var(--text);
}

/* Conta no menu só no mobile; no desktop fica o botão ao lado do ☰ */
.game-nav .nav-account {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  position: relative;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg2);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: var(--steel);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.game-header.nav-open {
  background: var(--bg0);
  backdrop-filter: none;
}

.game-header.nav-open .nav-toggle-bars {
  background: transparent;
}

.game-header.nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.game-header.nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

body.nav-lock {
  overflow: hidden;
}

body.nav-lock::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  background: rgba(8, 9, 12, 0.78);
}

.account-btn {
  font-size: 0.78rem !important;
  padding: 0.35rem 0.7rem !important;
  text-decoration: none !important;
}

.resource-vals {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem 0.85rem;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-start;
  font-size: 0.82rem;
  color: var(--ash);
  overflow-x: auto;
  scrollbar-width: none;
}

/* Empurra os recursos à direita quando cabem; se estourar, não corta o ouro à esquerda */
.resource-vals::before {
  content: "";
  flex: 1 0 0;
  min-width: 0;
}

.resource-vals::-webkit-scrollbar {
  display: none;
}

.res-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
  white-space: nowrap;
}

.res-stat .res-val {
  font-weight: 600;
  font-style: normal;
}

.res-stat .res-ico {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  aspect-ratio: 1;
  flex: 0 0 1.15rem;
  border-radius: 3px;
  background-color: transparent;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  font-style: normal;
}

#stat-gold { color: var(--gold); }
#stat-gold .res-ico { background-image: url("img/currency/gold.png"); }

#stat-essence { color: var(--steel); }
#stat-essence .res-ico { background-image: url("img/currency/essence.png"); }

#stat-ash { color: #c4b5a0; }
#stat-ash .res-ico { background-image: url("img/currency/ash.png"); }

.res-kills {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

#stat-kills::after { content: " abates"; color: var(--fog); font-weight: 400; }

/* STATUS STRIP */
.status-strip {
  display: block;
  padding: 0.75rem 1rem;
  background: rgba(18, 20, 26, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.status-main {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.status-identity {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  min-width: 0;
}

.status-head {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mark-sm {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(125, 211, 192, 0.2), rgba(232, 93, 4, 0.22));
  position: relative;
  overflow: hidden;
}

.mark-sm::after {
  content: attr(data-glyph);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  z-index: 0;
}

.mark-sm .mark-art,
.fighter.player .mark .mark-art {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}

.mark-sm.has-glyph-art::after,
.fighter.player .mark.has-glyph-art::after {
  display: none;
}

.mark-sm.frame_ember {
  border-color: rgba(232, 93, 4, 0.85);
  background: linear-gradient(145deg, rgba(232, 93, 4, 0.35), rgba(18, 20, 26, 0.9));
  box-shadow: inset 0 0 0 1px rgba(232, 93, 4, 0.25);
}

.mark-sm.frame_steel {
  border-color: rgba(125, 211, 192, 0.85);
  background: linear-gradient(145deg, rgba(125, 211, 192, 0.28), rgba(18, 20, 26, 0.9));
  box-shadow: inset 0 0 0 1px rgba(125, 211, 192, 0.2);
}

.mark-sm.frame_void {
  border-color: rgba(154, 168, 199, 0.9);
  background: linear-gradient(145deg, rgba(40, 48, 68, 0.95), rgba(18, 20, 26, 0.95));
  box-shadow: inset 0 0 0 1px rgba(154, 168, 199, 0.25);
}

.mark-sm.frame_pass_s1 {
  border-color: rgba(245, 158, 11, 0.9);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.28), rgba(18, 20, 26, 0.92));
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.3);
}

.bp-sticky {
  position: sticky;
  top: 0;
  z-index: 4;
  margin: 0 0 0.55rem;
  padding: 0 0 0.45rem;
  background: linear-gradient(180deg, var(--bg1) 75%, rgba(18, 20, 26, 0.92) 100%);
  box-shadow: 0 8px 12px -8px rgba(0, 0, 0, 0.55);
}
.bp-sticky .tab-section {
  margin-top: 0;
}
.bp-sticky .bp-progress {
  margin-bottom: 0;
}

.bp-progress {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(232, 93, 4, 0.08), rgba(18, 20, 26, 0.4));
}
.bp-progress-bar.bar {
  height: 8px;
  margin-bottom: 0.4rem;
  background: rgba(0, 0, 0, 0.35);
}
.bp-progress-bar.bar > i {
  background: linear-gradient(90deg, #c2410c, #f59e0b);
}
.bp-progress-label {
  display: block;
  font-size: 0.72rem;
  color: var(--fog);
}

.bp-tier {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.7rem 0.75rem;
  margin-bottom: 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg2);
  transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}
.bp-tier.bp-locked {
  opacity: 0.48;
}
.bp-tier.bp-current {
  border-color: rgba(245, 158, 11, 0.55);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(18, 20, 26, 0.85));
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.12);
}
.bp-tier.bp-done {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.04);
}
.bp-tier.bp-milestone:not(.bp-locked) {
  border-color: rgba(251, 191, 36, 0.55);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(251, 191, 36, 0.16), transparent 55%),
    linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(18, 20, 26, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(251, 191, 36, 0.14),
    0 0 20px rgba(251, 191, 36, 0.06);
}
.bp-tier.bp-milestone.bp-locked {
  border-color: rgba(251, 191, 36, 0.22);
}
.bp-tier.bp-milestone .bp-tier-num {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.16);
}
.bp-season-note {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #fde68a;
  letter-spacing: 0.02em;
}
.bp-track.bp-track-milestone {
  border-color: rgba(251, 191, 36, 0.42);
  background:
    linear-gradient(180deg, rgba(251, 191, 36, 0.14), rgba(251, 191, 36, 0.04));
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.1);
}
.bp-track.bp-track-milestone .bp-track-kicker {
  color: #fbbf24;
}
.bp-track.bp-track-milestone .bp-reward {
  color: #fef3c7;
  font-size: 0.86rem;
}

.bp-tier-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.bp-tier-num {
  flex: 0 0 auto;
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ember);
  border: 1px solid rgba(232, 93, 4, 0.45);
  background: rgba(232, 93, 4, 0.12);
}
.bp-tier.bp-done .bp-tier-num {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.1);
}
.bp-tier-meta {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.bp-tier-meta strong {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.1;
}
.bp-tier-meta span {
  font-size: 0.68rem;
  color: var(--fog);
}
.bp-tag {
  margin-left: auto;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
}

.bp-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.bp-track {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.45rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
  min-width: 0;
}
.bp-track.prem {
  border-color: rgba(251, 191, 36, 0.18);
  background: rgba(251, 191, 36, 0.05);
}
.bp-track-kicker {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog);
}
.bp-track.prem .bp-track-kicker {
  color: #fbbf24;
}
.bp-reward {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  word-break: break-word;
}
.bp-track.prem .bp-reward {
  color: #fde68a;
}

.bp-claim {
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.32rem 0.45rem;
  border-radius: 3px;
  border: 1px solid rgba(125, 211, 192, 0.4);
  background: rgba(125, 211, 192, 0.1);
  color: var(--steel);
  cursor: pointer;
}
.bp-claim.prem {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.1);
  color: var(--gold);
}
.bp-claim:hover:not(:disabled) {
  filter: brightness(1.12);
}
.bp-claim:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.bp-claim.claimed {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
  opacity: 1;
}

@media (max-width: 420px) {
  .bp-tracks {
    grid-template-columns: 1fr;
  }
}

.tower-panel {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.8rem 0.85rem;
  margin-bottom: 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(232, 93, 4, 0.08), rgba(18, 20, 26, 0.92));
}
.tower-panel.tower-locked {
  opacity: 0.62;
}
.tower-panel.tower-live {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.12);
}
.tower-panel.tower-milestone:not(.tower-locked) {
  border-color: rgba(251, 191, 36, 0.4);
}

.arena-panel {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(125, 211, 192, 0.06), rgba(18, 20, 26, 0.92));
}

.arena-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.arena-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 9, 12, 0.45);
}

.arena-stat span {
  font-size: 0.65rem;
  color: var(--fog);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.arena-stat strong {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.arena-lead {
  margin: 0;
  font-size: 0.78rem;
  color: var(--fog);
  line-height: 1.4;
}

.arena-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.arena-history h4 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
}

.arena-hist-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(42, 47, 60, 0.6);
}

.arena-hist-row.win span:first-child { color: #7dd3c0; font-weight: 700; }
.arena-hist-row.loss span:first-child { color: #e8a45a; font-weight: 700; }

.tower-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}
.tower-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
  min-width: 0;
}
.tower-stat-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog);
}
.tower-stat-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}
.tower-pressure.hot {
  color: #fb923c;
  font-size: 0.82rem;
}

.tower-enemy {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.tower-enemy-portrait {
  flex: 0 0 auto;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 4px;
  border: 1px solid rgba(232, 93, 4, 0.55);
  background-color: #07080a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(232, 93, 4, 0.2);
}
.tower-enemy-glyph {
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 4px;
  border: 1px solid rgba(232, 93, 4, 0.4);
  background: rgba(232, 93, 4, 0.12);
  font-size: 0.95rem;
}
.tower-enemy-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.tower-enemy-meta strong {
  font-family: var(--font-display);
  font-size: 0.85rem;
}
.tower-enemy-meta span {
  font-size: 0.72rem;
  color: var(--fog);
  line-height: 1.25;
}
.tower-tag {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
}

.tower-reward {
  margin: 0;
  font-size: 0.72rem;
  color: var(--fog);
  line-height: 1.35;
}

.tower-climb {
  width: 100%;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  cursor: pointer;
}
.tower-climb.ready {
  border-color: rgba(245, 158, 11, 0.55);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(18, 20, 26, 0.85));
  color: #fde68a;
}
.tower-climb:hover:not(:disabled) {
  filter: brightness(1.08);
}
.tower-climb:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tower-reset {
  width: 100%;
  margin-top: 0.35rem;
  font-size: 0.72rem !important;
  padding: 0.4rem 0.65rem !important;
  opacity: 0.85;
}

@media (max-width: 480px) {
  .tower-top {
    gap: 0.3rem;
  }
  .tower-stat {
    padding: 0.4rem 0.35rem;
    align-items: center;
    text-align: center;
  }
  .tower-stat-label {
    font-size: 0.52rem;
    letter-spacing: 0.04em;
  }
  .tower-stat-value {
    font-size: 0.95rem;
  }
}

.hunter-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-brand);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8c48a;
  text-shadow: 0 0 12px rgba(232, 93, 4, 0.28);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.hunter-title::before {
  content: "";
  width: 0.55rem;
  height: 1px;
  flex-shrink: 0;
  background: linear-gradient(90deg, transparent, rgba(232, 93, 4, 0.8));
  opacity: 0.9;
}

.hunter-title.title-season {
  color: #fbbf24;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.4);
}
.hunter-title.title-season::before {
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.9));
}

.hunter-title.title-ash {
  color: #d4c4a8;
  text-shadow: none;
}
.hunter-title.title-ash::before {
  background: linear-gradient(90deg, transparent, rgba(183, 177, 166, 0.75));
}

.hunter-title.title-hunt {
  color: #fdba74;
}

.hunter-title[hidden] {
  display: none !important;
}

#hunter-name.name-ember { color: #e85d04; }
#hunter-name.name-steel { color: #7dd3c0; }
#hunter-name.name-void { color: #9aa8c7; }

.status-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-family: var(--font-display);
  min-width: 0;
}

.status-top strong {
  font-size: 1.05rem;
  line-height: 1.15;
  margin-right: 0.1rem;
}

.status-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.55rem;
  margin: 0 0 0.1rem;
}

#hunter-level {
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.vip-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  line-height: 1.2;
}

.vip-badge[hidden] {
  display: none !important;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ash);
}

.pill.live {
  border-color: var(--ember);
  color: var(--ember);
  animation: pulseGlow 1.8s ease-in-out infinite;
}

.pill.dead {
  border-color: var(--danger);
  color: var(--danger);
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 93, 4, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(232, 93, 4, 0); }
}

.strip-bars {
  display: grid;
  gap: 0.22rem;
  width: 100%;
}

.bar-wrap {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 0.4rem;
  align-items: center;
}

.bar-wrap span {
  font-size: 0.62rem;
  color: var(--fog);
  text-align: right;
}

.bar {
  height: 6px;
  background: #07080a;
  border-radius: 2px;
  overflow: hidden;
}

.bar > i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform 0.25s var(--ease);
}

.bar.hp > i {
  background: linear-gradient(90deg, var(--danger), #f97316);
}

.bar.hp.ally > i {
  background: linear-gradient(90deg, var(--heal), var(--steel));
}

.bar.xp > i {
  background: linear-gradient(90deg, #64748b, var(--gold));
}

.stat-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  color: var(--text-dim);
  font-size: 0.68rem;
  line-height: 1.35;
  min-width: 0;
  width: 100%;
}

.stat-line .stat-left,
.stat-line .stat-right {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.stat-line .stat-right {
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
}

.stat-line .stat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0;
  row-gap: 0.1rem;
  min-width: 0;
}

.stat-line .stat-right .stat-row {
  justify-content: flex-end;
}

.stat-line .stat-bit {
  white-space: nowrap;
}

.stat-line .stat-bit + .stat-bit::before {
  content: " · ";
}

.stat-line b {
  color: var(--text);
  font-weight: 500;
}

.stat-line .stat-offline b {
  color: var(--gold);
}

.stat-line .stat-boost {
  color: #fbbf24;
}
.stat-line .stat-boost b {
  color: #fde68a;
  font-weight: 600;
}
.stat-line .stat-boost.offline {
  color: #93c5fd;
}
.stat-line .stat-boost.offline b {
  color: #bfdbfe;
}

.hunt-controls {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
  flex-shrink: 0;
  margin: 0.2rem 0 0.15rem;
}

.combat-kits {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.45rem;
  margin-left: auto;
  width: max-content;
  max-width: min(100%, 36rem);
  min-width: 0;
}

.spell-slot {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  padding: 0.4rem 0.45rem;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius, 8px);
  background: rgba(0, 0, 0, 0.32);
}

.spell-slot-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.1rem 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--steel, #c8d0dc);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}

.spell-slot-btn:hover,
.spell-slot-btn[aria-expanded="true"] {
  background: rgba(125, 211, 192, 0.12);
}

.spell-slot-btn.on-cd {
  opacity: 0.75;
}

.spell-slot-btn .spell-icon {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 8px;
  flex: 0 0 auto;
  background-size: cover;
  background-position: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.45);
}

.spell-slot-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  line-height: 1.15;
}

.spell-slot-name {
  color: #7dd3c0;
  font-size: 0.82rem;
}

.spell-slot-charge {
  font-size: 0.64rem;
  font-weight: 500;
  opacity: 0.75;
}

.spell-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.35rem);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 14rem;
  max-width: min(18rem, 92vw);
  padding: 0.35rem;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.14));
  border-radius: 8px;
  background: rgba(12, 14, 18, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.spell-menu[hidden] {
  display: none;
}

.spell-menu-btn {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.45rem;
  row-gap: 0.05rem;
  align-items: center;
  padding: 0.35rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--steel, #c8d0dc);
  cursor: pointer;
  text-align: left;
}

.spell-menu-btn .spell-icon {
  grid-row: 1 / span 2;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
}

.spell-menu-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #7dd3c0;
}

.spell-menu-detail {
  font-size: 0.62rem;
  opacity: 0.75;
}

.spell-menu-btn.active {
  border-color: rgba(125, 211, 192, 0.45);
  background: rgba(125, 211, 192, 0.1);
}

.spell-menu-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.heal-stack {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  margin-left: 0;
  width: max-content;
  max-width: min(100%, 24rem);
  min-width: 0;
  padding: 0.4rem 0.55rem 0.4rem 0.4rem;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius, 8px);
  background: rgba(0, 0, 0, 0.32);
  position: relative;
}

.heal-potion-slot {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
}

.heal-slot-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.1rem 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--steel, #c8d0dc);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}

.heal-slot-btn:hover,
.heal-slot-btn[aria-expanded="true"] {
  background: rgba(232, 164, 90, 0.1);
}

.heal-slot-btn.on-cd {
  opacity: 0.75;
}

.heal-slot-btn .heal-potion-icon {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 8px;
  flex: 0 0 auto;
  background-size: cover;
  background-position: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.45);
}

.heal-slot-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  line-height: 1.15;
}

.heal-slot-name {
  color: var(--ember, #e8a45a);
  font-size: 0.82rem;
}

.heal-slot-cost {
  font-size: 0.64rem;
  font-weight: 500;
  color: var(--fog);
}

.heal-potion-menu {
  position: absolute;
  left: 0;
  right: auto;
  min-width: 13.5rem;
  bottom: calc(100% + 0.35rem);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.4rem;
  background: rgba(12, 14, 18, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.heal-potion-menu[hidden] {
  display: none !important;
}

.heal-potion-btn {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fog);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.2;
  text-align: left;
}

.heal-potion-icon {
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.heal-potion-label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heal-potion-detail {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--fog);
  opacity: 0.9;
  white-space: nowrap;
}

.heal-potion-btn.active {
  color: var(--ember, #e8a45a);
  border-color: rgba(232, 164, 90, 0.55);
  background: rgba(232, 164, 90, 0.12);
}

.heal-potion-btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.heal-stack .auto-heal {
  flex: 0 0 auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.15rem 0.15rem 0.15rem 0.65rem;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
}

.auto-heal {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  color: var(--fog);
  padding: 0.15rem 0.35rem;
  border: none;
  background: transparent;
  user-select: none;
}

.auto-heal input[type="range"] {
  width: 56px;
  accent-color: var(--ember);
}

#auto-heal-label {
  min-width: 2.2rem;
  color: var(--steel);
  font-weight: 600;
}

.stage .hunt-controls .btn.primary {
  flex: 1 1 auto;
  min-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg2);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s, filter 0.2s;
  white-space: nowrap;
}

.btn:hover:not(:disabled) {
  border-color: var(--steel);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn.primary {
  background: linear-gradient(135deg, var(--ember), var(--ember-dim));
  border-color: transparent;
  color: #fff;
}

.btn.primary:hover:not(:disabled) {
  filter: brightness(1.08);
  border-color: transparent;
}

.btn.ghost {
  background: transparent;
}

/* MAIN LAYOUT: stage + status + manage */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "stage status"
    "stage manage";
  gap: 1rem;
  align-items: start;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.status-strip {
  grid-area: status;
  align-self: start;
  width: 100%;
  box-sizing: border-box;
}

.stage {
  grid-area: stage;
  position: relative;
  padding: 0.85rem 1rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 93, 4, 0.22);
  background:
    linear-gradient(180deg, rgba(232, 93, 4, 0.07), transparent 42%),
    rgba(18, 20, 26, 0.88);
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow: hidden;
}

.stage-head {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
}

.stage-kicker {
  order: 2;
  margin-left: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  min-width: 0;
  white-space: nowrap;
}

.stage-tick {
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--fog);
  font-size: 0.72rem;
}

.stage-tick::before {
  content: "·";
  margin-right: 0.55rem;
  color: var(--fog);
  opacity: 0.7;
}

.stage-title {
  order: 1;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}

.muted {
  color: var(--fog);
  font-size: 0.75rem;
}

.hunt-stats {
  margin: 0;
  padding: 0.32rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.7rem;
  color: var(--ash);
  line-height: 1.3;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

#hunt-stat-line.hs-grid {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.75rem 2.25rem;
  width: 100%;
  min-width: 0;
}

.hs-left,
.hs-right {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.hs-right {
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
}

.hs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0;
  row-gap: 0.1rem;
  min-width: 0;
}

.hs-right .hs-row {
  justify-content: flex-end;
}

.hs-bit {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.hs-bit + .hs-bit::before {
  content: " · ";
  color: var(--text-dim);
}

.hs-bit.hs-tip,
.hs-bit .hs-tip {
  white-space: normal;
}

.hunt-stats .hs-muted {
  color: var(--text-dim);
}

.hunt-stats .hs-warn {
  color: var(--gold);
}

.hunt-stats b {
  color: var(--text);
  font-weight: 600;
}

.versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  margin: 0.25rem 0 0.1rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.fighter {
  text-align: center;
  padding: 0.35rem 0.35rem 0.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.28rem;
}

.fighter.player {
  overflow: hidden;
}

.fighter.player.mark-proc.proc-ruptura {
  animation: mark-slot-flash-rup 0.65s ease-out;
}

.fighter.player.mark-proc.proc-veu {
  animation: mark-slot-flash-veu 0.65s ease-out;
}

.loadout-slot.mark-proc.proc-ruptura {
  animation: mark-slot-flash-rup 0.65s ease-out;
}

.loadout-slot.mark-proc.proc-veu {
  animation: mark-slot-flash-veu 0.65s ease-out;
}

@keyframes mark-slot-flash-rup {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); background: transparent; }
  25% { box-shadow: 0 0 14px 2px rgba(249, 115, 22, 0.55); background: rgba(249, 115, 22, 0.08); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); background: transparent; }
}

@keyframes mark-slot-flash-veu {
  0% { box-shadow: 0 0 0 0 rgba(125, 211, 192, 0); background: transparent; }
  25% { box-shadow: 0 0 14px 2px rgba(125, 211, 192, 0.5); background: rgba(125, 211, 192, 0.08); }
  100% { box-shadow: 0 0 0 0 rgba(125, 211, 192, 0); background: transparent; }
}

.gear-mark-pip.pip-proc {
  animation: mark-pip-proc 0.6s ease-out;
}

@keyframes mark-pip-proc {
  0% { filter: brightness(1); box-shadow: 0 0 6px 1px rgba(167, 139, 250, 0.85); }
  35% {
    filter: brightness(1.85);
    box-shadow: 0 0 14px 4px rgba(233, 213, 255, 0.95);
  }
  100% {
    filter: brightness(1);
    box-shadow: 0 0 6px 1px rgba(167, 139, 250, 0.85);
  }
}

.gear-portrait.mark-proc-glow.glow-ruptura {
  animation: portrait-proc-rup 0.65s ease-out;
}

.gear-portrait.mark-proc-glow.glow-veu {
  animation: portrait-proc-veu 0.65s ease-out;
}

@keyframes portrait-proc-rup {
  0%, 100% { filter: none; }
  30% { filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.85)); }
}

@keyframes portrait-proc-veu {
  0%, 100% { filter: none; }
  30% { filter: drop-shadow(0 0 6px rgba(125, 211, 192, 0.85)); }
}

.fighter .mark {
  width: min(100%, 7.25rem);
  aspect-ratio: 1;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(125, 211, 192, 0.18), rgba(232, 93, 4, 0.16));
}

.fighter.enemy .mark {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.28), rgba(154, 52, 18, 0.3));
  border-color: rgba(239, 68, 68, 0.85);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.28);
}

.fighter.player .mark.frame_ember {
  border-color: rgba(232, 93, 4, 0.85);
  background: linear-gradient(145deg, rgba(232, 93, 4, 0.35), rgba(18, 20, 26, 0.9));
  box-shadow: inset 0 0 0 1px rgba(232, 93, 4, 0.25);
}
.fighter.player .mark.frame_steel {
  border-color: rgba(125, 211, 192, 0.85);
  background: linear-gradient(145deg, rgba(125, 211, 192, 0.28), rgba(18, 20, 26, 0.9));
  box-shadow: inset 0 0 0 1px rgba(125, 211, 192, 0.2);
}
.fighter.player .mark.frame_void {
  border-color: rgba(154, 168, 199, 0.9);
  background: linear-gradient(145deg, rgba(40, 48, 68, 0.95), rgba(18, 20, 26, 0.95));
  box-shadow: inset 0 0 0 1px rgba(154, 168, 199, 0.25);
}
.fighter.player .mark.frame_pass_s1 {
  border-color: rgba(245, 158, 11, 0.9);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.28), rgba(18, 20, 26, 0.92));
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.3);
}

.fighter .mark::after {
  content: attr(data-glyph);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  z-index: 1;
  pointer-events: none;
}

.fighter .mark.has-art {
  background-color: #07080a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.fighter .mark.has-art::after {
  display: none;
}

.fighter.enemy .mark.has-art {
  border-color: rgba(239, 68, 68, 0.9);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.32);
}

.fighter.enemy .mark.tower-echo {
  border-color: rgba(232, 93, 4, 0.85);
  box-shadow: inset 0 0 0 1px rgba(232, 93, 4, 0.35);
}

.hit-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hit-overlay.center {
  inset: auto;
  left: 50%;
  top: -0.15rem;
  transform: translate(-50%, -100%);
  width: max-content;
}

.fighter-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  margin: 0;
  color: var(--ash);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.15;
}

.fighter.enemy .fighter-name {
  color: #e8d5c4;
}

.fighter .bar.hp {
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
  margin: 0.05rem 0 0;
}

.vs-label {
  font-family: var(--font-brand);
  letter-spacing: 0.1em;
  color: var(--fog);
  font-size: 1.15rem;
  position: relative;
}

.vs-label.hit {
  color: var(--ember);
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-3px); }
  70% { transform: translateX(3px); }
}

.hit-pill {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  animation: hitPop 0.7s var(--ease);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.hit-pill.hit { color: #fb923c; }
.hit-pill.dmg { color: var(--danger); }
.hit-pill.crit { color: var(--gold); font-size: 1.3rem; }
.hit-pill.ruptura { color: #f97316; font-size: 1.35rem; font-weight: 700; }
.hit-pill.veu { color: #7dd3c0; font-size: 1rem; font-weight: 700; }
.hit-pill.spell { color: #67e8f9; font-size: 1.05rem; font-weight: 700; }
.hit-pill.xp { color: var(--gold); font-size: 0.9rem; }

@keyframes hitPop {
  0% { opacity: 0; transform: translateY(8px) scale(0.88); }
  18% { opacity: 1; transform: translateY(0) scale(1.05); }
  100% { opacity: 0; transform: translateY(-14px) scale(1); }
}

.floater-layer,
.floater {
  display: none;
}

.feed-block {
  margin-top: 0.55rem;
  padding-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 12.5rem;
}

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 1.85rem;
  flex-shrink: 0;
}

.feed-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ash);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feed-filters {
  display: flex;
  gap: 0.25rem;
}

/* Mantém a faixa dos filtros no Chat pra não mudar a altura do bloco */
.feed-head .feed-filters[hidden] {
  display: flex !important;
  visibility: hidden;
  pointer-events: none;
}

.feed-filter {
  padding: 0.22rem 0.55rem;
  font-size: 0.68rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--fog);
  background: transparent;
}

.feed-filter:hover {
  color: var(--ash);
}

.feed-filter.active {
  color: var(--text);
  border-color: rgba(232, 93, 4, 0.55);
  background: rgba(232, 93, 4, 0.1);
}

.feed {
  height: 160px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
  font-size: 0.72rem;
  color: var(--fog);
  min-height: 0;
}

.feed-panel-tabs {
  display: flex;
  gap: 0.25rem;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
  min-height: 0;
}

.chat-panel[hidden] {
  display: none !important;
}

.chat-log {
  height: 160px;
  overflow-y: auto;
  font-size: 0.72rem;
  color: var(--ash);
  min-height: 0;
}

.chat-log .chat-line {
  margin-bottom: 0.22rem;
  line-height: 1.35;
}

.chat-log .chat-time {
  color: var(--fog);
  font-variant-numeric: tabular-nums;
  font-size: 0.68rem;
}

.chat-log .chat-name {
  color: var(--steel);
  font-weight: 600;
}

.chat-log .chat-vip {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
}

.chat-log .chat-level {
  color: var(--fog);
  font-size: 0.68rem;
}

.chat-form {
  display: flex;
  gap: 0.35rem;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.72rem;
}

.chat-form button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ash);
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}

.chat-form button:hover {
  border-color: rgba(232, 93, 4, 0.55);
  color: var(--text);
}

#chat-status:empty {
  display: none;
}

.feed .line {
  margin-bottom: 0.22rem;
}
.feed .line .feed-time {
  color: var(--fog);
  font-variant-numeric: tabular-nums;
  font-size: 0.68rem;
}
.feed .line.good { color: var(--steel); }
.feed .line.bad { color: #f87171; }
.feed .line.loot { color: var(--gold); }
.feed .line.level { color: var(--ember); font-weight: 600; }
.feed .line.auto { color: var(--heal); }

.hint {
  color: var(--fog);
  font-size: 0.7rem;
  margin-top: 0.2rem;
  margin-bottom: 0;
  line-height: 1.3;
}

.info-callout {
  margin: 0.15rem 0 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(232, 93, 4, 0.06));
}

.info-callout-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.info-callout-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.info-callout p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--text-dim);
}

.info-callout p .res-ico {
  vertical-align: middle;
  display: inline-block;
  font-style: normal;
}

.info-callout p + p {
  margin-top: 0.2rem;
}

.info-callout b {
  color: var(--text);
}

.info-callout-sub {
  color: var(--fog) !important;
  font-size: 0.68rem !important;
}

/* MANAGE SIDE */
.manage {
  grid-area: manage;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 20, 26, 0.88);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  max-height: min(560px, calc(100vh - 16rem));
  overflow: hidden;
}

.manage-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.manage-tab {
  padding: 0.65rem 0.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  color: var(--fog);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manage-tab:hover {
  color: var(--ash);
}

.manage-tab.active {
  color: var(--text);
  border-bottom-color: var(--ember);
  background: rgba(232, 93, 4, 0.06);
}

.manage-pane {
  display: none;
  flex: 1;
  overflow: hidden;
  flex-direction: column;
  padding: 0.75rem;
}

.manage-pane.active {
  display: flex;
}

.zone-list,
.upgrade-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow-y: auto;
  flex: 1;
  padding-right: 0.15rem;
}

.zone {
  text-align: left;
  padding: 0.75rem 0.8rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--bg2);
  display: grid;
  gap: 0.2rem;
  transition: border-color 0.2s, background 0.2s;
}

.zone:hover:not(:disabled) {
  border-color: var(--ash);
}

.zone.active {
  border-color: var(--ember);
  background: rgba(232, 93, 4, 0.08);
}

.zone.locked {
  opacity: 0.35;
}

.zone .z-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.zone .z-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.zone .z-req {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.zone .z-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.zone .z-reward {
  font-size: 0.68rem;
  color: var(--steel);
  margin-top: 0.15rem;
}

.zone .z-drops {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-top: 0.28rem;
  font-size: 0.66rem;
  color: var(--ash);
}

.zone .z-drop {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.zone .z-diff {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--fog);
}

.zone .z-diff.easy {
  color: var(--heal);
  border-color: rgba(52, 211, 153, 0.35);
}

.zone .z-diff.fair {
  color: var(--gold);
  border-color: rgba(251, 191, 36, 0.35);
}

.zone .z-diff.hard {
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.4);
}

.zone .z-diff.extreme {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.45);
}

.hunt-stats .z-diff.easy {
  color: var(--heal);
}
.hunt-stats .z-diff.fair {
  color: var(--gold);
}
.hunt-stats .z-diff.hard {
  color: #fb923c;
}
.hunt-stats .z-diff.extreme {
  color: var(--danger);
}

.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  flex-shrink: 0;
  min-height: 1.85rem;
  align-items: center;
}

.tab {
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--fog);
  flex: 0 0 auto;
  white-space: nowrap;
}

.tab-section {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
}

.tab-section:first-child {
  margin-top: 0.15rem;
}

.tab:hover {
  color: var(--ash);
}

.tab.active {
  border-color: var(--line);
  color: var(--text);
  background: var(--bg2);
}

/* Sub-abas em largura igual (Temporada/Mercado = 3, Oficina = 5) */
.tabs.tabs-equal {
  display: grid;
  gap: 0.35rem;
  overflow: visible;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tabs.tabs-equal-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tabs.tabs-equal .tab {
  flex: none;
  width: 100%;
  text-align: center;
  padding: 0.45rem 0.2rem;
  font-size: 0.72rem;
}

.upgrade {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.75rem;
  text-align: left;
  padding: 0.7rem 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--bg2);
  transition: border-color 0.2s;
}

.upgrade:hover:not(:disabled) {
  border-color: var(--steel);
}

.upgrade:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.upgrade.ready {
  border-color: rgba(125, 211, 192, 0.45);
}

.upgrade.daily-done {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.06);
}

.upgrade.daily-done .u-rank {
  color: #34d399;
}

.upgrade.daily-done .u-cost {
  color: #34d399;
}

.daily-streak {
  margin: 0 0 0.55rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.72rem;
  color: var(--fog);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.daily-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  width: 100%;
  min-width: 0;
}

.daily-quest {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg2);
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.daily-quest.daily-done {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.05);
}

.daily-quest-top {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.daily-glyph {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: 0.85rem;
  border: 1px solid rgba(232, 93, 4, 0.35);
  background: rgba(232, 93, 4, 0.1);
}
.daily-quest.daily-done .daily-glyph {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.1);
}
.daily-quest-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}
.daily-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
}
.daily-sub {
  font-size: 0.68rem;
  color: var(--fog);
}
.daily-count {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
}
.daily-quest.daily-done .daily-count {
  color: #34d399;
}

.daily-bar.bar {
  height: 5px;
  background: rgba(0, 0, 0, 0.35);
}
.daily-bar.bar > i {
  background: linear-gradient(90deg, #c2410c, #f59e0b);
}
.daily-quest.daily-done .daily-bar.bar > i {
  background: linear-gradient(90deg, #059669, #34d399);
}

.daily-status {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fog);
}
.daily-quest.daily-done .daily-status {
  color: #34d399;
}

.daily-claim {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.8rem;
  margin-bottom: 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg2);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}
.daily-claim.ready {
  border-color: rgba(245, 158, 11, 0.55);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(18, 20, 26, 0.85));
}
.daily-claim.claimed {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.05);
  cursor: default;
}
.daily-claim:disabled:not(.claimed) {
  opacity: 0.55;
  cursor: not-allowed;
}
.daily-claim-label {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
}
.daily-claim-rewards {
  font-size: 0.72rem;
  color: var(--fog);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.18rem 0.22rem;
}
.daily-claim.ready .daily-claim-rewards {
  color: #fde68a;
}

.upgrade .u-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
}

.upgrade .u-name .rarity,
.gear-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  margin-left: 0.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
  padding: 0.22rem 0.5rem;
  border-radius: 3px;
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 16%, transparent);
  display: inline-block;
  line-height: 1.25;
}

.upgrade .u-name .u-req {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.68rem;
  margin-left: 0.35rem;
  letter-spacing: 0.04em;
  vertical-align: middle;
  color: var(--fog);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.upgrade .u-name .u-req.u-req-low {
  color: var(--danger, #e07070);
}

.gear-tag.refine {
  color: var(--gold);
}

.gear-tag.mark {
  color: #c4a0e8;
}

.loadout-slot .ls-item-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 0;
  border: none;
  background: none;
  margin: 0;
  line-height: 1.2;
}

.loadout-slot .ls-meta .gear-tag {
  font-size: 0.62rem;
  margin-left: 0;
  padding: 0.12rem 0.32rem;
}

.upgrade .u-cost {
  color: var(--gold);
  font-size: 0.82rem;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
}

.upgrade .u-cost.essence {
  color: var(--steel);
}

.upgrade .u-desc {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  margin-top: 0.15rem;
}

.upgrade .u-desc-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.22rem;
}

.gear-stat-total {
  color: var(--ash);
  font-weight: 500;
  font-size: 0.8rem;
  line-height: 1.35;
}

.gear-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  align-items: center;
}

.gear-bonus-row {
  gap: 0.24rem;
}

.gear-chip {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.45rem;
  border-radius: 3px;
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 14%, transparent);
  line-height: 1.3;
  max-width: 100%;
  flex: 0 1 auto;
}

.gear-chip.stat {
  color: var(--ash);
  border-color: rgba(183, 177, 166, 0.35);
  background: rgba(255, 255, 255, 0.03);
}

.gear-chip.refine {
  color: var(--gold);
}

.gear-chip.mark {
  color: #c4a0e8;
}

.loadout-strip {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
  padding: 0;
  border: none;
  background: none;
}

.loadout-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem 0.65rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(232, 93, 4, 0.05), transparent 55%), var(--bg1);
  align-items: start;
  overflow: visible;
}

.loadout-slot.empty {
  opacity: 0.72;
  grid-template-columns: minmax(0, 1fr);
}

.loadout-slot.gear-locked {
  border-color: rgba(251, 146, 60, 0.4);
}

.loadout-slot .gear-sheet {
  grid-column: 1;
  min-width: 0;
}

.loadout-slot .loadout-actions {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.3rem;
  margin: 0;
}

/* Ficha: SLOT · Nome | ícone + linhas de chips (rótulo +N/MN na linha) */
.gear-sheet {
  display: grid;
  gap: 0.38rem;
  min-width: 0;
  width: 100%;
}

.gs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.28rem 0.4rem;
  min-width: 0;
}

.gs-slot {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog);
  line-height: 1.2;
  flex-shrink: 0;
}

.gs-sep {
  color: var(--fog);
  opacity: 0.55;
  font-size: 0.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.gs-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  min-width: 0;
}

.gs-req {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fog);
  font-variant-numeric: tabular-nums;
}

.gs-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45rem 0.7rem;
  align-items: start;
}

.gs-portrait {
  line-height: 0;
  padding: 3px;
  margin: -3px;
}

.gs-portrait .item-icon,
.gs-portrait .gear-portrait,
.gs-portrait .ls-ph {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0;
}

.gs-portrait .ls-ph {
  border-radius: 4px;
  border: 1px dashed rgba(183, 177, 166, 0.28);
  background: rgba(0, 0, 0, 0.25);
  display: block;
}

.gs-stats {
  min-width: 0;
  display: grid;
  gap: 0.26rem;
}

.gs-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}

.gs-line .gear-chip-row {
  display: contents;
}

.gs-line .gear-chip {
  font-size: 0.64rem;
  padding: 0.1rem 0.3rem;
  letter-spacing: 0.01em;
}

.gs-line .gear-tag {
  margin-left: 0;
  font-size: 0.58rem;
  padding: 0.1rem 0.26rem;
  flex-shrink: 0;
}

.gs-line.gs-refine,
.gs-line.gs-mark {
  padding-left: 0.35rem;
  border-left: 2px solid transparent;
}

.gs-line.gs-refine {
  border-left-color: color-mix(in srgb, var(--gold) 55%, transparent);
}

.gs-line.gs-mark {
  border-left-color: color-mix(in srgb, #c4a0e8 55%, transparent);
}

.gs-mute,
.gs-stats .ls-empty {
  font-size: 0.85rem;
  color: var(--fog);
  font-weight: 400;
}

.upgrade .u-cmp {
  grid-column: 1 / -1;
  font-size: 0.7rem;
  color: var(--ash);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.4rem;
}

.upgrade .u-cmp .gear-chip-row {
  flex: 1 1 100%;
  width: 100%;
}

.cmp-vs {
  color: var(--fog);
  font-size: 0.68rem;
}

.cmp-note {
  color: var(--fog);
  font-size: 0.68rem;
}

.cmp-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.35rem;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  flex-shrink: 0;
}

.cmp-badge.cmp-up {
  border-color: rgba(52, 211, 153, 0.55);
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
}

.cmp-badge.cmp-down {
  border-color: rgba(248, 113, 113, 0.5);
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
}

.cmp-badge.cmp-even {
  border-color: var(--line);
  color: var(--ash);
}

.cmp-badge.cmp-new {
  border-color: rgba(96, 165, 250, 0.5);
  color: var(--rare);
  background: rgba(96, 165, 250, 0.1);
}

.cmp-badge.cmp-same {
  border-color: rgba(125, 211, 192, 0.4);
  color: var(--steel);
}

.cmp-badge.cmp-raw {
  border-color: rgba(125, 211, 192, 0.45);
  color: var(--steel);
  background: rgba(125, 211, 192, 0.08);
}

.gear-tag.raw {
  border-color: rgba(125, 211, 192, 0.4);
  color: var(--steel);
}

.delta-up { color: #34d399; }
.delta-down { color: #f87171; }

.gear-chip.delta-up {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.08);
}

.gear-chip.delta-down {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.08);
}

.upgrade.upgrade-better {
  border-color: rgba(52, 211, 153, 0.35);
}

.upgrade.equipped-item {
  border-color: rgba(125, 211, 192, 0.4);
  background: linear-gradient(180deg, rgba(125, 211, 192, 0.06), transparent 55%), var(--bg2);
}

.upgrade.gear-card {
  cursor: default;
}

.smelt-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0.35rem 0 0.55rem;
}

.smelt-toolbar .gear-act {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.18rem;
  min-height: 2.85rem;
  width: 100%;
  padding: 0.4rem 0.45rem;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
}

.smelt-act-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

.smelt-act-gain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  line-height: 1;
}

.smelt-act-gain .res-ico {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 0.95rem;
  vertical-align: middle;
}

.smelt-toolbar .gear-act:not(.salvage) .smelt-act-gain {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.28);
}

.smelt-toolbar .gear-act.salvage .smelt-act-gain {
  color: #e7e2d8;
  background: rgba(183, 177, 166, 0.12);
  border-color: rgba(183, 177, 166, 0.28);
}

.smelt-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  cursor: default;
}

.smelt-row.upgrade {
  display: flex;
  grid-template-columns: none;
}

.smelt-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.smelt-head .item-icon {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
}

.smelt-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1 1 auto;
}

.smelt-item-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 0 1 auto;
  line-height: 1.2;
}

.smelt-title > .rarity {
  flex-shrink: 0;
  margin-left: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: 3px;
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 16%, transparent);
  display: inline-block;
  line-height: 1.25;
  vertical-align: middle;
}

.smelt-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.smelt-controls .smelt-have {
  flex-shrink: 0;
}

.smelt-controls .u-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-start;
  align-items: center;
  flex: 1 1 auto;
}

.smelt-meta {
  min-width: 0;
}

.smelt-meta .gear-chip {
  font-size: 0.66rem;
  padding: 0.14rem 0.36rem;
}

.smelt-meta .gear-chip .res-ico {
  width: 0.95rem;
  height: 0.95rem;
  flex-basis: 0.95rem;
}

.upgrade .u-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-end;
  align-items: center;
}

/* Mercado in-game */
#pane-mercado .upgrade-list {
  gap: 0.35rem;
}

.mk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.35rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(42, 47, 60, 0.75);
}

.mk-seg {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
}

.mk-seg .pill {
  appearance: none;
  margin: 0;
  border: none;
  border-radius: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.32rem 0.55rem;
  line-height: 1.15;
  cursor: pointer;
  white-space: nowrap;
}

.mk-seg .pill:last-child {
  border-right: none;
}

.mk-seg .pill:hover {
  color: var(--ash);
  background: rgba(255, 255, 255, 0.03);
}

.mk-seg .pill.active {
  color: var(--ember);
  background: rgba(232, 93, 4, 0.12);
}

.mk-seg-type {
  flex: 1 1 auto;
}

.mk-seg-type .pill {
  flex: 1 1 0;
  text-align: center;
  min-width: 0;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}

.mk-seg-sort {
  flex: 0 0 auto;
  margin-left: auto;
}

.mk-seg-sort .pill {
  min-width: 2rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.mk-sort-label {
  margin: 0.2rem 0 0.05rem !important;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fog);
}

.mk-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--ash);
  margin: 0.45rem 0;
}

.mk-field-lab {
  color: inherit;
}

/* Campos ASHLINE (Mercado e reuso) — mesma linguagem da scrollbar ember */
.ash-field {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  max-width: 18rem;
  box-sizing: border-box;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(232, 93, 4, 0.06), transparent 55%),
    var(--bg2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color-scheme: dark;
  caret-color: var(--ember);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.ash-field::placeholder {
  color: var(--fog);
}

.ash-field:hover {
  border-color: rgba(232, 93, 4, 0.35);
}

.ash-field:focus {
  outline: none;
  border-color: rgba(232, 93, 4, 0.7);
  box-shadow: 0 0 0 2px rgba(232, 93, 4, 0.18);
}

.mk-limits {
  font-size: 0.68rem !important;
  opacity: 0.85;
}

.mk-preview {
  margin: 0 !important;
  line-height: 1.4;
  font-size: 0.75rem !important;
}

.mk-status {
  text-transform: none;
  color: var(--fog) !important;
  font-size: 0.72rem;
}

.mk-form-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mk-form-block .mk-field {
  margin: 0;
}

.mk-form-block .ash-field {
  max-width: none;
}

.mk-pick-hint {
  margin: 0 !important;
  font-size: 0.72rem !important;
}

.mk-pick-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: min(12.5rem, 38vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.15rem;
}

.mk-pick-list .mk-pick {
  padding: 0.5rem 0.65rem;
}

.mk-pick-list .mk-id-ico .gear-portrait {
  width: 2.1rem;
  height: 2.1rem;
}

/* Lista do Mercado — linha compacta (Cinza e peça no mesmo ritmo) */
.mk-card.mk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
}

.mk-row-main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}

.mk-id-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.mk-id-ico .gear-portrait,
.mk-id-ico .item-icon,
.mk-id-ico .res-ico {
  width: 2.45rem;
  height: 2.45rem;
}

.mk-id-text {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.mk-id-top {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  min-width: 0;
}

.mk-id-slot {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fog);
}

.mk-id-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.15;
}

.mk-id-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.mk-id-tags .gear-tag {
  font-size: 0.62rem;
  padding: 0.1rem 0.32rem;
}

.mk-id-sub {
  font-size: 0.66rem;
  color: var(--text-dim);
  line-height: 1.3;
}

.mk-row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  flex-shrink: 0;
}

.mk-card .mk-price {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mk-card .mk-status {
  color: var(--fog);
  font-size: 0.78rem;
}

.mk-pick {
  cursor: pointer;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.mk-pick.active {
  border-color: var(--ember);
  background: rgba(232, 93, 4, 0.1);
  box-shadow: inset 0 0 0 1px rgba(232, 93, 4, 0.25);
}

.mk-pick-mark {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ember);
  line-height: 1;
}

.mk-price-row {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  width: 100%;
}

.mk-price-row .ash-field {
  flex: 1;
  min-width: 0;
  max-width: none;
}

.mk-pub {
  flex-shrink: 0;
  width: auto;
  margin-top: 0;
  justify-content: center;
  white-space: nowrap;
  padding-inline: 0.9rem;
}

.mk-pub:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mk-bal {
  color: var(--ember) !important;
}

.mk-row-main.mk-has-tip,
.mk-id-ico.mk-has-tip {
  cursor: help;
  border-radius: 4px;
}

.mk-row-main.mk-has-tip:focus-visible,
.mk-id-ico.mk-has-tip:focus-visible {
  outline: 1px solid rgba(232, 93, 4, 0.55);
  outline-offset: 2px;
}

.mk-gear-tip {
  position: fixed;
  z-index: 80;
  max-width: min(20rem, calc(100vw - 1rem));
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 93, 4, 0.35);
  background: rgba(12, 14, 18, 0.97);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 0.3rem;
  pointer-events: none;
}

.mk-gear-tip[hidden] {
  display: none !important;
}

.mk-tip-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
}

.mk-tip-line .gear-chip-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.gear-act {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.28rem 0.45rem;
  border-radius: 3px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.08);
  color: var(--gold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
}

.gear-act:hover {
  border-color: var(--gold);
  background: rgba(251, 191, 36, 0.16);
}

.gear-act.salvage {
  border-color: rgba(183, 177, 166, 0.45);
  background: rgba(183, 177, 166, 0.08);
  color: var(--ash);
}

.gear-act.salvage:hover {
  border-color: var(--ash);
  color: var(--text);
}

.gear-act.lock {
  border-color: rgba(125, 211, 192, 0.45);
  background: rgba(125, 211, 192, 0.08);
  color: var(--steel);
}

.gear-act.lock:hover {
  border-color: var(--steel);
  background: rgba(125, 211, 192, 0.16);
}

.gear-act.lock.on {
  border-color: rgba(251, 146, 60, 0.55);
  background: rgba(251, 146, 60, 0.1);
  color: #fb923c;
}

.gear-act:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.upgrade.gear-card.gear-locked {
  border-color: rgba(251, 146, 60, 0.35);
}

.gear-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.gear-tool {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--ash);
  cursor: pointer;
}

.gear-tool.on,
.gear-tool:hover {
  border-color: var(--steel);
  color: var(--text);
}

.gear-tool.salvage {
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--gold);
}

.equipped-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  color: var(--ash);
}

.equipped-row span {
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius);
  background: var(--bg2);
}

.upgrade .u-rank {
  grid-column: 1 / -1;
  font-size: 0.65rem;
  color: var(--fog);
  display: block;
}

.upgrade .u-rank .need-row {
  width: 100%;
}

.need-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  padding: 0.18rem 0.4rem 0.18rem 0.2rem;
  border-radius: 3px;
  border: 1px solid rgba(183, 177, 166, 0.28);
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.25;
  max-width: 100%;
}

.need-chip .item-icon {
  width: 1.55rem;
  height: 1.55rem;
  margin: 0;
}

.need-chip .res-ico,
.res-ico-sm {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  aspect-ratio: 1;
  flex: 0 0 1.15rem;
  border-radius: 3px;
  background-color: transparent;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  font-style: normal;
  vertical-align: middle;
}

.need-chip .need-text {
  white-space: nowrap;
}

.need-chip .need-x {
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.need-chip.need-ok {
  color: var(--steel);
  border-color: rgba(125, 211, 192, 0.4);
  background: rgba(125, 211, 192, 0.06);
}

.need-chip.need-bad {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.06);
}

.need-chip.need-gold {
  padding-left: 0.4rem;
}

.upgrade .u-desc .gear-chip-row {
  width: 100%;
}

.upgrade .u-desc .gear-chip {
  font-size: 0.68rem;
  padding: 0.16rem 0.38rem;
}

.rarity.common { color: var(--ash); }
.rarity.rare { color: var(--rare); }
.rarity.epic { color: var(--epic); }
.rarity.legendary { color: var(--ember); }
.rarity.mythic { color: #f472b6; }
.rarity.ascendant { color: #34d399; }
.rarity.transcendent { color: #22d3ee; }
.rarity.divine { color: #fbbf24; }
.rarity.eternal {
  background: linear-gradient(90deg, #f472b6, #a78bfa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.upgrade .u-name .rarity.eternal {
  background: linear-gradient(90deg, rgba(244, 114, 182, 0.2), rgba(167, 139, 250, 0.2), rgba(34, 211, 238, 0.2));
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #e9d5ff;
  border-color: #a78bfa;
}

.bag-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
}

.bag-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius);
  background: var(--bg2);
}

.bag-item .glyph {
  font-size: 1.1rem;
  width: 1.4rem;
  text-align: center;
}

.bag-item .item-icon {
  width: 2.75rem;
  height: 2.75rem;
}

/* Feature portrait: Equipar / Receitas / Fundir / loadout */
.upgrade .u-icon {
  grid-row: 1 / span 6;
  align-self: start;
  padding-top: 0.05rem;
}

.upgrade:has(.u-icon) {
  grid-template-columns: auto 1fr auto;
  gap: 0.2rem 0.7rem;
}

.upgrade:has(.u-icon) .u-desc,
.upgrade:has(.u-icon) .u-cmp,
.upgrade:has(.u-icon) .u-rank {
  grid-column: 2 / -1;
}

/* Receitas: nome em largura total; status (FORJAR/FALTA) no rodapé com os requisitos */
.upgrade[data-recipe]:has(.u-icon) .u-name {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: center;
}

.upgrade[data-recipe]:has(.u-icon) .u-icon {
  grid-column: 1;
  grid-row: 2 / span 5;
  padding-top: 0.2rem;
}

.upgrade[data-recipe]:has(.u-icon) .u-desc,
.upgrade[data-recipe]:has(.u-icon) .u-cmp,
.upgrade[data-recipe]:has(.u-icon) .u-foot {
  grid-column: 2 / -1;
}

.upgrade[data-recipe] .u-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-top: 0.1rem;
  min-width: 0;
}

.upgrade[data-recipe] .u-foot .u-rank {
  flex: 1 1 12rem;
  min-width: 0;
}

.upgrade[data-recipe] .u-foot .u-cost {
  flex: 0 0 auto;
  margin-left: auto;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Inventário Equipar — ficha em linhas + ações à direita */
.upgrade.gear-card:has(.gear-sheet) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem 0.65rem;
  align-items: start;
}

.upgrade.gear-card:has(.gear-sheet) .gear-sheet {
  grid-column: 1;
}

.upgrade.gear-card:has(.gear-sheet) .u-actions {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
  flex-direction: column;
  align-items: stretch;
}

.upgrade.gear-card:has(.gear-sheet) .u-cmp {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 0;
}

.upgrade.gear-card .gs-portrait .u-icon,
.upgrade.gear-card .gs-portrait .gear-portrait,
.upgrade.gear-card .gs-portrait .item-icon {
  width: 3.25rem;
  height: 3.25rem;
}

.upgrade .u-icon .item-icon,
.upgrade .u-icon .gear-portrait {
  width: 3.25rem;
  height: 3.25rem;
}

.item-icon {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background-color: #07080a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
  vertical-align: middle;
}

.gear-portrait {
  position: relative;
  display: inline-block;
  line-height: 0;
  flex-shrink: 0;
}

.gear-portrait .item-icon {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.gear-portrait.refine-low::after,
.gear-portrait.refine-mid::after,
.gear-portrait.refine-high::after {
  content: none;
}

.ash-refine-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.gear-refine-electric {
  --refine-bolt: #fbbf24;
  --refine-bolt-soft: rgba(251, 191, 36, 0.55);
  --refine-bolt-hot: #fde68a;
  position: absolute;
  inset: -4px;
  border-radius: 7px;
  pointer-events: none;
  z-index: 1;
}

.gear-portrait.refine-low .gear-refine-electric {
  --refine-bolt: #f59e0b;
  --refine-bolt-soft: rgba(245, 158, 11, 0.45);
  --refine-bolt-hot: #fbbf24;
}

.gear-portrait.refine-high .gear-refine-electric {
  --refine-bolt: #fde047;
  --refine-bolt-soft: rgba(253, 224, 71, 0.65);
  --refine-bolt-hot: #fff7ed;
}

.gear-refine-electric .gre-stroke {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1.75px solid var(--refine-bolt);
  filter: url(#ash-refine-turbulence);
  opacity: 0.95;
}

.gear-refine-electric .gre-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.gear-refine-electric .gre-glow-soft {
  border: 1.5px solid var(--refine-bolt-soft);
  filter: blur(2.5px);
  opacity: 0.85;
}

.gear-refine-electric .gre-glow-hot {
  border: 1px solid var(--refine-bolt-hot);
  filter: blur(1px);
  opacity: 0.7;
}

.gear-portrait.mark-clash .gre-stroke {
  border-color: #fff7ed;
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.55);
}

.gear-portrait.mark-clash .gre-glow-hot {
  border-color: #e9d5ff;
  opacity: 1;
}

.gear-mark-pip {
  position: absolute;
  left: 0;
  top: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
  border: 1px solid rgba(233, 213, 255, 0.9);
  background: radial-gradient(circle at 35% 30%, #f3e8ff 0%, #a78bfa 45%, #5b21b6 100%);
  box-shadow: 0 0 6px 1px rgba(167, 139, 250, 0.85);
}

.gear-mark-pip.strong {
  border-color: #faf5ff;
  box-shadow: 0 0 9px 2px rgba(196, 160, 232, 0.95);
}

.gear-mark-clash-svg {
  position: absolute;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}

.gear-mark-clash-svg .bolt-gold.bolt-glow {
  stroke: #fbbf24;
  stroke-width: 2.1;
  opacity: 0.55;
  filter: blur(0.6px) drop-shadow(0 0 3px rgba(251, 191, 36, 0.9));
  animation: bolt-flash 0.32s ease-out forwards;
}

.gear-mark-clash-svg .bolt-gold.bolt-core {
  stroke: #fffbeb;
  stroke-width: 0.75;
  filter: drop-shadow(0 0 1px #fde68a);
  animation: bolt-flash 0.32s ease-out forwards;
}

.gear-mark-clash-svg .bolt-void.bolt-glow {
  stroke: #7c3aed;
  stroke-width: 2;
  opacity: 0.5;
  filter: blur(0.6px) drop-shadow(0 0 3px rgba(167, 139, 250, 0.95));
  animation: bolt-flash 0.32s ease-out 0.02s forwards;
}

.gear-mark-clash-svg .bolt-void.bolt-core {
  stroke: #f3e8ff;
  stroke-width: 0.7;
  filter: drop-shadow(0 0 1px #c4a0e8);
  animation: bolt-flash 0.32s ease-out 0.02s forwards;
}

.gear-mark-clash-svg .bolt-branch.bolt-glow {
  stroke-width: 1.5;
}

.gear-mark-clash-svg .bolt-branch.bolt-core {
  stroke-width: 0.55;
}

@keyframes bolt-flash {
  0% {
    opacity: 1;
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.gs-portrait .gear-portrait,
.upgrade .u-icon .gear-portrait {
  width: 3.25rem;
  height: 3.25rem;
}

.loadout-slot .gs-portrait .gear-portrait {
  width: 3.4rem;
  height: 3.4rem;
}

.item-icon.rarity-common { border-color: rgba(183, 177, 166, 0.55); }
.item-icon.rarity-rare { border-color: rgba(96, 165, 250, 0.85); box-shadow: 0 0 6px rgba(96, 165, 250, 0.25); }
.item-icon.rarity-epic { border-color: rgba(192, 132, 252, 0.85); box-shadow: 0 0 6px rgba(192, 132, 252, 0.25); }
.item-icon.rarity-legendary { border-color: rgba(232, 93, 4, 0.9); box-shadow: 0 0 6px rgba(232, 93, 4, 0.3); }
.item-icon.rarity-mythic { border-color: rgba(244, 114, 182, 0.9); box-shadow: 0 0 6px rgba(244, 114, 182, 0.3); }
.item-icon.rarity-ascendant { border-color: rgba(52, 211, 153, 0.9); box-shadow: 0 0 6px rgba(52, 211, 153, 0.28); }
.item-icon.rarity-transcendent { border-color: rgba(34, 211, 238, 0.9); box-shadow: 0 0 6px rgba(34, 211, 238, 0.28); }
.item-icon.rarity-divine { border-color: rgba(251, 191, 36, 0.95); box-shadow: 0 0 7px rgba(251, 191, 36, 0.35); }
.item-icon.rarity-eternal {
  border-color: #a78bfa;
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.45);
}

/* Materiais inline: zonas + requisitos de receita */
.z-drop .item-icon {
  width: 1.85rem;
  height: 1.85rem;
}

.need-chip .item-icon {
  width: 1.55rem;
  height: 1.55rem;
}

/* Ícone inline residual (ex.: Sinal de Caçada) */
.u-name .item-icon {
  width: 1.85rem;
  height: 1.85rem;
  margin-right: 0.2rem;
}

.upgrade .u-name {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  min-width: 0;
}

.upgrade .u-item-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex-wrap: wrap;
}

.upgrade .u-item-label {
  min-width: 0;
}

.upgrade .u-name .gear-tag,
.upgrade .u-name .rarity {
  margin-left: 0;
  flex-shrink: 0;
}

.bag-item .name {
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bag-item .qty {
  font-weight: 600;
  font-size: 0.85rem;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg2);
  border: 1px solid var(--ember);
  color: var(--text);
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  line-height: 1.4;
  z-index: 30;
  animation: rise 0.3s var(--ease);
  max-width: min(92vw, 360px);
  max-height: min(42vh, 11rem);
  overflow-x: hidden;
  overflow-y: auto;
  text-align: center;
  word-break: break-word;
  box-sizing: border-box;
}

.toast .res-ico,
.toast .res-ico-sm {
  display: inline-block;
  vertical-align: -0.12em;
  margin: 0 0.06em;
  flex: none;
}

.toast-ask {
  display: grid;
  gap: 0.65rem;
  z-index: 35;
  max-width: min(92vw, 380px);
}

.toast-ask[hidden] {
  display: none;
}

.toast-ask-msg {
  margin: 0;
  white-space: pre-line;
}

.toast-ask-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.toast-ask-actions .btn {
  min-width: 5.5rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
}

.wb-banner {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(232, 93, 4, 0.45);
  border-radius: var(--radius);
  background: rgba(232, 93, 4, 0.08);
  display: grid;
  gap: 0.35rem;
}
.wb-banner .bar {
  height: 8px;
}
.wb-banner .gear-act {
  justify-self: start;
}

@keyframes rise {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 860px) {
  .stat-line,
  #hunt-stat-line.hs-grid {
    justify-content: space-between;
    gap: 0.75rem 1rem;
    width: 100%;
  }

  .game-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    align-items: center;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.5rem;
    background: rgba(10, 11, 14, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  }

  .account-btn {
    display: none !important;
  }

  .game-header.nav-open .game-nav .nav-account,
  .game-nav .nav-account {
    display: block;
  }

  .resource-vals {
    gap: 0.35rem 0.65rem;
    font-size: 0.78rem;
  }

  .presence-online:not(.presence-online-nav) {
    display: none !important;
  }

  .presence-online-nav:not([hidden]) {
    display: inline-flex;
    align-self: stretch;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 0.15rem;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius);
    border-color: rgba(232, 93, 4, 0.22);
    gap: 0.45rem;
  }

  .presence-online-nav .presence-lbl {
    display: inline;
  }

  .presence-online-nav .presence-n {
    font-size: 0.85rem;
  }

  .presence-online {
    padding: 0.18rem 0.42rem 0.18rem 0.35rem;
    gap: 0.28rem;
  }

  .presence-n {
    font-size: 0.68rem;
  }

  .presence-lbl {
    display: none;
  }

  #stat-kills::after {
    content: "";
  }

  .hunt-controls {
    width: 100%;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0.1rem 0 0.45rem;
  }

  .combat-kits {
    flex: none;
    flex-direction: column;
    align-self: stretch;
    margin-left: 0;
    width: 100%;
    max-width: none;
    gap: 0.4rem;
  }

  .spell-slot {
    width: 100%;
  }

  .spell-slot-btn {
    width: 100%;
  }

  .spell-slot-btn .spell-icon {
    width: 3.5rem;
    height: 3.5rem;
  }

  .heal-stack {
    flex: none;
    flex-direction: row;
    align-items: center;
    align-self: stretch;
    margin-left: 0;
    width: 100%;
    max-width: none;
    min-width: 0;
    gap: 0.5rem;
    justify-content: space-between;
  }

  .heal-potion-slot {
    flex: 1 1 auto;
    min-width: 0;
  }

  .heal-slot-btn {
    width: 100%;
    min-height: 0;
  }

  .heal-slot-btn .heal-potion-icon {
    width: 3.5rem;
    height: 3.5rem;
  }

  .hunt-controls .btn.primary,
  .stage .hunt-controls .btn.primary {
    flex: none;
    width: 100%;
    min-height: 2.75rem;
  }

  .heal-stack .auto-heal,
  .auto-heal {
    flex: 0 0 auto;
    justify-content: center;
    min-height: 0;
    padding: 0.15rem 0.25rem 0.15rem 0.65rem;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: transparent;
    font-size: 0.72rem;
    color: var(--text-dim);
  }

  .auto-heal input[type="range"] {
    width: min(5.5rem, 28vw);
    height: 1.2rem;
  }

  .layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    min-height: 0;
  }

  .status-strip,
  .stage,
  .manage {
    grid-area: auto;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .manage-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto auto;
    grid-template-areas:
      "hunt zones protocol bosses"
      "season season mercado mercado";
    flex-wrap: unset;
    align-items: stretch;
    border-bottom: none;
    border-top: 1px solid var(--line);
    background: rgba(10, 11, 14, 0.96);
    backdrop-filter: blur(10px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  }

  .manage-tab {
    flex: unset;
    min-width: 0;
    font-size: 0.72rem;
    padding: 0.62rem 0.2rem;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
  }

  .manage-tab[data-manage="hunt"] {
    grid-area: hunt;
  }
  .manage-tab[data-manage="zones"] {
    grid-area: zones;
  }
  .manage-tab[data-manage="protocol"] {
    grid-area: protocol;
  }
  .manage-tab[data-manage="bosses"] {
    grid-area: bosses;
  }
  .manage-tab[data-manage="season"] {
    grid-area: season;
  }
  .manage-tab[data-manage="mercado"] {
    grid-area: mercado;
  }

  .manage-tab.active {
    border-bottom-color: transparent;
    border-top: 2px solid var(--ember);
    background: rgba(232, 93, 4, 0.1);
  }

  .idle-app {
    padding-top: calc(4.15rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
  }

  .toast {
    bottom: calc(6.8rem + env(safe-area-inset-bottom, 0px));
    max-width: min(94vw, 360px);
    max-height: min(38vh, 9.5rem);
    font-size: 0.76rem;
    padding: 0.55rem 0.85rem;
  }

  .strip-bars {
    max-width: none;
  }

  .feed {
    height: 160px;
  }

  .chat-log {
    height: 160px;
  }

  .fighter .mark {
    width: min(100%, 6.75rem);
  }

  .fighter .bar.hp {
    height: 8px;
  }

  .fighter.enemy .fighter-name {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    min-height: 1.2em;
    word-break: break-word;
  }

  .upgrade .u-icon .item-icon,
  .upgrade .u-icon .gear-portrait,
  .gs-portrait .item-icon,
  .gs-portrait .gear-portrait,
  .gs-portrait .ls-ph {
    width: 2.85rem;
    height: 2.85rem;
  }

  .gs-body {
    gap: 0.4rem 0.55rem;
  }

  .bag-item .item-icon {
    width: 2.4rem;
    height: 2.4rem;
  }

  .smelt-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .smelt-toolbar [data-smelt-scrap] {
    grid-column: 1 / -1;
  }

  .smelt-head .item-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-basis: 2.5rem;
  }

  .smelt-controls .u-actions {
    width: 100%;
    flex: 1 1 100%;
  }

  .smelt-controls .u-actions .gear-act {
    flex: 1 1 0;
    min-width: 0;
    min-height: 2.45rem;
    justify-content: center;
    font-size: 0.72rem;
    padding: 0.4rem 0.35rem;
  }

  .stage {
    min-height: 0;
    padding: 1rem 0.9rem 0.9rem;
  }

  /* Caça: status + campo; gestão só na barra */
  body.mobile-hunt .manage {
    border: none;
    background: transparent;
    max-height: 0;
    min-height: 0;
    overflow: visible;
    flex: 0 0 auto;
  }

  body.mobile-hunt .manage-pane {
    display: none !important;
  }

  /* Gestão: tela cheia do painel */
  body.mobile-manage .status-strip,
  body.mobile-manage .stage {
    display: none !important;
  }

  body.mobile-manage .manage {
    flex: 1 1 auto;
    align-self: stretch;
    max-width: none;
    max-height: none;
    min-height: calc(
      100dvh - 4.15rem - env(safe-area-inset-top, 0px) - 6.5rem - env(safe-area-inset-bottom, 0px)
    );
    overflow: hidden;
    margin-left: calc(-1 * clamp(0.9rem, 2.5vw, 1.5rem));
    margin-right: calc(-1 * clamp(0.9rem, 2.5vw, 1.5rem));
    width: auto;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  body.mobile-manage .manage-pane {
    padding: 0.65rem 0.75rem 0.85rem;
    min-width: 0;
    width: 100%;
  }

  body.mobile-manage .manage-pane.active {
    display: flex;
  }

  body.mobile-manage .zone-list,
  body.mobile-manage .upgrade-list {
    width: 100%;
    min-width: 0;
    align-self: stretch;
  }

  body.mobile-manage .daily-streak,
  body.mobile-manage .daily-list,
  body.mobile-manage .daily-quest,
  body.mobile-manage .daily-claim,
  body.mobile-manage .tower-panel,
  body.mobile-manage .bp-sticky,
  body.mobile-manage .bp-tier {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  body.mobile-manage .daily-list {
    flex: 0 0 auto;
  }

  body.nav-lock .manage-nav {
    opacity: 0;
    pointer-events: none;
  }

  .hunt-stats {
    font-size: 0.72rem;
  }

  .versus {
    gap: 0.65rem;
  }
}

@media (min-width: 861px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .idle-app {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    padding-bottom: 0.75rem;
    gap: 0.75rem;
    overflow: hidden;
  }

  .game-header {
    flex-shrink: 0;
  }

  .layout {
    flex: 1 1 auto;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
  }

  .status-strip {
    align-self: stretch;
    width: 100%;
    flex-shrink: 0;
  }

  .stage {
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .stage-head,
  .versus,
  .hunt-controls,
  .hunt-stats,
  #zone-hint {
    flex-shrink: 0;
  }

  .feed-block {
    flex: 1 1 auto;
    min-height: 11rem;
    margin-top: 0.2rem;
    padding-top: 0.35rem;
  }

  .feed-head,
  .chat-form,
  #chat-status {
    flex-shrink: 0;
  }

  .feed,
  .chat-panel {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }

  .chat-log {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }

  .manage {
    min-height: 0;
    max-height: none;
    height: 100%;
  }

  .manage-tab-hunt {
    display: none !important;
  }

  .hunt-controls {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    width: 100%;
    margin: 0.15rem 0 0.1rem;
  }

  .heal-stack {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: 0;
    width: max-content;
    max-width: min(100%, 24rem);
    justify-content: flex-start;
  }

  .combat-kits {
    margin-left: auto;
    width: max-content;
    max-width: min(100%, 36rem);
  }

  .stage .hunt-controls .btn.primary {
    flex: 0 0 auto;
    padding: 0.5rem 1.2rem;
    font-size: 0.86rem;
  }

  .heal-slot-btn .heal-potion-icon,
  .spell-slot-btn .spell-icon {
    width: 3.35rem;
    height: 3.35rem;
  }

  .heal-stack .auto-heal,
  .auto-heal {
    padding: 0.15rem 0.1rem 0.15rem 0.55rem;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: transparent;
    font-size: 0.72rem;
    color: var(--text-dim);
  }

  .auto-heal input[type="range"] {
    width: 64px;
  }

  .fighter .mark {
    width: min(100%, 7.5rem);
  }

  .fighter .mark::after {
    font-size: 2.15rem;
  }

  .fighter .bar.hp {
    height: 10px;
  }

  .stage-title {
    font-size: 1.25rem;
  }

  body.nav-lock {
    overflow: hidden;
  }

  body.nav-lock::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .resource-vals {
    gap: 0.28rem 0.5rem;
    font-size: 0.74rem;
  }
  .stage-title {
    font-size: 1.25rem;
  }
}

/* Multi-tab lock */
.tab-lock {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(6, 7, 10, 0.78);
  backdrop-filter: blur(6px);
}

.tab-lock[hidden] {
  display: none !important;
}

.tab-lock-card {
  width: min(100%, 26rem);
  padding: 1.35rem 1.25rem 1.3rem;
  border: 1px solid rgba(42, 47, 60, 0.95);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(25, 28, 36, 0.98), rgba(14, 16, 22, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 0.65rem;
  text-align: center;
}

.tab-lock-kicker {
  margin: 0;
  font-family: var(--font-display, Syne, sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember, #e85d04);
}

.tab-lock-card h2 {
  margin: 0;
  font-family: var(--font-display, Syne, sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
}

.tab-lock-card p {
  margin: 0;
  color: var(--fog, #6b7280);
  font-size: 0.88rem;
  line-height: 1.5;
}

.tab-lock-card .btn {
  margin-top: 0.35rem;
  justify-self: center;
  min-width: 10rem;
}
