/* HearthWrite Progression v2 — seals, circular medals, quests */

.hw-prog-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 1.15rem;
  align-items: start;
}

.hw-prog-progress--balanced {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.35fr) minmax(220px, 0.9fr);
  gap: 1rem 1.15rem;
  align-items: start;
  width: 100%;
}

.hw-prog-progress--balanced .hw-prog-progress__main {
  grid-column: 1;
  grid-row: 1;
}

.hw-prog-progress--balanced .hw-prog-progress__quests {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.hw-prog-progress--balanced .hw-prog-progress__aside {
  grid-column: 3;
  grid-row: 1;
}

.hw-prog-progress--balanced .hw-prog-quests {
  height: 100%;
}

.hw-prog-progress__main {
  min-width: 0;
}

.hw-prog-progress__aside {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Track tabs */
.hw-prog-track-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.hw-prog-track-tab {
  appearance: none;
  border: 1px solid rgba(232, 196, 150, 0.16);
  background: rgba(14, 10, 8, 0.55);
  color: rgba(232, 196, 150, 0.62);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
}

.hw-prog-track-tab.is-active {
  border-color: rgba(196, 120, 58, 0.5);
  background: rgba(196, 120, 58, 0.2);
  color: var(--hw-text, #fff4e8);
}

/* Seal cards */
.hw-prog-seals-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.hw-prog-seals-row--solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 28rem;
}

.hw-prog-seal {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem 1rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(232, 196, 150, 0.14);
  background: linear-gradient(155deg, rgba(22, 16, 12, 0.92), rgba(10, 7, 5, 0.96));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: default;
}

.hw-prog-seal.is-control {
  cursor: pointer;
}

.hw-prog-seal.is-control:hover,
.hw-prog-seal.is-control:focus-visible {
  border-color: rgba(var(--hw-text-rgb),  0.28);
  transform: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  outline: none;
  filter: none;
}

.hw-prog-seal.is-active {
  border-color: rgba(var(--hw-text-rgb),  0.32);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.hw-prog-seal.is-muted {
  opacity: 0.72;
  border-color: rgba(232, 196, 150, 0.08);
}

.hw-prog-seal__ring-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.hw-prog-seal__ring {
  --hw-prog-pct: 0;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    rgba(var(--hw-text-rgb),  0.42) calc(var(--hw-prog-pct) * 1%),
    rgba(var(--hw-text-rgb),  0.08) 0
  );
  display: grid;
  place-items: center;
}

.hw-prog-seal--reader .hw-prog-seal__ring {
  background: conic-gradient(
    var(--hw-gold, #fdba74) calc(var(--hw-prog-pct) * 1%),
    rgba(var(--hw-text-rgb),  0.08) 0
  );
}

.hw-prog-seal.is-muted .hw-prog-seal__ring {
  background: conic-gradient(
    rgba(var(--hw-gold-rgb),  0.35) calc(var(--hw-prog-pct) * 1%),
    rgba(var(--hw-text-rgb),  0.06) 0
  );
}

.hw-prog-seal__core {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 28%, rgba(36, 26, 18, 0.95), rgba(12, 8, 6, 0.98));
  border: 1px solid rgba(232, 196, 150, 0.14);
  color: #e8a05a;
}

.hw-prog-seal--reader .hw-prog-seal__core {
  color: #8eb4d4;
}

.hw-prog-seal__core .hw-prog-icon,
.hw-prog-seal__core svg {
  width: 1.65rem;
  height: 1.65rem;
}

.hw-prog-seal__pct {
  position: absolute;
  right: -0.15rem;
  bottom: -0.15rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(12, 8, 6, 0.92);
  border: 1px solid rgba(196, 120, 58, 0.35);
  color: #e8a05a;
}

.hw-prog-seal__kicker {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 196, 150, 0.72);
}

.hw-prog-seal__name {
  margin: 0 0 0.25rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--hw-text, #fff4e8);
}

.hw-prog-seal__xp,
.hw-prog-seal__next {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: rgba(232, 196, 150, 0.72);
}

.hw-prog-seal__streak {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #e8a05a;
}

.hw-prog-seal__open {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--hw-gold, #fdba74);
}

.hw-prog-paths-hint {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(232, 196, 150, 0.82);
}

/* Badge wall — circular seals + progressive metal effects */
.hw-prog-wall-caption {
  margin: 0 0 0.75rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--hw-text, #fff4e8);
}

.hw-prog-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.85rem;
}

