.dragon-vault-v2-page {
  --vault-v2-panel: rgba(15, 23, 42, 0.88);
  --vault-v2-panel-soft: rgba(30, 41, 59, 0.82);
  --vault-v2-border: rgba(251, 191, 36, 0.25);
  --vault-v2-muted: #cbd5e1;
  --vault-v2-danger: #fecdd3;
}

.vault-v2-main {
  padding-bottom: 3rem;
}

.vault-v2-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.65fr);
  gap: 1rem;
  align-items: center;
}

.vault-v2-intro-copy,
.vault-v2-section-heading > div,
.vault-v2-card-body,
.vault-v2-card-name-row,
.vault-v2-card-name-row > div {
  min-width: 0;
}

.vault-v2-intro-copy > p:not(.home-eyebrow) {
  max-width: 68ch;
}

.vault-v2-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.vault-v2-warning {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: 16px;
  color: #fef3c7;
  background: linear-gradient(145deg, rgba(120, 53, 15, 0.74), rgba(69, 26, 3, 0.82));
  box-shadow: inset 0 0 28px rgba(251, 191, 36, 0.07);
}

.vault-v2-warning strong {
  color: #fde68a;
}

.vault-v2-journey {
  margin-block: 1rem;
}

.vault-v2-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.vault-v2-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.7rem;
  align-items: center;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--vault-v2-border);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--vault-v2-panel), var(--vault-v2-panel-soft));
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.2);
}

.vault-v2-summary-card dt {
  min-width: 0;
  color: var(--vault-v2-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.vault-v2-summary-card dd {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: #fde68a;
  font-size: clamp(1.45rem, 4vw, 2.15rem);
  font-weight: 900;
  line-height: 1;
}

.vault-v2-daily {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(180px, auto);
  gap: 1rem;
  align-items: center;
  border-color: rgba(251, 191, 36, 0.38);
  background:
    radial-gradient(circle at 8% 12%, rgba(251, 191, 36, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.95));
}

.vault-v2-daily[hidden],
.vault-v2-treasures[hidden],
.vault-v2-daily-actions > [hidden] {
  display: none;
}

.vault-v2-daily-icon {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border: 1px solid rgba(253, 230, 138, 0.48);
  border-radius: 50%;
  background: rgba(120, 53, 15, 0.34);
  font-size: 1.8rem;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.2);
}

.vault-v2-daily-copy {
  min-width: 0;
}

.vault-v2-daily-copy h2 {
  margin: 0.1rem 0 0.25rem;
  color: var(--gold-bright);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.vault-v2-daily-copy p {
  overflow-wrap: anywhere;
}

.vault-v2-daily-name {
  margin: 0 0 0.18rem;
  color: #f8fafc;
  font-weight: 900;
}

#vault-v2-daily-description {
  margin: 0;
  color: var(--vault-v2-muted);
}

.vault-v2-daily-note {
  margin: 0.38rem 0 0;
  color: #a5b4fc;
  font-size: 0.8rem;
}

.vault-v2-daily-actions {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.vault-v2-daily-complete {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(74, 222, 128, 0.52);
  border-radius: 999px;
  color: #dcfce7;
  background: rgba(21, 128, 61, 0.26);
  font-weight: 900;
  text-align: center;
}

.vault-v2-section {
  margin-top: 1rem;
}

.vault-v2-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.vault-v2-section-heading h2 {
  margin: 0.15rem 0 0.35rem;
  color: var(--gold-bright);
}

.vault-v2-section-heading p:last-child {
  margin-bottom: 0;
  color: var(--vault-v2-muted);
}

.vault-v2-count-label {
  flex: 0 0 auto;
  padding: 0.45rem 0.72rem;
  border: 1px solid var(--vault-v2-border);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.35);
  font-weight: 800;
}

.vault-v2-status {
  min-height: 2.9rem;
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(96, 165, 250, 0.38);
  border-radius: 12px;
  color: #dbeafe;
  background: rgba(30, 64, 175, 0.2);
}

.vault-v2-status[hidden] {
  display: none;
}

.vault-v2-status[data-tone="success"] {
  border-color: rgba(74, 222, 128, 0.42);
  color: #dcfce7;
  background: rgba(21, 128, 61, 0.22);
}

.vault-v2-status[data-tone="warning"] {
  border-color: rgba(251, 191, 36, 0.48);
  color: #fef3c7;
  background: rgba(146, 64, 14, 0.24);
}

.vault-v2-error {
  border-color: rgba(251, 113, 133, 0.52);
  color: #ffe4e6;
  background: rgba(159, 18, 57, 0.25);
}

.vault-v2-error[hidden] {
  display: none;
}

.vault-v2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 1rem;
}

