/* ---------- The album book ---------- */
.album {
  max-width: 1180px;
  margin: 24px auto;
  padding: 0 16px 40px;
}

.album-cover-band {
  display: flex; align-items: flex-end; justify-content: center; gap: 18px;
  text-align: center;
  color: #fff;
  margin-bottom: 14px;
}
.cover-mascot { width: clamp(64px, 11vw, 120px); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); animation: bob 3s ease-in-out infinite; }
.cover-mascot.right { animation-delay: -1.5s; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(3deg); } }
.album-cover-band h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .5px;
  text-shadow: 0 4px 0 var(--cover-dark), 0 8px 18px rgba(0, 0, 0, .3);
  -webkit-text-stroke: 2px var(--cover-dark);
  color: var(--yellow);
}
.album-cover-band p {
  margin: .4em 0 0;
  font-size: 1.4rem;
  font-weight: 700;
  opacity: .95;
}

/* the hard cover around the pages */
.spread {
  display: grid;
  grid-template-columns: 1fr 26px 1fr;
  background: var(--cover);
  padding: 18px;
  border-radius: 28px;
  box-shadow: 0 0 0 6px var(--cover-dark), 0 24px 50px rgba(0, 0, 0, .45);
  position: relative;
}

.page {
  position: relative;
  background-color: var(--paper);
  background-image: radial-gradient(var(--paper-line) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
  padding: 22px 22px 46px;
  min-height: 560px;
}
.page-left  { border-radius: 16px 4px 4px 16px; box-shadow: inset -18px 0 22px -16px rgba(0, 0, 0, .25); }
.page-right { border-radius: 4px 16px 16px 4px; box-shadow: inset 18px 0 22px -16px rgba(0, 0, 0, .25); }

.spine {
  background: linear-gradient(90deg, #e0d2b4, #fff8ea 45%, #fff8ea 55%, #e0d2b4);
  position: relative;
}
.spine::before { /* stitching */
  content: '';
  position: absolute; left: 50%; top: 10px; bottom: 10px; width: 0;
  border-left: 3px dashed #cdb88e;
}

.page-title {
  display: inline-block;
  margin: 0 0 14px;
  padding: .1em .9em;
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--yellow);
  border-radius: 12px;
  transform: rotate(-2deg);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .12);
}
.page-right .page-title { background: var(--blue); transform: rotate(2deg); }

.page-number {
  position: absolute; bottom: 12px;
  font-weight: 800; font-size: 1.1rem; color: #b9a57c;
}
.page-left .page-number { left: 22px; }
.page-right .page-number { right: 22px; }

/* ---------- Sticker spots ---------- */
.slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 22px;
  perspective: 900px;
}

.slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* the printed outline under every sticker, seen when it peels */
.spot {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 210px;
  border: 3px dashed #d8c49c;
  border-radius: 26px;
  display: grid;
  place-items: center;
  color: #c8b287;
  font-weight: 800;
  font-size: 1.1rem;
}
.spot-number { position: absolute; top: 8px; left: 12px; font-size: .95rem; }

.slot-label {
  margin-top: 8px;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

/* ---------- The sticker itself ---------- */
.sticker {
  position: absolute;
  inset: 6%;
  border: 0;
  padding: 0;
  background: none;
  transform: rotate(var(--tilt, 0deg));
  transform-origin: 0% 100%;
  transition: transform .18s ease;
  z-index: 2;
}
.sticker:focus-visible { outline: 4px solid var(--blue); outline-offset: 6px; border-radius: 26px; }

/* placeholder art until real sticker images arrive */
.sticker-face {
  width: 100%; height: 100%;
  border-radius: 24px;
  border: 7px solid #fff;
  background: var(--c, #ccc);
  background-image: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .55), transparent 45%);
  display: grid; place-items: center;
  box-shadow: 0 6px 10px rgba(43, 33, 64, .28);
  overflow: hidden;
  position: relative;
}
.sticker-face .emoji { font-size: clamp(3rem, 8vw, 5.2rem); line-height: 1; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .15)); }

