.vault-section, .blueprint-section { margin-top: 38px; }

.vault-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.vault-kicker { font-family: var(--font-arcade); font-size: 10.5px; color: var(--gold); margin-bottom: 6px; }
.vault-title { font-size: clamp(20px, 2.5vw, 27px); font-weight: 700; letter-spacing: -0.02em; }

.vault-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.reward-card {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s;
}
.reward-card.unlocked { border-color: var(--ok); box-shadow: 0 12px 36px rgba(34, 197, 94, 0.15); }
.reward-card.highlight { box-shadow: 0 0 0 3px var(--gold), 0 18px 48px rgba(251, 191, 36, 0.24); }

.reward-banner {
  padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: var(--font-arcade); font-size: 10px;
}
.reward-hero-chip { display: inline-flex; align-items: center; gap: 8px; }
.reward-hero-chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }

.status-pill { padding: 4px 8px; border-radius: 4px; font-family: var(--font-arcade); font-size: 9px; }
.status-pill.locked { background: rgba(251, 191, 36, 0.14); color: var(--gold); }
.status-pill.open { background: rgba(34, 197, 94, 0.18); color: #4ade80; }

.reward-media {
  position: relative; aspect-ratio: 1 / 1; max-height: 330px;
  background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.reward-media img { width: 100%; height: 100%; object-fit: contain; transition: filter .25s, transform .25s; }
.reward-card.locked-mode .reward-media img { filter: blur(13px) brightness(0.62); transform: scale(1.04); }

.lock-shroud {
  position: absolute; inset: 0; background: rgba(9, 12, 20, 0.74);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px; gap: 10px; color: var(--ink);
}
.lock-shroud[hidden] { display: none !important; }
.lock-title { font-family: var(--font-arcade); font-size: 11.5px; color: var(--gold); line-height: 1.6; }

.reward-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.prod-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.prod-title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.prod-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.prod-price { font-family: var(--font-arcade); font-size: 13px; color: var(--gold); white-space: nowrap; }

.opt-label { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; display: flex; justify-content: space-between; }
.opt-label strong { color: var(--ink); }
.swatch-row { display: flex; flex-wrap: wrap; gap: 7px; }
.swatch {
  width: 27px; height: 27px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.24); transition: transform .12s, border-color .12s;
}
.swatch:hover { transform: scale(1.1); }
.swatch.active { border-color: var(--gold); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }

.size-row { display: flex; flex-wrap: wrap; gap: 7px; }
.size-btn {
  min-width: 45px; min-height: 36px; padding: 0 10px;
  border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.size-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.size-btn:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.btn-primary, .btn-express {
  min-height: 44px; padding: 10px 14px; border-radius: 9px;
  font-weight: 700; font-size: 13.5px; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
}
.btn-primary { background: var(--surface-3); border: 1px solid var(--border); color: var(--ink); }
.btn-primary:hover { border-color: var(--gold); background: #2c3858; }
.btn-express { background: var(--gold); color: #161103; }
.btn-express:hover { background: var(--gold-bright); }
.store-link { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.store-link:hover { color: var(--gold); }

/* Whiteboard Blueprint & Uploaded Cast Deck */
.blueprint-grid {
  display: grid; grid-template-columns: 1.05fr 1.25fr; gap: 20px; align-items: start;
}
.blueprint-card {
  background: var(--surface); border: 2px solid var(--border); border-radius: 16px; padding: 16px;
}
.blueprint-img-wrap {
  margin-top: 10px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border);
  background: #fff; cursor: zoom-in;
}
.blueprint-img-wrap img { width: 100%; max-height: 360px; object-fit: contain; display: block; }

.asset-cast-grid {
  margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.asset-tile {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.asset-thumb {
  aspect-ratio: 4 / 3; background: #f8fafc; border-radius: 7px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; cursor: zoom-in;
}
.asset-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.asset-role-select {
  width: 100%; background: var(--surface-3); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 6px; font-size: 11px; font-weight: 600; color: var(--gold);
}
.asset-meta { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Drawers & Lightbox */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 65; background: rgba(4, 6, 12, 0.76);
  display: flex; justify-content: flex-end;
}
.drawer-backdrop[hidden] { display: none !important; }
.drawer {
  width: min(440px, 100vw); height: 100%; background: var(--surface);
  border-left: 2px solid var(--border); display: flex; flex-direction: column;
}
.drawer-head, .drawer-foot {
  padding: 15px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.drawer-foot { border-bottom: none; border-top: 1px solid var(--border); margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.drawer-items { padding: 16px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.cart-line {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px;
}
.cart-line img { width: 62px; height: 62px; object-fit: contain; background: #fff; border-radius: 6px; }
.qty-box { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty-btn { width: 28px; height: 28px; border-radius: 5px; background: var(--surface-3); border: 1px solid var(--border); font-weight: 700; }

.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(5, 8, 15, 0.90);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; gap: 12px;
}
.lightbox[hidden] { display: none !important; }
.lightbox img { max-width: min(1080px, 94vw); max-height: 82vh; object-fit: contain; background: #fff; border-radius: 12px; border: 2px solid var(--gold); }

.toast {
  position: fixed; bottom: 20px; right: 20px; z-index: 95;
  background: var(--surface-2); border: 2px solid var(--gold); color: var(--ink);
  padding: 12px 16px; border-radius: 10px; font-size: 13px; font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}
.toast[hidden] { display: none !important; }

@media (max-width: 880px) {
  .vault-grid, .blueprint-grid { grid-template-columns: 1fr; }
  .asset-cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
