 :root {
  --bg: #020202;
  --header-h: 78px;
  --red: #7b0808;
  --red-bright: #b21313;
  --green: #19e83f;
  --gold: #b7a77e;
  --text: #d7d1c3;
  --muted: #837b6e;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

button,
input { font: inherit; }

.page {
  min-height: 100vh;
  width: 100vw;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: visible;
  padding-top: var(--header-h);
  background: #010101;
}

.background-art {
  position: absolute;
  inset: var(--header-h) 0 0;
  z-index: -20;
  background-image: url("assets/cathedral-bg.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: contrast(1.16) saturate(1.04) brightness(1.08);
}

.background-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0.00), rgba(0,0,0,0.10) 46%, rgba(0,0,0,0.48) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.06) 54%, rgba(0,0,0,0.42) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.58), transparent 13%, transparent 87%, rgba(0,0,0,0.58));
}

.background-vignette {
  position: absolute;
  inset: var(--header-h) 0 0;
  z-index: -18;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 0 42%, rgba(0,0,0,0.28) 74%, rgba(0,0,0,0.62) 100%),
    radial-gradient(ellipse at 50% 88%, rgba(0,0,0,0.00), rgba(0,0,0,0.42) 64%, rgba(0,0,0,0.82) 100%),
    radial-gradient(ellipse at 50% 18%, rgba(94,8,8,0.18), transparent 38%);
}

.background-atmosphere {
  position: absolute;
  inset: var(--header-h) 0 0;
  z-index: -17;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 0% 47%, rgba(164, 9, 9, 0.24), transparent 16%),
    radial-gradient(ellipse at 100% 47%, rgba(164, 9, 9, 0.24), transparent 16%),
    radial-gradient(ellipse at 50% 24%, rgba(116, 9, 9, 0.15), transparent 34%),
    radial-gradient(ellipse at 50% 77%, rgba(210, 205, 190, 0.07), transparent 30%);
  mix-blend-mode: screen;
  opacity: 0.85;
}

.background-floor-fade {
  position: absolute;
  inset: var(--header-h) 0 0;
  z-index: -16;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0 58%, rgba(0,0,0,0.18) 76%, rgba(0,0,0,0.62) 100%),
    radial-gradient(ellipse at 50% 86%, rgba(160, 150, 130, 0.06), transparent 34%);
}

@media (min-aspect-ratio: 21/10) {
  .background-art {
    background-size: 100% 100%;
  }
}


.topbar {
  height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(390px, 1fr) 340px minmax(470px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  background:
    radial-gradient(ellipse at 50% 115%, rgba(118, 8, 8, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(12,12,12,0.985), rgba(3,3,3,0.965));
  border-bottom: 1px solid rgba(205, 192, 160, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.035),
    inset 0 -1px 0 rgba(120,8,8,0.22),
    0 12px 24px rgba(0,0,0,0.86);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 5000;
}

.topbar::before,
.topbar::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1px;
  pointer-events: none;
}

.topbar::before {
  top: 8px;
  background: linear-gradient(90deg, transparent, rgba(220,210,180,0.20), rgba(112,8,8,0.28), rgba(220,210,180,0.20), transparent);
}

.topbar::after {
  bottom: 7px;
  background: linear-gradient(90deg, transparent, rgba(220,210,180,0.30), rgba(148,10,10,0.42), rgba(220,210,180,0.30), transparent);
  box-shadow: 0 0 12px rgba(120,8,8,0.20);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.sigil {
  width: 64px;
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
  background:
    radial-gradient(circle, #f01616 0 5%, #740707 6% 13%, #111 14% 34%, transparent 35%),
    conic-gradient(from 0deg, transparent 0 10deg, rgba(215,202,172,0.58) 11deg 13deg, transparent 14deg 42deg),
    radial-gradient(circle, rgba(122,0,0,0.58), rgba(0,0,0,0.72));
  border: 1px solid rgba(218, 206, 176, 0.38);
  box-shadow:
    0 0 26px rgba(116,0,0,0.36),
    inset 0 0 24px rgba(0,0,0,0.92);
}

.sigil::before,
.sigil::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(218, 207, 178, 0.28);
  transform: rotate(45deg);
}

.sigil::after {
  inset: 20px;
  background: linear-gradient(135deg, transparent 18%, rgba(245,30,30,0.86), transparent 82%);
  border-color: rgba(255, 30, 30, 0.48);
  box-shadow: 0 0 16px rgba(180, 5, 5, 0.62);
}

.brand-copy small {
  display: block;
  letter-spacing: 0.20em;
  font-size: 0.72rem;
  color: #cfc3aa;
  text-shadow: 0 0 12px #000;
  white-space: nowrap;
}

.brand-copy strong {
  display: block;
  margin-top: 4px;
  letter-spacing: 0.18em;
  font-size: clamp(0.96rem, 1.18vw, 1.34rem);
  font-weight: 600;
  color: transparent;
  background:
    linear-gradient(180deg,
      #fbf8f0 0%,
      #eadfc7 30%,
      #b7a07f 52%,
      #f8efdf 62%,
      #9d8768 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0.70px rgba(10, 10, 10, 0.82);
  text-shadow: 0 2px 14px #000, 0 0 16px rgba(112,8,8,0.32);
  white-space: nowrap;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 58px;
  letter-spacing: 0.24em;
  font-size: 0.93rem;
}

.nav a {
  color: #d8d0bd;
  text-decoration: none;
  position: relative;
  padding: 24px 6px 20px;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.nav a::before {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(175,12,12,0.78), transparent);
  transition: left 180ms ease, right 180ms ease;
}

.nav a:hover,
.nav a.active {
  color: white;
  text-shadow: 0 0 15px rgba(190, 20, 20, 0.66);
}

.nav a:hover::before,
.nav a.active::before {
  left: 0;
  right: 0;
}

.nav a.active::after {
  content: "◆";
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  color: var(--red-bright);
  font-size: 0.58rem;
  text-shadow: 0 0 12px rgba(255, 0, 0, 0.9);
}

.account {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  color: #d6cdbb;
  min-width: 0;
}

.username {
  font-size: 0.84rem;
  white-space: nowrap;
  color: #cfc5b4;
  opacity: 0.92;
  padding-right: 8px;
  text-shadow: 0 0 10px #000;
}

.account-user-badge {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px 0 10px;
  color: #e8ddc8;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 50%, rgba(52, 167, 255, 0.20), transparent 36%),
    linear-gradient(180deg, rgba(19, 23, 27, 0.92), rgba(4, 5, 7, 0.96));
  border: 1px solid rgba(72, 176, 255, 0.40);
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    inset 0 -12px 20px rgba(0,0,0,0.45),
    0 0 16px rgba(22, 123, 214, 0.16),
    0 10px 18px rgba(0,0,0,0.34);
}

.account-user-badge::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border: 1px solid rgba(205, 192, 160, 0.10);
  clip-path: inherit;
}

.account-user-badge::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 5px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(76, 184, 255, 0.72), rgba(165, 225, 255, 0.42), transparent);
  box-shadow: 0 0 12px rgba(45, 168, 255, 0.42);
}

.account-bnet-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #85d8ff;
  filter: drop-shadow(0 0 8px rgba(35, 164, 255, 0.80));
}

.account-bnet-icon svg {
  width: 24px;
  height: 24px;
  overflow: visible;
}

.account-bnet-icon path:first-child {
  fill: rgba(13, 112, 202, 0.36);
  stroke: #2fb5ff;
  stroke-width: 1.65;
  stroke-linejoin: round;
}

.account-bnet-icon path:last-child {
  fill: none;
  stroke: #b6ecff;
  stroke-width: 1.45;
  stroke-linecap: round;
  opacity: 0.96;
}

.account-user-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  line-height: 1;
}

.account-user-label {
  font-size: 0.54rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(203, 218, 226, 0.62);
}

.account-user-badge .username {
  display: block;
  padding: 0;
  font-size: 0.86rem;
  line-height: 1.12;
  letter-spacing: 0.045em;
  color: #f3ead6;
  opacity: 1;
  text-shadow: 0 0 9px #000, 0 0 10px rgba(34, 168, 255, 0.22);
  white-space: nowrap;
}

.account-user-badge:hover {
  border-color: rgba(108, 204, 255, 0.70);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -12px 20px rgba(0,0,0,0.45),
    0 0 20px rgba(32, 160, 255, 0.24),
    0 10px 18px rgba(0,0,0,0.34);
}

.metal-btn {
  cursor: pointer;
  color: #e4d9c8;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035), transparent 16%, rgba(255,255,255,0.055) 50%, transparent 84%, rgba(255,255,255,0.035)),
    linear-gradient(180deg, rgba(30,30,30,0.82), rgba(5,5,5,0.94));
  border: 1px solid rgba(203, 192, 162, 0.34);
  min-height: 38px;
  padding: 0 20px;
  position: relative;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -12px 18px rgba(0,0,0,0.40),
    0 10px 18px rgba(0,0,0,0.32);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.metal-btn::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(132,10,10,0.55), transparent);
  pointer-events: none;
}

.metal-btn:hover,
.metal-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(222, 208, 174, 0.64);
  color: #fff;
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    inset 0 -12px 18px rgba(0,0,0,0.36),
    0 0 18px rgba(113,6,6,0.34),
    0 12px 20px rgba(0,0,0,0.42);
  outline: none;
}

.hero {
  min-height: calc(100vh - var(--header-h));
  padding: clamp(14px, 1.7vw, 26px) 24px 42px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 15vw) minmax(720px, 1fr) minmax(170px, 15vw);
  align-items: center;
  gap: 24px;
  z-index: 2;
}

.bazaar {
  width: min(180px, 12vw);
  height: min(520px, 58vh);
  justify-self: center;
  position: relative;
  opacity: 0.78;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,0.9));
}

.bazaar.right { transform: scaleX(-1); }

.bazaar .crown {
  position: absolute;
  top: 0;
  left: 50%;
  width: 116px;
  height: 126px;
  transform: translateX(-50%);
  border: 1px solid rgba(187,181,166,0.42);
  clip-path: polygon(50% 0%, 63% 29%, 87% 18%, 79% 54%, 98% 72%, 64% 72%, 50% 100%, 36% 72%, 2% 72%, 21% 54%, 13% 18%, 37% 29%);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08), transparent 18% 82%, rgba(255,255,255,0.07)),
    linear-gradient(180deg, #0f0f0f, #050505);
}

.bazaar .crown::after {
  content: "";
  position: absolute;
  inset: 26px 34px;
  border-left: 1px solid rgba(210, 202, 180, 0.34);
  border-right: 1px solid rgba(210, 202, 180, 0.24);
  transform: skewX(-10deg);
}

.bazaar .shaft {
  position: absolute;
  top: 86px;
  left: 50%;
  width: 22px;
  height: calc(100% - 144px);
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.18), #080808 22% 74%, rgba(255,255,255,0.08)),
    repeating-linear-gradient(180deg, transparent 0 48px, rgba(194,183,158,0.14) 50px, transparent 52px);
  border-left: 1px solid rgba(189, 181, 155, 0.34);
  border-right: 1px solid rgba(189, 181, 155, 0.2);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.82);
}

.bazaar .thorns {
  position: absolute;
  inset: 135px 0 78px;
  background:
    linear-gradient(36deg, transparent 0 47%, rgba(189,181,155,0.32) 48% 49%, transparent 50%),
    linear-gradient(-36deg, transparent 0 47%, rgba(189,181,155,0.26) 48% 49%, transparent 50%);
  background-size: 82px 82px;
  opacity: 0.75;
  mask-image: linear-gradient(90deg, transparent, #000 35% 65%, transparent);
}

.bazaar .base {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 150px;
  height: 78px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 0, rgba(185,176,152,0.16), transparent 55%),
    linear-gradient(180deg, #121212, #060606);
  border: 1px solid rgba(186,176,149,0.3);
  clip-path: polygon(50% 0, 62% 30%, 88% 38%, 100% 100%, 0 100%, 12% 38%, 38% 30%);
  box-shadow: inset 0 0 24px rgba(0,0,0,0.86);
}

.hero-center {
  width: min(1220px, 100%);
  justify-self: center;
  text-align: center;
  position: relative;
  margin-top: 6px;
}

.crest-stack {
  position: relative;
  width: fit-content;
  margin: 0 auto -18px;
  isolation: isolate;
  pointer-events: none;
}

.meph-aura {
  position: absolute;
  left: 50%;
  top: 54%;
  width: clamp(980px, 82vw, 1480px);
  height: clamp(980px, 82vw, 1480px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.88;
  filter: drop-shadow(0 0 30px rgba(130, 6, 6, 0.20));
  border-radius: 50%;
  overflow: hidden;
}

.meph-aura-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.hero-center > :not(.crest-stack) {
  position: relative;
  z-index: 5;
}

.aura-layer {
  transform-origin: 500px 500px;
}

.aura-rings {
  animation: auraSpin 120s linear infinite;
}

.aura-radials {
  animation: auraSpinReverse 80s linear infinite;
}

.aura-geometry {
  animation: auraSpin 64s linear infinite;
}

.aura-glyphs {
  animation: auraSpinReverse 168s linear infinite;
}

.aura-thorns {
  animation: auraSpin 44s linear infinite;
}

.aura-core {
  animation: auraPulse 7s ease-in-out infinite;
}

@keyframes auraSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes auraSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes auraPulse {
  0%, 100% { opacity: 0.72; transform: scale(0.985); }
  50% { opacity: 1; transform: scale(1.02); }
}



h1.title-lockup {
  margin: 18px auto 0;
  font-weight: 600;
  font-size: clamp(1.95rem, 3.35vw, 4.05rem);
  line-height: 0.92;
  color: #d8d2c8;
  text-transform: uppercase;
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: clamp(0.07em, 0.32vw, 0.14em);
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.86),
    0 2px 0 rgba(24,24,24,0.96),
    0 4px 18px rgba(0,0,0,0.88),
    0 0 22px rgba(118, 8, 8, 0.26);
}

h1.title-lockup::before,
h1.title-lockup::after {
  content: "";
  position: absolute;
  top: 50%;
  width: min(11vw, 136px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210, 195, 160, 0.44), transparent);
  opacity: 0.52;
  transform: translateY(-50%);
  pointer-events: none;
}

h1.title-lockup::before {
  right: calc(100% + 14px);
}

h1.title-lockup::after {
  left: calc(100% + 14px);
}

.title-word {
  position: relative;
  display: inline-block;
  padding: 0.02em 0.015em 0.08em;
  letter-spacing: clamp(0.04em, 0.28vw, 0.08em);
  color: transparent;
  background:
    linear-gradient(180deg,
      #fffdf7 0%,
      #f4ede0 20%,
      #d3c2a8 39%,
      #8f7760 48%,
      #f7eee0 60%,
      #b58d6c 72%,
      #6b5347 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(18, 16, 14, 0.86);
  filter: drop-shadow(0 5px 0 rgba(14,14,14,0.92));
}

.title-word::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 52%;
  height: 32%;
  background: linear-gradient(180deg, rgba(120,10,10,0.00), rgba(120,10,10,0.16) 35%, rgba(40,5,5,0.22) 100%);
  filter: blur(8px);
  opacity: 0.5;
  pointer-events: none;
}

.title-word::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0.04em;
  height: 0.04em;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(214,26,26,0.54), rgba(255,238,220,0.28), rgba(214,26,26,0.54), transparent);
  box-shadow: 0 0 10px rgba(138,8,8,0.26);
  opacity: 0.68;
  pointer-events: none;
}

.title-diablo {
  transform: translateX(0);
  background:
    linear-gradient(180deg,
      #fffdf7 0%,
      #efe6d8 20%,
      #c8b69b 40%,
      #7d6858 49%,
      #efe7dc 62%,
      #b28767 76%,
      #654e43 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.title-trade {
  transform: translateX(0);
  background:
    linear-gradient(180deg,
      #fffaf0 0%,
      #ede1cf 19%,
      #c8b093 38%,
      #7a6352 48%,
      #f7e6dc 60%,
      #b97362 76%,
      #5d433e 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.title-rule {
  height: 1px;
  width: min(700px, 72%);
  margin: 13px auto 0;
  position: relative;
  background:
    linear-gradient(90deg, transparent, rgba(228, 216, 186, 0.52), rgba(228, 216, 186, 0.66) 50%, rgba(228, 216, 186, 0.52) 82%, transparent),
    linear-gradient(90deg, transparent, rgba(118, 9, 9, 0.28), rgba(118, 9, 9, 0.44) 50%, rgba(118, 9, 9, 0.28), transparent);
  box-shadow: 0 0 14px rgba(122, 10, 10, 0.14);
  transform: none;
}

.title-rule::after {
  content: "◆";
  position: absolute;
  top: -7px;
  left: calc(50% - 1px);
  transform: translateX(-50%);
  color: var(--red-bright);
  font-size: 12px;
  text-shadow: 0 0 14px rgba(255,0,0,0.85);
}

.cta-wrap { margin-top: 28px; display: flex; justify-content: center; }

.enter-btn {
  width: min(372px, 80vw);
  min-height: 68px;
  color: #eadfce;
  letter-spacing: 0.17em;
  font-size: 1.18rem;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(221, 209, 178, 0.42);
  background:
    linear-gradient(90deg, rgba(0,0,0,0.35), transparent 16%, rgba(255,255,255,0.10) 50%, transparent 84%, rgba(0,0,0,0.35)),
    radial-gradient(ellipse at 50% 0%, rgba(201, 35, 35, 0.42), transparent 54%),
    linear-gradient(180deg, rgba(112, 9, 9, 0.96), rgba(58, 4, 4, 0.98) 54%, rgba(24, 2, 2, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -18px 28px rgba(0,0,0,0.58),
    inset 0 0 34px rgba(0,0,0,0.82),
    0 18px 36px rgba(0,0,0,0.58),
    0 0 30px rgba(138,4,4,0.36);
  position: relative;
  clip-path: polygon(6% 0, 94% 0, 100% 50%, 94% 100%, 6% 100%, 0 50%);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.enter-btn::before,
.enter-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 218, 185, 0.72), transparent);
  box-shadow: 0 0 10px rgba(214, 30, 30, 0.42);
}

.enter-btn::before {
  left: 18px;
  transform: translateY(-50%);
}

.enter-btn::after {
  right: 18px;
  transform: translateY(-50%) scaleX(-1);
}

.enter-btn:hover,
.enter-btn:focus-visible {
  transform: translateY(-2px) scale(1.018);
  filter: brightness(1.17);
  border-color: rgba(235, 221, 188, 0.70);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    inset 0 -18px 28px rgba(0,0,0,0.55),
    inset 0 0 34px rgba(0,0,0,0.76),
    0 22px 42px rgba(0,0,0,0.66),
    0 0 42px rgba(190,9,9,0.54);
  outline: none;
}

.live-line {
  margin: 28px auto 18px;
  width: min(690px, 88vw);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #cfc098;
  letter-spacing: 0.215em;
  text-transform: uppercase;
  font-size: 0.92rem;
  position: relative;
  text-shadow: 0 0 12px rgba(0,0,0,0.9);
}

.live-line::before,
.live-line::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 190px;
  background:
    linear-gradient(90deg, transparent, rgba(198, 185, 150, 0.52) 55%, rgba(126, 8, 8, 0.48), transparent),
    linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  box-shadow: 0 0 14px rgba(128, 7, 7, 0.25);
}

.live-line::after {
  transform: scaleX(-1);
}

.live-line span:last-child::before,
.live-line span:last-child::after {
  content: "◆";
  color: rgba(180, 12, 12, 0.82);
  font-size: 0.52rem;
  padding: 0 10px;
  text-shadow: 0 0 12px rgba(255,0,0,0.54);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green), 0 0 24px rgba(25,232,63,0.42);
  animation: pulse 1.7s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.82; }
  50% { transform: scale(1.45); opacity: 1; }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0 auto;
  max-width: 1080px;
}

.market-card {
  min-height: 182px;
  background:
    radial-gradient(circle at 50% 0, rgba(255,255,255,0.045), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(130, 8, 8, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(14,15,15,0.92), rgba(5,5,5,0.96));
  border: 1px solid rgba(214, 204, 175, 0.38);
  position: relative;
  overflow: hidden;
  padding: 24px 24px 22px;
  text-align: left;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  box-shadow:
    inset 0 0 36px rgba(0,0,0,0.86),
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 20px 28px rgba(0,0,0,0.40);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  backdrop-filter: blur(2px);
}

.market-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(188, 177, 148, 0.18);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  pointer-events: none;
}

.market-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(198, 188, 160, 0.24) 0 1px, transparent 1px calc(100% - 1px), rgba(198, 188, 160, 0.16) calc(100% - 1px) 100%),
    linear-gradient(180deg, rgba(198, 188, 160, 0.18) 0 1px, transparent 1px calc(100% - 1px), rgba(198, 188, 160, 0.14) calc(100% - 1px) 100%);
  opacity: 0.16;
}

.market-card:hover {
  transform: translateY(-5px);
  filter: brightness(1.03);
  border-color: rgba(232, 220, 190, 0.68);
  box-shadow:
    inset 0 0 38px rgba(0,0,0,0.84),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 26px 34px rgba(0,0,0,0.44),
    0 0 28px rgba(110, 8, 8, 0.20);
}

.market-card h2 {
  margin: 0 0 12px;
  color: #dfd6c4;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.market-card p {
  margin: 0 0 16px;
  color: #8f8779;
  font-size: 0.92rem;
  line-height: 1.5;
}

.search-box { display: flex; gap: 8px; }

.search-box input {
  width: 100%;
  border: 1px solid rgba(168, 158, 132, 0.28);
  background: rgba(0,0,0,0.48);
  color: #dcd3c2;
  padding: 12px 12px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box input:focus {
  border-color: rgba(214, 198, 165, 0.72);
  box-shadow: 0 0 16px rgba(122, 9, 9, 0.34);
}

.mini-btn {
  cursor: pointer;
  border: 1px solid rgba(168, 158, 132, 0.34);
  background: linear-gradient(180deg, rgba(55,6,6,0.9), rgba(22,2,2,0.92));
  color: #e1d7c7;
  padding: 0 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: filter 160ms ease, transform 160ms ease;
}

.mini-btn:hover { filter: brightness(1.2); transform: translateY(-1px); }

.ticker { display: grid; gap: 9px; }

.ticker-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #b8af9d;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(160, 150, 125, 0.14);
  font-size: 0.95rem;
}

.ticker-row strong { color: #d9d0be; font-weight: 500; }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 16px 18px;
  background: rgba(8, 8, 8, 0.94);
  border: 1px solid rgba(195, 183, 154, 0.38);
  color: #ded4c3;
  box-shadow: 0 20px 30px rgba(0,0,0,0.5), 0 0 26px rgba(123,8,8,0.22);
  transform: translateY(22px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 20;
}

.toast.show { opacity: 1; transform: translateY(0); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display: none;
  place-items: center;
  z-index: 30;
  padding: 20px;
}

.modal-backdrop.show { display: grid; }

.modal {
  width: min(620px, 100%);
  background:
    radial-gradient(circle at 50% 0, rgba(110,6,6,0.18), transparent 45%),
    linear-gradient(180deg, rgba(15,15,15,0.98), rgba(4,4,4,0.98));
  border: 1px solid rgba(210, 198, 168, 0.42);
  box-shadow: 0 30px 70px rgba(0,0,0,0.75), inset 0 0 40px rgba(0,0,0,0.8);
  padding: 28px;
  position: relative;
}

.modal h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.modal p,
.modal [data-modal-copy] {
  color: #9d9485;
  line-height: 1.6;
  margin: 0 0 20px;
}

.modal.forge-modal {
  width: min(980px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
}

.listing-forge-form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

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

.listing-forge-form label {
  display: grid;
  gap: 6px;
  color: #c8b890;
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.listing-forge-form input,
.listing-forge-form select,
.listing-forge-form textarea {
  min-height: 38px;
  width: 100%;
  background: #070707;
  border: 1px solid rgba(183, 167, 126, 0.34);
  color: #e7ddca;
  padding: 9px 10px;
  border-radius: 0;
  box-shadow: inset 0 0 18px rgba(0,0,0,0.72);
}

.listing-forge-form textarea {
  min-height: 72px;
  resize: vertical;
}

.listing-forge-form select[multiple] {
  min-height: 150px;
}

.listing-forge-note {
  color: #8f8778;
  font-size: 0.78rem;
  line-height: 1.45;
}

.listing-forge-form label.ocr-uncertain {
  color: #e0b169;
}

.listing-forge-form label.ocr-uncertain input,
.listing-forge-form label.ocr-uncertain select,
.listing-forge-form label.ocr-uncertain textarea {
  border-color: rgba(179, 38, 30, 0.9);
  box-shadow: inset 0 0 18px rgba(0,0,0,0.72), 0 0 0 1px rgba(179,38,30,0.24);
}

.screenshot-intake {
  display: grid;
  gap: 14px;
}

.ocr-state-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ocr-state-chip {
  border: 1px solid rgba(183, 167, 126, 0.28);
  background: #070707;
  color: #7f7769;
  padding: 5px 8px;
  font-size: 0.68rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.ocr-state-chip.is-active {
  color: #e6e0d2;
  border-color: rgba(224, 81, 28, 0.78);
  box-shadow: inset 0 0 12px rgba(125,14,20,0.32), 0 0 14px rgba(125,14,20,0.20);
}

.ocr-status-line {
  min-height: 26px;
  border: 1px solid rgba(183, 167, 126, 0.22);
  background: #060606;
  color: #a99c83;
  padding: 6px 8px;
  font-size: 0.80rem;
}

.screenshot-dropzone {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 190px;
  padding: 18px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(125, 14, 20, 0.16), transparent 48%),
    #070707;
  border: 1px dashed rgba(183, 167, 126, 0.56);
  box-shadow: inset 0 0 24px rgba(0,0,0,0.82);
}

.screenshot-dropzone.is-dragging,
.screenshot-dropzone:focus {
  outline: none;
  border-color: rgba(224, 81, 28, 0.9);
  box-shadow: inset 0 0 24px rgba(0,0,0,0.82), 0 0 22px rgba(125,14,20,0.28);
}

.screenshot-dropzone strong {
  color: #e6e0d2;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.screenshot-dropzone span {
  color: #8f887c;
  font-size: 0.84rem;
}

.screenshot-preview {
  border: 1px solid rgba(183, 167, 126, 0.34);
  background: #050505;
  padding: 10px;
  text-align: center;
}

.screenshot-preview img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.ocr-preprocess-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border: 1px solid rgba(183, 167, 126, 0.22);
  background: #060606;
  padding: 8px 10px;
}

.ocr-preprocess-controls label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a99c83;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ocr-preprocess-controls .mini-btn {
  margin-left: auto;
  min-height: 30px;
  padding: 5px 10px;
}

.ocr-debug-preview {
  border-style: dashed;
}

.ocr-textarea-label {
  display: grid;
  gap: 6px;
  color: #c8b890;
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.ocr-textarea-label textarea {
  min-height: 120px;
  background: #070707;
  border: 1px solid rgba(183, 167, 126, 0.34);
  color: #e7ddca;
  padding: 10px;
}

.ocr-actions {
  margin-top: 0;
}

.my-listings-manager {
  display: grid;
  gap: 12px;
}

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

.my-listing-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.65fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(183, 167, 126, 0.28);
  background:
    radial-gradient(circle at 0 0, rgba(125, 14, 20, 0.10), transparent 42%),
    #070707;
  padding: 10px;
}

.my-listing-main,
.my-listing-meta {
  display: grid;
  gap: 3px;
}

.my-listing-main strong {
  color: #e6e0d2;
  letter-spacing: 0.06em;
}

.my-listing-main span,
.my-listing-meta span {
  color: #9d9485;
  font-size: 0.78rem;
}

.my-listing-meta span:nth-child(2) {
  color: #c9a44d;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.my-listing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.mini-btn.danger {
  border-color: rgba(179, 38, 30, 0.75);
  color: #e3b0a8;
}

@media (max-width: 820px) {
  .listing-forge-grid { grid-template-columns: 1fr; }
  .my-listing-row { grid-template-columns: 1fr; }
  .my-listing-actions { justify-content: flex-start; }
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  :root { --header-h: 84px; }

  .topbar {
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: var(--header-h);
    padding: 8px 14px 12px;
  }

  .nav {
    order: 3;
    grid-column: 1 / -1;
    gap: 44px;
    border-top: 1px solid rgba(180,170,145,0.12);
  }

  .account { gap: 9px; }
  .account-user-badge { height: 38px; padding-inline: 9px 11px; }
  .account-user-badge .username { font-size: 0.78rem; }
  .metal-btn { padding: 0 14px; min-height: 36px; }
  .hero { grid-template-columns: 1fr; }
  .bazaar { display: none; }
  .cards { grid-template-columns: 1fr; max-width: 660px; gap: 22px; }
  .meph-aura { width: clamp(760px, 116vw, 1120px); height: clamp(760px, 116vw, 1120px); top: 54%; }
  
  h1.title-lockup { font-size: clamp(1.72rem, 4.8vw, 3.1rem); gap: clamp(0.05em, 0.24vw, 0.12em); }
  .title-word { letter-spacing: clamp(0.018em, 0.20vw, 0.045em); }
  h1.title-lockup::before,
  h1.title-lockup::after { width: 74px; }
}

@media (max-width: 680px) {
  .brand-copy strong { font-size: 1rem; }
  .brand-copy small { font-size: 0.66rem; }
  .sigil { width: 54px; }
  .account {
    grid-column: 1 / -1;
    justify-content: center;
    flex-wrap: wrap;
  }
  .account-user-badge { order: -1; width: auto; }
  .topbar { grid-template-columns: 1fr; }
  .brand { justify-content: center; }
  h1.title-lockup { font-size: clamp(1.18rem, 5.55vw, 2.02rem); white-space: nowrap; gap: 0.045em; }
  .title-word { letter-spacing: 0.012em; }
  h1.title-lockup::before,
  h1.title-lockup::after { display: none; }
  .hero { padding-inline: 14px; }
  .meph-aura { width: clamp(520px, 160vw, 780px); height: clamp(520px, 160vw, 780px); top: 54%; }
  
  .live-line::before, .live-line::after { max-width: 66px; }
  .live-line span:last-child::before,
  .live-line span:last-child::after { padding: 0 4px; }
}


@media (max-height: 780px) and (min-width: 900px) {
  .hero {
    padding-top: 8px;
    padding-bottom: 28px;
  }

  .meph-aura {
    width: clamp(900px, 76vw, 1320px);
    height: clamp(900px, 76vw, 1320px);
    top: 53%;
  }

  

  h1.title-lockup {
    font-size: clamp(1.88rem, 3.05vw, 3.65rem);
    gap: clamp(0.06em, 0.24vw, 0.12em);
  }

  .title-rule {
    margin-top: 10px;
  }

  .cta-wrap {
    margin-top: 22px;
  }

  .enter-btn {
    min-height: 58px;
    width: min(318px, 80vw);
  }

  .live-line {
    margin-top: 22px;
  }

  .market-card {
    min-height: 158px;
    padding: 18px;
  }

  .market-card h2 {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
}


@media (max-height: 780px) and (min-width: 900px) {
  

  h1.title-lockup {
    margin-top: 2px;
  }
}


@media (max-width: 1180px) {
  h1.title-lockup {
    transform: translateX(-10px);
  }

  .title-rule {
    transform: translateX(-18px);
    width: min(720px, 76%);
  }
}

@media (max-width: 680px) {
  h1.title-lockup {
    transform: translateX(-6px);
  }

  .title-rule {
    transform: translateX(-10px);
    width: min(88vw, 540px);
  }
}


.market-card .mini-btn,
.market-card .search-box input {
  position: relative;
  z-index: 1;
}

.market-card h2 {
  margin: 0 0 14px;
  color: #e6dcc9;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 12px;
  text-shadow: 0 0 12px rgba(0,0,0,0.90);
}

.market-card h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 22%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 200, 170, 0.46), rgba(110, 8, 8, 0.30), transparent);
}

.market-card h2::before {
  content: "◆";
  position: absolute;
  right: 18%;
  bottom: -5px;
  font-size: 0.48rem;
  color: rgba(186, 12, 12, 0.82);
  text-shadow: 0 0 10px rgba(255,0,0,0.52);
}

.market-card p {
  margin: 0 0 17px;
  color: #978f80;
  font-size: 0.92rem;
  line-height: 1.56;
}

.market-card .mini-btn {
  min-height: 38px;
  padding-inline: 16px;
  border: 1px solid rgba(184, 170, 140, 0.34);
  background:
    linear-gradient(180deg, rgba(59,7,7,0.96), rgba(24,2,2,0.98)),
    radial-gradient(circle at 50% 0, rgba(255,255,255,0.08), transparent 50%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -10px 16px rgba(0,0,0,0.42),
    0 8px 16px rgba(0,0,0,0.28);
  letter-spacing: 0.12em;
}

.market-card .search-box {
  gap: 10px;
}

.market-card .search-box input {
  border: 1px solid rgba(177, 165, 138, 0.30);
  background:
    linear-gradient(180deg, rgba(0,0,0,0.52), rgba(7,7,7,0.72));
  min-height: 40px;
}

.market-card .ticker {
  gap: 10px;
}

.market-card .ticker-row {
  color: #bfb5a3;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(170, 160, 136, 0.16);
  font-size: 0.95rem;
}

.market-card .ticker-row strong {
  color: #e1d7c4;
  font-weight: 600;
}


/* V9.1 glyph-heavy aura refinement */
.aura-glyphs {
  animation: auraSpinReverse 168s linear infinite;
}


/* V10.7 Meph hover interaction - corrected glow placement */
.meph-hover-target {
  position: relative;
  width: fit-content;
  margin: 0 auto;
  display: block;
  pointer-events: auto;
  cursor: pointer;
  z-index: 4;
  transform-origin: center center;
  transition: transform 180ms ease;
}

button.meph-hover-target {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
}

button.meph-hover-target:focus-visible {
  outline: 1px solid rgba(214, 24, 24, 0.58);
  outline-offset: 8px;
  border-radius: 999px;
}

.demon-crest {
  width: clamp(190px, 15vw, 285px);
  max-width: 30vw;
  height: auto;
  display: block;
  margin: 0;
  filter:
    drop-shadow(0 24px 24px rgba(0,0,0,0.92))
    drop-shadow(0 0 30px rgba(115,0,0,0.24));
  user-select: none;
  pointer-events: none;
  transform: translateX(-6px) scale(1);
  position: relative;
  z-index: 4;
  transition: filter 180ms ease;
}

.meph-glow-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 6;
  mix-blend-mode: screen;
  transform: translateX(-6px);
}

.meph-glow-shape {
  opacity: 0;
  fill: url("#meph-red-core");
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 160ms ease, transform 180ms ease;
}

.meph-glow-eye {
  transform: scale(0.78);
}

.meph-glow-crystal {
  transform: scale(0.82);
}

.meph-hover-target:hover,
.meph-hover-target:focus-visible {
  transform: translateX(-6px) scale(1.045);
}

.meph-hover-target:hover .demon-crest,
.meph-hover-target:focus-visible .demon-crest {
  filter:
    drop-shadow(0 26px 28px rgba(0,0,0,0.94))
    drop-shadow(0 0 36px rgba(132,0,0,0.34));
}

.meph-hover-target:hover .meph-glow-shape,
.meph-hover-target:focus-visible .meph-glow-shape {
  opacity: 0.95;
}

.meph-hover-target:hover .meph-glow-eye,
.meph-hover-target:focus-visible .meph-glow-eye {
  transform: scale(0.96);
}

