/* Chalein? card — one layout, a scene per plan (body[data-scene]).
   Scene variables: --fbg/--fink frame · --fq question font · --fl line font ·
   --yes/--yes-ink · --no-bg/--no-ink/--no-line · --sheet/--sheet-ink for the later screens. */
:root {
  --bg1: #FFE4EC; --bg2: #FFC2D4; --ink: #4A1630; --accent: #E5336D; --on-accent: #fff;
  --fbg: rgba(255, 255, 255, .92); --fink: #3A1A26; --fq: 'Fraunces', Georgia, serif; --fl: 'DM Sans', system-ui, sans-serif;
  --yes: var(--accent); --yes-ink: var(--on-accent); --no-bg: transparent; --no-ink: currentColor; --no-line: currentColor;
  --sheet: rgba(255, 255, 255, .94); --sheet-ink: #2A1A20; --radius: 26px;
  --hand: 'Caveat', cursive; --round: 'Fredoka', 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { overflow-x: hidden; }
body.ch {
  font-family: 'DM Sans', system-ui, sans-serif; color: var(--ink);
  min-height: 100dvh; height: auto; overflow-x: hidden; -webkit-tap-highlight-color: transparent; background: var(--bg1);
}
.ch-bg { position: fixed; inset: 0; z-index: 0; background: linear-gradient(170deg, var(--bg1), var(--bg2)); }
.ch-fx { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.ch-deco { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.ch-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 30; text-align: center; padding: 8px 14px; font-size: 13px; font-weight: 600; background: #302A2C; color: #fff; }
.ch-stage {
  position: relative; z-index: 2; overflow: visible; min-height: 100dvh; display: grid; place-items: center;
  padding: max(26px, env(safe-area-inset-top)) 18px max(60px, env(safe-area-inset-bottom));
}
.ch-screen { width: 100%; max-width: 420px; text-align: center; animation: chIn .6s cubic-bezier(.2, .9, .3, 1.15) both; }
.ch-screen[hidden] { display: none; }
@keyframes chIn { from { opacity: 0; transform: translateY(22px) scale(.96); } }
/* No transform on the opening: the curtain is position:fixed inside it. */
.ch-screen.ch-intro { animation: chFade .5s ease both; }
@keyframes chFade { from { opacity: 0; } }

/* ============ the opening ============ */
.ch-open { position: relative; margin: 0 auto 26px; cursor: pointer; outline: none; }
.ch-intro__to { font-family: var(--fq); font-weight: 600; font-size: clamp(24px, 6.6vw, 32px); margin: 0 0 8px; text-wrap: balance; position: relative; z-index: 6; }
.ch-intro__tap { margin: 0; opacity: .75; font-size: 14px; letter-spacing: .04em; animation: chBlink 1.8s ease-in-out infinite; cursor: pointer; position: relative; z-index: 6; }
@keyframes chBlink { 50% { opacity: .35; } }

/* envelope */
.i-env { position: relative; width: 240px; height: 160px; margin: 40px auto 0; animation: chWiggle 2.8s ease-in-out infinite; --paper: #FFF7EE; --flap: #F7DCCB; --seal: var(--accent); }
.i-env__back { position: absolute; inset: 0; border-radius: 12px; background: var(--flap); box-shadow: 0 26px 50px rgba(0, 0, 0, .3); }
.i-env__letter {
  position: absolute; left: 14px; right: 14px; top: 10px; height: 140px; border-radius: 8px; background: #fff; z-index: 1;
  display: grid; place-items: center; align-content: center; gap: 6px; transition: transform .7s cubic-bezier(.3, 1.3, .5, 1) .35s;
}
.i-env__letter span { font-size: 40px; }
.i-env__letter i { display: block; width: 120px; height: 5px; border-radius: 3px; background: #EADFD8; }
.i-env__letter i + i { width: 84px; }
.i-env__front { position: absolute; inset: 0; z-index: 2; border-radius: 12px; background: linear-gradient(160deg, color-mix(in srgb, var(--paper) 92%, #fff), var(--paper) 55%, color-mix(in srgb, var(--paper) 90%, #000)); clip-path: polygon(0 0, 50% 60%, 100% 0, 100% 100%, 0 100%); }
.i-env__flap {
  position: absolute; left: 0; right: 0; top: 0; height: 104px; z-index: 3; transform-origin: top; background: var(--flap);
  clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform .5s ease-in, z-index 0s .25s;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .06));
}
.i-env__seal {
  position: absolute; left: 50%; top: 92px; z-index: 4; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--seal) 70%, #fff), var(--seal) 60%, color-mix(in srgb, var(--seal) 70%, #000));
  box-shadow: 0 5px 12px rgba(0, 0, 0, .3), inset 0 -3px 0 rgba(0, 0, 0, .18); transition: transform .35s, opacity .35s;
}
.is-open .i-env { animation: none; }
.is-open .i-env__seal { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
.is-open .i-env__flap { transform: rotateX(180deg); z-index: 0; }
.is-open .i-env__letter { transform: translateY(-110px); }
@keyframes chWiggle { 0%, 72%, 100% { transform: rotate(0); } 76% { transform: rotate(-4deg); } 82% { transform: rotate(4deg); } 88% { transform: rotate(-2deg); } }

/* curtain (movie) */
.ch-open--curtain { position: fixed; inset: 0; margin: 0; z-index: 5; }
.i-curtain__l, .i-curtain__r {
  position: absolute; top: 0; bottom: 0; width: 51%; z-index: 2;
  background: repeating-linear-gradient(90deg, #5E0B16 0 14px, #8E1426 14px 26px, #6E0E1B 26px 40px);
  box-shadow: inset 0 -40px 60px rgba(0, 0, 0, .45); transition: transform 1.2s cubic-bezier(.6, 0, .3, 1);
}
.i-curtain__l { left: 0; border-radius: 0 0 60% 0 / 0 0 12% 0; }
.i-curtain__r { right: 0; border-radius: 0 0 0 60% / 0 0 0 12%; }
.is-open .i-curtain__l { transform: translateX(-102%) skewX(-4deg); }
.is-open .i-curtain__r { transform: translateX(102%) skewX(4deg); }
.i-curtain__sign {
  position: absolute; left: 50%; top: 22%; z-index: 3; transform: translateX(-50%); padding: 10px 22px; border-radius: 8px;
  font: 400 30px 'Bebas Neue', sans-serif; letter-spacing: .12em; color: #FFE8A3; background: #1A0508;
  box-shadow: 0 0 0 3px #E2B33C, 0 0 30px rgba(255, 201, 60, .5); transition: opacity .4s;
}
.is-open .i-curtain__sign { opacity: 0; }
.i-curtain__bulbs { position: absolute; left: 0; right: 0; top: 0; height: 22px; z-index: 4; background: radial-gradient(circle, #FFE08A 4px, transparent 5px) 0 0 / 26px 22px; filter: drop-shadow(0 0 6px #FFC93C); animation: chBulbs 1s steps(2) infinite; }
@keyframes chBulbs { 50% { opacity: .55; } }
body[data-scene="movie"][data-at="intro"] .ch-intro__to, body[data-scene="movie"][data-at="intro"] .ch-intro__tap { position: fixed; left: 0; right: 0; bottom: 18%; z-index: 6; color: #FFE8A3; }
body[data-scene="movie"][data-at="intro"] .ch-intro__tap { bottom: 13%; }

/* incoming call (virtual) */
.ch-open--call { cursor: default; }
.i-call { padding-top: 30px; }
.i-call__name { margin: 18px 0 2px; font: 700 30px 'Space Grotesk', sans-serif; color: #fff; }
.i-call__sub { margin: 0 0 40px; color: rgba(255, 255, 255, .7); }
.i-call__btns { display: flex; justify-content: center; gap: 70px; }
.i-call__btns span { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: #fff; cursor: pointer; }
.i-call__no { background: #FF3B30; }
.i-call__no.is-nope { animation: chShake .4s; }
.i-call__yes { background: #34C759; animation: chRing 1.2s ease-in-out infinite; }
@keyframes chRing { 0%, 100% { transform: rotate(0); box-shadow: 0 0 0 0 rgba(52, 199, 89, .6); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(14deg); } 60% { transform: rotate(0); box-shadow: 0 0 0 18px rgba(52, 199, 89, 0); } }
.is-open .i-call { animation: chZoomOut .6s ease-in forwards; }
@keyframes chZoomOut { to { transform: scale(1.4); opacity: 0; } }

/* arcade (gaming) */
.i-arcade { width: 270px; margin: 20px auto 0; padding: 16px; border-radius: 22px 22px 10px 10px; background: linear-gradient(180deg, #3D1C7A, #1C0B3A); box-shadow: 0 0 0 4px #120A2A, 0 30px 60px rgba(0, 0, 0, .5); }
.i-arcade__screen { padding: 26px 10px; border-radius: 10px; background: #050210; box-shadow: inset 0 0 30px rgba(56, 242, 193, .25); position: relative; overflow: hidden; }
.i-arcade__screen::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px); pointer-events: none; }
.i-arcade__title { margin: 0 0 16px; font: 20px 'Press Start 2P', monospace; color: #38F2C1; text-shadow: 3px 3px 0 #FF4FD8; }
.i-arcade__coin { margin: 16px 0 0; font: 10px 'Press Start 2P', monospace; color: #FFE14F; animation: chBlink 1s steps(2) infinite; }
.i-arcade__btn { width: 56px; height: 56px; margin: 16px auto 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FF8BE6, #FF4FD8 55%, #A0158A); box-shadow: 0 6px 0 #6B0D5D; }
.is-open .i-arcade__btn { transform: translateY(4px); box-shadow: 0 2px 0 #6B0D5D; }
.is-open .i-arcade__screen { animation: chGlitch .5s steps(3) 2; }
@keyframes chGlitch { 33% { transform: translateX(-3px); filter: hue-rotate(90deg); } 66% { transform: translateX(3px); } }
body[data-scene="gaming"] .ch-intro__to, body[data-scene="gaming"] .ch-intro__tap { font-family: 'Press Start 2P', monospace; font-size: 11px; line-height: 1.8; color: #F1EAFF; }

/* polaroid (photo) */
.i-polaroid { width: 230px; margin: 20px auto 0; padding: 14px 14px 18px; background: #fff; transform: rotate(-4deg); box-shadow: 0 24px 50px rgba(0, 0, 0, .3); }
.i-polaroid__img { aspect-ratio: 1; display: grid; place-items: center; background: #1B1715; overflow: hidden; }
.i-polaroid__img span { font-size: 80px; filter: blur(14px) grayscale(1) brightness(.3); transition: filter 1.4s ease-out; }
.i-polaroid__img img { width: 100%; height: 100%; object-fit: cover; filter: blur(14px) grayscale(1) brightness(.3); transition: filter 1.4s ease-out; }
.i-polaroid p { margin: 12px 0 0; font: 700 26px var(--hand); color: #2B2420; }
.is-open .i-polaroid__img span, .is-open .i-polaroid__img img { filter: none; }
.is-open .i-polaroid { animation: chShake .4s .2s; }

/* one star (stars) */
.i-star { height: 200px; display: grid; place-items: center; }
.i-star span { font-size: 70px; color: #FFF6C8; text-shadow: 0 0 20px #FFE08A, 0 0 60px #B9A6FF; animation: chTwinkle 1.6s ease-in-out infinite; }
@keyframes chTwinkle { 50% { transform: scale(1.18) rotate(10deg); opacity: .8; } }
.is-open .i-star span { animation: chStarGo 1s cubic-bezier(.5, 0, .7, .4) forwards; }
@keyframes chStarGo { to { transform: translate(-60vw, 40vh) scale(.2); opacity: 0; } }

/* ============ the frame ============ */
.ch-pill { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .8); color: #2A1A20; }
.ch-pill[hidden] { display: none; }
.ch-frame {
  position: relative; padding: 24px 20px 22px; border-radius: var(--radius); background: var(--fbg); color: var(--fink);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .28), 0 2px 0 rgba(255, 255, 255, .4) inset;
}
.ch-frame__top { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: -4px 0 12px; }
.ch-frame__top[hidden], .ch-frame__foot[hidden] { display: none; }
.ch-frame__top span { font: 700 13px var(--fl); letter-spacing: .28em; }
.ch-frame__top em { font-style: normal; font-size: 12px; opacity: .65; letter-spacing: .06em; }
.ch-frame__foot { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.ch-frame__foot small { opacity: .65; }
.ch-frame__foot small:only-child { width: 100%; text-align: center; }
.ch-hero { position: relative; display: grid; place-items: center; min-height: 110px; margin-bottom: 6px; }
.ch-photo { margin: 0 0 6px; width: 140px; padding: 7px 7px 24px; background: #fff; border-radius: 4px; transform: rotate(-4deg); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.ch-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.ch-photo:not([hidden]) + .ch-art { position: absolute; right: calc(50% - 112px); bottom: -8px; transform: scale(.62); transform-origin: bottom right; }
.ch-from { margin: 6px 0 4px; font: 700 22px var(--hand); opacity: .85; }
.ch-q { margin: 0 0 10px; font-family: var(--fq); font-weight: 600; line-height: 1.1; font-size: clamp(30px, 8.6vw, 42px); letter-spacing: -.01em; text-wrap: balance; }
.ch-q__to { display: block; margin-bottom: 4px; font: 700 .7em var(--hand); opacity: .9; letter-spacing: 0; }
.ch-line { margin: 0 auto 16px; max-width: 32ch; font: 400 16.5px/1.5 var(--fl); opacity: .88; white-space: pre-line; }
.ch-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 18px; }
.ch-chip { padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: inherit; background: color-mix(in srgb, currentColor 9%, transparent); border: 1px solid color-mix(in srgb, currentColor 18%, transparent); }

/* buttons */
.ch-btns { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; min-height: 76px; }
.ch-yes, .ch-no, .ch-send { font-family: var(--round); font-weight: 600; border: 0; cursor: pointer; border-radius: 999px; transition: transform .25s cubic-bezier(.2, .9, .3, 1.4), box-shadow .25s; }
.ch-yes {
  font-size: 19px; padding: 15px 26px; background: var(--yes); color: var(--yes-ink); position: relative; z-index: 2;
  box-shadow: 0 7px 0 color-mix(in srgb, var(--yes) 62%, #000), 0 16px 28px rgba(0, 0, 0, .22);
  transform: scale(var(--grow, 1)); animation: chPulse 2.2s ease-in-out infinite; white-space: nowrap;
}
.ch-yes:active { transform: scale(calc(var(--grow, 1) * .96)) translateY(4px); }
@keyframes chPulse { 50% { box-shadow: 0 7px 0 color-mix(in srgb, var(--yes) 62%, #000), 0 16px 40px color-mix(in srgb, var(--yes) 60%, transparent); } }
.ch-no {
  font-size: 15px; padding: 12px 20px; color: var(--no-ink); background: var(--no-bg); border: 1.5px solid var(--no-line);
  transform: scale(var(--shrink, 1)); white-space: nowrap;
}
.ch-no.is-loose { position: fixed; z-index: 20; transition: left .28s cubic-bezier(.2, .9, .3, 1.3), top .28s cubic-bezier(.2, .9, .3, 1.3), transform .25s; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); background: var(--fbg); color: var(--fink); }
.ch-no.is-yes { background: var(--yes); color: var(--yes-ink); border-color: transparent; }
.ch-real-no { margin-top: 18px; background: none; border: 0; padding: 6px; color: inherit; opacity: .6; cursor: pointer; font: 500 13px 'DM Sans', sans-serif; text-decoration: underline; text-underline-offset: 3px; }

/* stamp */
.ch-stamp {
  position: absolute; left: 50%; top: 42%; z-index: 5; pointer-events: none; padding: 8px 18px; border: 4px double #C8102E; border-radius: 10px;
  font: 400 34px 'Bebas Neue', sans-serif; letter-spacing: .1em; color: #C8102E; background: color-mix(in srgb, var(--fbg, #fff) 94%, transparent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--fbg, #fff) 80%, transparent), 0 10px 30px rgba(0, 0, 0, .18);
  transform: translate(-50%, -50%) rotate(-14deg) scale(3); opacity: 0; white-space: nowrap;
}
.ch-stamp:empty, .ch-stamp:not(.is-on) { display: none; }
.ch-stamp.is-on { animation: chStamp .45s cubic-bezier(.5, 0, .7, 1.4) forwards; }
@keyframes chStamp { to { transform: translate(-50%, -50%) rotate(-14deg) scale(1); opacity: .92; } }
.ch-flash { position: fixed; inset: 0; z-index: 60; background: #fff; opacity: 0; pointer-events: none; }
.ch-flash.is-on { animation: chFlash .7s ease-out; }
@keyframes chFlash { 0% { opacity: 0; } 8% { opacity: 1; } 100% { opacity: 0; } }

/* ============ art ============ */
.a-emoji { font-size: 88px; line-height: 1; animation: chBob 2.6s ease-in-out infinite; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .22)); }
@keyframes chBob { 50% { transform: translateY(-9px) rotate(-5deg); } }
.a-steam { position: absolute; bottom: 70%; width: 10px; height: 46px; border-radius: 10px; background: linear-gradient(to top, rgba(255, 255, 255, .7), transparent); filter: blur(3px); animation: chSteam 2.6s ease-out infinite; }
.a-steam:nth-child(1) { left: 34%; } .a-steam:nth-child(2) { left: 48%; animation-delay: .8s; } .a-steam:nth-child(3) { left: 62%; animation-delay: 1.6s; }
@keyframes chSteam { 0% { transform: translateY(10px) scaleY(.6); opacity: 0; } 40% { opacity: .9; } 100% { transform: translateY(-30px) translateX(6px) scaleY(1.2); opacity: 0; } }

.a-cup { position: relative; width: 130px; height: 110px; }
.a-cup__body { position: absolute; left: 20px; bottom: 16px; width: 82px; height: 66px; border-radius: 6px 6px 38px 38px; background: linear-gradient(90deg, #FFFDF8, #EDE3D6); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .06); }
.a-cup__body::before { content: ""; position: absolute; right: -24px; top: 12px; width: 26px; height: 30px; border: 7px solid #EDE3D6; border-left: 0; border-radius: 0 20px 20px 0; }
.a-cup__body::after { content: ""; position: absolute; left: 4px; right: 4px; top: 3px; height: 14px; border-radius: 50%; background: radial-gradient(ellipse, #C98A4B, #7A4B2E); }
.a-cup__body span { position: absolute; left: 50%; top: 2px; z-index: 1; transform: translateX(-50%) scaleY(.6); color: #FBEBD5; font-size: 14px; }
.a-cup__saucer { position: absolute; left: 4px; right: 14px; bottom: 6px; height: 16px; border-radius: 50%; background: linear-gradient(#FFFDF8, #D9CBBB); box-shadow: 0 8px 16px rgba(0, 0, 0, .25); }

.a-moon { width: 96px; height: 96px; border-radius: 50%; position: relative; box-shadow: 0 0 40px 6px rgba(255, 240, 190, .35); background: radial-gradient(circle at 40% 40%, #FFF9E3, #F3E2A8); animation: chBob 4s ease-in-out infinite; }
.a-moon i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 60%, rgba(0, 0, 0, .08) 8px, transparent 9px), radial-gradient(circle at 62% 30%, rgba(0, 0, 0, .07) 6px, transparent 7px), radial-gradient(circle at 70% 70%, rgba(0, 0, 0, .06) 10px, transparent 11px); }

.a-cone { position: relative; display: flex; flex-direction: column; align-items: center; }
.a-cone__scoops { display: flex; flex-direction: column-reverse; align-items: center; margin-bottom: -10px; position: relative; z-index: 1; }
.a-cone__scoops i { display: block; width: 74px; height: 56px; margin-bottom: -24px; border-radius: 50% 50% 44% 44%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 50%, #fff), var(--c) 60%); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .07); animation: chDrop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.a-cone__scoops i:first-child { margin-bottom: 0; }
.a-cone__cherry { width: 18px; height: 18px; margin-bottom: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FF8A8A, #D7193A); position: relative; z-index: 2; }
@keyframes chDrop { from { transform: translateY(-60px); opacity: 0; } }
.a-cone__cone { width: 0; height: 0; border-left: 34px solid transparent; border-right: 34px solid transparent; border-top: 86px solid #E9A85C; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .15)); }

.a-steamer { position: relative; width: 150px; height: 110px; display: grid; place-items: end center; }
.a-steamer__basket { width: 140px; height: 62px; border-radius: 10px 10px 50px 50px; display: flex; justify-content: center; align-items: flex-start; gap: 0; padding-top: 2px; background: repeating-linear-gradient(0deg, #C9965B 0 6px, #B07D43 6px 9px); box-shadow: 0 12px 20px rgba(0, 0, 0, .2); }
.a-steamer__basket span { font-size: 38px; margin-top: -24px; }

.a-kulhad { position: relative; width: 120px; height: 130px; display: grid; place-items: end center; }
.a-kulhad__cup { width: 84px; height: 84px; clip-path: polygon(8% 0, 92% 0, 78% 100%, 22% 100%); background: linear-gradient(90deg, #A44A22, #C8693A 40%, #8E3B18); border-radius: 6px; position: relative; }
.a-kulhad__cup::before { content: ""; position: absolute; left: 6%; right: 6%; top: 0; height: 12px; background: radial-gradient(ellipse, #D8A36D, #9C6233); border-radius: 50%; }

.a-pixel { display: grid; grid-template-columns: repeat(7, 12px); gap: 0; animation: chBeat 1s steps(2) infinite; }
.a-pixel i { width: 12px; height: 12px; }
.a-pixel i.on { background: #FF4FD8; box-shadow: inset -3px -3px 0 #B5179E; }
.a-pixel--sm { grid-template-columns: repeat(7, 8px); justify-content: center; margin: 0 auto; }
.a-pixel--sm i { width: 8px; height: 8px; }
@keyframes chBeat { 50% { transform: scale(1.12); } }

.a-sun { position: relative; width: 170px; height: 110px; overflow: hidden; border-radius: 0 0 20px 20px; }
.a-sun__disc { position: absolute; left: 50%; bottom: 24px; width: 100px; height: 100px; transform: translate(-50%, 30%); border-radius: 50%; background: radial-gradient(circle at 50% 40%, #FFF3A8, #FFB347 60%, #FF7A45); box-shadow: 0 0 50px 14px rgba(255, 170, 80, .55); animation: chSet 6s ease-in-out infinite alternate; }
@keyframes chSet { to { transform: translate(-50%, 46%); } }
.a-sun__sea { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: linear-gradient(#7B2D6B, #4A1C48); }
.a-sun__sea i { display: block; height: 3px; margin: 6px auto 0; width: 60%; border-radius: 3px; background: rgba(255, 210, 140, .7); animation: chWave 2s ease-in-out infinite; }
.a-sun__sea i:nth-child(2) { width: 40%; animation-delay: .4s; } .a-sun__sea i:nth-child(3) { width: 24%; animation-delay: .8s; }
@keyframes chWave { 50% { transform: translateX(8px); opacity: .5; } }

.a-compass { width: 100px; height: 100px; border-radius: 50%; position: relative; background: radial-gradient(circle, #F7EBCF 55%, #B8894A 57%, #8A5F2A 70%, #C9A15E 72%); box-shadow: 0 12px 24px rgba(0, 0, 0, .3); }
.a-compass span { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font: 700 12px 'Special Elite', monospace; color: #7A2A1A; }
.a-compass__needle { position: absolute; left: 50%; top: 50%; width: 8px; height: 60px; margin: -30px 0 0 -4px; background: linear-gradient(#C62828 50%, #2B2420 50%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); animation: chNeedle 3s ease-in-out infinite; }
@keyframes chNeedle { 0%, 100% { transform: rotate(-20deg); } 50% { transform: rotate(35deg); } }

.a-avatar { position: relative; width: 104px; height: 104px; margin: 0 auto; }
.a-avatar b { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; font: 700 36px 'Space Grotesk', sans-serif; color: #fff; background: linear-gradient(135deg, #4C8DFF, #7DF9FF); z-index: 1; }
.a-avatar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(125, 249, 255, .6); animation: chRings 2s ease-out infinite; }
.a-avatar i + i { animation-delay: 1s; }
.a-avatar--big { width: 130px; height: 130px; }
@keyframes chRings { to { transform: scale(1.7); opacity: 0; } }

.a-candles { display: flex; gap: 16px; align-items: flex-end; height: 120px; }
.a-candle { position: relative; width: 22px; height: 64px; border-radius: 4px; background: linear-gradient(90deg, #FFF8E8, #E9DCC0); }
.a-candle--tall { height: 88px; }
.a-candle i { position: absolute; left: 50%; bottom: 100%; width: 14px; height: 26px; margin-left: -7px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #FFF6C8, #FFB347 55%, rgba(255, 120, 40, 0) 75%); box-shadow: 0 0 26px 8px rgba(255, 190, 90, .45); animation: chFlicker .18s ease-in-out infinite alternate; transform-origin: bottom; }
@keyframes chFlicker { to { transform: scale(.92, 1.08) rotate(2deg); opacity: .9; } }

/* ============ fields ============ */
.f-ticket { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; margin: 4px -20px 18px; padding: 14px 16px 0; border-top: 2px dashed rgba(42, 10, 16, .3); text-align: left; }
.f-ticket div { padding: 0 6px; }
.f-ticket div + div { border-left: 1px solid rgba(42, 10, 16, .15); }
.f-ticket dt { font: 400 13px 'Bebas Neue', sans-serif; letter-spacing: .12em; opacity: .6; }
.f-ticket dd { margin: 0; font: 700 13.5px/1.25 'DM Sans', sans-serif; }
.f-menu, .f-receipt { list-style: none; margin: 0 0 18px; padding: 0; text-align: left; font-size: 15px; }
.f-menu li { display: flex; align-items: baseline; gap: 6px; padding: 4px 0; }
.f-menu li i { flex: 1; border-bottom: 2px dotted currentColor; opacity: .35; }
.f-menu li b { font-style: italic; font-weight: 600; }
.f-receipt { font-family: 'Special Elite', 'Courier New', monospace; font-size: 14px; border-top: 1.5px dashed currentColor; border-bottom: 1.5px dashed currentColor; padding: 8px 0; }
.f-receipt li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.f-map { position: relative; margin: 0 0 18px; padding: 8px 0 0; }
.f-map svg { width: 100%; height: 60px; display: block; }
.f-map path { fill: none; stroke: #B3261E; stroke-width: 2.5; stroke-dasharray: 7 7; animation: chDash 2s linear infinite; }
@keyframes chDash { to { stroke-dashoffset: -28; } }
.f-map__x { position: absolute; right: 4%; top: 12px; font: 700 26px 'Special Elite', monospace; color: #B3261E; }
.f-map p { margin: 6px 0 0; font: 15px 'Special Elite', monospace; }
.ch-barcode { flex: 1; height: 36px; background: repeating-linear-gradient(90deg, #2A0A10 0 2px, transparent 2px 4px, #2A0A10 4px 7px, transparent 7px 9px, #2A0A10 9px 10px, transparent 10px 13px); }

/* ============ later screens ============ */
.ch-sheet { padding: 26px 20px 22px; border-radius: var(--radius); background: var(--sheet); color: var(--sheet-ink); box-shadow: 0 30px 70px rgba(0, 0, 0, .28); }
.ch-big { margin: 0; font-family: var(--fq); font-weight: 700; font-size: clamp(36px, 10.5vw, 52px); line-height: 1.05; }
.ch-h2 { margin: 8px 0 22px; font: 700 26px var(--hand); }
.ch-label { display: block; margin: 0 0 8px; font-weight: 700; font-size: 15px; text-align: left; }
.ch-label small { font-weight: 500; opacity: .6; }
.ch-when { margin-bottom: 14px; }
.ch-chips--pick { justify-content: flex-start; margin-bottom: 10px; }
.ch-chips--pick .ch-chip { cursor: pointer; font-family: inherit; font-size: 14.5px; padding: 9px 14px; }
.ch-chips--pick .ch-chip.is-on { background: var(--yes); color: var(--yes-ink); border-color: transparent; }
.ch-input { width: 100%; padding: 13px 14px; border-radius: 14px; font: 500 16px 'DM Sans', sans-serif; color: inherit; background: color-mix(in srgb, currentColor 6%, transparent); border: 1.5px solid color-mix(in srgb, currentColor 18%, transparent); outline: none; resize: none; margin-bottom: 14px; }
.ch-input::placeholder { color: inherit; opacity: .45; }
.ch-input:focus { border-color: var(--yes); }
.ch-send { width: 100%; font-size: 18px; padding: 16px 20px; background: var(--yes); color: var(--yes-ink); box-shadow: 0 7px 0 color-mix(in srgb, var(--yes) 62%, #000), 0 14px 26px rgba(0, 0, 0, .2); }
.ch-send:active { transform: translateY(4px); }
.ch-send[disabled] { opacity: .6; pointer-events: none; }
.ch-send--soft { background: var(--sheet-ink); color: var(--sheet); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.ch-consent { margin: 12px 0 0; font-size: 13px; opacity: .7; line-height: 1.45; }
.ch-back { margin-top: 16px; background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; font: 600 14px 'DM Sans', sans-serif; }
.ch-err { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #FDECEC; color: #B3261E; font-size: 14px; }
.ch-make { display: inline-block; margin-top: 22px; padding: 14px 18px; border-radius: 16px; color: inherit; text-decoration: none; font-size: 14px; background: color-mix(in srgb, var(--fbg) 70%, transparent); color: var(--fink); }
.ch--preview .ch-make, .ch--preview .ch-brand { pointer-events: none; }
.ch-brand { position: fixed; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 3; transform: translateX(-50%); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: inherit; opacity: .55; text-decoration: none; white-space: nowrap; }

/* burst */
.ch-burst { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.ch-burst span { position: absolute; left: var(--sx); top: var(--sy); font-size: var(--s, 26px); animation: chPop 1.4s cubic-bezier(.15, .8, .3, 1) forwards; }
.ch-burst span.is-bit { width: 9px; height: 14px; border-radius: 2px; }
@keyframes chPop { 0% { transform: translate(-50%, -50%) scale(.2); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--r)) scale(1); opacity: 0; } }
.ch-shake { animation: chShake .4s; }
@keyframes chShake { 25% { transform: translateX(-6px) rotate(-3deg); } 75% { transform: translateX(6px) rotate(3deg); } }

/* deco */
.dz-marquee { position: absolute; left: 0; right: 0; top: 0; height: 20px; display: flex; justify-content: space-around; }
.dz-marquee i { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: #FFE08A; box-shadow: 0 0 10px 3px rgba(255, 201, 60, .7); animation: chBulbs 1s steps(2) infinite; animation-delay: calc(var(--i) * -.5s); }
.dz-lamps { position: absolute; left: 0; right: 0; bottom: 0; height: 46vh; display: flex; justify-content: space-around; align-items: flex-end; }
.dz-lamps i { position: relative; width: 6px; height: 70%; background: #050A1C; }
.dz-lamps i::before { content: ""; position: absolute; top: -6px; left: -12px; width: 30px; height: 10px; border-radius: 8px 8px 2px 2px; background: #050A1C; }
.dz-lamps i::after { content: ""; position: absolute; top: 4px; left: -70px; width: 146px; height: 70%; background: radial-gradient(ellipse at 50% 0, rgba(255, 224, 138, .28), transparent 70%); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); }
.dz-lamps i:nth-child(2) { height: 58%; }
.dz-lights { position: absolute; left: -2%; right: -2%; top: 10px; height: 60px; display: flex; justify-content: space-between; border-top: 0; }
.dz-lights::before { content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 60px; border-bottom: 1.5px solid rgba(80, 50, 60, .5); border-radius: 0 0 50% 50%; }
.dz-lights i { width: 10px; height: 14px; border-radius: 50% 50% 40% 40%; margin-top: calc(10px + 14px * sin(calc(var(--i) * 0.45rad + .2rad))); background: #FFD27A; box-shadow: 0 0 14px 4px rgba(255, 210, 122, .7); animation: chBulbs 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s); }
.dz-lights i:nth-child(3n) { background: #FFB3C7; box-shadow: 0 0 14px 4px rgba(255, 179, 199, .7); }

/* ================= scenes ================= */

/* coffee — café menu on kraft */
[data-scene="coffee"] .ch-bg { background: radial-gradient(90% 60% at 50% 0, #6B4128, transparent), linear-gradient(170deg, #2A1810, #4A2B1C); }
[data-scene="coffee"] {
  --ink: #FBEBD5; --fbg: #EAD8BC; --fink: #3B2418; --fq: 'Fraunces', serif; --fl: 'Fraunces', serif;
  --yes: #3B2418; --yes-ink: #FBEBD5; --no-line: rgba(59, 36, 24, .45); --no-ink: #3B2418; --sheet: #F6EADA; --sheet-ink: #3B2418; --radius: 6px;
}
[data-scene="coffee"] .ch-frame { background: repeating-linear-gradient(45deg, rgba(0, 0, 0, .015) 0 2px, transparent 2px 5px), #EAD8BC; outline: 1.5px dashed rgba(59, 36, 24, .4); outline-offset: -10px; }
[data-scene="coffee"] .ch-frame__top span { font: 600 15px 'Fraunces', serif; letter-spacing: .32em; }
[data-scene="coffee"] .ch-frame__top em { font-style: italic; }
[data-scene="coffee"] .ch-line { font-style: italic; }
[data-scene="coffee"] .i-env { --paper: #D9BE98; --flap: #C9A77A; --seal: #7A2E1E; }

/* movie — the ticket */
[data-scene="movie"] .ch-bg { background: radial-gradient(70% 40% at 50% 0, rgba(255, 201, 60, .25), transparent), repeating-linear-gradient(90deg, #3A0610 0 18px, #520A17 18px 34px, #43081A 34px 52px); }
[data-scene="movie"] {
  --ink: #FFE8A3; --fbg: #FFF4DA; --fink: #2A0A10; --fq: 'Bebas Neue', sans-serif; --yes: #C8102E; --yes-ink: #FFF4DA;
  --no-line: rgba(42, 10, 16, .4); --no-ink: #2A0A10; --sheet: #FFF4DA; --sheet-ink: #2A0A10; --radius: 14px;
}
[data-scene="movie"] .ch-frame { -webkit-mask: radial-gradient(circle 16px at 0 64%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 64%, transparent 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 16px at 0 64%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 64%, transparent 98%, #000) right / 51% 100% no-repeat; }
[data-scene="movie"] .ch-frame__top span { font: 400 30px 'Bebas Neue', sans-serif; letter-spacing: .3em; color: #C8102E; }
[data-scene="movie"] .ch-q { font-weight: 400; font-size: clamp(40px, 12vw, 56px); letter-spacing: .02em; }
[data-scene="movie"] .ch-q__to { font-size: .5em; }
[data-scene="movie"] .ch-yes, [data-scene="movie"] .ch-no { font-family: 'Bebas Neue', sans-serif; font-weight: 400; letter-spacing: .08em; font-size: 22px; border-radius: 6px; }
[data-scene="movie"] .ch-big { font-weight: 400; letter-spacing: .04em; }
[data-scene="movie"] .ch-stamp { color: #12803A; border-color: #12803A; }

/* walk — street lamps under the moon */
[data-scene="walk"] .ch-bg { background: radial-gradient(60% 40% at 80% 8%, rgba(255, 240, 190, .18), transparent), linear-gradient(180deg, #070F26, #1C2C5C 70%, #0B1330); }
[data-scene="walk"] {
  --ink: #EEF2FF; --fbg: rgba(16, 26, 60, .55); --fink: #EEF2FF; --fq: 'Cormorant Garamond', serif; --yes: #FFE08A; --yes-ink: #1A2148;
  --no-line: rgba(238, 242, 255, .4); --sheet: rgba(16, 26, 60, .82); --sheet-ink: #EEF2FF;
}
[data-scene="walk"] .ch-frame, [data-scene="walk"] .ch-sheet { backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .12); }
[data-scene="walk"] .ch-q { font-style: italic; font-size: clamp(36px, 10vw, 50px); }
[data-scene="walk"] .ch-yes { box-shadow: 0 0 30px rgba(255, 224, 138, .55), 0 7px 0 #B8963E; }
[data-scene="walk"] .i-env { --paper: #1F2D5E; --flap: #2B3F7A; --seal: #FFE08A; }

/* ice cream — sticker card on polka dots */
[data-scene="icecream"] .ch-bg { background: radial-gradient(circle, rgba(255, 255, 255, .55) 5px, transparent 6px) 0 0 / 34px 34px, linear-gradient(170deg, #FFD6E5, #C8F1E3); }
[data-scene="icecream"] {
  --ink: #4A2236; --fbg: #FFFFFF; --fink: #4A2236; --fq: 'Fredoka', sans-serif; --yes: #FF5C8A; --yes-ink: #fff; --no-line: #F4B3C8; --no-ink: #B03A63; --radius: 34px;
}
[data-scene="icecream"] .ch-frame { border: 6px solid #fff; outline: 2.5px dashed #FFB3C7; outline-offset: -14px; transform: rotate(-1deg); }
[data-scene="icecream"] .ch-frame__top span { font: 400 24px 'Pacifico', cursive; letter-spacing: 0; color: #FF5C8A; }
[data-scene="icecream"] .ch-q { font-weight: 700; }
[data-scene="icecream"] .ch-q__to { font: 400 .62em 'Pacifico', cursive; color: #FF5C8A; }

/* stars — words floating in the sky */
[data-scene="stars"] .ch-bg { background: radial-gradient(80% 50% at 30% 20%, rgba(120, 90, 255, .25), transparent), radial-gradient(60% 40% at 80% 70%, rgba(80, 180, 255, .15), transparent), #050816; }
[data-scene="stars"] {
  --ink: #F3F0FF; --fbg: transparent; --fink: #F3F0FF; --fq: 'Cormorant Garamond', serif; --yes: #B9A6FF; --yes-ink: #120C33;
  --no-line: rgba(243, 240, 255, .35); --sheet: rgba(20, 16, 50, .78); --sheet-ink: #F3F0FF;
}
[data-scene="stars"] .ch-frame { box-shadow: none; }
[data-scene="stars"] .ch-q { font-style: italic; font-size: clamp(38px, 11vw, 54px); text-shadow: 0 0 24px rgba(185, 166, 255, .6); }
[data-scene="stars"] .ch-yes { background: linear-gradient(135deg, #D7CCFF, #8E7CFF); box-shadow: 0 0 34px rgba(185, 166, 255, .7); }
[data-scene="stars"] .ch-sheet { backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .12); }

/* picnic — gingham */
[data-scene="picnic"] .ch-bg { background: radial-gradient(120px 120px at 82% 12%, #FFF6C2, rgba(255, 230, 140, .5) 45%, transparent 70%), radial-gradient(160px 40px at 18% 14%, #fff 30%, transparent 70%), radial-gradient(200px 46px at 62% 22%, rgba(255, 255, 255, .9) 30%, transparent 70%), radial-gradient(140% 60% at 30% 100%, #7FC45A 40%, transparent 41%) bottom / 100% 100% no-repeat, radial-gradient(120% 55% at 85% 100%, #95D26E 45%, transparent 46%) bottom / 100% 100% no-repeat, linear-gradient(180deg, #BFE4FF, #E4F4FF 40%, #CFEAB0 41%, #A9DB86); }
[data-scene="picnic"] {
  --ink: #2E3B1E; --fbg: #FFFDF6; --fink: #2E3B1E; --fq: 'Baloo 2', sans-serif; --yes: #E2483D; --yes-ink: #fff; --no-line: rgba(46, 59, 30, .35); --radius: 20px;
}
[data-scene="picnic"] .ch-frame { border: 16px solid transparent; background: linear-gradient(#FFFDF6, #FFFDF6) padding-box, repeating-linear-gradient(0deg, rgba(226, 72, 61, .55) 0 8px, transparent 8px 16px) border-box, repeating-linear-gradient(90deg, rgba(226, 72, 61, .55) 0 8px, #fff 8px 16px) border-box; }
[data-scene="picnic"] .ch-frame__top span { font: 800 16px 'Baloo 2', sans-serif; letter-spacing: .2em; color: #E2483D; }
[data-scene="picnic"] .ch-q { font-weight: 800; }

/* momos — the street stall */
[data-scene="momos"] .ch-bg { background: radial-gradient(70% 50% at 50% 100%, #FF8A3D, transparent), linear-gradient(170deg, #FFE1C2, #FFB98A); }
[data-scene="momos"] {
  --ink: #4A1F0A; --fbg: #FFF7EA; --fink: #4A1F0A; --fq: 'Baloo 2', sans-serif; --yes: #D7261E; --yes-ink: #FFF7EA; --no-line: rgba(74, 31, 10, .35); --radius: 18px;
}
[data-scene="momos"] .ch-frame { padding-top: 74px; overflow: hidden; }
[data-scene="momos"] .ch-frame__top { position: absolute; left: 0; right: 0; top: 0; margin: 0; padding: 12px 0 20px; color: #FFE14F; background: radial-gradient(circle at 12px 100%, transparent 11px, #D7261E 12px) 0 0 / 24px 100% repeat-x; }
[data-scene="momos"] .ch-frame__top span { font: 800 20px 'Baloo 2', sans-serif; letter-spacing: .14em; }
[data-scene="momos"] .ch-frame__top em { color: #fff; opacity: .9; }
[data-scene="momos"] .ch-q { font-weight: 800; }

/* chai — rain on the window */
[data-scene="chai"] .ch-bg { background: radial-gradient(60% 40% at 50% 100%, rgba(245, 194, 107, .25), transparent), linear-gradient(180deg, #13252E, #2E5560); }
[data-scene="chai"] {
  --ink: #EFFAFB; --fbg: rgba(255, 255, 255, .1); --fink: #EFFAFB; --fq: 'Fraunces', serif; --yes: #F5C26B; --yes-ink: #2A1A0A;
  --no-line: rgba(239, 250, 251, .4); --sheet: rgba(25, 48, 58, .86); --sheet-ink: #EFFAFB;
}
[data-scene="chai"] .ch-frame, [data-scene="chai"] .ch-sheet { backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .18); }
[data-scene="chai"] .ch-frame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .25) 2px, transparent 3px), radial-gradient(circle at 80% 14%, rgba(255, 255, 255, .2) 3px, transparent 4px), radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .2) 2px, transparent 3px), radial-gradient(circle at 24% 78%, rgba(255, 255, 255, .22) 3px, transparent 4px), radial-gradient(circle at 92% 86%, rgba(255, 255, 255, .2) 2px, transparent 3px); }
[data-scene="chai"] .i-env { --paper: #3D6670; --flap: #5C8A93; --seal: #C8693A; }

/* gaming — arcade dialog */
[data-scene="gaming"] .ch-bg { background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px), radial-gradient(70% 50% at 50% 30%, #3D1C7A, #0B0518); }
[data-scene="gaming"] {
  --ink: #F1EAFF; --fbg: #0D0620; --fink: #F1EAFF; --fq: 'Press Start 2P', monospace; --fl: 'Space Grotesk', sans-serif; --yes: #38F2C1; --yes-ink: #120A2A;
  --no-bg: transparent; --no-line: #FF4FD8; --no-ink: #FF4FD8; --sheet: #0D0620; --sheet-ink: #F1EAFF; --radius: 0;
}
[data-scene="gaming"] .ch-frame, [data-scene="gaming"] .ch-sheet { border: 4px solid #38F2C1; box-shadow: 0 0 0 4px #0D0620, 0 0 0 8px #7C5CFF, 0 0 50px rgba(56, 242, 193, .35); }
[data-scene="gaming"] .ch-frame__top span { font: 12px 'Press Start 2P', monospace; letter-spacing: .05em; color: #FFE14F; animation: chBlink 1s steps(2) infinite; }
[data-scene="gaming"] .ch-frame__top em { font: 8px 'Press Start 2P', monospace; color: #38F2C1; opacity: 1; margin-top: 6px; }
[data-scene="gaming"] .ch-q { font-size: clamp(16px, 5vw, 21px); line-height: 1.6; font-weight: 400; color: #38F2C1; text-shadow: 3px 3px 0 #7C5CFF; }
[data-scene="gaming"] .ch-q__to { font: 10px 'Press Start 2P', monospace; color: #FFE14F; margin-bottom: 10px; text-shadow: none; }
[data-scene="gaming"] .ch-from { font: 9px 'Press Start 2P', monospace; color: #FF4FD8; }
[data-scene="gaming"] .ch-yes, [data-scene="gaming"] .ch-no, [data-scene="gaming"] .ch-send { font: 12px 'Press Start 2P', monospace; border-radius: 0; animation: none; }
[data-scene="gaming"] .ch-yes { box-shadow: 5px 5px 0 #7C5CFF; }
[data-scene="gaming"] .ch-big { font-size: 20px; line-height: 1.5; color: #38F2C1; text-shadow: 3px 3px 0 #FF4FD8; }
[data-scene="gaming"] .ch-stamp { font: 22px 'Press Start 2P', monospace; color: #FFE14F; border-color: #FFE14F; mix-blend-mode: normal; background: #0D0620; }
[data-scene="gaming"] .ch-h2 { font: 10px/1.8 'Press Start 2P', monospace; }
[data-scene="gaming"] .ch-chip { border-radius: 0; }

/* photo — the polaroid */
[data-scene="photo"] .ch-bg { background: radial-gradient(60% 50% at 70% 20%, rgba(255, 170, 120, .35), transparent), linear-gradient(170deg, #E9DFD0, #CDBBA4); }
[data-scene="photo"] {
  --ink: #2B2420; --fbg: #FFFFFF; --fink: #2B2420; --fq: 'Caveat', cursive; --yes: #2B2420; --yes-ink: #fff; --no-line: rgba(43, 36, 32, .35); --radius: 3px;
}
[data-scene="photo"] .ch-frame { padding: 14px 14px 22px; transform: rotate(-1.5deg); }
[data-scene="photo"] .ch-hero { aspect-ratio: 1; max-height: 300px; margin: 0 auto 14px; border-radius: 2px; background: linear-gradient(160deg, #3A2E28, #15100D); overflow: hidden; }
[data-scene="photo"] .ch-photo { width: 100%; height: 100%; padding: 0; margin: 0; transform: none; border-radius: 0; box-shadow: none; }
[data-scene="photo"] .ch-photo img { height: 100%; aspect-ratio: auto; }
[data-scene="photo"] .ch-photo:not([hidden]) + .ch-art { display: none; }
[data-scene="photo"] .ch-q { font-weight: 700; font-size: clamp(38px, 11vw, 50px); }
[data-scene="photo"] .ch-q__to { font-size: .7em; }
[data-scene="photo"] .ch-line { font-family: 'Special Elite', monospace; font-size: 15px; }

/* sunset — glass over the sea */
[data-scene="sunset"] .ch-bg { background: linear-gradient(180deg, #2D1B4E 0%, #7B2D6B 35%, #FF7A59 70%, #FFC371 100%); }
[data-scene="sunset"] {
  --ink: #FFF5EC; --fbg: rgba(255, 245, 236, .16); --fink: #FFF5EC; --fq: 'Fraunces', serif; --yes: #FFE066; --yes-ink: #5A1F3E;
  --no-line: rgba(255, 245, 236, .45); --sheet: rgba(90, 31, 62, .78); --sheet-ink: #FFF5EC;
}
[data-scene="sunset"] .ch-frame, [data-scene="sunset"] .ch-sheet { backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .25); }
[data-scene="sunset"] .ch-q { font-style: italic; }
[data-scene="sunset"] .i-env { --paper: #FFD9B8; --flap: #FFB38A; --seal: #C2185B; }

/* adventure — the mission map */
[data-scene="adventure"] .ch-bg { background: radial-gradient(70% 50% at 50% 0, #3F6B3A, transparent), linear-gradient(170deg, #13261C, #24402D); }
[data-scene="adventure"] {
  --ink: #F1FFE9; --fbg: #F1E2C0; --fink: #3A2614; --fq: 'Fraunces', serif; --fl: 'Special Elite', monospace; --yes: #2F5D34; --yes-ink: #F1E2C0;
  --no-line: rgba(58, 38, 20, .4); --no-ink: #3A2614; --sheet: #F1E2C0; --sheet-ink: #3A2614; --radius: 4px;
}
[data-scene="adventure"] .ch-frame, [data-scene="adventure"] .ch-sheet { box-shadow: inset 0 0 40px rgba(120, 70, 20, .45), 0 30px 70px rgba(0, 0, 0, .4); }
[data-scene="adventure"] .ch-frame__top span { font: 18px 'Special Elite', monospace; letter-spacing: .2em; color: #B3261E; border: 2px solid #B3261E; padding: 2px 10px; transform: rotate(-3deg); }
[data-scene="adventure"] .ch-frame__top em { font-family: 'Special Elite', monospace; margin-top: 6px; }
[data-scene="adventure"] .ch-q { font-weight: 700; }
[data-scene="adventure"] .i-env { --paper: #E6D3A8; --flap: #D6BE8A; --seal: #B3261E; }

/* shopping — the bill */
[data-scene="shopping"] .ch-bg { background: radial-gradient(circle at 20% 20%, #FFD0E8, transparent 50%), radial-gradient(circle at 80% 80%, #DCCBFF, transparent 50%), #FFEAF4; }
[data-scene="shopping"] {
  --ink: #3A1240; --fbg: #FFFFFF; --fink: #2A1830; --fq: 'Fredoka', sans-serif; --yes: #C2185B; --yes-ink: #fff; --no-line: rgba(42, 24, 48, .3); --radius: 0;
}
[data-scene="shopping"] .ch-frame { --z: 10px; padding-top: 30px; padding-bottom: 30px; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%; -webkit-mask-composite: source-in; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100% intersect, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .15)); box-shadow: none; }
[data-scene="shopping"] .ch-frame__top span { font: 700 16px 'Special Elite', monospace; letter-spacing: .24em; }
[data-scene="shopping"] .ch-frame__top em { font-family: 'Special Elite', monospace; }
[data-scene="shopping"] .ch-frame__foot { font: 700 18px 'Special Elite', monospace; border-top: 2px solid currentColor; padding-top: 10px; }
[data-scene="shopping"] .ch-q { font-weight: 700; }

/* virtual — the video call */
[data-scene="virtual"] .ch-bg { background: radial-gradient(70% 50% at 50% 20%, #1F5F8B, transparent), linear-gradient(180deg, #0B1424, #0F1B2D); }
[data-scene="virtual"] {
  --ink: #EAF6FF; --fbg: rgba(255, 255, 255, .07); --fink: #EAF6FF; --fq: 'Space Grotesk', sans-serif; --fl: 'Space Grotesk', sans-serif;
  --yes: #34C759; --yes-ink: #fff; --no-bg: #FF3B30; --no-line: #FF3B30; --no-ink: #fff; --sheet: rgba(20, 34, 56, .9); --sheet-ink: #EAF6FF; --radius: 32px;
}
[data-scene="virtual"] .ch-frame, [data-scene="virtual"] .ch-sheet { backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .14); }
[data-scene="virtual"] .ch-frame__top { flex-direction: row; justify-content: space-between; }
[data-scene="virtual"] .ch-frame__top span { font: 700 12px 'Space Grotesk', sans-serif; letter-spacing: .1em; color: #FF453A; animation: chBlink 1.4s infinite; }
[data-scene="virtual"] .ch-q { font-weight: 700; letter-spacing: -.02em; }
[data-scene="virtual"] .ch-no { font-family: 'Space Grotesk', sans-serif; }

/* dinner — black & gold */
[data-scene="dinner"] .ch-bg { background: radial-gradient(60% 40% at 50% 30%, rgba(232, 176, 75, .18), transparent), linear-gradient(180deg, #120806, #2A0E0B); }
[data-scene="dinner"] {
  --ink: #FFF1E0; --fbg: #110906; --fink: #F6E6CC; --fq: 'Playfair Display', serif; --fl: 'Cormorant Garamond', serif; --yes: #E8B04B; --yes-ink: #1A0E06;
  --no-line: rgba(232, 176, 75, .5); --no-ink: #E8C26B; --sheet: #110906; --sheet-ink: #F6E6CC; --radius: 4px;
}
[data-scene="dinner"] .ch-frame, [data-scene="dinner"] .ch-sheet { border: 1px solid #C99A3E; outline: 1px solid rgba(201, 154, 62, .5); outline-offset: -9px; }
[data-scene="dinner"] .ch-frame__top span { font: italic 500 22px 'Playfair Display', serif; letter-spacing: .04em; color: #E8C26B; }
[data-scene="dinner"] .ch-frame__top em { font: italic 15px 'Cormorant Garamond', serif; color: #E8C26B; }
[data-scene="dinner"] .ch-q { font-style: italic; font-weight: 500; }
[data-scene="dinner"] .ch-line { font-size: 19px; font-style: italic; }
[data-scene="dinner"] .f-menu { font-family: 'Cormorant Garamond', serif; font-size: 18px; }
[data-scene="dinner"] .ch-yes { font-family: 'Playfair Display', serif; font-style: italic; border-radius: 2px; }
[data-scene="dinner"] .ch-stamp { color: #E8B04B; border-color: #E8B04B; mix-blend-mode: normal; font-family: 'Playfair Display', serif; font-style: italic; background: #110906; }
[data-scene="dinner"] .i-env { --paper: #1A0E0A; --flap: #2A1510; --seal: #8E1B1B; }
[data-scene="dinner"] .i-env__letter { background: #F6E6CC; }

/* cozy — knit and fairy lights */
[data-scene="cozy"] .ch-bg { background: radial-gradient(60% 40% at 50% 100%, rgba(255, 179, 199, .3), transparent), linear-gradient(180deg, #2E2140, #5C4475); }
[data-scene="cozy"] {
  --ink: #FFF2FA; --fbg: #FFF6EE; --fink: #4A2A3E; --fq: 'Fredoka', sans-serif; --yes: #FF7AA2; --yes-ink: #fff; --no-line: rgba(74, 42, 62, .3); --no-ink: #4A2A3E; --radius: 30px;
}
[data-scene="cozy"] .ch-frame { background: radial-gradient(circle at 25% 25%, rgba(200, 160, 170, .18) 18%, transparent 20%) 0 0 / 14px 14px, radial-gradient(circle at 75% 75%, rgba(200, 160, 170, .18) 18%, transparent 20%) 0 0 / 14px 14px, #FFF6EE; }
[data-scene="cozy"] .ch-q { font-weight: 700; }
[data-scene="cozy"] .i-env { --paper: #FFE3EC; --flap: #F7C6D6; --seal: #8C6A9E; }

/* custom — a letter */
[data-scene="custom"] .ch-bg { background: radial-gradient(circle at 15% 15%, #FFF, transparent 40%), linear-gradient(170deg, #FFE4EC, #FFC2D4); }
[data-scene="custom"] { --ink: #4A1630; --fbg: #FFFDF9; --fink: #4A1630; --fq: 'Fraunces', serif; --fl: 'Caveat', cursive; --yes: #E5336D; --yes-ink: #fff; --no-line: rgba(74, 22, 48, .3); --radius: 6px; }
[data-scene="custom"] .ch-frame { background: linear-gradient(90deg, transparent 30px, rgba(229, 51, 109, .3) 30px 32px, transparent 32px), repeating-linear-gradient(180deg, transparent 0 31px, rgba(74, 120, 200, .16) 31px 32px), #FFFDF9; padding-left: 42px; }
[data-scene="custom"] .ch-line { font-size: 24px; line-height: 1.3; }

/* Safari's toolbar leaves ~640px. Keep the buttons on screen instead of clipping them. */
@media (max-height: 720px) {
  .ch-stage { padding: 14px 14px 32px; }
  .ch-hero { min-height: 78px; }
  .ch-frame { padding: 14px 16px 12px; }
  .ch-frame__top { margin-bottom: 4px; }
  .ch-q, [data-scene] .ch-q { font-size: clamp(26px, 7.4vw, 34px); }
  .ch-line { margin-bottom: 8px; }
  .ch-frame__foot { margin-top: 8px; }
  .ch-btns { min-height: 58px; gap: 8px; }
  [data-scene="movie"] .ch-q { font-size: clamp(32px, 9vw, 42px); }
  [data-scene="movie"] .ch-frame__top span { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .a-emoji, .a-moon, .i-env, .ch-yes, .ch-intro__tap, .a-steam, .a-candle i, .a-sun__disc, .a-compass__needle, .a-avatar i, .dz-lights i, .dz-marquee i, .i-curtain__bulbs { animation: none !important; }
}
