:root {
  --bg0: #14101a;
  --bg1: #1e1824;
  --ink: #f7f1ea;
  --muted: rgba(247,241,234,.68);
  --glass: rgba(255,255,255,.08);
  --line: rgba(255,230,200,.16);
  --accent: #e8b86d;
  --accent2: #7eb6c9;
  font-family: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg0); color: var(--ink); }
body { overflow-x: hidden; }

.stage { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.glow {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .4;
  animation: drift 18s ease-in-out infinite;
}
.g1 { width: 42vw; height: 42vw; left: -8vw; top: -10vw; background: #5c3d2e; }
.g2 { width: 36vw; height: 36vw; right: -6vw; top: 18vh; background: #1d4e68; animation-delay: -5s; }
.g3 { width: 28vw; height: 28vw; left: 35vw; bottom: -8vw; background: #6b3a4a; animation-delay: -9s; }
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,220,180,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,220,180,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, #000 18%, transparent 72%);
  opacity: .55;
}
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(18px,-24px) scale(1.08); }
}

.hero, .wall, .foot { position: relative; z-index: 1; }
.hero { text-align: center; padding: 3.2rem 1.2rem 1rem; }
.eyebrow {
  margin: 0 0 .7rem; letter-spacing: .28em; text-transform: uppercase;
  font-size: .72rem; color: var(--accent); font-weight: 600;
}
.hero h1 {
  margin: 0; font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 720;
  letter-spacing: .02em;
  background: linear-gradient(120deg, #fff8f0 15%, #e8b86d 50%, #9fd4e5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { margin: .85rem auto 0; max-width: 30rem; color: var(--muted); line-height: 1.55; }

.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.35rem;
  max-width: 1040px;
  margin: 1.4rem auto 3.5rem;
  padding: 0 1.25rem;
  perspective: 1200px;
}

.tile {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,236,210,.12), rgba(255,255,255,.03));
  box-shadow:
    0 20px 50px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,240,220,.18);
  overflow: hidden; position: relative;
  text-decoration: none; color: inherit; display: block;
  backdrop-filter: blur(18px);
  transform: rotateX(3deg) rotateY(-3deg);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tile:hover, .tile:focus-visible {
  transform: translateY(-10px) rotateX(0) rotateY(0) scale(1.02);
  border-color: rgba(232,184,109,.55);
  box-shadow: 0 28px 60px rgba(0,0,0,.48), 0 0 0 1px rgba(232,184,109,.2);
  outline: none;
}
.tile canvas, .tile .preview {
  width: 100%; height: 100%; display: block;
}
.tile .label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .85rem 1rem .95rem;
  background: linear-gradient(transparent, rgba(12,8,10,.9));
  font-weight: 650; font-size: 1rem; letter-spacing: .03em;
}
.tile .badge {
  position: absolute; top: 12px; right: 12px;
  font-size: .7rem; padding: .28rem .55rem; border-radius: 999px;
  background: rgba(30,20,18,.72); border: 1px solid var(--line);
  color: var(--accent); letter-spacing: .04em;
}
.tile.locked {
  opacity: .62; cursor: default; filter: saturate(.75);
  transform: none;
}
.tile.locked:hover {
  transform: none;
  box-shadow: 0 20px 50px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,240,220,.18);
  border-color: var(--line);
}
.tile .soon {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 700; color: var(--muted);
  background: rgba(10,8,12,.28);
}

.foot { text-align: center; padding: 0 1rem 2.4rem; opacity: .45; font-size: .82rem; }

@media (max-width: 560px) {
  .wall { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .tile { transform: none; border-radius: 18px; }
}