.meph-hover-target:hover .meph-glow-crystal,
.meph-hover-target:focus-visible .meph-glow-crystal {
  transform: scale(0.98);
}

.meph-hover-target.meph-voice-played .demon-crest {
  filter:
    drop-shadow(0 28px 30px rgba(0,0,0,0.95))
    drop-shadow(0 0 48px rgba(172,0,0,0.48));
}

@media (max-width: 900px) {
}


/* V12.2 — correctly integrated transparent premium bazaars */
.bazaar {
  width: min(152px, 9.3vw);
  height: min(770px, 78vh);
  justify-self: center;
  align-self: end;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0.95;
  filter: drop-shadow(0 22px 28px rgba(0,0,0,0.92));
}

.bazaar.left {
  justify-self: start;
  margin-left: clamp(10px, 1vw, 22px);
  transform: translateY(38px);
}

.bazaar.right {
  justify-self: end;
  margin-right: clamp(10px, 1vw, 22px);
  transform: translateY(38px) scaleX(-1);
}

.bazaar .crown,
.bazaar .shaft,
.bazaar .thorns,
.bazaar .base {
  display: none !important;
}

.bazaar-art {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
  user-select: none;
  filter:
    saturate(1.03)
    contrast(1.06)
    brightness(1.01)
    drop-shadow(0 14px 10px rgba(0,0,0,0.42));
}

.hero-center {
  z-index: 3;
}

@media (max-width: 1320px) {
  .bazaar {
    width: min(136px, 8.8vw);
    height: min(690px, 72vh);
  }

  .bazaar.left { transform: translateY(30px); }
  .bazaar.right { transform: translateY(30px) scaleX(-1); }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(120px, 11vw) minmax(0, 1fr) minmax(120px, 11vw);
    gap: 10px;
  }

  .bazaar {
    width: min(112px, 8vw);
    height: min(560px, 61vh);
    opacity: 0.88;
  }

  .bazaar.left { transform: translateY(20px); }
  .bazaar.right { transform: translateY(20px) scaleX(-1); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(76px, 8vw) minmax(0, 1fr) minmax(76px, 8vw);
    gap: 8px;
  }

  .bazaar {
    width: min(90px, 7vw);
    height: min(420px, 46vh);
    opacity: 0.72;
  }

  .bazaar.left { transform: translateY(12px); }
  .bazaar.right { transform: translateY(12px) scaleX(-1); }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .bazaar {
    display: none;
  }
}


/* V12.3 — remove top red haze, add local bazaar flames and localized light */
.background-atmosphere {
  background: none !important;
  opacity: 0 !important;
}

.bazaar {
  overflow: visible;
}

.bazaar-art {
  position: relative;
  z-index: 2;
}

.bazaar-flame {
  position: absolute;
  width: 58px;
  height: 120px;
  z-index: 3;
  pointer-events: none;
  filter:
    drop-shadow(0 0 10px rgba(255, 174, 84, 0.34))
    drop-shadow(0 0 24px rgba(255, 76, 0, 0.16));
}

.bazaar.left .bazaar-flame {
  left: 54%;
  top: 18.2%;
}

.bazaar.right .bazaar-flame {
  left: 11%;
  top: 18.2%;
}

.light-cast {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 145px;
  height: 185px;
  transform: translate(-52%, -46%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 202, 105, 0.24) 0%,
      rgba(255, 130, 34, 0.20) 24%,
      rgba(196, 36, 0, 0.10) 46%,
      rgba(0, 0, 0, 0) 76%);
  filter: blur(20px);
  opacity: 0.88;
  animation: lightCastPulse 2.4s ease-in-out infinite alternate;
  z-index: 0;
}

.flame-glow {
  position: absolute;
  inset: 22px -2px 12px -2px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 242, 184, 0.50) 0%,
      rgba(255, 168, 62, 0.34) 28%,
      rgba(218, 44, 0, 0.16) 54%,
      rgba(0, 0, 0, 0) 80%);
  filter: blur(8px);
  opacity: 0.94;
  animation: flameGlow 1.8s ease-in-out infinite alternate;
  z-index: 1;
}

.flame {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform-origin: 50% 100%;
  border-radius: 52% 52% 36% 36% / 72% 72% 24% 24%;
  mix-blend-mode: screen;
}

.flame-back {
  width: 48px;
  height: 96px;
  margin-left: -24px;
  background:
    radial-gradient(ellipse at 50% 84%,
      rgba(255, 250, 232, 0.50) 0 8%,
      rgba(255, 196, 84, 0.70) 16%,
      rgba(255, 116, 24, 0.58) 38%,
      rgba(184, 28, 0, 0.28) 62%,
      rgba(0, 0, 0, 0) 80%);
  filter: blur(1.8px);
  opacity: 0.9;
  z-index: 2;
  animation: flameBack 1.35s ease-in-out infinite;
}

.flame-main {
  width: 34px;
  height: 88px;
  margin-left: -17px;
  background:
    radial-gradient(ellipse at 50% 84%,
      rgba(255, 255, 244, 0.98) 0 7%,
      rgba(255, 224, 120, 0.98) 12%,
      rgba(255, 160, 44, 0.94) 30%,
      rgba(255, 90, 12, 0.84) 48%,
      rgba(180, 20, 0, 0.30) 68%,
      rgba(0, 0, 0, 0) 84%);
  filter: blur(0.6px);
  z-index: 3;
  animation: flameMain 1.02s ease-in-out infinite;
}

.flame-tip {
  width: 22px;
  height: 58px;
  margin-left: -11px;
  bottom: 28px;
  background:
    radial-gradient(ellipse at 50% 90%,
      rgba(255, 255, 244, 0.90) 0 10%,
      rgba(255, 216, 98, 0.86) 22%,
      rgba(255, 124, 18, 0.66) 40%,
      rgba(255, 48, 0, 0.24) 60%,
      rgba(0, 0, 0, 0) 82%);
  filter: blur(1px);
  z-index: 4;
  animation: flameTip 0.88s ease-in-out infinite;
}

.ember {
  position: absolute;
  bottom: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background:
    radial-gradient(circle,
      rgba(255, 238, 150, 0.96),
      rgba(255, 118, 18, 0.82) 60%,
      rgba(0, 0, 0, 0) 82%);
  opacity: 0;
  z-index: 5;
}

.ember-a { left: 12px; animation: emberRise 1.45s linear infinite; }
.ember-b { left: 28px; animation: emberRise 1.7s linear infinite 0.48s; }
.ember-c { left: 20px; animation: emberRise 1.55s linear infinite 0.92s; }

@keyframes lightCastPulse {
  0%   { transform: translate(-52%, -46%) scale(0.94, 0.92); opacity: 0.62; }
  100% { transform: translate(-52%, -46%) scale(1.08, 1.04); opacity: 0.94; }
}

@keyframes flameGlow {
  0%   { transform: scale(0.92, 0.96); opacity: 0.74; }
  100% { transform: scale(1.08, 1.04); opacity: 1; }
}

@keyframes flameBack {
  0%   { transform: translateX(-50%) scale(0.92, 0.94) rotate(-5deg); opacity: 0.82; }
  30%  { transform: translateX(-50%) scale(1.03, 1.08) rotate(2deg); opacity: 0.94; }
  60%  { transform: translateX(-50%) scale(0.98, 1.02) rotate(-1deg); opacity: 0.88; }
  100% { transform: translateX(-50%) scale(0.90, 0.92) rotate(-6deg); opacity: 0.78; }
}

@keyframes flameMain {
  0%   { transform: translateX(-50%) scale(0.92, 0.94) rotate(-4deg); }
  35%  { transform: translateX(-50%) scale(1.02, 1.12) rotate(2deg); }
  70%  { transform: translateX(-50%) scale(0.96, 1.02) rotate(-1deg); }
  100% { transform: translateX(-50%) scale(0.90, 0.92) rotate(-5deg); }
}

@keyframes flameTip {
  0%   { transform: translateX(-50%) scale(0.86, 0.90) rotate(-6deg); opacity: 0.82; }
  50%  { transform: translateX(-50%) scale(1.08, 1.16) rotate(3deg); opacity: 1; }
  100% { transform: translateX(-50%) scale(0.84, 0.88) rotate(-7deg); opacity: 0.76; }
}

@keyframes emberRise {
  0%   { transform: translate(0, 0) scale(0.8); opacity: 0; }
  14%  { opacity: 1; }
  100% { transform: translate(11px, -56px) scale(0.26); opacity: 0; }
}

@media (max-width: 1320px) {
  .bazaar-flame {
    width: 50px;
    height: 104px;
  }
}

@media (max-width: 1120px) {
  .bazaar-flame {
    width: 42px;
    height: 88px;
  }
}

@media (max-width: 900px) {
  .bazaar-flame {
    width: 30px;
    height: 64px;
  }
}


/* V12.4 — 4th stats box + flame realignment */
.panel-grid {
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  width: min(1260px, 100%);
  gap: clamp(14px, 1.4vw, 24px);
}

.stats-card .stats-list {
  margin-top: 12px;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(216, 205, 176, 0.28);
  color: #ece5d9;
}

.stat-row:first-child {
  padding-top: 2px;
}

.stat-row strong {
  color: #ff7e8d;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(170, 15, 24, 0.28);
}

.online-only {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  color: #f0eee8;
  cursor: pointer;
  user-select: none;
}

.online-only input {
  width: 13px;
  height: 13px;
  accent-color: var(--red-bright);
}

/* Remove top/side red haze completely; flame light should come only from the bazaar flames. */
.background-atmosphere {
  background: none !important;
  opacity: 0 !important;
}

/* Put flames into the bazaar structure instead of floating near the spire top. */
.bazaar-flame {
  width: 42px;
  height: 82px;
  transform: translate(-50%, -50%);
  filter:
    drop-shadow(0 0 8px rgba(255, 184, 90, 0.30))
    drop-shadow(0 0 18px rgba(255, 76, 0, 0.14));
}

/* These positions aim for the upper inner arch/window area of the bazaar art,
   not the outside/top spires where they looked wrong. */
.bazaar.left .bazaar-flame {
  left: 50%;
  top: 42%;
}

.bazaar.right .bazaar-flame {
  left: 50%;
  top: 42%;
}

/* Make the light local and softer so it illuminates the bazaar, not the whole side wall. */
.light-cast {
  width: 92px;
  height: 118px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at center,
      rgba(255, 205, 112, 0.18) 0%,
      rgba(255, 132, 34, 0.13) 30%,
      rgba(196, 36, 0, 0.07) 50%,
      rgba(0, 0, 0, 0) 76%);
  filter: blur(16px);
  opacity: 0.7;
}

.flame-glow {
  inset: 16px 0 10px 0;
  filter: blur(6px);
  opacity: 0.84;
}

.flame-back {
  width: 34px;
  height: 68px;
  margin-left: -17px;
}

.flame-main {
  width: 24px;
  height: 60px;
  margin-left: -12px;
}

.flame-tip {
  width: 16px;
  height: 40px;
  margin-left: -8px;
  bottom: 20px;
}

.ember {
  width: 4px;
  height: 4px;
}

@media (max-width: 1320px) {
  .panel-grid {
    grid-template-columns: repeat(4, minmax(190px, 1fr));
  }

  .bazaar-flame {
    width: 36px;
    height: 72px;
  }
}

@media (max-width: 1120px) {
  .panel-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    width: min(760px, 100%);
  }

  .bazaar-flame {
    width: 30px;
    height: 60px;
  }
}

@media (max-width: 760px) {
  .panel-grid {
    grid-template-columns: 1fr;
    width: min(440px, 100%);
  }
}


/* V12.5 — correct 4th box and final bazaar flame nudges */
.cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 1380px;
}

.stats-card .stats-list {
  margin-top: 8px;
}

.stats-card .stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(216, 205, 176, 0.30);
  color: #ece5d9;
  font-size: 1.05rem;
}

.stats-card .stat-row strong {
  color: #ff8b97;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(170, 15, 24, 0.30);
}

.stats-card .online-only {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  color: #f0eee8;
  user-select: none;
}

.stats-card .online-only input {
  width: 13px;
  height: 13px;
  accent-color: var(--red-bright);
}

/* Flames: nudge into the inner upper window area and make them a bit narrower/cleaner */
.bazaar-flame {
  width: 36px;
  height: 72px;
  filter:
    drop-shadow(0 0 8px rgba(255, 184, 90, 0.28))
    drop-shadow(0 0 15px rgba(255, 76, 0, 0.10));
}

.bazaar.left .bazaar-flame {
  left: 49%;
  top: 41%;
}

.bazaar.right .bazaar-flame {
  left: 51%;
  top: 41%;
}

.light-cast {
  width: 82px;
  height: 102px;
  transform: translate(-50%, -52%);
  background:
    radial-gradient(ellipse at center,
      rgba(255, 205, 112, 0.16) 0%,
      rgba(255, 132, 34, 0.11) 32%,
      rgba(196, 36, 0, 0.05) 52%,
      rgba(0, 0, 0, 0) 76%);
  filter: blur(15px);
  opacity: 0.66;
}

.flame-glow {
  inset: 14px 0 8px 0;
  filter: blur(5px);
  opacity: 0.8;
}

.flame-back {
  width: 28px;
  height: 58px;
  margin-left: -14px;
}

.flame-main {
  width: 20px;
  height: 52px;
  margin-left: -10px;
}

.flame-tip {
  width: 13px;
  height: 34px;
  margin-left: -6.5px;
  bottom: 18px;
}

@media (max-width: 1180px) {
  .cards {
    grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
    max-width: 760px !important;
    gap: 22px !important;
  }
}

@media (max-width: 680px) {
  .cards {
    grid-template-columns: 1fr !important;
    max-width: 440px !important;
  }
}


/* V12.8 — user-directed inward flame nudge
   Left bazaar flame -> move right
   Right bazaar flame -> move left by the same amount */
.bazaar.left .bazaar-flame {
  left: 53% !important;
  top: 41% !important;
}

.bazaar.right .bazaar-flame {
  left: 47% !important;
  top: 41% !important;
}


/* V12.9 — user-directed flame correction
   LEFT bazaar flame: moved one more in the same direction (further right)
   RIGHT bazaar flame: moved the opposite direction, two times */
.bazaar.left .bazaar-flame {
  left: 57% !important;
  top: 41% !important;
}

.bazaar.right .bazaar-flame {
  left: 55% !important;
  top: 41% !important;
}


/* V12.10 — same flame move again, but half as much
   Based on V12.9:
   - LEFT bazaar flame: same direction again, half amount
   - RIGHT bazaar flame: same direction again, half amount */
.bazaar.left .bazaar-flame {
  left: 59% !important;
  top: 41% !important;
}

.bazaar.right .bazaar-flame {
  left: 59% !important;
  top: 41% !important;
}


/* V12.11 — keep LEFT flame as-is, move RIGHT flame back a tad,
   and clean the dark clipping/smudge at the bottom of both flames. */

/* Left bazaar flame stays in the approved spot. */
.bazaar.left .bazaar-flame {
  left: 59% !important;
  top: 41% !important;
}

/* Right bazaar flame: slightly less than the last move, but still to the right. */
.bazaar.right .bazaar-flame {
  left: 57% !important;
  top: 41% !important;
}

/* Soften the internal flame layers a bit and cover the dark seam/smudge at the base. */
.bazaar-flame {
  overflow: visible;
}

.bazaar-flame::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 28px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 247, 214, 0.88) 0%,
      rgba(255, 189, 84, 0.74) 30%,
      rgba(255, 118, 22, 0.48) 58%,
      rgba(255, 72, 0, 0.12) 76%,
      rgba(0, 0, 0, 0) 88%);
  filter: blur(4px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 7;
}

/* Trim a little of the darker lower plume so it doesn't read like black clipping. */
.flame-back {
  opacity: 0.82 !important;
}

.flame-main {
  filter: blur(0.35px) !important;
}

.flame-tip {
  filter: blur(0.7px) !important;
}


/* V12.15 — replace tall glossy spires with ground braziers:
   wide metal bowl type, short legs, on the ground, transparent asset, non-glossy */
.bazaar {
  width: min(270px, 16vw);
  height: auto !important;
  align-self: end;
  justify-self: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: visible;
  filter: none !important;
  opacity: 0.98;
}

.bazaar.left {
  justify-self: start;
  margin-left: clamp(4px, 0.6vw, 12px);
  transform: translateY(22px);
}

.bazaar.right {
  justify-self: end;
  margin-right: clamp(4px, 0.6vw, 12px);
  transform: translateY(22px);
}

.ground-brazier-art {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
  user-select: none;
  filter:
    brightness(0.72)
    saturate(0.78)
    contrast(1.02)
    drop-shadow(0 18px 24px rgba(0,0,0,0.84))
    drop-shadow(0 2px 10px rgba(255,114,18,0.10));
}

/* Kill old separate flame system completely. */
.bazaar-flame,
.light-cast,
.flame-glow,
.flame,
.ember {
  display: none !important;
}

/* Ground braziers should feel lower and more in-theme with the cathedral floor. */
@media (max-width: 1400px) {
  .bazaar {
    width: min(240px, 15vw);
  }
}

@media (max-width: 1200px) {
  .hero {
    grid-template-columns: minmax(150px, 16vw) minmax(0, 1fr) minmax(150px, 16vw);
  }
  .bazaar {
    width: min(210px, 15vw);
  }
}

@media (max-width: 950px) {
  .hero {
    grid-template-columns: minmax(110px, 13vw) minmax(0, 1fr) minmax(110px, 13vw);
  }
  .bazaar {
    width: min(150px, 13vw);
    opacity: 0.92;
  }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .bazaar {
    display: none;
  }
}


/* V12.16 — REAL ground brazier asset + live flame effects */
.bazaar {
  width: min(265px, 15.4vw) !important;
  height: auto !important;
  align-self: end;
  justify-self: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: visible;
  opacity: 0.98;
}

.bazaar.left {
  justify-self: start;
  margin-left: clamp(4px, 0.6vw, 12px);
  transform: translateY(22px);
}

.bazaar.right {
  justify-self: end;
  margin-right: clamp(4px, 0.6vw, 12px);
  transform: translateY(22px);
}

.ground-brazier-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.ground-brazier-art.live-asset {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
  user-select: none;
  filter:
    brightness(0.67)
    saturate(0.70)
    contrast(1.02)
    drop-shadow(0 20px 26px rgba(0,0,0,0.84));
}

.brazier-light {
  position: absolute;
  left: 50%;
  top: 18%;
  width: 150px;
  height: 110px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 208, 118, 0.12) 0%,
      rgba(255, 140, 46, 0.09) 34%,
      rgba(186, 32, 0, 0.04) 58%,
      rgba(0, 0, 0, 0) 78%);
  filter: blur(18px);
  z-index: 1;
  animation: brazierLightPulse 2.4s ease-in-out infinite alternate;
  pointer-events: none;
}

.brazier-flames {
  position: absolute;
  left: 50%;
  top: -14px;
  width: 132px;
  height: 156px;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  filter:
    drop-shadow(0 0 8px rgba(255, 184, 86, 0.22))
    drop-shadow(0 0 16px rgba(255, 92, 20, 0.10));
}

.brazier-flames span {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform-origin: 50% 100%;
  border-radius: 58% 58% 34% 34% / 74% 74% 26% 26%;
  mix-blend-mode: screen;
}

.flame-outer {
  background:
    radial-gradient(ellipse at 50% 88%,
      rgba(255, 242, 205, 0.20) 0 8%,
      rgba(255, 198, 96, 0.62) 16%,
      rgba(255, 138, 44, 0.82) 32%,
      rgba(255, 92, 20, 0.72) 54%,
      rgba(174, 22, 0, 0.20) 74%,
      rgba(0, 0, 0, 0) 88%);
  filter: blur(1.3px);
  opacity: 0.92;
}

.flame-main {
  background:
    radial-gradient(ellipse at 50% 90%,
      rgba(255, 255, 245, 0.96) 0 10%,
      rgba(255, 236, 168, 0.98) 20%,
      rgba(255, 192, 88, 0.96) 34%,
      rgba(255, 134, 40, 0.92) 50%,
      rgba(255, 88, 18, 0.58) 68%,
      rgba(0, 0, 0, 0) 86%);
  filter: blur(0.35px);
}

.flame-core {
  background:
    radial-gradient(ellipse at 50% 92%,
      rgba(255, 255, 250, 1) 0 18%,
      rgba(255, 247, 214, 0.98) 32%,
      rgba(255, 208, 110, 0.84) 50%,
      rgba(255, 130, 30, 0.28) 68%,
      rgba(0, 0, 0, 0) 88%);
  filter: blur(0.45px);
}

.flame-center.flame-outer {
  width: 54px;
  height: 132px;
  margin-left: -27px;
  animation: flameCenterOuter 1.42s ease-in-out infinite;
}
.flame-center.flame-main {
  width: 36px;
  height: 116px;
  margin-left: -18px;
  animation: flameCenterMain 1.06s ease-in-out infinite;
}
.flame-center.flame-core {
  width: 18px;
  height: 74px;
  margin-left: -9px;
  bottom: 26px;
  animation: flameCenterCore 0.92s ease-in-out infinite;
}

.flame-left.flame-outer {
  width: 34px;
  height: 86px;
  margin-left: -46px;
  bottom: 10px;
  animation: flameSideOuterLeft 1.34s ease-in-out infinite;
}
.flame-left.flame-main {
  width: 22px;
  height: 74px;
  margin-left: -40px;
  bottom: 12px;
  animation: flameSideMainLeft 1.02s ease-in-out infinite;
}

.flame-right.flame-outer {
  width: 34px;
  height: 86px;
  margin-left: 12px;
  bottom: 10px;
  animation: flameSideOuterRight 1.30s ease-in-out infinite;
}
.flame-right.flame-main {
  width: 22px;
  height: 74px;
  margin-left: 18px;
  bottom: 12px;
  animation: flameSideMainRight 0.98s ease-in-out infinite;
}

.ember {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background:
    radial-gradient(circle,
      rgba(255, 240, 170, 0.94),
      rgba(255, 122, 20, 0.72) 60%,
      rgba(0, 0, 0, 0) 82%);
  opacity: 0;
  z-index: 5;
}

.ember-1 { left: 36px; animation: emberRise 1.8s linear infinite; }
.ember-2 { left: 64px; animation: emberRise 2.05s linear infinite 0.56s; }
.ember-3 { left: 94px; animation: emberRise 1.7s linear infinite 1.0s; }

@keyframes brazierLightPulse {
  0%   { transform: translateX(-50%) scale(0.96, 0.94); opacity: 0.52; }
  100% { transform: translateX(-50%) scale(1.05, 1.03); opacity: 0.72; }
}

@keyframes flameCenterOuter {
  0%   { transform: translateX(-50%) scale(0.94, 0.96) rotate(-3deg); }
  30%  { transform: translateX(-50%) scale(1.02, 1.10) rotate(2deg); }
  68%  { transform: translateX(-50%) scale(0.98, 1.02) rotate(-2deg); }
  100% { transform: translateX(-50%) scale(0.93, 0.94) rotate(-4deg); }
}

@keyframes flameCenterMain {
  0%   { transform: translateX(-50%) scale(0.92, 0.94) rotate(-2deg); }
  35%  { transform: translateX(-50%) scale(1.04, 1.14) rotate(3deg); }
  66%  { transform: translateX(-50%) scale(0.98, 1.03) rotate(-1deg); }
  100% { transform: translateX(-50%) scale(0.90, 0.92) rotate(-3deg); }
}

@keyframes flameCenterCore {
  0%   { transform: translateX(-50%) scale(0.92, 0.94) rotate(-2deg); opacity: 0.84; }
  50%  { transform: translateX(-50%) scale(1.08, 1.16) rotate(3deg); opacity: 1; }
  100% { transform: translateX(-50%) scale(0.90, 0.92) rotate(-4deg); opacity: 0.82; }
}

@keyframes flameSideOuterLeft {
  0%   { transform: translateX(-50%) scale(0.92, 0.96) rotate(-10deg); }
  50%  { transform: translateX(-50%) scale(1.03, 1.10) rotate(-4deg); }
  100% { transform: translateX(-50%) scale(0.90, 0.92) rotate(-12deg); }
}

@keyframes flameSideMainLeft {
  0%   { transform: translateX(-50%) scale(0.92, 0.94) rotate(-8deg); }
  50%  { transform: translateX(-50%) scale(1.04, 1.14) rotate(-2deg); }
  100% { transform: translateX(-50%) scale(0.90, 0.92) rotate(-10deg); }
}

@keyframes flameSideOuterRight {
  0%   { transform: translateX(-50%) scale(0.92, 0.96) rotate(10deg); }
  50%  { transform: translateX(-50%) scale(1.03, 1.10) rotate(4deg); }
  100% { transform: translateX(-50%) scale(0.90, 0.92) rotate(12deg); }
}

@keyframes flameSideMainRight {
  0%   { transform: translateX(-50%) scale(0.92, 0.94) rotate(8deg); }
  50%  { transform: translateX(-50%) scale(1.04, 1.14) rotate(2deg); }
  100% { transform: translateX(-50%) scale(0.90, 0.92) rotate(10deg); }
}

@keyframes emberRise {
  0%   { transform: translate(0, 0) scale(0.9); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translate(8px, -58px) scale(0.20); opacity: 0; }
}

@media (max-width: 1400px) {
  .bazaar {
    width: min(236px, 15vw) !important;
  }
  .brazier-flames {
    width: 118px;
    height: 144px;
    top: -10px;
  }
}

@media (max-width: 1200px) {
  .hero {
    grid-template-columns: minmax(150px, 16vw) minmax(0, 1fr) minmax(150px, 16vw);
  }
  .bazaar {
    width: min(205px, 15vw) !important;
  }
  .brazier-flames {
    width: 104px;
    height: 128px;
    top: -8px;
  }
}

@media (max-width: 950px) {
  .hero {
    grid-template-columns: minmax(110px, 13vw) minmax(0, 1fr) minmax(110px, 13vw);
  }
  .bazaar {
    width: min(150px, 13vw) !important;
    opacity: 0.92;
  }
  .brazier-flames {
    width: 78px;
    height: 98px;
    top: -4px;
  }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .bazaar {
    display: none !important;
  }
}


/* V12.17 — clean transparent brazier asset + corrected live flame layering */

/* Use the cleaned bowl-only asset. */
.ground-brazier-art.live-asset {
  width: 100%;
  filter:
    brightness(0.70)
    saturate(0.62)
    contrast(1.03)
    drop-shadow(0 18px 24px rgba(0,0,0,0.86)) !important;
}

/* Keep the braziers grounded and short. */
.bazaar {
  width: min(250px, 15vw) !important;
}

.bazaar.left,
.bazaar.right {
  transform: translateY(18px) !important;
}

/* Move the light up so it lights the bowl area, not below it. */
.brazier-light {
  top: 10% !important;
  width: 128px !important;
  height: 82px !important;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 206, 118, 0.10) 0%,
      rgba(255, 140, 46, 0.08) 36%,
      rgba(186, 32, 0, 0.03) 58%,
      rgba(0, 0, 0, 0) 78%) !important;
  filter: blur(16px) !important;
}

/* Put the fire higher and clip away the lower bleed so it doesn't show under the bowl. */
.brazier-flames {
  top: -34px !important;
  width: 118px !important;
  height: 122px !important;
  clip-path: inset(0 0 18% 0) !important;
  filter:
    drop-shadow(0 0 8px rgba(255, 184, 86, 0.18))
    drop-shadow(0 0 14px rgba(255, 92, 20, 0.08)) !important;
}

/* Slightly tighten the flames so they feel more inside the bowl. */
.flame-center.flame-outer {
  width: 46px !important;
  height: 110px !important;
  margin-left: -23px !important;
}
.flame-center.flame-main {
  width: 30px !important;
  height: 92px !important;
  margin-left: -15px !important;
}
.flame-center.flame-core {
  width: 15px !important;
  height: 58px !important;
  margin-left: -7.5px !important;
  bottom: 20px !important;
}

.flame-left.flame-outer,
.flame-right.flame-outer {
  width: 28px !important;
  height: 72px !important;
  bottom: 8px !important;
}

.flame-left.flame-main,
.flame-right.flame-main {
  width: 18px !important;
  height: 60px !important;
  bottom: 10px !important;
}

.flame-left.flame-outer { margin-left: -39px !important; }
.flame-left.flame-main  { margin-left: -34px !important; }
.flame-right.flame-outer { margin-left: 11px !important; }
.flame-right.flame-main  { margin-left: 16px !important; }

/* Small ember reduction for cleaner look. */
.ember {
  width: 3px !important;
  height: 3px !important;
  opacity: 0.0;
}

@media (max-width: 1400px) {
  .bazaar {
    width: min(224px, 14.5vw) !important;
  }
}


/* V12.18 — replace candle-like fire with a wide layered brazier fire */
.brazier-light {
  top: 9% !important;
  width: 146px !important;
  height: 88px !important;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 208, 122, 0.14) 0%,
      rgba(255, 145, 48, 0.11) 36%,
      rgba(188, 32, 0, 0.045) 58%,
      rgba(0, 0, 0, 0) 80%) !important;
  filter: blur(17px) !important;
  opacity: 0.78 !important;
}

.brazier-flames.brazier-flames-wide {
  top: -20px !important;
  width: 154px !important;
  height: 114px !important;
  clip-path: inset(0 0 24% 0) !important;
  filter:
    drop-shadow(0 0 8px rgba(255, 183, 86, 0.20))
    drop-shadow(0 0 18px rgba(255, 91, 18, 0.10)) !important;
}

.brazier-flames.brazier-flames-wide span {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform-origin: 50% 100%;
}

.fire-bed {
  width: 118px;
  height: 34px;
  margin-left: -59px;
  bottom: 10px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 244, 214, 0.26) 0%,
      rgba(255, 183, 78, 0.38) 24%,
      rgba(255, 124, 30, 0.28) 46%,
      rgba(176, 28, 0, 0.14) 66%,
      rgba(0, 0, 0, 0) 84%);
  filter: blur(5px);
  z-index: 1;
  animation: fireBedPulse 2s ease-in-out infinite alternate;
}

.flame-outer,
.flame-main,
.flame-core {
  border-radius: 58% 58% 34% 34% / 76% 76% 24% 24%;
  mix-blend-mode: screen;
}

.flame-outer {
  background:
    radial-gradient(ellipse at 50% 88%,
      rgba(255, 246, 220, 0.16) 0 7%,
      rgba(255, 200, 100, 0.54) 16%,
      rgba(255, 146, 48, 0.80) 32%,
      rgba(255, 98, 22, 0.70) 54%,
      rgba(178, 22, 0, 0.18) 74%,
      rgba(0, 0, 0, 0) 88%) !important;
  filter: blur(1.0px) !important;
  opacity: 0.92;
}

.flame-main {
  background:
    radial-gradient(ellipse at 50% 90%,
      rgba(255, 255, 245, 0.92) 0 10%,
      rgba(255, 236, 172, 0.96) 18%,
      rgba(255, 196, 92, 0.98) 34%,
      rgba(255, 138, 40, 0.92) 52%,
      rgba(255, 90, 18, 0.54) 68%,
      rgba(0, 0, 0, 0) 86%) !important;
  filter: blur(0.28px) !important;
}

.flame-core {
  background:
    radial-gradient(ellipse at 50% 92%,
      rgba(255,255,250,1) 0 18%,
      rgba(255,247,212,0.98) 32%,
      rgba(255,206,108,0.78) 50%,
      rgba(255,130,30,0.22) 68%,
      rgba(0,0,0,0) 88%) !important;
  filter: blur(0.42px) !important;
}

.flame-center.flame-outer {
  width: 40px !important;
  height: 82px !important;
  margin-left: -20px !important;
  bottom: 6px !important;
  animation: flameTallA 1.38s ease-in-out infinite;
}
.flame-center.flame-main {
  width: 26px !important;
  height: 72px !important;
  margin-left: -13px !important;
  bottom: 8px !important;
  animation: flameTallB 1.06s ease-in-out infinite;
}
.flame-center.flame-core {
  width: 12px !important;
  height: 42px !important;
  margin-left: -6px !important;
  bottom: 24px !important;
  animation: flameTallCore 0.92s ease-in-out infinite;
}

.flame-mid-left.flame-outer {
  width: 32px;
  height: 64px;
  margin-left: -40px;
  bottom: 7px;
  animation: flameMidLeftA 1.24s ease-in-out infinite;
}
.flame-mid-left.flame-main {
  width: 20px;
  height: 54px;
  margin-left: -34px;
  bottom: 10px;
  animation: flameMidLeftB 1.02s ease-in-out infinite;
}

.flame-left.flame-outer {
  width: 26px !important;
  height: 48px !important;
  margin-left: -63px !important;
  bottom: 12px !important;
  animation: flameLeftA 1.32s ease-in-out infinite;
}
.flame-left.flame-main {
  width: 16px !important;
  height: 40px !important;
  margin-left: -58px !important;
  bottom: 14px !important;
  animation: flameLeftB 1.08s ease-in-out infinite;
}

.flame-mid-right.flame-outer {
  width: 32px;
  height: 64px;
  margin-left: 10px;
  bottom: 7px;
  animation: flameMidRightA 1.22s ease-in-out infinite;
}
.flame-mid-right.flame-main {
  width: 20px;
  height: 54px;
  margin-left: 16px;
  bottom: 10px;
  animation: flameMidRightB 1.00s ease-in-out infinite;
}

.flame-right.flame-outer {
  width: 26px !important;
  height: 48px !important;
  margin-left: 36px !important;
  bottom: 12px !important;
  animation: flameRightA 1.30s ease-in-out infinite;
}
.flame-right.flame-main {
  width: 16px !important;
  height: 40px !important;
  margin-left: 41px !important;
  bottom: 14px !important;
  animation: flameRightB 1.08s ease-in-out infinite;
}

.flame-far-left.flame-outer {
  width: 18px;
  height: 30px;
  margin-left: -76px;
  bottom: 17px;
  opacity: 0.70;
  animation: flameFarLeftA 1.18s ease-in-out infinite;
}
.flame-far-left.flame-main {
  width: 11px;
  height: 24px;
  margin-left: -73px;
  bottom: 18px;
  opacity: 0.82;
  animation: flameFarLeftB 0.96s ease-in-out infinite;
}

.flame-far-right.flame-outer {
  width: 18px;
  height: 30px;
  margin-left: 56px;
  bottom: 17px;
  opacity: 0.70;
  animation: flameFarRightA 1.18s ease-in-out infinite;
}
.flame-far-right.flame-main {
  width: 11px;
  height: 24px;
  margin-left: 59px;
  bottom: 18px;
  opacity: 0.82;
  animation: flameFarRightB 0.96s ease-in-out infinite;
}

.ember {
  width: 3px !important;
  height: 3px !important;
  border-radius: 50%;
  background:
    radial-gradient(circle,
      rgba(255, 242, 176, 0.94),
      rgba(255, 124, 22, 0.72) 60%,
      rgba(0, 0, 0, 0) 82%);
  opacity: 0;
  z-index: 5;
}
.ember-1 { left: 26px; bottom: 36px; animation: emberRiseWide 2.2s linear infinite; }
.ember-2 { left: 56px; bottom: 32px; animation: emberRiseWide 1.8s linear infinite 0.35s; }
.ember-3 { left: 75px; bottom: 34px; animation: emberRiseWide 2.0s linear infinite 0.82s; }
.ember-4 { left: 99px; bottom: 30px; animation: emberRiseWide 1.9s linear infinite 0.52s; }
.ember-5 { left: 118px; bottom: 33px; animation: emberRiseWide 2.15s linear infinite 1.1s; }

