:root {
  --night: #140b26;
  --night-2: #1f1240;
  --plum: #3a1f5d;
  --rose: #ff6b9a;
  --peach: #ffb4a2;
  --lilac: #b8a4ff;
  --gold: #ffd27a;
  --cream: #fff4e6;
  --ink: #fff4e6;
  --ink-soft: rgba(255, 244, 230, .72);
  --ink-faint: rgba(255, 244, 230, .45);
  --glass: rgba(255, 255, 255, .06);
  --glass-2: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .14);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --smooth: cubic-bezier(.22, 1, .36, 1);
  --display: 'Fraunces', Georgia, serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --tint: var(--rose);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.locked-scroll { overflow: hidden; }
button { font: inherit; color: inherit; }
::selection { background: var(--rose); color: #fff; }

/* ── Sky background ─────────────────────────────── */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, #2a1650 0%, var(--night) 60%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.b1 { width: 55vmax; height: 55vmax; left: -15vmax; top: -20vmax; background: #6a2c8f; animation: drift1 26s ease-in-out infinite alternate; }
.b2 { width: 45vmax; height: 45vmax; right: -15vmax; top: 20vh; background: #c2416d; opacity: .35; animation: drift2 32s ease-in-out infinite alternate; }
.b3 { width: 50vmax; height: 50vmax; left: 10vw; bottom: -30vmax; background: #3b3a9e; opacity: .45; animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(12vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-14vw, 14vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(10vw, -12vh) scale(1.1); } }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ── Home ───────────────────────────────────────── */
.home { position: relative; z-index: 1; max-width: 880px; margin: 0 auto;
  padding: max(56px, env(safe-area-inset-top)) 16px 80px; }
.hero { text-align: center; }
.eyebrow { font-family: var(--hand); font-size: 1.5rem; color: var(--peach); margin: 0 0 4px; }
.title { font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 13vw, 7.5rem);
  line-height: .95; margin: 0; letter-spacing: -.02em; }
.title .split { display: inline-block; white-space: nowrap; }
.title .char { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(8deg) scale(.8);
  animation: charIn .9s var(--spring) forwards; }
.title .name .char { background: linear-gradient(120deg, var(--peach), var(--rose) 45%, var(--lilac));
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic; padding: 0 .12em .1em; margin: 0 -.12em -.1em; animation: charIn .9s var(--spring) forwards, shimmer 6s ease-in-out infinite alternate; }
.title .char.wave { animation: wave .7s var(--spring); opacity: 1; transform: none; }
@keyframes charIn { to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: 100% 0; } }
@keyframes wave { 40% { transform: translateY(-.2em) rotate(-6deg); } }
.sub { font-size: 1.1rem; color: var(--ink-soft); margin: 18px auto 0; max-width: 32ch; min-height: 1.6em; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--smooth), transform .9s var(--smooth); }
.reveal.in { opacity: 1; transform: none; }

.progress { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 22px;
  color: var(--ink-faint); font-size: .9rem; }
.progress-track { width: min(240px, 50vw); height: 6px; border-radius: 99px; background: var(--glass-2); overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--peach), var(--rose)); transition: width 1.4s var(--smooth); }

/* Home toys: fortune cookie + do-not-press button */
.toys { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 44px 0 20px; }
.toy { position: relative; text-align: center; padding: 20px 18px 22px; border-radius: 26px; border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.8); }
.toy-kicker { font-family: var(--hand); font-size: 1.45rem; line-height: 1.1; margin: 0 0 6px; color: var(--peach); }
.toy-hint { margin: 6px 0 0; color: var(--ink-faint); font-size: .92rem; min-height: 1.4em; transition: color .3s; }
.cookie { position: relative; width: 120px; height: 110px; border: 0; background: none; cursor: pointer; padding: 0; user-select: none; -webkit-user-select: none; }
.cookie .half { position: absolute; inset: 0; display: grid; place-items: center; font-size: 84px; line-height: 1;
  transition: transform .9s var(--spring), opacity .9s var(--smooth); filter: drop-shadow(0 10px 18px rgba(0,0,0,.4)); }
