/* -------- Hero -------- */
.hero{
  position:relative;
  overflow:visible;
  border:1px solid var(--blood-deep);
  background:#000;
  box-shadow:var(--shadow);
  min-height:420px;
  display:flex;
}

.three-grid{
  display:grid;
  grid-template-columns: 230px 2fr 250px;
  gap:18px;
  margin-top:24px;
  align-items:start;
  min-width:0;
}
.col-1, .col-2, .col-3{
  display:flex;
  flex-direction:column;
  gap:18px;
  min-width:0;
}
.col-1 .panel, .col-2 .panel, .col-2 .hero, .col-3 .panel{
  min-width:0;
}

@media (max-width:900px){
  .three-grid{
    grid-template-columns:1fr;
  }
  .col-2{order:-1}
}
.hero-img{
  flex:1 1 35%;
  background:url("/assets/hutao.jpg") center 35%/cover no-repeat;
  position:relative;
  filter:contrast(1.08) saturate(.95);
}
.hero-img::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg, transparent 40%, var(--ink) 100%);
}

 .hero-copy{
  flex:1 1 45%;
  padding:36px 30px;
  display:flex;flex-direction:column;justify-content:center;
  position:relative;
  background:
     radial-gradient(400px 200px at 80% 20%, rgba(138,15,22,.25), transparent 70%);
}
.hero-copy .kicker{
  font-family:'DM Mono',monospace;
  font-size:11px;
  letter-spacing:.5em;
  color:var(--blood-bright);
  text-transform:uppercase;
}
.hero-copy h2{
  font-family:'Cormorant Garamond',serif;
  font-style:italic;
  font-weight:400;
  font-size:45px;
  line-height:1.05;
  margin:12px 0 14px;
  color:var(--paper);
  text-shadow:0 0 40px rgba(200,18,27,.4);
}
.hero-copy h2 em{color:var(--blood-bright);font-style:italic}
.hero-copy p{
  font-size:17px;
  color:var(--paper-dim);
  line-height:1.55;
  margin:0 0 18px;
  max-width:36ch;
}
.hero-badge{
  position:absolute;
  right:20px;bottom:10px;
  width:120px;height:120px;
  background:url("/assets/gengar.gif") center/cover;
  opacity:.85;
}

@media (max-width:820px){
  .hero{flex-direction:column}
  .hero-img{min-height:280px}
  .hero-copy h2{font-size:34px}
}

/* -------- Button wall (88x31) -------- */
.button-wall{
  display:grid;
  grid-template-columns:repeat(auto-fill, 88px);
  gap:6px;
  justify-content:center;
}

/* -------- Stamp wall (99x56) -------- */
.stamp-wall{
  display:grid;
  grid-template-columns:repeat(auto-fill, 99px);
  gap:6px;
  justify-content:center;
}


/* -------- Spotify -------- */
.spotify-block iframe{
  width:100%;
  border:0;
  border-radius:0;
  display:block;
  filter:hue-rotate(320deg) saturate(1.1);
}

/* -------- spotify player card -------- */
.spotify-player{
  position:relative;
  display:flex;
  align-items:center;
  gap:16px;
  flex-direction:row;
  flex-wrap:wrap;
  justify-content:center;
  padding:6px 4px;
}

.vinyl{
  position:relative;
  width:160px;height:160px;flex:0 0 160px;
  background:url("/assets/vinyl-heart.png") center/contain no-repeat;
  filter:drop-shadow(0 8px 16px rgba(0,0,0,.75)) drop-shadow(0 0 8px rgba(200,18,27,.15));
  cursor:pointer;
  transition:filter .25s;
  animation:spin 6s linear infinite;
  animation-play-state:paused;
}
.vinyl:hover{
  filter:drop-shadow(0 8px 16px rgba(0,0,0,.75)) drop-shadow(0 0 14px rgba(200,18,27,.4));
}
.vinyl::after{
  content:"";position:absolute;top:50%;left:50%;width:6px;height:6px;
  background:var(--ink);border-radius:50%;transform:translate(-50%,-50%);
  box-shadow:0 0 0 2px var(--paper);
}
.spotify-player.is-playing .vinyl{
  animation-play-state:running;
  filter:drop-shadow(0 8px 16px rgba(0,0,0,.75)) drop-shadow(0 0 16px rgba(200,18,27,.55));
}

.np-info{
  flex:1 1 auto;
  min-width:160px;
}
.np-info .np-title{
  margin:0;
  font-family:'Cormorant Garamond',serif;
  font-style:italic;
  font-size:22px;
  color:var(--paper);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.np-info .np-artist{
  margin:2px 0 14px;
  font-family:'DM Mono',monospace;
  font-size:10px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--paper);
}