@keyframes fireBedPulse {
  0%   { transform: translateX(-50%) scale(0.96, 0.92); opacity: 0.55; }
  100% { transform: translateX(-50%) scale(1.04, 1.06); opacity: 0.82; }
}

@keyframes flameTallA {
  0%   { transform: translateX(-50%) scale(0.92, 0.92) rotate(-4deg); }
  35%  { transform: translateX(-50%) scale(1.06, 1.14) rotate(2deg); }
  70%  { transform: translateX(-50%) scale(0.98, 1.02) rotate(-2deg); }
  100% { transform: translateX(-50%) scale(0.92, 0.90) rotate(-5deg); }
}
@keyframes flameTallB {
  0%   { transform: translateX(-50%) scale(0.92, 0.92) rotate(-2deg); }
  45%  { transform: translateX(-50%) scale(1.06, 1.18) rotate(3deg); }
  100% { transform: translateX(-50%) scale(0.90, 0.90) rotate(-4deg); }
}
@keyframes flameTallCore {
  0%   { transform: translateX(-50%) scale(0.90, 0.92) rotate(-2deg); opacity: 0.78; }
  50%  { transform: translateX(-50%) scale(1.08, 1.16) rotate(3deg); opacity: 1; }
  100% { transform: translateX(-50%) scale(0.88, 0.90) rotate(-4deg); opacity: 0.74; }
}

@keyframes flameMidLeftA {
  0%   { transform: translateX(-50%) scale(0.92, 0.94) rotate(-10deg); }
  50%  { transform: translateX(-50%) scale(1.04, 1.12) rotate(-4deg); }
  100% { transform: translateX(-50%) scale(0.90, 0.90) rotate(-12deg); }
}
@keyframes flameMidLeftB {
  0%   { transform: translateX(-50%) scale(0.92, 0.92) rotate(-8deg); }
  50%  { transform: translateX(-50%) scale(1.04, 1.14) rotate(-2deg); }
  100% { transform: translateX(-50%) scale(0.90, 0.90) rotate(-10deg); }
}
@keyframes flameLeftA {
  0%   { transform: translateX(-50%) scale(0.90, 0.92) rotate(-14deg); }
  50%  { transform: translateX(-50%) scale(1.02, 1.08) rotate(-8deg); }
  100% { transform: translateX(-50%) scale(0.88, 0.88) rotate(-16deg); }
}
@keyframes flameLeftB {
  0%   { transform: translateX(-50%) scale(0.90, 0.90) rotate(-12deg); }
  50%  { transform: translateX(-50%) scale(1.04, 1.10) rotate(-6deg); }
  100% { transform: translateX(-50%) scale(0.88, 0.88) rotate(-14deg); }
}

@keyframes flameMidRightA {
  0%   { transform: translateX(-50%) scale(0.92, 0.94) rotate(10deg); }
  50%  { transform: translateX(-50%) scale(1.04, 1.12) rotate(4deg); }
  100% { transform: translateX(-50%) scale(0.90, 0.90) rotate(12deg); }
}
@keyframes flameMidRightB {
  0%   { transform: translateX(-50%) scale(0.92, 0.92) rotate(8deg); }
  50%  { transform: translateX(-50%) scale(1.04, 1.14) rotate(2deg); }
  100% { transform: translateX(-50%) scale(0.90, 0.90) rotate(10deg); }
}
@keyframes flameRightA {
  0%   { transform: translateX(-50%) scale(0.90, 0.92) rotate(14deg); }
  50%  { transform: translateX(-50%) scale(1.02, 1.08) rotate(8deg); }
  100% { transform: translateX(-50%) scale(0.88, 0.88) rotate(16deg); }
}
@keyframes flameRightB {
  0%   { transform: translateX(-50%) scale(0.90, 0.90) rotate(12deg); }
  50%  { transform: translateX(-50%) scale(1.04, 1.10) rotate(6deg); }
  100% { transform: translateX(-50%) scale(0.88, 0.88) rotate(14deg); }
}

@keyframes flameFarLeftA {
  0%   { transform: translateX(-50%) scale(0.88, 0.88) rotate(-18deg); }
  50%  { transform: translateX(-50%) scale(1.04, 1.06) rotate(-10deg); }
  100% { transform: translateX(-50%) scale(0.86, 0.84) rotate(-20deg); }
}
@keyframes flameFarLeftB {
  0%   { transform: translateX(-50%) scale(0.88, 0.88) rotate(-16deg); }
  50%  { transform: translateX(-50%) scale(1.06, 1.10) rotate(-8deg); }
  100% { transform: translateX(-50%) scale(0.86, 0.84) rotate(-18deg); }
}
@keyframes flameFarRightA {
  0%   { transform: translateX(-50%) scale(0.88, 0.88) rotate(18deg); }
  50%  { transform: translateX(-50%) scale(1.04, 1.06) rotate(10deg); }
  100% { transform: translateX(-50%) scale(0.86, 0.84) rotate(20deg); }
}
@keyframes flameFarRightB {
  0%   { transform: translateX(-50%) scale(0.88, 0.88) rotate(16deg); }
  50%  { transform: translateX(-50%) scale(1.06, 1.10) rotate(8deg); }
  100% { transform: translateX(-50%) scale(0.86, 0.84) rotate(18deg); }
}

@keyframes emberRiseWide {
  0%   { transform: translate(0, 0) scale(0.9); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translate(8px, -42px) scale(0.20); opacity: 0; }
}

@media (max-width: 1400px) {
  .brazier-flames.brazier-flames-wide {
    width: 136px !important;
    height: 104px !important;
    top: -18px !important;
  }
}


/* V12.19 — give the brazier fire more real flame edges and irregular tongues */
.brazier-light {
  top: 8% !important;
  width: 152px !important;
  height: 92px !important;
  opacity: 0.82 !important;
}

.brazier-flames.brazier-flames-jagged {
  top: -22px !important;
  width: 160px !important;
  height: 120px !important;
  clip-path: inset(0 0 22% 0) !important;
  filter:
    drop-shadow(0 0 8px rgba(255, 186, 88, 0.24))
    drop-shadow(0 0 18px rgba(255, 96, 18, 0.11))
    drop-shadow(0 0 28px rgba(180, 28, 0, 0.05)) !important;
}

.fire-bed {
  width: 122px !important;
  height: 34px !important;
  margin-left: -61px !important;
  bottom: 9px !important;
  border-radius: 50% !important;
  filter: blur(5px) !important;
  z-index: 1;
}
.fire-bed-hot {
  width: 92px !important;
  height: 18px !important;
  margin-left: -46px !important;
  bottom: 15px !important;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 248, 222, 0.34) 0%,
      rgba(255, 205, 100, 0.48) 30%,
      rgba(255, 132, 34, 0.30) 52%,
      rgba(0, 0, 0, 0) 84%) !important;
  filter: blur(3px) !important;
  animation: fireBedHotPulse 1.55s ease-in-out infinite alternate;
  z-index: 2;
}

.flame-outer,
.flame-main,
.flame-core,
.flame-tongue {
  mix-blend-mode: screen;
  transform-origin: 50% 100%;
}

/* More natural jagged flame edges */
.flame-outer,
.flame-main,
.flame-tongue {
  clip-path: polygon(
    50% 0%,
    61% 8%,
    68% 18%,
    74% 28%,
    79% 40%,
    76% 52%,
    84% 66%,
    77% 80%,
    67% 91%,
    56% 100%,
    44% 100%,
    33% 92%,
    22% 81%,
    14% 66%,
    20% 50%,
    18% 38%,
    25% 25%,
    33% 14%
  );
  border-radius: 0 !important;
}

.flame-core {
  clip-path: polygon(
    50% 0%,
    62% 12%,
    72% 28%,
    68% 46%,
    76% 62%,
    64% 82%,
    56% 100%,
    44% 100%,
    35% 82%,
    24% 62%,
    30% 44%,
    26% 28%,
    38% 10%
  );
  border-radius: 0 !important;
}

.flame-outer {
  background:
    radial-gradient(ellipse at 50% 86%,
      rgba(255, 246, 220, 0.12) 0 8%,
      rgba(255, 204, 104, 0.50) 18%,
      rgba(255, 152, 52, 0.82) 34%,
      rgba(255, 100, 24, 0.74) 56%,
      rgba(188, 28, 0, 0.22) 76%,
      rgba(0, 0, 0, 0) 90%) !important;
  filter: blur(0.8px) !important;
}

.flame-main {
  background:
    radial-gradient(ellipse at 50% 90%,
      rgba(255, 255, 244, 0.88) 0 10%,
      rgba(255, 238, 174, 0.96) 20%,
      rgba(255, 198, 94, 0.98) 36%,
      rgba(255, 142, 42, 0.94) 54%,
      rgba(255, 92, 18, 0.54) 70%,
      rgba(0, 0, 0, 0) 88%) !important;
  filter: blur(0.18px) !important;
}

.flame-core {
  background:
    radial-gradient(ellipse at 50% 92%,
      rgba(255,255,250,1) 0 20%,
      rgba(255,248,214,0.98) 36%,
      rgba(255,210,108,0.74) 52%,
      rgba(255,132,30,0.20) 70%,
      rgba(0,0,0,0) 90%) !important;
  filter: blur(0.35px) !important;
}

.flame-center.flame-outer {
  width: 42px !important;
  height: 86px !important;
  margin-left: -21px !important;
  bottom: 7px !important;
}
.flame-center.flame-main {
  width: 27px !important;
  height: 74px !important;
  margin-left: -13.5px !important;
  bottom: 9px !important;
}
.flame-center.flame-core {
  width: 13px !important;
  height: 44px !important;
  margin-left: -6.5px !important;
  bottom: 25px !important;
}

.flame-mid-left.flame-outer {
  width: 34px !important;
  height: 68px !important;
  margin-left: -43px !important;
  bottom: 7px !important;
}
.flame-mid-left.flame-main {
  width: 21px !important;
  height: 56px !important;
  margin-left: -36px !important;
  bottom: 11px !important;
}

.flame-left.flame-outer {
  width: 26px !important;
  height: 50px !important;
  margin-left: -67px !important;
  bottom: 14px !important;
}
.flame-left.flame-main {
  width: 16px !important;
  height: 41px !important;
  margin-left: -62px !important;
  bottom: 16px !important;
}

.flame-mid-right.flame-outer {
  width: 34px !important;
  height: 68px !important;
  margin-left: 11px !important;
  bottom: 7px !important;
}
.flame-mid-right.flame-main {
  width: 21px !important;
  height: 56px !important;
  margin-left: 18px !important;
  bottom: 11px !important;
}

.flame-right.flame-outer {
  width: 26px !important;
  height: 50px !important;
  margin-left: 41px !important;
  bottom: 14px !important;
}
.flame-right.flame-main {
  width: 16px !important;
  height: 41px !important;
  margin-left: 46px !important;
  bottom: 16px !important;
}

.flame-far-left.flame-outer {
  width: 18px !important;
  height: 32px !important;
  margin-left: -79px !important;
  bottom: 18px !important;
  opacity: 0.72 !important;
}
.flame-far-left.flame-main {
  width: 10px !important;
  height: 25px !important;
  margin-left: -76px !important;
  bottom: 20px !important;
  opacity: 0.84 !important;
}

.flame-far-right.flame-outer {
  width: 18px !important;
  height: 32px !important;
  margin-left: 61px !important;
  bottom: 18px !important;
  opacity: 0.72 !important;
}
.flame-far-right.flame-main {
  width: 10px !important;
  height: 25px !important;
  margin-left: 64px !important;
  bottom: 20px !important;
  opacity: 0.84 !important;
}

/* Extra thin tongues so the top silhouette feels like real fire edges */
.flame-tongue {
  width: 10px;
  height: 28px;
  background:
    linear-gradient(to top,
      rgba(255, 214, 112, 0.78) 0%,
      rgba(255, 144, 42, 0.70) 36%,
      rgba(255, 90, 18, 0.32) 64%,
      rgba(0,0,0,0) 100%);
  filter: blur(0.25px);
  z-index: 4;
  opacity: 0.92;
}
.tongue-a { margin-left: -52px; bottom: 28px; height: 24px; animation: tongueFlickerA 0.95s ease-in-out infinite; }
.tongue-b { margin-left: -26px; bottom: 36px; height: 30px; animation: tongueFlickerB 0.88s ease-in-out infinite; }
.tongue-c { margin-left: -6px; bottom: 42px; height: 34px; animation: tongueFlickerC 0.82s ease-in-out infinite; }
.tongue-d { margin-left: 16px; bottom: 34px; height: 30px; animation: tongueFlickerD 0.90s ease-in-out infinite; }
.tongue-e { margin-left: 38px; bottom: 28px; height: 25px; animation: tongueFlickerE 0.97s ease-in-out infinite; }
.tongue-f { margin-left: 58px; bottom: 22px; height: 20px; animation: tongueFlickerF 1.02s ease-in-out infinite; }

.ember-1 { left: 22px; bottom: 30px; animation: emberRiseWide 2.1s linear infinite; }
.ember-2 { left: 48px; bottom: 34px; animation: emberRiseWide 1.85s linear infinite 0.35s; }
.ember-3 { left: 72px; bottom: 30px; animation: emberRiseWide 2.0s linear infinite 0.82s; }
.ember-4 { left: 96px; bottom: 32px; animation: emberRiseWide 1.95s linear infinite 0.52s; }
.ember-5 { left: 120px; bottom: 28px; animation: emberRiseWide 2.2s linear infinite 1.1s; }

@keyframes fireBedHotPulse {
  0%   { transform: translateX(-50%) scale(0.95, 0.90); opacity: 0.45; }
  100% { transform: translateX(-50%) scale(1.06, 1.08); opacity: 0.78; }
}

@keyframes tongueFlickerA {
  0%   { transform: translateX(-50%) scale(0.82, 0.86) rotate(-14deg); }
  50%  { transform: translateX(-50%) scale(1.10, 1.18) rotate(-6deg); }
  100% { transform: translateX(-50%) scale(0.80, 0.84) rotate(-16deg); }
}
@keyframes tongueFlickerB {
  0%   { transform: translateX(-50%) scale(0.86, 0.88) rotate(-10deg); }
  50%  { transform: translateX(-50%) scale(1.12, 1.20) rotate(-2deg); }
  100% { transform: translateX(-50%) scale(0.84, 0.86) rotate(-12deg); }
}
@keyframes tongueFlickerC {
  0%   { transform: translateX(-50%) scale(0.88, 0.90) rotate(-5deg); }
  50%  { transform: translateX(-50%) scale(1.16, 1.24) rotate(2deg); }
  100% { transform: translateX(-50%) scale(0.86, 0.88) rotate(-6deg); }
}
@keyframes tongueFlickerD {
  0%   { transform: translateX(-50%) scale(0.86, 0.88) rotate(6deg); }
  50%  { transform: translateX(-50%) scale(1.12, 1.20) rotate(1deg); }
  100% { transform: translateX(-50%) scale(0.84, 0.86) rotate(8deg); }
}
@keyframes tongueFlickerE {
  0%   { transform: translateX(-50%) scale(0.82, 0.86) rotate(10deg); }
  50%  { transform: translateX(-50%) scale(1.10, 1.18) rotate(4deg); }
  100% { transform: translateX(-50%) scale(0.80, 0.84) rotate(12deg); }
}
@keyframes tongueFlickerF {
  0%   { transform: translateX(-50%) scale(0.80, 0.82) rotate(14deg); }
  50%  { transform: translateX(-50%) scale(1.06, 1.14) rotate(8deg); }
  100% { transform: translateX(-50%) scale(0.78, 0.80) rotate(16deg); }
}

@media (max-width: 1400px) {
  .brazier-flames.brazier-flames-jagged {
    width: 144px !important;
    height: 108px !important;
  }
}


/* V12.20 — fuller, higher, wider, more realistic brazier fire */
.brazier-light {
  top: 5% !important;
  width: 162px !important;
  height: 98px !important;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 214, 126, 0.16) 0%,
      rgba(255, 154, 52, 0.13) 34%,
      rgba(192, 34, 0, 0.055) 58%,
      rgba(0, 0, 0, 0) 82%) !important;
  filter: blur(18px) !important;
  opacity: 0.84 !important;
}

.brazier-flames.brazier-flames-real {
  top: -30px !important;
  width: 170px !important;
  height: 136px !important;
  clip-path: inset(0 0 20% 0) !important;
  filter:
    drop-shadow(0 0 8px rgba(255, 186, 88, 0.25))
    drop-shadow(0 0 18px rgba(255, 102, 18, 0.13))
    drop-shadow(0 0 30px rgba(184, 28, 0, 0.06)) !important;
}

.fire-bed {
  width: 128px !important;
  height: 38px !important;
  margin-left: -64px !important;
  bottom: 11px !important;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 246, 214, 0.24) 0%,
      rgba(255, 186, 80, 0.40) 24%,
      rgba(255, 126, 30, 0.30) 48%,
      rgba(176, 28, 0, 0.16) 70%,
      rgba(0, 0, 0, 0) 86%) !important;
  filter: blur(5px) !important;
}

.fire-bed-hot {
  width: 102px !important;
  height: 22px !important;
  margin-left: -51px !important;
  bottom: 17px !important;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 250, 224, 0.40) 0%,
      rgba(255, 212, 106, 0.54) 30%,
      rgba(255, 138, 38, 0.34) 54%,
      rgba(0, 0, 0, 0) 84%) !important;
  filter: blur(3px) !important;
}

.fire-bed-rim {
  width: 148px !important;
  height: 14px !important;
  margin-left: -74px !important;
  bottom: 28px !important;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 188, 82, 0.18) 0%,
      rgba(255, 128, 32, 0.12) 48%,
      rgba(0, 0, 0, 0) 84%) !important;
  filter: blur(7px) !important;
  opacity: 0.9;
}

.flame-outer,
.flame-main,
.flame-core,
.flame-tongue {
  mix-blend-mode: screen;
  transform-origin: 50% 100%;
}

.flame-outer,
.flame-main,
.flame-tongue {
  clip-path: polygon(
    49% 0%,
    59% 6%,
    68% 14%,
    74% 24%,
    79% 35%,
    76% 47%,
    84% 60%,
    80% 73%,
    86% 84%,
    76% 92%,
    63% 97%,
    54% 100%,
    46% 100%,
    36% 97%,
    23% 92%,
    15% 83%,
    21% 70%,
    14% 57%,
    20% 44%,
    18% 30%,
    27% 17%,
    37% 7%
  ) !important;
}

.flame-core {
  clip-path: polygon(
    50% 0%,
    61% 10%,
    71% 22%,
    67% 38%,
    75% 54%,
    69% 70%,
    61% 88%,
    54% 100%,
    46% 100%,
    39% 88%,
    31% 70%,
    25% 54%,
    33% 38%,
    28% 22%,
    39% 10%
  ) !important;
}

.flame-outer {
  background:
    radial-gradient(ellipse at 50% 86%,
      rgba(255, 245, 220, 0.12) 0 8%,
      rgba(255, 208, 108, 0.54) 20%,
      rgba(255, 154, 52, 0.84) 36%,
      rgba(255, 102, 24, 0.78) 58%,
      rgba(190, 30, 0, 0.24) 78%,
      rgba(0, 0, 0, 0) 92%) !important;
  filter: blur(0.7px) !important;
}

.flame-main {
  background:
    radial-gradient(ellipse at 50% 90%,
      rgba(255, 255, 246, 0.90) 0 12%,
      rgba(255, 238, 176, 0.98) 22%,
      rgba(255, 200, 96, 0.98) 38%,
      rgba(255, 144, 44, 0.96) 56%,
      rgba(255, 92, 18, 0.56) 72%,
      rgba(0, 0, 0, 0) 88%) !important;
  filter: blur(0.16px) !important;
}

.flame-core {
  background:
    radial-gradient(ellipse at 50% 92%,
      rgba(255,255,250,1) 0 22%,
      rgba(255,248,216,1) 36%,
      rgba(255,214,112,0.78) 52%,
      rgba(255,136,30,0.20) 70%,
      rgba(0,0,0,0) 90%) !important;
  filter: blur(0.3px) !important;
}

.flame-center.flame-outer {
  width: 44px !important;
  height: 98px !important;
  margin-left: -22px !important;
  bottom: 8px !important;
  animation: flameTallA 1.32s ease-in-out infinite;
}
.flame-center.flame-main {
  width: 28px !important;
  height: 84px !important;
  margin-left: -14px !important;
  bottom: 12px !important;
  animation: flameTallB 1.00s ease-in-out infinite;
}
.flame-center.flame-core {
  width: 14px !important;
  height: 50px !important;
  margin-left: -7px !important;
  bottom: 30px !important;
  animation: flameTallCore 0.86s ease-in-out infinite;
}

.flame-mid-left.flame-outer {
  width: 36px !important;
  height: 80px !important;
  margin-left: -47px !important;
  bottom: 10px !important;
  animation: flameMidLeftA 1.20s ease-in-out infinite;
}
.flame-mid-left.flame-main {
  width: 22px !important;
  height: 68px !important;
  margin-left: -40px !important;
  bottom: 14px !important;
  animation: flameMidLeftB 0.98s ease-in-out infinite;
}

.flame-left.flame-outer {
  width: 30px !important;
  height: 62px !important;
  margin-left: -75px !important;
  bottom: 16px !important;
  animation: flameLeftA 1.26s ease-in-out infinite;
}
.flame-left.flame-main {
  width: 18px !important;
  height: 50px !important;
  margin-left: -69px !important;
  bottom: 20px !important;
  animation: flameLeftB 1.02s ease-in-out infinite;
}

.flame-far-left.flame-outer {
  width: 22px !important;
  height: 42px !important;
  margin-left: -96px !important;
  bottom: 23px !important;
  opacity: 0.76 !important;
  animation: flameFarLeftA 1.14s ease-in-out infinite;
}
.flame-far-left.flame-main {
  width: 13px !important;
  height: 32px !important;
  margin-left: -92px !important;
  bottom: 26px !important;
  opacity: 0.90 !important;
  animation: flameFarLeftB 0.92s ease-in-out infinite;
}

.flame-mid-right.flame-outer {
  width: 36px !important;
  height: 80px !important;
  margin-left: 11px !important;
  bottom: 10px !important;
  animation: flameMidRightA 1.18s ease-in-out infinite;
}
.flame-mid-right.flame-main {
  width: 22px !important;
  height: 68px !important;
  margin-left: 18px !important;
  bottom: 14px !important;
  animation: flameMidRightB 0.98s ease-in-out infinite;
}

.flame-right.flame-outer {
  width: 30px !important;
  height: 62px !important;
  margin-left: 45px !important;
  bottom: 16px !important;
  animation: flameRightA 1.26s ease-in-out infinite;
}
.flame-right.flame-main {
  width: 18px !important;
  height: 50px !important;
  margin-left: 51px !important;
  bottom: 20px !important;
  animation: flameRightB 1.02s ease-in-out infinite;
}

.flame-far-right.flame-outer {
  width: 22px !important;
  height: 42px !important;
  margin-left: 74px !important;
  bottom: 23px !important;
  opacity: 0.76 !important;
  animation: flameFarRightA 1.14s ease-in-out infinite;
}
.flame-far-right.flame-main {
  width: 13px !important;
  height: 32px !important;
  margin-left: 79px !important;
  bottom: 26px !important;
  opacity: 0.90 !important;
  animation: flameFarRightB 0.92s ease-in-out infinite;
}

.flame-tongue {
  width: 11px !important;
  background:
    linear-gradient(to top,
      rgba(255, 218, 114, 0.82) 0%,
      rgba(255, 150, 46, 0.78) 38%,
      rgba(255, 92, 18, 0.34) 68%,
      rgba(0,0,0,0) 100%) !important;
  filter: blur(0.18px) !important;
  z-index: 4;
  opacity: 0.92;
}

.tongue-a { margin-left: -82px !important; bottom: 30px !important; height: 22px !important; animation: tongueFlickerA 0.90s ease-in-out infinite; }
.tongue-b { margin-left: -59px !important; bottom: 38px !important; height: 28px !important; animation: tongueFlickerB 0.84s ease-in-out infinite; }
.tongue-c { margin-left: -31px !important; bottom: 46px !important; height: 34px !important; animation: tongueFlickerC 0.78s ease-in-out infinite; }
.tongue-d { margin-left: -5px !important; bottom: 53px !important; height: 40px !important; animation: tongueFlickerD 0.76s ease-in-out infinite; }
.tongue-e { margin-left: 20px !important; bottom: 47px !important; height: 34px !important; animation: tongueFlickerE 0.82s ease-in-out infinite; }
.tongue-f { margin-left: 47px !important; bottom: 39px !important; height: 28px !important; animation: tongueFlickerF 0.90s ease-in-out infinite; }
.tongue-g { margin-left: 71px !important; bottom: 30px !important; height: 22px !important; animation: tongueFlickerA 0.98s ease-in-out infinite; }
.tongue-h { margin-left: -95px !important; bottom: 21px !important; height: 18px !important; animation: tongueFlickerB 1.02s ease-in-out infinite; opacity: 0.78; }
.tongue-i { margin-left: 84px !important; bottom: 21px !important; height: 18px !important; animation: tongueFlickerE 1.02s ease-in-out infinite; opacity: 0.78; }
.tongue-j { margin-left: 0px !important; bottom: 60px !important; height: 28px !important; animation: tongueFlickerC 0.70s ease-in-out infinite; opacity: 0.80; }

.ember {
  width: 3px !important;
  height: 3px !important;
}
.ember-1 { left: 16px !important; bottom: 28px !important; animation: emberRiseWide 2.05s linear infinite; }
.ember-2 { left: 39px !important; bottom: 34px !important; animation: emberRiseWide 1.76s linear infinite 0.30s; }
.ember-3 { left: 61px !important; bottom: 40px !important; animation: emberRiseWide 1.86s linear infinite 0.82s; }
.ember-4 { left: 84px !important; bottom: 36px !important; animation: emberRiseWide 1.92s linear infinite 0.48s; }
.ember-5 { left: 107px !important; bottom: 33px !important; animation: emberRiseWide 2.10s linear infinite 1.1s; }
.ember-6 { left: 127px !important; bottom: 28px !important; animation: emberRiseWide 1.98s linear infinite 0.68s; }
.ember-7 { left: 143px !important; bottom: 24px !important; animation: emberRiseWide 2.20s linear infinite 1.3s; }

@keyframes emberRiseWide {
  0%   { transform: translate(0, 0) scale(0.95); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translate(10px, -48px) scale(0.20); opacity: 0; }
}

@media (max-width: 1400px) {
  .brazier-flames.brazier-flames-real {
    width: 152px !important;
    height: 122px !important;
    top: -28px !important;
  }
}


/* V12.21 — canvas particle fire upgrade.
   CSS flame shapes disabled; canvas renders live random fire particles. */
.brazier-flames,
.flame-outer,
.flame-main,
.flame-core,
.flame-tongue,
.fire-bed,
.ember {
  display: none !important;
}

.ground-brazier-wrap {
  position: relative;
  overflow: visible;
}

.canvas-light {
  position: absolute;
  left: 50%;
  top: 1%;
  width: 160px !important;
  height: 96px !important;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 214, 126, 0.15) 0%,
      rgba(255, 144, 46, 0.11) 36%,
      rgba(188, 32, 0, 0.05) 58%,
      rgba(0, 0, 0, 0) 82%) !important;
  filter: blur(18px) !important;
  opacity: 0.78 !important;
  z-index: 1;
  pointer-events: none;
  animation: canvasBrazierGlow 2.15s ease-in-out infinite alternate;
}

.brazier-fire-canvas {
  position: absolute;
  left: 50%;
  top: -36px;
  width: 172px;
  height: 126px;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 8px rgba(255, 188, 88, 0.22))
    drop-shadow(0 0 18px rgba(255, 92, 18, 0.10));
  /* Hide lower fire base behind the bowl rim so it feels inside the brazier. */
  clip-path: inset(0 0 18% 0);
}

.ground-brazier-art.live-asset {
  position: relative;
  z-index: 3;
  filter:
    brightness(0.68)
    saturate(0.62)
    contrast(1.04)
    drop-shadow(0 18px 24px rgba(0,0,0,0.86)) !important;
}

@keyframes canvasBrazierGlow {
  0%   { transform: translateX(-50%) scale(0.96, 0.92); opacity: 0.56; }
  100% { transform: translateX(-50%) scale(1.05, 1.03); opacity: 0.82; }
}

@media (max-width: 1400px) {
  .brazier-fire-canvas {
    width: 154px;
    height: 114px;
    top: -32px;
  }

  .canvas-light {
    width: 144px !important;
    height: 86px !important;
  }
}

@media (max-width: 950px) {
  .brazier-fire-canvas {
    width: 118px;
    height: 88px;
    top: -24px;
  }

  .canvas-light {
    width: 110px !important;
    height: 68px !important;
  }
}


/* V12.22 — real uploaded fire video integrated into the brazier */
.brazier-fire-canvas,
.canvas-light {
  display: none !important;
}

.ground-brazier-wrap {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.video-fire-light {
  position: absolute;
  left: 50%;
  top: 2%;
  width: 178px !important;
  height: 98px !important;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 214, 126, 0.16) 0%,
      rgba(255, 154, 46, 0.12) 32%,
      rgba(192, 34, 0, 0.05) 58%,
      rgba(0, 0, 0, 0) 82%) !important;
  filter: blur(18px);
  opacity: 0.84;
  z-index: 1;
  pointer-events: none;
  animation: brazierVideoGlow 2.1s ease-in-out infinite alternate;
}

.brazier-fire-wrap {
  position: absolute;
  left: 50%;
  top: -22px;
  width: 196px;
  height: 104px;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.brazier-fire-wrap::before {
  content: "";
  position: absolute;
  inset: 42px 8px 0 8px;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 244, 202, 0.10) 0%,
      rgba(255, 182, 86, 0.12) 24%,
      rgba(255, 120, 28, 0.10) 44%,
      rgba(180, 24, 0, 0.05) 62%,
      rgba(0,0,0,0) 86%);
  filter: blur(6px);
  z-index: 0;
  opacity: 0.82;
}

.brazier-fire-video {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 196px;
  height: auto;
  transform: translateX(-50%);
  display: block;
  object-fit: cover;
  object-position: center center;
  mix-blend-mode: screen;
  opacity: 0.94;
  filter:
    brightness(0.96)
    contrast(1.05)
    saturate(1.02)
    drop-shadow(0 0 8px rgba(255, 186, 86, 0.18))
    drop-shadow(0 0 18px rgba(255, 92, 18, 0.08));
  clip-path: inset(0 0 34px 0);
}

.ground-brazier-art.live-asset {
  position: relative;
  z-index: 3;
  filter:
    brightness(0.69)
    saturate(0.66)
    contrast(1.04)
    drop-shadow(0 18px 24px rgba(0,0,0,0.86)) !important;
}

@keyframes brazierVideoGlow {
  0%   { transform: translateX(-50%) scale(0.96, 0.92); opacity: 0.56; }
  100% { transform: translateX(-50%) scale(1.06, 1.04); opacity: 0.84; }
}

@media (max-width: 1400px) {
  .brazier-fire-wrap {
    top: -18px;
    width: 170px;
    height: 92px;
  }

  .brazier-fire-video {
    width: 170px;
    clip-path: inset(0 0 28px 0);
  }

  .video-fire-light {
    width: 158px !important;
    height: 90px !important;
  }
}

@media (max-width: 950px) {
  .brazier-fire-wrap {
    top: -10px;
    width: 128px;
    height: 72px;
  }

  .brazier-fire-video {
    width: 128px;
    clip-path: inset(0 0 21px 0);
  }

  .video-fire-light {
    width: 120px !important;
    height: 68px !important;
  }
}


/* V12.23 — raise and brighten the real brazier fire so it reads clearly */
.video-fire-light {
  top: -2% !important;
  width: 196px !important;
  height: 112px !important;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 226, 142, 0.23) 0%,
      rgba(255, 166, 56, 0.18) 30%,
      rgba(225, 60, 10, 0.08) 56%,
      rgba(0, 0, 0, 0) 82%) !important;
  filter: blur(22px) !important;
  opacity: 0.95 !important;
}

.brazier-fire-wrap {
  top: -36px !important;
  width: 222px !important;
  height: 126px !important;
}

.brazier-fire-wrap::before {
  inset: 40px 4px 0 4px !important;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 246, 210, 0.18) 0%,
      rgba(255, 196, 96, 0.22) 24%,
      rgba(255, 134, 34, 0.18) 46%,
      rgba(180, 24, 0, 0.08) 64%,
      rgba(0,0,0,0) 86%) !important;
  filter: blur(8px) !important;
  opacity: 0.96 !important;
}

.brazier-fire-video {
  width: 222px !important;
  opacity: 1 !important;
  transform: translateX(-50%) scale(1.04) !important;
  filter:
    brightness(1.18)
    contrast(1.10)
    saturate(1.10)
    drop-shadow(0 0 10px rgba(255, 196, 100, 0.24))
    drop-shadow(0 0 22px rgba(255, 92, 18, 0.12)) !important;
  clip-path: inset(0 0 18px 0) !important;
}

@media (max-width: 1400px) {
  .brazier-fire-wrap {
    top: -28px !important;
    width: 194px !important;
    height: 108px !important;
  }

  .brazier-fire-video {
    width: 194px !important;
    clip-path: inset(0 0 14px 0) !important;
  }

  .video-fire-light {
    width: 172px !important;
    height: 98px !important;
  }
}

@media (max-width: 950px) {
  .brazier-fire-wrap {
    top: -16px !important;
    width: 144px !important;
    height: 84px !important;
  }

  .brazier-fire-video {
    width: 144px !important;
    clip-path: inset(0 0 11px 0) !important;
  }

  .video-fire-light {
    width: 132px !important;
    height: 76px !important;
  }
}


/* V12.24 — use the raw fire asset and make the flames visibly come out of the brazier */
.video-fire-light {
  top: -8% !important;
  width: 224px !important;
  height: 130px !important;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 232, 150, 0.30) 0%,
      rgba(255, 172, 60, 0.22) 28%,
      rgba(230, 70, 12, 0.10) 56%,
      rgba(0, 0, 0, 0) 82%) !important;
  filter: blur(24px) !important;
  opacity: 1 !important;
}

.brazier-fire-wrap {
  top: -60px !important;
  width: 246px !important;
  height: 118px !important;
}

.brazier-fire-wrap::before {
  inset: 50px 4px 0 4px !important;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 248, 216, 0.24) 0%,
      rgba(255, 200, 98, 0.30) 24%,
      rgba(255, 142, 36, 0.22) 44%,
      rgba(184, 28, 0, 0.10) 64%,
      rgba(0,0,0,0) 86%) !important;
  filter: blur(10px) !important;
  opacity: 1 !important;
}

.brazier-fire-video {
  top: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 1 !important;
  object-fit: cover !important;
  object-position: 50% 44% !important;
  transform: translateX(-50%) scale(1.04) !important;
  filter:
    brightness(1.18)
    contrast(1.12)
    saturate(1.08)
    drop-shadow(0 0 12px rgba(255, 202, 106, 0.30))
    drop-shadow(0 0 24px rgba(255, 96, 18, 0.14)) !important;
  clip-path: inset(6px 0 18px 0) !important;
}

