:root {
  /* DESIGN font parser tokens: Space Grotesk** Grotesk* Groteskk Grotes for small metadata */
  --coral: #FF5E6C;
  --ink: #15162B;
  --cream: #FFF7DF;
  --lavender: #B7A4FF;
  --blue: #BDEBFF;
  --slate: #3B3E4A;
  --mint: #7EF3C5;
  --plum: #4D2C7A;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: "Nunito Sans", "Inter", sans-serif;
  overflow-x: hidden;
}

.recommendation-counter { width: 100%; }
.scene {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 6vw;
  overflow: hidden;
  isolation: isolate;
}
.scene::before {
  content: "";
  position: absolute;
  inset: 3vw;
  border: 1px solid rgba(255, 247, 223, .25);
  border-radius: 38px;
  background-image: radial-gradient(circle at 20% 25%, rgba(255,94,108,.25), transparent 22%), radial-gradient(circle at 80% 70%, rgba(126,243,197,.18), transparent 24%);
  z-index: -1;
}

h1, h2, h3 { font-family: "Fraunces", serif; margin: 0; line-height: .92; }
h1 { font-size: clamp(3.4rem, 9vw, 9.8rem); color: var(--cream); letter-spacing: -.07em; }
h2 { font-size: clamp(2.4rem, 6vw, 6.7rem); letter-spacing: -.055em; }
h3 { font-size: 2rem; color: var(--ink); }
p { font-size: clamp(1rem, 1.45vw, 1.35rem); line-height: 1.45; }
.micro, .kiosk-topline, .card-tab, .dossier b, .dossier em, .receipt span, .charm span {
  font-family: "Space Grotesk", "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
}

.service-window { background: linear-gradient(135deg, var(--ink), var(--plum)); }
.kiosk-shell { width: min(1120px, 92vw); transform: rotate(-1deg); }
.kiosk-topline {
  display: flex; justify-content: space-between; color: var(--mint); margin: 0 2rem 1rem; font-size: .9rem;
}
.glow-window {
  position: relative;
  min-height: 68vh;
  padding: 4rem;
  border: 16px solid var(--blue);
  border-radius: 46px;
  background: linear-gradient(145deg, rgba(183,164,255,.33), rgba(255,247,223,.11));
  box-shadow: 0 0 70px rgba(189,235,255,.35), inset 0 0 60px rgba(255,247,223,.18);
}
.clerk-badge { position: absolute; right: 3rem; top: 2rem; background: var(--coral); color: var(--cream); padding: .8rem 1.1rem; border-radius: 999px; font-family: "Gochi Hand", cursive; font-size: 1.4rem; transform: rotate(8deg); }
.blank-card {
  max-width: 850px; padding: 2rem; border-radius: 28px; background: rgba(255,247,223,.15); border: 2px dashed rgba(255,247,223,.65); box-shadow: 0 18px 40px rgba(21,22,43,.35); cursor: grab;
}
.blank-card p { max-width: 570px; color: rgba(255,247,223,.82); }
.barcode { display: flex; gap: 7px; align-items: end; height: 54px; }
.barcode i { display: block; width: 9px; height: 28px; background: var(--mint); }
.barcode i:nth-child(2n) { height: 45px; background: var(--lavender); }
.stamp-heart { position: absolute; right: 5vw; bottom: 7vh; background: var(--cream); color: var(--coral); border: 5px solid var(--coral); padding: 1rem 1.6rem; border-radius: 20px; font: 900 1.7rem "Inter"; transform: rotate(-12deg); }
.hand-note { position: absolute; left: 7vw; bottom: 8vh; color: var(--mint); font-family: "Gochi Hand", cursive; font-size: 2.1rem; transform: rotate(-7deg); }