.hw-prog-medal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.65rem 0.5rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(232, 196, 150, 0.1);
  background: rgba(12, 8, 6, 0.55);
  min-height: 100%;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.hw-prog-medal.is-earned {
  border-color: rgba(232, 196, 150, 0.18);
  background: linear-gradient(165deg, rgba(24, 18, 14, 0.88), rgba(10, 7, 5, 0.92));
}

.hw-prog-medal.is-earned:hover {
  border-color: rgba(232, 196, 150, 0.28);
  transform: translateY(-2px);
}

.hw-prog-medal.is-locked,
.hw-prog-medal.is-progress {
  opacity: 0.88;
}

/* Circular seal face — shine clipped to medal disc only */
.hw-prog-medal__seal-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  margin-bottom: 0.5rem;
  display: grid;
  place-items: center;
}

.hw-prog-medal__seal,
.hw-prog-medal__hex {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 35% 28%, rgba(48, 34, 24, 0.98), rgba(12, 8, 6, 0.98) 70%);
  box-shadow:
    inset 0 1px 0 rgba(var(--hw-text-rgb),  0.1),
    0 0 0 2px rgba(232, 196, 150, 0.14);
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.hw-prog-medal__ring,
.hw-prog-medal__core,
.hw-prog-medal__shine,
.hw-prog-medal__aura,
.hw-prog-medal__blaze,
.hw-prog-medal__flame {
  pointer-events: none;
}

.hw-prog-medal__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(180, 140, 90, 0.45);
  z-index: 1;
}

.hw-prog-medal__core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.hw-prog-medal__shine {
  position: absolute;
  top: -20%;
  left: -40%;
  width: 55%;
  height: 140%;
  z-index: 3;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--hw-text-rgb),  0) 30%,
    rgba(var(--hw-text-rgb),  0.65) 50%,
    rgba(var(--hw-text-rgb),  0) 70%,
    transparent 100%
  );
  transform: translateX(-30%) rotate(18deg);
  opacity: 0;
}

.hw-prog-medal__aura {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle, rgba(232, 160, 90, 0.35), transparent 68%);
  filter: blur(2px);
}

.hw-prog-medal.is-earned:hover .hw-prog-medal__seal,
.hw-prog-medal.is-earned:hover .hw-prog-medal__hex {
  transform: scale(1.05);
}

.hw-prog-medal.is-earned:hover .hw-prog-medal__shine {
  opacity: 1;
  animation: hw-prog-shine-sweep 0.85s ease forwards;
}

.hw-prog-medal--bronze .hw-prog-medal__seal,
.hw-prog-medal--bronze .hw-prog-medal__hex {
  color: #d4a574;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 180, 0.12),
    0 0 0 2px rgba(160, 90, 50, 0.55),
    0 4px 14px rgba(0, 0, 0, 0.35);
}

.hw-prog-medal--bronze .hw-prog-medal__ring {
  box-shadow: inset 0 0 0 5px rgba(160, 90, 50, 0.7);
}

.hw-prog-medal--bronze.is-earned:hover .hw-prog-medal__seal,
.hw-prog-medal--bronze.is-earned:hover .hw-prog-medal__hex {
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 180, 0.18),
    0 0 0 2px rgba(180, 110, 60, 0.75),
    0 0 16px rgba(160, 90, 50, 0.28);
}

.hw-prog-medal--silver .hw-prog-medal__seal,
.hw-prog-medal--silver .hw-prog-medal__hex {
  color: #c8d0dc;
  box-shadow:
    inset 0 1px 0 rgba(240, 248, 255, 0.16),
    0 0 0 2px rgba(150, 165, 185, 0.55),
    0 4px 16px rgba(0, 0, 0, 0.35);
}

.hw-prog-medal--silver .hw-prog-medal__ring {
  box-shadow: inset 0 0 0 5px rgba(150, 165, 185, 0.75);
}

.hw-prog-medal--silver .hw-prog-medal__aura {
  opacity: 0.25;
  background: radial-gradient(circle, rgba(200, 210, 230, 0.28), transparent 68%);
}

.hw-prog-medal--silver.is-earned:hover .hw-prog-medal__seal,
.hw-prog-medal--silver.is-earned:hover .hw-prog-medal__hex {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 2px rgba(200, 215, 235, 0.85),
    0 0 22px rgba(180, 200, 230, 0.35);
}