@media (max-width: 1400px) {
  .brazier-fire-wrap {
    top: -46px !important;
    width: 214px !important;
    height: 104px !important;
  }

  .brazier-fire-video {
    clip-path: inset(5px 0 15px 0) !important;
  }

  .video-fire-light {
    width: 194px !important;
    height: 114px !important;
  }
}

@media (max-width: 950px) {
  .brazier-fire-wrap {
    top: -28px !important;
    width: 160px !important;
    height: 80px !important;
  }

  .brazier-fire-video {
    clip-path: inset(4px 0 12px 0) !important;
  }

  .video-fire-light {
    width: 146px !important;
    height: 86px !important;
  }
}


/* V12.28 — revert the failed extras and simply stretch the real web-fire down into the bowl */
.video-fire-light {
  display: none !important;
}

.brazier-fire-wrap::before {
  display: none !important;
  content: none !important;
}

.brazier-fire-wrap {
  top: -58px !important;
  width: 248px !important;
  height: 198px !important;
  z-index: 2 !important;
  overflow: hidden !important;
  pointer-events: none;
}

.brazier-fire-video {
  position: absolute !important;
  left: 50% !important;
  top: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  height: 100% !important;
  transform: translateX(-50%) !important;
  object-fit: fill !important;
  object-position: 50% 0% !important;
  opacity: 0.95 !important;
  mix-blend-mode: screen !important;
  filter:
    brightness(1.06)
    contrast(1.04)
    saturate(1.02) !important;
  clip-path: inset(0 0 0 0) !important;
}

.ground-brazier-art.live-asset {
  z-index: 3 !important;
}

@media (max-width: 1400px) {
  .brazier-fire-wrap {
    top: -46px !important;
    width: 216px !important;
    height: 170px !important;
  }
}

@media (max-width: 950px) {
  .brazier-fire-wrap {
    top: -30px !important;
    width: 162px !important;
    height: 128px !important;
  }
}


/* V12.29 — push the cathedral floor outward toward the braziers,
   reduce the pitch-black dead zones, and lift the wall visibility a bit. */

/* Make the base cathedral art a touch brighter so the walls read better. */
.background-art {
  filter: contrast(1.12) saturate(1.02) brightness(1.16) !important;
}

/* Reduce the heavy dark side-vignette and the bottom crush so the scene breathes more. */
.background-art::after {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0.00), rgba(0,0,0,0.08) 46%, rgba(0,0,0,0.34) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.00), rgba(0,0,0,0.04) 54%, rgba(0,0,0,0.28) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.34), transparent 14%, transparent 86%, rgba(0,0,0,0.34)) !important;
}

.background-vignette {
  background:
    radial-gradient(ellipse at 50% 40%, transparent 0 42%, rgba(0,0,0,0.22) 74%, rgba(0,0,0,0.48) 100%),
    radial-gradient(ellipse at 50% 88%, rgba(0,0,0,0.00), rgba(0,0,0,0.24) 62%, rgba(0,0,0,0.52) 100%),
    radial-gradient(ellipse at 50% 18%, rgba(94,8,8,0.16), transparent 40%) !important;
}

/* Lift the atmosphere on the walls a bit and add subtle side warmth near the braziers. */
.background-atmosphere {
  background:
    radial-gradient(ellipse at 0% 50%, rgba(168, 20, 20, 0.22), transparent 18%),
    radial-gradient(ellipse at 100% 50%, rgba(168, 20, 20, 0.22), transparent 18%),
    radial-gradient(ellipse at 50% 22%, rgba(118, 12, 12, 0.12), transparent 36%),
    radial-gradient(ellipse at 18% 82%, rgba(184, 156, 118, 0.06), transparent 24%),
    radial-gradient(ellipse at 82% 82%, rgba(184, 156, 118, 0.06), transparent 24%),
    radial-gradient(ellipse at 50% 78%, rgba(210, 205, 190, 0.09), transparent 34%) !important;
  opacity: 0.92 !important;
}

/* Extend the floor presence outward so the braziers do not sit on dead black. */
.background-floor-fade {
  background:
    linear-gradient(180deg, transparent 0 52%, rgba(0,0,0,0.10) 70%, rgba(0,0,0,0.36) 100%),
    radial-gradient(ellipse at 50% 86%, rgba(170, 160, 140, 0.10), transparent 42%) !important;
}

.background-floor-fade::before {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -2%;
  height: 40%;
  pointer-events: none;
  opacity: 0.86;
  transform: perspective(1100px) rotateX(76deg) scaleY(1.58);
  transform-origin: center bottom;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.00) 0%, rgba(0,0,0,0.04) 18%, rgba(0,0,0,0.14) 62%, rgba(0,0,0,0.24) 100%),
    radial-gradient(ellipse at 50% 92%, rgba(170,150,120,0.18) 0%, rgba(140,112,88,0.08) 28%, rgba(0,0,0,0) 62%),
    radial-gradient(ellipse at 12% 90%, rgba(156,128,100,0.12) 0%, rgba(0,0,0,0) 34%),
    radial-gradient(ellipse at 88% 90%, rgba(156,128,100,0.12) 0%, rgba(0,0,0,0) 34%),
    repeating-linear-gradient(90deg,
      rgba(198,182,154,0.05) 0 2px,
      rgba(0,0,0,0) 2px 82px),
    repeating-linear-gradient(180deg,
      rgba(194,180,154,0.025) 0 2px,
      rgba(0,0,0,0) 2px 54px);
  mix-blend-mode: screen;
}

.background-floor-fade::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 82%, rgba(255, 168, 78, 0.08), rgba(0,0,0,0) 24%),
    radial-gradient(ellipse at 85% 82%, rgba(255, 168, 78, 0.08), rgba(0,0,0,0) 24%),
    radial-gradient(ellipse at 50% 88%, rgba(200, 190, 168, 0.05), rgba(0,0,0,0) 36%);
  opacity: 0.8;
}

/* Slightly help the side braziers sit in the scene with a softer shadow/read. */
.bazaar {
  opacity: 0.84 !important;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,0.72)) !important;
}

@media (max-width: 1100px) {
  .background-floor-fade::before {
    left: -10%;
    right: -10%;
    height: 34%;
    transform: perspective(900px) rotateX(78deg) scaleY(1.35);
    opacity: 0.72;
  }
}


/* V12.30 — fix black rectangle/box around braziers.
   The fire video is now keyed to alpha, so it behaves like a real transparent asset. */
.ground-brazier-wrap {
  isolation: auto !important;
  background: transparent !important;
  overflow: visible !important;
}

.bazaar,
.bazaar.left,
.bazaar.right {
  background: transparent !important;
}

/* No separate glow rectangle, no fake panels. */
.video-fire-light,
.brazier-fire-wrap::before {
  display: none !important;
  content: none !important;
}

/* Use the transparent alpha fire video only. */
.brazier-fire-wrap {
  top: -58px !important;
  width: 248px !important;
  height: 198px !important;
  z-index: 2 !important;
  overflow: visible !important;
  background: transparent !important;
  pointer-events: none;
}

.brazier-fire-video {
  position: absolute !important;
  left: 50% !important;
  top: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  height: 100% !important;
  transform: translateX(-50%) !important;
  object-fit: fill !important;
  object-position: 50% 0% !important;
  opacity: 0.96 !important;
  mix-blend-mode: normal !important;
  background: transparent !important;
  filter:
    brightness(1.05)
    contrast(1.05)
    saturate(1.03) !important;
  clip-path: inset(0 0 0 0) !important;
}

/* Keep the physical bowl in front with no background box. */
.ground-brazier-art.live-asset {
  position: relative !important;
  z-index: 3 !important;
  background: transparent !important;
  filter:
    brightness(0.69)
    saturate(0.66)
    contrast(1.04)
    drop-shadow(0 18px 24px rgba(0,0,0,0.86)) !important;
}

/* Add scene integration without creating a rectangle around the asset. */
.bazaar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 108%;
  height: 34%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 132, 42, 0.035) 0%,
      rgba(130, 80, 58, 0.035) 32%,
      rgba(0,0,0,0) 72%);
  filter: blur(12px);
}

@media (max-width: 1400px) {
  .brazier-fire-wrap {
    top: -46px !important;
    width: 216px !important;
    height: 170px !important;
  }
}

@media (max-width: 950px) {
  .brazier-fire-wrap {
    top: -30px !important;
    width: 162px !important;
    height: 128px !important;
  }
}


/* V12.31 — fix fire leaking below the bowl + retint environment */

/* Stop the keyed fire from leaking below the brazier body. Keep the visible top fire, but crop away the lower spill. */
.brazier-fire-wrap {
  overflow: hidden !important;
  top: -54px !important;
  width: 246px !important;
  height: 132px !important;
  z-index: 2 !important;
}

.brazier-fire-video {
  height: 180px !important;
  top: 0 !important;
  object-fit: fill !important;
  object-position: 50% 0% !important;
  opacity: 0.94 !important;
  clip-path: inset(0 0 38% 0) !important;
  filter: brightness(1.03) contrast(1.03) saturate(1.02) !important;
}

/* Slightly refine bowl darkness so it still reads against the floor */
.ground-brazier-art.live-asset {
  filter:
    brightness(0.71)
    saturate(0.64)
    contrast(1.05)
    drop-shadow(0 18px 24px rgba(0,0,0,0.86)) !important;
}

/* Replace the warmer brown floor haze with a darker red + sickly green cathedral tint. */
.background-atmosphere {
  background:
    radial-gradient(ellipse at 0% 50%, rgba(110, 18, 18, 0.18), transparent 18%),
    radial-gradient(ellipse at 100% 50%, rgba(110, 18, 18, 0.18), transparent 18%),
    radial-gradient(ellipse at 50% 22%, rgba(82, 8, 8, 0.11), transparent 34%),
    radial-gradient(ellipse at 18% 82%, rgba(46, 68, 44, 0.08), transparent 24%),
    radial-gradient(ellipse at 82% 82%, rgba(46, 68, 44, 0.08), transparent 24%),
    radial-gradient(ellipse at 50% 78%, rgba(110, 22, 18, 0.055), transparent 34%) !important;
  opacity: 0.88 !important;
}

/* Make the floor darker overall, but still readable near the braziers and center. */
.background-floor-fade {
  background:
    linear-gradient(180deg, transparent 0 54%, rgba(0,0,0,0.16) 72%, rgba(0,0,0,0.48) 100%),
    radial-gradient(ellipse at 50% 86%, rgba(72, 56, 48, 0.07), transparent 42%) !important;
}

.background-floor-fade::before {
  opacity: 0.68 !important;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.00) 0%, rgba(0,0,0,0.06) 18%, rgba(0,0,0,0.18) 62%, rgba(0,0,0,0.34) 100%),
    radial-gradient(ellipse at 50% 92%, rgba(88, 72, 62, 0.11) 0%, rgba(58, 44, 38, 0.06) 28%, rgba(0,0,0,0) 62%),
    radial-gradient(ellipse at 12% 90%, rgba(70, 58, 50, 0.08) 0%, rgba(0,0,0,0) 34%),
    radial-gradient(ellipse at 88% 90%, rgba(70, 58, 50, 0.08) 0%, rgba(0,0,0,0) 34%),
    repeating-linear-gradient(90deg,
      rgba(154,138,118,0.035) 0 2px,
      rgba(0,0,0,0) 2px 82px),
    repeating-linear-gradient(180deg,
      rgba(144,128,110,0.018) 0 2px,
      rgba(0,0,0,0) 2px 54px) !important;
}

.background-floor-fade::after {
  background:
    radial-gradient(ellipse at 15% 82%, rgba(112, 24, 18, 0.09), rgba(0,0,0,0) 24%),
    radial-gradient(ellipse at 85% 82%, rgba(112, 24, 18, 0.09), rgba(0,0,0,0) 24%),
    radial-gradient(ellipse at 50% 88%, rgba(52, 70, 50, 0.05), rgba(0,0,0,0) 36%) !important;
  opacity: 0.74 !important;
}

/* Tiny lift to wall readability while staying moody. */
.background-art {
  filter: contrast(1.10) saturate(1.01) brightness(1.12) !important;
}

.background-art::after {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0.00), rgba(0,0,0,0.10) 48%, rgba(0,0,0,0.38) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.00), rgba(0,0,0,0.05) 54%, rgba(0,0,0,0.32) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.28), transparent 14%, transparent 86%, rgba(0,0,0,0.28)) !important;
}

.background-vignette {
  background:
    radial-gradient(ellipse at 50% 40%, transparent 0 42%, rgba(0,0,0,0.20) 74%, rgba(0,0,0,0.44) 100%),
    radial-gradient(ellipse at 50% 88%, rgba(0,0,0,0.00), rgba(0,0,0,0.28) 62%, rgba(0,0,0,0.54) 100%),
    radial-gradient(ellipse at 50% 18%, rgba(82,8,8,0.13), transparent 40%) !important;
}

/* Match responsive sizes with leak fix */
@media (max-width: 1400px) {
  .brazier-fire-wrap {
    top: -42px !important;
    width: 214px !important;
    height: 116px !important;
  }
  .brazier-fire-video {
    height: 158px !important;
    clip-path: inset(0 0 40% 0) !important;
  }
}

@media (max-width: 950px) {
  .brazier-fire-wrap {
    top: -28px !important;
    width: 160px !important;
    height: 86px !important;
  }
  .brazier-fire-video {
    height: 118px !important;
    clip-path: inset(0 0 40% 0) !important;
  }
}


/* V12.32 — reduce floor tint, restore taller fire, and use a longer fire loop */
.brazier-fire-wrap {
  overflow: hidden !important;
  top: -66px !important;
  width: 248px !important;
  height: 162px !important;
  z-index: 2 !important;
}
.brazier-fire-video {
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important;
  object-position: 50% 0% !important;
  opacity: 0.96 !important;
  clip-path: inset(0 0 30% 0) !important;
  filter: brightness(1.06) contrast(1.06) saturate(1.03) !important;
}
.ground-brazier-art.live-asset {
  filter: brightness(0.71) saturate(0.64) contrast(1.05) drop-shadow(0 18px 24px rgba(0,0,0,0.86)) !important;
}
.background-atmosphere {
  background:
    radial-gradient(ellipse at 0% 50%, rgba(92, 18, 18, 0.11), transparent 18%),
    radial-gradient(ellipse at 100% 50%, rgba(92, 18, 18, 0.11), transparent 18%),
    radial-gradient(ellipse at 50% 22%, rgba(70, 8, 8, 0.08), transparent 34%),
    radial-gradient(ellipse at 18% 82%, rgba(34, 48, 34, 0.035), transparent 24%),
    radial-gradient(ellipse at 82% 82%, rgba(34, 48, 34, 0.035), transparent 24%),
    radial-gradient(ellipse at 50% 78%, rgba(78, 18, 18, 0.025), transparent 34%) !important;
  opacity: 0.76 !important;
}
.background-floor-fade {
  background:
    linear-gradient(180deg, transparent 0 54%, rgba(0,0,0,0.14) 72%, rgba(0,0,0,0.44) 100%),
    radial-gradient(ellipse at 50% 86%, rgba(70, 66, 62, 0.035), transparent 42%) !important;
}
.background-floor-fade::before {
  opacity: 0.58 !important;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.00) 0%, rgba(0,0,0,0.05) 18%, rgba(0,0,0,0.16) 62%, rgba(0,0,0,0.30) 100%),
    radial-gradient(ellipse at 50% 92%, rgba(86, 80, 76, 0.08) 0%, rgba(52, 48, 44, 0.04) 28%, rgba(0,0,0,0) 62%),
    radial-gradient(ellipse at 12% 90%, rgba(64, 60, 56, 0.05) 0%, rgba(0,0,0,0) 34%),
    radial-gradient(ellipse at 88% 90%, rgba(64, 60, 56, 0.05) 0%, rgba(0,0,0,0) 34%),
    repeating-linear-gradient(90deg, rgba(150,138,122,0.028) 0 2px, rgba(0,0,0,0) 2px 82px),
    repeating-linear-gradient(180deg, rgba(142,132,118,0.014) 0 2px, rgba(0,0,0,0) 2px 54px) !important;
}
.background-floor-fade::after {
  background:
    radial-gradient(ellipse at 15% 82%, rgba(104, 18, 18, 0.045), rgba(0,0,0,0) 24%),
    radial-gradient(ellipse at 85% 82%, rgba(104, 18, 18, 0.045), rgba(0,0,0,0) 24%),
    radial-gradient(ellipse at 50% 88%, rgba(38, 50, 38, 0.028), rgba(0,0,0,0) 36%) !important;
  opacity: 0.54 !important;
}
.background-art { filter: contrast(1.10) saturate(1.01) brightness(1.11) !important; }
.background-art::after {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0.00), rgba(0,0,0,0.10) 48%, rgba(0,0,0,0.38) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.00), rgba(0,0,0,0.05) 54%, rgba(0,0,0,0.32) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.28), transparent 14%, transparent 86%, rgba(0,0,0,0.28)) !important;
}
.background-vignette {
  background:
    radial-gradient(ellipse at 50% 40%, transparent 0 42%, rgba(0,0,0,0.20) 74%, rgba(0,0,0,0.44) 100%),
    radial-gradient(ellipse at 50% 88%, rgba(0,0,0,0.00), rgba(0,0,0,0.28) 62%, rgba(0,0,0,0.54) 100%),
    radial-gradient(ellipse at 50% 18%, rgba(70,8,8,0.09), transparent 40%) !important;
}
@media (max-width: 1400px) {
  .brazier-fire-wrap { top: -50px !important; width: 216px !important; height: 140px !important; }
  .brazier-fire-video { clip-path: inset(0 0 31% 0) !important; }
}
@media (max-width: 950px) {
  .brazier-fire-wrap { top: -34px !important; width: 162px !important; height: 104px !important; }
  .brazier-fire-video { clip-path: inset(0 0 32% 0) !important; }
}


/* V12.33 — 4x longer loop + deeper hidden fire stretch inside the bowl */
.brazier-fire-wrap {
  top: -72px !important;
  width: 252px !important;
  height: 190px !important;
  overflow: hidden !important;
  z-index: 2 !important;
  /* Shape the fire so it feels seated inside the bowl and doesn't obviously leak out the sides. */
  -webkit-mask-image: radial-gradient(ellipse 58% 78% at 50% 16%, rgba(0,0,0,1) 0 60%, rgba(0,0,0,0.96) 66%, rgba(0,0,0,0) 86%);
  mask-image: radial-gradient(ellipse 58% 78% at 50% 16%, rgba(0,0,0,1) 0 60%, rgba(0,0,0,0.96) 66%, rgba(0,0,0,0) 86%);
}

.brazier-fire-video {
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important;
  object-position: 50% 0% !important;
  opacity: 0.97 !important;
  /* Show more of the lower fire so it appears to continue down into the inside bottom of the bowl. */
  clip-path: inset(0 0 10% 0) !important;
  filter: brightness(1.08) contrast(1.07) saturate(1.04) !important;
}

@media (max-width: 1400px) {
  .brazier-fire-wrap {
    top: -54px !important;
    width: 220px !important;
    height: 156px !important;
    -webkit-mask-image: radial-gradient(ellipse 58% 78% at 50% 16%, rgba(0,0,0,1) 0 60%, rgba(0,0,0,0.96) 66%, rgba(0,0,0,0) 86%);
    mask-image: radial-gradient(ellipse 58% 78% at 50% 16%, rgba(0,0,0,1) 0 60%, rgba(0,0,0,0.96) 66%, rgba(0,0,0,0) 86%);
  }
  .brazier-fire-video { clip-path: inset(0 0 12% 0) !important; }
}

@media (max-width: 950px) {
  .brazier-fire-wrap {
    top: -36px !important;
    width: 166px !important;
    height: 118px !important;
    -webkit-mask-image: radial-gradient(ellipse 58% 78% at 50% 16%, rgba(0,0,0,1) 0 60%, rgba(0,0,0,0.96) 66%, rgba(0,0,0,0) 86%);
    mask-image: radial-gradient(ellipse 58% 78% at 50% 16%, rgba(0,0,0,1) 0 60%, rgba(0,0,0,0.96) 66%, rgba(0,0,0,0) 86%);
  }
  .brazier-fire-video { clip-path: inset(0 0 14% 0) !important; }
}


/* V12.34 — add a subtle second pair of flames deeper inside the bowl so they show through the front holes. */
.brazier-hole-fire {
  position: absolute;
  top: 84px;
  width: 56px;
  height: 86px;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
  opacity: 0.46;
}

.brazier-hole-fire-left {
  left: 50%;
  transform: translateX(-86px);
}

.brazier-hole-fire-right {
  left: 50%;
  transform: translateX(30px);
}

.brazier-hole-fire-video {
  position: absolute;
  left: 50%;
  top: 0;
  width: 120px;
  height: 100%;
  transform: translateX(-50%);
  object-fit: fill;
  object-position: 50% 0%;
  opacity: 0.92;
  filter: brightness(0.96) contrast(1.02) saturate(0.98);
  clip-path: inset(12% 30% 4% 30%);
}

@media (max-width: 1400px) {
  .brazier-hole-fire {
    top: 72px;
    width: 48px;
    height: 76px;
    opacity: 0.44;
  }
  .brazier-hole-fire-left { transform: translateX(-74px); }
  .brazier-hole-fire-right { transform: translateX(26px); }
  .brazier-hole-fire-video { width: 102px; clip-path: inset(12% 30% 4% 30%); }
}

@media (max-width: 950px) {
  .brazier-hole-fire {
    top: 52px;
    width: 36px;
    height: 58px;
    opacity: 0.42;
  }
  .brazier-hole-fire-left { transform: translateX(-56px); }
  .brazier-hole-fire-right { transform: translateX(18px); }
  .brazier-hole-fire-video { width: 78px; clip-path: inset(12% 30% 4% 30%); }
}


/* V12.35 — raise the secondary inner flames up behind the visible bowl cutouts. */
.brazier-hole-fire {
  top: 38px !important;
  width: 66px !important;
  height: 72px !important;
  overflow: hidden !important;
  z-index: 2 !important;
  pointer-events: none !important;
  opacity: 0.44 !important;
}

.brazier-hole-fire-left {
  left: 50% !important;
  transform: translateX(-96px) !important;
}

.brazier-hole-fire-right {
  left: 50% !important;
  transform: translateX(30px) !important;
}

.brazier-hole-fire-video {
  position: absolute !important;
  left: 50% !important;
  top: -2px !important;
  width: 132px !important;
  height: 100% !important;
  transform: translateX(-50%) !important;
  object-fit: fill !important;
  object-position: 50% 0% !important;
  opacity: 0.88 !important;
  filter: brightness(0.94) contrast(1.02) saturate(0.96) !important;
  clip-path: inset(6% 31% 18% 31%) !important;
}

@media (max-width: 1400px) {
  .brazier-hole-fire {
    top: 32px !important;
    width: 56px !important;
    height: 62px !important;
    opacity: 0.42 !important;
  }
  .brazier-hole-fire-left { transform: translateX(-82px) !important; }
  .brazier-hole-fire-right { transform: translateX(26px) !important; }
  .brazier-hole-fire-video {
    width: 112px !important;
    clip-path: inset(6% 31% 18% 31%) !important;
  }
}

@media (max-width: 950px) {
  .brazier-hole-fire {
    top: 24px !important;
    width: 42px !important;
    height: 46px !important;
    opacity: 0.40 !important;
  }
  .brazier-hole-fire-left { transform: translateX(-62px) !important; }
  .brazier-hole-fire-right { transform: translateX(18px) !important; }
  .brazier-hole-fire-video {
    width: 84px !important;
    clip-path: inset(8% 31% 18% 31%) !important;
  }
}


/* V12.36 — make the fire actually visible through the bowl cutouts.
   The bowl image's holes are not fully transparent enough to reveal behind-video clearly,
   so this adds a subtle foreground cutout-only flame flicker exactly over the hole areas. */

/* Hide the previous behind-bowl hole videos that were not showing through. */
.brazier-hole-fire {
  display: none !important;
}

.ground-brazier-wrap {
  position: relative !important;
}

.ground-brazier-art.live-asset {
  z-index: 3 !important;
}

/* Subtle cutout-only flicker layer. This is intentionally small and not a giant glow. */
.brazier-cutout-flames {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.88;
}

.cutout-fire {
  position: absolute;
  width: 9.5%;
  height: 13%;
  border-radius: 44% 56% 46% 54%;
  background:
    radial-gradient(ellipse at 50% 76%,
      rgba(255, 228, 150, 0.52) 0%,
      rgba(255, 158, 54, 0.44) 28%,
      rgba(255, 86, 18, 0.28) 52%,
      rgba(120, 10, 0, 0.10) 72%,
      rgba(0,0,0,0) 100%);
  filter: blur(0.55px);
  transform-origin: 50% 80%;
  opacity: 0.72;
  animation: cutoutFlicker 1.12s ease-in-out infinite alternate;
}

.cutout-fire::before {
  content: "";
  position: absolute;
  left: 34%;
  top: 4%;
  width: 32%;
  height: 80%;
  border-radius: 50% 50% 42% 42%;
  background:
    linear-gradient(to top,
      rgba(255, 236, 178, 0.60) 0%,
      rgba(255, 166, 62, 0.45) 44%,
      rgba(255, 92, 24, 0.16) 74%,
      rgba(0,0,0,0) 100%);
  filter: blur(0.25px);
  opacity: 0.78;
  animation: cutoutTongue 0.82s ease-in-out infinite alternate;
}

/* Positions are matched to the visible metal cutouts in the bowl asset. */
.cutout-fire-far-left {
  left: 7.6%;
  top: 40.5%;
  width: 7.6%;
  height: 12.5%;
  opacity: 0.58;
  animation-delay: -0.28s;
}

.cutout-fire-left {
  left: 23.0%;
  top: 42.5%;
  width: 9.5%;
  height: 13.5%;
  opacity: 0.72;
  animation-delay: -0.08s;
}

.cutout-fire-right {
  left: 67.4%;
  top: 42.5%;
  width: 9.5%;
  height: 13.5%;
  opacity: 0.72;
  animation-delay: -0.44s;
}

.cutout-fire-far-right {
  left: 84.9%;
  top: 40.5%;
  width: 7.6%;
  height: 12.5%;
  opacity: 0.58;
  animation-delay: -0.62s;
}

@keyframes cutoutFlicker {
  0% {
    transform: scale(0.90, 0.84) translateY(1px);
    opacity: 0.50;
    filter: blur(0.75px);
  }
  45% {
    transform: scale(1.05, 1.08) translateY(-1px);
    opacity: 0.82;
    filter: blur(0.45px);
  }
  100% {
    transform: scale(0.96, 1.00) translateY(0px);
    opacity: 0.66;
    filter: blur(0.60px);
  }
}

@keyframes cutoutTongue {
  0% {
    transform: scale(0.82, 0.82) rotate(-3deg);
    opacity: 0.44;
  }
  100% {
    transform: scale(1.08, 1.16) rotate(3deg);
    opacity: 0.84;
  }
}

@media (max-width: 1400px) {
  .brazier-cutout-flames {
    opacity: 0.84;
  }
}

@media (max-width: 950px) {
  .brazier-cutout-flames {
    opacity: 0.78;
  }
}


/* V12.37 — keep it simple: remove the added hole fire, and pull the main existing fire downward inside the bowl. */
.brazier-cutout-flames,
.brazier-hole-fire {
  display: none !important;
}

.brazier-fire-wrap {
  top: -72px !important;
  width: 252px !important;
  height: 244px !important;
  overflow: hidden !important;
  z-index: 2 !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.brazier-fire-video {
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important;
  object-position: 50% 0% !important;
  opacity: 0.98 !important;
  clip-path: inset(0 0 0 0) !important;
  filter: brightness(1.07) contrast(1.06) saturate(1.02) !important;
}

@media (max-width: 1400px) {
  .brazier-fire-wrap {
    top: -56px !important;
    width: 224px !important;
    height: 214px !important;
  }
}

@media (max-width: 950px) {
  .brazier-fire-wrap {
    top: -40px !important;
    width: 170px !important;
    height: 164px !important;
  }
}


/* V12.38 — put the SAME main fire INSIDE the bowl: lower than before, wide enough for the bowl,
   and still tall enough to rise above the rim, without hanging under the bowl. */
.brazier-fire-wrap {
  top: -20px !important;
  width: 248px !important;
  height: 164px !important;
  overflow: hidden !important;
  z-index: 2 !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.brazier-fire-video {
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important;
  object-position: 50% 0% !important;
  opacity: 0.97 !important;
  clip-path: inset(0 0 0 0) !important;
  filter: brightness(1.06) contrast(1.05) saturate(1.02) !important;
}

@media (max-width: 1400px) {
  .brazier-fire-wrap {
    top: -15px !important;
    width: 218px !important;
    height: 145px !important;
  }
}

@media (max-width: 950px) {
  .brazier-fire-wrap {
    top: -10px !important;
    width: 166px !important;
    height: 112px !important;
  }
}


/* V12.39 — fire seated inside the bowl, not hanging below it.
   Same fire asset, no extra fake hole effects. */
.brazier-cutout-flames,
.brazier-hole-fire {
  display: none !important;
}

/* Put the fire volume higher: it starts above the rim, continues down inside the bowl,
   but stops before it can show underneath the bowl/legs. */
.brazier-fire-wrap {
  top: -64px !important;
  width: 238px !important;
  height: 158px !important;
  overflow: hidden !important;
  z-index: 2 !important;
  background: transparent !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  clip-path: polygon(
    6% 0%,
    94% 0%,
    96% 54%,
    86% 100%,
    14% 100%,
    4% 54%
  ) !important;
}

.brazier-fire-video {
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important;
  object-position: 50% 0% !important;
  opacity: 0.97 !important;
  clip-path: inset(0 0 0 0) !important;
  filter: brightness(1.07) contrast(1.06) saturate(1.02) !important;
}

.ground-brazier-art.live-asset {
  z-index: 3 !important;
}

@media (max-width: 1400px) {
  .brazier-fire-wrap {
    top: -50px !important;
    width: 208px !important;
    height: 138px !important;
  }
}

@media (max-width: 950px) {
  .brazier-fire-wrap {
    top: -34px !important;
    width: 158px !important;
    height: 104px !important;
  }
}


/* V12.41 — fixed dual-video crossfade.
   IMPORTANT: this does NOT move the fire. It only fixes the stacked video positioning
   and lets JS crossfade opacity through CSS variables. */
.brazier-fire-wrap {
  isolation: isolate !important;
}

/* Reset inherited old single-video centering that shoved the second layer sideways. */
.brazier-fire-video {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  object-fit: fill !important;
  object-position: 50% 0% !important;
  opacity: var(--fire-opacity, 1) !important;
  mix-blend-mode: normal !important;
  pointer-events: none !important;
  will-change: opacity !important;
}

.brazier-fire-video-a {
  z-index: 1;
  --fire-opacity: 1;
}

.brazier-fire-video-b {
  z-index: 2;
  --fire-opacity: 0;
}

/* V12.47 — scrollable Diablo Exchange homepage sections. Preserves hero/fire placement. */
html {
  scroll-behavior: smooth;
  background: #020202;
}

body {
  overflow-x: hidden;
}

.page {
  overflow: visible;
}

.topbar {
  z-index: 1000;
}

.background-art,
.background-vignette,
.background-atmosphere,
.background-floor-fade {
  bottom: auto;
  height: calc(100vh - var(--header-h));
}

.scroll-content {
  position: relative;
  z-index: 3;
  margin-top: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(110, 9, 9, 0.20), transparent 28%),
    linear-gradient(180deg, rgba(1,1,1,0.00) 0%, #030303 3.8rem, #050505 100%);
  overflow: hidden;
}

.scroll-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 240px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.58) 36%, rgba(5,5,5,0.96) 100%),
    radial-gradient(ellipse at 50% 0%, rgba(164, 12, 12, 0.18), transparent 55%);
  z-index: 0;
}

.deep-section,
.site-footer {
  position: relative;
  z-index: 1;
}

.deep-section {
  padding: clamp(92px, 10vh, 150px) 24px;
}

.section-shell {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  position: relative;
}

.section-title {
  margin: 0;
  font-size: clamp(2.1rem, 3.3vw, 4rem);
  line-height: 0.94;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 600;
  color: transparent;
  background:
    linear-gradient(180deg, #fffaf0 0%, #dfd0b6 34%, #9f8669 54%, #f0e7d9 65%, #8e735b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0.75px rgba(6,6,6,0.88);
  text-shadow: 0 2px 0 rgba(0,0,0,0.95), 0 0 24px rgba(116, 8, 8, 0.20);
}

.card-kicker {
  display: block;
  margin-bottom: 10px;
  color: #9d8264;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.arsenal-section {
  min-height: 88vh;
  display: grid;
  align-items: center;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(93, 9, 9, 0.16), transparent 54%),
    linear-gradient(180deg, #050505 0%, #070707 48%, #030303 100%);
}

.arsenal-section::before,
.workflow-section::before,
.activity-section::before,
.spotlight-section::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.88), transparent 22%, transparent 78%, rgba(0,0,0,0.88)),
    radial-gradient(ellipse at 50% 0%, rgba(130, 12, 12, 0.13), transparent 48%);
  opacity: 0.94;
}

.arsenal-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 28px;
  perspective: 1200px;
}

.feature-stack {
  display: grid;
  gap: 28px;
}

.feature-card {
  position: relative;
  min-height: 210px;
  padding: clamp(28px, 3.2vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(205, 192, 160, 0.26);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.025), transparent 18%, rgba(255,255,255,0.035) 50%, transparent 82%, rgba(255,255,255,0.025)),
    radial-gradient(ellipse at 86% 78%, rgba(142, 16, 16, 0.16), transparent 42%),
    radial-gradient(ellipse at 18% 16%, rgba(210, 190, 150, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(18,18,18,0.94), rgba(6,6,6,0.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    inset 0 0 46px rgba(0,0,0,0.90),
    0 24px 54px rgba(0,0,0,0.46);
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translate3d(0, 0, 0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  will-change: transform;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(198, 185, 150, 0.12);
  background:
    linear-gradient(90deg, rgba(138, 10, 10, 0.36), transparent 7%, transparent 93%, rgba(138, 10, 10, 0.26)),
    linear-gradient(180deg, rgba(218, 205, 170, 0.14), transparent 12%, transparent 88%, rgba(218, 205, 170, 0.10));
  opacity: 0.75;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: -35% -15%;
  pointer-events: none;
  background: radial-gradient(ellipse at var(--mx, 50%) var(--my, 50%), rgba(205, 33, 33, 0.15), transparent 34%);
  opacity: 0;
  transition: opacity 160ms ease;
}

.feature-card:hover,
.feature-card:focus-within {
  --lift: 18px;
  border-color: rgba(234, 218, 180, 0.52);
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.075),
    inset 0 0 52px rgba(0,0,0,0.86),
    0 32px 64px rgba(0,0,0,0.58),
    0 0 36px rgba(120, 8, 8, 0.18);
}

.feature-card:hover::after,
.feature-card:focus-within::after {
  opacity: 1;
}

.feature-card-large {
  min-height: 430px;
  display: flex;
  align-items: center;
}

.feature-card-small {
  min-height: 201px;
  display: flex;
  align-items: center;
}

.card-copy {
  position: relative;
  z-index: 2;
  transform: translateZ(34px);
}

.feature-card h2 {
  margin: 0 0 14px;
  color: #eee6d8;
  font-size: clamp(2rem, 3.2vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 2px 0 #000, 0 0 24px rgba(130, 8, 8, 0.24);
}

.feature-card-small h2 {
  font-size: clamp(1.65rem, 2.45vw, 3.1rem);
}

.feature-card p {
  max-width: 610px;
  margin: 0 0 20px;
  color: #bbb2a3;
  font-size: 1rem;
  line-height: 1.65;
  text-shadow: 0 1px 8px #000;
}

.feature-icon {
  position: absolute;
  right: clamp(22px, 4vw, 56px);
  bottom: clamp(18px, 3.4vw, 44px);
  width: clamp(72px, 8vw, 128px);
  height: auto;
  fill: none;
  stroke: rgba(133, 68, 68, 0.50);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 16px rgba(105, 8, 8, 0.32));
  transform: translateZ(20px);
  pointer-events: none;
}

.feature-card-small .feature-icon {
  width: clamp(62px, 5.2vw, 96px);
  stroke-width: 6;
}

.scroll-home-btn {
  min-height: 40px;
  padding: 0 18px;
}

.workflow-section {
  min-height: 96vh;
  display: grid;
  align-items: center;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(118, 9, 9, 0.11), transparent 46%),
    linear-gradient(180deg, #030303 0%, #020202 54%, #040404 100%);
}

.workflow-shell {
  display: grid;
  gap: clamp(34px, 5vh, 58px);
}

.workflow-lane {
  width: min(620px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  column-gap: 36px;
  row-gap: 34px;
  position: relative;
}

.workflow-lane::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  right: 37px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(195, 184, 155, 0.18), rgba(126, 8, 8, 0.34), rgba(195, 184, 155, 0.18), transparent);
  box-shadow: 0 0 22px rgba(138, 8, 8, 0.14);
}

.workflow-card {
  min-height: 142px;
  padding: 28px 32px;
  border: 1px solid rgba(198, 185, 150, 0.25);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(195, 175, 135, 0.05), transparent 34%),
    linear-gradient(180deg, rgba(18, 17, 17, 0.96), rgba(7, 7, 7, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    inset 0 0 34px rgba(0,0,0,0.90),
    0 22px 40px rgba(0,0,0,0.42);
  position: relative;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.workflow-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(222, 208, 170, 0.28), rgba(164, 12, 12, 0.42), rgba(222, 208, 170, 0.28), transparent);
}

.workflow-card:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 210, 172, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 0 38px rgba(0,0,0,0.86),
    0 28px 46px rgba(0,0,0,0.52),
    0 0 28px rgba(118, 8, 8, 0.12);
}

