:root {
  --pink: #ff5fa2;
  --pink-dark: #d63384;
  --pink-soft: #ffd6e8;
  --purple: #9b5de5;
  --purple-dark: #6a2fb8;
  --lilac: #e9d8ff;
  --ink: #4a1940;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }

body {
  font-family: 'Fredoka', system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #ffe3f1 0%, #f6d9ff 45%, #e3d4ff 100%);
  overflow: hidden;
  min-height: 100dvh;
}

#bg, #fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#fx { z-index: 50; }

.hidden { display: none !important; }

.app {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin: 0 auto;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(14px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
}

/* ===== raccoon + speech bubble ===== */

.guide {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-height: 190px;
  flex-shrink: 0;
  transition: min-height .5s ease;
}
.guide.small { min-height: 118px; }

.bubble {
  flex: 1;
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 14px 16px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(155, 93, 229, .18);
  margin-bottom: 70px;
  min-height: 62px;
  transition: margin .5s ease, font-size .3s;
}
.guide.small .bubble { margin-bottom: 30px; font-size: 15px; padding: 11px 14px; }
.bubble::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 22px;
  border: 10px solid transparent;
  border-left-color: #fff;
  border-right: 0;
}
.bubble .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--pink);
  vertical-align: -2px;
  animation: blink .7s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.raccoon-wrap {
  position: relative;
  width: 100px;
  flex-shrink: 0;
  transition: width .5s ease;
}
.guide.small .raccoon-wrap { width: 60px; }
.raccoon-wrap::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -4px;
  height: 12px;
  background: radial-gradient(ellipse, rgba(74, 25, 64, .28), transparent 70%);
  animation: shadow 3s ease-in-out infinite;
}
@keyframes shadow { 50% { transform: scaleX(.9); opacity: .8; } }

.raccoon {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 100%;
  animation: breathe 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 6px rgba(74, 25, 64, .15));
}
@keyframes breathe {
  0%, 100% { transform: scale(1, 1) rotate(0deg); }
  30% { transform: scale(1.01, 1.025) rotate(-1.5deg); }
  65% { transform: scale(.995, 1.005) rotate(1.2deg); }
}

.raccoon.talk { animation: talk .32s ease-in-out infinite alternate; }
@keyframes talk {
  from { transform: translateY(0) rotate(-1deg); }
  to { transform: translateY(-3px) rotate(1.5deg) scaleY(1.02); }
}

.raccoon.hop { animation: hop .9s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hop {
  15% { transform: scale(1.08, .9); }
  40% { transform: translateY(-46px) scale(.95, 1.08) rotate(-6deg); }
  65% { transform: translateY(0) scale(1.08, .92); }
  80% { transform: translateY(-10px); }
  100% { transform: none; }
}

.raccoon.nope { animation: nope .6s ease; }
@keyframes nope {
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(7deg); }
  60% { transform: rotate(-5deg); }
  80% { transform: rotate(3deg); }
}

.raccoon.spin { animation: spin 1s cubic-bezier(.5, -.3, .4, 1.4); }
@keyframes spin {
  50% { transform: translateY(-30px) scaleX(-1); }
  100% { transform: scaleX(1); }
}

.raccoon.sleepy { animation: sleepy 4s ease-in-out infinite; filter: grayscale(.3) drop-shadow(0 4px 6px rgba(74, 25, 64, .15)); }
@keyframes sleepy { 50% { transform: rotate(4deg) scaleY(.97); } }

/* ===== screens ===== */

.stage { flex: 1; position: relative; min-height: 0; }

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(24px) scale(.98);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, 1.3, .4, 1), visibility 0s .55s;
}
.screen.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, 1.3, .4, 1);
}

.stack { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; }

.title { font-size: 30px; font-weight: 700; margin: 0; text-align: center; line-height: 1.15; }
.lock-date { margin: 10px auto 0; text-align: center; font-weight: 600; color: var(--purple);
  background: rgba(255,255,255,.65); border: 1px solid rgba(155,93,229,.25);
  padding: 5px 14px; border-radius: 999px; width: fit-content; box-shadow: 0 2px 10px rgba(155,93,229,.12); }