.hw-prog-medal--silver.is-earned:hover .hw-prog-medal__shine {
  animation-duration: 0.7s;
}

.hw-prog-medal--gold .hw-prog-medal__seal,
.hw-prog-medal--gold .hw-prog-medal__hex {
  color: #f0c14b;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 180, 0.2),
    0 0 0 2px rgba(212, 163, 90, 0.7),
    0 0 14px rgba(212, 163, 90, 0.22),
    0 6px 18px rgba(0, 0, 0, 0.38);
}

.hw-prog-medal--gold .hw-prog-medal__ring {
  box-shadow: inset 0 0 0 5px rgba(212, 163, 90, 0.85);
}

.hw-prog-medal--gold .hw-prog-medal__aura {
  opacity: 0.45;
  animation: hw-prog-aura-breathe 3.2s ease-in-out infinite;
}

.hw-prog-medal--gold.is-earned:hover .hw-prog-medal__seal,
.hw-prog-medal--gold.is-earned:hover .hw-prog-medal__hex {
  transform: scale(1.07) rotate(-2deg);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 200, 0.28),
    0 0 0 2px rgba(240, 193, 75, 0.95),
    0 0 28px rgba(212, 163, 90, 0.45);
}

.hw-prog-medal--gold.is-earned:hover .hw-prog-medal__aura {
  opacity: 0.75;
  animation: none;
}

.hw-prog-medal--ember .hw-prog-medal__seal,
.hw-prog-medal--ember .hw-prog-medal__hex {
  color: #ffb070;
  box-shadow:
    inset 0 1px 0 rgba(255, 200, 140, 0.22),
    0 0 0 2px rgba(var(--hw-flame-rgb),  0.75),
    0 0 20px rgba(var(--hw-flame-rgb),  0.35),
    0 8px 22px rgba(0, 0, 0, 0.4);
}

.hw-prog-medal--ember .hw-prog-medal__ring {
  box-shadow:
    inset 0 0 0 5px rgba(var(--hw-flame-rgb),  0.9),
    inset 0 0 12px rgba(var(--hw-flame-rgb),  0.2);
  animation: hw-prog-ember-ring 2.6s ease-in-out infinite;
}

.hw-prog-medal--ember .hw-prog-medal__aura {
  opacity: 0.7;
  background: radial-gradient(circle, rgba(var(--hw-flame-rgb),  0.5), rgba(196, 90, 40, 0.15) 45%, transparent 70%);
  animation: hw-prog-aura-breathe 2.4s ease-in-out infinite;
}

.hw-prog-medal__blaze {
  position: absolute;
  inset: -28% -18% -8%;
  z-index: 1;
  opacity: 0.85;
}