.workflow-card h3 {
  margin: 0 0 8px;
  color: #ded5c6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1rem;
}

.workflow-card p {
  margin: 0;
  color: #b9b0a1;
  line-height: 1.55;
  font-size: 0.98rem;
}

.workflow-card-empty {
  min-height: 142px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(118, 8, 8, 0.08), transparent 52%),
    linear-gradient(180deg, rgba(14, 13, 13, 0.72), rgba(5, 5, 5, 0.88));
}

.workflow-node {
  width: 48px;
  height: 48px;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  border: 1px solid rgba(196, 16, 32, 0.82);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(120, 8, 8, 0.20), rgba(0,0,0,0.86));
  box-shadow: 0 0 20px rgba(130, 8, 8, 0.20), inset 0 0 18px rgba(0,0,0,0.80);
  position: relative;
  z-index: 2;
}

.workflow-node svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: rgba(226, 91, 91, 0.88);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.activity-section {
  min-height: 92vh;
  display: grid;
  align-items: center;
  background:
    radial-gradient(ellipse at 45% 48%, rgba(126, 8, 8, 0.13), transparent 44%),
    linear-gradient(180deg, #040404 0%, #060606 50%, #030303 100%);
}

.activity-shell {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(285px, 0.9fr);
  gap: 42px;
  align-items: end;
}

.market-activity-panel .section-title {
  margin-bottom: 16px;
}

.activity-table,
.message-panel {
  border: 1px solid rgba(200, 188, 154, 0.25);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(185, 168, 130, 0.055), transparent 36%),
    linear-gradient(180deg, rgba(16,15,15,0.96), rgba(6,6,6,0.985));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    inset 0 0 42px rgba(0,0,0,0.92),
    0 26px 48px rgba(0,0,0,0.48);
}

.activity-table {
  padding: 22px 26px;
}

.activity-row {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: center;
  text-align: left;
  color: #d9d0bd;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(190, 178, 146, 0.17);
  padding: 0 0 12px;
  margin-bottom: 12px;
  cursor: pointer;
  position: relative;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.activity-row:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.activity-row:hover,
.activity-row:focus-visible {
  transform: translateX(5px);
  background: linear-gradient(90deg, rgba(126, 8, 8, 0.13), transparent 64%);
  color: #fff;
  outline: none;
}

.activity-row::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 60px;
  top: -8px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 8px 10px;
  color: #e6ddce;
  background: rgba(7,7,7,0.96);
  border: 1px solid rgba(204, 190, 154, 0.28);
  box-shadow: 0 12px 26px rgba(0,0,0,0.55), 0 0 22px rgba(120,8,8,0.16);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition: opacity 120ms ease, top 120ms ease;
  z-index: 4;
}

.activity-row:hover::after,
.activity-row:focus-visible::after {
  top: -12px;
  opacity: 1;
}

.item-thumb {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(205, 190, 154, 0.24);
  background:
    radial-gradient(circle at 50% 42%, rgba(178, 16, 16, 0.32), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent 24%),
    linear-gradient(180deg, #2a2e2c, #111312);
  box-shadow: inset 0 0 18px rgba(0,0,0,0.84), 0 0 16px rgba(110, 8, 8, 0.12);
}

.activity-copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.98rem;
}

.activity-copy strong {
  color: #ede3d2;
  letter-spacing: 0.03em;
}

.activity-copy small {
  flex-basis: 100%;
  color: #847a6b;
  font-size: 0.76rem;
}

.activity-copy em {
  font-style: normal;
}

.item-legendary { color: #ff9f23; }
.item-unique { color: #a347ff; }
.item-rare { color: #e7d01b; }

.message-panel {
  min-height: 258px;
  padding: 28px;
  align-self: stretch;
}

.message-panel h3 {
  margin: 0;
  color: #ded4c3;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.message-blank {
  min-height: 158px;
  margin-top: 22px;
  border-top: 1px solid rgba(195, 182, 150, 0.14);
  background: radial-gradient(ellipse at 50% 42%, rgba(120, 8, 8, 0.045), transparent 70%);
}

.spotlight-section {
  min-height: 96vh;
  display: grid;
  align-items: center;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(178, 122, 42, 0.16), transparent 44%),
    radial-gradient(ellipse at 50% 86%, rgba(112, 8, 8, 0.20), transparent 48%),
    linear-gradient(180deg, #090706 0%, #110c0a 42%, #050303 100%);
}

.spotlight-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), transparent 16%, transparent 84%, rgba(0,0,0,0.70)),
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0,0,0,0.54) 100%);
}

.spotlight-shell {
  position: relative;
  z-index: 1;
}

.spotlight-heading {
  margin-bottom: 28px;
}

.premium-listings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.premium-card {
  overflow: hidden;
  border: 1px solid rgba(222, 193, 128, 0.32);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(231, 180, 91, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(24, 19, 15, 0.98), rgba(7, 6, 6, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 0 40px rgba(0,0,0,0.90),
    0 30px 60px rgba(0,0,0,0.60),
    0 0 30px rgba(170, 98, 22, 0.09);
  position: relative;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.premium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(242, 207, 138, 0.18) 0 1px, transparent 1px calc(100% - 1px), rgba(242, 207, 138, 0.12) calc(100% - 1px) 100%),
    linear-gradient(180deg, rgba(242, 207, 138, 0.16) 0 1px, transparent 1px calc(100% - 1px), rgba(242, 207, 138, 0.10) calc(100% - 1px) 100%);
  opacity: 0.42;
}

.premium-card:hover,
.premium-card:focus-within {
  transform: translateY(-7px);
  filter: brightness(1.05);
  border-color: rgba(247, 219, 158, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 0 42px rgba(0,0,0,0.86),
    0 38px 72px rgba(0,0,0,0.68),
    0 0 42px rgba(186, 110, 30, 0.16);
}

.premium-art {
  height: 178px;
  position: relative;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(222, 193, 128, 0.22);
  overflow: hidden;
}

.premium-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 52%, rgba(230, 215, 190, 0.20), transparent 28%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.72) 100%);
}

.premium-art::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(235, 210, 168, 0.12);
  box-shadow: inset 0 0 38px rgba(0,0,0,0.76);
}

.premium-art-red {
  background-image:
    radial-gradient(ellipse at 52% 42%, rgba(255,255,255,0.46), transparent 12%),
    radial-gradient(ellipse at 47% 70%, rgba(176, 14, 14, 0.84), transparent 18%),
    linear-gradient(140deg, rgba(132,14,14,0.75), rgba(10,10,10,0.84)),
    url("assets/cathedral-bg.webp");
}

.premium-art-plate {
  background-image:
    radial-gradient(ellipse at 50% 36%, rgba(230,230,220,0.28), transparent 18%),
    linear-gradient(90deg, rgba(0,0,0,0.85), transparent 45%, rgba(0,0,0,0.85)),
    url("assets/cathedral-bg.webp");
  filter: grayscale(0.75) contrast(1.2) brightness(0.70);
}

.premium-art-staff {
  background-image:
    radial-gradient(ellipse at 50% 20%, rgba(230, 200, 126, 0.34), transparent 26%),
    radial-gradient(ellipse at 50% 92%, rgba(122, 8, 8, 0.26), transparent 36%),
    linear-gradient(180deg, rgba(5,5,5,0.30), rgba(0,0,0,0.82)),
    url("assets/cathedral-bg.webp");
  background-position: center 24%;
}

.premium-body {
  padding: 24px 26px 26px;
  position: relative;
  z-index: 1;
}

.rarity {
  display: inline-block;
  margin-bottom: 9px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rarity.legendary { color: #ff9f23; }
.rarity.unique { color: #a347ff; }
.rarity.rare { color: #e7d01b; }

.premium-card h3 {
  margin: 0 0 7px;
  color: #efe7d8;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.premium-card p {
  margin: 0 0 16px;
  color: #aaa091;
  line-height: 1.45;
}

.premium-actions {
  display: flex;
  gap: 8px;
}

.ghost-btn {
  background: linear-gradient(180deg, rgba(28,28,28,0.92), rgba(6,6,6,0.96));
}

.site-footer {
  padding: clamp(82px, 10vh, 130px) 24px 38px;
  background:
    radial-gradient(ellipse at 48% 0%, rgba(138, 10, 10, 0.18), transparent 42%),
    linear-gradient(180deg, #040303 0%, #080606 40%, #020202 100%);
  border-top: 1px solid rgba(205, 192, 160, 0.18);
}

.footer-shell {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1.4fr) minmax(170px, 0.75fr) minmax(170px, 0.75fr);
  gap: clamp(48px, 6vw, 90px);
  position: relative;
  z-index: 1;
}

.footer-brand-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.footer-sigil {
  width: 58px;
}

.footer-brand-line span {
  display: block;
  margin-bottom: 5px;
  color: #b7a98c;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.footer-brand-line h2 {
  margin: 0;
  color: #eee5d6;
  font-size: 1.35rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 2px 0 #000, 0 0 18px rgba(110, 8, 8, 0.24);
}

.footer-brand-block p {
  max-width: 450px;
  color: #b7ad9d;
  line-height: 1.75;
  margin: 0 0 26px;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #d9d0c0;
  background: linear-gradient(180deg, rgba(23,23,23,0.95), rgba(5,5,5,0.98));
  border: 1px solid rgba(204, 190, 154, 0.28);
  box-shadow: inset 0 0 16px rgba(0,0,0,0.82), 0 12px 20px rgba(0,0,0,0.30);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, filter 160ms ease;
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(232, 214, 176, 0.56);
  color: #fff;
  filter: brightness(1.12);
  outline: none;
}

.footer-nav {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-nav h3 {
  margin: 0 0 10px;
  padding-bottom: 12px;
  color: #d8cdb9;
  font-size: 1rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(134, 12, 12, 0.48);
}

.footer-nav button,
.legal-links button {
  width: fit-content;
  cursor: pointer;
  color: #bcb2a2;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  text-align: left;
  transition: color 140ms ease, transform 140ms ease, text-shadow 140ms ease;
}

.footer-nav button:hover,
.footer-nav button:focus-visible,
.legal-links button:hover,
.legal-links button:focus-visible {
  color: #fff;
  transform: translateX(3px);
  text-shadow: 0 0 14px rgba(164, 12, 12, 0.38);
  outline: none;
}

.footer-bottom {
  width: min(1180px, calc(100vw - 48px));
  margin: 58px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(200, 188, 154, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: #81786a;
  font-size: 0.78rem;
  position: relative;
  z-index: 1;
}

.legal-links {
  display: flex;
  gap: 28px;
}

@media (max-width: 1100px) {
  .arsenal-grid,
  .activity-shell,
  .premium-listings,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .feature-card-large,
  .feature-card-small {
    min-height: 250px;
  }

  .activity-shell {
    align-items: stretch;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .deep-section {
    padding: 78px 18px;
  }

  .section-shell,
  .footer-shell,
  .footer-bottom {
    width: min(100%, calc(100vw - 36px));
  }

  .section-title,
  .feature-card h2 {
    letter-spacing: 0.10em;
  }

  .feature-card {
    padding: 28px;
  }

  .feature-icon {
    opacity: 0.42;
  }

  .workflow-lane {
    grid-template-columns: 1fr;
  }

  .workflow-lane::before,
  .workflow-node {
    display: none;
  }

  .legal-links {
    flex-wrap: wrap;
    gap: 14px 22px;
  }
}

.scroll-content .section-shell,
.site-footer .footer-shell,
.site-footer .footer-bottom {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.scroll-content .section-shell.is-visible,
.site-footer .footer-shell.is-visible,
.site-footer .footer-bottom.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-content .section-shell,
  .site-footer .footer-shell,
  .site-footer .footer-bottom {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* V12.47 polish: feature cards lift while tilting. */
.feature-card {
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translate3d(0, calc(var(--lift, 0px) * -1), 0);
}

/* V12.52 — Infernal live messenger UI. */
.header-message-btn {
  position: relative;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.message-alert-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.68rem;
  line-height: 1;
  color: #ffe9d0;
  background: linear-gradient(180deg, #b80f0f, #590202);
  border: 1px solid rgba(255, 198, 128, 0.42);
  box-shadow: 0 0 14px rgba(199, 25, 16, 0.62), inset 0 1px 0 rgba(255,255,255,0.24);
}

.message-alert-badge.is-empty {
  opacity: 0;
  transform: scale(0.58);
}

.message-alert-pulse {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #40ff73;
  box-shadow: 0 0 12px rgba(64, 255, 115, 0.85);
  pointer-events: none;
  animation: messagePulse 1.4s ease-in-out infinite;
}

.message-alert-pulse.is-muted {
  opacity: 0;
  animation: none;
}

@keyframes messagePulse {
  0%, 100% { transform: scale(0.78); opacity: 0.72; }
  50% { transform: scale(1.22); opacity: 1; }
}

.exchange-messenger {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 6200;
  width: min(920px, calc(100vw - 48px));
  height: min(720px, calc(100vh - var(--header-h) - 48px));
  min-height: 560px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
  border-radius: 26px;
  color: #eadfcb;
  background:
    radial-gradient(ellipse at 82% 0%, rgba(172, 18, 18, 0.22), transparent 34%),
    radial-gradient(ellipse at 12% 100%, rgba(177, 91, 34, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(18, 17, 17, 0.98), rgba(5, 4, 4, 0.985));
  border: 1px solid rgba(207, 184, 139, 0.22);
  box-shadow:
    0 24px 80px rgba(0,0,0,0.72),
    0 0 40px rgba(126, 5, 5, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.055),
    inset 0 0 0 1px rgba(110, 12, 12, 0.24);
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  pointer-events: none;
  transition: opacity 170ms ease, transform 200ms ease, width 220ms ease, height 220ms ease, right 220ms ease, bottom 220ms ease, border-radius 220ms ease;
}

.exchange-messenger.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.exchange-messenger.is-fullscreen {
  top: calc(var(--header-h) + 14px);
  right: 16px;
  bottom: 16px;
  left: 16px;
  width: auto;
  height: auto;
  max-width: none;
  min-height: 0;
  border-radius: 28px;
}

.exchange-messenger::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 210, 145, 0.04), transparent),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
  opacity: 0.72;
}

.messenger-header,
.messenger-toolbar,
.messenger-layout {
  position: relative;
  z-index: 1;
}

.messenger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(205, 177, 128, 0.16);
  background: linear-gradient(180deg, rgba(17, 14, 14, 0.88), rgba(12, 9, 9, 0.42));
}

.messenger-title-block h2 {
  margin: 2px 0 0;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f4ddbd;
  text-shadow: 0 0 18px rgba(164, 18, 12, 0.5);
}

.messenger-title-block small,
.messenger-settings small,
.chat-identity span,
.activity-preview,
.profile-popover small {
  color: rgba(226, 210, 184, 0.64);
}

.messenger-window-actions,
.chat-quick-actions,
.premium-actions,
.vote-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.messenger-icon-btn {
  width: 35px;
  height: 35px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #f1ddbf;
  background: linear-gradient(180deg, rgba(48,45,40,0.94), rgba(16,15,15,0.94));
  border: 1px solid rgba(213, 183, 135, 0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 18px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.messenger-icon-btn:hover,
.messenger-icon-btn[aria-pressed="true"] {
  color: #fff2dc;
  border-color: rgba(243, 183, 112, 0.58);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(154, 19, 14, 0.34), inset 0 1px 0 rgba(255,255,255,0.1);
}

.messenger-icon-btn.close:hover {
  border-color: rgba(255, 102, 102, 0.68);
  color: #ffb9a9;
}

.messenger-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(205, 177, 128, 0.12);
  background: rgba(0, 0, 0, 0.20);
}

.messenger-toolbar .mini-btn,
.chat-quick-actions .mini-btn,
.reputation-strip .mini-btn {
  min-height: 32px;
  padding: 8px 12px;
  font-size: 0.72rem;
}

.ghost-btn.danger,
.mini-btn.danger,
.vote-box button:last-child {
  border-color: rgba(191, 56, 42, 0.35);
  color: #f0b4a6;
}

.messenger-settings {
  position: absolute;
  top: 72px;
  right: 58px;
  z-index: 6;
  width: 290px;
  padding: 16px;
  display: grid;
  gap: 12px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(137, 18, 16, 0.22), transparent 44%),
    rgba(10, 9, 9, 0.98);
  border: 1px solid rgba(219, 188, 142, 0.23);
  box-shadow: 0 20px 60px rgba(0,0,0,0.62), 0 0 28px rgba(126, 12, 12, 0.24);
}

.messenger-settings[hidden],
.profile-popover[hidden],
.emoji-tray[hidden] {
  display: none !important;
}

.messenger-settings label,
.profile-popover label {
  display: grid;
  gap: 7px;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(241, 221, 190, 0.82);
}

.messenger-settings input[type="checkbox"] {
  accent-color: #a3110d;
  margin-right: 8px;
}

.messenger-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  min-height: 0;
}

.thread-list-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  border-right: 1px solid rgba(205, 177, 128, 0.13);
  background:
    radial-gradient(ellipse at 40% 0%, rgba(145, 13, 13, 0.16), transparent 38%),
    rgba(0,0,0,0.22);
}

.thread-search {
  padding: 14px;
}

.thread-search input,
.chat-composer input,
.profile-popover input,
.profile-popover textarea {
  width: 100%;
  color: #f2e1c8;
  background: rgba(2, 2, 2, 0.58);
  border: 1px solid rgba(205, 177, 128, 0.17);
  border-radius: 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035), 0 8px 18px rgba(0,0,0,0.18);
}

.thread-search input,
.chat-composer input,
.profile-popover input {
  height: 39px;
  padding: 0 13px;
}

.profile-popover textarea {
  resize: vertical;
  padding: 10px 13px;
}

.thread-search input:focus,
.chat-composer input:focus,
.profile-popover input:focus,
.profile-popover textarea:focus {
  border-color: rgba(235, 177, 102, 0.52);
  box-shadow: 0 0 0 3px rgba(123, 12, 12, 0.25), inset 0 1px 0 rgba(255,255,255,0.045);
}

.thread-list,
.chat-feed {
  overflow: auto;
  min-height: 0;
  scrollbar-color: rgba(165, 40, 30, 0.7) rgba(0,0,0,0.2);
  scrollbar-width: thin;
}

.thread-list {
  padding: 4px 10px 14px;
}

.thread-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  margin: 0 0 8px;
  padding: 10px;
  color: #efe0c8;
  text-align: left;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(136, 13, 13, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(33,30,28,0.74), rgba(12,11,11,0.72));
  border: 1px solid rgba(205, 177, 128, 0.13);
  cursor: pointer;
  position: relative;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.thread-item:hover,
.thread-item.is-active {
  transform: translateY(-1px);
  border-color: rgba(232, 178, 103, 0.42);
  box-shadow: 0 0 22px rgba(123, 14, 12, 0.24);
}

.thread-item.is-active {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(173, 19, 14, 0.25), transparent 45%),
    linear-gradient(180deg, rgba(45,36,31,0.86), rgba(17,13,12,0.85));
}

.thread-item.is-pinned {
  border-color: rgba(245, 199, 123, 0.58);
  box-shadow:
    0 0 0 1px rgba(245, 199, 123, 0.12) inset,
    0 0 22px rgba(206, 139, 46, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.24);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(190, 125, 32, 0.24), transparent 46%),
    linear-gradient(180deg, rgba(42, 31, 21, 0.86), rgba(13, 10, 8, 0.82));
}

.thread-item.is-pinned:hover,
.thread-item.is-pinned.is-active {
  border-color: rgba(255, 215, 145, 0.78);
  box-shadow:
    0 0 0 1px rgba(255, 215, 145, 0.16) inset,
    0 0 28px rgba(211, 142, 42, 0.26),
    0 10px 28px rgba(0, 0, 0, 0.30);
}

.thread-item.is-pinned::before {
  content: "Pinned";
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f5c77b;
  text-shadow: 0 0 10px rgba(245, 199, 123, 0.32);
}

.thread-check {
  display: none;
  width: 16px;
  height: 16px;
  accent-color: #9f100c;
}

.exchange-messenger.selecting .thread-check {
  display: block;
}

.thread-avatar,
.chat-avatar,
.profile-avatar-large {
  display: grid;
  place-items: center;
  color: #fee8c5;
  font-family: Georgia, serif;
  font-weight: 800;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
  background:
    radial-gradient(circle at 50% 28%, rgba(255,197,112,0.35), transparent 28%),
    linear-gradient(145deg, #64100d, #17100f 64%, #050505);
  border: 1px solid rgba(232, 183, 105, 0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 0 16px rgba(116, 7, 7, 0.25);
  overflow: hidden;
}

.thread-avatar,
.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.thread-avatar img,
.chat-avatar img,
.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thread-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.thread-copy strong,
.chat-identity strong {
  color: #f5dfbf;
  letter-spacing: 0.04em;
}

.thread-copy span,
.activity-preview {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.8rem;
}

.thread-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  font-size: 0.68rem;
  color: rgba(230, 207, 172, 0.56);
}

.unread-pill {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffe8ce;
  background: #8d0d09;
  border: 1px solid rgba(255,190,124,0.35);
  box-shadow: 0 0 13px rgba(158, 20, 14, 0.45);
}

.chat-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  min-height: 0;
}

.chat-profile-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(205, 177, 128, 0.13);
  background:
    linear-gradient(90deg, rgba(111, 9, 9, 0.16), transparent 42%),
    rgba(0, 0, 0, 0.16);
}

.chat-avatar {
  border-radius: 16px;
  cursor: pointer;
}

.chat-identity {
  min-width: 0;
  display: grid;
  gap: 4px;
  margin-right: auto;
}

.profile-link {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.profile-link:hover strong {
  color: #ffe9bd;
  text-shadow: 0 0 14px rgba(190, 24, 18, 0.48);
}

[data-online-dot] {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
  background: #43f06e;
  box-shadow: 0 0 10px rgba(67, 240, 110, 0.75);
}

[data-online-dot].offline {
  background: #6f6861;
  box-shadow: none;
}

.profile-popover {
  position: absolute;
  top: 86px;
  right: 14px;
  z-index: 5;
  width: min(340px, calc(100% - 28px));
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(149, 18, 16, 0.24), transparent 45%),
    rgba(8, 7, 7, 0.98);
  border: 1px solid rgba(219, 188, 142, 0.23);
  box-shadow: 0 22px 60px rgba(0,0,0,0.64), 0 0 28px rgba(126, 12, 12, 0.22);
}

.profile-popover-head,
.profile-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-preview {
  justify-content: flex-start;
}

.profile-avatar-large {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  font-size: 1.6rem;
}

.reputation-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(205, 177, 128, 0.11);
  background: rgba(0,0,0,0.18);
}

.history-chip {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #eedaad;
  background: rgba(161, 99, 37, 0.12);
  border: 1px solid rgba(226, 173, 102, 0.22);
  font-size: 0.76rem;
}

.vote-box button {
  min-height: 31px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #ddefd3;
  background: rgba(0,0,0,0.24);
  border: 1px solid rgba(130, 201, 108, 0.24);
  cursor: pointer;
}

.vote-box button:hover:not(:disabled) {
  border-color: rgba(232, 188, 112, 0.5);
  color: #fff0d0;
}

.vote-box button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.reveal-btn {
  margin-left: auto;
}

.chat-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(125, 12, 12, 0.10), transparent 35%),
    linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.18));
}

.chat-load-marker {
  align-self: center;
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(234, 218, 190, 0.58);
  background: rgba(0,0,0,0.24);
  border: 1px solid rgba(205, 177, 128, 0.10);
  font-size: 0.72rem;
}

.chat-bubble {
  max-width: min(72%, 540px);
  padding: 10px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(36,33,30,0.92), rgba(15,13,13,0.92));
  border: 1px solid rgba(205, 177, 128, 0.14);
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

.chat-bubble.mine {
  align-self: flex-end;
  color: #fff0d2;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(178, 25, 16, 0.24), transparent 55%),
    linear-gradient(180deg, rgba(75,27,22,0.94), rgba(25,14,13,0.94));
  border-color: rgba(228, 154, 88, 0.24);
}

.chat-bubble.system {
  align-self: center;
  max-width: 90%;
  color: rgba(245, 224, 190, 0.72);
  text-align: center;
  font-size: 0.78rem;
  background: rgba(0,0,0,0.28);
  border-style: dashed;
}

.chat-bubble strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  color: rgba(247, 215, 165, 0.75);
}

.chat-bubble p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
}

.chat-bubble time {
  display: block;
  margin-top: 6px;
  color: rgba(232, 210, 180, 0.44);
  font-size: 0.66rem;
}

.emoji-tray {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 10px 14px 0;
  background: rgba(0,0,0,0.12);
}

.emoji-tray button {
  width: 34px;
  height: 32px;
  border-radius: 12px;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(205, 177, 128, 0.16);
  cursor: pointer;
}

.chat-composer {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(205, 177, 128, 0.11);
  background: rgba(0,0,0,0.27);
}

.chat-composer input:disabled {
  opacity: 0.55;
}

.thread-list-loading {
  display: block;
  padding: 12px;
  color: rgba(234, 218, 190, 0.54);
  text-align: center;
  font-size: 0.76rem;
}

@media (max-width: 900px) {
  .exchange-messenger,
  .exchange-messenger.is-fullscreen {
    left: 10px;
    right: 10px;
    bottom: 10px;
    top: calc(var(--header-h) + 10px);
    width: auto;
    height: auto;
    min-height: 0;
    border-radius: 22px;
  }

  .messenger-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(170px, 0.42fr) minmax(0, 1fr);
  }

  .thread-list-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(205, 177, 128, 0.13);
  }

  .chat-quick-actions {
    display: none;
  }

  .chat-bubble {
    max-width: 88%;
  }
}

@media (max-width: 620px) {
  .messenger-header,
  .chat-profile-bar,
  .reputation-strip,
  .messenger-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .messenger-title-block h2 {
    font-size: 1.18rem;
  }

  .chat-composer {
    grid-template-columns: auto auto 1fr;
  }

  .chat-composer .mini-btn {
    grid-column: 1 / -1;
  }

  .reveal-btn {
    margin-left: 0;
  }
}

/* V12.53 — Messenger polish: Blizzard reveal button, docked minimize state, profile upload/full-profile action. */
.reveal-btn {
  color: #eaf6ff;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(112, 204, 255, 0.36), transparent 56%),
    linear-gradient(180deg, #177dd0, #075086 58%, #062e55);
  border-color: rgba(111, 211, 255, 0.72);
  box-shadow:
    0 0 22px rgba(29, 145, 255, 0.42),
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -12px 24px rgba(0, 18, 48, 0.28);
  text-shadow: 0 1px 8px rgba(0, 42, 90, 0.95);
}

.reveal-btn:hover:not(:disabled) {
  color: #ffffff;
  border-color: rgba(173, 232, 255, 0.92);
  box-shadow:
    0 0 28px rgba(49, 169, 255, 0.62),
    0 0 10px rgba(111, 211, 255, 0.24) inset,
    inset 0 1px 0 rgba(255,255,255,0.34);
}

.profile-popover input[type="file"] {
  min-height: 39px;
  padding: 8px 10px;
  cursor: pointer;
}

.profile-popover input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 1px solid rgba(213, 183, 135, 0.24);
  border-radius: 10px;
  color: #f1ddbf;
  background: linear-gradient(180deg, rgba(48,45,40,0.94), rgba(16,15,15,0.94));
  cursor: pointer;
}

.profile-popover-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.message-dock {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 6100;
  min-width: 216px;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 999px;
  color: #f3dfbe;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(174, 19, 14, 0.26), transparent 44%),
    linear-gradient(180deg, rgba(29, 26, 24, 0.96), rgba(8, 7, 7, 0.96));
  border: 1px solid rgba(220, 183, 128, 0.28);
  box-shadow:
    0 18px 54px rgba(0,0,0,0.62),
    0 0 28px rgba(126, 5, 5, 0.26),
    inset 0 1px 0 rgba(255,255,255,0.08);
  cursor: pointer;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 170ms ease, transform 180ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.message-dock:hover {
  transform: translateY(-2px) scale(1.015);
  border-color: rgba(239, 190, 116, 0.58);
  box-shadow:
    0 22px 64px rgba(0,0,0,0.68),
    0 0 34px rgba(164, 18, 12, 0.38),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.message-dock.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.92);
}

.dock-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 28%, rgba(255,197,112,0.28), transparent 34%),
    linear-gradient(145deg, #61100d, #17100f 64%, #050505);
  border: 1px solid rgba(232, 183, 105, 0.26);
  box-shadow: 0 0 16px rgba(116, 7, 7, 0.24), inset 0 1px 0 rgba(255,255,255,0.08);
  font-size: 1rem;
}

.dock-copy {
  display: grid;
  text-align: left;
  line-height: 1.08;
}

.dock-copy strong {
  color: #f7e3c1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.dock-copy small {
  color: rgba(228, 209, 180, 0.62);
  font-size: 0.72rem;
}

.dock-badge {
  position: relative;
  right: auto;
  top: auto;
}

.dock-pulse {
  top: 7px;
  right: 10px;
}

@media (max-width: 620px) {
  .message-dock {
    right: 12px;
    bottom: 12px;
    min-width: 184px;
    min-height: 58px;
  }
}

/* V12.53 — temporary full profile shell. */
.profile-page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px;
  color: #eadfcb;
  background: #050303;
  font-family: Inter, system-ui, sans-serif;
}

.profile-page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(152, 14, 14, 0.32), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(199, 84, 26, 0.15), transparent 45%),
    url("assets/cathedral-bg.webp") center / cover no-repeat;
  opacity: 0.52;
  filter: saturate(1.05) contrast(1.12) brightness(0.64);
}

.profile-page-card {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  padding: clamp(24px, 5vw, 52px);
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(167, 18, 14, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(18, 15, 14, 0.94), rgba(5, 4, 4, 0.96));
  border: 1px solid rgba(220, 183, 128, 0.25);
  box-shadow: 0 30px 90px rgba(0,0,0,0.72), inset 0 1px 0 rgba(255,255,255,0.06);
}

.profile-back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: #efc789;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.profile-page-card h1 {
  margin: 6px 0 12px;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.92;
  color: #f6dec0;
  text-shadow: 0 0 30px rgba(154, 19, 14, 0.48);
}

.profile-page-card p {
  max-width: 760px;
  color: rgba(235, 216, 188, 0.72);
  line-height: 1.7;
}

.profile-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.profile-page-grid article {
  min-height: 130px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(37, 32, 29, 0.78), rgba(10, 9, 9, 0.8));
  border: 1px solid rgba(205, 177, 128, 0.16);
}

.profile-page-grid strong {
  color: #f5dfbf;
}

.profile-page-grid span {
  color: rgba(226, 210, 184, 0.62);
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .profile-page-grid {
    grid-template-columns: 1fr;
  }
}

/* V12.54 — Battle.net consent/revoke flow polish. */
.bnet-share-panel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 360px;
  min-width: min(100%, 320px);
  margin-right: auto;
}

.bnet-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #8fdcff;
  filter: drop-shadow(0 0 10px rgba(32, 165, 255, 0.7));
}

.bnet-icon svg {
  width: 34px;
  height: 34px;
  overflow: visible;
}

.bnet-icon path:first-child {
  fill: rgba(15, 118, 203, 0.32);
  stroke: #38b6ff;
  stroke-width: 1.45;
  stroke-linejoin: round;
}

.bnet-icon path:last-child {
  fill: none;
  stroke: #9fe4ff;
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.92;
}

.bnet-share-panel .reveal-btn {
  margin-left: 0;
  min-width: 152px;
  justify-content: center;
}