.vault-v2-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.98));
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.28);
  content-visibility: auto;
  contain-intrinsic-size: auto 660px;
}

.vault-v2-card.is-favourite {
  border-color: rgba(251, 191, 36, 0.68);
  box-shadow: 0 18px 42px rgba(120, 53, 15, 0.24), inset 0 0 0 1px rgba(253, 230, 138, 0.12);
}

.vault-v2-card[data-requested="true"] {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

.vault-v2-art-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 72%, rgba(251, 191, 36, 0.13), transparent 35%),
    linear-gradient(160deg, #111827, #1e1b4b);
}

.vault-v2-art-frame::before {
  content: "🐉";
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(253, 230, 138, 0.18);
  font-size: clamp(2.5rem, 12vw, 4.5rem);
}

.vault-v2-art-frame > .dragon-composite,
.vault-v2-fallback {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vault-v2-art-frame > .dragon-composite {
  border-radius: 0;
}

.vault-v2-fallback {
  object-fit: contain;
  filter: drop-shadow(0 12px 10px rgba(0, 0, 0, 0.46));
}

.vault-v2-fallback[hidden],
.vault-v2-art-frame > .dragon-composite[hidden] {
  display: none;
}

.vault-v2-favourite-mark {
  position: absolute;
  z-index: 8;
  top: 0.7rem;
  right: 0.7rem;
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  padding: 0.34rem 0.58rem;
  border: 1px solid rgba(253, 230, 138, 0.7);
  border-radius: 999px;
  color: #451a03;
  background: #fde68a;
  box-shadow: 0 6px 16px rgba(69, 26, 3, 0.32);
  font-size: 0.78rem;
  font-weight: 900;
}

.vault-v2-favourite-mark[hidden] {
  display: none;
}

.vault-v2-artwork-status {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0.55rem 0.8rem;
  color: #fef3c7;
  background: #78350f;
  font-size: 0.82rem;
}

.vault-v2-artwork-status[hidden] {
  display: none;
}

.vault-v2-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem;
}

.vault-v2-card-name-row {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: flex-start;
}

.vault-v2-card-name-row h3 {
  overflow-wrap: anywhere;
  margin: 0;
  color: #f8fafc;
  font-size: 1.25rem;
}

.vault-v2-title-badge {
  margin: 0.18rem 0 0;
  color: #fde68a;
  font-size: 0.84rem;
  font-weight: 800;
}

.vault-v2-title-badge[hidden] {
  display: none;
}

.vault-v2-element-chip {
  flex: 0 0 auto;
  max-width: 42%;
  overflow-wrap: anywhere;
  padding: 0.34rem 0.52rem;
  border: 1px solid rgba(147, 197, 253, 0.36);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(30, 64, 175, 0.26);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.vault-v2-description {
  margin: 0;
  color: var(--vault-v2-muted);
  overflow-wrap: anywhere;
}

.vault-v2-record-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.vault-v2-record-stat {
  display: grid;
  gap: 0.08rem;
  padding: 0.55rem 0.35rem;
  border-radius: 10px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  font-size: 0.72rem;
  text-align: center;
}

.vault-v2-record-stat strong {
  color: #f8fafc;
  font-size: 1rem;
}

.vault-v2-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.vault-v2-trait {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0.28rem 0.46rem;
  border-radius: 8px;
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.72);
  font-size: 0.74rem;
}

.vault-v2-title-control {
  display: grid;
  gap: 0.35rem;
  margin-top: auto;
  color: #e2e8f0;
  font-weight: 800;
}

.vault-v2-title-control select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.58rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 10px;
  color: #f8fafc;
  background: #0f172a;
  font: inherit;
}

.vault-v2-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.vault-v2-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 10px;
  color: #f8fafc;
  background: #334155;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.vault-v2-action:hover,
.vault-v2-action:focus-visible {
  border-color: #fbbf24;
  color: #451a03;
  background: #fde68a;
}

.vault-v2-favourite-button[aria-pressed="true"] {
  border-color: #fbbf24;
  color: #451a03;
  background: #fde68a;
}

.vault-v2-favourite-button {
  grid-column: 1 / -1;
}

.vault-v2-release-button {
  grid-column: 1 / -1;
  border-color: rgba(251, 113, 133, 0.44);
  color: var(--vault-v2-danger);
  background: rgba(159, 18, 57, 0.34);
}

