/* Carta: a "cápsula de luz". Toque no orbe, a luz abre e a história aparece em vidro. */
.h-root { overflow-x: hidden; }
.h-preview-tag { position: fixed; z-index: 90; top: 8px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; background: rgba(110,50,140,.30); color: #fff; font-size: .75rem; }
.h-seal-screen { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; text-align: center; padding: 24px; background: transparent; transition: opacity 1s .5s, visibility 0s 1.5s; }
.h-seal-screen.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.h-to { margin: 0 0 34px; font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; color: var(--mut); }
.h-envelope { position: relative; width: 230px; height: 230px; margin: 0 auto; }
.h-env-back, .h-env-front, .h-env-flap, .h-letter { display: none; }
.h-envelope::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; background: conic-gradient(from 0deg, var(--c1), var(--c2), var(--c3), var(--c1)); filter: blur(26px); opacity: .45; animation: h-spin 9s linear infinite; }
.h-envelope::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; padding: 2px; background: conic-gradient(from 90deg, transparent 10%, var(--c3), var(--c1), transparent 60%); -webkit-mask: linear-gradient(rgba(110,50,140,.45) 0 0) content-box, linear-gradient(rgba(110,50,140,.45) 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: h-spin 5s linear infinite; }
@keyframes h-spin { to { transform: rotate(360deg); } }
.h-wax { position: absolute; inset: 12px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; font-family: var(--serif); font-style: italic; font-size: 5.2rem; line-height: 1;
  background: radial-gradient(circle at 30% 24%, rgba(255,255,255,.95) 0, rgba(255,255,255,.35) 14%, transparent 30%), radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--c1) 85%, #fff) 0, var(--c1) 55%, color-mix(in srgb, var(--c1) 70%, #5a0f35) 100%);
  box-shadow: inset 0 -14px 28px rgba(90,15,53,.35), 0 24px 40px -14px color-mix(in srgb, var(--c1) 70%, transparent); animation: h-breathe 3.2s ease-in-out infinite; text-shadow: 0 3px 12px rgba(90,15,53,.45); transition: transform .8s cubic-bezier(.6,0,.2,1), opacity .8s; }
