/* ===== Atlas Arena Styles ===== */

.atlas-hero {
  position: relative;
  padding: 64px 24px 48px;
  background: linear-gradient(160deg, #0a1929 0%, #1a2c4e 60%, #0d1f3a 100%);
  color: #e8f4ff;
  overflow: hidden;
  border-bottom: 1px solid rgba(122, 200, 255, 0.12);
}

.atlas-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 200, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 200, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.atlas-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.atlas-hero .badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(122, 200, 255, 0.1);
  border: 1px solid rgba(122, 200, 255, 0.28);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 18px;
  text-transform: uppercase;
  color: #7ac8ff;
}

.atlas-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.15;
}

.atlas-hero h1 .hl {
  background: linear-gradient(120deg, #7ac8ff, #b3f0ff, #ff9ed8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.atlas-hero .lede {
  font-size: 16px;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
  color: rgba(232, 244, 255, 0.86);
}

/* ===== Toggle Strip ===== */
.atlas-toggle-strip {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 31, 58, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(122, 200, 255, 0.18);
  padding: 14px 24px;
}

.atlas-toggle-inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.atlas-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(122, 200, 255, 0.22);
  border-radius: 14px;
  padding: 12px 18px;
  cursor: pointer;
  color: #e8f4ff;
  text-align: left;
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.18s ease;
}

.atlas-toggle-btn:hover {
  background: rgba(122, 200, 255, 0.08);
  border-color: rgba(122, 200, 255, 0.42);
  transform: translateY(-1px);
}

.atlas-toggle-btn.active {
  background: linear-gradient(135deg, rgba(122, 200, 255, 0.18), rgba(255, 158, 216, 0.12));
  border-color: rgba(122, 200, 255, 0.6);
  box-shadow: 0 6px 24px -8px rgba(122, 200, 255, 0.45);
}

.atlas-toggle-label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.atlas-toggle-desc {
  font-size: 12px;
  color: rgba(232, 244, 255, 0.62);
  line-height: 1.4;
}

/* ===== Main ===== */
.atlas-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.atlas-card {
  background: #ffffff;
  border: 1px solid rgba(13, 31, 58, 0.08);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 40px -16px rgba(13, 31, 58, 0.18);
}

.atlas-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.atlas-card-head h2 {
  font-size: 22px;
  margin: 4px 0 2px;
  color: #0d1f3a;
}

.atlas-card-head .cat-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(122, 200, 255, 0.14);
  color: #0d3b66;
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 700;
}

.atlas-card-head .cat-sub {
  font-size: 13px;
  color: rgba(13, 31, 58, 0.55);
  margin: 0;
}

.atlas-mode-label {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(13, 31, 58, 0.06);
  color: #0d1f3a;
  border: 1px solid rgba(13, 31, 58, 0.1);
  font-weight: 600;
}

/* ===== Map + Detail row ===== */
.atlas-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  padding: 0;
  overflow: hidden;
}

@media (max-width: 880px) {
  .atlas-row {
    grid-template-columns: 1fr;
  }
}

.atlas-map-wrap,
.atlas-detail {
  padding: 24px 28px;
}

@media (max-width: 880px) {
  .atlas-map-wrap,
  .atlas-detail {
    padding: 22px 22px;
  }
}

/* ===== Leaflet Map ===== */
#atlas-map {
  width: 100%;
  height: 480px;
  background: #0d1f3a;
  border-radius: 12px;
  border: 1px solid rgba(122, 200, 255, 0.2);
  overflow: hidden;
}

@media (max-width: 880px) {
  #atlas-map {
    height: 360px;
  }
}

.leaflet-container {
  background: #0d1f3a !important;
  font-family: inherit;
}

/* Custom shop markers */
.pg-shop-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(122, 200, 255, 0.2);
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.pg-shop-marker:hover {
  transform: scale(1.15);
  z-index: 1000 !important;
}

.pg-shop-marker.selected {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(122, 200, 255, 0.5);
  transform: scale(1.2);
}