.hw-prog-medal__flame {
  position: absolute;
  bottom: 18%;
  width: 14px;
  height: 22px;
  border-radius: 50% 50% 40% 40%;
  background: linear-gradient(180deg, #ffd090 0%, var(--hw-flame, #f97316) 45%, rgba(180, 40, 10, 0) 100%);
  filter: blur(0.4px);
  opacity: 0.55;
  transform-origin: 50% 100%;
  animation: hw-prog-flame-flicker 0.9s ease-in-out infinite;
}

.hw-prog-medal__flame--a { left: 18%; height: 26px; }
.hw-prog-medal__flame--b { left: 44%; width: 16px; height: 30px; opacity: 0.7; animation-delay: 0.18s; animation-duration: 0.75s; }
.hw-prog-medal__flame--c { right: 16%; left: auto; height: 24px; animation-delay: 0.35s; animation-duration: 1.05s; }

.hw-prog-medal--ember.is-earned:hover .hw-prog-medal__seal,
.hw-prog-medal--ember.is-earned:hover .hw-prog-medal__hex {
  transform: scale(1.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 180, 0.3),
    0 0 0 3px rgba(255, 160, 80, 0.95),
    0 0 36px rgba(var(--hw-flame-rgb),  0.55),
    0 0 60px rgba(196, 90, 40, 0.25);
}

.hw-prog-medal--ember.is-earned:hover .hw-prog-medal__shine {
  animation: hw-prog-shine-sweep 0.55s ease forwards;
}

.hw-prog-medal--ember.is-earned:hover .hw-prog-medal__aura {
  opacity: 1;
  animation: hw-prog-aura-flare 0.9s ease;
}

.hw-prog-medal--ember.is-earned:hover .hw-prog-medal__flame {
  opacity: 1;
  height: 36px;
  animation-duration: 0.45s;
  filter: blur(0.2px) drop-shadow(0 0 6px rgba(var(--hw-flame-rgb),  0.8));
}

.hw-prog-medal.is-locked .hw-prog-medal__seal,
.hw-prog-medal.is-locked .hw-prog-medal__hex {
  color: rgba(232, 196, 150, 0.35);
  background: radial-gradient(circle at 40% 30%, rgba(32, 24, 18, 0.9), rgba(12, 8, 6, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(var(--hw-text-rgb),  0.04),
    0 0 0 2px rgba(74, 63, 54, 0.55);
}

.hw-prog-medal.is-locked .hw-prog-medal__ring {
  box-shadow: inset 0 0 0 5px rgba(74, 63, 54, 0.65);
}

.hw-prog-medal.is-locked .hw-prog-medal__shine,
.hw-prog-medal.is-locked .hw-prog-medal__aura,
.hw-prog-medal.is-locked .hw-prog-medal__blaze {
  display: none;
}

.hw-prog-medal.is-progress .hw-prog-medal__seal,
.hw-prog-medal.is-progress .hw-prog-medal__hex {
  color: rgba(232, 196, 150, 0.55);
}

@keyframes hw-prog-shine-sweep {
  0% { opacity: 0; transform: translateX(-40%) rotate(18deg); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translateX(220%) rotate(18deg); }
}

@keyframes hw-prog-aura-breathe {
  0%, 100% { transform: scale(0.92); opacity: 0.35; }
  50% { transform: scale(1.08); opacity: 0.7; }
}

@keyframes hw-prog-aura-flare {
  0% { transform: scale(0.9); opacity: 0.5; }
  40% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1.05); opacity: 0.65; }
}

@keyframes hw-prog-ember-ring {
  0%, 100% {
    box-shadow:
      inset 0 0 0 5px rgba(var(--hw-flame-rgb),  0.85),
      inset 0 0 10px rgba(var(--hw-flame-rgb),  0.15);
  }
  50% {
    box-shadow:
      inset 0 0 0 5px rgba(255, 176, 112, 1),
      inset 0 0 18px rgba(var(--hw-flame-rgb),  0.35);
  }
}

@keyframes hw-prog-flame-flicker {
  0%, 100% { transform: scaleY(1) scaleX(1) translateY(0); opacity: 0.5; }
  35% { transform: scaleY(1.18) scaleX(0.88) translateY(-2px); opacity: 0.85; }
  70% { transform: scaleY(0.92) scaleX(1.08) translateY(1px); opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  .hw-prog-medal,
  .hw-prog-medal__seal,
  .hw-prog-medal__hex,
  .hw-prog-medal__shine,
  .hw-prog-medal__aura,
  .hw-prog-medal__ring,
  .hw-prog-medal__blaze,
  .hw-prog-medal__flame {
    animation: none !important;
    transition: none !important;
  }

  .hw-prog-medal.is-earned:hover .hw-prog-medal__shine {
    opacity: 0.35;
    transform: none;
  }
}

.hw-prog-medal__icon,
.hw-prog-icon {
  display: grid;
  place-items: center;
  color: inherit;
  line-height: 0;
}

.hw-prog-medal__icon svg,
.hw-prog-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
  color: inherit;
}

/* Motifs must take the seal metal — never default black fill/stroke. */
.hw-prog-medal__icon svg :is(path, circle, rect, ellipse, line, polyline, polygon),
.hw-prog-icon svg :is(path, circle, rect, ellipse, line, polyline, polygon) {
  stroke: currentColor;
  fill: none;
}

.hw-prog-medal__icon svg [fill]:not([fill='none']):not([fill='transparent']),
.hw-prog-icon svg [fill]:not([fill='none']):not([fill='transparent']) {
  fill: currentColor;
  stroke: none;
}

.hw-prog-medal--bronze .hw-prog-medal__icon {
  color: #e8b888;
}

.hw-prog-medal--silver .hw-prog-medal__icon {
  color: #d5dde8;
}

.hw-prog-medal--gold .hw-prog-medal__icon {
  color: #f3cb5c;
}

.hw-prog-medal--ember .hw-prog-medal__icon {
  color: #ffb070;
}

.hw-prog-medal.is-locked .hw-prog-medal__icon,
.hw-prog-medal.is-progress .hw-prog-medal__icon {
  color: rgba(232, 196, 150, 0.55);
}

.hw-prog-seal__streak-flame {
  display: inline-grid;
  place-items: center;
  vertical-align: -0.15em;
  margin-right: 0.2rem;
  color: var(--hw-flame, #f97316);
}

.hw-prog-seal__streak-flame svg {
  width: 0.95rem;
  height: 0.95rem;
}

.hw-prog-medal__title {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.25;
  font-weight: 650;
  color: var(--hw-text, #fff4e8);
}

.hw-prog-medal__metal {
  margin: 0.2rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 196, 150, 0.72);
}

.hw-prog-medal__blurb {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(184, 156, 132, 0.88);
}

.hw-prog-medal__bar {
  width: 100%;
  height: 4px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: rgba(var(--hw-text-rgb),  0.08);
  overflow: hidden;
}

.hw-prog-medal__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c4783a, #e8a05a);
  border-radius: inherit;
}

.hw-prog-medal__count,
.hw-prog-medal__next,
.hw-prog-medal__earned {
  margin: 0.3rem 0 0;
  font-size: 0.68rem;
  color: rgba(232, 196, 150, 0.68);
}

/* Compact showcase — no per-medal card chrome (sit on parent surface) */
.hw-prog-medal--compact,
.hw-prog-medal--compact.is-earned,
.hw-prog-medal--compact.is-locked,
.hw-prog-medal--compact.is-progress {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-height: 0;
}

.hw-prog-medal--compact:hover,
.hw-prog-medal--compact.is-earned:hover {
  transform: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.hw-prog-medal--compact .hw-prog-medal__seal,
.hw-prog-medal--compact .hw-prog-medal__hex {
  width: 64px;
  height: 64px;
  margin-bottom: 0.35rem;
}

.hw-prog-medal--compact .hw-prog-medal__blurb,
.hw-prog-medal--compact .hw-prog-medal__bar,
.hw-prog-medal--compact .hw-prog-medal__count,
.hw-prog-medal--compact .hw-prog-medal__next {
  display: none;
}

/* Edit-profile / featured picker wraps full medals */
.hw-prog-medal-pick {
  position: relative;
}

.hw-prog-medal-pick.is-featured .hw-prog-medal {
  border-color: rgba(232, 196, 150, 0.42);
  box-shadow: 0 0 0 1px rgba(212, 163, 90, 0.28);
}

.hw-prog-medal-pick__pin {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(12, 8, 6, 0.85);
  border: 1px solid rgba(232, 196, 150, 0.35);
  cursor: pointer;
}

.hw-prog-medal-pick__pin input {
  margin: 0;
  accent-color: #d4a35a;
}

.hw-prog-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: flex-start;
}

/* Aside cards */
.hw-prog-aside-card {
  border-radius: 16px;
  border: 1px solid rgba(232, 196, 150, 0.12);
  background: linear-gradient(165deg, rgba(22, 16, 12, 0.92), rgba(10, 7, 5, 0.96));
  padding: 0.95rem 1rem;
}

.hw-prog-aside-card__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.hw-prog-aside-card__head h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--hw-text, #fff4e8);
  flex: 1;
}