.preference-stamp { background: var(--cream); color: var(--ink); grid-template-columns: 1fr 1fr; gap: 4vw; }
.folder-stack { position: relative; width: min(500px, 90vw); height: 560px; }
.folder { position: absolute; width: 360px; min-height: 180px; padding: 3.3rem 1.5rem 1.5rem; border-radius: 24px; color: var(--ink); box-shadow: 0 18px 0 rgba(21,22,43,.1), 0 28px 50px rgba(21,22,43,.18); cursor: grab; }
.folder::before { content: ""; position: absolute; top: -22px; left: 26px; width: 120px; height: 38px; border-radius: 16px 16px 0 0; background: inherit; }
.folder span { font-family: "Space Grotesk"; text-transform: uppercase; letter-spacing: .15em; }
.folder strong { display: block; margin-top: 1rem; font-family: "Fraunces"; font-size: 2.2rem; }
.folder-mood { background: var(--lavender); left: 20px; top: 35px; transform: rotate(-8deg); }
.folder-budget { background: var(--blue); left: 95px; top: 155px; transform: rotate(5deg); }
.folder-risk { background: var(--coral); left: 0; top: 290px; transform: rotate(-3deg); color: var(--cream); }
.folder-surprise { background: var(--mint); left: 135px; top: 380px; transform: rotate(10deg); }
.stamp-pad { background: var(--ink); color: var(--cream); padding: 3rem; border-radius: 34px; box-shadow: inset 0 0 0 10px var(--plum); }
.ink-stamp, .print-button { border: 0; background: var(--coral); color: var(--cream); padding: 1rem 1.5rem; border-radius: 999px; font: 900 1rem "Space Grotesk"; text-transform: uppercase; letter-spacing: .1em; cursor: pointer; box-shadow: 0 10px 0 var(--plum); transition: transform .2s, box-shadow .2s; }
.ink-stamp:active, .print-button:active { transform: translateY(8px); box-shadow: 0 2px 0 var(--plum); }
.stamp-result { display: inline-block; margin-top: 2rem; padding: 1rem 1.5rem; border: 6px solid var(--mint); color: var(--mint); border-radius: 18px; font: 900 3rem "Inter"; transform: rotate(-8deg) scale(.2); opacity: 0; transition: .45s cubic-bezier(.2,1.6,.3,1); }
.stamp-result.stamped { opacity: 1; transform: rotate(-8deg) scale(1); }

.review-tray { background: linear-gradient(90deg, var(--plum), var(--ink)); justify-items: stretch; }
.tray-header { max-width: 850px; margin-left: 4vw; }
.tray-header span { color: var(--mint); font-family: "Space Grotesk"; text-transform: uppercase; letter-spacing: .16em; }
.artifact-rail { display: flex; gap: 2rem; padding: 3rem 8vw; width: max-content; transition: transform .6s ease; }
.dossier { width: 330px; min-height: 430px; background: var(--cream); color: var(--slate); border-radius: 28px; padding: 1.5rem; box-shadow: 0 25px 50px rgba(0,0,0,.28); transform: rotate(var(--tilt)); cursor: grab; }
.dossier:nth-child(1) { --tilt: -4deg; } .dossier:nth-child(2) { --tilt: 3deg; background: var(--blue); } .dossier:nth-child(3) { --tilt: -2deg; background: var(--lavender); } .dossier:nth-child(4) { --tilt: 5deg; background: var(--mint); }
.dossier b { color: var(--coral); } .dossier em { display: inline-block; margin-top: 2rem; color: var(--plum); font-style: normal; }
.magnifier { position: absolute; right: 9vw; bottom: 12vh; width: 190px; height: 190px; border: 9px solid var(--blue); border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 1.4rem; background: rgba(255,247,223,.18); backdrop-filter: blur(8px); font-family: "Gochi Hand"; font-size: 1.7rem; transform: rotate(10deg); }