.pg-shop-marker.manner {
  background: linear-gradient(135deg, #d4a574, #c99460);
}

.pg-shop-marker.tims {
  background: linear-gradient(135deg, #c8102e, #a00d24);
}

.pg-shop-marker.starbucks {
  background: linear-gradient(135deg, #006241, #004d33);
}

.pg-shop-marker.pop-mode {
  filter: hue-rotate(180deg) saturate(1.3);
}

.pg-shop-marker.human-unvisited {
  opacity: 0.6;
  filter: grayscale(0.6);
}

/* District polygon popup */
.pg-district-popup .leaflet-popup-content-wrapper {
  background: rgba(13, 31, 58, 0.95);
  backdrop-filter: blur(8px);
  color: #e8f4ff;
  border: 1px solid rgba(122, 200, 255, 0.3);
  border-radius: 10px;
}

.pg-district-popup .leaflet-popup-tip {
  background: rgba(13, 31, 58, 0.95);
  border: 1px solid rgba(122, 200, 255, 0.3);
}

.pg-district-popup .leaflet-popup-content {
  margin: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #7ac8ff;
}

/* Map tile attribution (minimal) */
.leaflet-control-attribution {
  background: rgba(13, 31, 58, 0.8) !important;
  color: rgba(122, 200, 255, 0.5) !important;
  font-size: 10px !important;
  border-radius: 4px 0 0 0;
}

.leaflet-control-attribution a {
  color: rgba(122, 200, 255, 0.7) !important;
}

/* Pulse animation for markers */
@keyframes marker-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 0 4px rgba(122,200,255,0.2); }
  50% { box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 0 8px rgba(122,200,255,0.1); }
}

.pg-shop-marker.pulse {
  animation: marker-pulse 2.4s ease-in-out infinite;
}

/* ===== Map (old SVG - keep for reference but now replaced by Leaflet) ===== */
.atlas-map {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #061021 0%, #0d1f3a 60%, #162847 100%);
  border-radius: 12px;
  border: 1px solid rgba(122, 200, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.atlas-map svg {
  width: 100%;
  height: 100%;
  display: block;
}

.atlas-map .grid-bg {
  stroke: rgba(122, 200, 255, 0.08);
  stroke-width: 0.5;
}

.atlas-map .district-shape {
  fill: rgba(122, 200, 255, 0.08);
  stroke: rgba(122, 200, 255, 0.35);
  stroke-width: 1.2;
  transition: fill 0.2s;
}

.atlas-map .district-shape.unlocked {
  fill: rgba(122, 200, 255, 0.16);
  stroke: rgba(122, 200, 255, 0.7);
}

.atlas-map .district-shape:hover.unlocked {
  fill: rgba(122, 200, 255, 0.22);
}

.atlas-map .district-label {
  fill: rgba(232, 244, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-anchor: middle;
  pointer-events: none;
}

.atlas-map .district-label-sub {
  fill: rgba(232, 244, 255, 0.45);
  font-size: 9px;
  text-anchor: middle;
  pointer-events: none;
}

.atlas-map .district-shape.locked {
  fill: rgba(255, 255, 255, 0.03);
  stroke: rgba(255, 255, 255, 0.12);
  stroke-dasharray: 4 4;
}

.atlas-map .shop-marker {
  cursor: pointer;
  transition: transform 0.18s ease;
  transform-origin: center;
  transform-box: fill-box;
}

.atlas-map .shop-marker:hover {
  transform: scale(1.18);
}

.atlas-map .shop-marker.selected circle.outer {
  filter: drop-shadow(0 0 8px currentColor);
}

.atlas-map .shop-marker .outer {
  fill: currentColor;
  opacity: 0.32;
  animation: pulse 2.4s ease-in-out infinite;
}

.atlas-map .shop-marker .inner {
  fill: currentColor;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.32; }
  50% { transform: scale(1.4); opacity: 0.18; }
}

.atlas-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  font-size: 12px;
  color: rgba(13, 31, 58, 0.7);
}

.atlas-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
}

.atlas-legend .dot.pop { background: #7ac8ff; }
.atlas-legend .dot.you { background: #ff9ed8; }
.atlas-legend .dot.unvisited { background: rgba(13, 31, 58, 0.2); }

/* ===== Detail ===== */
.atlas-detail {
  background: linear-gradient(180deg, rgba(122, 200, 255, 0.05), transparent);
  border-left: 1px solid rgba(13, 31, 58, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 880px) {
  .atlas-detail {
    border-left: none;
    border-top: 1px solid rgba(13, 31, 58, 0.08);
  }
}

.atlas-detail-empty {
  color: rgba(13, 31, 58, 0.5);
  font-size: 14px;
  padding: 40px 0;
  text-align: center;
}

.atlas-shop-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.atlas-shop-emoji {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  background: rgba(122, 200, 255, 0.12);
}

.atlas-shop-name {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: #0d1f3a;
}

.atlas-shop-tag {
  font-size: 12px;
  color: rgba(13, 31, 58, 0.55);
  margin: 2px 0 0;
}

.atlas-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.atlas-detail-cell {
  background: rgba(13, 31, 58, 0.04);
  border: 1px solid rgba(13, 31, 58, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
}

.atlas-detail-cell.full {
  grid-column: 1 / -1;
}

.atlas-detail-cell-label {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: rgba(13, 31, 58, 0.5);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
}

.atlas-detail-cell-val {
  font-size: 13px;
  color: #0d1f3a;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.atlas-detail-cell-val.k1 {
  color: #0d3b66;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.atlas-detail-actions {
  margin-top: 6px;
}

.atlas-action-btn {
  display: block;
  width: 100%;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #7ac8ff, #5aa6ff);
  color: #061021;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 6px 20px -8px rgba(122, 200, 255, 0.5);
}

.atlas-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(122, 200, 255, 0.7);
}

.atlas-action-btn.done {
  background: rgba(13, 31, 58, 0.06);
  color: rgba(13, 31, 58, 0.55);
  cursor: default;
  box-shadow: none;
}

.atlas-action-note {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(13, 31, 58, 0.45);
  line-height: 1.5;
}

/* ===== Log ===== */
.atlas-log-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.atlas-log-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(13, 31, 58, 0.025);
  border: 1px solid rgba(13, 31, 58, 0.06);
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.atlas-log-row:hover {
  background: rgba(122, 200, 255, 0.08);
  border-color: rgba(122, 200, 255, 0.32);
}

.atlas-log-row.selected {
  background: rgba(122, 200, 255, 0.16);
  border-color: rgba(122, 200, 255, 0.55);
}

.atlas-log-date {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #0d3b66;
  font-size: 12px;
}

.atlas-log-shop {
  color: #0d1f3a;
  font-weight: 600;
}

.atlas-log-detail {
  color: rgba(13, 31, 58, 0.55);
  font-size: 12px;
  margin-left: 8px;
  font-weight: 400;
}

.atlas-log-cups {
  font-size: 12px;
  font-weight: 700;
  color: #ff9ed8;
  font-variant-numeric: tabular-nums;
}

.atlas-log-empty {
  text-align: center;
  padding: 32px 0;
  color: rgba(13, 31, 58, 0.45);
  font-size: 13px;
}

/* ===== KPIs ===== */
.atlas-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 720px) {
  .atlas-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.atlas-kpi {
  background: linear-gradient(180deg, rgba(122, 200, 255, 0.07), transparent);
  border: 1px solid rgba(13, 31, 58, 0.06);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.atlas-kpi-val {
  font-size: 32px;
  font-weight: 700;
  color: #0d3b66;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.atlas-kpi-label {
  font-size: 11px;
  color: rgba(13, 31, 58, 0.55);
  letter-spacing: 0.6px;
  margin-top: 6px;
}

/* ===== CTA ===== */
.atlas-cta {
  background: linear-gradient(135deg, #0d1f3a 0%, #162847 100%);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  color: #e8f4ff;
}

.atlas-cta h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #ffffff;
}

.atlas-cta p {
  margin: 0 0 18px;
  color: rgba(232, 244, 255, 0.7);
  font-size: 14px;
}

.atlas-cta .btn.ghost {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid rgba(122, 200, 255, 0.5);
  border-radius: 100px;
  color: #7ac8ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s;
}

.atlas-cta .btn.ghost:hover {
  background: rgba(122, 200, 255, 0.12);
  border-color: rgba(122, 200, 255, 0.8);
}

/* ===== Mystery Mini-Game ===== */
.atlas-mystery {
  background: linear-gradient(160deg, #fff8ec 0%, #ffffff 60%, #f4ecff 100%);
  border: 1px solid rgba(255, 179, 71, 0.28);
  position: relative;
  overflow: hidden;
}

.atlas-mystery::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.mystery-tag {
  background: linear-gradient(120deg, rgba(255, 107, 53, 0.18), rgba(255, 158, 216, 0.18)) !important;
  color: #c0440f !important;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.atlas-mystery-wallet {
  text-align: right;
  padding: 8px 14px;
  background: rgba(13, 31, 58, 0.04);
  border: 1px solid rgba(13, 31, 58, 0.08);
  border-radius: 10px;
}

.atlas-mystery-wallet-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: rgba(13, 31, 58, 0.5);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
}

.atlas-mystery-wallet-val {
  font-size: 22px;
  font-weight: 700;
  color: #0d3b66;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.atlas-mystery-wallet-val .kb-unit {
  font-size: 11px;
  font-weight: 600;
  color: rgba(13, 31, 58, 0.55);
  margin-left: 2px;
}

.atlas-mystery-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.atlas-mystery-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(13, 31, 58, 0.1);
  border-radius: 100px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: rgba(13, 31, 58, 0.65);
  cursor: pointer;
  transition: all 0.15s;
}

.atlas-mystery-tab:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(13, 31, 58, 0.2);
  color: #0d1f3a;
}

.atlas-mystery-tab.active {
  background: linear-gradient(135deg, #0d1f3a 0%, #162847 100%);
  border-color: #0d1f3a;
  color: #ffffff;
}

.atlas-mystery-tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.atlas-mystery-tab.done {
  opacity: 0.6;
}

.atlas-mystery-tab.done .atlas-mystery-tab-dot {
  background: #4caf50;
  opacity: 1;
}

.atlas-mystery-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  padding: 18px 0 8px;
}

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

.atlas-mystery-clues {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 179, 71, 0.4);
  border-radius: 14px;
  padding: 18px;
}

.atlas-mystery-clues-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #c0440f;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.atlas-mystery-shop-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #0d1f3a;
  background: rgba(13, 31, 58, 0.06);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.atlas-mystery-clues-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.atlas-mystery-clue {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 179, 71, 0.1);
  border-radius: 10px;
  font-size: 13px;
  color: #0d1f3a;
}

.atlas-mystery-clue-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffb347, #ff6b35);
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  flex-shrink: 0;
}

