/* قالب «رسالة قديمة» — ورق عتيق على خشب، وشريط عنّابي */
body.tpl-letter { --q-bg: #EBDCBC; --q-soft: #E2CFA8; --q-ink: #3E2A17; --q-muted: #6A5236; --q-accent: #8B3A1E; --q-line: #C9B184; --q-btn: #5A3A1E; --q-btn-ink: #F3E7CC; --q-display: 'Aref Ruqaa', 'Amiri', serif; }
.lt-cover { position: absolute; inset: 0; background: radial-gradient(500px 420px at 50% 40%, #6B5238, #3B2A1A 80%); display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 24px; padding: 30px 20px; overflow-y: auto; transition: opacity .8s ease .9s; }
.lt-cover .q-guest { color: #F0E2C4; font-size: 15px; transition: opacity .4s ease; }
.lt-cover .q-guest strong { font: 700 26px 'Amiri', serif; }
.lt-scroll { position: relative; width: min(290px, 80vw); display: flex; flex-direction: column; align-items: center; }
.lt-roll { display: block; width: 108%; height: 26px; border-radius: 13px; background: linear-gradient(#C9A774, #8C6A3E 60%, #6B4E2A); box-shadow: 0 4px 10px rgba(0,0,0,.35); position: relative; z-index: 2; }
.lt-paper { width: 100%; height: 70px; overflow: hidden; background: linear-gradient(90deg, #DCC69C, #EBDCBC 20%, #EBDCBC 80%, #DCC69C); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: #3E2A17; transition: height 1.2s cubic-bezier(.5,0,.3,1); }
.lt-paper p { font: 400 15px 'Amiri', serif; opacity: 0; transition: opacity .6s ease .7s; }
.lt-cn { font: 700 34px/1.4 'Aref Ruqaa', serif; color: #8B3A1E; opacity: 0; transition: opacity .6s ease .9s; }
.lt-cn i { font-style: normal; font-size: 22px; }
.lt-ribbon { position: absolute; top: 30px; left: 50%; width: 30px; height: 78px; margin-left: -15px; background: #8B2A2A; box-shadow: 0 4px 10px rgba(0,0,0,.3); z-index: 3; transition: transform .6s ease, opacity .6s ease; }
.lt-open { min-height: 52px; padding: 0 30px; border-radius: 999px; border: 0; background: #C9A774; color: #3B2A1A; font: 700 16px 'Plex Arabic', sans-serif; cursor: pointer; transition: opacity .4s ease; }
.is-opening .lt-ribbon { transform: translateY(60px) rotate(25deg); opacity: 0; }
.is-opening .lt-paper { height: 260px; }
.is-opening .lt-paper p, .is-opening .lt-cn { opacity: 1; }
.is-opening .lt-open, .is-opening .lt-cover .q-guest { opacity: 0; }
.is-opening .lt-cover { opacity: 0; }
.lt-hero { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 40px 24px 14px; }
.lt-orn { width: 90px; height: 14px; background: radial-gradient(circle, #8B3A1E 3px, transparent 4px) 0 0/18px 14px repeat-x; }
.lt-host { font: 400 17px 'Amiri', serif; color: #6A5236; max-width: 30ch; }
.lt-names { display: flex; flex-direction: column; font: 700 54px/1.3 'Aref Ruqaa', serif; color: #8B3A1E; outline: none; }
.lt-and { font-size: 24px; color: #5A3A1E; }
.lt-tag { font: 400 19px 'Aref Ruqaa', serif; color: #6A5236; }
.lt-when { display: flex; flex-direction: column; gap: 2px; }
.lt-when strong { font-size: 18px; }
.lt-when span { font-size: 14px; color: #6A5236; }
.tpl-letter .q-made { color: #6A5236; }
@media (prefers-reduced-motion: reduce) { .lt-paper, .lt-paper p, .lt-cn, .lt-ribbon, .lt-cover, .lt-open { transition: none; } }