.cookie .left { clip-path: inset(0 50% 0 0); }
.cookie .right { clip-path: inset(0 0 0 50%); }
.cookie:hover:not(.cracked) .half { transform: rotate(-6deg) scale(1.05); }
.cookie.wobble { animation: wobble .4s; }
@keyframes wobble { 25% { transform: rotate(-14deg) scale(1.1); } 50% { transform: rotate(10deg) scale(.95); } 75% { transform: rotate(-5deg); } }
.cookie.cracked .left { transform: translate(-46px, 16px) rotate(-38deg); opacity: .85; }
.cookie.cracked .right { transform: translate(46px, 16px) rotate(38deg); opacity: .85; }
.slip { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .9s var(--smooth) .25s; }
.slip > p { overflow: hidden; margin: 0; }
.slip.open { grid-template-rows: 1fr; }
.slip.open > p { margin-top: 12px; padding: 12px 16px; background: #fffaf0; color: #5a2a1a; border-radius: 6px;
  font-family: var(--display); font-style: italic; font-size: 1.05rem; line-height: 1.35; box-shadow: 0 10px 30px -10px #000;
  transform: rotate(-1.5deg); animation: unroll .9s var(--spring) .3s backwards; }
@keyframes unroll { from { transform: scaleX(0) rotate(-1.5deg); } }
.red-wrap { display: grid; place-items: center; height: 130px; }
.red-btn { width: 112px; height: 112px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .06em; line-height: 1.2;
  background: radial-gradient(circle at 35% 30%, #ff7a7a, #d6153b 60%, #8f0a24);
  box-shadow: 0 10px 0 #6d0619, 0 18px 30px -6px rgba(214,21,59,.7), inset 0 -6px 12px rgba(0,0,0,.25);
  transition: transform .12s, box-shadow .12s; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.red-btn:hover { transform: translateY(-2px); }
.red-btn:active, .red-btn.pressed { transform: translateY(9px); box-shadow: 0 1px 0 #6d0619, 0 6px 16px -6px rgba(214,21,59,.7), inset 0 -4px 8px rgba(0,0,0,.25); }
.red-btn:disabled { filter: grayscale(1) brightness(.6); cursor: not-allowed; transform: translateY(9px) rotate(8deg); box-shadow: 0 1px 0 #333; }
.red-btn.flee { transition: transform .35s var(--spring); }
body.quake .home { animation: quake .5s; }
@keyframes quake { 10%, 50%, 90% { transform: translate(-6px, 3px) rotate(-.4deg); } 30%, 70% { transform: translate(6px, -3px) rotate(.4deg); } }

/* Trail of days */
.trail { position: relative; margin-top: 40px; }
.trail-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.trail-line path { fill: none; stroke: rgba(255,180,162,.5); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 2 12; animation: march 1.6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -28; } }
.days { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 34px; }
.day { display: flex; }
.day:nth-child(odd) { justify-content: flex-start; }
.day:nth-child(even) { justify-content: flex-end; }
.day-card { --tint: var(--rose); position: relative; width: min(360px, 82%); text-align: left; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center;
  padding: 18px 20px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(40px) scale(.96);
  transition: transform .6s var(--spring), box-shadow .4s, border-color .4s, opacity .8s var(--smooth); }
.day-card.in { opacity: 1; transform: none; }
.day-card.in:hover, .day-card.in:focus-visible { transform: translateY(-6px) scale(1.02); border-color: color-mix(in srgb, var(--tint) 60%, transparent);
  box-shadow: 0 30px 70px -25px color-mix(in srgb, var(--tint) 55%, transparent); outline: none; }
.day-card.in:active { transform: scale(.97); transition-duration: .15s; }
.orb { grid-row: span 3; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--tint) 90%, white), color-mix(in srgb, var(--tint) 50%, #2a1650));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--tint) 18%, transparent), 0 0 40px -6px var(--tint); }
.day-card.today .orb { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--tint) 10%, transparent), 0 0 60px 0 var(--tint); } }
.day-num { font-family: var(--hand); font-size: 1.3rem; line-height: 1; color: var(--tint); }
.day-name { font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.2; }
.day-status { font-size: .85rem; color: var(--ink-faint); }
.day-card.done .day-status { color: #9fe3c9; }
.day-card.locked { cursor: default; }
.day-card.locked .orb { filter: grayscale(.9) brightness(.6); box-shadow: none; }
.day-card.locked .day-name { filter: blur(5px); user-select: none; }
.day-card.locked.in:hover { transform: none; box-shadow: 0 24px 60px -30px rgba(0,0,0,.8); border-color: var(--line); }
.day-card.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.stamp { position: absolute; top: -10px; right: -8px; font-size: 1.6rem; transform: rotate(14deg) scale(0);
  transition: transform .6s var(--spring); }
.day-card.done .stamp { transform: rotate(14deg) scale(1); }

.foot { text-align: center; margin-top: 70px; font-family: var(--hand); font-size: 1.25rem; color: var(--ink-faint); }

/* ── Day view ───────────────────────────────────── */
.day-view { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(10, 4, 20, 0); transition: background .5s var(--smooth); }
.day-view.open { background: rgba(10, 4, 20, .55); }
.day-view[hidden] { display: none; }
.day-sheet { position: relative; width: 100%; max-width: 760px; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: max(20px, env(safe-area-inset-top)) 16px max(40px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 16%, #1d1038) 0%, #160c2c 45%);
  transform: translateY(100%); transition: transform .7s var(--smooth);
  -webkit-overflow-scrolling: touch; }
@media (min-width: 760px) {
  .day-view { align-items: center; }
  .day-sheet { height: min(92dvh, 960px); border-radius: 32px; border: 1px solid var(--line); padding: 28px 36px 44px;
    transform: translateY(40px) scale(.94); opacity: 0; transition: transform .7s var(--spring), opacity .4s; }
}
.day-view.open .day-sheet { transform: none; opacity: 1; }
.close { position: sticky; top: 0; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(20,11,38,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; font-size: 1.2rem;
  transition: transform .3s var(--spring), background .3s; }
.close:hover { transform: scale(1.1) rotate(-8deg); background: var(--glass-2); }
.day-head { text-align: center; margin: -8px 0 22px; }
.day-badge { display: inline-block; font-family: var(--hand); font-size: 1.4rem; color: var(--tint); }
.day-head h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 7vw, 2.8rem); line-height: 1.05; margin: 2px 0 10px; }
.day-note { color: var(--ink-soft); max-width: 46ch; margin: 0 auto; }
.day-view.open .day-head > * { animation: rise .8s var(--smooth) backwards; }
.day-view.open .day-head > :nth-child(2) { animation-delay: .08s; }
.day-view.open .day-head > :nth-child(3) { animation-delay: .16s; }
.day-view.open .stage { animation: rise .9s var(--smooth) .22s backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.stage { position: relative; }
.ask { margin-top: 34px; padding: 20px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line);
  animation: rise .8s var(--smooth); }
.ask label { display: block; font-family: var(--hand); font-size: 1.5rem; line-height: 1.2; margin-bottom: 10px; }
.ask textarea { width: 100%; resize: vertical; min-height: 90px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(0,0,0,.25); color: var(--ink); padding: 12px 14px; font: inherit; font-size: 16px; outline: none;
  transition: border-color .3s, box-shadow .3s; }
.ask textarea:focus { border-color: var(--tint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tint) 20%, transparent); }
.ask-row { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 12px; }
.saved { color: #9fe3c9; font-size: .9rem; opacity: 0; transform: translateX(10px); transition: all .4s var(--smooth); }
.saved.show { opacity: 1; transform: none; }

.btn { border: 0; cursor: pointer; padding: 12px 22px; border-radius: 99px; font-weight: 700;
  background: linear-gradient(135deg, var(--peach), var(--rose)); color: #3a0d24;
  box-shadow: 0 10px 30px -10px var(--rose); transition: transform .35s var(--spring), box-shadow .3s, filter .3s; }
.btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 16px 36px -10px var(--rose); }
.btn:active { transform: scale(.95); }
.btn.ghost { background: var(--glass-2); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.btn:disabled { filter: grayscale(.8); opacity: .5; cursor: default; transform: none; }

.reveal-msg { margin: 22px auto 0; max-width: 38ch; text-align: center; font-family: var(--display); font-style: italic;
  font-size: clamp(1.2rem, 4.5vw, 1.6rem); line-height: 1.35; }
.reveal-msg .w { display: inline-block; opacity: 0; transform: translateY(12px); filter: blur(6px);
  animation: wordIn .7s var(--smooth) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }

.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 70;
  transform: translate(-50%, calc(100% + 60px)); opacity: 0; padding: 12px 20px; border-radius: 99px; background: var(--cream); color: #3a0d24;
  font-weight: 500; box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); transition: transform .6s var(--spring), opacity .4s;
  max-width: calc(100vw - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ── Games: shared ──────────────────────────────── */
.panel { border-radius: 24px; border: 1px solid var(--line); background: rgba(0,0,0,.22); overflow: hidden; position: relative; }
.hud { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 10px; color: var(--ink-soft); font-size: .95rem; }
.center { text-align: center; }
.mt { margin-top: 18px; }

/* Day 1: stars */
.star-field { height: min(62dvh, 520px); touch-action: none; cursor: crosshair;
  background: radial-gradient(ellipse at bottom, rgba(255,210,122,.12), transparent 60%); }
.star-field canvas { display: block; width: 100%; height: 100%; }
.star-msg { position: absolute; inset: 0; margin: auto; height: fit-content; padding: 0 24px; pointer-events: none;
  text-shadow: 0 2px 30px rgba(20,11,38,.9); }
.star-field.won { cursor: default; height: min(40dvh, 320px); transition: height 1s var(--smooth); }
.words { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin-top: 14px; min-height: 2em;
  font-family: var(--display); font-style: italic; font-size: 1.15rem; }
.words span { color: var(--ink-faint); transition: color .5s, transform .5s var(--spring), text-shadow .5s; }
.words span.got { color: var(--gold); transform: translateY(-2px); text-shadow: 0 0 18px rgba(255,210,122,.6); }

/* Day 2: scratch */
.tickets { user-select: none; -webkit-user-select: none; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ticket { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; touch-action: none;
  background: linear-gradient(135deg, #fff1e6, #ffd6e2); color: #4a1d3d; box-shadow: 0 20px 40px -20px rgba(0,0,0,.7);
  transform: rotate(var(--r, 0deg)); transition: transform .5s var(--spring); }
.ticket:hover { transform: rotate(0) scale(1.02); }
.ticket .prize { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 14px; gap: 2px; }
.ticket .prize b { font-family: var(--display); font-size: 1.35rem; }
.ticket .prize .ic { font-size: 2.4rem; line-height: 1.1; }
.ticket .prize small { font-size: .85rem; line-height: 1.3; opacity: .85; }
.ticket canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; transition: opacity .8s var(--smooth); }
.ticket.cleared canvas { opacity: 0; pointer-events: none; }
.ticket.cleared { animation: pop .6s var(--spring); }
@keyframes pop { 50% { transform: scale(1.06) rotate(0); } }

/* Day 3: flappy */
.flappy { height: min(64dvh, 540px); touch-action: manipulation; cursor: pointer; user-select: none; -webkit-user-select: none;
  background: linear-gradient(180deg, #2b1d5c 0%, #6a3d8f 55%, #f08aa8 100%); }
.flappy canvas { display: block; width: 100%; height: 100%; }
.overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 20px; background: rgba(20,11,38,.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); transition: opacity .4s; }
.overlay.hide { opacity: 0; pointer-events: none; }
.overlay h3 { font-family: var(--display); font-size: clamp(1.6rem, 6vw, 2.2rem); margin: 0; }
.overlay p { margin: 0; color: var(--ink-soft); }
.big-score { position: absolute; top: 14px; left: 0; right: 0; text-align: center; font-family: var(--display); font-weight: 600;
  font-size: 2.6rem; text-shadow: 0 4px 0 rgba(0,0,0,.25); pointer-events: none; }

/* Day 5: whack */
.whack { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 3vw, 18px); max-width: 460px; margin: 0 auto;
  user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.hole { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 0; padding: 0; cursor: pointer;
  background: radial-gradient(ellipse at 50% 70%, #1a0d10 0 45%, #4a2a1c 46% 60%, #6b3f26 61%); box-shadow: inset 0 10px 20px rgba(0,0,0,.6); }
.mole { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: translateY(100%); transition: transform .22s var(--spring); pointer-events: none; }
.mole .face { font-size: clamp(2.2rem, 11vw, 3.4rem); line-height: 1; filter: drop-shadow(0 6px 8px rgba(0,0,0,.4)); }
.mole .tag { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--cream); color: #3a0d24; margin-top: 4px; white-space: nowrap; }
.mole.good .tag { background: #9fe3c9; }
.hole.up .mole { transform: translateY(8%); }
.hole.hit .mole { transform: translateY(8%) scale(.8) rotate(-12deg); transition-duration: .1s; }
.hole.hit .mole .face { filter: grayscale(.4); }
.pop-score { position: absolute; left: 50%; top: 20%; translate: -50% 0; font-weight: 700; font-size: 1.3rem; pointer-events: none; animation: floatUp .8s var(--smooth) forwards; }
@keyframes floatUp { to { transform: translateY(-40px); opacity: 0; } }
.timer { height: 8px; border-radius: 99px; background: var(--glass-2); overflow: hidden; margin-bottom: 14px; }
.timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff9f43, var(--rose)); transform-origin: left; }

/* Day 4: quiz */
.quiz { max-width: 520px; margin: 0 auto; }
.qcard { padding: 22px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); animation: rise .6s var(--smooth); }
.qcount { font-family: var(--hand); font-size: 1.3rem; color: var(--tint); }
.qtext { font-family: var(--display); font-size: 1.45rem; line-height: 1.25; margin: 4px 0 16px; }
.qopts { display: grid; gap: 10px; }
.qopt { text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  cursor: pointer; transition: transform .35s var(--spring), background .3s, border-color .3s; animation: rise .5s var(--smooth) backwards; }
.qopt:hover:not(:disabled) { transform: translateX(6px); background: var(--glass-2); }
.qopt.right { background: rgba(159,227,201,.2); border-color: #9fe3c9; }
.qopt.wrong { background: rgba(255,107,154,.15); border-color: var(--rose); animation: shake .45s; }
.qopt:disabled { cursor: default; }
.qreply { margin: 14px 0 0; font-family: var(--hand); font-size: 1.45rem; line-height: 1.2; color: var(--peach); min-height: 1.2em; }

/* Day 5: doodle */
.doodle-wrap { display: grid; gap: 12px; }
.prompt-chip { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 99px; background: var(--glass-2);
  border: 1px solid var(--line); cursor: pointer; transition: transform .3s var(--spring); }
.prompt-chip:hover { transform: rotate(-2deg) scale(1.04); }
.canvas-box { aspect-ratio: 4 / 3; background: #fffaf3; border-radius: 20px; overflow: hidden; touch-action: none; box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); }
.canvas-box canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; background: var(--c);
  transition: transform .3s var(--spring), border-color .3s; }
.swatch.on { border-color: var(--cream); transform: scale(1.15); }
.size { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); cursor: pointer; display: grid; place-items: center; }
.size i { display: block; border-radius: 50%; background: var(--cream); }
.size.on { background: var(--glass-2); border-color: var(--cream); }
.sent-preview { max-width: 360px; margin: 0 auto; border-radius: 16px; transform: rotate(-3deg); box-shadow: 0 20px 50px -20px #000;
  border: 10px solid #fff; border-bottom-width: 36px; animation: polaroid 1s var(--spring); display: block; width: 100%; }
@keyframes polaroid { from { transform: translateY(40px) rotate(8deg) scale(.8); opacity: 0; } }

/* Day 7: letter + wish jar */
.envelope-wrap { display: grid; place-items: center; padding: 40px 0 10px; perspective: 1200px; }
.envelope { position: relative; width: min(340px, 86vw); aspect-ratio: 3 / 2; cursor: pointer; border: 0; padding: 0; background: none;
  animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1deg); } }
.env-back, .env-front, .env-flap { position: absolute; inset: 0; border-radius: 10px; }
.env-back { background: #e8a1b2; }
.env-front { background: linear-gradient(160deg, transparent 49.5%, #f6b9c7 50%), linear-gradient(200deg, transparent 49.5%, #f3aebf 50%);
  z-index: 3; }
.env-flap { background: #ffc6d3; clip-path: polygon(0 0, 100% 0, 50% 58%); transform-origin: top; z-index: 4;
  transition: transform .8s var(--smooth), z-index 0s .4s; }
.env-seal { position: absolute; left: 50%; top: 52%; translate: -50% -50%; z-index: 5; font-size: 2rem; transition: transform .5s var(--spring), opacity .4s; }
.env-paper { position: absolute; left: 6%; right: 6%; top: 8%; bottom: 6%; background: var(--cream); border-radius: 6px; z-index: 2;
  transition: transform 1s var(--smooth) .5s; }
.envelope.open { animation: none; }
.envelope.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.envelope.open .env-seal { transform: scale(0); opacity: 0; }
.envelope.open .env-paper { transform: translateY(-55%); }
.letter { max-width: 560px; margin: 0 auto; padding: 30px 26px 34px; border-radius: 6px; color: #3d1c2e;
  background: repeating-linear-gradient(#fff8ef 0 31px, #f2dcd2 31px 32px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
  font-family: var(--hand); font-size: 1.45rem; line-height: 32px; animation: letterIn 1.1s var(--spring); transform-origin: top center; }
@keyframes letterIn { from { opacity: 0; transform: translateY(-40px) scale(.9) rotateX(20deg); } }
.letter p { margin: 0 0 32px; }
.letter .sign { text-align: right; margin: 0; }
.proposal { margin-top: 36px; text-align: center; padding: 26px 18px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); position: relative; animation: rise .8s var(--smooth); }
.proposal h3 { font-family: var(--display); font-size: clamp(1.4rem, 5vw, 1.9rem); line-height: 1.2; margin: 0 0 20px; }
.proposal .choices { display: flex; gap: 14px; justify-content: center; align-items: center; min-height: 64px; position: relative; }
.proposal .yes { transition: transform .35s var(--spring); }
.proposal .no { position: relative; transition: transform .35s var(--spring), opacity .4s; }
.proposal .said-yes { font-family: var(--hand); font-size: 1.8rem; color: var(--peach); margin: 14px 0 0; }
.letter .cursor { display: inline-block; width: 2px; height: 1.1em; background: #c2416d; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.jar-section { margin-top: 40px; text-align: center; }
.jar-section h3 { font-family: var(--display); font-size: 1.6rem; margin: 0 0 6px; }
.jar { position: relative; width: 190px; height: 230px; margin: 18px auto; }
.jar svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.jar .wish-star { position: absolute; font-size: 22px; transition: transform 1.2s var(--spring), opacity .6s; }
.wish-form { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; }
.wish-form input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 99px; border: 1px solid var(--line); background: rgba(0,0,0,.25);
  color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.wish-form input:focus { border-color: var(--tint); }
.flying-wish { position: fixed; z-index: 65; pointer-events: none; padding: 6px 12px; border-radius: 99px; background: var(--cream); color: #3a0d24;
  font-size: .9rem; white-space: nowrap; max-width: 70vw; overflow: hidden; text-overflow: ellipsis;
  transition: transform 1.1s var(--smooth), opacity 1.1s var(--smooth); }

/* Locked overlay inside day view (shouldn't normally show) */
.locked-msg { text-align: center; padding: 40px 0; color: var(--ink-soft); }

@media (max-width: 520px) {
  .day-card { width: 92%; padding: 14px 16px; gap: 2px 12px; }
  .orb { width: 52px; height: 52px; font-size: 24px; }
  .days { gap: 24px; }
}

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