.atlas-mystery-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.atlas-mystery-options-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(13, 31, 58, 0.5);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.atlas-mystery-option {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(13, 31, 58, 0.1);
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #0d1f3a;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.atlas-mystery-option:hover:not(:disabled) {
  background: #ffffff;
  border-color: #0d3b66;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(13, 31, 58, 0.25);
}

.atlas-mystery-option.selected {
  border-color: #0d3b66;
  background: linear-gradient(135deg, rgba(13, 59, 102, 0.08), rgba(122, 200, 255, 0.08));
}

.atlas-mystery-option.correct {
  border-color: #4caf50;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
  color: #2e7d32;
}

.atlas-mystery-option.wrong {
  border-color: #d32f2f;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.12), rgba(211, 47, 47, 0.04));
  color: #c62828;
}

.atlas-mystery-option:disabled {
  cursor: default;
}

.atlas-mystery-option-letter {
  width: 28px;
  height: 28px;
  background: rgba(13, 31, 58, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(13, 31, 58, 0.6);
  flex-shrink: 0;
}

.atlas-mystery-option.correct .atlas-mystery-option-letter {
  background: #4caf50;
  color: #ffffff;
}

.atlas-mystery-option.wrong .atlas-mystery-option-letter {
  background: #d32f2f;
  color: #ffffff;
}

.atlas-mystery-option-text {
  flex: 1;
}

.atlas-mystery-result {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.atlas-mystery-result.win {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(123, 241, 196, 0.1));
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #2e7d32;
}

.atlas-mystery-result.lose {
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.12), rgba(255, 107, 53, 0.06));
  border: 1px solid rgba(211, 47, 47, 0.35);
  color: #c62828;
}

.atlas-mystery-result-kb {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
}

.atlas-mystery-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(13, 31, 58, 0.1);
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.atlas-mystery-stats {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: rgba(13, 31, 58, 0.6);
}

.atlas-mystery-stat {
  font-weight: 600;
}

.atlas-mystery-stat span:first-child {
  color: #0d3b66;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-right: 2px;
}

.atlas-mystery-stat-sep {
  color: rgba(13, 31, 58, 0.25);
}

.atlas-mystery-dailynote {
  font-size: 11px;
  color: rgba(13, 31, 58, 0.45);
  letter-spacing: 0.3px;
}

@keyframes kb-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); color: #2e7d32; }
  100% { transform: scale(1); }
}

.atlas-mystery-wallet-val.pop {
  animation: kb-pop 0.5s ease;
}