.bnet-share-panel[data-state="pending"] .reveal-btn,
.bnet-share-panel[data-state="cooldown"] .reveal-btn {
  opacity: 0.62;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.reveal-cancel-btn {
  min-height: 32px;
  padding: 8px 11px;
  color: #f6d6cf;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 80, 80, 0.38);
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal-cancel-btn:hover {
  color: #ffe2dc;
  border-color: rgba(255, 90, 90, 0.76);
  box-shadow: 0 0 15px rgba(210, 29, 22, 0.34);
}

.bnet-cooldown-chip {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(218, 230, 240, 0.74);
  background: rgba(0, 20, 40, 0.34);
  border: 1px solid rgba(55, 172, 255, 0.24);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bnet-cooldown-chip::before {
  content: "◷";
  color: #46bfff;
  text-shadow: 0 0 9px rgba(37, 164, 255, 0.8);
}

.bnet-copy-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 300px);
}

.bnet-tag-copy {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  color: #eaf7ff;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(50, 181, 255, 0.28), transparent 62%),
    linear-gradient(180deg, rgba(20, 31, 42, 0.95), rgba(4, 12, 22, 0.95));
  border: 1px solid rgba(111, 211, 255, 0.62);
  border-radius: 10px;
  box-shadow: 0 0 22px rgba(31, 145, 255, 0.32), inset 0 1px 0 rgba(255,255,255,0.12);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.bnet-tag-copy:hover {
  border-color: rgba(179, 235, 255, 0.92);
  box-shadow: 0 0 30px rgba(39, 168, 255, 0.52), inset 0 1px 0 rgba(255,255,255,0.18);
}

.copy-glyph {
  color: rgba(217, 242, 255, 0.68);
  font-size: 1rem;
}

.chat-bubble.system {
  width: min(92%, 720px);
  max-width: 720px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: start;
  gap: 10px;
  padding: 0;
  color: rgba(238, 226, 210, 0.8);
  text-align: left;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.system-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #8fdcff;
  background: rgba(1, 22, 42, 0.62);
  border: 1px solid rgba(48, 176, 255, 0.62);
  box-shadow: 0 0 16px rgba(29, 141, 255, 0.24), inset 0 1px 0 rgba(255,255,255,0.11);
  font-weight: 800;
}

.system-body {
  display: grid;
  gap: 7px;
}

.system-head {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 24px;
}

.system-head strong {
  margin: 0;
  color: #efe2d0;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.system-head span {
  padding: 2px 6px;
  border-radius: 5px;
  color: rgba(238, 226, 210, 0.72);
  background: rgba(255,255,255,0.06);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}

.system-head time {
  margin: 0;
  color: rgba(232, 210, 180, 0.48);
  font-size: 0.68rem;
}

.chat-bubble.system p {
  margin: 0;
  padding: 13px 16px;
  border-radius: 8px;
  color: rgba(238, 232, 222, 0.78);
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(58, 169, 255, 0.28);
  box-shadow: inset 3px 0 0 rgba(49, 172, 255, 0.92), 0 10px 22px rgba(0,0,0,0.22);
  font-size: 0.74rem;
  line-height: 1.4;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.chat-bubble.system-request p {
  border-color: rgba(58, 169, 255, 0.32);
  box-shadow: inset 3px 0 0 rgba(49, 172, 255, 0.95), 0 10px 22px rgba(0,0,0,0.22);
}

.chat-bubble.system-success .system-avatar {
  color: #c9ffd9;
  background: rgba(3, 51, 24, 0.64);
  border-color: rgba(65, 225, 105, 0.6);
  box-shadow: 0 0 16px rgba(55, 220, 92, 0.22), inset 0 1px 0 rgba(255,255,255,0.11);
}

.chat-bubble.system-success p {
  border-color: rgba(62, 212, 103, 0.30);
  box-shadow: inset 3px 0 0 rgba(55, 220, 92, 0.92), 0 10px 22px rgba(0,0,0,0.22);
}

.chat-bubble.system-cancel .system-avatar,
.chat-bubble.system-revoke .system-avatar {
  color: #ffe0a4;
  background: rgba(58, 36, 0, 0.64);
  border-color: rgba(234, 178, 47, 0.56);
  box-shadow: 0 0 16px rgba(220, 150, 35, 0.2), inset 0 1px 0 rgba(255,255,255,0.11);
}

.chat-bubble.system-cancel p,
.chat-bubble.system-revoke p {
  border-color: rgba(224, 165, 38, 0.30);
  box-shadow: inset 3px 0 0 rgba(222, 162, 38, 0.9), 0 10px 22px rgba(0,0,0,0.22);
}

@media (max-width: 620px) {
  .bnet-share-panel {
    flex-basis: 100%;
  }

  .bnet-copy-box {
    flex-wrap: wrap;
  }

  .chat-bubble.system {
    width: 100%;
    grid-template-columns: 34px 1fr;
  }

  .system-avatar {
    width: 30px;
    height: 30px;
  }

  .chat-bubble.system p {
    letter-spacing: 0.12em;
  }
}

/* V12.55 — Smaller Battle.net controls + compact trader vote beside name. */
.chat-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 0;
}

.chat-name-row .profile-link {
  flex: 0 1 auto;
}

.compact-vote-box {
  gap: 4px;
  flex: 0 0 auto;
}

.compact-vote-box button,
.chat-profile-bar .vote-box button {
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.56rem;
  line-height: 1;
  letter-spacing: 0.04em;
  background: rgba(0,0,0,0.22);
  box-shadow: none;
}

.chat-profile-bar .vote-box button:last-child {
  color: #f0aaa0;
}

.reputation-strip {
  gap: 7px;
  padding: 7px 14px;
}

.bnet-share-panel {
  flex: 0 1 auto;
  min-width: 0;
  gap: 6px;
}

.bnet-icon,
.bnet-icon svg {
  width: 24px;
  height: 24px;
}

.bnet-icon path:first-child {
  stroke-width: 1.35;
}

.bnet-icon path:last-child {
  stroke-width: 1.25;
}

.bnet-share-panel .reveal-btn,
.reputation-strip .bnet-share-panel .reveal-btn {
  min-width: 102px;
  min-height: 25px;
  padding: 5px 9px;
  font-size: 0.56rem;
  letter-spacing: 0.09em;
  border-radius: 7px;
  white-space: nowrap;
}

.bnet-share-panel[data-state="revealed"] .reveal-btn {
  opacity: 0.78;
  cursor: default;
  color: #d8f2ff;
  background: linear-gradient(180deg, #155d93, #073b67 60%, #041f39);
}

.reveal-cancel-btn {
  min-height: 25px;
  padding: 5px 8px;
  font-size: 0.56rem;
  border-radius: 7px;
  white-space: nowrap;
}

.bnet-cooldown-chip {
  min-height: 24px;
  padding: 5px 8px;
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.bnet-copy-box {
  min-width: 0;
  gap: 6px;
}

.bnet-copy-box[hidden],
.bnet-cooldown-chip[hidden],
.reveal-cancel-btn[hidden] {
  display: none !important;
}

.bnet-tag-copy {
  min-height: 26px;
  padding: 5px 6px 5px 9px;
  gap: 7px;
  border-radius: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.035em;
  position: relative;
}

.copy-glyph {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 18px;
  padding: 2px 5px;
  border-radius: 6px;
  color: #dff4ff;
  background: rgba(58, 169, 255, 0.16);
  border: 1px solid rgba(107, 202, 255, 0.42);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.1em;
}

.bnet-tag-copy:hover .copy-glyph,
.bnet-tag-copy.is-copied .copy-glyph {
  color: #ffffff;
  background: rgba(58, 169, 255, 0.3);
  border-color: rgba(168, 231, 255, 0.82);
  box-shadow: 0 0 12px rgba(58, 169, 255, 0.32);
}

.bnet-tag-copy.is-copied .copy-glyph {
  color: #c7ffd6;
  border-color: rgba(81, 229, 128, 0.75);
}

.revoke-btn,
.reputation-strip .revoke-btn {
  min-height: 25px;
  padding: 5px 8px;
  font-size: 0.54rem;
  border-radius: 7px;
  white-space: nowrap;
}

.history-chip {
  min-height: 24px;
  padding: 5px 8px;
  font-size: 0.62rem;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .compact-vote-box {
    width: 100%;
  }

  .bnet-share-panel {
    flex-basis: auto;
  }
}

/* V12.56 — Trader actions moved into compact hamburger dropdown. */
.trader-action-menu-wrap {
  position: relative;
  align-self: flex-start;
  margin-left: 8px;
}

.trader-menu-toggle {
  width: 35px;
  height: 35px;
  display: inline-grid;
  place-items: center;
  gap: 3px;
  padding: 8px;
  border-radius: 11px;
  color: #f1ddbf;
  background: linear-gradient(180deg, rgba(48,45,40,0.94), rgba(16,15,15,0.94));
  border: 1px solid rgba(213, 183, 135, 0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 18px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.trader-menu-toggle span {
  width: 16px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 8px rgba(231, 190, 133, 0.24);
}

.trader-menu-toggle:hover,
.trader-menu-toggle[aria-expanded="true"] {
  color: #fff2dc;
  border-color: rgba(243, 183, 112, 0.58);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(154, 19, 14, 0.34), inset 0 1px 0 rgba(255,255,255,0.1);
}

.trader-action-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 9;
  width: 168px;
  padding: 7px;
  border-radius: 13px;
  border: 1px solid rgba(213, 183, 135, 0.22);
  background:
    linear-gradient(180deg, rgba(28, 23, 21, 0.98), rgba(7, 6, 6, 0.98)),
    rgba(0, 0, 0, 0.92);
  box-shadow: 0 18px 34px rgba(0,0,0,0.54), 0 0 18px rgba(120, 12, 10, 0.18);
}

.trader-action-menu[hidden] {
  display: none !important;
}

.trader-menu-item {
  width: 100%;
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  color: rgba(244, 221, 189, 0.9);
  background: transparent;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.trader-menu-item:hover {
  color: #fff3dc;
  background: rgba(154, 19, 14, 0.24);
  transform: translateX(2px);
}

.trader-menu-item.danger {
  color: #f0b4a6;
}

.trader-menu-item.danger:hover {
  color: #ffd2c9;
  background: rgba(155, 21, 16, 0.34);
}

/* V12.57 — Bulk message controls moved into compact Select + hamburger dropdown. */
.bulk-action-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.bulk-select-btn {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right-color: rgba(213, 183, 135, 0.10) !important;
}

.bulk-select-btn[aria-pressed="true"] {
  color: #fff0d4;
  border-color: rgba(224, 52, 39, 0.58) !important;
  background: linear-gradient(180deg, rgba(105, 15, 13, 0.95), rgba(31, 13, 12, 0.95));
  box-shadow: 0 0 18px rgba(154, 19, 14, 0.28), inset 0 1px 0 rgba(255,255,255,0.08);
}

.bulk-menu-toggle {
  width: 34px;
  height: 32px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 16px rgba(0,0,0,0.24);
}

.bulk-menu-toggle span {
  width: 14px;
}

.bulk-action-menu {
  left: 0;
  right: auto;
  width: 172px;
}

/* V12.58 — Keep Select dropdown visible above the inbox/search panel. */
.messenger-toolbar {
  position: relative;
  z-index: 42;
  overflow: visible;
}

.messenger-layout {
  position: relative;
  z-index: 2;
}

.bulk-action-menu-wrap {
  z-index: 45;
}

.bulk-action-menu {
  top: calc(100% + 7px);
  z-index: 90;
  background:
    linear-gradient(180deg, rgba(24, 18, 16, 0.99), rgba(6, 5, 5, 0.99)),
    rgba(0, 0, 0, 0.98);
  border-color: rgba(230, 184, 116, 0.34);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.88),
    0 0 22px rgba(122, 15, 10, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.bulk-action-menu .trader-menu-item {
  color: rgba(255, 235, 204, 0.96);
  text-shadow: 0 1px 0 rgba(0,0,0,0.72);
}


/* V12.61 — tighter conversation cards, taller messenger, and clear online/offline dots in the inbox. */
.exchange-messenger {
  width: min(940px, calc(100vw - 48px));
  height: min(790px, calc(100vh - var(--header-h) - 36px));
  min-height: 610px;
}

.messenger-header {
  padding: 16px 18px 12px;
}

.messenger-toolbar {
  padding: 8px 14px;
}

.messenger-layout {
  grid-template-columns: minmax(250px, 0.36fr) minmax(0, 1fr);
}

.thread-search {
  padding: 11px 12px 9px;
}

.thread-search input {
  height: 35px;
  border-radius: 12px;
  font-size: 0.78rem;
}

.thread-list {
  padding: 3px 8px 12px;
}

.thread-item {
  min-height: 62px;
  gap: 8px;
  margin-bottom: 6px;
  padding: 8px;
  border-radius: 15px;
}

.thread-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 0.92rem;
}

.thread-copy {
  gap: 2px;
}

.thread-copy strong {
  font-size: 0.86rem;
  line-height: 1.05;
}

.thread-status-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 0.68rem;
  line-height: 1;
  color: rgba(229, 212, 184, 0.63);
  text-transform: lowercase;
}

.thread-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #45f46d;
  box-shadow: 0 0 9px rgba(69, 244, 109, 0.72);
}

.thread-status-dot.offline {
  background: #d33a36;
  box-shadow: 0 0 8px rgba(211, 58, 54, 0.62);
}

.thread-status-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-copy .activity-preview {
  font-size: 0.74rem;
  line-height: 1.18;
}

.thread-meta {
  gap: 4px;
  font-size: 0.63rem;
}

.unread-pill {
  min-width: 17px;
  height: 17px;
  font-size: 0.62rem;
}

.thread-item.is-pinned::before {
  top: 5px;
  right: 7px;
  font-size: 0.5rem;
}

@media (max-width: 760px) {
  .exchange-messenger {
    height: calc(100vh - var(--header-h) - 18px);
    min-height: 0;
  }

  .thread-item {
    min-height: 58px;
  }
}

/* V12.62 — Give the docked messenger more horizontal breathing room. */
.exchange-messenger {
  width: min(1030px, calc(100vw - 48px));
}

.exchange-messenger:not(.is-fullscreen) .messenger-layout {
  grid-template-columns: minmax(292px, 0.35fr) minmax(0, 1fr);
}

.exchange-messenger:not(.is-fullscreen) .thread-preview {
  max-width: 205px;
}

.exchange-messenger:not(.is-fullscreen) .bnet-reveal-strip {
  gap: 8px;
}

@media (max-width: 1120px) {
  .exchange-messenger {
    width: min(960px, calc(100vw - 36px));
    right: 18px;
  }

  .exchange-messenger:not(.is-fullscreen) .messenger-layout {
    grid-template-columns: minmax(268px, 0.36fr) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .exchange-messenger {
    width: calc(100vw - 20px);
    right: 10px;
  }
}


/* V12.64 — Real Infernal profile page layout. */
.account a.account-user-badge,
a.account-user-badge {
  text-decoration: none;
}

.profile-page-shell {
  min-height: 100vh;
  display: block;
  place-items: initial;
  padding: 0;
  color: #eadfcb;
  background: #030303;
  font-family: Georgia, "Times New Roman", serif;
}

.profile-page {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  padding-top: var(--header-h);
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(95, 8, 8, 0.20), transparent 42%),
    linear-gradient(180deg, #050505 0%, #020202 58%, #060303 100%);
}

.profile-page-bg {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.92), transparent 20%, transparent 70%, rgba(0,0,0,0.96)),
    linear-gradient(180deg, rgba(0,0,0,0.20), rgba(0,0,0,0.68) 76%, #030303 100%),
    url("assets/cathedral-bg.webp") center top / cover no-repeat;
  opacity: 0.46;
  filter: grayscale(0.72) contrast(1.24) brightness(0.54);
}

.profile-page-vignette {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 56% 18%, rgba(185, 18, 18, 0.16), transparent 40%),
    radial-gradient(ellipse at 100% 52%, rgba(0,0,0,0.68), transparent 34%),
    linear-gradient(180deg, transparent 0 48%, rgba(0,0,0,0.82) 100%);
}

.profile-main {
  position: relative;
  z-index: 1;
}

.profile-hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  padding: clamp(70px, 9vh, 130px) 24px clamp(90px, 10vh, 150px);
}

.profile-hero-shell {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.82fr);
  align-items: center;
  gap: clamp(44px, 7vw, 110px);
}

.profile-hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 600;
  color: transparent;
  background:
    linear-gradient(180deg, #fffaf0 0%, #e3d3b9 32%, #9d8468 53%, #f8edda 65%, #82654f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0.8px rgba(5,5,5,0.94);
  text-shadow: 0 3px 0 rgba(0,0,0,0.96), 0 0 34px rgba(123, 8, 8, 0.24);
}

.profile-hero-copy p,
.profile-section-head p,
.transmission-shell p,
.protection-card p {
  color: rgba(235, 217, 188, 0.78);
  line-height: 1.7;
  max-width: 680px;
}

.profile-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 22px;
}

.profile-status-card {
  min-width: 172px;
  min-height: 75px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px 18px;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(166, 18, 14, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(18,17,16,0.86), rgba(6,5,5,0.91));
  border: 1px solid rgba(218, 190, 143, 0.23);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 18px 42px rgba(0,0,0,0.34);
}

.profile-status-card small {
  color: rgba(222, 200, 168, 0.54);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-status-card strong {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f2dec1;
  font-size: 1.05rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 500;
}

.profile-status-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
  background: #42ee69;
  box-shadow: 0 0 12px rgba(66, 238, 105, 0.74);
}

.profile-status-dot.offline {
  background: #d03732;
  box-shadow: 0 0 12px rgba(208, 55, 50, 0.68);
}

.profile-hero-actions,
.profile-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-primary-btn {
  color: #fff3dc;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 85, 72, 0.28), transparent 58%),
    linear-gradient(180deg, #96131a, #5d0810 58%, #280406);
  border-color: rgba(229, 62, 52, 0.60);
  box-shadow: 0 0 20px rgba(151, 13, 12, 0.24), inset 0 1px 0 rgba(255,255,255,0.16);
}

.profile-avatar-card {
  justify-self: center;
  display: grid;
  justify-items: center;
  position: relative;
}

.profile-avatar-ring {
  width: clamp(210px, 25vw, 310px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding: 13px;
  background:
    conic-gradient(from 24deg, rgba(92, 7, 7, 0.25), rgba(225, 190, 127, 0.62), rgba(60, 9, 9, 0.30), rgba(225, 190, 127, 0.46), rgba(92, 7, 7, 0.25)),
    radial-gradient(circle, rgba(0,0,0,0.86), rgba(0,0,0,0.98));
  box-shadow: 0 0 55px rgba(130, 7, 7, 0.22), 0 30px 80px rgba(0,0,0,0.62);
}

.profile-avatar-image {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #ecd8b8;
  font-size: clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(circle at 50% 32%, rgba(230, 206, 166, 0.24), transparent 32%),
    linear-gradient(145deg, rgba(77, 17, 17, 0.95), rgba(7,7,7,0.98));
  border: 1px solid rgba(220, 190, 136, 0.20);
  text-shadow: 0 0 28px rgba(160, 20, 15, 0.64);
}

.profile-avatar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.92) brightness(0.88);
}

.profile-name-plate {
  min-width: min(310px, 90vw);
  margin-top: -20px;
  padding: 13px 28px;
  color: #f3d7b7;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,70,54,0.22), transparent 60%),
    linear-gradient(180deg, #9b111d, #640912);
  border: 1px solid rgba(239, 115, 91, 0.34);
  clip-path: polygon(12% 0, 88% 0, 100% 50%, 88% 100%, 12% 100%, 0 50%);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.09);
}

.profile-meta-line {
  margin-top: 9px;
  color: rgba(232, 213, 180, 0.58);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.profile-edit-panel {
  width: min(900px, calc(100vw - 48px));
  margin: -54px auto 0;
  padding: 24px;
  display: grid;
  gap: 16px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(115, 13, 13, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(19,17,16,0.98), rgba(5,5,5,0.99));
  border: 1px solid rgba(218, 190, 143, 0.20);
  box-shadow: 0 22px 60px rgba(0,0,0,0.58), inset 0 1px 0 rgba(255,255,255,0.05);
}

.profile-edit-panel[hidden] { display: none; }

.profile-edit-panel h2 {
  margin: 0;
  color: #f2dec1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.profile-edit-panel label,
.profile-edit-panel textarea,
.profile-edit-panel input,
.transmission-form input,
.password-fields input {
  width: 100%;
}

.profile-edit-panel label {
  display: grid;
  gap: 8px;
  color: rgba(238, 220, 190, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-edit-panel textarea,
.transmission-form input,
.password-fields input {
  min-height: 44px;
  padding: 12px 14px;
  color: #eadfcb;
  background: rgba(0,0,0,0.36);
  border: 1px solid rgba(218, 190, 143, 0.18);
  outline: none;
}

.profile-edit-panel textarea:focus,
.transmission-form input:focus,
.password-fields input:focus {
  border-color: rgba(185, 21, 17, 0.54);
  box-shadow: 0 0 0 3px rgba(137, 11, 11, 0.16);
}

.profile-section {
  position: relative;
  padding: clamp(90px, 10vh, 150px) 24px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.42)),
    radial-gradient(ellipse at 50% 0%, rgba(119, 9, 9, 0.11), transparent 52%);
}

.profile-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0.90), transparent 23%, transparent 78%, rgba(0,0,0,0.90));
}

.profile-section-head,
.transmission-shell,
.protection-grid,
.alert-timeline {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
}

.profile-section-head.centered {
  text-align: center;
}

.profile-section-head.centered p {
  margin-inline: auto;
}

.alert-timeline {
  min-height: 620px;
  margin-top: 68px;
  position: relative;
}

.alert-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(154, 15, 15, 0.66), transparent);
  box-shadow: 0 0 20px rgba(132, 8, 8, 0.28);
}

.alert-card {
  position: absolute;
  width: min(420px, 44%);
  min-height: 158px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 24px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(114, 13, 13, 0.13), transparent 52%),
    linear-gradient(180deg, rgba(20,18,17,0.95), rgba(7,6,6,0.98));
  border: 1px solid rgba(218, 190, 143, 0.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 20px 52px rgba(0,0,0,0.42);
}

.login-alert { left: 0; top: 0; }
.offer-alert { right: 0; top: 210px; }
.maintenance-alert { left: 0; top: 430px; }

.alert-icon,
.protection-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f2d8b2;
  border: 1px solid rgba(216, 33, 28, 0.58);
  box-shadow: 0 0 16px rgba(120, 9, 9, 0.24);
}

.alert-tag {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 3px 8px;
  border-radius: 5px;
  color: #fff2d9;
  background: rgba(160, 16, 16, 0.58);
  font-size: 0.54rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.alert-tag.blue { background: rgba(25, 106, 164, 0.68); }
.alert-tag.gold { background: rgba(172, 116, 34, 0.72); }

.alert-card h3,
.protection-card h3 {
  margin: 10px 0 8px;
  color: #f3dfc1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.98rem;
}

.alert-card p { margin: 0 0 12px; color: rgba(235, 217, 188, 0.74); line-height: 1.6; }
.alert-card time { color: rgba(232, 213, 180, 0.44); font-size: 0.72rem; }

.protections {
  background:
    radial-gradient(ellipse at 70% 10%, rgba(109, 9, 9, 0.13), transparent 46%),
    linear-gradient(180deg, #050505, #030303);
}

.protection-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 22px;
}

.protection-card {
  min-height: 170px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.035), transparent 34%),
    radial-gradient(ellipse at 100% 0%, rgba(139, 12, 12, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(19,18,17,0.95), rgba(7,6,6,0.98));
  border: 1px solid rgba(218, 190, 143, 0.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 20px 52px rgba(0,0,0,0.35);
}

.blank-ritual { min-height: 320px; }
.privacy-card { min-height: 240px; }
.session-card, .password-card { min-height: 190px; }

.ritual-empty {
  height: 150px;
  display: grid;
  place-items: center;
  margin-top: 24px;
  color: rgba(232, 213, 180, 0.36);
  border: 1px dashed rgba(218, 190, 143, 0.13);
  background: rgba(0,0,0,0.18);
}

.privacy-lists {
  display: grid;
  gap: 16px;
}

.privacy-lists ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
}

.privacy-lists li,
.session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 9px 11px;
  color: rgba(235, 217, 188, 0.78);
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(218, 190, 143, 0.11);
}

.privacy-lists button {
  color: #f3dfc1;
  background: rgba(126, 13, 13, 0.28);
  border: 1px solid rgba(216, 55, 45, 0.28);
  padding: 6px 9px;
  cursor: pointer;
}

.session-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 14px;
}

.session-row small { color: rgba(232, 213, 180, 0.48); }

.password-fields {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.password-fields[hidden] { display: none; }

.transmission {
  min-height: 320px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(133, 9, 9, 0.18), transparent 48%),
    linear-gradient(90deg, #070707, #040404 42%, #120306 100%);
}

.transmission-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: center;
  gap: 42px;
}

.transmission-form {
  display: grid;
  gap: 12px;
  justify-items: stretch;
}

.transmission-form small {
  text-align: center;
  color: rgba(232, 213, 180, 0.48);
  font-size: 0.72rem;
}

.thread-search input.compose-focus {
  border-color: rgba(54, 176, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(28, 139, 220, 0.16), 0 0 22px rgba(42, 157, 255, 0.20);
}

@media (max-width: 920px) {
  .profile-hero-shell,
  .transmission-shell,
  .protection-grid {
    grid-template-columns: 1fr;
  }

  .profile-avatar-card {
    order: -1;
  }

  .alert-timeline {
    min-height: 0;
    display: grid;
    gap: 18px;
  }

  .alert-timeline::before { display: none; }
  .alert-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .profile-hero,
  .profile-section {
    padding-left: 14px;
    padding-right: 14px;
  }
  .profile-hero-shell,
  .profile-section-head,
  .transmission-shell,
  .protection-grid,
  .alert-timeline,
  .profile-edit-panel {
    width: calc(100vw - 28px);
  }
  .profile-status-row {
    display: grid;
  }
  .alert-card {
    grid-template-columns: 1fr;
  }
}

/* V12.65 — public profile access from pinned messenger accounts. */
.thread-avatar.thread-profile-quick {
  padding: 0;
  appearance: none;
  cursor: pointer;
}

.thread-avatar.thread-profile-quick:hover,
.thread-name-profile:hover,
.thread-public-link:hover {
  border-color: rgba(56, 162, 255, 0.58);
  box-shadow: 0 0 18px rgba(31, 126, 255, 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}

.thread-name-profile {
  width: max-content;
  max-width: 100%;
  padding: 0;
  color: #f5dfbf;
  text-align: left;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: transparent;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.thread-public-link {
  display: inline-grid;
  place-items: center;
  min-height: 19px;
  padding: 3px 8px;
  color: rgba(190, 220, 255, 0.88);
  text-decoration: none;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(25, 82, 145, 0.36), rgba(6, 16, 28, 0.52));
  border: 1px solid rgba(66, 148, 232, 0.24);
  border-radius: 999px;
  cursor: pointer;
}

.thread-item.is-pinned .thread-public-link {
  color: #ffe5ae;
  background: linear-gradient(180deg, rgba(153, 94, 20, 0.35), rgba(34, 20, 5, 0.62));
  border-color: rgba(255, 200, 112, 0.34);
}

.profile-page.is-public-profile .profile-hero {
  background:
    radial-gradient(ellipse at 72% 43%, rgba(15, 87, 150, 0.13), transparent 28%),
    radial-gradient(ellipse at 28% 20%, rgba(127, 9, 9, 0.17), transparent 42%);
}

.profile-page.is-public-profile .profile-status-card {
  border-color: rgba(67, 147, 232, 0.24);
}

.public-dossier-card {
  min-height: 205px;
}

/* V12.66 — Infernal Trade Hub page. */
.trade-page-shell {
  background: #030303;
}

.trade-page .profile-page-bg {
  opacity: 0.52;
  filter: grayscale(0.68) contrast(1.28) brightness(0.50);
}

.trade-page .profile-page-vignette {
  background:
    radial-gradient(ellipse at 48% 12%, rgba(165, 11, 11, 0.18), transparent 40%),
    radial-gradient(ellipse at 82% 22%, rgba(35, 4, 4, 0.72), transparent 34%),
    linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.76) 62%, #030303 100%);
}

.trade-main {
  position: relative;
  z-index: 1;
}

.trade-hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  padding: clamp(72px, 9vh, 132px) 24px clamp(80px, 9vh, 142px);
}

.trade-hero-shell,
.trade-section,
.forge-shell {
  width: min(1240px, calc(100vw - 48px));
  margin: 0 auto;
}

.trade-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.78fr);
  gap: clamp(44px, 6vw, 110px);
  align-items: center;
}

.trade-hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(3.6rem, 8.4vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: transparent;
  background:
    linear-gradient(180deg, #fffaf0 0%, #e8d8bd 31%, #9a7a5e 52%, #f7ead6 65%, #6f4e43 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0.8px rgba(5,5,5,0.94);
  text-shadow: 0 3px 0 rgba(0,0,0,0.98), 0 0 38px rgba(130, 8, 8, 0.26);
}

.trade-hero-copy p,
.trade-section-head p,
.forge-shell p,
.pulse-card p,
.detail-description {
  color: rgba(235, 217, 188, 0.78);
  line-height: 1.7;
}

.trade-search-command {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 30px 0 18px;
  padding: 10px;
  border: 1px solid rgba(211, 190, 150, 0.20);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(22, 18, 18, 0.86), rgba(6, 6, 7, 0.94)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 9px);
  box-shadow: inset 0 0 28px rgba(0,0,0,0.70), 0 18px 42px rgba(0,0,0,0.48);
}

.trade-search-rune {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #e8caa4;
  border: 1px solid rgba(138, 14, 14, 0.56);
  background: rgba(80, 8, 8, 0.18);
}

.trade-search-command input,
.trade-filter-panel input,
.trade-listings-panel select {
  width: 100%;
  color: #eadfcb;
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(211,190,150,0.22);
  min-height: 42px;
  padding: 0 13px;
  outline: none;
  font-family: inherit;
}

.trade-search-command input:focus,
.trade-listings-panel select:focus {
  border-color: rgba(178, 24, 24, 0.68);
  box-shadow: 0 0 0 2px rgba(178,24,24,0.12);
}

.trade-hero-actions,
.forge-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trade-live-panel {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(211,190,150,0.22);
  background:
    radial-gradient(circle at 50% 20%, rgba(120, 8, 8, 0.28), transparent 42%),
    linear-gradient(180deg, rgba(18,16,16,0.88), rgba(5,5,6,0.94));
  box-shadow: inset 0 0 38px rgba(0,0,0,0.74), 0 26px 70px rgba(0,0,0,0.58);
  overflow: hidden;
}

.trade-live-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(125, 13, 13, 0.26);
  pointer-events: none;
}

.trade-live-orb {
  width: 190px;
  aspect-ratio: 1;
  margin: 4px auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(160, 18, 18, 0.24), transparent 56%),
    conic-gradient(from 30deg, transparent, rgba(180,20,20,0.34), transparent 32%, rgba(225,202,155,0.18), transparent 62%, rgba(115,8,8,0.38), transparent);
  filter: drop-shadow(0 0 24px rgba(130, 8, 8, 0.28));
}

.trade-live-orb span {
  width: 86px;
  aspect-ratio: 1;
  border: 1px solid rgba(225, 200, 156, 0.35);
  transform: rotate(45deg);
  background: radial-gradient(circle, rgba(185, 12, 12, 0.46), rgba(20, 3, 3, 0.88));
  box-shadow: inset 0 0 22px rgba(0,0,0,0.8), 0 0 28px rgba(164, 10, 10, 0.32);
}

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

.trade-live-grid article {
  padding: 14px;
  border: 1px solid rgba(225, 200, 156, 0.16);
  background: rgba(0,0,0,0.28);
}

.trade-live-grid small,
.listings-toolbar small,
.listing-price span,
.detail-stat-list small {
  display: block;
  color: rgba(235,217,188,0.56);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trade-live-grid strong {
  display: block;
  margin-top: 6px;
  color: #f3e6d0;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}

.trade-section {
  padding: clamp(78px, 9vh, 130px) 0;
}

.trade-section-head {
  margin-bottom: 28px;
}

.trade-section-head.centered {
  text-align: center;
}

.trade-dashboard {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.trade-filter-panel,
.trade-listings-panel,
.trade-detail-panel .detail-frame,
.forge-shell,
.pulse-card {
  border: 1px solid rgba(211,190,150,0.20);
  background:
    linear-gradient(180deg, rgba(18, 16, 16, 0.92), rgba(5, 5, 6, 0.94)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.020) 0 1px, transparent 1px 9px);
  box-shadow: inset 0 0 34px rgba(0,0,0,0.68), 0 20px 52px rgba(0,0,0,0.42);
}

.trade-filter-panel,
.trade-listings-panel,
.trade-detail-panel .detail-frame {
  padding: 18px;
}

.filter-panel-head,
.listings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(211,190,150,0.14);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.filter-panel-head h3,
.listings-toolbar h3,
.detail-frame h3,
.pulse-card strong {
  margin: 0;
  color: #f2e5cf;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filter-panel-head button {
  color: rgba(235,217,188,0.64);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trade-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  color: rgba(235,217,188,0.74);
  border-bottom: 1px solid rgba(211,190,150,0.10);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 0;
}

.filter-group strong {
  width: 100%;
  color: rgba(235,217,188,0.68);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.filter-chip {
  color: rgba(235,217,188,0.70);
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(211,190,150,0.16);
  min-height: 30px;
  padding: 0 10px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: #fff2df;
  border-color: rgba(165, 19, 19, 0.72);
  background: rgba(115, 10, 10, 0.28);
  transform: translateY(-1px);
}

.filter-chip.mythic.active { border-color: rgba(206, 96, 255, 0.72); }
.filter-chip.unique.active { border-color: rgba(160, 88, 255, 0.72); }
.filter-chip.legendary.active { border-color: rgba(255, 132, 30, 0.72); }
.filter-chip.rare.active { border-color: rgba(238, 210, 64, 0.72); }

.trade-listings-panel {
  min-height: 720px;
}

.trade-listings {
  display: grid;
  gap: 10px;
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}

.trade-listing-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(211,190,150,0.14);
  background: linear-gradient(90deg, rgba(35, 22, 22, 0.64), rgba(7,7,8,0.58));
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.trade-listing-card:hover,
.trade-listing-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(174, 21, 21, 0.58);
  background: linear-gradient(90deg, rgba(58, 27, 27, 0.76), rgba(10,8,8,0.70));
  box-shadow: 0 0 0 1px rgba(136, 14, 14, 0.14), inset 0 0 28px rgba(112, 8, 8, 0.12);
}

.trade-listing-card[hidden] {
  display: none;
}

.listing-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(211,190,150,0.18);
  background:
    radial-gradient(circle at 50% 35%, rgba(160, 22, 22, 0.36), transparent 44%),
    linear-gradient(180deg, rgba(22,22,22,0.92), rgba(5,5,5,0.94));
  position: relative;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.72);
}

.listing-icon::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(232, 208, 166, 0.52);
  transform: rotate(45deg);
  opacity: 0.72;
}

.sword-mark::before { height: 28px; width: 6px; left: 20px; top: 8px; border-radius: 999px; }
.armor-mark::before { border-radius: 45% 45% 55% 55%; transform: none; }
.staff-mark::before { width: 5px; height: 30px; left: 20px; top: 7px; transform: rotate(18deg); }
.ring-mark::before { border-radius: 50%; transform: none; }
.cache-mark::before { transform: rotate(0); }
.amulet-mark::before { border-radius: 50% 50% 10% 10%; }
.glove-mark::before { border-radius: 45% 30% 40% 20%; transform: rotate(-18deg); }
.axe-mark::before { width: 9px; height: 28px; left: 18px; top: 8px; transform: rotate(-35deg); }

.listing-main h3 {
  margin: 2px 0 5px;
  color: #f2e5cf;
  letter-spacing: 0.06em;
}

.listing-main p {
  margin: 0 0 6px;
  color: rgba(235,217,188,0.76);
}

.listing-main small {
  color: rgba(235,217,188,0.54);
}

.seller-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 6px;
  box-shadow: 0 0 10px currentColor;
}

