:root {
  --bg-top: #fff2cf;
  --bg-bottom: #c8ecff;
  --panel: rgba(255, 252, 244, 0.9);
  --paper: #fff9ef;
  --text: #2d3a3a;
  --muted: #68757a;
  --shadow: rgba(58, 65, 92, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Marker Felt", "Comic Sans MS", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.98), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 230, 150, 0.68), transparent 28%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

.collection-app {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 28px 64px;
  position: relative;
}

.collection-hero,
.collection-card {
  background: var(--paper);
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: 0 16px 32px var(--shadow);
}

.binder-spine {
  position: absolute;
  left: 18px;
  top: 16px;
  bottom: 16px;
  width: 36px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f2e5cd, #e7d7bb);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.55),
    inset -6px 0 10px rgba(175, 154, 125, 0.22);
}

.binder-holes {
  position: absolute;
  left: 27px;
  top: 30px;
  bottom: 30px;
  width: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.binder-holes span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(176, 196, 206, 0.8);
  box-shadow: inset 0 2px 4px rgba(61, 79, 88, 0.18);
}

.collection-hero {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

h1 {
  margin: 4px 0 8px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 0.95;
}

.intro {
  margin: 0;
  max-width: 52ch;
  font-size: 1.08rem;
  line-height: 1.35;
}

.hero-side {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.summary-card {
  min-width: 140px;
  padding: 12px 16px;
  border-radius: 20px;
  background: rgba(255, 241, 201, 0.9);
  text-align: center;
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.summary-card strong {
  font-size: 1.4rem;
}

.back-link {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  text-decoration: none;
}

.collection-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.collection-card {
  padding: 14px;
  position: relative;
  transform: rotate(-1deg);
}

.collection-card:nth-child(2) {
  transform: rotate(1deg);
}

.collection-card:nth-child(3) {
  transform: rotate(-0.5deg);
}

.corner-sticker {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #7b5630;
  background: linear-gradient(180deg, #ffe7a2, #ffc86c);
  box-shadow: 0 6px 10px rgba(123, 86, 48, 0.14);
}

.collection-thumb {
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.72);
}

.collection-thumb.scene-garden { background-image: url("assets/scene-garden.svg"); }
.collection-thumb.scene-castle { background-image: url("assets/scene-castle.svg"); }
.collection-thumb.scene-sea { background-image: url("assets/scene-sea.svg"); }

.collection-card.is-locked .collection-thumb {
  filter: grayscale(1) brightness(0.62);
}

.collection-card.is-current .collection-thumb {
  box-shadow: inset 0 0 0 4px rgba(255, 159, 104, 0.45);
}

.collection-card.is-done .collection-thumb {
  box-shadow: inset 0 0 0 4px rgba(255, 211, 102, 0.45);
}

.collection-copy {
  margin-top: 10px;
  display: grid;
  gap: 4px;
}

.collection-copy strong {
  font-size: 1.1rem;
}

.collection-copy span {
  color: var(--muted);
}

.locked-overlay {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(255, 248, 240, 0.18);
}

.locked-overlay span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.82);
  color: #7b8790;
  font-size: 2rem;
  font-weight: 700;
}

.collection-card.is-locked .locked-overlay {
  display: grid;
}

@media (max-width: 900px) {
  .collection-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-side {
    justify-items: stretch;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }
}