.vault-v2-action:disabled,
.vault-v2-title-control select:disabled {
  cursor: not-allowed;
  opacity: 1;
  color: #94a3b8;
  background: #1e293b;
}

.vault-v2-action:focus-visible,
.vault-v2-title-control select:focus-visible,
.vault-v2-card-name-row h3:focus-visible,
.vault-v2-section-heading h2:focus-visible,
.vault-v2-daily-copy h2:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

.vault-v2-empty,
.vault-v2-records-empty {
  padding: 1.2rem;
  border: 1px dashed rgba(251, 191, 36, 0.38);
  border-radius: 16px;
  color: var(--vault-v2-muted);
  background: rgba(15, 23, 42, 0.48);
  text-align: center;
}

.vault-v2-empty[hidden],
.vault-v2-records-empty[hidden] {
  display: none;
}

.vault-v2-empty[data-state="protected"] .nav-btn,
.vault-v2-empty[data-state="error"] .nav-btn,
.vault-v2-empty .nav-btn[hidden] {
  display: none;
}

.vault-v2-empty h3 {
  color: #f8fafc;
}

.vault-v2-empty-egg {
  display: block;
  font-size: 3rem;
}

.vault-v2-records {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vault-v2-records[hidden] {
  display: none;
}

.vault-v2-record {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.64);
}

.vault-v2-record-result {
  min-width: 4.8rem;
  padding: 0.32rem 0.48rem;
  border-radius: 999px;
  color: #f8fafc;
  background: #475569;
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
}

.vault-v2-record.is-win .vault-v2-record-result {
  color: #052e16;
  background: #86efac;
}

.vault-v2-record.is-loss .vault-v2-record-result {
  color: #4c0519;
  background: #fda4af;
}

.vault-v2-record-copy {
  min-width: 0;
}

.vault-v2-record-copy strong,
.vault-v2-record-copy span {
  display: block;
  overflow-wrap: anywhere;
}

.vault-v2-record-copy strong {
  color: #f8fafc;
}

.vault-v2-record-copy span,
.vault-v2-record time {
  color: var(--vault-v2-muted);
  font-size: 0.8rem;
}

.vault-v2-heading-link {
  color: #fde68a;
  font-weight: 800;
}

.vault-v2-treasures-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.vault-v2-treasure-details {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.58);
}

.vault-v2-treasure-details summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  min-height: 52px;
  padding: 0.7rem 0.8rem;
  color: #f8fafc;
  list-style: none;
  cursor: pointer;
}

.vault-v2-treasure-details summary::-webkit-details-marker {
  display: none;
}

.vault-v2-treasure-details summary::before {
  content: "▸";
  color: #fbbf24;
  font-weight: 900;
}

.vault-v2-treasure-details[open] summary::before {
  content: "▾";
}

.vault-v2-treasure-details[open] summary {
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.vault-v2-treasure-details summary > span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.vault-v2-treasure-details summary > strong {
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.38);
  font-size: 0.76rem;
  white-space: nowrap;
}

.vault-v2-treasure-details summary:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: -3px;
}

.vault-v2-treasure-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0.75rem;
  list-style: none;
}

.vault-v2-treasure-item {
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.7);
}

.vault-v2-badge-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

.vault-v2-treasure-item.is-locked {
  border-style: dashed;
}

.vault-v2-treasure-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(51, 65, 85, 0.82);
  font-size: 1.35rem;
}

.vault-v2-treasure-copy {
  min-width: 0;
}

.vault-v2-treasure-copy strong,
.vault-v2-treasure-copy p {
  overflow-wrap: anywhere;
}

.vault-v2-treasure-copy strong {
  display: block;
  color: #f8fafc;
}

.vault-v2-treasure-copy p {
  margin: 0.3rem 0 0;
  color: var(--vault-v2-muted);
  font-size: 0.84rem;
}