.hw-prog-aside-card__head .hw-prog-icon,
.hw-prog-aside-card__head svg {
  width: 1.1rem;
  height: 1.1rem;
  color: #e8a05a;
  flex-shrink: 0;
}

.hw-prog-trust__score {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  color: #e8a05a;
}

.hw-prog-trust__hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(184, 156, 132, 0.88);
}

.hw-prog-quests__reset {
  font-size: 0.68rem;
  color: rgba(232, 196, 150, 0.62);
  margin-left: auto;
}

.hw-prog-quests__hint {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(184, 156, 132, 0.9);
}

.hw-prog-cap {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  color: rgba(var(--hw-gold-rgb),  0.92);
}

.hw-prog-locked {
  padding: 1.5rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(12, 7, 5, 0.45);
  max-width: 36rem;
}

.hw-prog-locked h2 {
  margin: 0 0 0.5rem;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--hw-gold-hover, #fde68a);
}

.hw-prog-locked p {
  margin: 0 0 1rem;
  color: rgba(232, 196, 150, 0.9);
  line-height: 1.5;
}

.hw-prog-aside-card__subhead {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 0 0.45rem;
}

.hw-prog-aside-card__subhead h4 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 196, 150, 0.72);
  flex: 1;
}

.hw-prog-quest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hw-prog-quest {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  background: rgba(8, 5, 4, 0.42);
  font-size: 0.82rem;
  color: rgba(232, 196, 150, 0.85);
}

