@font-face {
  font-family: 'Allura';
  src: url('assets/allura.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('assets/fredoka.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #753b45;
  --rose: #a65364;
  --pastel-pink: #fdc3d1;
  --baby-pink: #fda8bf;
  --bubblegum-tint: #fb8cac;
  --bubblegum-pink: #ff5c89;
  --deep-pink: #ad2855;
  --paper-grain: url('assets/cotton-paper.jpg');
  --letter-rise-delay: 1.12s;
  --serif: 'Baskerville', 'Palatino Linotype', Palatino, Georgia, serif;
  --script: 'Allura', 'Segoe Script', 'Apple Chancery', cursive;
  font-family: var(--serif);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; background: var(--pastel-pink); }
[hidden] { display: none !important; }
button { color: inherit; font: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid #8f3b63; outline-offset: 6px; }
h2:focus { outline: none; }
.language-picker {
  position: fixed; z-index: 10;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  width: 9.4rem; color: #482d39;
  font: 500 1rem/1.2 'Fredoka', 'Arial Rounded MT Bold', sans-serif;
}
.language-toggle {
  display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between;
  gap: .75rem; padding: .66em .9em .66em 1em;
  border: 1px solid var(--pastel-pink); border-radius: 999px; background: #fff;
  box-shadow: 0 4px 12px #a8536b21;
}
.language-chevron {
  flex: none; width: .42em; height: .42em; border: solid #8c5065; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-22%) rotate(45deg); transition: transform .23s ease;
}
.language-toggle[aria-expanded="true"] .language-chevron { transform: translateY(25%) rotate(225deg); }
.language-options {
  position: absolute; top: calc(100% + .38rem); right: 0; width: 100%;
  display: grid; grid-template-rows: 0fr; border-radius: 1rem; background: #fff;
  opacity: 0; visibility: hidden; transform: translateY(-.5rem);
  box-shadow: 0 9px 25px #a8536b36;
  transition: grid-template-rows .25s ease, transform .25s ease, opacity .2s ease, visibility 0s .25s;
}
.language-toggle[aria-expanded="true"] + .language-options {
  grid-template-rows: 1fr; opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s;
}
.language-options-inner { min-height: 0; overflow: hidden; border-radius: inherit; }
.language-options button {
  display: block; width: 100%; min-height: 44px; padding: .55em 1em;
  border: 0; background: #fff; text-align: left;
}
.language-options button[aria-pressed="true"], .language-options button:hover { background: color-mix(in srgb, var(--pastel-pink) 55%, white); }
.language-options button:focus-visible { outline-offset: -3px; border-radius: .55rem; }
.cart-button {
  position: fixed; z-index: 9; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: clamp(62px, 11vw, 82px); aspect-ratio: 1; padding: 0;
  border: 0; border-radius: 12px; background: transparent;
  font: 500 1rem/1.2 'Fredoka', 'Arial Rounded MT Bold', sans-serif;
  transition: transform .2s ease;
}
.cart-button img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 2px #51323e24); }
.bag-count {
  position: absolute; top: 7%; right: 4%; display: grid; place-items: center;
  min-width: 24px; height: 24px; padding-inline: 4px; border-radius: 50%;
  background: #fda8bf; color: #39212a; border: 2px solid #fff;
  font-size: .85rem; font-weight: 600; line-height: 1;
}
.cart-button:hover { transform: translateY(-3px); }
.sky {
  position: fixed; inset: 0; overflow: hidden; pointer-events: none;
  isolation: isolate;
  background: radial-gradient(ellipse at 48% 39%, var(--pastel-pink) 14%, var(--baby-pink) 74%, var(--bubblegum-tint) 122%);
}
.sky::before {
  content: ''; position: absolute; inset: -2%;
  background: url('assets/pink-clouds.jpg') center / cover no-repeat;
  mix-blend-mode: luminosity;
  opacity: .47;
  animation: cloud-drift 26s ease-in-out infinite alternate;
}
.paper::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: var(--paper-grain) center / 460px auto;
  mix-blend-mode: multiply; opacity: .56;
}
.halo {
  position: absolute; inset: -28%; opacity: .3;
  background:
    radial-gradient(ellipse at 35% 64%, #ffe0e9 0%, transparent 28%),
    radial-gradient(ellipse at 67% 30%, #ffe3ec 0%, transparent 33%),
    radial-gradient(ellipse at 69% 65%, #fda8bf38 0%, transparent 38%);
  animation: drift 19s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(7%, -4%) rotate(8deg) scale(1.08); } }
@keyframes cloud-drift { to { transform: translate(-.8%, 1%) scale(1.025); } }
.stars { position: absolute; inset: 0; }
.particle {
  position: absolute; width: var(--size); aspect-ratio: 1; border-radius: 50%;
  background: #fffdf6; box-shadow: 0 0 9px 2px #fff9ed99;
  animation: twinkle var(--time) var(--delay) ease-in-out infinite both;
}
.particle.cross { clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); border-radius: 0; }
@keyframes twinkle {
  0%, 100% { transform: translateY(6px) scale(.65); opacity: .27; }
  50% { transform: translateY(-12px) scale(1.12); opacity: .91; }
}
main { position: relative; min-height: 100svh; display: grid; place-items: center; }
.mail {
  width: 100%; min-height: 100svh; padding: 32px 18px;
  display: grid; place-items: center;
}
.mail.is-leaving {
  opacity: 0; transform: scale(.98); pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}
.stage {
  width: min(69vw, 580px, 96svh); position: relative;
  height: clamp(300px, 66svh, 570px); display: grid; align-items: center;
}
.glint { position: absolute; color: #fff9ee; text-shadow: 0 0 15px #bd6b9e7d; pointer-events: none; animation: twinkle 6s ease-in-out infinite both; }
.glint-one { left: -7%; top: 30%; font-size: clamp(22px, 4vw, 53px); }
.glint-two { right: -9%; top: 16%; font-size: clamp(21px, 3vw, 45px); animation-delay: -2s; }
.glint-three { right: -6%; bottom: 12%; font-size: clamp(24px, 3.6vw, 50px); animation-delay: -3s; }
.glint-four { left: 5%; bottom: 5%; font-size: clamp(15px, 2vw, 30px); animation-delay: -1s; }
.envelope { width: 100%; aspect-ratio: 1.6; perspective: 1450px; transform: translateY(2%) rotate(-4deg); transition: transform .94s cubic-bezier(.37,.04,.26,1); }
.turn { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .84s cubic-bezier(.51,.04,.24,1); }
.front, .back { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 3px; backface-visibility: hidden; }
.front, .lining {
  background: linear-gradient(145deg, #fff 2%, #fdfcfb 57%, #f2eeeb);
  box-shadow: 0 24px 38px -15px #793d4d62, 0 7px 11px -6px #723d4b58, inset 0 0 0 1px #865b4b29;
}
.front { border: 0; padding: 0; text-align: center; transition: box-shadow .3s; }
.front:hover { box-shadow: 0 33px 58px -16px #793d4d78, 0 10px 19px -8px #723d4b68, inset 0 0 0 1px #c9969b30; }
.sender {
  position: absolute; left: 10%; right: 10%; top: 52%; transform: translateY(-50%);
  display: grid; font-family: var(--script); color: #78344b;
}
.sender span {
  font-size: clamp(1.1rem, 2.6vw, 1.9rem); line-height: 1;
}
.sender strong { font-size: clamp(2rem, min(7.9vw, 10svh), 5.9rem); line-height: 1.03; font-weight: 400; white-space: nowrap; }
.bow {
  position: absolute; width: 29%; left: -6%; bottom: -11%; rotate: -13deg; pointer-events: none;
  filter: drop-shadow(0 8px 5px #78394b46);
  transition: opacity .25s ease;
}
.back { transform: rotateY(180deg); isolation: isolate; }
.lining, .flap, .pocket { position: absolute; inset: 0; border-radius: inherit; }
.lining { background: linear-gradient(156deg, #d6c7c1, #efe9e2 70%); }
.flap {
  height: 66%; z-index: 4; transform-origin: top;
  clip-path: polygon(0 0, 100% 0, 83% 39%, 60% 89%, 55% 96%, 51% 99%, 49% 99%, 45% 96%, 40% 89%, 17% 39%);
  background: linear-gradient(174deg, #cfc1b9 0%, #f3ece6 10%, #fbf9f5 54%, #f4eee8 100%);
  transition: transform .64s .68s cubic-bezier(.33,.11,.22,1), z-index 0s 1.02s;
}
.pocket { z-index: 3; overflow: hidden; pointer-events: none; }
.fold, .fold-bottom > span { position: absolute; inset: 0; }
.fold-left {
  clip-path: polygon(0 0, 59% 64%, 0 100%);
  background: linear-gradient(127deg, #fefdfae0, #e3dad3eb), var(--paper-grain) center / 460px auto;
}
.fold-right {
  clip-path: polygon(100% 0, 100% 100%, 42% 66%);
  background: linear-gradient(221deg, #fbf9f6e0, #dbd1c9eb), var(--paper-grain) center / 460px auto;
}
.fold-bottom { z-index: 1; filter: drop-shadow(0 -2px 3px #6550475e); }
.fold-bottom > span {
  clip-path: polygon(0 100%, 32% 57%, 45% 43%, 48% 41%, 52% 41%, 55% 43%, 68% 57%, 100% 100%);
  background: linear-gradient(160deg, #fffef9ad 50%, #e8dfd7a8), var(--paper-grain) center / 460px auto;
}
.letter {
  position: absolute; z-index: 2; left: 9%; top: 5%; width: 82%; height: 95%; border-radius: 3px;
  background: linear-gradient(125deg, #fffffd, #faf5ed);
  box-shadow: 0 3px 13px #53373253, inset 0 0 0 1px #8f6a5533;
  display: grid; place-items: center; text-align: center; padding-inline: 4%; opacity: 0;
  transition: transform .82s var(--letter-rise-delay) cubic-bezier(.21,.56,.24,1), opacity .32s var(--letter-rise-delay);
}
.letter-sparks {
  position: absolute; z-index: 1; top: 1%; left: 50%; pointer-events: none;
  --spark-width: clamp(96px, 30vmin, 268px);
  --spark-lift: clamp(42px, 10vmin, 95px);
}
.letter-spark {
  position: absolute; width: var(--spark-size); height: var(--spark-size); opacity: 0; border-radius: 50%;
  background: #fffcee; box-shadow: 0 0 6px 1px #dd9b57ae;
}
.letter-spark:nth-child(4n):not(.letter-spark-star) { background: #f7b0bd; box-shadow: 0 0 5px #ef889eaa; }
.letter-spark-star {
  background: transparent; box-shadow: none;
  filter: drop-shadow(0 0 3px #bc7329a8);
}
.letter-spark-star::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle, #fff 8%, #fff5d0 33%, #e7a54e 77%);
  clip-path: polygon(50% 0, 57% 40%, 100% 50%, 57% 60%, 50% 100%, 43% 60%, 0 50%, 43% 40%);
}
.letter-spark-lead { filter: drop-shadow(0 0 5px #c67f42bd); }
.letter-spark-lead::after {
  content: ''; position: absolute; inset: 22%;
  background: #fff9db; transform: rotate(45deg);
  clip-path: polygon(50% 0, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0 50%, 44% 44%);
}
body:is([data-scene="opening"], [data-scene="open"]) .letter-spark {
  animation: letter-spark-flight var(--spark-duration) calc(var(--letter-rise-delay) + 110ms + var(--spark-delay)) both;
}
@keyframes letter-spark-flight {
  0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; animation-timing-function: ease-out; }
  16% { transform: translate(calc(-50% + var(--spark-width) * var(--spark-x-0)), calc(-50% + var(--spark-lift) * var(--spark-y-0))) rotate(10deg) scale(1); opacity: .95; animation-timing-function: linear; }
  35% { transform: translate(calc(-50% + var(--spark-width) * var(--spark-x-1)), calc(-50% + var(--spark-lift) * var(--spark-y-1))) rotate(25deg) scale(.76); opacity: .83; animation-timing-function: linear; }
  55% { transform: translate(calc(-50% + var(--spark-width) * var(--spark-x-2)), calc(-50% + var(--spark-lift) * var(--spark-y-2))) rotate(40deg) scale(1.02); opacity: .95; animation-timing-function: linear; }
  76% { transform: translate(calc(-50% + var(--spark-width) * var(--spark-x-3)), calc(-50% + var(--spark-lift) * var(--spark-y-3))) rotate(64deg) scale(.94); opacity: .92; animation-timing-function: ease-out; }
  100% { transform: translate(calc(-50% + var(--spark-width) * var(--spark-x-4)), calc(-50% + var(--spark-lift) * var(--spark-y-4))) rotate(87deg) scale(.3); opacity: 0; }
}
h2 { position: relative; margin: .18em 0 .22em; font-size: clamp(1.65rem, min(6.6vw, 8svh), 4.5rem); line-height: .94; letter-spacing: -.055em; font-weight: 400; }
.letter h2 {
  margin: 0; font: 400 calc(clamp(1.65rem, min(8vw, 10svh), 4.4rem) * var(--greeting-scale, 1)) / .86 var(--script);
  letter-spacing: 0; color: #000;
}
:root:lang(fr), :root:lang(nl) { --greeting-scale: .86; }
.enter {
  position: relative;
  border: 0; background: transparent; padding: .08em .15em .19em;
}
.hamster {
  position: absolute; right: -7%; top: 4%; width: 33%; z-index: 2;
  pointer-events: none; isolation: isolate;
  transition: opacity .28s ease, visibility 0s .28s;
  animation: fairy-float 4.2s ease-in-out infinite alternate;
}
.hamster img { display: block; width: 100%; filter: drop-shadow(0 8px 7px #954d5b31); }
.hamster span {
  position: absolute; color: #fff8db; text-shadow: 0 0 9px #d48c67;
  animation: twinkle 3.4s ease-in-out infinite both;
}
.hamster span:nth-of-type(1) { right: 10%; top: 8%; font-size: clamp(.9rem, 2vw, 1.7rem); }
.hamster span:nth-of-type(2) { right: -1%; top: 22%; animation-delay: -1.1s; }
.hamster span:nth-of-type(3) { right: 20%; top: 2%; font-size: .58rem; animation-delay: -2s; }
body:is([data-scene="opening"], [data-scene="open"]) .envelope { transform: translateY(25%) rotate(1deg); }
body:is([data-scene="opening"], [data-scene="open"]) .turn { transform: rotateY(180deg); }
body:is([data-scene="opening"], [data-scene="open"]) .flap { transform: rotateX(177deg); z-index: 1; }
body:is([data-scene="opening"], [data-scene="open"]) .letter { transform: translateY(-66%) rotate(-1deg); opacity: 1; }
body:not([data-scene="closed"]) :is(.hamster, .bow) { opacity: 0; }
body:not([data-scene="closed"]) .hamster { visibility: hidden; }
.wishlist {
  min-height: 100svh; width: 100%; background: #fff; color: #2f2028;
  padding: 62px 0 96px;
  font: 500 1rem/1.4 'Fredoka', 'Arial Rounded MT Bold', sans-serif;
}
.wishlist-shell { margin: auto; animation: appear .55s ease-out both; }
@media (hover: hover) and (pointer: fine) {
  body { cursor: url('assets/fuzzy-pink-cursor.png') 8 2, auto; }
  :is(.mail, .wishlist, .language-picker) :is(button:not(:disabled), a),
  .cart-button {
    cursor: url('assets/fuzzy-pink-cursor.png') 8 2, pointer;
  }
}
.cursor-fluff {
  position: fixed; z-index: 20; width: 13px; height: 9px; opacity: 0;
  background: url('assets/fuzzy-pink-cursor.png') 56% 46% / 32px;
  mask-image: radial-gradient(ellipse, #000 30%, transparent 71%);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .cursor-fluff { display: none; }
}
.wishlist:has(.wishlist-hero:not([hidden])) { padding-top: 0; }
.wishlist-hero {
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center;
  min-height: clamp(192px, 35vw, 286px); padding: 66px 8vw 34px; overflow: clip;
  background:
    radial-gradient(ellipse at 50% 66%, #fff6f9c9, transparent 71%),
    repeating-linear-gradient(90deg, #ffd3df 0 28px, #ffe6ee 28px 56px);
}
.wishlist-hero::after {
  content: ''; position: absolute; z-index: -1; inset: auto 0 0; height: 18px;
  background: radial-gradient(circle at 50% 100%, #fff 0 14px, transparent 14.75px) center bottom / 28px 18px repeat-x;
  pointer-events: none;
}
.gift-info h2 {
  margin: 0; font: inherit; font-size: clamp(1.34rem, 3.8vw, 2rem); line-height: 1.1;
  letter-spacing: -.025em; text-align: center;
}
.wishlist-hero h2 {
  z-index: 1; max-width: 12ch; margin: 0;
  color: #472635; text-align: center;
  font: 600 clamp(1.85rem, 6vw, 4.5rem)/.98 'Fredoka', 'Arial Rounded MT Bold', sans-serif;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.wishlist-title-art { display: none; }
.wishlist-hero .has-title-art {
  width: clamp(152px, 55vw, 455px);
  max-width: none;
}
.wishlist-hero .has-title-art .wishlist-title-art {
  display: block; width: 100%; max-height: 178px; object-fit: contain;
}
.wishlist-hero .has-title-art span {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
@media (min-width: 900px) {
  .wishlist-hero h2 { white-space: nowrap; max-width: none; }
  .wishlist-hero .has-title-art { width: min(57vw, 49rem); }
}
.wishlist-mascot { width: clamp(56px, 14vw, 136px); flex: none; margin-inline-start: clamp(6px, 2vw, 26px); }
.wishlist-mascot img { display: block; width: 100%; transform: rotate(8deg); }
.wishlist-confetti { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.wishlist-sticker { position: absolute; width: clamp(19px, 4.4vw, 55px); aspect-ratio: 1; object-fit: contain; }
.gem-pink { top: 25%; left: 8%; width: clamp(25px, 5.5vw, 76px); rotate: -13deg; }
.gummy-amber { bottom: 18%; left: 13%; rotate: -22deg; }
.gem-gold { top: 19%; left: 19%; width: clamp(15px, 3vw, 38px); rotate: 17deg; }
.gummy-pink { top: 34%; right: 7%; rotate: 19deg; }
.gem-blue { bottom: 17%; right: 9%; width: clamp(21px, 4.6vw, 59px); rotate: 12deg; }
.gummy-blue { bottom: 10%; right: 16%; width: clamp(14px, 3vw, 35px); rotate: -18deg; }
@media (max-width: 480px) {
  .gem-pink { top: 26%; left: 5%; }
  .gummy-amber { bottom: 13%; left: 7%; }
  .gem-gold { top: 17%; left: 17%; }
  .gummy-pink { top: 37%; right: 3%; }
  .gem-blue { bottom: 15%; right: 4%; }
  .gummy-blue { bottom: 7%; right: 13%; }
}
.wishlist-note {
  width: fit-content; max-width: min(calc(100% - 28px), 40rem);
  margin: clamp(16px, 3vw, 26px) auto 0; padding: .7rem 1rem;
  border-radius: 16px; background: #fff0f5; color: #57424b;
  text-align: center; font-weight: 400;
}
.wishlist-hero[hidden] + .wishlist-note { display: none; }
.wishlist-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 24px);
  width: min(calc(100% - 28px), 68rem); margin: clamp(16px, 3vw, 30px) auto 0;
}
@media (min-width: 680px) {
  .wishlist-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.gift-card {
  position: relative; display: grid; align-content: start; text-align: left; padding: 0; min-width: 0;
  border: 0; border-radius: 14px; background: transparent;
  transition: transform .3s cubic-bezier(.22,.66,.28,1);
}
.gift-card-copy { display: grid; gap: 2px; padding: .6rem .1rem .7rem; overflow-wrap: anywhere; }
.gift-card strong { font-weight: 500; font-size: clamp(.87rem, 2.55vw, 1.19rem); line-height: 1.22; transition: color .2s ease; }
.gift-card .gift-meta { font-size: clamp(.75rem, 2.25vw, .9rem); }
.gift-card .gift-price { font-size: clamp(.82rem, 2.45vw, 1.02rem); }
.gift-photo {
  display: block; overflow: hidden; border-radius: 20px;
  background: #fff;
}
.gift-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gift-card .gift-photo { aspect-ratio: 1; border-radius: clamp(10px, 2vw, 18px); }
.gift-card .gift-photo img { transition: transform .42s cubic-bezier(.2,.67,.28,1); }
.gift-card[data-gift="kraftgeek-glowring"] img { padding: clamp(4px, 2vw, 16px); }
.gift-card::after {
  content: ''; position: absolute; top: 8%; right: 8%; width: 18px; aspect-ratio: 1;
  background: #e7b45a; pointer-events: none; opacity: 0;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gift-card:hover { transform: translateY(-5px); }
  .gift-card:hover .gift-photo img { transform: scale(1.075); }
  .gift-card:hover strong { color: var(--deep-pink); }
  .gift-card:hover::after { animation: gift-glint .62s ease-out both; }
}
@keyframes gift-glint {
  0% { opacity: 0; transform: translateY(5px) rotate(-20deg) scale(.3); }
  45% { opacity: 1; transform: translateY(0) rotate(10deg) scale(1.15); }
  100% { opacity: .72; transform: translateY(-3px) rotate(0) scale(.85); }
}
.gift-meta { color: #695460; font-size: .9rem; }
.gift-price { margin: 2px 0 0; font-size: 1.02rem; }
.gift-detail { width: min(calc(100% - 32px), 62rem); margin: auto; }
.icon-back {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: .7rem;
  padding: 0; border: 0; border-radius: 50%;
  background: #fff6f9; color: #f24f80;
  transition: background .2s ease;
}
.icon-back span { position: relative; width: 16px; height: 16px; }
.icon-back span::before, .icon-back span::after {
  content: ''; position: absolute; inset: 50% 0 auto; height: 2.5px; border-radius: 3px;
  background: currentColor; transform: translateY(-50%) rotate(45deg);
}
.icon-back span::after { transform: translateY(-50%) rotate(-45deg); }
.icon-back:hover { background: #ffeff4; }
.gift-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(20px, 4vw, 44px); }
.gift-detail .gift-photo { align-self: start; aspect-ratio: 1; }
.gift-info { align-self: start; }
.gift-info h2 { font-size: clamp(1.65rem, 3.8vw, 2.55rem); text-align: left; }
.gift-info p, .gift-claim p { margin: .5rem 0; }
.shop-link {
  display: grid; place-items: center; min-height: 44px; margin-top: 1rem;
  border: 1px solid var(--bubblegum-tint); border-radius: 999px;
  background: #fff; color: #44202e; text-decoration: none;
}
.shop-link:hover { border-color: var(--deep-pink); }
.gift-claim {
  margin-top: 1.35rem;
  padding: clamp(.95rem, 3vw, 1.4rem);
  border-radius: 22px;
  background: #fff0f5;
}
.claim-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(46px, 12vw, 75px);
  align-items: center;
  gap: .8rem;
}
.gift-claim h3 { margin: 0; font-size: clamp(1.2rem, 3vw, 1.55rem); font-weight: 600; line-height: 1.15; }
.gift-claim .claim-note p { margin: .4rem 0 0; color: #57424b; font-weight: 400; }
.claim-mascot img { width: 100%; display: block; transform: rotate(5deg); }
[data-claim-state="planned"] .claim-mascot img, [data-claim-state="bought"] .claim-mascot img {
  animation: claim-pop .48s ease-out both;
}
@keyframes claim-pop {
  0%, 100% { transform: rotate(5deg) scale(1); }
  45% { transform: rotate(-6deg) scale(1.1); }
}
.claim-controls { margin-top: 1rem; }
.claim-status { color: #633046; }
.claim-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.claim-actions button, .claim-retry {
  min-height: 44px; border: 1px solid #edb6c7; border-radius: 999px;
  background: #fff; padding: .45em 1em; color: #3c1726;
  transition: background-color .2s ease;
}
.claim-actions button[data-claim="bought"] { background: var(--pastel-pink); border-color: transparent; }
.claim-actions button:hover:not(:disabled), .claim-retry:hover { background: #ffe0e9; }
.claim-actions button[data-claim="bought"]:hover:not(:disabled) { background: var(--baby-pink); }
.claim-actions button:disabled { opacity: .65; cursor: default; }
.name-dialog {
  width: min(calc(100% - 32px), 26rem); max-width: none;
  padding: 1.35rem; border: 1px solid #f2c7d5; border-radius: 22px;
  background: #fff2f6; color: #32232b; font: 400 1rem/1.4 'Fredoka', sans-serif;
}
.name-dialog::backdrop { background: #37222d65; }
.name-dialog h2 { margin: 0; letter-spacing: 0; font: 600 1.55rem/1.1 'Fredoka', sans-serif; }
.name-dialog p { margin: .55rem 0 1rem; }
.name-dialog label { display: block; font-weight: 500; }
.name-dialog input {
  width: 100%; min-height: 44px; margin-top: .3rem; padding: .5rem .75rem;
  border: 1px solid #ba8398; border-radius: 12px; background: white;
  color: inherit; font: inherit;
}
.name-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.name-dialog-actions button {
  min-height: 44px; padding: .45rem .85rem; border-radius: 999px;
  border: 1px solid transparent; background: var(--pastel-pink);
}
.name-dialog-actions .name-cancel { border-color: #edb6c7; background: white; }
.gift-cart { width: min(calc(100% - 32px), 32rem); margin-inline: auto; }
.gift-cart h2 { margin: .1rem 0 1rem; text-align: center; font: 500 clamp(1.6rem, 4.4vw, 2.3rem)/1.1 'Fredoka', sans-serif; }
.cart-notice { text-align: center; margin: 1.35rem 0; }
.cart-retry { display: block; margin: 0 auto 1rem; }
.receipt-machine { width: min(100%, 29rem); margin: 0 auto; }
.receipt-printer {
  position: relative; z-index: 2; height: clamp(46px, 12vw, 66px);
  border-radius: 14px; border: 1px solid #a4a2a3;
  background: linear-gradient(173deg, #f7f5f6 3%, #d9d6d8 22%, #e1dfe0 42%, #aaa7aa 92%);
  box-shadow: inset 0 2px 3px #fff, inset 0 -2px 3px #807c80, 0 4px 11px #41303940;
}
.receipt-printer::before {
  content: ''; position: absolute; top: 10px; right: 15px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--bubblegum-pink); box-shadow: 0 0 6px #ff5c89a8;
}
.receipt-printer::after {
  content: ''; position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  width: min(92%, 25.5rem); height: 7px; border-radius: 999px;
  background: linear-gradient(#333033, #5c555b); box-shadow: 0 2px 2px #faf8f9a1;
}
.receipt-output { position: relative; margin-top: -12px; padding: 0 3px 30px; overflow: clip; }
.claim-receipt {
  position: relative; width: min(90%, 24rem); margin: 0 auto;
  display: flex; flex-direction: column; min-height: 27rem;
  padding: 1.65rem clamp(.9rem, 4vw, 1.45rem) 1.35rem;
  border: 1px solid #f0e1e7; border-bottom: 0; background: #fff;
  box-shadow: 0 12px 30px #a8536b2e; color: #33212a; font: 400 1rem/1.4 'Courier New', monospace;
}
.gift-cart:not([hidden]) .receipt-machine:not([hidden]) .claim-receipt { animation: print-receipt 1.05s linear both; }
@keyframes print-receipt {
  0% { transform: translateY(calc(-100% - 8px)); }
  29%, 35% { transform: translateY(-69%); }
  65%, 71% { transform: translateY(-30%); }
  100% { transform: translateY(0); }
}
.claim-receipt::after {
  content: ''; position: absolute; inset: auto -1px -8px; height: 8px;
  background: conic-gradient(from 135deg at 50% 0%, #fff 0deg 90deg, transparent 90deg 360deg) 0 0 / 16px 8px repeat-x;
}
.receipt-heading { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.receipt-heading h3 { margin: 0; font: inherit; font-weight: 700; text-transform: uppercase; color: var(--deep-pink); }
.receipt-heading span { font: 500 1.55rem/1 'Fredoka', sans-serif; color: var(--deep-pink); }
.receipt-owner { margin: .65rem 0 0; display: flex; align-items: baseline; gap: .7rem; overflow-wrap: anywhere; }
.receipt-owner span { color: #674a59; }
.receipt-items { margin: .85rem 0 .4rem; border-top: 1px dashed #ae8296; }
.receipt-entry { padding: .78rem 0 .9rem; border-bottom: 1px dashed #ae8296; }
.receipt-entry h4 { margin: 0; font-weight: 700; }
.receipt-lines { display: grid; gap: .42rem; margin: .5rem 0; }
.receipt-lines div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: .65rem; }
.receipt-lines dt { color: #674a59; }
.receipt-lines dd { margin: 0; text-align: right; font-weight: 700; }
.receipt-status { color: var(--deep-pink); }
.receipt-end {
  display: flex; align-items: center; justify-content: space-between; gap: .7rem;
  margin-top: auto; padding-top: .55rem;
}
.receipt-end img { width: 62px; transform: rotate(8deg); }
.receipt-barcode {
  width: 75%; height: 35px; color: var(--deep-pink);
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 3px, currentColor 3px 4px, transparent 4px 7px, currentColor 7px 10px, transparent 10px 13px, currentColor 13px 14px, transparent 14px 16px);
}
.receipt-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.receipt-actions button {
  min-height: 44px; padding: .42rem .65rem;
  border: 1px solid var(--bubblegum-tint); border-radius: 999px; background: #fff; color: #68334b;
  font: 500 1rem/1.2 'Fredoka', sans-serif;
}
.receipt-gift { flex: 1 1 max-content; }
.receipt-remove { flex: 0 1 auto; }
.receipt-actions button:hover:not(:disabled) { background: color-mix(in srgb, var(--pastel-pink) 45%, white); }
.receipt-remove:disabled { opacity: .6; cursor: default; }
@media (max-width: 620px) {
  .gift-detail-layout { grid-template-columns: 1fr; }
  .gift-detail .gift-photo { max-height: 460px; }
}
@keyframes appear { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes fairy-float { to { transform: translateY(-10px) rotate(3deg); } }
@media (max-width: 550px) {
  .stage { width: min(80vw, 90svh); height: clamp(300px, 56svh, 500px); }
  .mail { padding-inline: 15px; }
  .hamster { width: 40%; right: -3%; }
  .sender strong { font-size: clamp(1.9rem, 10vw, 3.65rem); }
  .letter h2 { font-size: calc(clamp(1.65rem, min(9.5vw, 12svh), 3.2rem) * var(--greeting-scale, 1)); }
  h2 { font-size: clamp(1.5rem, 7.5vw, 2.65rem); }
}
@media (max-width: 370px) {
  .language-picker { width: 8rem; }
}
@media (orientation: portrait) {
  .sky::before { background-image: url('assets/pink-clouds-portrait.jpg'); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
