/* General Body Styling */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #1f1f2e;
  color: white;
  text-align: center;
  padding: 20px;
}

header h1 {
  color: #ffff;
  font-size: 2rem;
  text-shadow: 0 0 3px #ffff;
}

.treasury-header{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem;margin-bottom:1rem}
.treasury-header .mini-nav{display:flex;gap:.75rem;flex-wrap:wrap;justify-content:flex-end}
.treasury-header .meta-inline{display:flex;gap:.5rem;align-items:center}

/* Token Grid Layout */
.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.token-card {
  background: #2a2a3e;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(111, 0, 255, 0.4);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.token-card:hover {
  transform: scale(1.05);
}

.token-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.token-info {
  padding: 15px;
  background-color: #2b2b3f;
}

.token-name {
  font-size: 1.5rem;
  color: #ffc107;
  margin-bottom: 10px;
}

.token-description {
  font-size: 1rem;
  color: #b0b0b0;
}

/* Token Circle (for the collectible) */
.token-circle {
  position: absolute;
  right: -15px;
  bottom: -15px;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, #ff00e6, #ff0073);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 15px #ff00e6;
}

.token-img {
  width: 40px;
  height: 40px;
}

/* Layout */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  padding: 24px;
}

/* Card */
.scene-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0b0f1a;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform .2s ease, box-shadow .2s ease;
  isolation: isolate;
}
.scene-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

/* Background image */
.scene-bg {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(1.05);
}

/* Overlay with gradient bottom band (like the reference) */
.scene-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-areas:
    "spacer prompt"
    "token  cta";
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  padding: 14px;
  pointer-events: none; /* allows button only to receive events via override */
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.18) 70%, rgba(0,0,0,0.28) 85%, rgba(0,0,0,0.38) 100%),
    linear-gradient(45deg, rgba(167,65,245,0.0) 40%, rgba(167,65,245,0.22) 95%); /* subtle purple glow */
}

/* Token square + date */
.token-stack {
  grid-area: token;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: end;
}
.token-square {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.token-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.token-date {
  font: 600 12px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  color: #e8e8f0;
  opacity: 0.9;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(0,0,0,0.35);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
  min-width: 90px;
  max-width: 140px;
  pointer-events: auto; /* allow editing */
}
.token-date:focus {
  outline: 2px solid #A741F5; /* your purple */
  outline-offset: 1px;
  background: rgba(0,0,0,0.6);
}

/* Prompt (top-right) */
.prompt-template {
  grid-area: prompt;
  justify-self: end;
  align-self: start;
  max-width: 58%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,0.38);
  color: #f4f4fb;
  font: 500 12.5px/1.35 "Quicksand", system-ui, sans-serif;
  text-align: right;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
}

/* CTA button (bottom-right) */
.watch-btn {
  grid-area: cta;
  justify-self: end;
  align-self: end;
  pointer-events: auto; /* clickable */
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font: 700 13px/1 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  color: #fff;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(0,0,0,0.18)),
    linear-gradient(45deg, #f2b705, #A741F5);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.watch-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.watch-btn:active { transform: translateY(0); filter: brightness(0.98); }

/* Title badge */
.scene-title {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #fff;
  font: 700 14px/1.1 "Montserrat", system-ui, sans-serif;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.45);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset;
  backdrop-filter: blur(3px);
}

/* Modal (simple) */
.modal[aria-hidden="true"] { display: none; }
.modal[aria-hidden="false"] {
  position: fixed; inset: 0; display: grid; place-items: center; z-index: 50;
}
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55);
}
.modal-body {
  position: relative;
  width: min(960px, 92vw);
  max-height: 86vh;
  overflow: hidden;
  background: #0e1120;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
  display: flex; flex-direction: column;
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; color: #fff; background: linear-gradient(45deg, #A741F5, #4d1b83);
}
.modal-close {
  background: transparent; border: 0; color: #fff; font-size: 18px; cursor: pointer;
}
.modal-content {
  padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr));
  gap: 14px; overflow: auto;
}
.modal-thumb {
  width: 100%; height: 120px; object-fit: cover; border-radius: 12px;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .prompt-template { max-width: 75%; font-size: 12px; }
  .watch-btn { padding: 9px 12px; font-size: 12px; }
  .token-square { width: 40px; height: 40px; }
}

:root{ --page-pad: clamp(14px, 4vw, 40px); }
.treasury-header.v2{ display:grid; grid-template-columns:auto 1fr auto; align-items:end; gap:clamp(10px,2vw,18px); padding-inline:var(--page-pad); margin-bottom:clamp(12px,3vw,24px); }
.treasury-title{ grid-column:2; text-align:center }
.mini-nav{ grid-column:1; align-self:end; display:flex; gap:.75rem; flex-wrap:wrap }

/* Matches your anchor markup */

/* make it look like your login button by reusing btn-magic if you have it */

/* reserve space for up to 3 digits (bump to 4ch if you want 4) */

/* optional: fixed overall width if you prefer */

.shelves{ display:grid; gap:2rem; margin-top:2rem; }
.shelf{
  height:20px; border-radius:8px;
  background: linear-gradient(180deg,#6d5d7d,#2a2438);
  box-shadow: 0 20px 40px rgba(0,0,0,.45), 0 0 20px rgba(120,60,200,.35);
  position:relative;
}
.shelf::after{
  content:""; position:absolute; left:10%; right:10%; top:-10px; height:10px; border-radius:8px 8px 0 0;
  background: radial-gradient(50% 120% at 50% 120%, rgba(167,65,245,.35), transparent);
}
