:root {
  color-scheme: light;
  --ink: #413b39;
  --ink-soft: #746968;
  --rose: #dc8e91;
  --rose-deep: #b96f79;
  --rose-pale: #f9e6e1;
  --cream: #fff9f4;
  --paper: #fffdf8;
  --lavender: #eee9f8;
  --sage: #e6eee2;
  --gold: #c6a36b;
  --line: rgba(82, 67, 63, .14);
  --shadow: 0 18px 48px rgba(102, 69, 67, .11);
  font-family: ui-rounded, "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: #fff8f3; }
body { margin: 0; min-width: 320px; min-height: 100vh; min-height: 100dvh; color: var(--ink); background: radial-gradient(ellipse at 50% -5%, #fff 0, #fff8f2 42%, #fbf3f3 100%); overflow-x: hidden; }
button, a { font: inherit; -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #bb9298; outline-offset: 4px; }
.sky-specks { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .45; background-image: radial-gradient(circle at 6% 15%, #e3c7b8 1px, transparent 1.6px), radial-gradient(circle at 88% 20%, #d8c2d4 1px, transparent 1.5px), radial-gradient(circle at 13% 73%, #d5cab6 1px, transparent 1.5px), radial-gradient(circle at 92% 79%, #ebc5bb 1px, transparent 1.5px); background-size: 180px 180px, 230px 230px, 210px 210px, 260px 260px; }
.app-shell { position: relative; z-index: 1; width: min(100%, 600px); min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 22px calc(35px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 42px; margin-bottom: 10px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; color: #82736f; text-decoration: none; font-family: Georgia, serif; font-size: 12px; font-style: italic; letter-spacing: .04em; }
.wordmark-mark { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #dbb4ad; border-radius: 50%; color: #bd8582; font-family: Georgia, serif; font-size: 18px; line-height: 1; }
.sound-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid rgba(130, 96, 90, .16); border-radius: 999px; background: rgba(255,255,255,.68); color: #88746f; font-size: 11px; cursor: pointer; transition: background .2s, transform .2s; }
.sound-toggle:hover { background: white; transform: translateY(-1px); }
#soundIcon { font-size: 14px; color: #bc8886; }
.screen { width: 100%; }
.intro-screen { position: relative; min-height: min(790px, calc(100dvh - 70px)); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 29px 0 10px; text-align: center; }
.intro-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 12px; color: #ad8886; font-size: 10px; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; }
.tiny-sparkle { color: var(--gold); font-size: 15px; vertical-align: -1px; }
h1, h2, p { margin-top: 0; }
.intro-screen h1 { margin: 0; color: #493e3d; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(42px, 12vw, 59px); line-height: .99; letter-spacing: -.055em; }
.intro-screen h1 span { color: #bd8384; font-style: italic; }
.intro-subtitle { max-width: 330px; margin: 17px auto 0; color: #887c78; font-size: 13px; line-height: 1.65; }
.intro-orbit { position: absolute; z-index: 2; color: #d6b1a9; font-family: Georgia, serif; }
.orbit-one { top: 87px; right: 7%; font-size: 20px; animation: twinkle 3s ease-in-out infinite; }
.orbit-two { top: 182px; left: 2%; color: #d19a9c; font-size: 25px; animation: bob 4s ease-in-out infinite; }
.intro-portrait-wrap { position: relative; flex: 1; display: grid; place-items: center; min-height: 275px; max-height: 385px; margin: 8px 0 2px; }
.portrait-aura { position: absolute; width: min(76vw, 340px); height: min(76vw, 340px); max-height: 340px; max-width: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(247,220,210,.72) 0 42%, rgba(243,226,224,.47) 58%, rgba(244,235,236,0) 73%); }
.character-portrait { position: relative; z-index: 1; width: min(82vw, 340px); max-width: 340px; transform: translateY(7px); filter: drop-shadow(0 13px 9px rgba(107,76,72,.08)); }
.character-portrait svg { display: block; width: 100%; height: auto; }
.floating-note { position: absolute; z-index: 2; color: #c8908f; font-size: 23px; animation: bob 3.6s ease-in-out infinite; }
.note-left { top: 27%; left: 11%; transform: rotate(-12deg); }
.note-right { top: 42%; right: 10%; color: #bdad9a; animation-delay: .8s; }
.intro-bottom { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.gift-teaser { display: flex; align-items: center; gap: 10px; color: #887874; font-size: 11px; line-height: 1.55; text-align: left; }
.gift-teaser strong { color: #675857; font-weight: 600; }
.gift-teaser-icon { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #ead6cd; border-radius: 50%; background: #fffaf5; color: #be8b87; font-size: 19px; }
.primary-button, .claim-button { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 52px; width: min(100%, 330px); padding: 13px 20px; border: 0; border-radius: 999px; background: linear-gradient(110deg, #c8898d, #bb858b 52%, #ad7c83); box-shadow: 0 9px 23px rgba(177, 118, 125, .25), inset 0 1px 0 rgba(255,255,255,.35); color: white; font-size: 14px; font-weight: 600; letter-spacing: .025em; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.primary-button span, .claim-button span { font-size: 18px; font-weight: 400; }
.primary-button:hover, .claim-button:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(177, 118, 125, .3); }
.made-note { margin: 0; color: #ad9b96; font-family: Georgia, serif; font-size: 11px; font-style: italic; }
.game-screen { padding: 17px 0 42px; }
.game-heading { margin: 2px 0 17px; }
.game-heading .eyebrow { margin-bottom: 6px; font-size: 9px; }
.game-heading h1 { margin-bottom: 6px; color: #4a403f; font-family: Georgia, serif; font-size: clamp(28px, 8vw, 36px); font-weight: 400; letter-spacing: -.04em; }
.scene-description { margin: 0; color: #827673; font-size: 12px; line-height: 1.5; }
.scene-stage { --room-a: #fff0e6; --room-b: #fbe1dc; --room-floor: #eed8cd; position: relative; height: clamp(260px, 76vw, 355px); max-height: 355px; overflow: hidden; border: 1px solid rgba(100,75,69,.12); border-radius: 26px; background: linear-gradient(180deg, var(--room-a), var(--room-b) 73%, var(--room-floor) 73%); box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 12px 28px rgba(108,75,69,.09); isolation: isolate; transition: background .5s; }
.scene-stage::before { position: absolute; z-index: -1; inset: 0; content: ""; opacity: .36; background: radial-gradient(ellipse at 16% 20%, rgba(255,255,255,.86), transparent 40%), radial-gradient(circle at 84% 28%, rgba(255,255,255,.77), transparent 29%); }
.scene-stage[data-theme="morning"] { --room-a: #fcebdc; --room-b: #f4d8cf; --room-floor: #e8cbbd; }
.scene-stage[data-theme="kitchen"] { --room-a: #f7eadd; --room-b: #e8e7dc; --room-floor: #d9d8c8; }
.scene-stage[data-theme="breakfast"] { --room-a: #faebdf; --room-b: #f1e2d6; --room-floor: #e7d2c5; }
.scene-stage[data-theme="tidy"] { --room-a: #eaf1e7; --room-b: #dce9dd; --room-floor: #cbd9cc; }
.scene-stage[data-theme="me-time"] { --room-a: #eee7f3; --room-b: #e7dce9; --room-floor: #d3c7dc; }
.scene-stage[data-theme="snacks"] { --room-a: #f8ead9; --room-b: #f2dfcf; --room-floor: #e5ccbb; }
.scene-stage[data-theme="dinner"] { --room-a: #e8e0ed; --room-b: #dccfe3; --room-floor: #cdbecf; }
.scene-stage[data-theme="goodnight"] { --room-a: #e7e3f0; --room-b: #d9d1e3; --room-floor: #c9bed1; }
.room-window { position: absolute; top: 10%; left: 8%; width: 23%; height: 38%; min-width: 65px; max-width: 112px; border: 4px solid rgba(255,255,255,.82); border-radius: 47% 47% 12px 12px; background: linear-gradient(180deg, rgba(255,255,255,.68), rgba(224,225,231,.25)); box-shadow: 0 3px 8px rgba(92,77,80,.08); opacity: .78; }
.room-window::before, .room-window::after { position: absolute; content: ""; background: rgba(255,255,255,.76); }
.room-window::before { top: 0; bottom: 0; left: 50%; width: 3px; }
.room-window::after { top: 51%; left: 0; right: 0; height: 3px; }
.room-window i, .room-window b { position: absolute; z-index: -1; bottom: -15px; width: 48%; height: 19px; border-radius: 50% 50% 0 0; background: rgba(159,180,149,.42); }
.room-window i { left: -5px; }.room-window b { right: -5px; }
.window-sun { position: absolute; top: 17%; right: 13%; width: 15px; height: 15px; border-radius: 50%; background: #fff3be; box-shadow: 0 0 14px 5px rgba(255,239,191,.52); }
.room-sparkles { position: absolute; inset: 0; color: rgba(182,144,118,.75); pointer-events: none; }
.room-sparkles span { position: absolute; font-family: Georgia, serif; animation: twinkle 3s ease-in-out infinite; }
.room-sparkles span:nth-child(1) { top: 17%; right: 19%; font-size: 18px; }.room-sparkles span:nth-child(2) { top: 43%; left: 40%; font-size: 23px; animation-delay: .7s; }.room-sparkles span:nth-child(3) { top: 68%; right: 11%; font-size: 18px; animation-delay: 1.4s; }.room-sparkles span:nth-child(4) { top: 29%; left: 37%; font-size: 17px; animation-delay: .3s; }
.scene-prop { position: absolute; right: 10%; bottom: 17%; display: grid; place-items: center; width: 82px; height: 65px; border: 1px solid rgba(125,92,82,.15); border-radius: 18px 18px 13px 13px; background: rgba(255,252,245,.73); box-shadow: 0 6px 13px rgba(87,67,61,.09); color: #9c7e78; font-size: 33px; transform: rotate(2deg); }
.scene-prop::after { position: absolute; bottom: -8px; left: 14px; width: 54px; height: 7px; border-radius: 50%; background: rgba(94,75,66,.11); content: ""; }
.scene-stage.mini-drama::after, .scene-stage.mini-friends::after { position: absolute; z-index: 1; top: 14%; right: 19%; color: #a37f8b; font-family: Georgia, serif; font-size: 29px; pointer-events: none; }
.scene-stage.mini-drama::after { content: "♫"; animation: drama-note 1.8s ease-in-out infinite; }
.scene-stage.mini-friends::after { content: "♡  ♡"; font-size: 22px; animation: friends-hearts 1.8s ease-in-out infinite; }
.family-portraits { position: absolute; bottom: 17%; left: 7%; display: flex; align-items: end; gap: -5px; }
.family-person { position: relative; display: flex; flex-direction: column; align-items: center; width: 59px; min-height: 78px; padding: 0; border: 1px solid rgba(255,255,255,.65); border-radius: 30px 30px 13px 13px; background: rgba(255,255,255,.55); box-shadow: 0 4px 11px rgba(87,67,61,.07); }
.family-person svg { width: 52px; height: 63px; margin-top: -7px; }
.family-person span { margin-top: -2px; color: #736462; font-size: 9px; }
.hero-character { position: absolute; z-index: 2; left: 50%; bottom: 7%; display: flex; flex-direction: column; align-items: center; width: 142px; padding: 0; border: 0; background: transparent; cursor: grab; transform: translateX(-50%); touch-action: none; user-select: none; transition: filter .2s; }
.hero-character:active, .hero-character.is-armed { cursor: grabbing; filter: drop-shadow(0 0 14px rgba(223,154,145,.62)); }
.hero-character.is-armed .hero-svg { animation: ready-bounce .55s ease-in-out infinite alternate; }
.hero-svg { display: block; width: 100%; filter: drop-shadow(0 7px 5px rgba(75,59,58,.1)); }
.hero-svg svg { display: block; width: 100%; height: auto; }
.hero-name { position: relative; z-index: 3; margin-top: -5px; padding: 4px 11px; border: 1px solid rgba(255,255,255,.75); border-radius: 999px; background: rgba(255,250,244,.8); color: #806b68; font-family: Georgia, serif; font-size: 10px; font-style: italic; }
.reward-float { position: absolute; z-index: 5; left: 50%; bottom: 59%; padding: 9px 13px; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; background: rgba(255,251,238,.95); box-shadow: 0 6px 16px rgba(158,113,72,.16); color: #a67540; font-family: Georgia, serif; font-size: 15px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 12px) scale(.85); }
.reward-float span { color: #d2a054; }
.reward-float.is-visible { animation: reward-rise 5s ease both; }
.scene-caption { position: absolute; right: 12px; bottom: 10px; max-width: 58%; color: rgba(93,75,71,.63); font-family: Georgia, serif; font-size: 10px; font-style: italic; text-align: right; }
.interaction-panel { margin-top: 15px; }
.instruction-row { display: flex; align-items: center; gap: 9px; min-height: 34px; }
.instruction-mark { color: #bd8e86; font-size: 17px; }
.instruction-row p { flex: 1; margin: 0; color: #857673; font-size: 11px; line-height: 1.45; }
.step-progress { color: #b0948c; font-size: 10px; white-space: nowrap; }
.target-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 8px; }
.target-card { position: relative; display: flex; align-items: center; gap: 9px; min-height: 62px; padding: 9px 11px; border: 1px solid rgba(171,136,124,.2); border-radius: 17px; background: rgba(255,253,249,.76); text-align: left; cursor: pointer; transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; }
.target-card:hover { transform: translateY(-2px); background: #fffdf9; }
.target-card.is-highlighted { border-color: #dba7a1; box-shadow: 0 0 0 3px rgba(226,176,167,.16), 0 5px 14px rgba(186,137,127,.1); animation: target-glow 1.8s ease-in-out infinite; }
.target-card.is-complete { border-color: rgba(143,169,139,.42); background: #f1f5ee; cursor: default; }
.target-icon { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: #f8ece4; font-size: 17px; }
.target-card:nth-child(3n) .target-icon { background: #eeeaf3; }
.target-card.is-complete .target-icon { background: #e0ebda; }
.target-copy { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.target-copy strong { color: #625451; font-size: 10px; font-weight: 600; line-height: 1.2; }
.target-copy small { color: #a0908b; font-size: 9px; line-height: 1.2; }
.target-status { color: #8ba282; font-size: 14px; }
.scene-feedback { min-height: 19px; margin: 9px 2px 0; color: #9a7773; font-family: Georgia, serif; font-size: 12px; font-style: italic; text-align: center; }
.next-scene-button, .gift-reveal-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 12px 17px; border: 1px solid rgba(179,131,126,.22); border-radius: 999px; background: #fffaf5; box-shadow: 0 6px 15px rgba(133,88,82,.08); color: #90696a; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .2s, background .2s; }
.next-scene-button:hover, .gift-reveal-button:hover { transform: translateY(-2px); background: #fff; }
.next-scene-button span, .gift-reveal-button span { color: #bd8d82; font-size: 16px; }
.gift-tracker { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; width: min(100%, 600px); margin: 0 auto; padding: 12px 22px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(164,128,122,.13); border-radius: 18px 18px 0 0; background: rgba(255,252,248,.94); box-shadow: 0 -8px 28px rgba(99,71,67,.08); backdrop-filter: blur(15px); }
.tracker-topline, .tracker-bottomline { display: flex; justify-content: space-between; align-items: center; color: #8c7975; font-size: 10px; }
.tracker-topline strong { color: #a77576; font-size: 11px; font-weight: 700; }
.tracker-topline small { color: #b2a19a; font-size: 9px; font-weight: 400; }
.tracker-track { height: 7px; margin: 8px 0 6px; overflow: hidden; border-radius: 999px; background: #f0e7e1; }
.tracker-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #eab4a7, #c8888b, #d5b38a); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.tracker-bottomline { color: #ad9c95; font-size: 9px; }
.book-screen { padding: 25px 0 48px; text-align: center; }
.book-eyebrow { margin-bottom: 14px; }
.bedroom-scene { position: relative; min-height: 340px; overflow: hidden; border: 1px solid rgba(96,79,82,.13); border-radius: 25px; background: linear-gradient(180deg, #ebe6f0 0%, #e4dce8 62%, #d4c8d3 62%, #c9b8c2 100%); box-shadow: var(--shadow); }
.bedroom-scene::before { position: absolute; top: 14%; right: 12%; width: 115px; height: 100px; border-radius: 50%; background: #fff5dc; content: ""; opacity: .6; filter: blur(22px); }
.bedroom-scene::after { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; height: 31%; border-top: 1px solid rgba(255,255,255,.46); border-radius: 48% 48% 0 0 / 16% 16% 0 0; background: linear-gradient(150deg, #d9c8d3, #c9b7c4); content: ""; }
.bedroom-moon { position: absolute; top: 24px; right: 27px; color: #faf0cf; font-family: Georgia, serif; font-size: 44px; opacity: .8; }
.bedroom-glow { position: absolute; right: 5%; bottom: 18%; width: 155px; height: 160px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,220,158,.5), transparent 68%); }
.bedside-lamp { position: absolute; z-index: 1; top: 20%; right: 13%; width: 50px; height: 86px; }
.bedside-lamp span { position: absolute; top: 0; left: 5px; width: 41px; height: 35px; border-radius: 50% 50% 10px 10px; background: #f4d899; box-shadow: 0 0 24px rgba(255,219,153,.7); }
.bedside-lamp i { position: absolute; top: 30px; left: 23px; width: 6px; height: 38px; background: #b49270; }
.bedside-lamp b { position: absolute; bottom: 7px; left: 10px; width: 33px; height: 7px; border-radius: 50%; background: #a98268; }
.bed-headboard { position: absolute; z-index: 1; bottom: 19%; left: 2%; width: 57%; height: 32%; border: 1px solid rgba(255,255,255,.42); border-radius: 55% 55% 13px 13px; background: linear-gradient(145deg, rgba(246,235,233,.8), rgba(218,202,217,.84)); }
.bed-pillow { position: absolute; z-index: 2; bottom: 20%; left: 5%; width: 40%; height: 22%; border: 1px solid rgba(183,155,164,.22); border-radius: 48% 43% 35% 32%; background: linear-gradient(150deg, #fff7ec, #eadde2); box-shadow: 0 6px 15px rgba(82,60,68,.11); transform: rotate(-7deg); }
.bedside-character { position: absolute; z-index: 3; left: 5%; bottom: 8%; width: 52%; max-width: 225px; filter: drop-shadow(0 8px 8px rgba(69,50,56,.12)); }
.bedside-character svg { display: block; width: 100%; height: auto; }
.bed-duvet { position: absolute; z-index: 4; right: -4%; bottom: -3%; left: -4%; height: 19%; border: 1px solid rgba(255,255,255,.44); border-radius: 48% 43% 0 0 / 30% 28% 0 0; background: linear-gradient(115deg, #eee2e1, #d9c6d1); box-shadow: 0 -5px 15px rgba(82,60,68,.08); transform: rotate(-2deg); }
.book-cover { position: absolute; z-index: 5; top: 42%; left: 31%; width: 36%; max-width: 150px; min-width: 126px; aspect-ratio: .72; padding: 8px; border: 0; border-radius: 5px 11px 11px 5px; background: linear-gradient(120deg, #a9636f, #d69797 57%, #bd7d86); box-shadow: 8px 9px 16px rgba(68,43,50,.23), inset 7px 0 9px rgba(80,43,50,.2); color: #fff2d6; cursor: pointer; transform: rotate(5deg); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.book-cover:hover { transform: rotate(2deg) translateY(-5px); box-shadow: 8px 14px 20px rgba(68,43,50,.23); }
.book-cover-frame { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; border: 1px solid rgba(246,220,175,.8); border-radius: 3px 8px 8px 3px; box-shadow: inset 0 0 0 3px rgba(248,224,188,.16); }
.book-flower { margin-bottom: 8px; color: #f4d9aa; font-size: 22px; }
.book-title { color: #fff3d9; font-family: Georgia, serif; font-size: clamp(13px, 4vw, 18px); line-height: 1.08; text-shadow: 0 1px 5px rgba(83,42,48,.27); }
.book-title b { color: #f5d9a4; font-size: 1.18em; font-weight: 400; font-style: italic; }
.book-gold-line { width: 42%; height: 1px; margin-top: 10px; background: #f0d49c; }
.book-open-prompt { margin-top: 8px; color: rgba(255,241,214,.8); font-family: Georgia, serif; font-size: 9px; font-style: italic; }
.bedside-caption { position: absolute; right: 8px; bottom: 11px; left: 8px; margin: 0; color: #73656e; font-family: Georgia, serif; font-size: 11px; font-style: italic; }
.letter-book { position: relative; margin: 19px 0 0; padding: 8px; border: 1px solid rgba(185,150,112,.38); border-radius: 13px 18px 18px 13px; background: linear-gradient(90deg, #e7d7bc 0, #fff7e6 4%, #fff9ed 49.4%, #e8dbc5 50%, #fff8e8 51%, #fffaf0 100%); box-shadow: 0 13px 34px rgba(92,67,56,.12); text-align: left; animation: open-book .6s cubic-bezier(.2,.8,.2,1) both; }
.letter-book::before { position: absolute; top: 10px; bottom: 10px; left: 50%; width: 1px; background: rgba(167,132,94,.23); box-shadow: 2px 0 5px rgba(121,93,63,.12); content: ""; }
.letter-page { position: relative; padding: 20px 19px 19px; }
.letter-kicker { margin: 0 0 15px; color: #ae847a; font-family: Georgia, serif; font-size: 11px; font-style: italic; text-align: center; }
.letter-copy { max-height: min(46vh, 390px); overflow-y: auto; padding: 0 3px; color: #514745; font-family: Georgia, "Times New Roman", serif; font-size: 13px; line-height: 1.72; scrollbar-color: #d9bdb1 transparent; scrollbar-width: thin; }
.letter-copy p { margin: 0 0 13px; }
.letter-copy p:first-child { color: #9d6f70; font-size: 16px; font-style: italic; }
.letter-copy .letter-signoff { margin-top: 18px; color: #896d68; font-style: italic; }
.gift-reveal-button { margin: 14px auto 0; background: linear-gradient(110deg,#f4e3c1,#f8efd9); color: #8d704c; }
.voucher-card { position: relative; overflow: hidden; margin: 20px 0 0; padding: 24px 20px 19px; border: 1px solid rgba(196,157,95,.45); border-radius: 25px; background: radial-gradient(ellipse at 50% 0, rgba(255,247,220,.95), transparent 43%), linear-gradient(140deg, #fff9ed, #f7e9db 60%, #f4eadf); box-shadow: 0 15px 35px rgba(141,105,65,.12), inset 0 1px white; animation: voucher-pop .6s cubic-bezier(.2,.8,.2,1) both; }
.voucher-card::before, .voucher-card::after { position: absolute; top: 50%; width: 22px; height: 22px; border: 1px solid rgba(196,157,95,.34); border-radius: 50%; background: #fbf4ec; content: ""; transform: translateY(-50%); }
.voucher-card::before { left: -12px; }.voucher-card::after { right: -12px; }
.voucher-confetti { margin-bottom: 7px; color: #c19c61; font-size: 16px; letter-spacing: .12em; }
.voucher-kicker { margin: 0 0 6px; color: #a58261; font-family: Georgia, serif; font-size: 12px; font-style: italic; }
.voucher-card h2 { margin: 0; color: #8d675c; font-family: Georgia, serif; font-size: 31px; font-weight: 400; line-height: 1.06; letter-spacing: -.035em; }
.voucher-card h2 span { color: #ac8176; font-size: 18px; font-style: italic; }
.voucher-ticket { position: relative; display: flex; align-items: center; gap: 12px; margin: 18px 0 11px; padding: 12px 15px; border: 1px dashed rgba(169,132,82,.55); border-radius: 14px; background: rgba(255,255,255,.52); text-align: left; }
.ticket-stamp { display: grid; place-items: center; flex: 0 0 39px; width: 39px; height: 39px; border: 1px solid rgba(188,147,91,.42); border-radius: 50%; color: #bd945f; font-size: 22px; }
.ticket-name { margin: 0 0 2px; color: #977a65; font-size: 10px; }
.voucher-ticket strong { color: #745954; font-family: Georgia, serif; font-size: 20px; font-weight: 400; }
.voucher-note { margin: 0 0 15px; color: #8f7e75; font-family: Georgia, serif; font-size: 12px; font-style: italic; }
.claim-button { width: 100%; min-height: 50px; background: linear-gradient(110deg,#c99670,#bd866f 58%,#b57c76); font-size: 12px; }
.copy-button { display: block; margin: 11px auto 0; padding: 7px 12px; border: 0; background: transparent; color: #9c7775; font-size: 11px; text-decoration: underline; text-decoration-color: rgba(156,119,117,.4); text-underline-offset: 3px; cursor: pointer; }
.copy-feedback { min-height: 15px; margin: 4px 0 0; color: #779171; font-size: 10px; }
.voucher-footnote { margin: 5px 0 0; color: #af9b8d; font-family: Georgia, serif; font-size: 10px; font-style: italic; }
.qr-slot { margin: 13px auto; }
.qr-slot img { max-width: 150px; border: 8px solid white; border-radius: 8px; }
.restart-button { margin: 18px auto 0; padding: 9px 14px; border: 0; background: transparent; color: #987a76; font-size: 11px; text-decoration: underline; cursor: pointer; }
.page-footer { margin: 22px auto 0; color: #ae9c96; font-family: Georgia, serif; font-size: 10px; font-style: italic; text-align: center; }
.page-footer span { padding: 0 4px; color: #ce9a96; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes twinkle { 0%,100% { opacity: .55; scale: .9; } 50% { opacity: 1; scale: 1.12; } }
@keyframes drama-note { 0%,100% { opacity: .55; transform: translateY(8px) rotate(-8deg); } 50% { opacity: 1; transform: translateY(-7px) rotate(6deg); } }
@keyframes friends-hearts { 0%,100% { opacity: .55; transform: translateY(4px) scale(.94); } 50% { opacity: 1; transform: translateY(-7px) scale(1.12); } }
@keyframes reward-rise { 0% { opacity: 0; transform: translate(-50%, 13px) scale(.8); } 10%,84% { opacity: 1; transform: translate(-50%, -10px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -25px) scale(.97); } }
@keyframes ready-bounce { to { transform: translateY(-5px) rotate(-2deg); } }
@keyframes target-glow { 0%,100% { box-shadow: 0 0 0 2px rgba(226,176,167,.12), 0 4px 12px rgba(186,137,127,.08); } 50% { box-shadow: 0 0 0 4px rgba(226,176,167,.24), 0 7px 16px rgba(186,137,127,.14); } }
@keyframes open-book { from { opacity: 0; transform: perspective(900px) rotateX(6deg) scale(.96); } to { opacity: 1; transform: perspective(900px) rotateX(0) scale(1); } }
@keyframes voucher-pop { 0% { opacity: 0; transform: translateY(15px) scale(.97); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@media (min-width: 700px) {
  .app-shell { padding-top: 24px; }
  .intro-screen { min-height: 730px; }
  .game-screen { padding-top: 26px; }
  .scene-stage { height: 340px; }
  .target-card { min-height: 67px; }
}
@media (max-height: 740px) and (max-width: 600px) {
  .intro-screen { min-height: 680px; }
  .intro-portrait-wrap { min-height: 230px; }
  .character-portrait { max-width: 285px; }
  .intro-screen h1 { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Five cozy tap-only scenes */
.scene-prop { z-index: 3; border-color: rgba(225,174,154,.6); background: rgba(255,252,245,.88); box-shadow: 0 0 0 4px rgba(238,194,171,.18), 0 0 22px rgba(238,190,163,.42), 0 6px 13px rgba(87,67,61,.09); cursor: pointer; animation: target-glow 1.8s ease-in-out infinite; transition: transform .2s, background .3s, box-shadow .3s; }
.scene-prop:hover { transform: rotate(2deg) scale(1.05); }
.scene-prop:disabled { cursor: default; animation: none; }
.scene-prop.is-complete { background: #fff6e7; box-shadow: 0 0 25px rgba(255,224,162,.68); }
.scene-prop::after { display: none; }
.hero-character { cursor: default; touch-action: auto; user-select: auto; pointer-events: none; }
.hero-character:active, .hero-character.is-armed { cursor: default; filter: none; }
.hero-character.is-armed .hero-svg { animation: none; }
.family-portraits { align-items: end; gap: 4px; }
.family-person { width: 54px; min-height: 70px; }
.family-person svg { width: 44px; height: 53px; margin-top: -4px; }
.family-person--daughter, .family-person--son { width: 43px; min-height: 57px; border-radius: 23px 23px 11px 11px; }
.family-person--daughter svg, .family-person--son svg { width: 34px; height: 42px; margin-top: -2px; }
.family-person--daughter span, .family-person--son span { font-size: 8px; }
.scene-speech { position: absolute; z-index: 5; top: 20%; right: 7%; max-width: 48%; padding: 10px 13px; border: 1px solid rgba(215,168,155,.45); border-radius: 17px 17px 4px 17px; background: rgba(255,253,247,.96); box-shadow: 0 6px 16px rgba(118,85,77,.12); color: #936d68; font-family: Georgia, serif; font-size: 12px; font-style: italic; animation: voucher-pop .35s ease both; }
.scene-stage.breakfast-ready { box-shadow: inset 0 0 0 2px rgba(255,233,181,.55), 0 12px 28px rgba(108,75,69,.09); }
.scene-stage.breakfast-ready::after { position: absolute; top: 28%; right: 18%; content: "🥐  🥞  ☕"; font-size: 21px; filter: drop-shadow(0 4px 7px rgba(120,91,66,.16)); animation: drama-note 2s ease-in-out infinite; }
.scene-stage.room-clean { box-shadow: inset 0 0 0 2px rgba(235,255,225,.8), 0 0 28px rgba(193,220,179,.48); }
.scene-stage.room-clean .room-sparkles { color: #fff6d4; }
.scene-stage.dinner-ready { box-shadow: inset 0 0 0 2px rgba(255,224,171,.6), 0 0 25px rgba(241,199,147,.38); }
.scene-stage.dinner-ready::after { position: absolute; top: 32%; right: 17%; content: "🍲  🍚  🥗"; font-size: 19px; filter: drop-shadow(0 4px 7px rgba(120,91,66,.16)); }
.scene-stage.mini-drama::after { content: "♡  ♡"; color: #d28eaa; font-size: 28px; }
.scene-stage.mini-friends::after { content: "☕  ···"; color: #a37f8b; font-size: 23px; }
.heart-target { position: absolute; z-index: 6; top: -19px; left: 50%; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid rgba(221,152,164,.7); border-radius: 50%; background: rgba(255,248,249,.95); box-shadow: 0 0 0 3px rgba(244,204,211,.3), 0 0 16px rgba(232,166,180,.65); color: #d78999; font-size: 21px; line-height: 1; cursor: pointer; transform: translateX(-50%); animation: target-glow 1.8s ease-in-out infinite; }
.heart-target.is-complete { border-color: #d8a1a3; background: #fff1f2; animation: none; }
.family-person.is-kissed { background: rgba(255,248,248,.8); }
.kiss-heart { position: absolute; z-index: 7; top: -9px; left: 50%; color: #d9899d; font-size: 23px; font-style: normal; opacity: 0; pointer-events: none; }
.family-person.is-kissed .kiss-heart { animation: kiss-float 1.35s ease-out both; }
.scene-stage.night-glow { background: linear-gradient(180deg, #e4dcef, #d8cbe3 73%, #c5b6d0 73%); box-shadow: inset 0 0 0 2px rgba(255,240,207,.4), 0 0 24px rgba(198,182,224,.32); }
.target-card.is-vanishing { animation: dust-vanish .55s ease forwards; pointer-events: none; }
@keyframes kiss-float { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.65); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -48px) scale(1.25); } }
@keyframes dust-vanish { 0% { opacity: 1; transform: scale(1); filter: none; } 65% { opacity: .8; transform: scale(1.06); filter: brightness(1.18); } 100% { opacity: .42; transform: scale(.96); filter: saturate(.55); }
}

.scene-stage.breakfast-ready .scene-prop::after { position: absolute; display: block; top: -22px; left: 14px; width: auto; height: auto; border-radius: 0; background: transparent; content: "〰"; color: #fffaf1; font-family: Georgia, serif; font-size: 25px; text-shadow: 0 0 8px #fff; animation: drama-note 1.5s ease-in-out infinite; }
.scene-stage.mini-drama::after { content: "▣  ♡  ♡"; padding: 9px 13px; border: 2px solid rgba(255,255,255,.8); border-radius: 10px; background: rgba(255,246,250,.78); box-shadow: 0 0 24px rgba(239,174,194,.7); }
.scene-stage.mini-friends::after { content: "☕  ···"; padding: 8px 11px; border: 1px solid rgba(255,255,255,.7); border-radius: 16px; background: rgba(255,250,242,.8); box-shadow: 0 0 18px rgba(255,233,191,.6); }
.target-card.is-vanishing { position: relative; overflow: hidden; animation: dust-vanish .65s ease forwards; }
.target-card.is-vanishing::after { position: absolute; right: 17px; top: 9px; content: "✧  ·  ✦"; color: #d8bd84; font-size: 16px; opacity: 0; animation: sparkle-out .65s ease both; }
@keyframes dust-vanish { 0% { opacity: 1; transform: scale(1); filter: none; } 50% { opacity: .85; transform: scale(1.04); filter: brightness(1.12); } 100% { opacity: .06; transform: scale(.9); filter: saturate(.5); } }
@keyframes sparkle-out { 0% { opacity: 0; transform: scale(.5) translateY(5px); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25) translateY(-7px); } }

/* Four-scene refinements */
.scene-choice-overlay { position: absolute; z-index: 6; top: 29%; right: 3%; display: grid; width: 54%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.scene-choice-button { display: flex; min-width: 0; min-height: 104px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 8px 5px; border: 1px solid rgba(218,164,165,.48); border-radius: 20px; background: rgba(255,252,248,.88); box-shadow: 0 6px 15px rgba(107,77,83,.1); color: #856b71; text-align: center; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.scene-choice-button:hover { transform: translateY(-3px); background: #fffdfb; }
.scene-choice-button.is-highlighted { animation: target-glow 1.8s ease-in-out infinite; }
.scene-choice-button.is-complete { border-color: rgba(143,169,139,.55); background: #f1f5ee; animation: none; }
.scene-choice-button:disabled { cursor: default; }
.scene-choice-icon { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(230,203,200,.7); border-radius: 17px; background: linear-gradient(145deg, #fff8f3, #eeeaf5); color: #b77f87; font-size: 32px; line-height: 1; }
.scene-choice-label { color: #6c5758; font-size: 10px; font-weight: 600; line-height: 1.25; }
.scene-stage[data-theme="me-time"] .hero-character { left: 22%; bottom: 5%; width: 112px; transform: translateX(-50%); }
.scene-stage[data-theme="me-time"].mini-drama .scene-choice-button[data-action-id="drama"],
.scene-stage[data-theme="me-time"].mini-friends .scene-choice-button[data-action-id="friends"] { background: #fff8f7; box-shadow: 0 0 0 3px rgba(228,178,187,.2), 0 0 22px rgba(228,178,187,.42); }
.scene-stage[data-theme="goodnight"] .family-portraits { top: 36%; right: auto; bottom: auto; left: 3%; z-index: 4; display: flex; width: 59%; align-items: flex-end; justify-content: space-between; gap: 7px; }
.scene-stage[data-theme="goodnight"] .family-person { flex: 0 0 auto; }
.scene-stage[data-theme="goodnight"] .hero-character { right: 1.5%; bottom: 1%; left: auto; z-index: 3; width: 84px; transform: none; }
.scene-stage[data-theme="goodnight"] .hero-name { margin-top: -4px; }
.scene-stage[data-theme="goodnight"] .heart-target { top: -31px; width: 40px; height: 40px; font-size: 27px; }
.reward-float.is-visible { z-index: 5; animation: reward-rise-short 1.8s ease both; pointer-events: none; }
@keyframes reward-rise-short { 0% { opacity: 0; transform: translate(-50%, 12px) scale(.82); } 14%,72% { opacity: 1; transform: translate(-50%, -8px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -21px) scale(.96); } }
.next-scene-button:not([hidden]) { position: relative; z-index: 8; border-color: rgba(200,142,144,.48); background: linear-gradient(110deg, #fffaf5, #f8e9e5); box-shadow: 0 0 0 3px rgba(226,176,167,.16), 0 8px 20px rgba(177,118,125,.17); color: #855e64; animation: next-button-glow 1.8s ease-in-out infinite; }
@keyframes next-button-glow { 0%,100% { box-shadow: 0 0 0 2px rgba(226,176,167,.12), 0 6px 16px rgba(177,118,125,.13); } 50% { box-shadow: 0 0 0 5px rgba(226,176,167,.24), 0 9px 22px rgba(177,118,125,.22); } }
.language-toggle { position: relative; z-index: 1; display: flex; width: fit-content; margin: 0 auto 16px; padding: 4px; border: 1px solid rgba(181,139,130,.24); border-radius: 999px; background: rgba(243,231,218,.72); box-shadow: inset 0 1px 2px rgba(117,87,67,.05); }
.language-option { min-height: 35px; padding: 7px 15px; border: 0; border-radius: 999px; background: transparent; color: #917a71; font-size: 11px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.language-option.is-active { background: #fffdf8; box-shadow: 0 2px 7px rgba(120,88,69,.12); color: #91696b; }
.letter-copy { opacity: 1; transform: translateY(0); transition: opacity .16s ease, transform .16s ease; }
.letter-copy.is-changing { opacity: .1; transform: translateY(3px); }
@media (max-width: 360px) {
  .scene-choice-overlay { right: 2%; width: 56%; gap: 5px; }
  .scene-choice-button { min-height: 96px; padding: 7px 3px; }
  .scene-choice-icon { width: 45px; height: 45px; font-size: 29px; }
  .scene-stage[data-theme="me-time"] .hero-character { left: 20%; width: 104px; }
  .scene-stage[data-theme="goodnight"] .family-portraits { left: 2%; width: 59%; gap: 5px; }
  .scene-stage[data-theme="goodnight"] .family-person { width: 49px; }
  .scene-stage[data-theme="goodnight"] .family-person--daughter,
  .scene-stage[data-theme="goodnight"] .family-person--son { width: 39px; }
  .scene-stage[data-theme="goodnight"] .hero-character { right: 1%; width: 78px; }
}