@keyframes h-breathe { 50% { transform: scale(1.045); } }
.h-wax-half.r { display: none; } .h-wax-half.l { color: #fff; }
.h-seal-screen.is-open .h-wax { transform: scale(7); opacity: 0; animation: none; }
.h-hint { margin: 38px 0 0; font-size: .88rem; color: var(--mut); animation: h-fade 2.4s ease-in-out infinite; } @keyframes h-fade { 50% { opacity: .45; } }

.h-content { position: relative; max-width: 520px; margin: 0 auto; padding: 0 20px 40px; opacity: 0; transition: opacity 1.4s .5s; } .h-root:not(.locked) .h-seal-screen.is-open ~ .h-content, .h-root.skip-seal .h-content { opacity: 1; }
.h-cover { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; }
.h-cover small { display: inline-flex; padding: 7px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: .78rem; letter-spacing: .08em;  }
.h-title { font-size: clamp(2.6rem, 13vw, 4.4rem); line-height: 1.02; background: linear-gradient(120deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.h-since { margin: 0; font-family: var(--serif); font-style: italic; color: var(--mut); font-size: 1.15rem; }
.h-scroll-cue { margin: 40px 0 0; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mut); display: grid; gap: 10px; justify-items: center; } .h-scroll-cue span { width: 1px; height: 46px; background: linear-gradient(var(--c3), transparent); animation: h-cue 2s ease-in-out infinite; transform-origin: top; } @keyframes h-cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.h-chapters { display: grid; gap: 54px; padding: 40px 0 20px; }
.h-chapter { margin: 0; padding: 12px 12px 20px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 40px 70px -40px rgba(110,50,140,.45), inset 0 1px 0 rgba(255,255,255,.2); opacity: 0; transform: translateY(40px) scale(.97); filter: blur(8px); transition: all 1.1s cubic-bezier(.2,.7,.2,1); }
.h-chapter:nth-child(odd) { rotate: -1.2deg; } .h-chapter:nth-child(even) { rotate: 1.2deg; } .h-chapter.in { opacity: 1; transform: none; filter: none; }
.h-chapter img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 18px; }
.h-chapter figcaption { padding: 16px 8px 0; font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.3; text-align: center; }
.h-counter { text-align: center; padding: 50px 22px; margin: 30px 0; border-radius: 32px; background: var(--card); border: 1px solid var(--line);  }
.h-counter h2 { font-size: .85rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mut); font-weight: 400; margin-bottom: 22px; }
.h-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .h-big b { display: block; font-size: clamp(2.6rem, 14vw, 3.8rem); font-weight: 600; line-height: 1; background: linear-gradient(180deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; } .h-big span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mut); }
.h-clock { margin: 24px 0 0; font-variant-numeric: tabular-nums; color: var(--mut); font-size: .95rem; } .h-clock b { color: var(--ink); font-weight: 600; }
.h-paper { margin: 40px 0; padding: 30px 26px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); position: relative; }
.h-paper::before { content: ''; position: absolute; left: 0; top: 28px; bottom: 28px; width: 3px; border-radius: 3px; background: linear-gradient(var(--c1), var(--c2)); }
.h-paper p { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.75; white-space: pre-line; } .h-paper .h-sign { margin-top: 18px; font-style: italic; color: var(--c1); }
.h-question { text-align: center; padding: 40px 0 20px; } .h-question h2 { font-size: clamp(1.7rem, 8vw, 2.3rem); line-height: 1.15; margin-bottom: 24px; }
.h-question .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; } .h-answer { margin-top: 24px; font-family: var(--serif); font-style: italic; font-size: 1.15rem; display: grid; gap: 14px; justify-items: center; }
.h-foot { text-align: center; padding: 50px 0 80px; font-size: .82rem; color: var(--mut); } .h-foot a { color: var(--ink); }
.h-after { text-align: center; margin: 0 0 70px; }
.h-root.skip-seal .h-seal-screen { display: none; }
.h-player { position: fixed; z-index: 70; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(20,10,40,.6); border: 1px solid var(--line);  font-size: .8rem; }
.h-player button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: linear-gradient(120deg, var(--c1), var(--c2)); color: #fff; } .h-player > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-player .eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; } .h-player .eq i { width: 3px; background: var(--c3); animation: h-eq 1s infinite alternate; } .h-player .eq i:nth-child(1) { height: 5px; } .h-player .eq i:nth-child(2) { height: 13px; animation-delay: .2s; } .h-player .eq i:nth-child(3) { height: 8px; animation-delay: .4s; } .h-player.paused .eq i { animation-play-state: paused; opacity: .4; } @keyframes h-eq { to { transform: scaleY(.35); } }
.h-hearts { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 80; } .h-hearts i { position: absolute; bottom: -30px; font-style: normal; animation: a-rise 3s cubic-bezier(.2,.7,.3,1) forwards; }
.h-msg { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 30px; font-size: 1.1rem; }
.h-player { color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(12px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); background: rgba(24,12,44,.72); }
.h-player button { cursor: pointer; font-size: .8rem; }
.h-fx { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; } .h-fx i { position: absolute; bottom: -6%; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle, #fff 0, var(--c3) 55%, transparent 72%); opacity: 0; animation: h-float var(--d) linear var(--l) infinite; }
@keyframes h-float { 0% { transform: translate3d(0,0,0) scale(.6); opacity: 0; } 15% { opacity: .9; } 100% { transform: translate3d(var(--w), -108svh, 0) scale(1.3); opacity: 0; } }
.h-content { z-index: 1; } .h-seal-screen { z-index: 50; }
.h-rv { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s ease; } .h-rv.in { opacity: 1; transform: none; }
.h-paper p + p { margin-top: 1em; }
/* Pedido: memórias antes da pergunta e a pergunta final */
.h-mem { padding: 44px 0 10px; text-align: center; } .h-mem h2 { font-size: 1.6rem; margin-bottom: 22px; }
.h-mem ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; } .h-mem li { padding: 18px 20px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.4; } .h-mem li span { display: block; font: 700 .7rem var(--sans-f); letter-spacing: .16em; text-transform: uppercase; color: var(--c1); margin-bottom: 6px; font-style: normal; }
.h-proposal { min-height: 80svh; display: grid; align-content: center; justify-items: center; gap: 18px; text-align: center; padding: 40px 0 30px; }
.h-pre { margin: 0; font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--mut); } .h-proposal > h2 { font-size: clamp(2rem, 9vw, 3rem); line-height: 1.05; }
.h-pbtns { display: flex; gap: 16px; align-items: center; justify-content: center; min-height: 110px; } .h-pbtns .a-btn { transition: transform .35s cubic-bezier(.3,1.6,.5,1); } .h-pmsg { margin: 0; min-height: 1.4em; color: var(--mut); font-style: italic; font-family: var(--serif); }
.h-yes { display: grid; gap: 14px; justify-items: center; } .h-heart { font-size: 4rem; animation: h-breathe 1.6s ease-in-out infinite; } .h-sim { font-size: 3.4rem; background: linear-gradient(120deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; } .h-yes p { max-width: 24em; font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.5; margin: 0; }