.vault-v2-treasure-state {
  display: inline-block;
  margin-top: 0.18rem;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vault-v2-treasure-item.is-earned .vault-v2-treasure-state,
.vault-v2-treasure-item.is-discovered .vault-v2-treasure-state {
  color: #86efac;
}

.vault-v2-lore-item.is-discovered {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(76, 29, 149, 0.2);
}

.vault-v2-dialog {
  width: min(520px, calc(100% - 2rem));
  padding: 0;
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: 18px;
  color: #e2e8f0;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

.vault-v2-dialog::backdrop {
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(5px);
}

.vault-v2-dialog form {
  padding: 1.2rem;
}

.vault-v2-dialog h2 {
  color: #f8fafc;
}

.vault-v2-dialog-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.vault-v2-danger-button {
  border-color: #fb7185;
  color: #fff1f2;
  background: #9f1239;
}

body.light-mode .vault-v2-warning,
body.duck-mode .vault-v2-warning {
  color: #78350f;
  background: #fff7ed;
}

body.light-mode .vault-v2-warning strong,
body.duck-mode .vault-v2-warning strong,
body.light-mode .vault-v2-section-heading h2,
body.duck-mode .vault-v2-section-heading h2,
body.light-mode .vault-v2-daily-copy h2,
body.duck-mode .vault-v2-daily-copy h2,
body.light-mode .vault-v2-heading-link,
body.duck-mode .vault-v2-heading-link {
  color: #92400e;
}

body.light-mode .vault-v2-summary-card,
body.duck-mode .vault-v2-summary-card,
body.light-mode .vault-v2-card,
body.duck-mode .vault-v2-card,
body.light-mode .vault-v2-daily,
body.duck-mode .vault-v2-daily {
  border-color: #d6c8b4;
  background: linear-gradient(160deg, #fffaf0, #f4eadc);
  box-shadow: 0 14px 30px rgba(76, 29, 3, 0.12);
}

body.light-mode .vault-v2-summary-card dt,
body.duck-mode .vault-v2-summary-card dt,
body.light-mode .vault-v2-description,
body.duck-mode .vault-v2-description,
body.light-mode .vault-v2-section-heading p:last-child,
body.duck-mode .vault-v2-section-heading p:last-child,
body.light-mode #vault-v2-daily-description,
body.duck-mode #vault-v2-daily-description,
body.light-mode .vault-v2-treasure-copy p,
body.duck-mode .vault-v2-treasure-copy p,
body.light-mode .vault-v2-record-copy span,
body.duck-mode .vault-v2-record-copy span,
body.light-mode .vault-v2-record time,
body.duck-mode .vault-v2-record time {
  color: #4b5563;
}

body.light-mode .vault-v2-summary-card dd,
body.duck-mode .vault-v2-summary-card dd,
body.light-mode .vault-v2-count-label,
body.duck-mode .vault-v2-count-label,
body.light-mode .vault-v2-card-name-row h3,
body.duck-mode .vault-v2-card-name-row h3,
body.light-mode .vault-v2-record-copy strong,
body.duck-mode .vault-v2-record-copy strong,
body.light-mode .vault-v2-daily-name,
body.duck-mode .vault-v2-daily-name,
body.light-mode .vault-v2-treasure-details summary,
body.duck-mode .vault-v2-treasure-details summary,
body.light-mode .vault-v2-treasure-copy strong,
body.duck-mode .vault-v2-treasure-copy strong {
  color: #2a1e0a;
}

body.light-mode .vault-v2-count-label,
body.duck-mode .vault-v2-count-label {
  border-color: #b45309;
  background: #fef3c7;
}

body.light-mode .vault-v2-title-badge,
body.duck-mode .vault-v2-title-badge {
  color: #92400e;
}

body.light-mode .vault-v2-daily-icon,
body.duck-mode .vault-v2-daily-icon {
  border-color: #b45309;
  background: #fef3c7;
}

body.light-mode .vault-v2-daily-note,
body.duck-mode .vault-v2-daily-note {
  color: #3730a3;
}

body.light-mode .vault-v2-daily-complete,
body.duck-mode .vault-v2-daily-complete {
  border-color: #15803d;
  color: #166534;
  background: #dcfce7;
}

body.light-mode .vault-v2-status,
body.duck-mode .vault-v2-status {
  color: #1e3a8a;
  background: #eff6ff;
}

body.light-mode .vault-v2-status[data-tone="success"],
body.duck-mode .vault-v2-status[data-tone="success"] {
  color: #166534;
  background: #f0fdf4;
}

body.light-mode .vault-v2-status[data-tone="warning"],
body.duck-mode .vault-v2-status[data-tone="warning"] {
  color: #92400e;
  background: #fffbeb;
}

body.light-mode .vault-v2-error,
body.duck-mode .vault-v2-error {
  color: #9f1239;
  background: #fff1f2;
}

body.light-mode .vault-v2-element-chip,
body.duck-mode .vault-v2-element-chip {
  color: #1e3a8a;
  background: #dbeafe;
}

body.light-mode .vault-v2-description,
body.duck-mode .vault-v2-description,
body.light-mode .vault-v2-title-control,
body.duck-mode .vault-v2-title-control {
  color: #374151;
}

body.light-mode .vault-v2-record-stat,
body.duck-mode .vault-v2-record-stat,
body.light-mode .vault-v2-record,
body.duck-mode .vault-v2-record,
body.light-mode .vault-v2-treasure-details,
body.duck-mode .vault-v2-treasure-details,
body.light-mode .vault-v2-treasure-item,
body.duck-mode .vault-v2-treasure-item {
  color: #374151;
  background: rgba(255, 255, 255, 0.72);
}

body.light-mode .vault-v2-treasure-details,
body.duck-mode .vault-v2-treasure-details {
  border-color: #d6c8b4;
}

body.light-mode .vault-v2-treasure-details summary > strong,
body.duck-mode .vault-v2-treasure-details summary > strong {
  color: #78350f;
  background: #fef3c7;
}

body.light-mode .vault-v2-treasure-icon,
body.duck-mode .vault-v2-treasure-icon {
  background: #e5e7eb;
}

body.light-mode .vault-v2-treasure-state,
body.duck-mode .vault-v2-treasure-state {
  color: #475569;
}

body.light-mode .vault-v2-treasure-item.is-earned .vault-v2-treasure-state,
body.duck-mode .vault-v2-treasure-item.is-earned .vault-v2-treasure-state,
body.light-mode .vault-v2-treasure-item.is-discovered .vault-v2-treasure-state,
body.duck-mode .vault-v2-treasure-item.is-discovered .vault-v2-treasure-state {
  color: #166534;
}

body.light-mode .vault-v2-lore-item.is-discovered,
body.duck-mode .vault-v2-lore-item.is-discovered {
  border-color: #7c3aed;
  background: #f5f3ff;
}

body.light-mode .vault-v2-empty,
body.duck-mode .vault-v2-empty,
body.light-mode .vault-v2-records-empty,
body.duck-mode .vault-v2-records-empty {
  border-color: #b45309;
  color: #4b5563;
  background: #fffaf0;
}

body.light-mode .vault-v2-empty h3,
body.duck-mode .vault-v2-empty h3 {
  color: #2a1e0a;
}

body.light-mode .vault-v2-record-stat strong,
body.duck-mode .vault-v2-record-stat strong {
  color: #111827;
}

body.light-mode .vault-v2-trait,
body.duck-mode .vault-v2-trait {
  color: #374151;
  background: #e5e7eb;
}

body.light-mode .vault-v2-title-control select,
body.duck-mode .vault-v2-title-control select {
  color: #111827;
  background: #fff;
}

body.light-mode .vault-v2-action,
body.duck-mode .vault-v2-action {
  color: #1f2937;
  background: #fff;
}

body.light-mode .vault-v2-release-button,
body.duck-mode .vault-v2-release-button {
  color: #9f1239;
  background: #fff1f2;
}

body.light-mode .vault-v2-action:disabled,
body.duck-mode .vault-v2-action:disabled,
body.light-mode .vault-v2-title-control select:disabled,
body.duck-mode .vault-v2-title-control select:disabled {
  color: #475569;
  background: #e2e8f0;
}

body.light-mode .vault-v2-dialog,
body.duck-mode .vault-v2-dialog {
  color: #374151;
  background: #fffaf0;
}

body.light-mode .vault-v2-dialog h2,
body.duck-mode .vault-v2-dialog h2 {
  color: #2a1e0a;
}

body.light-mode .vault-v2-dialog .vault-v2-danger-button,
body.duck-mode .vault-v2-dialog .vault-v2-danger-button {
  border-color: #be123c;
  color: #fff1f2;
  background: #9f1239;
}

@media (max-width: 980px) {
  .vault-v2-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .vault-v2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .vault-v2-daily {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .vault-v2-daily-actions {
    grid-column: 1 / -1;
  }

  .vault-v2-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vault-v2-record {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .vault-v2-record time {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .vault-v2-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vault-v2-summary-card {
    padding: 0.72rem;
  }

  .vault-v2-section-heading {
    flex-direction: column;
  }

  .vault-v2-treasures-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vault-v2-treasure-details summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .vault-v2-treasure-details summary > strong {
    grid-column: 2;
    justify-self: start;
  }

  .vault-v2-daily-actions .vault-v2-action {
    width: 100%;
  }

  .vault-v2-hero-actions,
  .vault-v2-hero-actions .nav-btn {
    width: 100%;
  }

  .vault-v2-dialog-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .vault-v2-dialog-actions .maker-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vault-v2-card,
  .vault-v2-action {
    transition: none;
  }
}