.seller-dot.online { color: #35d96d; background: #35d96d; }
.seller-dot.offline { color: #ce2832; background: #ce2832; }

.rarity,
.detail-rarity {
  display: inline-block;
  color: #e1d4bf;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.rarity.legendary,
.detail-rarity.legendary { color: #ff8a23; }
.rarity.unique,
.detail-rarity.unique { color: #a76bff; }
.rarity.rare,
.detail-rarity.rare { color: #f4df4f; }
.rarity.mythic,
.detail-rarity.mythic { color: #d56bff; }

.listing-price {
  text-align: right;
  min-width: 82px;
}

.listing-price strong {
  display: block;
  color: #f7ead6;
  font-size: 1.1rem;
}

.detail-frame {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.detail-frame h3 {
  margin: 8px 0 8px;
  font-size: 1.7rem;
}

.detail-artifact {
  height: 170px;
  display: grid;
  place-items: center;
  margin: 18px 0;
  border: 1px solid rgba(211,190,150,0.14);
  background:
    radial-gradient(circle at 50% 45%, rgba(151, 15, 15, 0.30), transparent 44%),
    radial-gradient(circle at 50% 50%, rgba(235, 210, 166, 0.10), transparent 26%),
    linear-gradient(180deg, rgba(0,0,0,0.24), rgba(0,0,0,0.58));
}

.detail-artifact span {
  width: 74px;
  height: 74px;
  border: 2px solid rgba(234, 207, 163, 0.58);
  transform: rotate(45deg);
  box-shadow: 0 0 34px rgba(149, 15, 15, 0.38), inset 0 0 22px rgba(0,0,0,0.72);
  background: radial-gradient(circle, rgba(150, 10, 10, 0.32), rgba(0,0,0,0.40));
}

.detail-stat-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.detail-stat-list div {
  padding: 11px;
  border: 1px solid rgba(211,190,150,0.12);
  background: rgba(0,0,0,0.24);
}

.detail-stat-list strong {
  display: block;
  margin-top: 4px;
  color: #f2e5cf;
}

.listing-forge {
  width: 100%;
  padding: clamp(70px, 8vh, 118px) 24px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.90), rgba(42, 4, 8, 0.22), rgba(0,0,0,0.90)),
    radial-gradient(ellipse at 50% 0%, rgba(142, 10, 10, 0.22), transparent 58%);
  border-top: 1px solid rgba(120, 8, 8, 0.22);
  border-bottom: 1px solid rgba(120, 8, 8, 0.20);
}

.forge-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
}

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

.pulse-card {
  padding: 22px;
  min-height: 150px;
}

.pulse-card span {
  color: #c21e2e;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pulse-card strong {
  display: block;
  margin: 10px 0 8px;
}

@media (max-width: 1180px) {
  .trade-hero-shell,
  .trade-dashboard {
    grid-template-columns: 1fr;
  }

  .trade-detail-panel .detail-frame {
    position: relative;
    top: auto;
  }
}

@media (max-width: 780px) {
  .trade-search-command,
  .forge-shell,
  .pulse-grid {
    grid-template-columns: 1fr;
  }

  .trade-live-grid {
    grid-template-columns: 1fr;
  }

  .trade-listing-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .listing-price {
    grid-column: 2;
    text-align: left;
  }
}


/* V12.67 — POE-inspired Infernal Exchange search console */
.exchange-search-console {
  position: relative;
  max-width: 1280px;
  margin: 0 auto 26px;
  border: 1px solid rgba(211, 190, 150, 0.20);
  background:
    radial-gradient(ellipse at 70% 10%, rgba(118, 12, 14, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(16, 14, 13, 0.98), rgba(3, 3, 4, 0.98));
  box-shadow: inset 0 0 40px rgba(0,0,0,0.82), 0 28px 70px rgba(0,0,0,0.50);
  overflow: visible;
}

.exchange-search-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(146, 16, 20, 0.12), transparent 24%, transparent 76%, rgba(146, 16, 20, 0.10)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 9px);
  mix-blend-mode: screen;
}

.exchange-console-tabs,
.exchange-query-row,
.exchange-filter-grid,
.exchange-console-actions,
.bulk-exchange-panel {
  position: relative;
  z-index: 1;
}

.exchange-console-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 42px;
  border-bottom: 1px solid rgba(211, 190, 150, 0.16);
  background: rgba(0,0,0,0.36);
}

.exchange-tab,
.exchange-tool-btn {
  font-family: inherit;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(237, 222, 197, 0.82);
  border: 0;
  border-right: 1px solid rgba(211,190,150,0.12);
  background: rgba(14, 13, 13, 0.70);
  padding: 0 17px;
  cursor: pointer;
  min-height: 42px;
  transition: color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.exchange-tab:hover,
.exchange-tool-btn:hover,
.exchange-tab.active {
  color: #fff4df;
  background: linear-gradient(180deg, rgba(128, 88, 22, 0.78), rgba(58, 30, 4, 0.88));
  box-shadow: inset 0 -1px 0 rgba(234, 206, 151, 0.36);
}

.tab-rune {
  margin-right: 8px;
  color: #e7b768;
}

.exchange-console-spacer {
  flex: 1;
  min-width: 24px;
}

.exchange-settings-wrap {
  position: relative;
}

.exchange-settings-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 8px;
  z-index: 60;
  width: 250px;
  padding: 14px;
  border: 1px solid rgba(211,190,150,0.24);
  background: linear-gradient(180deg, rgba(23, 22, 22, 0.98), rgba(6, 6, 7, 0.98));
  box-shadow: 0 20px 42px rgba(0,0,0,0.72);
}

.exchange-settings-menu label {
  display: grid;
  gap: 8px;
  color: rgba(235,217,188,0.82);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.exchange-settings-menu button {
  margin-top: 12px;
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(211,190,150,0.18);
  color: #f0dfc2;
  background: rgba(0,0,0,0.44);
  cursor: pointer;
  font-family: inherit;
}

.exchange-query-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(210px, 310px) minmax(150px, 220px);
  gap: 1px;
  padding: 12px;
  border-bottom: 1px solid rgba(211,190,150,0.12);
}

.exchange-input-wrap,
.exchange-query-row select,
.filter-fields input,
.filter-fields select,
.stat-row input,
.stat-dropdown input {
  min-height: 38px;
  color: #eadcc3;
  border: 1px solid rgba(211,190,150,0.12);
  background: rgba(25, 28, 30, 0.78);
  font-family: inherit;
  letter-spacing: 0.04em;
  outline: none;
}

.exchange-input-wrap {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
}

.exchange-input-wrap span {
  text-align: center;
  color: rgba(233, 198, 125, 0.75);
}

.exchange-input-wrap input,
.stat-dropdown input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: #eadcc3;
  padding: 0 12px 0 0;
  font-family: inherit;
}

.exchange-query-row select,
.filter-fields select {
  padding: 0 12px;
}

.exchange-input-wrap:focus-within,
.exchange-query-row select:focus,
.filter-fields input:focus,
.filter-fields select:focus,
.stat-row input:focus,
.stat-dropdown input:focus {
  border-color: rgba(161, 29, 36, 0.74);
  box-shadow: 0 0 0 1px rgba(161,29,36,0.30), inset 0 0 18px rgba(0,0,0,0.48);
}

.bulk-exchange-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 12px;
  padding: 18px;
  border: 1px solid rgba(211,190,150,0.14);
  background: linear-gradient(90deg, rgba(78, 9, 13, 0.22), rgba(0,0,0,0.42));
}

.bulk-exchange-panel strong {
  display: block;
  color: #f5e6c7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bulk-exchange-panel p {
  margin: 6px 0 0;
  color: rgba(235,217,188,0.66);
}

.exchange-filter-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
  gap: 26px;
  padding: 18px 20px 14px;
}

.exchange-left-filters,
.exchange-stat-filters {
  min-width: 0;
}

.exchange-filter-group {
  border-bottom: 1px solid rgba(164, 187, 189, 0.18);
}

.exchange-filter-group summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  color: #eadcc3;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 700;
  list-style: none;
}

.exchange-filter-group summary::-webkit-details-marker { display: none; }
.exchange-filter-group summary::after {
  content: "▾";
  margin-left: auto;
  color: rgba(235,217,188,0.55);
  transition: transform 150ms ease;
}
.exchange-filter-group[open] summary::after { transform: rotate(180deg); }

.square-check {
  width: 13px;
  height: 13px;
  display: inline-block;
  border: 2px solid rgba(181, 134, 43, 0.84);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.82);
}

.filter-fields {
  padding: 0 0 14px 30px;
  gap: 2px;
}

.filter-fields.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.filter-fields label {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(90px, 0.7fr);
  align-items: center;
  min-height: 38px;
  padding-left: 12px;
  color: #ecdcc2;
  background: rgba(0,0,0,0.36);
  border: 1px solid rgba(211,190,150,0.08);
  text-transform: uppercase;
  letter-spacing: 0.075em;
}

.filter-fields label select,
.filter-fields label input {
  width: 100%;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
}

.stat-filter-head,
.stat-group-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  color: #eadcc3;
  border-bottom: 1px solid rgba(164,187,189,0.18);
}

.stat-filter-head h3,
.stat-group-title strong {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.90rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.stat-filter-head button,
.stat-group-title button,
.stat-remove {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.86);
  cursor: pointer;
  font: inherit;
  min-width: 30px;
  min-height: 30px;
}

.stat-group {
  position: relative;
  padding: 10px 0 16px;
}

.stat-group-title {
  border-bottom-color: rgba(211,190,150,0.14);
  margin-bottom: 5px;
}

.stat-row {
  display: grid;
  grid-template-columns: 24px auto minmax(190px, 1fr) 76px 76px 32px;
  gap: 2px;
  align-items: center;
  min-height: 38px;
  margin: 2px 0;
}

.stat-row-check {
  width: 13px;
  height: 13px;
  justify-self: center;
  border: 2px solid rgba(220,220,210,0.82);
  background: #070707;
  cursor: pointer;
}

.stat-row-check.active {
  background: #9a111d;
  border-color: #f1d49b;
  box-shadow: 0 0 12px rgba(168, 20, 28, 0.45);
}

.pseudo-chip {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 9px;
  color: #f6e5af;
  background: rgba(255,255,255,0.08);
  font-size: 0.68rem;
  font-style: italic;
  text-transform: uppercase;
}

.stat-name {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #f1e4cc;
  background: rgba(0,0,0,0.52);
  border: 1px solid rgba(211,190,150,0.08);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-row input {
  width: 100%;
  text-align: center;
  padding: 0 6px;
}

.stat-add-wrap,
.stat-add-group-wrap {
  position: relative;
  margin-top: 10px;
}

.stat-add-group-wrap {
  width: min(380px, 100%);
  margin-left: auto;
  margin-bottom: 4px;
}

.stat-add-btn {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(211,190,150,0.12);
  background: rgba(28, 31, 33, 0.92);
  color: #eadcc3;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.stat-add-btn span {
  float: right;
  color: rgba(235,217,188,0.54);
  padding-right: 10px;
}

.stat-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  z-index: 70;
  max-height: 320px;
  overflow: auto;
  border: 1px solid rgba(191, 142, 52, 0.48);
  background: linear-gradient(180deg, rgba(28,31,33,0.99), rgba(6,6,7,0.99));
  box-shadow: 0 22px 42px rgba(0,0,0,0.76);
}

.stat-dropdown input {
  min-height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(211,190,150,0.16);
}

.stat-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: transparent;
  color: #f1e4cc;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-dropdown button:hover {
  background: rgba(133, 15, 21, 0.38);
}

.stat-dropdown button span {
  display: inline-block;
  min-width: 62px;
  margin-right: 10px;
  color: #f4df9f;
  font-size: 0.70rem;
  font-style: italic;
}

.exchange-console-actions {
  display: grid;
  grid-template-columns: minmax(220px, 420px) auto auto;
  justify-content: end;
  gap: 8px;
  padding: 12px 20px 18px;
  border-top: 1px solid rgba(211,190,150,0.12);
}

.wide-search-btn {
  width: 100%;
}

.exchange-search-console.filters-hidden .exchange-filter-grid {
  display: none;
}

.exchange-search-console.filters-hidden .exchange-console-actions {
  border-top: 0;
}

.trade-dashboard.console-results {
  max-width: 1280px;
  margin: 22px auto 0;
  grid-template-columns: minmax(0, 1fr) 350px;
}

.trade-dashboard.console-results .trade-listings-panel {
  min-width: 0;
}

@media (max-width: 1120px) {
  .exchange-filter-grid,
  .trade-dashboard.console-results,
  .exchange-query-row {
    grid-template-columns: 1fr;
  }

  .stat-add-group-wrap {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .exchange-console-tabs {
    flex-wrap: wrap;
  }

  .exchange-console-spacer {
    display: none;
  }

  .exchange-tab,
  .exchange-tool-btn,
  .exchange-settings-wrap {
    flex: 1 1 auto;
  }

  .filter-fields.two-col {
    grid-template-columns: 1fr;
  }

  .filter-fields label {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 8px;
  }

  .filter-fields label select,
  .filter-fields label input {
    border: 1px solid rgba(211,190,150,0.12);
  }

  .stat-row {
    grid-template-columns: 22px auto 1fr 52px 52px 28px;
    font-size: 0.72rem;
  }

  .exchange-console-actions {
    grid-template-columns: 1fr;
  }
}

/* V12.67 safety: keep scripted dropdown panels hidden until opened */
.bulk-exchange-panel[hidden],
.exchange-settings-menu[hidden],
.stat-dropdown[hidden] {
  display: none !important;
}

/* V12.68 — wider trade console, clean focus, hidden number spinners, POE-style result rows */
.exchange-search-console,
.exchange-results.console-results,
.trade-market-floor .trade-section-head {
  width: min(96vw, 1560px);
  max-width: 1560px;
}

.exchange-filter-grid {
  grid-template-columns: minmax(380px, 0.92fr) minmax(560px, 1.08fr);
  gap: 34px;
}

.exchange-query-row {
  grid-template-columns: minmax(420px, 1fr) minmax(240px, 320px) minmax(190px, 250px);
}

.exchange-input-wrap:focus-within {
  border-color: rgba(211,190,150,0.12);
  box-shadow: none;
}

.exchange-input-wrap input:focus,
.exchange-input-wrap input:focus-visible {
  outline: none;
  box-shadow: none;
}

.exchange-query-row select:focus,
.filter-fields input:focus,
.filter-fields select:focus,
.stat-row input:focus,
.stat-dropdown input:focus {
  outline: none;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.exchange-stat-filters {
  border-bottom: 1px solid rgba(164,187,189,0.18);
}

.exchange-stat-filters summary::-webkit-details-marker {
  display: none;
}

.stat-filter-summary {
  cursor: pointer;
  list-style: none;
  padding: 0 4px 0 0;
}

.stat-filter-summary::after {
  content: "▾";
  color: rgba(235,217,188,0.55);
  margin-left: 12px;
  transition: transform 150ms ease;
}

.exchange-stat-filters[open] .stat-filter-summary::after {
  transform: rotate(180deg);
}

.stat-filter-panel-body {
  padding-top: 10px;
}

.exchange-results.console-results {
  margin: 24px auto 0;
  border: 1px solid rgba(211,190,150,0.18);
  background:
    radial-gradient(ellipse at 25% 0%, rgba(123, 16, 22, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(10,9,9,0.94), rgba(3,3,4,0.96));
  box-shadow: inset 0 0 46px rgba(0,0,0,0.76), 0 26px 70px rgba(0,0,0,0.44);
  padding: 0 0 18px;
}

.exchange-results-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(211,190,150,0.14);
  background: rgba(0,0,0,0.34);
}

.exchange-results-top h3 {
  margin: 3px 0 0;
  color: #f2e5cf;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.exchange-results-top select {
  min-height: 38px;
  min-width: 220px;
  color: #eadcc3;
  border: 1px solid rgba(211,190,150,0.16);
  background: rgba(25,28,30,0.82);
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trade-result-list {
  display: grid;
  gap: 16px;
  padding: 18px 20px 0;
}

.trade-result-card.trade-listing-card {
  display: grid;
  grid-template-columns: 190px minmax(420px, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
  min-height: 218px;
  padding: 0;
  border: 1px solid rgba(211,190,150,0.18);
  background:
    linear-gradient(90deg, rgba(0,0,0,0.70), rgba(14,10,10,0.80)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 10px);
  box-shadow: inset 0 0 38px rgba(0,0,0,0.78);
}

.trade-result-card.trade-listing-card:hover,
.trade-result-card.trade-listing-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(229,190,103,0.45);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.82), 0 0 0 1px rgba(130,30,25,0.35), 0 18px 44px rgba(0,0,0,0.42);
}

.result-item-side {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 22px 16px;
  background:
    radial-gradient(circle at 50% 42%, rgba(144, 24, 28, 0.23), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(0,0,0,0.38));
  border-right: 1px solid rgba(211,190,150,0.10);
}

.result-item-portrait {
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(211,190,150,0.20);
  background:
    radial-gradient(circle at 50% 45%, rgba(222,182,98,0.10), transparent 42%),
    linear-gradient(180deg, rgba(19,20,20,0.82), rgba(3,3,4,0.94));
  box-shadow: inset 0 0 38px rgba(0,0,0,0.82), 0 16px 28px rgba(0,0,0,0.42);
}

.result-item-portrait .listing-icon {
  width: 82px;
  height: 82px;
}

.result-item-portrait .listing-icon::before {
  inset: 20px;
}

.verified-tag {
  min-width: 96px;
  padding: 4px 12px;
  text-align: center;
  color: #f2e5cf;
  border: 1px solid rgba(211,190,150,0.22);
  background: rgba(0,0,0,0.64);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.verified-tag.muted {
  color: rgba(235,217,188,0.58);
}

.result-item-sheet {
  align-self: center;
  min-height: 178px;
  padding: 16px 20px 14px;
  background:
    linear-gradient(180deg, rgba(1,1,2,0.82), rgba(0,0,0,0.72)),
    radial-gradient(ellipse at 50% 0%, rgba(214, 176, 84, 0.12), transparent 48%);
  border-top: 1px solid rgba(211,190,150,0.26);
  border-bottom: 1px solid rgba(211,190,150,0.18);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.82);
}

.result-item-name {
  margin-bottom: 12px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.result-item-name strong {
  display: block;
  color: #f4df73;
  font-size: 1.25rem;
  letter-spacing: 0.11em;
  text-shadow: 0 0 16px rgba(199,142,39,0.34);
}

.result-item-name span {
  display: block;
  margin-top: 2px;
  color: #f0e4cf;
  font-size: 0.95rem;
}

.result-item-meta {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
  color: rgba(235,217,188,0.70);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-stat-lines {
  list-style: none;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  color: #aeb7ff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.result-flavor {
  margin: 12px 0 0;
  color: rgba(235,217,188,0.62);
  text-align: center;
  letter-spacing: 0.05em;
}

.unique-sheet .result-item-name strong { color: #c987ff; }
.rare-sheet .result-item-name strong { color: #ffe06f; }
.mythic-sheet .result-item-name strong { color: #ffb04d; }

.result-seller-panel {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px 20px;
  background:
    radial-gradient(ellipse at 100% 15%, rgba(146, 16, 20, 0.20), transparent 50%),
    linear-gradient(180deg, rgba(33,27,26,0.62), rgba(5,5,6,0.72));
  border-left: 1px solid rgba(211,190,150,0.12);
}

.seller-panel-label {
  color: rgba(235,217,188,0.58);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.result-seller-panel .listing-price {
  text-align: left;
}

.result-seller-panel .listing-price strong {
  color: #f2e5cf;
  font-size: 1.25rem;
}

.result-seller-panel p {
  margin: 0;
  color: rgba(235,217,188,0.72);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.result-actions .mini-btn {
  min-height: 32px;
  padding-inline: 12px;
}

@media (max-width: 1180px) {
  .trade-result-card.trade-listing-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .result-seller-panel {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid rgba(211,190,150,0.12);
  }
}

@media (max-width: 760px) {
  .exchange-search-console,
  .exchange-results.console-results,
  .trade-market-floor .trade-section-head {
    width: min(94vw, 560px);
  }
  .trade-result-card.trade-listing-card {
    grid-template-columns: 1fr;
  }
  .result-item-side {
    border-right: 0;
    border-bottom: 1px solid rgba(211,190,150,0.10);
  }
  .exchange-results-top {
    align-items: stretch;
    flex-direction: column;
  }
  .exchange-results-top select {
    width: 100%;
  }
}


/* V12.69 — trade page layout cleanup + messenger thread name click fix */
.trade-page-shell .trade-main {
  padding-top: var(--header-h);
}

.trade-market-floor {
  padding-top: clamp(38px, 5vh, 68px);
}

.trade-console-layout-head {
  width: min(96vw, 1560px);
  max-width: 1560px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 500px);
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
}

.trade-console-layout-head .trade-section-head {
  width: auto;
  max-width: 860px;
  margin: 0;
}

.trade-console-layout-head .trade-live-panel {
  justify-self: end;
  width: min(100%, 500px);
  padding: 20px;
}

.trade-console-layout-head .trade-live-orb {
  width: 124px;
  margin: 0 auto 16px;
}

.trade-console-layout-head .trade-live-orb span {
  width: 56px;
}

.trade-console-layout-head .trade-live-grid {
  gap: 10px;
}

.trade-console-layout-head .trade-live-grid article {
  padding: 11px 12px;
}

.exchange-search-console,
.exchange-results.console-results {
  margin-left: max(24px, calc((100vw - 1560px) / 2));
  margin-right: auto;
}

.thread-avatar:not(button) {
  pointer-events: none;
}

.thread-name-profile {
  cursor: default;
}

.thread-name-profile:hover {
  border-color: transparent;
  box-shadow: none;
}

@media (max-width: 980px) {
  .trade-console-layout-head {
    grid-template-columns: 1fr;
  }

  .trade-console-layout-head .trade-live-panel {
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  .trade-console-layout-head,
  .exchange-search-console,
  .exchange-results.console-results {
    width: min(94vw, 560px);
    margin-left: auto;
    margin-right: auto;
  }
}


/* V12.70 — fix trade page split layout: filters left, live status right */
.trade-page .trade-market-floor {
  width: min(96vw, 1560px);
  max-width: 1560px;
  margin: 0 auto;
  padding-top: clamp(34px, 4.5vh, 58px);
}

.trade-console-layout-head.trade-console-split {
  width: 100%;
  max-width: none;
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(285px, 360px);
  gap: clamp(18px, 2.2vw, 34px);
  align-items: start;
}

.trade-console-left {
  min-width: 0;
}

.trade-console-layout-head.trade-console-split .trade-section-head {
  width: auto;
  max-width: none;
  margin: 0 0 18px;
}

.trade-console-layout-head.trade-console-split .trade-section-head .section-title {
  font-size: clamp(2.45rem, 4.2vw, 5.4rem);
  line-height: 0.9;
}

.trade-console-layout-head.trade-console-split .trade-section-head p {
  max-width: 850px;
}

.trade-console-layout-head.trade-console-split .exchange-search-console {
  width: 100%;
  max-width: none;
  margin: 0;
}

.trade-console-layout-head.trade-console-split .trade-live-panel {
  justify-self: stretch;
  width: 100%;
  max-width: none;
  margin-top: clamp(18px, 5.6vw, 72px);
  padding: 18px;
}

.trade-console-layout-head.trade-console-split .trade-live-orb {
  width: 104px;
  margin: 0 auto 14px;
}

.trade-console-layout-head.trade-console-split .trade-live-orb span {
  width: 48px;
}

.trade-console-layout-head.trade-console-split .trade-live-grid {
  gap: 8px;
}

.trade-console-layout-head.trade-console-split .trade-live-grid article {
  padding: 10px;
}

.trade-console-layout-head.trade-console-split .trade-live-grid strong {
  font-size: 1.12rem;
}

.trade-market-floor .exchange-results.console-results {
  width: 100%;
  max-width: none;
  margin: 24px 0 0;
}

@media (max-width: 1080px) {
  .trade-console-layout-head.trade-console-split {
    grid-template-columns: 1fr;
  }

  .trade-console-layout-head.trade-console-split .trade-live-panel {
    order: -1;
    width: min(100%, 520px);
    justify-self: start;
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .trade-page .trade-market-floor {
    width: min(94vw, 560px);
  }

  .trade-console-layout-head.trade-console-split .trade-section-head .section-title {
    font-size: clamp(2.2rem, 14vw, 3.7rem);
  }
}

/* V12.71 — Trade live search activation + alert status */
.exchange-console-actions.exchange-console-actions-live {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(280px, 1fr) auto;
  align-items: center;
  justify-content: stretch;
  gap: 10px;
}

.live-search-toggle {
  justify-content: flex-start;
  min-height: 38px;
  width: 100%;
  color: #fff5da;
  border-color: rgba(232, 180, 79, 0.52);
  background: linear-gradient(180deg, rgba(117, 76, 8, 0.88), rgba(62, 34, 4, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255,230,166,0.08), 0 0 18px rgba(118, 78, 13, 0.18);
}

.live-search-toggle span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  font-weight: 900;
  font-size: 1.05rem;
  color: #ffffff;
}

.live-search-toggle.is-active {
  border-color: rgba(249, 210, 132, 0.72);
  background: linear-gradient(180deg, rgba(139, 92, 14, 0.96), rgba(78, 42, 7, 0.96));
  animation: liveSearchPulse 1.8s ease-in-out infinite;
}

.live-search-status {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0 18px;
  color: #dcecff;
  border: 1px solid rgba(77, 146, 210, 0.48);
  background: linear-gradient(180deg, rgba(16, 43, 67, 0.92), rgba(8, 21, 34, 0.96));
  text-transform: uppercase;
  letter-spacing: 0.10em;
  box-shadow: inset 0 0 18px rgba(44, 111, 174, 0.14);
}

.live-search-status[hidden] {
  display: none !important;
}

.live-search-status.is-hit {
  color: #fff3c6;
  border-color: rgba(237, 190, 88, 0.76);
  background: linear-gradient(180deg, rgba(85, 51, 12, 0.95), rgba(28, 19, 7, 0.96));
}

.console-action-buttons {
  display: grid;
  grid-template-columns: minmax(190px, 360px) auto auto;
  gap: 8px;
  align-items: center;
}

.trade-result-card.live-found {
  animation: liveResultFound 2.2s ease-out 1;
}

@keyframes liveSearchPulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(255,230,166,0.08), 0 0 14px rgba(118, 78, 13, 0.16); }
  50% { box-shadow: inset 0 0 0 1px rgba(255,230,166,0.18), 0 0 28px rgba(177, 116, 16, 0.36); }
}

@keyframes liveResultFound {
  0% { transform: translateY(-4px); border-color: rgba(255, 214, 110, 0.95); box-shadow: 0 0 34px rgba(177, 116, 16, 0.52); }
  100% { transform: translateY(0); }
}

@media (max-width: 980px) {
  .exchange-console-actions.exchange-console-actions-live,
  .console-action-buttons {
    grid-template-columns: 1fr;
  }
}

/* V12.72 — Create Listing header dropdown + equipment listing forge */
.topbar {
  grid-template-columns: minmax(330px, 1fr) minmax(500px, auto) minmax(430px, 1fr);
}

.nav {
  gap: clamp(20px, 2.2vw, 40px);
}

.create-listing-nav {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 0 0 2px;
}

.create-listing-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  color: #d8d0bd;
  cursor: pointer;
  position: relative;
  padding: 24px 6px 20px;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.create-listing-trigger::before {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(175,12,12,0.82), transparent);
  transition: left 180ms ease, right 180ms ease;
}

.create-listing-trigger:hover,
.create-listing-trigger:focus-visible,
.create-listing-trigger.active,
.create-listing-nav.is-open .create-listing-trigger {
  color: #fff;
  text-shadow: 0 0 15px rgba(190, 20, 20, 0.66);
  outline: none;
}

.create-listing-trigger:hover::before,
.create-listing-trigger:focus-visible::before,
.create-listing-trigger.active::before,
.create-listing-nav.is-open .create-listing-trigger::before {
  left: 0;
  right: 0;
}

.create-listing-trigger.active::after {
  content: "◆";
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  color: var(--red-bright);
  font-size: 0.58rem;
  text-shadow: 0 0 12px rgba(255, 0, 0, 0.9);
}

.create-listing-menu {
  position: absolute;
  top: calc(100% - 5px);
  left: 50%;
  width: 260px;
  transform: translateX(-50%);
  display: none;
  gap: 9px;
  padding: 12px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(170, 12, 12, 0.22), transparent 48%),
    linear-gradient(180deg, rgba(17, 9, 8, 0.98), rgba(4, 4, 4, 0.98));
  border: 1px solid rgba(216, 186, 128, 0.28);
  box-shadow: 0 22px 48px rgba(0,0,0,0.72), inset 0 0 0 1px rgba(255,255,255,0.03);
  z-index: 7000;
}

.create-listing-nav.is-open .create-listing-menu {
  display: grid;
}

.create-listing-menu[hidden] {
  display: none !important;
}

.create-listing-menu::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(116, 12, 12, 0.35);
  pointer-events: none;
}

.create-listing-option {
  appearance: none;
  border: 1px solid rgba(218, 185, 116, 0.30);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 10px 12px;
  color: #f5ead6;
  cursor: pointer;
  text-align: left;
  background: rgba(0,0,0,0.52);
  box-shadow: inset 0 0 18px rgba(0,0,0,0.68);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  position: relative;
  overflow: hidden;
}

.create-listing-option::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), transparent 48%);
  opacity: 0;
  transition: opacity 160ms ease;
}

.create-listing-option:hover,
.create-listing-option:focus-visible {
  transform: translateX(3px);
  outline: none;
  border-color: rgba(255, 224, 154, 0.62);
  box-shadow: inset 0 0 24px rgba(0,0,0,0.72), 0 0 20px rgba(125, 12, 12, 0.30);
}

.create-listing-option:hover::after,
.create-listing-option:focus-visible::after {
  opacity: 1;
}

.create-listing-option.equipment { background: linear-gradient(90deg, rgba(128, 6, 8, 0.90), rgba(42, 4, 4, 0.74)); }
.create-listing-option.materials { background: linear-gradient(90deg, rgba(0, 90, 82, 0.86), rgba(2, 28, 26, 0.78)); }
.create-listing-option.service { background: linear-gradient(90deg, rgba(124, 62, 2, 0.86), rgba(34, 18, 2, 0.78)); }

.listing-option-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.28);
  color: #fff7e6;
  font-size: 1.35rem;
  text-shadow: 0 0 14px rgba(255,255,255,0.24);
}

.listing-option-copy strong,
.listing-option-copy small {
  display: block;
}

.listing-option-copy strong {
  font-size: 0.88rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.listing-option-copy small {
  margin-top: 4px;
  color: rgba(242, 224, 190, 0.72);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.68rem;
}

.create-listing-main {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
}

.create-listing-hero {
  min-height: calc(100vh - var(--header-h));
  width: min(1320px, calc(100vw - 48px));
  margin: 0 auto;
  padding: clamp(54px, 7vh, 94px) 0 clamp(92px, 10vh, 140px);
}

.create-listing-headbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.create-listing-headbar h1 {
  margin: 4px 0 12px;
  font-size: clamp(2.8rem, 5.7vw, 5.7rem);
  line-height: 0.88;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(180deg, #fffaf0 0%, #e3d5ba 34%, #9d8062 54%, #fff0d8 66%, #725545 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0.8px rgba(4,4,4,0.96);
  text-shadow: 0 3px 0 #000, 0 0 34px rgba(120, 7, 7, 0.28);
}

.create-listing-headbar p {
  max-width: 720px;
  color: rgba(235, 217, 188, 0.78);
  line-height: 1.7;
}

.listing-back-btn {
  margin-top: 6px;
  white-space: nowrap;
}

.listing-mode-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0 28px;
}

.listing-sell-buy {
  display: inline-flex;
  gap: 8px;
}

.listing-pill,
.realm-select-wrap {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(220, 196, 151, 0.22);
  color: rgba(239, 228, 204, 0.86);
  background: rgba(9, 9, 9, 0.74);
  padding: 0 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.listing-pill {
  cursor: pointer;
}

.listing-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(130, 130, 130, 0.9);
  box-shadow: 0 0 10px rgba(255,255,255,0.12);
}

.listing-pill.active {
  border-color: rgba(0, 229, 203, 0.74);
  color: #e8fffb;
  box-shadow: 0 0 18px rgba(0, 229, 203, 0.12), inset 0 0 20px rgba(0, 229, 203, 0.08);
}

.listing-pill.active span {
  background: #20fff0;
  box-shadow: 0 0 12px rgba(32,255,240,0.82);
}

.realm-select-wrap {
  min-width: 260px;
  background:
    radial-gradient(circle at 10% 50%, rgba(0, 203, 174, 0.13), transparent 28%),
    rgba(10, 10, 10, 0.78);
}

.realm-select-wrap select {
  flex: 1;
  color: #e8dcc6;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  letter-spacing: 0.03em;
  text-transform: none;
}

.realm-select-wrap option {
  background: #080808;
  color: #f5ead6;
}

.realm-rune {
  color: #25ead6;
  font-size: 1.05rem;
  filter: drop-shadow(0 0 10px rgba(37,234,214,0.55));
}

.listing-create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.96fr);
  gap: clamp(22px, 3vw, 34px);
  align-items: stretch;
}

.listing-card-glass {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(128, 9, 9, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(12, 12, 12, 0.82), rgba(4, 4, 4, 0.94));
  border: 1px solid rgba(218, 202, 165, 0.20);
  box-shadow: 0 24px 70px rgba(0,0,0,0.54), inset 0 0 0 1px rgba(255,255,255,0.025);
}

.scan-panel {
  min-height: 560px;
  padding: clamp(24px, 3.2vw, 42px);
}

.scan-panel::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(228, 221, 204, 0.36);
  pointer-events: none;
}

.scan-panel-head {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  text-align: left;
  margin: 8px 0 12px;
}

.scan-rune {
  font-size: 2rem;
  color: #fff8e6;
  text-shadow: 0 0 16px rgba(255,255,255,0.22), 0 0 22px rgba(160, 12, 12, 0.36);
}

.scan-panel h2,
.manual-panel h2,
.manual-entry-form h2 {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff3dd;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.scan-panel small,
.upload-dropzone small,
.scan-panel p,
.manual-copy p {
  color: rgba(235, 217, 188, 0.72);
}

.scan-panel p {
  max-width: 420px;
  margin: 10px auto 34px;
  text-align: center;
  line-height: 1.7;
}

.upload-dropzone {
  min-height: 310px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255,255,255,0.045), transparent 26%),
    rgba(0,0,0,0.12);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
  border-color: rgba(222, 198, 150, 0.35);
  box-shadow: inset 0 0 42px rgba(150, 12, 12, 0.12);
  background:
    radial-gradient(ellipse at 50% 42%, rgba(180, 20, 20, 0.12), transparent 30%),
    rgba(0,0,0,0.16);
}

.upload-sigil {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230, 218, 190, 0.14);
  background: rgba(0,0,0,0.30);
  color: rgba(255,255,255,0.75);
  font-size: 2rem;
  box-shadow: inset 0 0 28px rgba(0,0,0,0.6);
}

.upload-dropzone strong {
  color: #e9deca;
  font-size: 1.08rem;
}

.upload-dropzone em {
  color: rgba(235, 217, 188, 0.68);
  font-style: normal;
}

.upload-preview {
  margin-top: 18px;
  min-height: 92px;
  border: 1px solid rgba(218, 202, 165, 0.18);
  background: rgba(0,0,0,0.30);
  padding: 12px;
  color: #eadfc8;
}

.upload-preview img {
  max-width: 180px;
  max-height: 110px;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.18);
  margin-right: 12px;
  vertical-align: middle;
}

.manual-panel {
  min-height: 560px;
  display: grid;
  grid-template-rows: minmax(260px, 0.85fr) auto;
  overflow: hidden;
}

.manual-art {
  position: relative;
  min-height: 260px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 76, 16, 0.22), transparent 18%),
    radial-gradient(ellipse at 52% 32%, rgba(200, 20, 20, 0.28), transparent 36%),
    linear-gradient(135deg, rgba(100, 8, 8, 0.30), rgba(0,0,0,0.70)),
    url('assets/cathedral-bg.webp') center/cover;
  filter: saturate(1.08) contrast(1.08);
}