.sticker img {
  pointer-events: none;
  user-select: none;
}
.sticker-face.has-art img {
  width: 88%; height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .2));
  position: relative; z-index: 1;
}
.sticker-face.mystery { background: #3a2c55; }
.sticker-face.mystery img { filter: brightness(0) opacity(.55); }
.sticker-face.mystery::before {
  content: '?'; position: absolute; z-index: 2; font-size: 4.5rem; font-weight: 800; color: var(--yellow);
  text-shadow: 0 4px 0 rgba(0, 0, 0, .3);
}

/* shiny strip that slides across on hover */
.sticker-face::after {
  content: '';
  position: absolute; inset: -40%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%);
  transform: translateX(-70%);
  transition: transform .6s ease;
}

/* lifted corner hint */
.sticker::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 0; height: 0;
  border-radius: 0 22px 0 0;
  background: linear-gradient(225deg, transparent 50%, #fff 50%, #ece3d0 100%);
  box-shadow: -3px 3px 5px rgba(0, 0, 0, .18);
  transition: width .18s ease, height .18s ease;
}

@media (hover: hover) {
  .sticker:hover { transform: rotate(var(--tilt, 0deg)) translateY(-4px) scale(1.03); }
  .sticker:hover .sticker-face::after { transform: translateX(70%); }
  .sticker:hover::after { width: 34px; height: 34px; }
}

/* ---------- Peel off! ---------- */
.sticker.peeling {
  animation: peel .62s cubic-bezier(.45, .05, .55, .95) forwards;
  z-index: 10;
}
.sticker.peeling::after { width: 60px; height: 60px; }

@keyframes peel {
  0%   { transform: rotate(var(--tilt, 0deg)); }
  25%  { transform: rotate(var(--tilt, 0deg)) rotate3d(1, -1, 0, 35deg); }
  55%  { transform: rotate(var(--tilt, 0deg)) translate(10px, -30px) rotate3d(1, -1, 0, 70deg) rotate(-8deg); opacity: 1; }
  100% { transform: translate(80px, -200px) rotate3d(1, -1, 0, 85deg) rotate(-25deg) scale(.9); opacity: 0; }
}

/* sticks back on when you come back to the album */
.sticker.sticking {
  animation: stick .5s cubic-bezier(.3, 1.5, .5, 1) both;
}
@keyframes stick {
  0%   { transform: rotate(var(--tilt, 0deg)) scale(1.25) translateY(-20px); opacity: 0; }
  60%  { transform: rotate(var(--tilt, 0deg)) scale(.96); opacity: 1; }
  100% { transform: rotate(var(--tilt, 0deg)) scale(1); }
}

/* "Coming soon" wobble */
.sticker.wobble { animation: wobble .5s ease; }
@keyframes wobble {
  0%, 100% { transform: rotate(var(--tilt, 0deg)); }
  25% { transform: rotate(calc(var(--tilt, 0deg) - 6deg)); }
  75% { transform: rotate(calc(var(--tilt, 0deg) + 6deg)); }
}
.soon-badge {
  position: absolute; top: -6px; right: -6px; z-index: 3;
  background: var(--pink); color: #fff; font-weight: 800; font-size: .85rem;
  padding: .1em .6em; border-radius: 999px; transform: rotate(10deg);
  border: 3px solid #fff;
}

/* ---------- Phones and narrow screens: pages stack ---------- */
@media (max-width: 820px) {
  .spread { grid-template-columns: 1fr; gap: 0; padding: 12px; }
  .spine { height: 18px; background: linear-gradient(180deg, #e0d2b4, #fff8ea 45%, #fff8ea 55%, #e0d2b4); }
  .spine::before { left: 10px; right: 10px; top: 50%; bottom: auto; width: auto; height: 0; border-left: 0; border-top: 3px dashed #cdb88e; }
  .page-left, .page-right { border-radius: 16px; box-shadow: none; min-height: 0; }
  .page { padding: 16px 14px 40px; }
  .slots { gap: 18px 14px; }
  .slot-label { font-size: 1.25rem; }
}

/* back button on inner album pages */
.back-sticker {
  position: absolute; top: 16px; left: 16px; z-index: 5;
  background: #fff; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1rem;
  padding: .35em 1em; border-radius: 999px; box-shadow: 0 4px 0 rgba(0, 0, 0, .2);
}
@media (max-width: 600px) { .back-sticker { position: static; display: inline-block; margin: 12px 0 0 12px; } }