.hw-prog-quest.is-done {
  opacity: 0.78;
}

.hw-prog-quest__check {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1px solid rgba(196, 120, 58, 0.35);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  color: #e8a05a;
  background: rgba(12, 8, 6, 0.8);
}

.hw-prog-quest.is-done .hw-prog-quest__check {
  background: rgba(196, 120, 58, 0.25);
  border-color: rgba(196, 120, 58, 0.55);
}

.hw-prog-quest__xp {
  font-weight: 650;
  color: #e8a05a;
  font-size: 0.75rem;
  white-space: nowrap;
  min-width: 2.35rem;
  text-align: right;
}

.hw-prog-quest__label {
  min-width: 0;
  line-height: 1.35;
}

.hw-prog-hint {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(184, 156, 132, 0.88);
}

/* Unlock toast */
.hw-profile__toast.hw-profile__toast--unlock {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(196, 120, 58, 0.4);
  background: rgba(16, 11, 8, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.hw-profile__toast-medal {
  width: 40px;
  height: 46px;
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(180, 140, 50, 0.5), rgba(24, 16, 12, 0.95));
  color: #f0c14b;
  flex-shrink: 0;
}

.hw-profile__toast-medal svg {
  width: 1.1rem;
  height: 1.1rem;
}

.hw-profile__toast-copy {
  font-size: 0.88rem;
  color: var(--hw-text, #fff4e8);
}

/* Path control modal */
.hw-prog-path-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.hw-prog-path-modal[hidden] {
  display: none !important;
}

.hw-prog-path-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 3, 0.72);
  backdrop-filter: blur(4px);
}

.hw-prog-path-modal__card {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(232, 196, 150, 0.22);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(var(--hw-flame-rgb),  0.12), transparent 50%),
    linear-gradient(165deg, rgba(28, 18, 12, 0.98), rgba(10, 7, 5, 0.98));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.hw-prog-path-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.hw-prog-path-modal__kicker {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hw-gold, #fdba74);
}

.hw-prog-path-modal__title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  color: var(--hw-text-strong, #fff8ef);
}

.hw-prog-path-modal__meta {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  color: rgba(232, 196, 150, 0.86);
}

.hw-prog-path-modal__close {
  appearance: none;
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 196, 150, 0.28);
  background: rgba(0, 0, 0, 0.35);
  color: var(--hw-text, #fff4e8);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.hw-prog-path-modal__close:hover {
  border-color: rgba(var(--hw-flame-rgb),  0.5);
  color: var(--hw-gold, #fdba74);
}

.hw-prog-path-modal__xp {
  margin: 0.85rem 0 0.75rem;
  height: 7px;
  border-radius: 999px;
  background: rgba(var(--hw-text-rgb),  0.1);
  overflow: hidden;
}

.hw-prog-path-modal__xp span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hw-flame, #f97316), var(--hw-gold, #fdba74));
}

.hw-prog-path-modal__ranks {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hw-prog-path-modal__rank {
  margin: 0;
  padding: 0;
}

.hw-prog-path-modal__rank-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 196, 150, 0.16);
  background: rgba(0, 0, 0, 0.28);
  font: inherit;
  font-size: 0.72rem;
  color: rgba(184, 156, 132, 0.88);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.hw-prog-path-modal__rank-btn:hover,