.lock-date:empty { display: none; }
.title .g {
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--pink));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 3s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.big-emoji { font-size: 74px; animation: float 2.4s ease-in-out infinite; }
.lock-icon { font-size: 54px; animation: float 2.6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(5deg); } }

.muted { opacity: .75; font-size: 15px; text-align: center; line-height: 1.5; margin: 0; white-space: pre-line; }
.tries { font-size: 14px; opacity: .7; min-height: 18px; }
.err { color: #e63968; font-size: 14px; min-height: 18px; margin: -6px 0 0; }

.field {
  width: 100%;
  font: inherit;
  font-size: 18px;
  padding: 15px 18px;
  border-radius: 999px;
  border: 3px solid var(--pink-soft);
  background: #fff;
  color: var(--ink);
  outline: none;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.field:focus { border-color: var(--pink); box-shadow: 0 0 0 6px rgba(255, 95, 162, .15); }
.field.wrong { animation: wrong .45s; border-color: #ff4d6d; }
@keyframes wrong {
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

textarea.field {
  text-align: left;
  border-radius: 20px;
  border-color: var(--lilac);
  resize: none;
  min-height: 160px;
  font-size: 17px;
  padding: 16px;
}
textarea.field:focus { border-color: var(--purple); box-shadow: 0 0 0 6px rgba(155, 93, 229, .15); }

/* ===== the cute button ===== */

.cute-btn {
  position: relative;
  font: inherit;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  border: 0;
  cursor: pointer;
  padding: 15px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
  box-shadow: 0 6px 0 var(--purple-dark), 0 12px 24px rgba(155, 93, 229, .35);
  transition: transform .12s, box-shadow .12s;
  animation: btnbob 2.2s ease-in-out infinite;
  isolation: isolate;
}
@keyframes btnbob { 50% { transform: translateY(-4px); } }

/* raccoon ears on top of the button */
.cute-btn::before,
.cute-btn::after {
  content: '';
  position: absolute;
  top: -9px;
  width: 20px;
  height: 20px;
  border-radius: 6px 14px 4px 14px;
  border: 4px solid #fff;
  z-index: -1;
}
.cute-btn::before { left: 18px; transform: rotate(-20deg); background: var(--pink); }
.cute-btn::after { right: 18px; transform: rotate(20deg) scaleX(-1); background: var(--purple); }

.cute-btn:active {
  transform: translateY(5px) scale(.97);
  box-shadow: 0 1px 0 var(--purple-dark), 0 4px 10px rgba(155, 93, 229, .3);
  animation: none;
}
.cute-btn:disabled { filter: saturate(.5); opacity: .8; }

.cute-btn .shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.cute-btn .shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: sweep 2.6s ease-in-out infinite;
}
@keyframes sweep { 60%, 100% { left: 130%; } }

.cute-btn.pop-in { animation: popin .6s cubic-bezier(.3, 1.8, .5, 1) both, btnbob 2.2s .6s ease-in-out infinite; }
@keyframes popin { from { transform: scale(0) rotate(-12deg); opacity: 0; } }

.link-btn {
  font: inherit;
  background: none;
  border: 0;
  color: var(--purple-dark);
  text-decoration: underline;
  cursor: pointer;
  font-size: 15px;
  padding: 6px;
}

/* ===== message ===== */

.letter {
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  position: relative;
  background: #fffdfd;
  background-image: repeating-linear-gradient(transparent 0 calc(var(--lh, 31px) - 1px), #ffe0ef calc(var(--lh, 31px) - 1px) var(--lh, 31px));
  background-position: 0 22px;
  background-attachment: local;
  border-radius: 20px;
  padding: 22px 22px 18px;
  font-family: 'Caveat', 'Baloo Bhaijaan 2', cursive;
  font-size: var(--fs, 23px);
  line-height: var(--lh, 31px);
  color: #5b1d4f;
  box-shadow: 0 10px 30px rgba(214, 51, 132, .18);
  white-space: pre-line;
}
.letter .sign { text-align: left; margin-top: 10px; }
.letter .ar { font-family: 'Baloo Bhaijaan 2', sans-serif; font-size: var(--ar, 18px); line-height: var(--lh, 31px); }

.ring { width: 54px; height: 54px; position: relative; flex-shrink: 0; }
.ring svg { transform: rotate(-90deg); }
#ringArc { transition: stroke-dashoffset 1s linear; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; color: var(--purple-dark); }

/* the poem on the last screen */
.poem {
  width: 100%;
  font-family: 'Baloo Bhaijaan 2', 'Fredoka', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.9;
  text-align: center;
  white-space: pre-line;
  color: #5b1d4f;
  background: #fffdfd;
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: 0 10px 30px rgba(214, 51, 132, .18);
}
.poem:empty { display: none; }

/* ===== pop quiz ===== */

.dots { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; }
.dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--lilac);
  transition: all .3s;
}
.dots i.now { background: var(--purple); border-color: var(--purple); transform: scale(1.25); }
.dots i.ok { background: var(--pink); border-color: var(--pink); }
.dots i.skip { background: #ccc; border-color: #ccc; }

.riddle-card {
  width: 100%;
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 26px 20px 20px;
  text-align: center;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 500;
  box-shadow: 0 10px 28px rgba(155, 93, 229, .2);
  border: 3px dashed var(--lilac);
}
.riddle-card p { margin: 0; }
.riddle-card.in { animation: riddlein .6s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes riddlein { from { opacity: 0; transform: rotate(-4deg) scale(.85); } }
.riddle-card.solved { border-color: var(--pink); border-style: solid; }
.riddle-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 99px;
}

/* ===== murdoku ===== */

.screen.scroll {
  justify-content: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px;
}
.screen.scroll .title { font-size: 24px; margin-top: 4px; }
.mk { width: 100%; display: flex; flex-direction: column; gap: 12px; }

.mk-rules {
  background: #fff;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 6px 18px rgba(155, 93, 229, .12);
}
.mk-rules summary { font-weight: 600; cursor: pointer; }
.mk-rules ol { margin: 8px 0 2px; padding-left: 20px; }

.mk-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  aspect-ratio: 1;
  flex-shrink: 0;
  border: 4px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink);
  gap: 1px;
  user-select: none;
}
.mk-cell { position: relative; display: grid; place-items: center; cursor: pointer; }
.mk-K { background: #ffd6e8; }
.mk-L { background: #e9d8ff; }
.mk-O { background: #ffe6cc; }
.mk-B { background: #d4f5e6; }
.mk-wt { box-shadow: inset 0 3px 0 var(--ink); }
.mk-wl { box-shadow: inset 3px 0 0 var(--ink); }
.mk-wt.mk-wl { box-shadow: inset 0 3px 0 var(--ink), inset 3px 0 0 var(--ink); }
.mk-blocked {
  cursor: not-allowed;
  background-image: repeating-linear-gradient(45deg, rgba(74, 25, 64, .09) 0 6px, transparent 6px 12px);
}
.mk-thing { position: absolute; font-size: 19px; }
.mk-label { position: absolute; bottom: 1px; left: 0; right: 0; text-align: center; font-size: 9px; font-weight: 500; opacity: .6; }
.mk-room { position: absolute; top: 3px; left: 4px; font-size: 8.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; opacity: .55; }
.mk-has .mk-thing { top: 2px; left: 3px; font-size: 12px; }
.mk-has .mk-label, .mk-has .mk-room { display: none; }
.mk-person { font-size: 30px; z-index: 1; animation: mkdrop .25s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes mkdrop { from { transform: scale(.3); } }
.mk-x { font-size: 24px; font-weight: 700; color: var(--pink-dark); opacity: .7; }
.mk-clash { outline: 3px solid #ff3b6b; outline-offset: -3px; }

.mk-pieces { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.mk-piece {
  font: inherit;
  color: var(--ink);
  border: 2px solid transparent;
  background: #fff;
  border-radius: 14px;
  padding: 5px 7px 3px;
  min-width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(155, 93, 229, .15);
}
.mk-piece b { font-size: 24px; line-height: 1.1; }
.mk-piece span { font-size: 11px; font-weight: 500; }
.mk-on { border-color: var(--purple); background: #f3eaff; transform: translateY(-3px); }
.mk-placed { opacity: .45; }
.mk-placed.mk-on { opacity: 1; }
.mk-xtool b { color: var(--pink-dark); }

.mk-clues { background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: 0 6px 18px rgba(155, 93, 229, .12); }
.mk-clues summary { font-weight: 600; font-size: 16px; cursor: pointer; }
.mk-clues[open] summary { margin-bottom: 4px; }
.mk-clue { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-top: 1px dashed #ead9f5; font-size: 14.5px; line-height: 1.4; }
.mk-clue:first-child { border-top: 0; }
.mk-who { font-size: 20px; line-height: 1; }
.mk-ok { margin-left: auto; font-weight: 700; }
.mk-good .mk-ok { color: #1a9e62; }
.mk-bad .mk-ok { color: #e63968; }

.mk-actions, .mk-suspects { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.mk-btn {
  font: inherit;
  font-weight: 600;
  font-size: 14.5px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(155, 93, 229, .15);
}
.mk-main { background: linear-gradient(135deg, var(--pink), var(--purple)); color: #fff; box-shadow: 0 5px 0 var(--purple-dark); }
.mk-main:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--purple-dark); }

.mk-accuse {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  border: 3px solid var(--pink);
  box-shadow: 0 10px 28px rgba(214, 51, 132, .2);
  animation: popin .4s cubic-bezier(.3, 1.6, .5, 1);
}
.mk-accuse h4 { margin: 0 0 10px; font-size: 18px; }

#murdokuNext { flex-shrink: 0; margin-top: 4px; }

/* ===== cards ===== */

.cards { display: flex; gap: 12px; justify-content: center; width: 100%; perspective: 900px; }
.card {
  width: 31%;
  aspect-ratio: 3 / 4.4;
  position: relative;
  cursor: pointer;
  transition: transform .8s cubic-bezier(.3, 1.3, .5, 1), opacity .6s, width .7s, margin .7s;
  animation: hover 3s ease-in-out infinite;
}
.card:nth-child(2) { animation-delay: -1s; }
.card:nth-child(3) { animation-delay: -2s; }
@keyframes hover { 50% { transform: translateY(-10px) rotate(1.5deg); } }

.card .in { position: absolute; inset: 0; transition: transform .9s cubic-bezier(.4, 1.5, .5, 1); transform-style: preserve-3d; }
.card.flip .in { transform: rotateY(180deg); }

.face {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}
.front {
  background: linear-gradient(145deg, var(--purple), var(--pink));
  border: 4px solid #fff;
  box-shadow: 0 10px 22px rgba(106, 47, 184, .3);
  font-size: 54px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}
.front::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .35) 2px, transparent 2.5px);
  background-size: 16px 16px;
  opacity: .6;
}
.front::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: rotate(20deg);
  animation: cardshine 3.5s ease-in-out infinite;
}
@keyframes cardshine { 70%, 100% { left: 140%; } }
.front b { position: relative; z-index: 1; }
/* iPhone sometimes shows the front through the back while flipping, so hide it halfway */
.card.flip .front { visibility: hidden; transition: visibility 0s .4s; }

.back {
  background: #fff;
  transform: rotateY(180deg);
  border: 4px solid var(--pink-soft);
  box-shadow: 0 10px 22px rgba(214, 51, 132, .25);
}
.back .num {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}
.back h4 { margin: 6px 0 2px; font-size: 15px; color: var(--pink-dark); }
.back p { margin: 0; font-size: 12.5px; line-height: 1.3; opacity: .85; }
.back p span { display: block; }

.card.away { opacity: 0; transform: translateY(-140px) rotate(40deg) scale(.4); pointer-events: none; }
.card.away.l { transform: translate(-140px, -100px) rotate(-50deg) scale(.4); }
.card.gone { width: 0; margin: 0 -6px; }
.card.chosen { width: 64%; animation: none; }
.card.chosen .back h4 { font-size: 20px; }
.card.chosen .back p { font-size: 15px; }
.card.chosen .back .num { width: 56px; height: 56px; font-size: 26px; }

.cards.all { flex-direction: column; align-items: center; gap: 10px; }
.cards.all .card {
  width: 100%;
  aspect-ratio: auto;
  height: 86px;
  opacity: 1;
  transform: none;
  margin: 0;
  cursor: default;
  animation: slidein .7s cubic-bezier(.3, 1.4, .5, 1) both;
}
.cards.all .card:nth-child(2) { animation-delay: .15s; }
.cards.all .card:nth-child(3) { animation-delay: .3s; }
@keyframes slidein { from { opacity: 0; transform: translateX(80px) rotate(6deg); } }
.cards.all .back { flex-direction: row; gap: 12px; text-align: left; justify-content: flex-start; padding: 10px 16px; }
.cards.all .back .num { width: 42px; height: 42px; font-size: 20px; }
.cards.all .back h4 { font-size: 16px; margin: 0; }
.cards.all .back p { font-size: 13px; }

/* ===== hint pop-up ===== */

.hint-pop {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(74, 25, 64, .35);
  animation: fadein .25s ease;
}
@keyframes fadein { from { opacity: 0; } }
.hint-card {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 26px;
  padding: 22px 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 16px 40px rgba(106, 47, 184, .3);
  border: 3px solid var(--pink-soft);
  animation: popin .5s cubic-bezier(.3, 1.8, .5, 1);
}
.hint-card p { margin: 0 0 6px; font-size: 21px; font-weight: 600; }
.hint-eyes { font-size: 46px; animation: peek 1.6s ease-in-out infinite; }
@keyframes peek {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-8px); }
  60% { transform: translateX(8px); }
}

/* "time for your gifts?" pop-up */
.hint-card p.gift-ask { white-space: pre-line; font-size: 19px; line-height: 1.55; font-weight: 600; }
.gift-choices { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; padding-top: 8px; }

/* ===== photo booth ===== */
.booth-intro { font-size: 15px; margin-top: 2px; }
.booth { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.booth-stage { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.booth-frame {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 5px solid var(--pink);
  box-shadow: 0 10px 28px rgba(214, 51, 132, .22);
  background: #000;
}
.booth-video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.booth-photo { width: 100%; max-width: 320px; border-radius: 20px; box-shadow: 0 10px 28px rgba(214, 51, 132, .22); }
.booth-row { display: flex; gap: 12px; align-items: center; justify-content: center; }
.booth-mini {
  font: inherit; font-weight: 600; font-size: 15px;
  border: 0; border-radius: 999px; padding: 11px 18px; cursor: pointer;
  background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(155, 93, 229, .15);
}
.booth-note { font-size: 15px; text-align: center; color: var(--purple-dark); font-weight: 500; margin: 0; }
.booth-file { font: inherit; font-size: 14px; }

/* ===== extras ===== */

.music-btn {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  right: 10px;
  z-index: 40;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .85);
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(155, 93, 229, .25);
  cursor: pointer;
}
.music-btn.playing { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.1); } }

.test-bar {
  position: fixed;
  top: calc(6px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  background: rgba(74, 25, 64, .85);
  color: #fff;
  padding: 4px 6px 4px 12px;
  border-radius: 99px;
}
.test-bar select { font: inherit; font-size: 12px; border-radius: 99px; border: 0; padding: 3px 6px; }

@media (max-height: 640px) {
  .guide { min-height: 150px; }
  .bubble { font-size: 15px; margin-bottom: 50px; }
  .raccoon-wrap { width: 80px; }
  .title { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ===== intro screen ===== */
.guide.hide { display: none; }
#s-intro { gap: 16px; }
.intro-rac img { width: 120px; height: 120px; border-radius: 50%; object-fit: contain;
  background: rgba(255,255,255,.7); border: 3px solid rgba(255,255,255,.85);
  box-shadow: 0 14px 40px rgba(155,93,229,.28); padding: 8px; animation: rac-bob 3s ease-in-out infinite; }
@keyframes rac-bob { 0%,100% { transform: translateY(0) rotate(-3deg) } 50% { transform: translateY(-10px) rotate(3deg) } }
.intro-date { margin: 0 auto; }
.intro-title { font-size: 40px; }
.sub { margin: 0; }
.intro-sub { font-size: 20px; font-weight: 500; color: #7a4f74; margin: 2px 0 4px; }
.intro-go { margin-top: 4px; font-size: 19px; }
.reveal { opacity: 0; transform: translateY(22px) scale(.96); animation: rise .7s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0) scale(1) } }
.pop { opacity: 0; transform: scale(.6); animation: pp .6s cubic-bezier(.2,1.3,.4,1) forwards; }
@keyframes pp { to { opacity: 1; transform: scale(1) } }
