.progress-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.progress-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
}
.progress-hero p {
  margin-bottom: 0;
}
.progress-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.progress-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.progress-stat-card {
  min-height: 152px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.025)
  );
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.progress-stat-card > span {
  color: var(--muted);
  font-weight: 850;
}
.progress-stat-card strong {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--wood2);
}
.progress-stat-card small {
  color: var(--muted2);
  font-weight: 700;
}
.progress-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}
.progress-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}
.compact-progress-card {
  padding: 24px;
}
.compact-progress-card h2 {
  font-size: 26px;
}
.progress-big-line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.progress-big-line strong {
  font-size: clamp(30px, 4vw, 52px);
  color: var(--wood2);
  line-height: 1;
}
.progress-big-line span {
  color: var(--muted);
  font-weight: 900;
}
.progress-track,
.metric-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  overflow: hidden;
}
.progress-track {
  margin-top: 14px;
}
.progress-track i,
.metric-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wood3), var(--wood2));
  box-shadow: 0 0 18px rgba(217, 160, 102, 0.28);
}
.progress-track i {
  width: min(100%, var(--progress-width, 0%));
}
.metric-bars {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.metric-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.metric-row span {
  font-weight: 800;
}
.metric-row strong {
  color: var(--wood2);
}
.metric-track i {
  width: min(100%, var(--metric-width, 0%));
}
.activity-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}
.activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}
.activity-row > div {
  display: grid;
  gap: 4px;
}
.activity-row small {
  color: var(--muted);
}
.event-kind {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.event-new {
  color: var(--ok);
  background: rgba(71, 214, 163, 0.1);
  border: 1px solid rgba(71, 214, 163, 0.25);
}
.event-repeat {
  color: var(--warn);
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.22);
}
.achievement-summary-ring {
  --ring: var(--achievement-pct, 0%);
  width: 132px;
  height: 132px;
  flex: 0 0 132px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(circle closest-side, #151821 72%, transparent 74%),
    conic-gradient(var(--wood2) var(--ring), rgba(255, 255, 255, 0.08) 0);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.achievement-summary-ring strong {
  font-size: 28px;
}
.achievement-summary-ring span {
  color: var(--muted);
  font-size: 12px;
}
.achievement-section {
  margin: 30px 0;
}
.achievement-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.achievement-section-title h2 {
  margin: 0;
  text-transform: capitalize;
}
.achievement-section-title > span {
  color: var(--muted);
  font-weight: 900;
}
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.achievement-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border2);
  border-radius: 22px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.022)
  );
  position: relative;
  overflow: hidden;
}
.achievement-card.is-locked {
  opacity: 0.68;
}
.achievement-card.is-unlocked {
  border-color: rgba(217, 160, 102, 0.32);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
}
.achievement-card.rarity-rare.is-unlocked {
  border-color: rgba(126, 181, 255, 0.42);
}
.achievement-card.rarity-epic.is-unlocked {
  border-color: rgba(186, 125, 255, 0.48);
}
.achievement-card.rarity-legendary.is-unlocked {
  border-color: rgba(255, 204, 102, 0.58);
  box-shadow: 0 18px 55px rgba(217, 160, 102, 0.16);
}
.achievement-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--wood2);
  background: rgba(217, 160, 102, 0.1);
  border: 1px solid rgba(217, 160, 102, 0.2);
}
.achievement-copy {
  min-width: 0;
}
.achievement-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.achievement-heading h3 {
  font-size: 18px;
  margin: 0;
}
.achievement-heading span {
  font-size: 11px;
  color: var(--wood2);
  font-weight: 900;
  white-space: nowrap;
}
.achievement-description {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 12px;
}
.achievement-progress-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 900;
}
.achievement-copy small {
  display: block;
  color: var(--muted2);
  margin-top: 9px;
}
.achievement-unlock-panel {
  margin-top: 22px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(217, 160, 102, 0.38);
  background: linear-gradient(
    145deg,
    rgba(217, 160, 102, 0.13),
    rgba(124, 92, 255, 0.09)
  );
  animation: achievement-enter 0.5s ease both;
}
.achievement-unlock-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.achievement-unlock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 15px;
  background: rgba(8, 9, 13, 0.48);
  border: 1px solid var(--border);
}
.achievement-unlock-row strong {
  color: var(--wood2);
}
.achievement-toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: grid;
  gap: 10px;
  width: min(430px, calc(100vw - 36px));
}
.achievement-toast {
  display: grid;
  grid-template-columns: 44px 1fr auto 30px;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(217, 160, 102, 0.42);
  border-radius: 20px;
  background: rgba(15, 18, 27, 0.97);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.48);
  animation: achievement-enter 0.45s ease both;
}
.achievement-toast.rarity-epic,
.achievement-toast.rarity-legendary {
  border-color: rgba(255, 204, 102, 0.7);
}
.achievement-toast-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--wood2);
  background: rgba(217, 160, 102, 0.12);
}
.achievement-toast div {
  display: grid;
  gap: 3px;
}
.achievement-toast small {
  color: var(--wood2);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.achievement-toast strong {
  font-size: 16px;
}
.achievement-toast p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.achievement-toast > b {
  color: var(--wood2);
  white-space: nowrap;
}
.achievement-toast-close {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: none;
}
@keyframes achievement-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 900px) {
  .progress-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .progress-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .progress-detail-grid > *:last-child {
    grid-column: 1/-1;
  }
  .achievement-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .progress-hero {
    align-items: stretch;
    flex-direction: column;
  }
  .progress-actions {
    justify-content: stretch;
  }
  .progress-actions .button {
    width: 100%;
  }
  .progress-stat-grid,
  .progress-detail-grid,
  .progress-chart-grid {
    grid-template-columns: 1fr;
  }
  .progress-detail-grid > *:last-child {
    grid-column: auto;
  }
  .progress-stat-card {
    min-height: 130px;
  }
  .achievement-summary-ring {
    width: 112px;
    height: 112px;
    flex-basis: 112px;
  }
  .achievement-card {
    grid-template-columns: 44px 1fr;
    padding: 15px;
  }
  .achievement-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .activity-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .achievement-toast {
    grid-template-columns: 38px 1fr 28px;
  }
  .achievement-toast-icon {
    width: 38px;
    height: 38px;
  }
  .achievement-toast > b {
    grid-column: 2;
  }
  .achievement-toast-close {
    grid-column: 3;
    grid-row: 1;
  }
}

