@charset "UTF-8";

:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --paper: #f9f3ef;
  --ink: #4b3443;
  --muted: #735e68;
  --accent: #8c4f67;
  --accent-soft: #f0dde1;
  --portrait-glow: #e9bdb9;
  --dock: calc(185px + env(safe-area-inset-bottom));
  background: var(--paper);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

* { box-sizing: border-box; }
html { min-width: 280px; scroll-behavior: smooth; scroll-padding-bottom: calc(var(--dock) + 20px); }
body { min-width: 280px; min-height: 100svh; margin: 0; background: var(--paper); transition: background 1s ease; overflow-x: clip; isolation: isolate; }
body[data-mood="sad"] { --paper: #f6f0f4; --accent: #79536f; --accent-soft: #eee0eb; --portrait-glow: #dec6d8; }
body[data-mood="neutral"] { --paper: #f9f3ef; --accent: #806044; --accent-soft: #eee3d8; --portrait-glow: #ebdbcd; }
body[data-mood="happy"] { --paper: #fff3eb; --accent: #984c46; --accent-soft: #f5ddd3; --portrait-glow: #f1c7b3; }
button, a { touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #895870; outline-offset: 5px; }
button:disabled { cursor: default; }
button { border: 0; }
a { color: inherit; }
::selection { background: #e6c8d2; color: #4b3443; }

.ambient { position: fixed; width: 550px; height: 550px; border-radius: 50%; filter: blur(70px); pointer-events: none; opacity: .48; z-index: -1; transition: background 1s ease; }
.ambient--one { left: calc(50% - 630px); top: -170px; background: #eed6d9; }
.ambient--two { right: calc(50% - 650px); bottom: -100px; background: #eddfdf; }
body[data-mood="sad"] .ambient--one { background: #e4d1e1; }
body[data-mood="happy"] .ambient--one { background: #f6d3c4; }
.desktop-orbit { display: none; position: fixed; width: 290px; height: 430px; border: 1px solid #c4a0ae; border-radius: 50%; opacity: .17; pointer-events: none; }
.app-shell { position: relative; width: min(100%, 480px); margin-inline: auto; padding: max(23px, env(safe-area-inset-top)) 24px calc(var(--dock) + 22px); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 28px Georgia, "Times New Roman", serif; letter-spacing: -.35px; }
.brand__mark { color: #8c4f67; flex: 0 0 auto; }
.brand__subtitle { display: block; font: 8px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 1.4px; margin-top: 5px; color: #705967; }
.sound-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 1px solid #e2d3d7; border-radius: 30px; background: #ffffff42; font-size: 10px; color: #705967; transition: background .25s, border-color .25s; }
.sound-toggle[aria-pressed="true"] { border-color: #b698a5; background: #f2e3e9; color: #724657; }
.sound-waves { display: none; }
.sound-toggle[aria-pressed="true"] .sound-waves { display: block; }
.sound-toggle[aria-pressed="true"] .sound-slash { display: none; }

.association-name { max-width: 330px; margin: 19px auto 0; text-align: center; color: #795068; font: 500 18px/1.4 Georgia, "Times New Roman", serif; text-wrap: balance; }
.hero { text-align: center; padding-top: 23px; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 0 0 11px; font-size: 9px; letter-spacing: 2px; font-weight: 600; color: #705967; }
.eyebrow__line { width: 18px; height: 1px; background: #d6bcc4; }
h1 { position: relative; display: inline-block; margin: 0; font: 400 clamp(36px, 10.5vw, 49px)/1.12 Georgia, "Times New Roman", serif; letter-spacing: -1.8px; }
h1 em { color: var(--accent); font-weight: 400; transition: color .7s; }
.heading-spark { position: absolute; width: 25px; height: 28px; bottom: 27px; right: -30px; color: #b18d67; transform: rotate(8deg); }
.hero__subtitle { color: var(--muted); font-size: 11px; line-height: 1.65; margin: 13px 0 0; letter-spacing: .05px; }

.portrait-stage { position: relative; margin: 5px 0 0; aspect-ratio: 440 / 280; isolation: isolate; }
.portrait-stage__glow { position: absolute; width: 64%; aspect-ratio: 1; top: 3%; left: 18%; border-radius: 50%; background: var(--portrait-glow); opacity: .43; filter: blur(28px); transition: background .9s, opacity .9s; z-index: -1; }
.portrait-art { display: block; width: 100%; height: auto; overflow: visible; }
.portrait-stage__note { position: absolute; top: 29%; left: 0; max-width: 77px; color: #785865; font: italic 12px/1.4 Georgia, "Times New Roman", serif; transform: rotate(-8deg); }
.portrait-stage__note svg { display: block; width: 34px; height: 22px; margin: 7px 0 0 27px; transform: rotate(10deg); opacity: .6; }
.scene-touch { position: absolute; inset: 10% 25% 8%; border-radius: 48% 48% 25% 25%; background: transparent; }
.scene-touch:focus-visible { outline-style: dashed; outline-offset: 2px; }
.scene-touch__hint { position: absolute; white-space: nowrap; font-size: 9px; letter-spacing: .4px; color: #755a64; bottom: 2%; left: 50%; transform: translateX(-50%); opacity: 0; transition: opacity .25s; }
.scene-touch:hover .scene-touch__hint, .scene-touch:focus-visible .scene-touch__hint { opacity: 1; }
.woman { transform-origin: 220px 252px; animation: woman-breathe 6.5s ease-in-out infinite; }
.woman-head { transform-origin: 223px 153px; transition: transform 1.3s ease; }
.woman-hair { transform-origin: 214px 77px; animation: hair-drift 8s ease-in-out infinite; }
.woman-earring { transform-box: fill-box; transform-origin: top center; animation: earring-sway 7s ease-in-out infinite; }
.woman-shoulders { transform-origin: 220px 250px; transition: transform 1.3s ease; }
.portrait-cameo { transform-origin: 220px 146px; transition: opacity 1s; }
.portrait-halo { transform-box: fill-box; transform-origin: center; animation: light-breathe 7s ease-in-out infinite; }
.portrait-orbit { transform-origin: 220px 146px; animation: orbit-drift 16s ease-in-out infinite; }
.portrait-ribbon { transform-origin: 220px 200px; animation: ribbon-drift 9s ease-in-out infinite; }
.portrait-spark { transform-box: fill-box; transform-origin: center; animation: portrait-shimmer 5s ease-in-out infinite; }
.portrait-spark--two { animation-delay: -1.8s; }
.portrait-spark--three { animation-delay: -3.1s; }
.portrait-heart { opacity: 0; transform-box: fill-box; transform-origin: center; }
body[data-mood="sad"] .woman { animation-duration: 8s; }
body[data-mood="sad"] .woman-head { transform: rotate(3deg) translateY(1px); }
body[data-mood="sad"] .woman-shoulders { transform: scaleX(.98); }
body[data-mood="sad"] .portrait-stage__glow { opacity: .62; }
body[data-mood="sad"] .portrait-halo { animation: warm-embrace 8s ease-in-out infinite; }
body[data-mood="sad"] .portrait-heart { animation: heart-rise 7s ease-in-out infinite; }
body[data-mood="neutral"] .woman-head { animation: thoughtful-tilt 10s ease-in-out infinite; }
body[data-mood="neutral"] .portrait-orbit { animation-duration: 12s; }
body[data-mood="happy"] .woman { animation: woman-sway 5.5s ease-in-out infinite; }
body[data-mood="happy"] .woman-head { transform: rotate(-3deg) translateY(-2px); }
body[data-mood="happy"] .woman-shoulders { transform: scaleX(1.02); }
body[data-mood="happy"] .woman-hair { animation-duration: 5.5s; }
body[data-mood="happy"] .portrait-stage__glow { opacity: .65; }
body[data-mood="happy"] .portrait-spark { animation-duration: 2.8s; }
body[data-mood="happy"] .portrait-heart { animation: heart-rise 4.5s ease-in-out infinite; }
body[data-mood="happy"] .portrait-heart--two { animation-delay: -2.2s; }
.portrait-stage.is-replaying .portrait-halo { animation: light-greeting 1.1s ease-out; }
.portrait-stage.is-replaying .portrait-spark { animation: spark-greeting 1.1s ease-out; }
.scene-caption { text-align: center; margin: 2px 0 20px; color: var(--muted); font: italic 12px/1.4 Georgia, "Times New Roman", serif; min-height: 17px; }
.effect-layer { position: absolute; inset: 0; overflow: visible; pointer-events: none; z-index: 3; }
.particle { position: absolute; left: var(--x); top: var(--y); font: var(--size, 17px) Georgia, serif; color: #d7a969; opacity: 0; animation: particle-burst 1.7s ease-out var(--delay, 0ms) both; will-change: transform, opacity; }
.particle--sad { color: #ba88a0; }
.particle--neutral { color: #b69a81; }
.particle--happy:nth-child(3n) { color: #c88185; }

.mood-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mood-option { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; min-height: 112px; padding: 13px 4px 12px; border: 1px solid #e8dce0; border-radius: 19px; background: #fffefa85; box-shadow: 0 3px 8px #65563d03; transition: transform .3s, background .3s, border-color .3s, box-shadow .3s; }
.mood-option__emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 32px; line-height: 1.1; display: inline-block; transition: transform .35s cubic-bezier(.2, .8, .3, 1.7); }
.mood-option__label { font-size: 12px; font-weight: 600; }
.mood-option__hint { font-size: 9px; color: #6c5261; letter-spacing: .05px; }
.mood-option__check { display: grid; place-items: center; width: 16px; height: 16px; position: absolute; top: 7px; right: 7px; border-radius: 50%; background: #9a7184; color: #fff; font-size: 10px; transform: scale(0); transition: transform .25s cubic-bezier(.2,.8,.3,1.7); }
.mood-option[aria-pressed="true"] { border-color: #b38e9f; box-shadow: 0 3px 12px #68744f0a; transform: translateY(-3px); }
.mood-option[aria-pressed="true"] .mood-option__check { transform: scale(1); }
.mood-option[aria-pressed="true"] .mood-option__emoji { transform: scale(1.1) rotate(-5deg); }
.mood-option--sad[aria-pressed="true"] { background: #eee5ef; border-color: #b6a3ba; }
.mood-option--sad[aria-pressed="true"] .mood-option__check { background: #9a7e9f; }
.mood-option--neutral[aria-pressed="true"] { background: #efe4da; }
.mood-option--happy[aria-pressed="true"] { background: #f8e1d6; border-color: #c99c8b; }
.mood-option--happy[aria-pressed="true"] .mood-option__check { background: #a67666; }

.sharing-notice { margin: 0 0 13px; text-align: center; color: #735e68; font-size: 12px; line-height: 1.6; }
.sharing-notice p { margin: 0; }
.sharing-notice .sharing-retention { margin-top: 4px; font-size: 10px; }
.sharing-status { margin: 11px 0 -3px; color: #735e68; font-size: 11px; line-height: 1.55; text-align: center; }
.sharing-status[data-state="success"] { color: #476248; }
.sharing-status[data-state="error"] { color: #914632; }

.message-card { position: relative; margin-top: 19px; padding: 18px 20px 12px; border: 1px solid #e6d6db; border-radius: 4px 19px 19px 19px; background: #fffefa7a; box-shadow: 0 6px 24px #81735003; transition: background .7s, border-color .7s; }
.message-card::before { content: ""; position: absolute; left: -1px; top: 16px; width: 2px; height: 29px; border-radius: 2px; background: var(--accent); transition: background .7s; }
.message-card__header { display: flex; align-items: center; gap: 7px; color: var(--accent); font-size: 8px; letter-spacing: 1.4px; font-weight: 600; transition: color .7s; }
.message-card__line { flex: 1; height: 1px; background: #eadbe0; margin-left: 4px; }
.message-card__text { margin: 13px 0 11px; min-height: 51px; font: 400 19px/1.45 Georgia, "Times New Roman", serif; letter-spacing: -.2px; color: #59404f; text-wrap: pretty; }
.message-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.message-card__signature { font: italic 10px Georgia, "Times New Roman", serif; color: #755d6b; }
.next-message { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; margin: -5px -7px -4px 0; padding: 0 7px; border-radius: 10px; background: transparent; color: #705967; font-size: 9px; transition: opacity .25s, background .25s; }
.next-message:disabled { opacity: .4; }
.next-message:not(:disabled):active svg { transform: rotate(90deg); }
.next-message svg { transition: transform .25s; }
.closing-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 0; font-size: 8px; letter-spacing: .25px; color: #705967; }
.closing-note span[aria-hidden] { font-size: 8px; color: #b78b98; }

.contact-dock { position: fixed; inset: auto 0 0; z-index: 10; padding: 13px 20px calc(13px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 92%, transparent); border-top: 1px solid #dfccd57a; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: background 1s; }
.contact-dock::before { content: ""; position: absolute; left: 0; right: 0; top: -23px; height: 23px; background: linear-gradient(transparent, var(--paper)); opacity: .9; pointer-events: none; }
.contact-dock__inner { max-width: 432px; margin: auto; }
.contact-dock__intro { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0 0 11px; color: #705967; font: italic 12px Georgia, "Times New Roman", serif; }
.contact-dock__intro > span[aria-hidden] { width: 5px; height: 5px; border-radius: 50%; background: #b37f94; box-shadow: 0 0 0 3px #b37f9414; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-button { display: flex; align-items: flex-start; gap: 9px; min-width: 0; min-height: 104px; padding: 13px 11px; text-decoration: none; border: 1px solid transparent; border-radius: 15px; transition: transform .2s, background .2s, box-shadow .2s; cursor: pointer; }
.contact-button > svg { flex-shrink: 0; }
.contact-button > span { display: flex; flex-direction: column; min-width: 0; gap: 6px; }
.contact-button__overline { order: 2; font-size: 11px; line-height: 1.45; opacity: 1; }
.contact-button__label { order: 1; font-size: 14px; line-height: 22px; font-weight: 500; letter-spacing: .1px; }
.contact-button .contact-button__arrow { display: none; }
.contact-button--phone { background: #674154; color: #fffdf4; box-shadow: 0 4px 8px #4359380b; }
.contact-button--whatsapp { background: #f0e5e9; color: #654451; border-color: #dcc7d0; }
.contact-button:active { transform: scale(.97); }
.contact-status { margin: 0; text-align: center; font-size: 10px; color: #88665f; }
.contact-status:not(:empty) { margin-top: 9px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 30; background: #fff; border: 1px solid #946479; padding: 12px; border-radius: 8px; font-size: 14px; }
.skip-link:focus { top: 12px; }
.notice { padding: 15px; font-size: 12px; line-height: 1.6; background: #f6e2d5; border-radius: 12px; }

@media (hover: hover) {
  .mood-option:hover { transform: translateY(-4px); border-color: #c7aab6; background: #fffdf6; }
  .mood-option:hover .mood-option__emoji { transform: translateY(-2px) rotate(-7deg); }
  .mood-option[aria-pressed="true"]:hover { transform: translateY(-5px); }
  .sound-toggle:hover { background: #fffdf9; }
  .next-message:not(:disabled):hover { background: #ebdce56b; }
  .contact-button--phone:hover { background: #573247; }
  .contact-button--whatsapp:hover { background: #e8d7e0; }
}

@media (min-width: 700px) {
  .app-shell { padding-top: 33px; }
  .hero { padding-top: 35px; }
  h1 { font-size: 52px; }
  .hero__subtitle { font-size: 12px; }
  .portrait-stage { margin-top: 8px; }
  .desktop-orbit { display: block; }
  .desktop-orbit--left { left: calc(50% - 590px); top: 23%; transform: rotate(-26deg); }
  .desktop-orbit--right { right: calc(50% - 630px); top: 46%; transform: rotate(33deg) scale(.8); }
  .contact-dock { padding-bottom: 19px; background: color-mix(in srgb, var(--paper) 94%, transparent); }
}

@media (min-width: 700px) and (min-height: 900px) {
  .app-shell { padding-top: 46px; }
  .hero { padding-top: 45px; }
  .portrait-stage { margin-top: 12px; }
  .scene-caption { margin-bottom: 22px; }
  .message-card { margin-top: 24px; }
}

@media (max-width: 359px) {
  .app-shell { padding-inline: 18px; padding-top: 17px; }
  .brand { font-size: 25px; gap: 7px; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__subtitle { font-size: 6.5px; letter-spacing: 1.5px; }
  .association-name { font-size: 16px; }
  .sound-toggle { font-size: 8px; padding-inline: 8px; gap: 4px; }
  .hero { padding-top: 24px; }
  h1 { font-size: 36px; }
  .hero__subtitle { font-size: 10px; }
  .portrait-stage__note { font-size: 10px; max-width: 65px; left: -3px; }
  .mood-picker { gap: 7px; }
  .mood-option { min-height: 103px; gap: 6px; padding-top: 12px; border-radius: 16px; }
  .mood-option__emoji { font-size: 28px; }
  .mood-option__hint { font-size: 8px; }
  .message-card { padding-inline: 15px; }
  .message-card__text { font-size: 18px; }
  .message-card__signature { font-size: 9px; }
  .contact-dock { padding-inline: 14px; }
  .contact-actions { gap: 8px; }
  .contact-button { padding: 10px 9px; gap: 7px; }
  .contact-button > svg:first-child { width: 19px; height: 19px; }
  .contact-button__overline { font-size: 11px; }
  .contact-button__arrow { display: none; }
}

@media (max-height: 760px) and (min-width: 360px) and (max-width: 699px) {
  .hero { padding-top: 21px; }
  h1 { font-size: 40px; }
  .portrait-stage { max-width: 338px; margin-inline: auto; margin-top: 0; }
  .scene-caption { margin-top: 0; margin-bottom: 16px; }
}

@media (max-width: 699px) {
  .association-name { margin-top: 14px; }
  .hero { padding-top: 16px; }
  .portrait-stage { max-width: 320px; margin: 0 auto; }
  .scene-caption { margin-bottom: 16px; }
}

@keyframes woman-breathe { 0%,100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-2px) scaleY(1.008); } }
@keyframes hair-drift { 0%,100% { transform: rotate(-.4deg); } 50% { transform: rotate(.7deg); } }
@keyframes earring-sway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
@keyframes light-breathe { 0%,100% { opacity: .42; transform: scale(.97); } 50% { opacity: .78; transform: scale(1.025); } }
@keyframes warm-embrace { 0%,100% { opacity: .4; transform: scale(.93); } 50% { opacity: .9; transform: scale(1.06); } }
@keyframes orbit-drift { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes ribbon-drift { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-3px) rotate(1deg); } }
@keyframes portrait-shimmer { 0%,100% { opacity: .3; transform: scale(.82); } 50% { opacity: .9; transform: scale(1.1); } }
@keyframes thoughtful-tilt { 0%,100% { transform: rotate(0deg); } 45%,65% { transform: rotate(1.7deg); } }
@keyframes woman-sway { 0%,100% { transform: rotate(-1deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-3px); } }
@keyframes heart-rise { 0%,100% { opacity: 0; transform: translateY(6px) scale(.85); } 30% { opacity: .65; } 80% { opacity: 0; transform: translateY(-15px) scale(1.05); } }
@keyframes light-greeting { 0% { opacity: .3; transform: scale(.91); } 65% { opacity: 1; transform: scale(1.075); } 100% { opacity: .6; transform: scale(1); } }
@keyframes spark-greeting { 0% { opacity: 0; transform: scale(.4) rotate(-20deg); } 60% { opacity: 1; transform: scale(1.25) rotate(8deg); } 100% { opacity: .65; transform: scale(1); } }
@keyframes particle-burst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(0); } 12% { opacity: 1; } 80% { opacity: .8; } 100% { opacity: 0; transform: translate(calc(var(--dx) - 50%), calc(var(--dy) - 50%)) scale(1) rotate(var(--rotation)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .particle { display: none; }
  body[data-mood="happy"] .portrait-heart, body[data-mood="sad"] .portrait-heart { opacity: .65; }
  .scene-touch__hint { display: none; }
}
