
/*
 * ENTRE NÓS · V2, vinho / rosa / órbitas · source SCSS
 * This source intentionally uses the CSS-compatible subset of SCSS.
 * No build is needed to open the prototype. main.css is the supplied output.
 * Recompile with Dart Sass: sass styles/main.scss styles/main.css --no-source-map
 * Design tokens remain CSS custom properties so interactions can update them.
 */
:root {
  --ink: #211017; --surface: #301923; --surface-soft: #3a202c;
  --paper: #fff0e9; --muted: #c7abb5; --accent: #f3a8bb;
  --line: rgba(247, 190, 209, .17); --warm: #dfaaa5;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 38px; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; opacity: .026; pointer-events: none; z-index: 30; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.76' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h150v150H0z'/%3E%3C/svg%3E"); }
body.modal-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .35; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
em { font-weight: 400; color: var(--accent); }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 18px; top: -100px; z-index: 100; padding: 12px 20px; background: var(--accent); color: var(--ink); }
.skip-link:focus { top: 18px; }
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 50; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.site-header { max-width: 1512px; margin: auto; min-height: 100px; padding: 0 5.2%; display: flex; align-items: center; justify-content: space-between; gap: 26px; border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; font: 29px var(--serif); letter-spacing: -.8px; }
.brand-mark { width: 35px; height: 35px; fill: none; stroke: var(--accent); stroke-width: 1; }
.brand-mark circle { fill: var(--accent); }
.brand-period { color: var(--accent); }
.primary-nav { display: flex; gap: 32px; margin-left: 45px; }
.primary-nav a { color: var(--muted); font-size: 12px; position: relative; padding: 13px 0; transition: color .2s; }
.primary-nav a:hover, .primary-nav a.is-active { color: var(--paper); }
.primary-nav a::after { content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); bottom: 2px; left: calc(50% - 2px); transform: scale(0); transition: transform .25s; }
.primary-nav a.is-active::after { transform: scale(1); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.utility-button { background: transparent; display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); padding: 12px 0; }
.utility-button .icon { width: 16px; height: 16px; }
.utility-button:hover, .utility-button[aria-pressed='true'] { color: var(--accent); }
.sound-button:not([aria-pressed='true']) .icon { opacity: .65; }
.personalize-button { padding: 10px 15px; border: 1px solid var(--line); border-radius: 30px; background: transparent; font-size: 11px; transition: border-color .2s, background .2s; }
.personalize-button span { margin-left: 10px; }
.personalize-button:hover { border-color: var(--accent); background: rgba(243,168,187,.06); }
.hero { max-width: 1512px; margin: auto; min-height: 770px; position: relative; display: grid; grid-template-columns: 44% 56%; padding: 0 5.2% 84px; isolation: isolate; overflow: hidden; }
#universe { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; pointer-events: none; z-index: -1; }
.hero-glow { position: absolute; width: 770px; height: 770px; right: -60px; top: -110px; z-index: -1; background: radial-gradient(ellipse, rgba(198,64,107,.22), rgba(158,46,77,.075) 46%, transparent 68%); pointer-events: none; }
.hero-copy { padding-top: 95px; position: relative; z-index: 3; }
.eyebrow { font-size: 10px; letter-spacing: 2px; line-height: 1.6; font-weight: 500; color: var(--muted); }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 11px; letter-spacing: 2.05px; font-size: 9px; }
.tiny-star { font-size: 22px; line-height: 1; color: var(--accent); }
h1 { margin-top: 27px; font-size: clamp(64px, 6.65vw, 98px); line-height: 1.04; letter-spacing: -.06em; }
h1 em { letter-spacing: -.06em; }
.hero-description { color: var(--muted); margin-top: 26px; font-size: 14px; line-height: 1.8; max-width: 390px; white-space: pre-line; }
.button { min-height: 52px; display: inline-flex; gap: 30px; align-items: center; justify-content: center; border-radius: 36px; padding: 15px 25px; font-size: 12px; font-weight: 600; transition: transform .3s var(--ease), background .2s, box-shadow .2s; }
.button-primary { background: var(--accent); color: #361422; }
.button-primary:hover { background: #ffd0dc; box-shadow: 0 10px 35px rgba(0,0,0,.16); transform: translateY(-3px); }
.button-primary .icon { width: 18px; height: 18px; transition: transform .25s; }
.button-primary:hover .icon { transform: translateX(3px); }
.hero-copy > .button { margin-top: 31px; }
.text-button { background: transparent; padding: 10px 0; color: var(--muted); font-size: 11px; display: inline-flex; align-items: center; gap: 9px; }
.text-button:hover { color: var(--paper); }
.hero-copy > .text-button { display: flex; margin: 9px 0 0 3px; font-size: 10px; }
.hero-copy > .text-button > span { font-size: 19px; line-height: 1; }
.hero-meta { display: flex; gap: 16px; align-items: center; color: #bfa2ac; font-size: 10px; margin-top: 36px; }
.hero-meta strong { font-weight: 400; color: var(--accent); font-family: var(--serif); font-size: 17px; margin-right: 4px; }
.meta-line { width: 28px; height: 1px; background: var(--line); }
.universe-wrap { position: relative; min-width: 0; padding-top: 16px; }
.universe-label { display: flex; gap: 8px; justify-content: flex-end; align-items: center; font-size: 8px; letter-spacing: 1.5px; color: var(--muted); position: absolute; top: 47px; right: 0; z-index: 3; }
.universe-label > span:last-child { margin-left: 22px; color: #af8798; }
.status-dot { height: 4px; width: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px #eea4bb55; }
.orbit-scene { height: 602px; position: relative; perspective: 1100px; margin-top: 24px; }
.orbit-world { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.orbit-ring { position: absolute; top: 21%; left: 5%; width: 94%; height: 71%; border-radius: 50%; border: 1px solid rgba(244,163,191,.16); transform-style: preserve-3d; pointer-events: none; }
.ring-one { transform: rotateZ(-32deg) rotateX(62deg); }
.ring-two { transform: rotateZ(38deg) rotateX(61deg); width: 96%; top: 16%; height: 79%; border-color: rgba(244,163,191,.09); }
.ring-three { transform: rotateZ(-8deg) rotateX(25deg); left: 10%; top: 18%; width: 84%; height: 76%; border-style: dashed; border-color: rgba(244,163,191,.085); }
.orbit-ring i { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; position: absolute; top: 12%; left: 14%; box-shadow: 0 0 18px #f3a8bb70; }
.ring-two i { left: auto; right: 20%; top: auto; bottom: 8%; width: 4px; height: 4px; }
.polaroid-anchor { position: absolute; transform-style: preserve-3d; animation: levitate 8s ease-in-out infinite; }
.anchor-main { left: 55%; top: 50%; width: 44%; z-index: 4; transform: translate(-50%,-50%) translateZ(80px) rotateZ(-7deg) rotateY(-10deg); animation-delay: -2.5s; }
.anchor-left { left: 19%; top: 53%; width: 32%; z-index: 2; transform: translate(-50%,-50%) translateZ(0) rotateZ(-16deg) rotateY(12deg); animation-delay: -5s; }
.anchor-back { left: 77%; top: 29%; width: 30%; z-index: 1; transform: translate(-50%,-50%) translateZ(-90px) rotateZ(14deg) rotateY(-14deg); animation-delay: -1s; }
.polaroid { display: block; width: 100%; padding: 8px 8px 0; background: #f0ddd6; color: #533240; text-align: left; box-shadow: 3px 18px 40px #0005, 1px 2px 2px #0004; transform-style: preserve-3d; transform: rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); transition: box-shadow .3s, transform .35s var(--ease); border-radius: 1px; position: relative; }
.polaroid:hover { box-shadow: 2px 23px 55px #0007, 0 0 0 1px #ffe9e5; }
.polaroid::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, #fff0 28%, #fff2 49%, #fff0 72%); background-size: 250% 250%; background-position: var(--shine,0%) 50%; pointer-events: none; opacity: .38; }
.polaroid-image { display: block; aspect-ratio: .83; overflow: hidden; position: relative; background: #75525b; }
.polaroid img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.67) contrast(.94); transition: filter .4s, transform .7s var(--ease); }
.polaroid:hover img { filter: saturate(.93) contrast(1); transform: scale(1.035); }
.polaroid-caption { display: flex; justify-content: space-between; gap: 6px; align-items: center; min-height: 48px; font: italic clamp(11px, 1.05vw, 15px) var(--serif); padding: 0 4px; }
.polaroid-caption > span { font-family: var(--sans); font-style: normal; font-size: 12px; }
.polaroid-left .polaroid-caption, .polaroid-back .polaroid-caption { font-size: clamp(9px,.87vw,12px); min-height: 38px; }
.polaroid-back img { filter: saturate(.45) brightness(.8); }
.polaroid-left { background: #e5c6c9; }
.photo-index { position: absolute; left: 12px; bottom: 10px; font-size: 6px; letter-spacing: 1.2px; color: #fff3ee; text-shadow: 0 1px 5px #000; }
.floating-note { position: absolute; right: 0; bottom: 10%; width: 148px; min-height: 153px; padding: 18px 16px; background: linear-gradient(140deg,#edc8c8,#d6a5b0); color: #5e2e3c; z-index: 5; transform: translateZ(105px) rotateZ(9deg) rotateY(-8deg); box-shadow: 8px 15px 35px #0003; }
.floating-note::before { content: ''; position: absolute; width: 58px; height: 20px; top: -9px; left: 45px; background: #ffe4e16b; transform: rotate(-8deg); }
.floating-note > span:first-child { display: block; font-size: 5.5px; letter-spacing: 1.05px; }
.floating-note p { font: 22px/1.05 var(--serif); margin-top: 15px; letter-spacing: -.8px; }
.floating-note em { color: #903f59; }
.note-star { position: absolute; right: 13px; bottom: 12px; font-size: 24px; color: #a44e68; }
.scene-star { position: absolute; color: var(--accent); pointer-events: none; }
.star-one { top: 17%; left: 37%; font-size: 33px; transform: translateZ(35px); }
.star-two { bottom: 14%; left: 18%; font-size: 19px; opacity: .75; }
.orbit-coordinate { position: absolute; top: 11%; left: 1%; font-size: 7px; line-height: 1.8; color: #b991a3; letter-spacing: 1px; }
.scene-hint { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 9px; color: #bc9caa; font-size: 9px; letter-spacing: .4px; }
.cursor-diamond { font-size: 19px; color: var(--accent); }
.touch-hint { display: none; }
.hero-bottom { position: absolute; bottom: 27px; left: 5.2%; right: 5.2%; display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); color: #b891a2; font-size: 8px; letter-spacing: 1.6px; }
.hero-bottom > a { display: flex; align-items: center; gap: 12px; }
.hero-bottom > span { display: flex; align-items: center; gap: 13px; }
.hero-bottom i { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }
.scroll-indicator { display: block; height: 18px; width: 10px; border: 1px solid #b891a266; border-radius: 8px; position: relative; }
.scroll-indicator::after { content: ''; position: absolute; left: 3px; width: 2px; height: 4px; top: 4px; background: var(--accent); animation: scroll-tick 2s ease-in-out infinite; }
.section-shell { max-width: 1355px; margin: 0 auto; padding: 95px 38px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.section-kicker { color: var(--accent); font-size: 9px; letter-spacing: 2px; margin-bottom: 25px; }
.section-kicker > span { color: #aa788c; margin: 0 12px; }
h2 { font-size: clamp(42px,4.6vw,64px); line-height: 1.09; letter-spacing: -.045em; }
.section-heading > p { color: var(--muted); font-size: 13px; line-height: 1.85; width: 290px; padding-bottom: 5px; }
.journey { border-top: 1px solid var(--line); }
.journey-stage { display: grid; grid-template-columns: 55% 45%; align-items: center; gap: 0; margin-top: 60px; padding: 8px 0; border-radius: 4px; }
.memory-visual { position: relative; perspective: 1100px; padding: 8px 19px 26px 3px; min-width: 0; touch-action: pan-y; }
.photo-stack { position: absolute; inset: 0 19px 26px 0; pointer-events: none; transform-style: preserve-3d; }
.stack-sheet { position: absolute; inset: 0; border: 1px solid #d18d9f40; background: #522d3d; border-radius: 2px; }
.sheet-back { transform: rotate(4deg) translateY(-2px) scale(.97); opacity: .42; }
.sheet-middle { transform: rotate(-2deg) translateY(4px) scale(.99); background: #683e4c; opacity: .65; }
.journey-photo { width: 100%; display: block; padding: 0; background: #633a48; position: relative; overflow: hidden; box-shadow: 0 15px 35px #0003; transform: rotate(-1deg); transition: transform .6s var(--ease); }
.journey-photo img { width: 100%; height: auto; aspect-ratio: 1.36; object-fit: cover; filter: saturate(.7) brightness(.91); transition: transform .7s var(--ease), opacity .22s; }
.journey-photo:hover { transform: rotate(0); }
.journey-photo:hover img { transform: scale(1.025); }
.journey-photo::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent,#240c1788); pointer-events: none; }
.image-caption { position: absolute; bottom: 23px; left: 23px; font-size: 9px; letter-spacing: 1.9px; z-index: 1; color: #fff1ea; }
.image-open { position: absolute; right: 21px; bottom: 17px; width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid #fff0e96b; border-radius: 50%; z-index: 1; }
.image-open .icon { width: 16px; height: 16px; }
.film-corner { width: 16px; height: 16px; position: absolute; opacity: .5; z-index: 1; }
.corner-top { top: 15px; left: 15px; border-left: 1px solid #fff; border-top: 1px solid #fff; }
.corner-bottom { bottom: 15px; right: 15px; border-right: 1px solid #fff; border-bottom: 1px solid #fff; }
.photo-undertext { position: absolute; left: 3px; bottom: 0; color: #bf9bac; font-size: 7px; letter-spacing: 1.5px; }
.chapter-copy { padding: 0 0 20px 65px; }
.chapter-topline { display: flex; align-items: center; gap: 24px; margin-bottom: 27px; }
.chapter-number { font: 22px var(--serif); color: var(--accent); }
.chapter-number span { font: 10px var(--sans); color: #b78e9f; letter-spacing: 2px; margin-left: 5px; }
.chapter-tag { font-size: 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 30px; padding: 5px 12px; }
.chapter-date { color: #d8b5c1; font-size: 10px; margin-bottom: 12px; }
.chapter-copy h3 { font-size: clamp(37px,3.8vw,51px); line-height: 1.08; letter-spacing: -.045em; white-space: pre-line; }
.chapter-excerpt { margin-top: 22px; color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 320px; }
.chapter-location { color: #cba6b5; font-size: 10px; display: flex; gap: 7px; align-items: center; margin-top: 17px; }
.chapter-location .icon { width: 13px; height: 13px; }
.text-link { padding: 5px 0; margin-top: 28px; background: transparent; display: flex; align-items: center; gap: 22px; color: var(--accent); font-size: 11px; }
.text-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover .icon { transform: translateX(5px); }
.chapter-controls { display: flex; align-items: center; gap: 9px; margin-top: 30px; }
.round-button { height: 39px; width: 39px; display: inline-grid; place-items: center; background: transparent; border: 1px solid var(--line); border-radius: 50%; transition: background .2s, border-color .2s; padding: 0; flex-shrink: 0; }
.round-button .icon { width: 17px; height: 17px; }
.round-button:hover { background: #f3a8bb0d; border-color: #f3a8bb75; }
.prev-memory .icon, .arrow-back { transform: rotate(180deg); }
.chapter-controls > span { font-size: 9px; color: #b994a5; max-width: 150px; margin-left: 9px; line-height: 1.7; }
.route-map { position: relative; height: 184px; margin-top: 37px; }
.route-line { position: absolute; left: 0; top: 8px; width: 100%; height: 120px; fill: none; stroke-width: 1; overflow: visible; }
.route-base { stroke: #c6849a5e; }
.route-active { stroke: var(--accent); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .85s var(--ease); }
.route-stop { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -7px); width: 132px; min-height: 91px; background: transparent; padding: 0; color: #be98a8; text-align: center; }
.stop-marker { display: block; margin: 0 auto 20px; width: 10px; height: 10px; border: 1px solid #c5829b; border-radius: 50%; background: var(--ink); transition: background .3s, box-shadow .3s, transform .3s; }
.route-stop:hover .stop-marker { transform: scale(1.3); }
.route-stop[aria-current='step'] .stop-marker { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px #f3a8bb14, 0 0 0 10px #f3a8bb0b; }
.route-stop[aria-current='step'] { color: var(--paper); }
.stop-date { display: block; font-size: 8px; letter-spacing: 1.1px; }
.stop-name { display: block; font: 15px var(--serif); margin-top: 4px; }
.journey-bottom { border-top: 1px solid var(--line); padding-top: 19px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.journey-bottom > span { font-size: 8px; letter-spacing: 1.7px; color: #b891a0; }
.journey-bottom .text-button { font-size: 10px; }
.words { border-top: 1px solid var(--line); padding-top: 94px; }
.letter-grid { margin-top: 58px; display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.letter-card { min-width: 0; display: block; padding: 28px 28px 23px; text-align: left; border: 1px solid var(--line); background: linear-gradient(145deg,#6730476b,#3817264d); transition: transform .45s var(--ease), border-color .3s; position: relative; border-radius: 2px; }
.letter-card:hover { transform: translateY(-8px); border-color: #f0a3b770; }
.letter-category { display: block; font-size: 7px; color: #d4a8b9; letter-spacing: 1.6px; }
.envelope-scene { position: relative; display: block; height: 250px; perspective: 800px; }
.envelope { display: block; position: absolute; width: 82%; aspect-ratio: 1.48; top: 39px; left: 9%; transform: rotate(-5deg); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.letter-card:nth-child(2) .envelope { transform: rotate(4deg); }
.letter-card:nth-child(3) .envelope { transform: rotate(-3deg); }
.letter-card:hover .envelope { transform: translateY(-4px) rotate(0deg) rotateX(8deg); }
.envelope-back { position: absolute; inset: 0; background: #d3a7b5; box-shadow: 2px 12px 20px #0003; }
.envelope-sheet { position: absolute; inset: 10px 12px 6px; background: #ffebe6; display: flex; flex-direction: column; gap: 7px; padding: 18px 20px; transition: transform .7s var(--ease); }
.envelope-sheet i { height: 1px; width: 85%; background: #985c6a40; display: block; }
.envelope-sheet i:first-child { width: 30%; margin-bottom: 8px; }
.envelope-sheet i:last-child { width: 53%; }
.letter-card:hover .envelope-sheet, .letter-card.is-opening .envelope-sheet { transform: translateY(-28px); }
.envelope-front { position: absolute; inset: 0; clip-path: polygon(0 0,50% 49%,100% 0,100% 100%,0 100%); background: linear-gradient(20deg,#edc8d0,#f7dde0); }
.envelope-flap { position: absolute; inset: 0; clip-path: polygon(0 0,100% 0,50% 58%); background: linear-gradient(#f9dce2,#ddb1c0); transform-origin: top; transition: transform .65s var(--ease); backface-visibility: hidden; }
.letter-card:hover .envelope-flap, .letter-card.is-opening .envelope-flap { transform: rotateX(175deg); }
.envelope-seal { position: absolute; width: 28px; height: 28px; background: #a53253; border-radius: 50%; display: grid; place-items: center; color: #ffe5e4; font-size: 18px; top: 45%; left: calc(50% - 14px); box-shadow: 1px 2px 3px #0002; transition: opacity .3s; }
.letter-card:hover .envelope-seal, .letter-card.is-opening .envelope-seal { opacity: 0; }
.letter-card:nth-child(2) .envelope-back { background: #c19a94; }
.letter-card:nth-child(2) .envelope-front { background: linear-gradient(20deg,#e3b8ad,#f2d3c6); }
.letter-card:nth-child(2) .envelope-flap { background: linear-gradient(#f6d8ca,#d5ada4); }
.letter-card:nth-child(2) .envelope-seal { background: #9f3a4b; color: #ffe2cf; }
.letter-card:nth-child(3) .envelope-front { background: linear-gradient(20deg,#d699b0,#eec3d1); }
.letter-card:nth-child(3) .envelope-flap { background: linear-gradient(#efc3d3,#ce91a9); }
.letter-card .letter-title { font-size: 25px; line-height: 1.2; letter-spacing: -.8px; margin: 8px 0 9px; }
.letter-teaser { display: block; color: var(--muted); font-size: 11px; line-height: 1.8; max-width: 210px; min-height: 40px; }
.letter-card-bottom { display: flex; justify-content: space-between; margin-top: 26px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 8px; color: #cba6b5; letter-spacing: 1px; }
.letter-card-bottom .icon { width: 14px; height: 14px; }
.letters-hint { color: #c5a0b0; font-size: 10px; margin-top: 21px; text-align: center; }
.letters-hint span { color: var(--accent); margin-right: 6px; }
.ending { padding-top: 140px; padding-bottom: 120px; text-align: center; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.ending::before { content: ''; position: absolute; inset: -50px 0; background: radial-gradient(ellipse,#f581a614,transparent 68%); z-index: -1; }
.ending-orbit { position: relative; height: 66px; width: 120px; margin: 0 auto 30px; }
.ending-orbit span { display: block; width: 120px; height: 51px; border: 1px solid #ef94b066; border-radius: 50%; transform: rotate(-25deg); }
.ending-orbit span::after { content: ''; display: block; width: 119px; height: 49px; border: 1px solid #ef94b044; border-radius: 50%; transform: rotate(53deg); }
.ending-orbit i { position: absolute; top: 5px; left: 42px; font-style: normal; font-size: 29px; color: var(--accent); animation: breathe 5s ease-in-out infinite; }
.ending > .eyebrow { font-size: 8px; letter-spacing: 2.4px; }
.ending h2 { margin-top: 24px; font-size: clamp(45px,5.3vw,76px); }
.ending > p:not(.eyebrow) { color: var(--muted); font-size: 13px; margin-top: 26px; line-height: 1.9; }
.ending .button { margin-top: 31px; }
.ending-signature { display: block; font: italic 21px var(--serif); color: #d2a7b9; margin-top: 52px; }
.site-footer { max-width: 1355px; padding: 27px 38px; border-top: 1px solid var(--line); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.footer-brand { font: 24px var(--serif); letter-spacing: -1px; }
.site-footer > span { font-size: 7px; letter-spacing: 2px; color: #bb92a4; }
.site-footer .text-button { font-size: 9px; }
/* Dialogs are native: modal focus, Escape handling and return focus are not simulated. */
dialog { color: var(--paper); background: var(--surface); padding: 0; border: 1px solid #db8aa84d; max-width: calc(100vw - 40px); max-height: calc(100dvh - 48px); border-radius: 4px; box-shadow: 0 25px 120px #0007; }
dialog::backdrop { background: #15070fcc; backdrop-filter: blur(10px); }
dialog[open] { animation: dialog-in .4s var(--ease) both; }
.dialog-close { position: absolute; top: 18px; right: 18px; z-index: 5; background: #301923d9; color: #ffede9; border-color: #f3c4d233; }
.memory-dialog[open] { display: grid; grid-template-columns: 47% 53%; width: 1040px; }
.modal-photo-wrap { position: relative; background: #583043; min-height: 600px; }
.modal-photo-wrap > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; filter: saturate(.76); }
.modal-photo-wrap::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent,#210815c2); pointer-events: none; }
.modal-photo-meta { position: absolute; bottom: 92px; left: 27px; right: 20px; z-index: 1; }
.modal-photo-meta span { display: block; font-size: 10px; color: #fff0e9; letter-spacing: 1px; }
.modal-photo-meta span + span { font: italic 25px var(--serif); margin-top: 8px; letter-spacing: -.3px; }
.upload-photo-button { position: absolute; left: 25px; bottom: 28px; background: #ffe6ee17; border: 1px solid #ffe6ee69; padding: 11px 15px; font-size: 10px; border-radius: 30px; display: flex; align-items: center; gap: 9px; z-index: 2; backdrop-filter: blur(8px); }
.upload-photo-button:hover { background: #ffe6ee36; }
.upload-photo-button .icon { width: 15px; height: 15px; }
.modal-story { padding: 60px 46px 31px; }
.modal-story > .eyebrow { font-size: 8px; letter-spacing: 1.6px; margin-bottom: 23px; color: var(--accent); }
.modal-story h2 { font-size: 44px; white-space: pre-line; line-height: 1.1; }
.story-body { margin-top: 25px; font-size: 13px; color: #ddbdc8; line-height: 1.9; }
.story-body p + p { margin-top: 15px; }
.modal-story blockquote { font: italic 23px/1.35 var(--serif); color: var(--accent); margin: 25px 0; padding-left: 18px; border-left: 1px solid #eca8bc66; }
.modal-actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 23px; }
.modal-actions > div { display: flex; gap: 6px; }
.save-memory { display: inline-flex; gap: 8px; align-items: center; padding: 8px 0; background: transparent; font-size: 9px; color: var(--muted); }
.save-memory .icon { width: 16px; height: 16px; }
.save-memory[aria-pressed='true'] { color: var(--accent); }
.save-memory[aria-pressed='true'] .icon { fill: var(--accent); }
.privacy-note { color: #c9a0b1; font-size: 9px; line-height: 1.7; margin-top: 17px; }
.letter-dialog { background: #f6e3dd; color: #4f2936; width: 630px; padding: 66px 67px 53px; color-scheme: light; }
.letter-dialog .dialog-close { background: #a555700f; border-color: #ad577555; color: #673347; }
.letter-dialog :focus-visible { outline-color: #922c55; }
.letter-dialog-star { font-size: 38px; color: #ad4b6a; display: block; line-height: 1; margin-bottom: 28px; }
.letter-dialog .eyebrow { color: #87445b; font-size: 8px; letter-spacing: 1.4px; }
.letter-dialog h2 { font-size: 38px; margin: 19px 0 28px; }
.letter-body { font: 18px/1.7 var(--serif); color: #65404c; }
.letter-body p + p { margin-top: 17px; }
.letter-signature { font: italic 23px var(--serif); margin-top: 37px; color: #974461; }
.letter-page { display: block; margin-top: 37px; border-top: 1px solid #b16b8544; padding-top: 16px; font-size: 8px; letter-spacing: 2px; color: #9e5771; }
.settings-dialog { width: 570px; padding: 49px 44px 35px; }
.settings-dialog h2 { font-size: 42px; margin-top: 18px; }
.settings-intro, .about-dialog > p { font-size: 12px; line-height: 1.85; color: #d9b8c5; margin-top: 22px; }
.settings-dialog form { margin-top: 23px; }
.settings-dialog label { display: block; font-size: 10px; color: var(--accent); margin: 17px 0 8px; }
.settings-dialog input, .settings-dialog textarea { width: 100%; background: #1809104d; border: 1px solid #c57f9966; color: var(--paper); border-radius: 4px; padding: 11px 14px; font-size: 12px; resize: vertical; }
.settings-dialog input::placeholder, .settings-dialog textarea::placeholder { color: #bb92a5; }
.settings-dialog .button { margin-top: 22px; }
.settings-tip { color: #caa4b4; font-size: 10px; line-height: 1.8; margin: 22px 0 4px; }
.settings-tip code { font-size: 10px; color: #e7becd; overflow-wrap: anywhere; }
.about-dialog .settings-tip { font-size: 10px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%,18px); padding: 13px 22px; max-width: min(520px,90vw); width: max-content; color: #461c30; background: var(--accent); font-size: 11px; border-radius: 8px; box-shadow: 0 8px 30px #0004; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; z-index: 100; }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.noscript-notice { padding: 15px 5%; background: #5b2f43; color: var(--paper); font-size: 13px; }
/* Progressive enhancement: without JS nothing is hidden. */
.js-motion [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-motion [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@keyframes levitate { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes scroll-tick { 0%,100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(4px); opacity: 1; } }
@keyframes breathe { 0%,100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1); opacity: 1; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
/* Laptop and tablet. No horizontal scrolling is required for the experience. */
@media (min-width: 1600px) { .hero { min-height: 820px; } .hero-copy { padding-top: 117px; } .orbit-scene { margin-top: 50px; height: 620px; } }
@media (max-width: 1190px) {
  .site-header { padding: 0 4%; gap: 18px; min-height: 86px; }
  .primary-nav { margin-left: 0; gap: 22px; }
  .header-actions { gap: 15px; }
  .utility-button span { display: none; }
  .hero { padding-left: 4%; padding-right: 4%; min-height: 704px; }
  .hero-copy { padding-top: 78px; }
  h1 { font-size: clamp(61px,6.75vw,83px); }
  .hero-copy .eyebrow { font-size: 7px; letter-spacing: 1.65px; }
  .hero-description { font-size: 12px; }
  .hero-copy .button { font-size: 11px; padding: 14px 20px; gap: 20px; }
  .orbit-scene { height: 555px; }
  .floating-note { width: 124px; min-height: 138px; padding: 17px 12px; }
  .floating-note p { font-size: 21px; }
  .floating-note > span:first-child { font-size: 4.8px; letter-spacing: .5px; }
  .floating-note::before { left: 30px; }
  .scene-hint { font-size: 8px; }
  .hero-bottom { left: 4%; right: 4%; }
  .section-shell { padding-left: 5%; padding-right: 5%; }
  .chapter-copy { padding-left: 43px; }
  .chapter-controls > span { max-width: 130px; }
  .letter-card { padding: 23px 21px 20px; }
  .envelope-scene { height: 218px; }
  .letter-card .letter-title { font-size: 23px; }
}
@media (max-width: 850px) {
  .site-header { min-height: 80px; flex-wrap: wrap; padding: 15px 5%; row-gap: 6px; }
  .brand { font-size: 25px; }
  .brand-mark { width: 30px; height: 30px; }
  .primary-nav { order: 3; width: 100%; justify-content: center; gap: 38px; }
  .primary-nav a { font-size: 11px; padding: 8px 0; }
  .header-actions { margin-left: auto; }
  .hero { display: block; min-height: auto; padding: 0 6% 89px; }
  .hero-copy { padding-top: 53px; }
  .hero-copy .eyebrow { font-size: 8px; }
  h1 { font-size: clamp(65px,11vw,96px); margin-top: 24px; }
  .hero-description { font-size: 14px; }
  .hero-copy .button { font-size: 12px; padding: 15px 25px; }
  .hero-copy > .text-button { font-size: 10px; }
  .hero-meta { margin-top: 24px; }
  .universe-wrap { width: 90%; max-width: 620px; margin: 5px auto 0; padding-top: 0; }
  .universe-label { top: 5px; font-size: 7px; }
  .orbit-scene { height: 550px; margin-top: 9px; }
  .polaroid-caption { font-size: 13px; }
  .polaroid-left .polaroid-caption, .polaroid-back .polaroid-caption { font-size: 11px; }
  .floating-note { width: 140px; min-height: 153px; }
  .floating-note p { font-size: 23px; }
  .floating-note > span:first-child { font-size: 5.5px; }
  .hero-glow { top: 430px; right: -90px; width: 760px; height: 680px; }
  .scene-hint { bottom: -2px; font-size: 9px; }
  .hero-bottom { left: 6%; right: 6%; bottom: 25px; font-size: 7px; }
  .section-shell { padding: 70px 6%; }
  .section-heading { gap: 25px; }
  h2 { font-size: 47px; }
  .section-heading > p { width: 215px; font-size: 11px; }
  .journey-stage { margin-top: 45px; grid-template-columns: 51% 49%; }
  .chapter-copy { padding-left: 28px; }
  .chapter-topline { margin-bottom: 18px; gap: 10px; }
  .chapter-tag { font-size: 8px; padding: 4px 9px; }
  .chapter-copy h3 { font-size: 35px; }
  .chapter-excerpt { font-size: 11px; margin-top: 16px; }
  .chapter-location { font-size: 9px; }
  .chapter-controls { margin-top: 20px; }
  .chapter-controls > span { display: none; }
  .text-link { font-size: 10px; margin-top: 18px; gap: 12px; }
  .journey-photo img { aspect-ratio: .94; }
  .route-stop { width: 100px; }
  .stop-name { font-size: 12px; }
  .stop-date { font-size: 7px; }
  .letter-grid { gap: 13px; margin-top: 38px; }
  .letter-card { padding: 18px 15px; }
  .letter-category { font-size: 6px; letter-spacing: 1px; min-height: 20px; }
  .envelope-scene { height: 177px; }
  .envelope { width: 90%; left: 5%; top: 34px; }
  .envelope-sheet { padding: 10px; gap: 5px; }
  .envelope-seal { width: 23px; height: 23px; left: calc(50% - 11.5px); font-size: 15px; }
  .letter-card .letter-title { font-size: 21px; min-height: 51px; }
  .letter-teaser { font-size: 10px; min-height: 50px; }
  .letter-card-bottom { margin-top: 17px; }
  .ending { padding-top: 90px; padding-bottom: 90px; }
  .ending h2 { font-size: 58px; }
  .memory-dialog[open] { grid-template-columns: 43% 57%; }
  .modal-story { padding: 60px 28px 27px; }
  .modal-story h2 { font-size: 37px; }
  .modal-story blockquote { font-size: 21px; }
  .modal-photo-wrap { min-height: 615px; }
  .upload-photo-button { left: 17px; font-size: 9px; padding: 10px 12px; }
  .modal-photo-meta { left: 19px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 18px; }
  .site-header { padding: 14px 6% 10px; }
  .brand { font-size: 25px; gap: 8px; }
  .header-actions { gap: 14px; }
  .utility-button { padding: 13px 1px; min-width: 24px; justify-content: center; }
  .personalize-button { font-size: 9px; padding: 9px 12px; }
  .personalize-button span { margin-left: 6px; }
  .primary-nav { gap: 32px; }
  .hero-copy { padding-top: 43px; }
  .hero-copy .eyebrow { font-size: 7px; letter-spacing: 1.3px; gap: 8px; }
  .tiny-star { font-size: 18px; }
  h1 { font-size: clamp(59px,12.8vw,76px); line-height: 1.035; letter-spacing: -.065em; margin-top: 22px; }
  .hero-description { font-size: 12px; margin-top: 23px; }
  .hero-copy > .button { margin-top: 25px; }
  .hero-copy > .text-button { font-size: 9px; }
  .hero-meta { font-size: 9px; gap: 11px; margin-top: 21px; }
  .universe-wrap { width: 100%; margin: 37px auto 2px; }
  .universe-label { font-size: 6px; letter-spacing: 1px; right: 2px; top: -2px; }
  .universe-label > span:last-child { margin-left: 10px; }
  .orbit-scene { height: 416px; margin-top: 15px; perspective: 900px; }
  .anchor-main { width: 45%; left: 55%; top: 48%; transform: translate(-50%,-50%) translateZ(45px) rotateZ(-7deg) rotateY(-9deg); }
  .anchor-left { width: 32%; left: 17%; top: 51%; }
  .anchor-back { width: 30%; left: 78%; top: 27%; }
  .polaroid { padding: 5px 5px 0; }
  .polaroid-caption { min-height: 37px; font-size: 10px; padding: 0 2px; }
  .polaroid-caption > span { font-size: 10px; }
  .polaroid-left .polaroid-caption, .polaroid-back .polaroid-caption { font-size: 7px; min-height: 27px; }
  .photo-index { font-size: 4.5px; left: 8px; bottom: 7px; letter-spacing: 1px; }
  .floating-note { right: 2%; bottom: 12%; width: 108px; min-height: 116px; padding: 15px 12px 13px; transform: translateZ(60px) rotateZ(9deg); }
  .floating-note > span:first-child { font-size: 4px; letter-spacing: .5px; }
  .floating-note p { font-size: 18px; margin-top: 10px; }
  .floating-note::before { width: 40px; height: 17px; left: 33px; }
  .note-star { font-size: 20px; right: 10px; bottom: 7px; }
  .orbit-coordinate { font-size: 6px; top: 8%; left: 1%; }
  .star-one { font-size: 25px; top: 13%; left: 39%; }
  .star-two { font-size: 15px; bottom: 16%; }
  .scene-hint { font-size: 8px; bottom: -5px; letter-spacing: 0; }
  .desktop-hint { display: none; }
  .touch-hint { display: inline; }
  .hero-bottom { font-size: 6px; letter-spacing: 1px; padding-top: 21px; gap: 12px; }
  .hero-bottom > a { gap: 9px; }
  .hero-bottom > span { gap: 7px; }
  .section-shell { padding-top: 57px; padding-bottom: 54px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 43px; }
  .section-kicker { font-size: 8px; letter-spacing: 1.7px; margin-bottom: 21px; }
  .section-heading > p { font-size: 12px; width: auto; margin-top: 22px; }
  .section-heading > p br { display: none; }
  .journey-stage { display: block; margin-top: 33px; }
  .memory-visual { padding: 7px 9px 26px 3px; }
  .photo-stack { right: 9px; }
  .journey-photo img { aspect-ratio: 1.2; }
  .image-caption { bottom: 18px; left: 18px; font-size: 8px; }
  .image-open { bottom: 13px; right: 14px; }
  .chapter-copy { padding: 28px 0 0; }
  .chapter-topline { margin-bottom: 20px; justify-content: space-between; }
  .chapter-number { font-size: 23px; }
  .chapter-tag { font-size: 9px; padding: 5px 12px; }
  .chapter-copy h3 { font-size: 43px; }
  .chapter-date { font-size: 11px; }
  .chapter-excerpt { font-size: 13px; max-width: none; }
  .chapter-location { font-size: 11px; }
  .text-link { font-size: 12px; margin-top: 22px; gap: 23px; }
  .chapter-controls { margin-top: 25px; }
  .chapter-controls .round-button { width: 44px; height: 44px; }
  .chapter-controls > span { display: block; font-size: 10px; max-width: 190px; }
  .route-map { height: auto; margin: 33px 0 27px; }
  .route-line { display: none; }
  .route-stops { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
  .route-stop { position: static; width: 100%; min-height: 84px; transform: none; border: 1px solid var(--line); border-radius: 4px; padding: 15px 5px 11px; }
  .stop-marker { width: 6px; height: 6px; margin-bottom: 12px; }
  .route-stop[aria-current='step'] { background: #f3a8bb09; border-color: #f3a8bb60; }
  .route-stop[aria-current='step'] .stop-marker { box-shadow: 0 0 0 4px #f3a8bb14; }
  .stop-date { font-size: 6px; letter-spacing: .7px; }
  .stop-name { font-size: 11px; }
  .journey-bottom > span { font-size: 6px; letter-spacing: 1px; max-width: 145px; }
  .journey-bottom .text-button { font-size: 9px; }
  .letter-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 31px; }
  .letter-card { padding: 24px 29px 21px; }
  .letter-category { font-size: 8px; letter-spacing: 1.5px; }
  .envelope-scene { height: 202px; max-width: 300px; margin: auto; }
  .envelope { width: 79%; left: 10.5%; top: 38px; }
  .envelope-seal { width: 28px; height: 28px; left: calc(50% - 14px); font-size: 19px; }
  .envelope-sheet { padding: 18px; gap: 7px; }
  .letter-card .letter-title { font-size: 29px; min-height: 0; margin-top: 7px; }
  .letter-teaser { font-size: 12px; min-height: 0; max-width: 100%; }
  .letter-card-bottom { margin-top: 22px; font-size: 8px; }
  .letters-hint { font-size: 10px; }
  .ending { padding-top: 75px; padding-bottom: 77px; }
  .ending h2 { font-size: 46px; }
  .ending > p:not(.eyebrow) { font-size: 12px; }
  .ending .button { font-size: 11px; gap: 20px; }
  .ending-signature { margin-top: 39px; font-size: 20px; }
  .site-footer { padding: 21px 6%; flex-wrap: wrap; }
  .site-footer > span { order: 3; width: 100%; font-size: 6px; }
  dialog { max-width: calc(100vw - 22px); max-height: calc(100dvh - 26px); }
  .memory-dialog[open] { display: block; }
  .dialog-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .modal-photo-wrap { min-height: 320px; height: 42dvh; max-height: 450px; }
  .modal-photo-wrap > img { object-position: center; }
  .modal-photo-meta { bottom: 82px; left: 22px; }
  .upload-photo-button { left: 20px; bottom: 22px; font-size: 10px; }
  .modal-story { padding: 31px 25px 26px; }
  .modal-story > .eyebrow { margin-bottom: 17px; font-size: 8px; }
  .modal-story h2 { font-size: 38px; }
  .story-body { font-size: 13px; margin-top: 20px; }
  .modal-actions { padding-top: 17px; }
  .modal-actions .round-button { width: 42px; height: 42px; }
  .save-memory { font-size: 10px; }
  .privacy-note { font-size: 9px; }
  .letter-dialog { padding: 49px 29px 35px; }
  .letter-dialog h2 { font-size: 35px; }
  .letter-body { font-size: 17px; }
  .letter-signature { font-size: 22px; }
  .settings-dialog { padding: 50px 26px 30px; }
  .settings-dialog h2 { font-size: 36px; }
  .settings-dialog .button { font-size: 11px; gap: 18px; }
  .toast { bottom: 16px; font-size: 10px; padding: 12px 17px; }
}
@media (max-width: 365px) {
  .header-actions { gap: 9px; }
  .personalize-button { font-size: 8px; padding: 8px 10px; }
  .brand { font-size: 23px; }
  .brand-mark { width: 25px; height: 25px; }
  .hero-copy .eyebrow { font-size: 6px; letter-spacing: 1px; }
  h1 { font-size: 55px; }
  .orbit-scene { height: 363px; }
  .floating-note { width: 99px; min-height: 106px; }
  .floating-note p { font-size: 16px; }
  .section-heading h2 { font-size: 38px; }
  .ending h2 { font-size: 40px; }
  .chapter-controls > span { max-width: 140px; }
}
@media (hover: none) { .desktop-hint { display: none; } .touch-hint { display: inline; } .polaroid-anchor { animation: none; } }
/* Explicit user choice is stronger than decorative movement. */
html[data-motion='reduced'] { scroll-behavior: auto; }
html[data-motion='reduced'] *, html[data-motion='reduced'] *::before, html[data-motion='reduced'] *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
html[data-motion='reduced'] .orbit-world { transform: none !important; will-change: auto; }
html[data-motion='reduced'] .polaroid { transform: none !important; }
html[data-motion='reduced'] [data-reveal] { opacity: 1; transform: none; }
html[data-motion='reduced'] .letter-card:hover, html[data-motion='reduced'] .button:hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion-override='true']) { scroll-behavior: auto; }
  html:not([data-motion-override='true']) *, html:not([data-motion-override='true']) *::before, html:not([data-motion-override='true']) *::after { animation: none !important; transition-duration: .01ms !important; }
  html:not([data-motion-override='true']) .orbit-world, html:not([data-motion-override='true']) .polaroid { transform: none !important; }
  html:not([data-motion-override='true']) [data-reveal] { opacity: 1 !important; transform: none !important; }
}
.hero.is-paused .polaroid-anchor, .hero.is-paused .scroll-indicator::after { animation-play-state: paused; }
dialog[open] { animation-fill-mode: none; }

/* Each print is a flat object inside the 3D world; flatten its image and paper
   into one surface to avoid coplanar painting artefacts in Chromium. */
.polaroid { transform-style: flat; }

.letter-title { display: block; font-family: var(--serif); font-weight: 400; }

/* V2 · a song in the same orbit. The existing album and composition are preserved. */
.hero-meta { flex-wrap: wrap; row-gap: 10px; }
.soundtrack-link { display: inline-flex; align-items: center; gap: 7px; margin-left: 2px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 22px; background: #ef88ad08; color: #e8a8bd; font-size: 10px; line-height: 1.6; transition: border-color .25s, background .25s; }
.soundtrack-link:hover { border-color: var(--accent); background: #ef88ad12; }
.soundtrack-link .icon { width: 13px; height: 13px; }
.soundtrack-link > span:last-child { font-size: 12px; margin-left: 3px; }
.music-dialog { width: 510px; padding: 38px 38px 29px; background: radial-gradient(ellipse at 90% 0%, #752d4730, transparent 60%), var(--surface); border-radius: 7px; }
.music-dialog > .eyebrow { color: var(--accent); font-size: 8px; letter-spacing: 1.8px; padding-right: 30px; }
.music-dialog h2 { margin-top: 16px; font-size: 40px; }
.track-card { display: flex; align-items: center; gap: 21px; margin-top: 25px; min-width: 0; }
.music-disc { position: relative; flex: 0 0 71px; width: 71px; height: 71px; border: 1px solid #d3769655; border-radius: 50%; display: grid; place-items: center; background: repeating-radial-gradient(circle, transparent 0 4px, #efa4bf17 5px 6px), conic-gradient(from 30deg, #29101c, #75364f, #321424, #ae607b, #29101c); box-shadow: 0 7px 24px #14061055; animation: music-orbit 22s linear infinite; animation-play-state: paused; }
.music-disc > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #edafc2; color: #752c49; font-size: 16px; }
.track-info { min-width: 0; }
.track-info strong { display: block; color: var(--paper); font: 27px var(--serif); letter-spacing: -.6px; }
.track-info > span { display: block; color: var(--muted); font-size: 10px; line-height: 1.7; margin-top: 5px; overflow-wrap: anywhere; }
.music-status { color: #d2a9bb; font-size: 11px; line-height: 1.8; margin-top: 21px; min-height: 40px; }
.music-file-button { width: 100%; margin-top: 15px; min-height: 43px; font-size: 11px; gap: 9px; padding: 11px 19px; }
.music-file-button .icon { width: 16px; height: 16px; }
.music-transport { margin: 22px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.music-transport > .round-button { width: 37px; height: 37px; }
.music-play-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 25px; background: #e791b01a; border: 1px solid #efafc547; padding: 8px 19px; font-size: 11px; }
.music-play-button:hover:not(:disabled) { background: #e791b030; }
.music-play-button .icon { width: 17px; height: 17px; }
.loop-control { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); cursor: pointer; }
.loop-control input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }
.audio-range { appearance: none; -webkit-appearance: none; display: block; margin: 0; width: 100%; height: 22px; background: transparent; cursor: pointer; accent-color: var(--accent); }
.audio-range::-webkit-slider-runnable-track { height: 3px; border-radius: 5px; background: #b06b884f; }
.audio-range::-moz-range-track { height: 3px; border-radius: 5px; background: #b06b884f; }
.audio-range::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); margin-top: -5px; border: 2px solid #ffd3e2; }
.audio-range::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid #ffd3e2; }
.audio-range:disabled { opacity: .4; cursor: not-allowed; }
.track-time { display: flex; justify-content: space-between; color: #c195aa; font-size: 9px; font-variant-numeric: tabular-nums; margin-top: 1px; }
.audio-mixer { border-top: 1px solid var(--line); margin-top: 19px; padding-top: 10px; }
.mixer-heading { display: flex; align-items: center; gap: 10px; color: #e6bacb; font-size: 10px; margin-top: 7px; }
.mixer-heading output { margin-left: auto; color: #ca9bad; font-variant-numeric: tabular-nums; }
.mixer-heading > button { font-size: 8px; background: #dda1b81a; color: #d9a0b5; border: 1px solid #e99cba2e; padding: 2px 7px; border-radius: 15px; }
.mixer-heading > button[aria-pressed='true'] { color: #321421; background: var(--accent); }
.mixer-note { color: #c498ab; font-size: 9px; margin-top: 5px; line-height: 1.7; }
.music-privacy { margin-top: 17px; color: #bf95a6; font-size: 9px; line-height: 1.8; }
#music-remove { font-size: 9px; padding: 10px 0 0; color: #e1a7bd; }
.mini-player { position: fixed; right: 24px; bottom: 24px; z-index: 35; display: flex; align-items: center; gap: 13px; width: min(304px,calc(100vw - 32px)); padding: 11px 14px 11px 11px; background: #351928f2; border: 1px solid #d787a54d; border-radius: 50px; box-shadow: 0 10px 45px #11060a66; backdrop-filter: blur(16px); }
.mini-player-toggle { flex: 0 0 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; color: #471e33; background: var(--accent); }
.mini-player-toggle .icon { width: 17px; height: 17px; }
.mini-player-track { text-align: left; background: transparent; padding: 0; min-width: 0; flex: 1; }
.mini-player-track > span:first-child { display: block; font: 18px/1.2 var(--serif); color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-player-track > span:last-child { display: block; font-size: 6px; letter-spacing: 1.3px; color: #d798b3; margin-top: 5px; }
.mini-player-settings { display: grid; place-items: center; background: transparent; color: #d89bb5; padding: 6px; }
.mini-player-settings .icon { width: 17px; height: 17px; }
.has-soundtrack .site-footer { padding-bottom: 108px; }
.has-soundtrack .toast { bottom: 98px; }
[data-music-playing='true'] .music-disc { animation-play-state: running; }
.page-hidden .music-disc, [data-motion='reduced'] .music-disc { animation-play-state: paused; }
@keyframes music-orbit { to { transform: rotate(360deg); } }
@media (max-width: 1190px) { .soundtrack-link { font-size: 9px; } }
@media (max-width: 600px) {
  .soundtrack-link { font-size: 8px; padding: 4px 9px; gap: 5px; }
  .music-dialog { padding: 31px 24px 25px; max-width: calc(100vw - 24px); }
  .music-dialog h2 { font-size: 36px; }
  .track-card { gap: 17px; margin-top: 21px; }
  .music-disc { flex-basis: 59px; width: 59px; height: 59px; }
  .track-info strong { font-size: 26px; }
  .music-status { font-size: 10px; margin-top: 18px; }
  .music-dialog .dialog-close { top: 15px; right: 15px; }
  .mini-player { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .music-play-button { padding: 8px 13px; }
}
@media (prefers-reduced-motion: reduce) { html:not([data-motion-override='true']) .music-disc { animation: none !important; } }

.music-dialog:not([open]) .music-disc { animation-play-state: paused; }

