
.sheet-panel.atlas-panel {
  height: 88vh;
  height: 88dvh;
  max-height: calc(100vh - var(--safe-top) - 26px);
  max-height: calc(100dvh - var(--safe-top) - 26px);
  gap: 8px;
}

.atlas-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}

.atlas-season {
  color: var(--gold-light);
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #000;
}

.atlas-dust {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 5px;
  padding: 3px 12px 4px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-deep), var(--bg));
  border: 2px solid var(--gold-dark);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9);
  font-family: var(--display);
  text-shadow: 0 1px 0 #000;
}

.atlas-dust-icon {
  color: var(--neon-cyan);
  font-size: 0.95rem;
  text-shadow: 0 1px 0 #000;
}

.atlas-dust-amount {
  color: var(--gold-light);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.atlas-dust-name {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atlas-album {
  flex: none;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 2px 12px;
  border-bottom: 1px solid var(--hairline);
}

.atlas-album.claimed-now,
.atlas-set.claimed-now {
  animation: atlas-claimed 700ms ease-out;
}

.atlas-album-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.atlas-book,
.atlas-button-icon {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  background: url("../art/lobby/albums.webp") center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

.atlas-album-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.atlas-album-count {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-image: var(--gold-bevel);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 var(--gold-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}

.atlas-album-prize {
  color: var(--gold-light);
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #000;
}

.atlas-album.complete .atlas-album-prize {
  color: var(--gold-light);
}

.atlas-claim {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  max-width: 240px;
  min-height: 56px;
  padding: 3px 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--navy), var(--navy-deep));
  border: 3px solid var(--gold-deep);
  box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: var(--muted);
  font-family: var(--display);
  line-height: 1.1;
  text-shadow: 0 1px 0 #000;
}

.atlas-claim-label {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.atlas-claim-reward {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.atlas-set.complete .atlas-claim,
.atlas-album.complete .atlas-claim {
  background: var(--gold-bevel);
  border-color: var(--gold-light);
  box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 rgba(0, 0, 0, 0.55);
  color: var(--gold-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.atlas-set.complete .atlas-claim:active,
.atlas-album.complete .atlas-claim:active {
  transform: translateY(2px);
}

.atlas-set.claimed .atlas-claim,
.atlas-album.claimed .atlas-claim {
  opacity: 0.5;
}

.atlas-view {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.atlas-view[hidden] {
  display: none;
}

.atlas-albums,
.atlas-sets {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.atlas-albums {
  gap: 10px;
  padding: 2px 2px 8px;
}

.atlas-shelf {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 8px;
  padding: 8px 0 4px;
}

.atlas-medal,
.atlas-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--display);
}

.atlas-medal {
  width: calc((100% - 16px) / 3);
  gap: 4px;
}

.atlas-medal-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(239, 52, 201, 0.45), transparent 62%),
    radial-gradient(circle at 50% 50%, #5a2a9e, #1c0a40 72%);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 1px var(--gold-deep), inset 0 0 0 2px rgba(0, 0, 0, 0.35), 0 4px 0 rgba(0, 0, 0, 0.5);
}

.atlas-medal-ring .atlas-card-art {
  width: 78%;
  height: 78%;
}

.atlas-medal-ring .atlas-card-img {
  width: 100%;
}


.atlas-medal-new {
  position: absolute;
  top: 0;
  right: calc(50% - 46px);
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--ruby);
  border: 2px solid var(--gold-deep);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.75rem;
  line-height: 18px;
  text-align: center;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.atlas-medal-new[hidden] {
  display: none;
}

.atlas-medal-name {
  max-width: 100%;
  color: var(--text);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #000;
}

.atlas-medal-count {
  min-width: 48px;
  padding: 2px 8px 1px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--bg-deep), var(--bg));
  border: 1px solid var(--gold-dark);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9);
  color: var(--gold-light);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.atlas-medal.complete .atlas-medal-ring,
.atlas-chip.complete .atlas-medal-ring {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 1px var(--gold-deep), 0 4px 0 rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 211, 77, 0.9);
  animation: atlas-ready 1.6s ease-in-out infinite;
}

.atlas-medal.complete .atlas-medal-count {
  background: var(--gold-bevel);
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}

.atlas-medal.claimed .atlas-medal-count {
  color: var(--gold);
}

.atlas-medal:active .atlas-medal-ring,
.atlas-chip:active .atlas-medal-ring {
  transform: translateY(2px);
}

.atlas-track-wrap {
  flex: none;
  padding: 6px 0 2px;
  border-top: 1px solid var(--hairline);
}

.atlas-track-title {
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.atlas-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.atlas-track-bar {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 19px;
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 1px 2px #000, 0 0 0 1px var(--gold-deep);
}

.atlas-track-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 50%, var(--gold-dark));
  transition: width 400ms ease-out;
}

.atlas-track-done,
.atlas-stop-seal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 50%, var(--gold-dark));
  border: 2px solid var(--gold-deep);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.5);
  color: var(--gold-deep);
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.atlas-stop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--muted);
  font-family: var(--display);
}

.atlas-stop .atlas-coin {
  width: 32px;
  height: 32px;
  margin: 7px 0 1px;
  filter: grayscale(0.6) brightness(0.7);
}

.atlas-stop-amount {
  color: var(--gold-light);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 #000;
  font-variant-numeric: tabular-nums;
}

.atlas-stop-sets {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.atlas-stop.reached .atlas-coin,
.atlas-stop.ready .atlas-coin,
.atlas-stop.claimed .atlas-coin,
.atlas-stop-album.ready .atlas-stop-seal {
  filter: none;
}

.atlas-stop.ready .atlas-coin {
  box-shadow: 0 0 14px rgba(255, 211, 77, 1);
  animation: atlas-ready 1.6s ease-in-out infinite;
}

.atlas-stop.ready .atlas-stop-sets {
  color: var(--gold-light);
}

.atlas-stop.claimed {
  opacity: 0.6;
}

.atlas-stop.claimed-now .atlas-coin {
  animation: atlas-claimed 700ms ease-out;
}

.atlas-stop-album .atlas-stop-seal {
  filter: grayscale(0.6) brightness(0.7);
}

.atlas-stop-album.claimed .atlas-stop-seal {
  filter: none;
  opacity: 0.6;
}

.atlas-coin {
  flex: none;
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: url("../art/ui/coin-gold.webp") center / contain no-repeat;
}