.hw-prog-path-modal__rank-btn:focus-visible {
  border-color: rgba(var(--hw-gold-rgb),  0.45);
  color: var(--hw-text-strong, #fff8ef);
  outline: none;
}

.hw-prog-path-modal__rank.is-earned .hw-prog-path-modal__rank-btn {
  border-color: rgba(var(--hw-gold-rgb),  0.28);
  color: var(--hw-gold, #fdba74);
}

.hw-prog-path-modal__rank.is-current .hw-prog-path-modal__rank-btn,
.hw-prog-path-modal__rank-btn.is-previewing {
  border-color: rgba(var(--hw-text-rgb),  0.32);
  background: rgba(var(--hw-text-rgb),  0.1);
  color: var(--hw-text-strong, #fff8ef);
  font-weight: 650;
}

.hw-prog-path-modal__rank.is-locked .hw-prog-path-modal__rank-btn {
  opacity: 0.72;
}

.hw-prog-path-modal__rank-preview {
  margin: 0 0 0.95rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(232, 196, 150, 0.16);
  background: rgba(8, 5, 4, 0.45);
}

.hw-prog-path-modal__rank-preview[data-state="is-current"] {
  border-color: rgba(var(--hw-text-rgb),  0.28);
  background: rgba(var(--hw-text-rgb),  0.06);
}

.hw-prog-path-modal__rank-preview[data-state="is-earned"] {
  border-color: rgba(var(--hw-gold-rgb),  0.28);
}

.hw-prog-path-modal__rank-preview[data-state="is-locked"] {
  border-style: dashed;
  opacity: 0.92;
}

.hw-prog-path-modal__rank-preview-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hw-gold, #fdba74);
}

.hw-prog-path-modal__rank-preview-name {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  color: var(--hw-text-strong, #fff8ef);
}

.hw-prog-path-modal__rank-preview-xp {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  color: rgba(232, 196, 150, 0.86);
}

.hw-prog-path-modal__rank-preview-blurb {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(234, 214, 194, 0.88);
}

.hw-prog-path-modal__rank-preview-next {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: rgba(184, 156, 132, 0.9);
}

.hw-prog-path-modal__counts {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  color: rgba(232, 196, 150, 0.78);
}

.hw-prog-path-modal__body {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.hw-prog-journey-lanes {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.hw-prog-lane {
  padding: 0.85rem 0.9rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(232, 196, 150, 0.12);
  background: rgba(8, 5, 4, 0.42);
}

.hw-prog-lane--active {
  border-color: rgba(var(--hw-flame-rgb),  0.28);
  background:
    linear-gradient(165deg, rgba(40, 24, 14, 0.72), rgba(12, 8, 6, 0.88)),
    radial-gradient(90% 120% at 0% 0%, rgba(var(--hw-flame-rgb),  0.1), transparent 60%);
}

.hw-prog-lane__title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.98rem;
  color: var(--hw-text-strong, #fff8ef);
}

.hw-prog-lane__desc {
  margin: 0.25rem 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(184, 156, 132, 0.88);
}

.hw-prog-medal__blurb {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(184, 156, 132, 0.9);
  max-width: 16rem;
}

.hw-prog-medal__next {
  margin: 0.25rem 0 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(232, 196, 150, 0.72);
}

@media (max-width: 1100px) {
  .hw-prog-progress--balanced {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hw-prog-progress--balanced .hw-prog-progress__main {
    grid-column: 1;
    grid-row: 1;
  }

  .hw-prog-progress--balanced .hw-prog-progress__quests {
    grid-column: 2;
    grid-row: 1;
  }

  .hw-prog-progress--balanced .hw-prog-progress__aside {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (max-width: 900px) {
  .hw-prog-progress,
  .hw-prog-progress--balanced {
    grid-template-columns: 1fr;
  }

  .hw-prog-progress--balanced .hw-prog-progress__main,
  .hw-prog-progress--balanced .hw-prog-progress__quests,
  .hw-prog-progress--balanced .hw-prog-progress__aside {
    grid-column: 1;
    grid-row: auto;
  }

  .hw-prog-progress--balanced .hw-prog-progress__aside {
    display: flex;
    flex-direction: column;
  }

  .hw-prog-seals-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hw-prog-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hw-prog-path-modal {
    padding: 0.65rem;
  }

  .hw-prog-path-modal__card {
    max-height: 94vh;
    padding: 0.95rem;
  }
}

/* Kadence global button fill — progression seals are <button> controls */
button.hw-prog-seal,
button.hw-prog-seal.is-control:hover,
button.hw-prog-seal.is-control:focus-visible,
button.hw-prog-seal.is-active {
  background: linear-gradient(155deg, rgba(22, 16, 12, 0.92), rgba(10, 7, 5, 0.96));
  background-image: linear-gradient(155deg, rgba(22, 16, 12, 0.92), rgba(10, 7, 5, 0.96));
  color: inherit;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  filter: none;
  transform: none;
}

