:root {
  --bg: rgba(244, 239, 229, 0.74);
  --surface: rgba(255, 253, 248, 0.8);
  --surface2: rgba(242, 234, 220, 0.76);
  --ink: #1e2b38;
  --muted: #6b747b;
  --line: #e4d9c7;
  --blue: #24384b;
  --blue2: #eee3cf;
  --gold: #b48940;
  --green: #137b59;
  --red: #b8474f;
  --shadow: 0 12px 36px #30271912;
  color-scheme: light;
}

body.dark {
  --bg: rgba(17, 25, 35, 0.78);
  --surface: rgba(27, 38, 48, 0.84);
  --surface2: rgba(36, 49, 60, 0.8);
  --ink: #f5f0e6;
  --muted: #adb4b5;
  --line: #39434b;
  --blue: #d8b363;
  --blue2: #383322;
  --gold: #dfbd72;
  --green: #69d2a8;
  --red: #f0949a;
  --shadow: 0 12px 36px #0005;
  color-scheme: dark;
}

.app-shell {
  --bg: rgba(244, 239, 229, 0.48);
  --surface: rgba(255, 253, 248, 0.58);
  --surface2: rgba(242, 234, 220, 0.52);
}

.dark .app-shell {
  --bg: rgba(17, 25, 35, 0.58);
  --surface: rgba(27, 38, 48, 0.68);
  --surface2: rgba(36, 49, 60, 0.62);
}

.lock-screen {
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 14%, rgba(196, 150, 55, 0.2), transparent 42%),
    radial-gradient(ellipse at 50% 100%, rgba(119, 77, 20, 0.16), transparent 55%),
    #050607;
}

.lock-screen::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/pv-emblem-watermark.png") center / min(70vw, 500px) auto no-repeat;
  content: "";
  opacity: 0.22;
  filter: grayscale(0.7);
  pointer-events: none;
}

.lock-card {
  position: relative;
  z-index: 1;
  background: rgba(16, 25, 35, 0.4);
  border-color: rgba(221, 178, 82, 0.68);
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.72), 0 0 34px rgba(190, 140, 42, 0.12);
  backdrop-filter: blur(2px);
}

.collection-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.collection-block {
  min-width: 0;
  padding: 13px;
}

.collection-block h3 {
  margin-bottom: 8px;
  font-size: 13px;
}

.collection-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.collection-weight {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 0;
  background: transparent !important;
}

.collection-weight span,
.collection-financials span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.collection-weight strong {
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}

.collection-financials {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.collection-financials > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  background: transparent !important;
}

.collection-financials strong {
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.collection-financials .collection-gain strong {
  color: #188d68;
}

.collection-financials .collection-loss strong {
  color: #c65058;
}

.dark .collection-financials .collection-gain strong {
  color: #65d3ac;
}

.dark .collection-financials .collection-loss strong {
  color: #fa9298;
}

@media (max-width: 950px) {
  .collection-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .collection-overview-grid {
    grid-template-columns: 1fr;
  }

  .collection-block {
    padding: 12px;
  }

  .collection-weight strong {
    font-size: 23px;
  }

  .lock-screen::after {
    background-size: min(86vw, 400px);
  }
}