.manual-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0 45%, rgba(0,0,0,0.88) 100%);
}

.manual-anvil {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112px;
  height: 112px;
  transform: translate(-50%, -50%) rotate(45deg);
  display: grid;
  place-items: center;
  color: transparent;
  border: 2px solid rgba(238, 210, 154, 0.52);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 32, 20, 0.80), rgba(85, 0, 0, 0.60) 35%, rgba(0,0,0,0.70) 66%),
    linear-gradient(135deg, rgba(250,235,198,0.18), transparent 42%);
  box-shadow: 0 0 60px rgba(144, 6, 6, 0.62), inset 0 0 44px rgba(0,0,0,0.90);
  z-index: 1;
}

.manual-sparks span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #ffdca0;
  box-shadow: 0 0 12px #ff3a15;
  z-index: 2;
}
.manual-sparks span:nth-child(1) { left: 24%; top: 38%; }
.manual-sparks span:nth-child(2) { left: 68%; top: 28%; }
.manual-sparks span:nth-child(3) { left: 74%; top: 58%; }
.manual-sparks span:nth-child(4) { left: 36%; top: 68%; }

.manual-copy {
  padding: 30px clamp(26px, 3vw, 40px) 36px;
  text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.82), rgba(2,2,2,0.96));
}

.manual-copy p {
  max-width: 560px;
  margin: 14px auto 24px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.manual-entry-form {
  margin-top: 30px;
  padding: clamp(24px, 3vw, 38px);
}

.manual-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.manual-form-grid label {
  display: grid;
  gap: 7px;
  color: rgba(239, 226, 202, 0.86);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.manual-form-grid input,
.manual-form-grid select,
.manual-form-grid textarea {
  width: 100%;
  border: 1px solid rgba(218, 202, 165, 0.18);
  background: rgba(0,0,0,0.48);
  color: #f4ead7;
  padding: 12px 13px;
  font: inherit;
  letter-spacing: 0.02em;
  outline: none;
}

.manual-form-grid input:focus,
.manual-form-grid select:focus,
.manual-form-grid textarea:focus {
  border-color: rgba(178, 20, 20, 0.72);
  box-shadow: inset 0 0 18px rgba(120, 8, 8, 0.18), 0 0 0 1px rgba(178, 20, 20, 0.18);
}

.manual-form-grid .full-span {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr;
    height: auto;
    min-height: var(--header-h);
    padding-block: 10px;
  }

  .create-listing-menu {
    left: 0;
    transform: none;
  }

  .listing-create-grid {
    grid-template-columns: 1fr;
  }

  .manual-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .create-listing-headbar {
    display: grid;
  }

  .manual-form-grid {
    grid-template-columns: 1fr;
  }

  .realm-select-wrap {
    width: 100%;
  }
}

/* V12.73 — Service listing forge */
.listing-type-panel[hidden] {
  display: none !important;
}

.service-listing-panel {
  margin-top: 22px;
}

.service-forge-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 82% 10%, rgba(182, 104, 10, 0.15), transparent 30%),
    radial-gradient(circle at 12% 0%, rgba(138, 8, 10, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(11, 10, 10, 0.94), rgba(5, 3, 3, 0.96));
  border-color: rgba(194, 158, 91, 0.24);
  box-shadow: 0 28px 70px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.025);
}

.service-forge-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(122, 9, 9, 0.12), transparent),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 12px);
  opacity: 0.42;
  pointer-events: none;
}

.service-forge-section,
.service-submit-bar {
  position: relative;
  z-index: 1;
}

.service-forge-section {
  padding: clamp(18px, 2vw, 26px);
  background: linear-gradient(180deg, rgba(0,0,0,0.38), rgba(0,0,0,0.18));
  border: 1px solid rgba(216, 186, 128, 0.14);
  box-shadow: inset 0 0 28px rgba(0,0,0,0.45);
}

.service-forge-section + .service-forge-section {
  margin-top: 18px;
}

.service-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(216, 186, 128, 0.14);
}

.service-section-head h2 {
  margin: 0;
  color: #fff1d7;
  font-size: clamp(1.15rem, 1.65vw, 1.85rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.service-section-head p {
  margin: 5px 0 0;
  color: rgba(236, 220, 190, 0.68);
  line-height: 1.5;
}

.service-icon-ring {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(35, 217, 200, 0.58);
  color: #6af8eb;
  background: radial-gradient(circle, rgba(20, 211, 193, 0.18), rgba(0,0,0,0.72));
  box-shadow: inset 0 0 18px rgba(0,0,0,0.72), 0 0 18px rgba(20, 211, 193, 0.13);
}

.service-icon-ring.amber {
  border-color: rgba(231, 168, 57, 0.58);
  color: #ffd984;
  background: radial-gradient(circle, rgba(197, 111, 17, 0.20), rgba(0,0,0,0.72));
  box-shadow: inset 0 0 18px rgba(0,0,0,0.72), 0 0 18px rgba(197, 111, 17, 0.14);
}

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

.service-form-grid label {
  display: grid;
  gap: 8px;
  color: rgba(245, 228, 198, 0.78);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}

.service-form-grid label small {
  color: rgba(245, 228, 198, 0.48);
  line-height: 1.45;
}

.service-form-grid select,
.service-form-grid input,
.service-form-grid textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(216, 186, 128, 0.12);
  background:
    linear-gradient(180deg, rgba(31,31,30,0.92), rgba(14,14,14,0.95));
  color: #f6ead3;
  padding: 0 15px;
  font: inherit;
  outline: none;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.42);
}

.service-form-grid textarea {
  min-height: 116px;
  padding: 13px 15px;
  resize: vertical;
}

.service-form-grid select:focus,
.service-form-grid input:focus,
.service-form-grid textarea:focus {
  border-color: rgba(31, 216, 199, 0.50);
  box-shadow: inset 0 0 18px rgba(31, 216, 199, 0.08), 0 0 0 1px rgba(31, 216, 199, 0.14);
}

.service-form-grid .full-span {
  grid-column: 1 / -1;
}

.service-check-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(245, 228, 198, 0.72);
  margin-top: 2px;
  font-size: 0.8rem;
}

.service-check-row input {
  width: 16px;
  height: 16px;
  min-height: auto;
  accent-color: #9b0b16;
}

.service-submit-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.service-submit-btn {
  border-color: rgba(35, 217, 200, 0.55) !important;
  background: linear-gradient(180deg, rgba(0, 102, 94, 0.95), rgba(0, 55, 50, 0.94)) !important;
  color: #f0fffb !important;
  box-shadow: inset 0 0 17px rgba(0,0,0,0.55), 0 0 20px rgba(0, 184, 168, 0.16);
}

.service-submit-btn:hover,
.service-submit-btn:focus-visible {
  box-shadow: inset 0 0 17px rgba(0,0,0,0.55), 0 0 26px rgba(0, 214, 196, 0.26);
}

.create-listing-page-shell.is-service-listing .listing-mode-row .listing-sell-buy .listing-pill.active {
  border-color: rgba(35, 217, 200, 0.62);
  box-shadow: inset 0 0 18px rgba(0,0,0,0.55), 0 0 22px rgba(0, 214, 196, 0.12);
}

.create-listing-page-shell.is-service-listing .listing-mode-row .listing-pill.active span {
  background: #39f0df;
  box-shadow: 0 0 10px rgba(57,240,223,0.85);
}

@media (max-width: 900px) {
  .service-form-grid {
    grid-template-columns: 1fr;
  }

  .service-submit-bar {
    display: grid;
  }
}

/* V12.74 — Material listing vault */
.materials-listing-panel {
  margin-top: 22px;
}

.material-vault-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 84% 8%, rgba(0, 171, 149, 0.14), transparent 30%),
    radial-gradient(circle at 18% 0%, rgba(135, 12, 18, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(10, 9, 9, 0.95), rgba(4, 4, 4, 0.96));
  border-color: rgba(202, 176, 118, 0.25);
  box-shadow: 0 30px 76px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.025);
}

.material-vault-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(112, 10, 14, 0.12), transparent),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 11px);
  opacity: 0.38;
  pointer-events: none;
}

.material-vault-shell > *:not(.material-vault-bg) {
  position: relative;
  z-index: 1;
}

.material-vault-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(216, 186, 128, 0.14);
}

.material-vault-head h2 {
  margin: 5px 0 8px;
  color: #fff0d2;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  font-size: clamp(1.55rem, 2.3vw, 2.65rem);
}

.material-vault-head p {
  max-width: 860px;
  margin: 0;
  color: rgba(236, 220, 190, 0.70);
  line-height: 1.65;
}

.material-limit-chip {
  min-width: 118px;
  min-height: 68px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  border: 1px solid rgba(38, 218, 199, 0.43);
  background:
    radial-gradient(circle at 50% 0%, rgba(26, 211, 196, 0.18), transparent 65%),
    rgba(0,0,0,0.42);
  box-shadow: inset 0 0 22px rgba(0,0,0,0.72), 0 0 18px rgba(0, 198, 177, 0.10);
}

.material-limit-chip span,
.material-limit-chip em {
  color: rgba(236, 220, 190, 0.62);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-style: normal;
}

.material-limit-chip strong {
  color: #f7fffb;
  font-size: 1.55rem;
  line-height: 1;
  text-shadow: 0 0 13px rgba(30, 238, 217, 0.42);
}

.material-vault-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 22px 0 14px;
}

.material-search-wrap {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(216, 186, 128, 0.15);
  background: linear-gradient(180deg, rgba(16,16,16,0.96), rgba(5,5,5,0.94));
  box-shadow: inset 0 0 20px rgba(0,0,0,0.55);
}

.material-search-wrap span {
  display: grid;
  place-items: center;
  color: #e0c078;
  font-size: 1.1rem;
}

.material-search-wrap input {
  min-height: 46px;
  border: 0;
  background: transparent;
  color: #f6ead3;
  outline: none;
  font: inherit;
  padding: 0 14px 0 0;
}

.material-view-toggle {
  display: inline-flex;
  gap: 7px;
}

.material-view-toggle button {
  min-height: 46px;
  min-width: 72px;
  border: 1px solid rgba(216, 186, 128, 0.17);
  background: rgba(0,0,0,0.42);
  color: rgba(239, 226, 202, 0.76);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  cursor: pointer;
}

.material-view-toggle button.active {
  border-color: rgba(38, 218, 199, 0.50);
  color: #effffb;
  background: linear-gradient(180deg, rgba(0, 94, 84, 0.72), rgba(4, 35, 32, 0.78));
  box-shadow: 0 0 16px rgba(0, 218, 199, 0.12), inset 0 0 18px rgba(0,0,0,0.55);
}

.material-category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 10px;
  scrollbar-width: thin;
}

.material-tab {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 8px;
  min-width: 170px;
  border: 1px solid rgba(216, 186, 128, 0.13);
  background: rgba(0,0,0,0.38);
  color: rgba(239, 226, 202, 0.72);
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: inset 0 0 14px rgba(0,0,0,0.46);
}

.material-tab span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #e4c16d;
  border: 1px solid rgba(216, 186, 128, 0.20);
  background: rgba(0,0,0,0.34);
}

.material-tab strong {
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.material-tab em {
  font-style: normal;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.46);
}

.material-tab.active {
  border-color: rgba(185, 15, 25, 0.72);
  color: #fff4db;
  background: linear-gradient(180deg, rgba(111, 12, 18, 0.75), rgba(20, 5, 5, 0.82));
  box-shadow: 0 0 20px rgba(130, 8, 12, 0.18), inset 0 0 19px rgba(0,0,0,0.62);
}

.material-vault-layout {
  display: grid;
  grid-template-columns: minmax(180px, 230px) 1fr;
  gap: 16px;
  align-items: stretch;
}

.material-vault-sidebar {
  border: 1px solid rgba(216, 186, 128, 0.12);
  background: rgba(0,0,0,0.26);
  padding: 14px;
  max-height: 520px;
  overflow: auto;
}

.material-vault-sidebar h3 {
  margin: 0 0 12px;
  color: rgba(255,239,210,0.84);
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.material-summary-row {
  width: 100%;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.045);
  background: rgba(0,0,0,0.22);
  color: rgba(236, 220, 190, 0.64);
  cursor: pointer;
  text-align: left;
}

.material-summary-row.active {
  border-color: rgba(37, 218, 199, 0.32);
  color: #f7fffb;
  background: rgba(0, 106, 94, 0.13);
}

.material-summary-row span {
  color: #e0c078;
}

.material-summary-row strong {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.material-summary-row em {
  font-style: normal;
  font-size: 0.66rem;
  color: rgba(255,255,255,0.42);
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 9px;
  max-height: 520px;
  overflow: auto;
  padding: 6px 6px 10px;
  border: 1px solid rgba(216, 186, 128, 0.12);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.035), transparent 30%),
    rgba(0,0,0,0.25);
}

.material-grid.list-mode {
  grid-template-columns: 1fr;
}

.material-card {
  min-height: 122px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 12px 10px;
  border: 1px solid rgba(216, 186, 128, 0.10);
  background: linear-gradient(180deg, rgba(19,19,19,0.72), rgba(5,5,5,0.88));
  color: rgba(240,228,205,0.76);
  cursor: pointer;
  text-align: center;
  box-shadow: inset 0 0 18px rgba(0,0,0,0.55);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.material-grid.list-mode .material-card {
  min-height: 54px;
  grid-template-columns: 44px 1fr auto;
  text-align: left;
  justify-items: start;
}

.material-card:hover,
.material-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(216, 186, 128, 0.31);
  background: linear-gradient(180deg, rgba(35, 24, 18, 0.82), rgba(6,6,6,0.92));
}

.material-card.selected {
  border-color: rgba(38, 218, 199, 0.60);
  background:
    radial-gradient(circle at 50% 18%, rgba(38, 218, 199, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(8, 46, 42, 0.80), rgba(4,4,4,0.92));
  box-shadow: inset 0 0 20px rgba(0,0,0,0.60), 0 0 22px rgba(0, 218, 199, 0.14);
}

.material-card-icon,
.selected-material-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 186, 128, 0.24);
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,0.12), rgba(0,0,0,0.74));
  box-shadow: inset 0 0 16px rgba(0,0,0,0.66), 0 0 12px rgba(149, 12, 18, 0.12);
  color: #f5d48b;
  font-size: 1.3rem;
}

.material-card-name {
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.35;
  color: #f4e7ce;
}

.material-card small {
  color: rgba(240,228,205,0.42);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.material-blue .material-card-icon,
.selected-material-icon.material-blue { color: #8fb7ff; box-shadow: inset 0 0 16px rgba(0,0,0,.66), 0 0 16px rgba(51,115,255,.20); }
.material-violet .material-card-icon,
.selected-material-icon.material-violet { color: #d099ff; box-shadow: inset 0 0 16px rgba(0,0,0,.66), 0 0 16px rgba(148,69,255,.20); }
.material-red .material-card-icon,
.selected-material-icon.material-red { color: #ff7f75; box-shadow: inset 0 0 16px rgba(0,0,0,.66), 0 0 16px rgba(255,35,35,.20); }
.material-gold .material-card-icon,
.selected-material-icon.material-gold { color: #ffd77b; box-shadow: inset 0 0 16px rgba(0,0,0,.66), 0 0 16px rgba(255,193,63,.20); }
.material-teal .material-card-icon,
.selected-material-icon.material-teal { color: #60ffe7; box-shadow: inset 0 0 16px rgba(0,0,0,.66), 0 0 16px rgba(0,231,204,.20); }
.material-orange .material-card-icon,
.selected-material-icon.material-orange { color: #ffa65e; box-shadow: inset 0 0 16px rgba(0,0,0,.66), 0 0 16px rgba(255,126,31,.20); }
.material-aqua .material-card-icon,
.selected-material-icon.material-aqua { color: #75fff0; box-shadow: inset 0 0 16px rgba(0,0,0,.66), 0 0 16px rgba(0,212,204,.20); }
.material-silver .material-card-icon,
.selected-material-icon.material-silver { color: #ece6d7; box-shadow: inset 0 0 16px rgba(0,0,0,.66), 0 0 16px rgba(255,255,255,.12); }

.selected-materials-panel {
  margin-top: 18px;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid rgba(216, 186, 128, 0.14);
  background: linear-gradient(180deg, rgba(0,0,0,0.38), rgba(0,0,0,0.20));
}

.selected-materials-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.selected-materials-head h3 {
  margin: 0;
  color: #fff0d2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.selected-materials-head p,
.empty-materials {
  margin: 4px 0 0;
  color: rgba(236, 220, 190, 0.56);
}

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

.selected-material-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 110px 38px;
  gap: 11px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(216, 186, 128, 0.12);
  background: rgba(0,0,0,0.28);
}

.selected-material-row strong {
  display: block;
  color: #f7e9cf;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.selected-material-row small {
  color: rgba(236, 220, 190, 0.45);
}

.selected-material-row label {
  display: grid;
  gap: 4px;
  color: rgba(236, 220, 190, 0.55);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.selected-material-row input,
.material-submit-grid input {
  min-height: 38px;
  border: 1px solid rgba(216, 186, 128, 0.14);
  background: rgba(0,0,0,0.46);
  color: #f6ead3;
  padding: 0 10px;
  outline: none;
}

.material-submit-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.material-submit-grid label {
  display: grid;
  gap: 7px;
  color: rgba(236, 220, 190, 0.70);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.create-listing-page-shell.is-materials-listing .listing-mode-row .listing-sell-buy .listing-pill.active {
  border-color: rgba(35, 217, 200, 0.62);
  box-shadow: inset 0 0 18px rgba(0,0,0,0.55), 0 0 22px rgba(0, 214, 196, 0.12);
}

.create-listing-page-shell.is-materials-listing .listing-mode-row .listing-sell-buy .listing-pill.active span {
  background: #39f0df;
  box-shadow: 0 0 10px rgba(57,240,223,0.85);
}

@media (max-width: 1050px) {
  .material-vault-layout {
    grid-template-columns: 1fr;
  }
  .material-vault-sidebar {
    display: none;
  }
}

@media (max-width: 760px) {
  .material-vault-head,
  .material-vault-toolbar,
  .selected-materials-head,
  .material-submit-grid,
  .selected-material-row {
    grid-template-columns: 1fr;
    display: grid;
  }
  .material-view-toggle {
    width: 100%;
  }
  .material-view-toggle button {
    flex: 1;
  }
}


/* V12.75 — homepage artifact card polish.
   Keeps the original card but prevents the longer ARTIFACTS title from feeling cropped/off-balance. */
.feature-card-artifacts .card-copy {
  max-width: calc(100% - 118px);
}

.feature-card-artifacts h2 {
  font-size: clamp(1.45rem, 2.05vw, 2.55rem);
  letter-spacing: 0.12em;
  line-height: 0.98;
  white-space: nowrap;
}

.feature-card-artifacts .gem-icon {
  right: clamp(18px, 3vw, 38px);
  width: clamp(58px, 4.8vw, 82px);
  stroke: rgba(154, 74, 74, 0.58);
  opacity: 0.78;
}

@media (max-width: 1100px) {
  .feature-card-artifacts .card-copy {
    max-width: calc(100% - 124px);
  }
}

@media (max-width: 720px) {
  .feature-card-artifacts .card-copy {
    max-width: 100%;
  }

  .feature-card-artifacts h2 {
    white-space: normal;
  }
}

/* V12.76 — material vault spacing/submit cleanup polish */
.create-listing-page-shell.is-materials-listing .create-listing-hero {
  width: min(1580px, calc(100vw - 32px));
}

.create-listing-page-shell.is-materials-listing .material-vault-shell {
  padding-inline: clamp(20px, 2.2vw, 38px);
}

.create-listing-page-shell.is-materials-listing .material-category-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 10px;
  overflow: visible;
  padding-bottom: 12px;
}

.create-listing-page-shell.is-materials-listing .material-tab {
  min-width: 0;
  width: 100%;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  padding: 11px 13px;
}

.create-listing-page-shell.is-materials-listing .material-tab strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.105em;
}

.create-listing-page-shell.is-materials-listing .material-vault-layout {
  grid-template-columns: minmax(160px, 205px) minmax(0, 1fr);
}

.create-listing-page-shell.is-materials-listing .material-grid {
  grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
  max-height: 600px;
}

.create-listing-page-shell.is-materials-listing .material-card {
  min-height: 112px;
}

@media (max-width: 1050px) {
  .create-listing-page-shell.is-materials-listing .material-vault-layout {
    grid-template-columns: 1fr;
  }
}

/* V12.77 — material category tab readability.
   Full category names should never be hidden/cut off. */
.create-listing-page-shell.is-materials-listing .material-category-tabs {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.create-listing-page-shell.is-materials-listing .material-tab {
  min-height: 62px;
  grid-template-columns: 28px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
}

.create-listing-page-shell.is-materials-listing .material-tab strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.16;
  font-size: clamp(0.62rem, 0.68vw, 0.74rem);
  letter-spacing: 0.075em;
}

.create-listing-page-shell.is-materials-listing .material-tab em {
  justify-self: end;
  align-self: center;
  margin-left: 4px;
}

@media (max-width: 760px) {
  .create-listing-page-shell.is-materials-listing .material-category-tabs {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }
}

/* v12_78: selected materials stay visible with an infernal shine border */
.material-card {
  position: relative;
  overflow: hidden;
}

.material-card > * {
  position: relative;
  z-index: 2;
}

.material-card.selected {
  border-color: rgba(38, 218, 199, 0.88);
  background:
    radial-gradient(circle at 50% 18%, rgba(38, 218, 199, 0.22), transparent 40%),
    radial-gradient(circle at 50% 82%, rgba(185, 15, 25, 0.18), transparent 46%),
    linear-gradient(180deg, rgba(8, 54, 50, 0.92), rgba(7, 4, 4, 0.96));
  box-shadow:
    inset 0 0 24px rgba(0,0,0,0.70),
    0 0 24px rgba(0, 218, 199, 0.24),
    0 0 0 1px rgba(255, 224, 144, 0.20);
  color: #fff5d9;
}

.material-card.selected::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 1;
  padding: 2px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 58deg,
    rgba(38, 218, 199, 0.95) 76deg,
    rgba(255, 234, 166, 1) 88deg,
    rgba(185, 15, 25, 0.88) 103deg,
    transparent 125deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: materialSelectedBorderSpin 2.45s linear infinite;
}

.material-card.selected::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,0.12) 49%, transparent 60% 100%);
  transform: translateX(-135%);
  pointer-events: none;
  animation: materialSelectedInnerShine 3.2s ease-in-out infinite;
}

.material-selected-mark {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 3;
  padding: 3px 7px;
  border: 1px solid rgba(38, 218, 199, 0.55);
  background: rgba(0, 28, 25, 0.82);
  color: #dffff9;
  font-size: 0.58rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(0, 218, 199, 0.20);
}

.material-grid.list-mode .material-selected-mark {
  position: static;
  justify-self: end;
  margin-right: 4px;
}

@keyframes materialSelectedBorderSpin {
  to { transform: rotate(360deg); }
}

@keyframes materialSelectedInnerShine {
  0%, 52% { transform: translateX(-135%); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: translateX(135%); opacity: 0; }
}


/* V12.79 — My Listings shortcuts, premium CTA polish, readable title treatment */
.nav-shortcut-btn {
  border: 0;
  background: transparent;
  color: rgba(235, 221, 191, 0.92);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  padding: 8px 2px;
  transition: color 160ms ease, text-shadow 160ms ease, transform 160ms ease;
}

.nav-shortcut-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
  transform: translateX(-50%);
  transition: width 160ms ease;
}

.nav-shortcut-btn:hover,
.nav-shortcut-btn:focus-visible {
  color: #fff4d9;
  text-shadow: 0 0 14px rgba(185, 16, 16, 0.54);
  transform: translateY(-1px);
  outline: none;
}

.nav-shortcut-btn:hover::after,
.nav-shortcut-btn:focus-visible::after {
  width: 100%;
}

.trade-console-layout-head.trade-console-split .trade-section-head {
  position: relative;
  padding-right: min(260px, 24vw);
}

.trade-head-my-listings {
  position: absolute;
  right: 0;
  bottom: 2px;
  min-width: 218px;
  min-height: 48px;
  padding: 10px 20px;
  font-family: inherit;
  color: #fff0cf;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(239, 205, 124, 0.55);
  background:
    linear-gradient(90deg, rgba(0,0,0,0.44), transparent 18%, rgba(255,255,255,0.08) 50%, transparent 82%, rgba(0,0,0,0.44)),
    radial-gradient(ellipse at 50% 0%, rgba(220, 154, 45, 0.36), transparent 54%),
    linear-gradient(180deg, rgba(92, 58, 9, 0.98), rgba(43, 23, 3, 0.98));
  box-shadow:
    inset 0 0 24px rgba(0,0,0,0.72),
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 22px rgba(188, 111, 18, 0.20);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.trade-head-my-listings::before {
  content: "☰";
  margin-right: 10px;
  color: #f6d98f;
  text-shadow: 0 0 12px rgba(244, 185, 70, 0.58);
}

.trade-head-my-listings:hover,
.trade-head-my-listings:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.14);
  box-shadow:
    inset 0 0 24px rgba(0,0,0,0.68),
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 0 30px rgba(219, 137, 25, 0.34);
  outline: none;
}

.market-card-empty {
  min-height: 182px;
}

.enter-btn {
  min-height: 76px;
  border-color: rgba(255, 218, 151, 0.68);
  color: #fff3d7;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.56), transparent 14%, rgba(255,255,255,0.16) 50%, transparent 86%, rgba(0,0,0,0.56)),
    radial-gradient(ellipse at 50% -10%, rgba(255, 74, 48, 0.54), transparent 56%),
    linear-gradient(180deg, rgba(142, 13, 13, 0.98), rgba(72, 4, 4, 0.98) 52%, rgba(20, 1, 1, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -20px 30px rgba(0,0,0,0.60),
    inset 0 0 42px rgba(0,0,0,0.78),
    0 24px 48px rgba(0,0,0,0.68),
    0 0 28px rgba(208, 16, 16, 0.44),
    0 0 70px rgba(120, 4, 4, 0.36);
}

.enter-btn::before,
.enter-btn::after {
  width: 46px;
  background: linear-gradient(90deg, transparent, rgba(255, 238, 198, 0.95), transparent);
}

.enter-btn:hover,
.enter-btn:focus-visible {
  filter: brightness(1.24) saturate(1.08);
  border-color: rgba(255, 235, 190, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.26),
    inset 0 -20px 30px rgba(0,0,0,0.56),
    inset 0 0 42px rgba(0,0,0,0.72),
    0 28px 54px rgba(0,0,0,0.74),
    0 0 42px rgba(232, 20, 20, 0.62),
    0 0 88px rgba(148, 6, 6, 0.52);
}

.section-title,
.profile-hero-copy h1,
.trade-hero-copy h1,
.create-listing-headbar h1,
.trade-console-layout-head.trade-console-split .trade-section-head .section-title,
.title-word {
  background:
    linear-gradient(180deg,
      #fffdf3 0%,
      #f6ebd7 24%,
      #d9bd91 43%,
      #fff3d8 58%,
      #c69a65 76%,
      #8d674a 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-stroke: 0.55px rgba(0, 0, 0, 0.98) !important;
  text-shadow:
    0 1px 0 rgba(0,0,0,1),
    0 2px 1px rgba(0,0,0,0.96),
    0 0 1px rgba(255, 246, 219, 0.58),
    0 0 18px rgba(177, 18, 18, 0.28),
    0 0 42px rgba(0,0,0,0.72) !important;
}

.trade-console-layout-head.trade-console-split .trade-section-head .section-title {
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.82));
}

@media (max-width: 1120px) {
  .trade-console-layout-head.trade-console-split .trade-section-head {
    padding-right: 0;
  }
  .trade-head-my-listings {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 16px;
  }
}

@media (max-width: 900px) {
  .nav {
    gap: 20px;
    font-size: 0.78rem;
  }
  .nav-shortcut-btn {
    letter-spacing: 0.14em;
  }
}


/* V12.80 — header/page routing, My Listings page, and premium readable title repair */
.nav-shortcut-btn.active {
  color: #fff4d9;
  text-shadow: 0 0 14px rgba(185, 16, 16, 0.54);
}

.nav-shortcut-btn.active::after {
  width: 100%;
}

/* Replaces the too-dark V12.79 title pass with a brighter premium metal treatment. */
.section-title,
.profile-hero-copy h1,
.trade-hero-copy h1,
.create-listing-headbar h1,
.trade-console-layout-head.trade-console-split .trade-section-head .section-title,
.title-word {
  color: #f2e4ca !important;
  background:
    linear-gradient(180deg,
      #fffef7 0%,
      #fff4db 16%,
      #d6b777 36%,
      #fff7e4 51%,
      #c08b45 68%,
      #6c4b31 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.38px rgba(0, 0, 0, 0.84) !important;
  text-shadow:
    0 1px 0 rgba(255, 248, 224, 0.34),
    0 2px 2px rgba(0, 0, 0, 0.86),
    0 0 14px rgba(230, 166, 75, 0.20),
    0 0 36px rgba(138, 8, 8, 0.28) !important;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.72));
}

.title-word::before {
  opacity: 0.18 !important;
}

.title-word::after {
  opacity: 0.9 !important;
  background: linear-gradient(90deg, transparent, rgba(255, 225, 155, 0.78), rgba(255, 252, 229, 0.46), rgba(214, 26, 26, 0.55), transparent) !important;
  box-shadow: 0 0 13px rgba(224, 151, 45, 0.28) !important;
}

.trade-head-my-listings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  text-decoration: none;
}

.trade-console-layout-head.trade-console-split .trade-section-head {
  position: relative;
  min-height: 220px;
}

@media (max-width: 1120px) {
  .trade-console-layout-head.trade-console-split .trade-section-head {
    min-height: 0;
  }
}

.my-listings-main {
  width: min(96vw, 1560px);
  margin: 0 auto;
  padding: clamp(34px, 5vh, 72px) 0 72px;
}

.my-listings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(24px, 4vw, 58px);
  align-items: end;
  margin-bottom: 28px;
}

.my-listings-hero-copy p {
  max-width: 760px;
  color: rgba(225, 214, 194, 0.86);
  line-height: 1.65;
  font-size: 1rem;
  margin: 18px 0 0;
}

.my-listings-quick-card,
.my-listings-control-panel,
.my-listings-board {
  border: 1px solid rgba(184, 150, 94, 0.34);
  background:
    linear-gradient(135deg, rgba(18, 14, 12, 0.95), rgba(5, 5, 5, 0.94)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 12px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    inset 0 0 46px rgba(122, 7, 7, 0.12),
    0 28px 62px rgba(0,0,0,0.44);
}

.my-listings-quick-card {
  padding: 20px;
  display: grid;
  grid-template-columns: 92px 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.seller-board-rune {
  grid-row: span 2;
  display: grid;
  place-items: center;
  min-height: 112px;
  font-size: 3rem;
  color: #f4d58d;
  background:
    radial-gradient(circle, rgba(171, 7, 7, 0.40), transparent 56%),
    rgba(0,0,0,0.30);
  border: 1px solid rgba(148, 38, 24, 0.46);
  text-shadow: 0 0 22px rgba(197, 13, 13, 0.52);
}

.my-listings-quick-card div:not(:first-child) {
  padding: 14px 16px;
  border: 1px solid rgba(166, 134, 86, 0.25);
  background: rgba(0,0,0,0.36);
}

.my-listings-quick-card small {
  display: block;
  margin-bottom: 6px;
  color: #a98b69;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
}

.my-listings-quick-card strong {
  display: block;
  color: #fff1cf;
  font-size: 1.75rem;
  letter-spacing: 0.05em;
}

.my-listings-control-panel {
  padding: 18px;
  margin-bottom: 22px;
}

.my-listings-filter-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(170px, 220px) minmax(160px, 200px) auto;
  gap: 12px;
  align-items: center;
}

.my-listings-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(184, 150, 94, 0.26);
  background: rgba(2, 2, 2, 0.72);
  color: #d8bd7e;
}

.my-listings-search input,
.my-listings-filter-row select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(184, 150, 94, 0.25);
  background: rgba(7, 9, 9, 0.88);
  color: #eee2cc;
  padding: 0 14px;
  outline: none;
}

.my-listings-search input {
  border: 0;
  background: transparent;
  padding: 0;
}

.my-listings-create-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #fff4d9;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  border: 1px solid rgba(226, 174, 72, 0.55);
  background:
    linear-gradient(180deg, rgba(122, 14, 14, 0.98), rgba(55, 4, 4, 0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 0 22px rgba(174, 13, 13, 0.24);
}

.my-listings-board {
  padding: 22px;
}

.my-listings-board-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(184, 150, 94, 0.22);
  margin-bottom: 18px;
}

.my-listings-board-head h2 {
  margin: 0;
  color: #f4ead8;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.35rem;
}

.my-listings-board-head small {
  color: #95866f;
}

.my-listings-board-head code {
  color: #d8bd7e;
}

.my-listings-empty {
  padding: 34px;
  border: 1px dashed rgba(184, 150, 94, 0.36);
  color: #b9aa94;
  display: grid;
  gap: 6px;
}

.my-listings-empty[hidden] {
  display: none !important;
}

.my-listings-empty strong {
  color: #fff0d2;
  font-size: 1.2rem;
}

.my-listings-grid {
  display: grid;
  gap: 16px;
}

.my-listing-page-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(184, 150, 94, 0.30);
  background:
    radial-gradient(ellipse at 92% 0%, rgba(127, 8, 8, 0.20), transparent 50%),
    linear-gradient(135deg, rgba(10, 9, 8, 0.96), rgba(0,0,0,0.90));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.my-listing-page-card.paused {
  opacity: 0.72;
  border-color: rgba(140, 132, 118, 0.32);
}

.my-listing-page-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), transparent 26%, transparent 72%, rgba(255,255,255,0.035));
  opacity: 0.55;
}

.my-listing-card-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}

.listing-kind-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(210, 170, 92, 0.34);
  color: #f4d68f;
  background: rgba(0,0,0,0.34);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
}

.status-pill {
  color: #bbfff4;
  border-color: rgba(39, 219, 197, 0.38);
}

.my-listing-page-card.paused .status-pill {
  color: #c7c0af;
  border-color: rgba(160, 150, 130, 0.34);
}

.my-listing-page-card h3 {
  margin: 10px 0 0;
  color: #fff2d6;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: clamp(1.25rem, 2vw, 2.05rem);
}

.my-listing-price-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 16px;
}

.my-listing-price-line strong {
  color: #fff0c8;
  font-size: 1.35rem;
}

.my-listing-price-line span {
  color: #9d8b70;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 0.75rem;
}

.my-listing-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.my-listing-facts div {
  padding: 10px 12px;
  border: 1px solid rgba(184, 150, 94, 0.18);
  background: rgba(0,0,0,0.26);
}

.my-listing-facts dt {
  color: #927f64;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
  margin-bottom: 5px;
}

.my-listing-facts dd {
  margin: 0;
  color: #e7d9c1;
}

.my-listing-detail-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.my-listing-detail-lines span {
  border: 1px solid rgba(81, 112, 202, 0.30);
  background: rgba(16, 21, 38, 0.56);
  color: #bfcaff;
  padding: 6px 9px;
  font-size: 0.82rem;
}

.my-listing-page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}

@media (max-width: 980px) {
  .my-listings-hero,
  .my-listings-filter-row {
    grid-template-columns: 1fr;
  }
  .my-listings-facts,
  .my-listing-facts {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 640px) {
  .my-listing-facts {
    grid-template-columns: 1fr;
  }
}