.achievement-card.has-point-visual {
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: start;
}
.point-position-visual {
  position: relative;
  width: 76px;
  height: 76px;
  padding: 4px;
  border: 1px solid rgba(243, 209, 156, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(circle at 25% 18%, rgba(217, 160, 102, 0.13), transparent 54%),
    rgba(8, 10, 15, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 12px 28px rgba(0, 0, 0, 0.24);
}
.point-position-visual svg {
  display: block;
  width: 100%;
  height: 100%;
}
.point-position-face {
  fill: rgba(255, 255, 255, 0.018);
  stroke: rgba(243, 239, 232, 0.34);
  stroke-width: 1;
}
.point-position-grid {
  fill: none;
  stroke: rgba(243, 239, 232, 0.22);
  stroke-width: 0.75;
}
.point-position-pulse {
  fill: rgba(71, 214, 163, 0.16);
  stroke: rgba(71, 214, 163, 0.44);
  stroke-width: 1;
}
.point-position-dot {
  fill: var(--ok);
  stroke: #ecfff8;
  stroke-width: 1.2;
  filter: drop-shadow(0 0 4px rgba(71, 214, 163, 0.62));
}
.point-position-visual > span {
  position: absolute;
  right: -4px;
  bottom: -4px;
  min-width: 25px;
  height: 25px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(243, 209, 156, 0.42);
  border-radius: 999px;
  background: #17141a;
  color: var(--wood2);
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.42);
}
.achievement-card.is-locked .point-position-pulse {
  fill: rgba(217, 160, 102, 0.08);
  stroke: rgba(217, 160, 102, 0.27);
}
.achievement-card.is-locked .point-position-dot {
  fill: var(--wood3);
  stroke: var(--wood2);
  filter: none;
}
@media (max-width: 620px) {
  .achievement-card.has-point-visual {
    grid-template-columns: 66px minmax(0, 1fr);
  }
  .point-position-visual {
    width: 60px;
    height: 60px;
    border-radius: 16px;
  }
  .point-position-visual > span {
    min-width: 22px;
    height: 22px;
    font-size: 10px;
  }
}