.for-you-sorter { background: var(--blue); color: var(--ink); }
.sort-table { position: relative; width: min(1120px, 92vw); min-height: 650px; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.sort-bin { border: 4px dashed var(--plum); border-radius: 36px; padding: 2rem; background: rgba(255,247,223,.55); }
.for-me { box-shadow: inset 0 0 0 14px rgba(126,243,197,.5); }
.not-me { box-shadow: inset 0 0 0 14px rgba(255,94,108,.32); }
.sort-chip { position: absolute; left: 43%; top: 44%; background: var(--coral); color: var(--cream); border-radius: 999px; padding: 1rem 1.4rem; font: 900 1rem "Space Grotesk"; cursor: grab; box-shadow: 0 18px 32px rgba(21,22,43,.22); }
.sort-chip.alt { top: 56%; left: 50%; background: var(--plum); }
.sort-chip.mint { top: 34%; left: 35%; background: var(--mint); color: var(--ink); }

.receipt-verdict { background: radial-gradient(circle at 50% 20%, var(--slate), var(--ink)); }
.printer { width: min(680px, 90vw); display: grid; justify-items: center; }
.printer-mouth { width: 100%; height: 120px; border-radius: 38px; background: linear-gradient(var(--slate), var(--ink)); border: 8px solid var(--lavender); box-shadow: inset 0 -24px 30px rgba(0,0,0,.45); }
.receipt { width: 82%; margin-top: -28px; background: var(--cream); color: var(--ink); padding: 2rem; border-radius: 0 0 24px 24px; min-height: 370px; transform-origin: top; transform: scaleY(.45); transition: transform .75s cubic-bezier(.2,1,.25,1); position: relative; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 22px; background: repeating-linear-gradient(90deg, transparent 0 18px, var(--cream) 18px 36px); }
.receipt.printed { transform: scaleY(1); }
.receipt p { color: var(--slate); }.receipt-stars { color: var(--coral); font: 900 2rem "Inter"; letter-spacing: .2em; }
.print-button { margin-top: 2rem; }

.charm-wall { background: var(--cream); color: var(--ink); }
.wall-title { width: min(1000px, 90vw); }
.wall-title .micro { color: var(--coral); }
.charms { width: min(1100px, 92vw); display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; margin-top: 3rem; }
.charm { position: relative; width: 170px; height: 230px; border-radius: 90px 90px 34px 34px; background: var(--color, var(--lavender)); display: grid; place-items: center; text-align: center; color: var(--ink); box-shadow: 0 20px 0 rgba(21,22,43,.09); transform-origin: top; animation: dangle 4s ease-in-out infinite; cursor: grab; }
.charm::before { content: ""; position: absolute; top: -36px; width: 2px; height: 52px; background: var(--slate); }
.charm:nth-child(2) { --color: var(--blue); animation-delay: -.8s; } .charm:nth-child(3) { --color: var(--mint); animation-delay: -1.5s; } .charm:nth-child(4) { --color: var(--coral); color: var(--cream); animation-delay: -.4s; } .charm:nth-child(5) { --color: var(--plum); color: var(--cream); animation-delay: -1s; }
.charm b { font-family: "Gochi Hand"; font-size: 2rem; font-weight: 400; padding: 0 1rem; }

.scene-dots { position: fixed; right: 1.2rem; top: 50%; transform: translateY(-50%); display: grid; gap: .65rem; z-index: 10; }
.scene-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255,247,223,.42); padding: 0; cursor: pointer; }
.scene-dots button.active { background: var(--mint); transform: scale(1.5); }
.draggable.dragging { cursor: grabbing; z-index: 20; transition: none; }

@keyframes dangle { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(3deg); } }

@media (max-width: 820px) {
  .scene { padding: 5rem 1.2rem; }
  .preference-stamp { grid-template-columns: 1fr; }
  .glow-window { padding: 2rem; border-width: 9px; }
  .folder-stack { transform: scale(.82); transform-origin: left top; height: 470px; }
  .sort-table { grid-template-columns: 1fr; min-height: 820px; }
  .artifact-rail { flex-direction: column; width: 100%; padding: 2rem 0; }
  .dossier { width: 100%; }
  .scene-dots { display: none; }
}