.spotify-playlist iframe{width:100%;border:0;display:block;height:380px;
  filter:hue-rotate(320deg) saturate(1.1);}
@media (max-width:820px){
  .spotify-player{flex-direction:column;text-align:center}
  .vinyl{width:180px;height:180px;flex-basis:180px}
  .np-info{min-width:0}
}

/* -------- spotify seek -------- */
.np-seek{
  display:flex;
  align-items:center;
  gap:8px;
}
.np-time{
  font-family:'DM Mono',monospace;
  font-size:9px;
  letter-spacing:.05em;
  color:var(--paper-dim);
  flex:0 0 auto;
  min-width:26px;
}
#np-duration{ text-align:right; }

.np-range{
  -webkit-appearance:none;
  appearance:none;
  flex:1 1 auto;
  height:3px;
  background:var(--blood-deep);
  outline:none;
  cursor:pointer;
  border-radius:0;
}
.np-range::-webkit-slider-runnable-track{
  height:3px;
  background:linear-gradient(to right, var(--blood-bright) var(--np-progress,0%), var(--blood-deep) 0%);
}
.np-range::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:10px;height:10px;
  margin-top:-3.5px;
  background:var(--paper);
  border:1px solid var(--blood-bright);
  border-radius:50%;
  cursor:pointer;
}
.np-range::-moz-range-track{
  height:3px;
  background:var(--blood-deep);
}
.np-range::-moz-range-progress{
  height:3px;
  background:var(--blood-bright);
}
.np-range::-moz-range-thumb{
  width:10px;height:10px;
  background:var(--paper);
  border:1px solid var(--blood-bright);
  border-radius:50%;
  cursor:pointer;
}

.np-btn{
  flex:0 0 auto;
  width:34px;height:34px;
  display:flex;align-items:center;justify-content:center;
  background:none;
  border:none;
  padding:0;
  color:var(--paper-dim);
  cursor:pointer;
  transition:color .15s, transform .1s;
}
.np-btn:hover{ color:var(--blood-bright); transform:scale(1.12); }
.np-btn:active{ transform:scale(.92); }
.spotify-player.is-playing .np-btn{
  color:var(--blood-bright);
}

.np-controls{
  display:flex;
  align-items:center;
  gap:2px;
  flex:0 0 auto;
}
.np-btn-skip{
  width:24px;height:24px;
}

/* -------- tarot -------- */
.tarot-body{display:grid;grid-template-columns:auto 1fr;gap:16px;padding:18px;align-items:center}

.tarot-card{
  position:relative;
  width:120px;
  height:195px;
  cursor:pointer;
  perspective:800px;
  flex:0 0 120px;
  margin:0 auto;
}

.tarot-back,.tarot-front{
  position:absolute;
  inset:0;
  backface-visibility:hidden;
  border:2px solid var(--rose);
  display:grid;
  place-items:center;
  overflow:hidden;
  transition:transform .6s;
  box-shadow:0 8px 18px rgba(0,0,0,.6);
}

.tarot-back img,.tarot-front img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.tarot-back{background:#140a0c;}

.tarot-front{
  background:#e7d4b3;
  transform:rotateY(180deg);
}

.tarot-card.is-flipped .tarot-back{transform:rotateY(180deg)}
.tarot-card.is-flipped .tarot-front{transform:rotateY(0)}

/* meaning shown under the card, not inside the flip element */
.tarot-meaning{
  margin-top:14px;
  text-align:center;
  max-width:260px;
}
.tarot-meaning h4{
  margin:0 0 6px;
  font-family:'Cormorant Garamond',serif;
  font-style:italic;
  font-size:20px;
  color:var(--rose);
}
.tarot-meaning p{
  margin:0;
  font-size:12px;
  line-height:1.4;
  color:#e7d4b3;
  opacity:.85;
}

/* polaroid */
.polaroid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.figure{
  margin:0;
  flex:1 1 140px;
  border:1px solid var(--blood-deep);
  background:#000;
  padding:6px;
  text-align:center;
  transition:transform .2s;
  position:relative;
}

.figure::before{content:"";position:absolute;top:-8px;left:50%;
  transform:translateX(-50%) rotate(-4deg);width:60px;height:14px;
  background:rgba(232,160,170,.35);
  border-left:1px dashed rgba(0,0,0,.4);border-right:1px dashed rgba(0,0,0,.4);}
.figure:hover{transform:scale(1.04) rotate(-1deg)}
.figure img{
  width:100%;
  height:120px;
  object-fit:cover;
  display:block;
  filter:grayscale(.15) contrast(1.05)
}
.figure figcaption{
  font-family:'DM Mono',monospace;
  font-size:10px;
  letter-spacing:.2em;
  color:var(--paper-dim);
  margin-top:6px;
  text-transform:uppercase;
}