/* TUARAI - หน้าจดหมายแบบมีของให้แตะ (ใช้ร่วมทุกธีม ปรับรูปทรงตามคลาส body.theme-xxx) */
.lx-stage { display: none; position: relative; flex-direction: column; align-items: center; justify-content: center; gap: 18px; width: min(360px, 94vw); min-height: 320px; }
.overlay.lx-intro .lx-stage { display: flex; position: absolute; inset: 0; width: auto; min-height: 0; cursor: pointer; }
.overlay.lx-intro { background: rgba(4,4,12,.93); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.overlay.lx-intro .letter-card { display: none; }
.lx-x { position: fixed; top: 12px; right: 14px; width: 42px; height: 42px; border: 0; background: rgba(0,0,0,.35); color: #fff; font-size: 28px; line-height: 1; border-radius: 50%; z-index: 3; }
.lx-shell { appearance: none; background: transparent; border: 0; padding: 30px; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; animation: lxWobble 2.4s ease-in-out infinite; filter: drop-shadow(0 16px 24px rgba(0,0,0,.5)); }
.lx-shell:hover { transform: scale(1.05); }
@keyframes lxWobble { 0%, 100% { transform: translateY(0) rotate(0); } 20% { transform: translateY(-8px) rotate(-2.5deg); } 40% { transform: translateY(0) rotate(2deg); } 60% { transform: translateY(-5px) rotate(-1deg); } 80% { transform: translateY(0) rotate(0); } }
.lx-stage.go .lx-shell { animation: none; }
.lx-hint { position: relative; height: 74px; width: 60px; color: var(--accent, #ffd479); margin-top: -4px; }
.lx-arrow { position: absolute; left: 10px; top: 4px; width: 40px; height: 64px; filter: drop-shadow(0 0 10px currentColor); animation: lxPoint 1s ease-in-out infinite; }
@keyframes lxPoint { 0%, 100% { transform: translateY(6px); } 50% { transform: translateY(-10px); } }
.lx-r { position: absolute; left: 50%; top: -150px; width: 70px; height: 70px; margin-left: -35px; border: 3px solid currentColor; border-radius: 50%; opacity: 0; animation: lxRing 1.8s ease-out infinite; }
.lx-r.r2 { animation-delay: .9s; }
@keyframes lxRing { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.lx-stage.go .lx-hint { opacity: 0; transition: opacity .2s; }

/* ---------- ซองจดหมาย ---------- */
.lx-env { position: relative; width: 240px; height: 162px; perspective: 900px; --eb: #fff5e0; --ef: #f1e0bb; --el: #c0392b; --es: #c0392b; --ei: #fff; }
.lx-env i { position: absolute; display: block; }
.lx-env .back { inset: 0; background: var(--eb); border-radius: 6px; }
.lx-env .paper { left: 14px; right: 14px; top: 12px; height: 128px; background: #fffdf6; border-radius: 4px; z-index: 2; box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset; transition: transform .8s .35s cubic-bezier(.3, 1.3, .5, 1); }
.lx-env .front { inset: 0; background: var(--eb); clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); z-index: 3; border-radius: 6px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.lx-env .front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 49.4%, rgba(0,0,0,.14) 50%, transparent 50.8%), linear-gradient(225deg, transparent 49.4%, rgba(0,0,0,.14) 50%, transparent 50.8%); }
.lx-env .flap { left: 0; right: 0; top: 0; height: 88px; background: var(--ef); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; z-index: 4; border-radius: 6px 6px 0 0; }
.lx-env .seal { left: 50%; top: 66px; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; background: var(--es); color: var(--ei); display: grid; place-items: center; font-style: normal; font-size: 22px; z-index: 6; box-shadow: 0 3px 8px rgba(0,0,0,.4), inset 0 0 0 3px rgba(255,255,255,.25); animation: lxPulse 1.6s ease-in-out infinite; }
@keyframes lxPulse { 50% { transform: scale(1.14); } }
.lx-env .ring { inset: -4px; border: 2px solid var(--el); border-radius: 8px; z-index: 7; pointer-events: none; opacity: .0; }
.lx-env.open .flap { animation: lxFlap .7s forwards; }
.lx-env.open .paper { transform: translateY(-78px); }
.lx-env.open .seal, .lx-env.open .tw, .lx-env.open .stamp { opacity: 0; transition: opacity .25s; }
@keyframes lxFlap { 0% { transform: rotateX(0); z-index: 4; } 45% { z-index: 4; } 50% { transform: rotateX(90deg); z-index: 1; } 100% { transform: rotateX(180deg); z-index: 1; } }
.lx-env.air .ring { opacity: 1; border: 7px solid transparent; border-image: repeating-linear-gradient(45deg, #e5383b 0 12px, #fff 12px 24px, #2a5bd7 24px 36px, #fff 36px 48px) 7; border-radius: 0; inset: 0; }
.lx-env .stamp { right: 14px; top: 16px; width: 34px; height: 40px; background: #fff; border: 2px dotted #c93c3c; display: grid; place-items: center; font-style: normal; color: #c93c3c; z-index: 6; font-size: 18px; transform: rotate(5deg); }
.lx-env .tw { background: #f4e7c4; z-index: 6; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.lx-env .tw-h { left: 0; right: 0; top: 96px; height: 4px; } .lx-env .tw-v { left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; }
.lx-env.twine .seal { width: 34px; height: 34px; margin-left: -17px; top: 79px; font-size: 18px; }
.lx-env.px { filter: none; } .lx-env.px * { border-radius: 0 !important; } .lx-env.px { box-shadow: 0 0 0 4px #000, 8px 8px 0 4px #000; } .lx-env.px .flap { animation-timing-function: steps(5); } .lx-env.px .paper { transition-timing-function: steps(6); } .lx-env.px .seal { box-shadow: none; border: 4px solid #000; }
.lx-env.neon .back { background: #0b0f2e; box-shadow: 0 0 0 2px var(--el), 0 0 24px var(--el); } .lx-env.neon .front { background: #0e1440; } .lx-env.neon .flap { background: #1b2a8a; box-shadow: inset 0 0 0 2px var(--el); } .lx-env.neon .seal { box-shadow: 0 0 20px var(--es); }
.lx-env.tech .back { background: #141c3c; box-shadow: 0 0 0 1px var(--el), 0 0 30px rgba(127,227,255,.4); } .lx-env.tech .front { background: #1a2450; } .lx-env.tech .seal { background: transparent; border: 3px solid var(--el); color: var(--el); font-size: 24px; animation: lxPulse 1.2s infinite; }
.lx-env.gold .back, .lx-env.gold .front { background: linear-gradient(135deg, #e8334a, #b01e31); } .lx-env.gold .flap { background: linear-gradient(135deg, #f0455a, #c4202e); } .lx-env.gold .ring { opacity: 1; inset: 8px; border: 2px solid #ffd166; border-radius: 4px; }

/* ---------- กล่องของขวัญ ---------- */
.lx-gift { position: relative; width: 210px; height: 200px; }
.lx-gift i { position: absolute; display: block; }
.lx-gift .box { left: 14px; right: 14px; bottom: 0; height: 120px; background: linear-gradient(135deg, #ff8fb1, #e8628b); border-radius: 8px; }
.lx-gift .box::before { content: ""; position: absolute; left: 50%; width: 34px; margin-left: -17px; top: 0; bottom: 0; background: linear-gradient(90deg, #ffd166, #ffe69a, #ffd166); }
.lx-gift .lid { left: 4px; right: 4px; bottom: 112px; height: 52px; background: linear-gradient(135deg, #ff7aa3, #e0507c); border-radius: 10px; transition: transform .6s cubic-bezier(.3, 1.6, .5, 1), opacity .5s .3s; }
.lx-gift .lid::before { content: ""; position: absolute; left: 50%; width: 34px; margin-left: -17px; top: 0; bottom: 0; background: linear-gradient(90deg, #ffd166, #ffe69a, #ffd166); }
.lx-gift .bow { bottom: 156px; width: 54px; height: 38px; background: #ffd166; border-radius: 50% 50% 50% 8%; border: 3px solid #e0a52a; transition: transform .6s cubic-bezier(.3, 1.6, .5, 1), opacity .5s .3s; }
.lx-gift .b1 { left: 50%; margin-left: -56px; transform: rotate(-18deg); } .lx-gift .b2 { left: 50%; margin-left: 2px; transform: scaleX(-1) rotate(-18deg); }
.lx-gift.open .lid, .lx-gift.open .bow { opacity: 0; } .lx-gift.open .lid { transform: translateY(-120px) rotate(-22deg); }
.lx-gift.open .b1 { transform: translateY(-140px) rotate(-60deg); } .lx-gift.open .b2 { transform: translateY(-140px) scaleX(-1) rotate(-60deg); }
.lx-gift.open .box { animation: lxJiggle .5s; } @keyframes lxJiggle { 25% { transform: scale(1.05, .94); } 60% { transform: scale(.97, 1.04); } }

/* ---------- ขวดข้อความ ---------- */
.lx-bottle { position: relative; width: 130px; height: 240px; transform: rotate(14deg); }
.lx-bottle i { position: absolute; display: block; }
.lx-bottle .belly { left: 0; bottom: 0; width: 130px; height: 175px; border-radius: 48px 48px 30px 30px; background: linear-gradient(90deg, rgba(255,255,255,.4), rgba(160,225,240,.32) 55%, rgba(255,255,255,.18)); border: 3px solid rgba(255,255,255,.6); z-index: 3; }
.lx-bottle .neck { left: 46px; top: 22px; width: 38px; height: 72px; background: linear-gradient(90deg, rgba(255,255,255,.4), rgba(160,225,240,.3)); border: 3px solid rgba(255,255,255,.6); border-bottom: 0; border-radius: 10px 10px 0 0; z-index: 3; }
.lx-bottle .cork { left: 44px; top: 0; width: 42px; height: 28px; background: linear-gradient(#c8935a, #a8713c); border-radius: 7px; z-index: 4; transition: transform .6s cubic-bezier(.2, 1.4, .5, 1), opacity .5s .2s; }
.lx-bottle .roll { left: 48px; top: 78px; width: 36px; height: 130px; background: linear-gradient(90deg, #ead3a6, #fff3d6, #ead3a6); border-radius: 18px; border: 2px solid #c9a56e; z-index: 2; transition: transform .8s .3s cubic-bezier(.3, 1.3, .5, 1); }
.lx-bottle .roll::after { content: ""; position: absolute; left: -2px; right: -2px; top: 46%; height: 8px; background: #d7263d; }
.lx-bottle.open .cork { transform: translate(40px, -90px) rotate(50deg); opacity: 0; } .lx-bottle.open .roll { transform: translateY(-96px) scale(1.12); z-index: 5; }

/* ---------- ม้วนกระดาษ ---------- */
.lx-scroll { position: relative; width: 270px; height: 104px; }
.lx-scroll i { position: absolute; display: block; }
.lx-scroll .roll { inset: 0; border-radius: 52px / 50px; background: linear-gradient(180deg, #d9c395, #fff6dc 40%, #f1e1bb 65%, #cdb582); box-shadow: inset 0 0 0 3px rgba(120,80,30,.35); transition: transform .8s .25s cubic-bezier(.3, 1.2, .5, 1); }
.lx-scroll .roll::before, .lx-scroll .roll::after { content: ""; position: absolute; top: 12px; bottom: 12px; width: 18px; border-radius: 50%; background: #6b3a1c; }
.lx-scroll .roll::before { left: -6px; } .lx-scroll .roll::after { right: -6px; }
.lx-scroll .band { left: 50%; width: 38px; margin-left: -19px; top: -8px; bottom: -8px; background: linear-gradient(90deg, #a82a3a, #d7414f, #a82a3a); border-radius: 4px; transition: transform .6s, opacity .4s .2s; }
.lx-scroll .knot { left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff0b3, #c79a3b); box-shadow: 0 2px 5px rgba(0,0,0,.5); transition: opacity .3s; animation: lxPulse 1.4s infinite; }
.lx-scroll.white .band { background: linear-gradient(90deg, #d7d7e8, #fff, #d7d7e8); } .lx-scroll.white .knot { background: radial-gradient(circle at 35% 30%, #ffc2d6, #ee7fa0); }
.lx-scroll.open .band { transform: translateY(70px) rotate(12deg); opacity: 0; } .lx-scroll.open .knot { opacity: 0; } .lx-scroll.open .roll { transform: scale(1.12, 1.9); }

/* ---------- ตั๋ว ---------- */
.lx-ticket { position: relative; width: 270px; height: 130px; background: linear-gradient(135deg, #ffd166, #f0a52a 60%, #ffd166); border-radius: 10px; display: grid; place-items: center; -webkit-mask: radial-gradient(circle 13px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 13px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat; box-shadow: inset 0 0 0 3px rgba(120,70,0,.25); transition: transform .8s, opacity .6s .3s; }
.lx-ticket b { font-size: 60px; color: #7a3d00; text-shadow: 0 2px 0 rgba(255,255,255,.4); animation: lxPulse 1.4s infinite; }
.lx-ticket .perf { position: absolute; left: 66%; top: 10px; bottom: 10px; border-left: 3px dashed rgba(120,70,0,.5); }
.lx-ticket.open { transform: rotateY(180deg) scale(1.2); opacity: 0; }

/* ---------- หน้าต่างป๊อปอัป ---------- */
.lx-popup { width: 250px; background: #e9e0ff; border: 3px solid #fff; border-right-color: #9a86bd; border-bottom-color: #9a86bd; box-shadow: 4px 4px 0 rgba(0,0,0,.45); }
.lx-popup .tb { display: flex; justify-content: flex-end; gap: 4px; padding: 5px; background: linear-gradient(90deg, #ff8ad8, #8a7bff); } .lx-popup .tb i { width: 16px; height: 16px; background: #e9e0ff; border: 2px solid #fff; border-right-color: #7a6aa8; border-bottom-color: #7a6aa8; }
.lx-popup .pb { position: relative; padding: 22px 10px 28px; text-align: center; } .lx-popup .pb span { font-size: 70px; line-height: 1; display: inline-block; animation: lxBlink 1s steps(2) infinite; }
.lx-popup .pb u { position: absolute; right: 34px; bottom: 12px; width: 18px; height: 26px; background: #000; clip-path: polygon(0 0, 100% 62%, 56% 66%, 78% 100%, 54% 100%, 36% 70%, 0 90%); text-decoration: none; }
@keyframes lxBlink { 50% { transform: scale(1.12) rotate(-6deg); } }
.lx-popup.open { animation: lxShake .4s; } @keyframes lxShake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } 100% { transform: scale(1.15); opacity: 0; } }

/* ---------- ปกแผ่นเสียง ---------- */
.lx-sleeve { position: relative; width: 200px; height: 200px; }
.lx-sleeve i { position: absolute; display: block; }
.lx-sleeve .vinyl { left: 14px; top: 8px; width: 172px; height: 172px; border-radius: 50%; background: repeating-radial-gradient(#101010 0 3px, #232323 3px 6px); transition: transform 1s .2s cubic-bezier(.3, 1.2, .5, 1); animation: lxSpin 4s linear infinite; }
.lx-sleeve .vinyl em { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: radial-gradient(circle, #1b1b1b 0 4px, #ffd166 5px); }
.lx-sleeve .cover { left: 0; right: 0; bottom: 0; height: 150px; background: linear-gradient(135deg, #4a2c20, #2b1912); border-radius: 6px; display: grid; place-items: center; box-shadow: inset 0 0 0 3px rgba(255,209,102,.4); }
.lx-sleeve .cover b { font-size: 54px; color: #ffd166; animation: lxPulse 1.4s infinite; }
@keyframes lxSpin { to { rotate: 360deg; } }
.lx-sleeve.open .vinyl { transform: translateY(-100px); }

/* ---------- ท่าโผล่ของจดหมาย ---------- */
.letter-card.lx-in { animation-duration: .9s; animation-fill-mode: backwards; animation-timing-function: cubic-bezier(.2, 1, .3, 1); }
.letter-card.lx-in[data-enter=rise] { animation-name: lxRise; } @keyframes lxRise { from { transform: translateY(160px) scale(.8); opacity: 0; } }
.letter-card.lx-in[data-enter=unfold] { animation-name: lxUnfold; transform-origin: 50% 0; } @keyframes lxUnfold { from { transform: perspective(900px) rotateX(-90deg); opacity: 0; } }
.letter-card.lx-in[data-enter=bloom] { animation-name: lxBloom; } @keyframes lxBloom { from { transform: scale(.1) rotate(-30deg); opacity: 0; } 60% { transform: scale(1.06) rotate(3deg); } }
.letter-card.lx-in[data-enter=unroll] { animation-name: lxUnroll; animation-duration: 1.1s; } @keyframes lxUnroll { from { clip-path: inset(0 0 100% 0); opacity: .4; } to { clip-path: inset(0); opacity: 1; } }
.letter-card.lx-in[data-enter=curtain] { animation-name: lxCurtain; animation-duration: 1s; } @keyframes lxCurtain { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0); } }
.letter-card.lx-in[data-enter=pop] { animation-name: lxPop; } @keyframes lxPop { from { transform: scale(.2); opacity: 0; } 55% { transform: scale(1.1); } 75% { transform: scale(.96); } }
.letter-card.lx-in[data-enter=steps] { animation-name: lxSteps; animation-timing-function: steps(6); } @keyframes lxSteps { from { transform: translateY(-80px); opacity: 0; } }
.letter-card.lx-in[data-enter=flicker] { animation-name: lxFlicker; animation-timing-function: linear; } @keyframes lxFlicker { 0%, 20%, 40% { opacity: 0; } 10%, 30% { opacity: 1; } 50% { opacity: .2; } 60%, 100% { opacity: 1; } }
.letter-card.lx-in[data-enter=scan] { animation-name: lxScan; animation-duration: 1.1s; } @keyframes lxScan { from { clip-path: inset(0 0 100% 0); filter: brightness(2) hue-rotate(40deg); } 70% { filter: brightness(1.4); } to { clip-path: inset(0); filter: none; } }
.letter-card.lx-in[data-enter=drop] { animation-name: lxDrop; transform-origin: 50% 0; animation-duration: 1.2s; } @keyframes lxDrop { 0% { transform: translateY(-120%) rotate(-8deg); } 55% { transform: translateY(6%) rotate(4deg); } 75% { transform: rotate(-2deg); } 100% { transform: none; } }
.letter-card.lx-in[data-enter=petal] { animation-name: lxPetal; animation-duration: 1.2s; } @keyframes lxPetal { from { opacity: 0; filter: blur(10px); transform: scale(.85) rotate(-6deg); } }
.letter-card.lx-in[data-enter=slide] { animation-name: lxSlide; } @keyframes lxSlide { from { transform: translateX(120vw) rotate(10deg); } }

/* ---------- ลำดับข้อมูลในจดหมาย (ไม่ให้ซ้ำตำแหน่งเดิม) ---------- */
body.lx-on .letter-card { display: flex; flex-direction: column; }
body.lx-on .overlay.lx-intro .letter-card { display: none; }
body.lx-o-b .letter-card .counter-title { order: 8; margin-top: 18px; } body.lx-o-b .letter-card .day-counter { order: 9; margin-bottom: 0; } body.lx-o-b .letter-card .letter-sign { order: 7; }
body.lx-o-c .letter-card .counter-title { order: -3; margin-top: 4px; } body.lx-o-c .letter-card .day-counter { order: -2; }  body.lx-o-c .letter-card .eyebrow { order: -1; }
body.lx-on .letter-card .eyebrow, body.lx-on .letter-card .letter-title { order: 0; }
body.lx-o-c .letter-card .eyebrow { order: -1; } body.lx-o-c .letter-card .letter-title { order: -1; }
body.lx-on .letter-card .letter-body { order: 5; } body.lx-on .letter-card .letter-sign { order: 6; }
body.lx-o-b .letter-card .letter-sign { order: 7; }

/* ---------- กรอบจดหมายเฉพาะธีม ---------- */
body.theme-starry .letter-card { padding-top: 46px; border-radius: 30px; box-shadow: 0 0 60px rgba(255,217,138,.22), 0 24px 80px rgba(0,0,0,.6); }
body.theme-starry .letter-card::before { content: "✦"; position: absolute; left: 50%; top: 4px; transform: translateX(-50%); color: #ffd98a; font-size: 30px; text-shadow: 0 0 16px #ffd98a; }
body.theme-diary .letter-card { transform: rotate(-1deg); border-radius: 4px 14px 14px 4px; border-left: 10px solid #a4472f; text-align: left; }
body.theme-diary .letter-card::before { content: ""; position: absolute; top: 0; left: 40px; width: 90px; height: 24px; background: rgba(255,225,150,.75); transform: rotate(-4deg); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
body.theme-diary .day-counter { justify-content: flex-start; }
body.theme-garden .letter-card { border-radius: 44px 44px 18px 18px; border: 3px dotted rgba(214,87,123,.45); }
body.theme-garden .letter-card::after { content: ""; display: block; height: 1.2em; background: var(--ic-tulip) 0% 50% / 1.05em 1.05em no-repeat, var(--ic-daisy) 50% 50% / 1.05em 1.05em no-repeat, var(--ic-tulip) 100% 50% / 1.05em 1.05em no-repeat; position: absolute; left: 0; right: 0; bottom: -4px; text-align: center; font-size: 22px; letter-spacing: 8px; pointer-events: none; }
body.theme-sunset .letter-card { border-radius: 2px; clip-path: polygon(0 3%, 4% 0, 9% 2%, 14% 0, 20% 2%, 27% 0, 34% 2%, 41% 0, 48% 2%, 55% 0, 63% 2%, 70% 0, 78% 2%, 86% 0, 93% 2%, 100% 0, 100% 97%, 95% 100%, 88% 98%, 80% 100%, 72% 98%, 64% 100%, 56% 98%, 48% 100%, 40% 98%, 32% 100%, 24% 98%, 16% 100%, 8% 98%, 0 100%); padding-top: 46px; padding-bottom: 42px; }
body.theme-envelope .letter-card { border: 8px solid transparent; border-image: repeating-linear-gradient(45deg, #e5383b 0 12px, #fff 12px 24px, #2a5bd7 24px 36px, #fff 36px 48px) 8; border-radius: 0; text-align: left; }
body.theme-envelope .letter-card::after { content: ""; display: inline-block; width: 1.1em; height: 1.1em; background: var(--ic-heart) center / 52% no-repeat; position: absolute; right: 16px; top: 14px; width: 40px; height: 48px; border: 2px dotted #c93c3c; display: grid; place-items: center; color: #c93c3c; transform: rotate(5deg); }
body.theme-sakura .letter-card { border-radius: 40px 12px 40px 12px; }
body.theme-sakura .letter-card::before { content: ""; display: inline-block; width: 1.1em; height: 1.1em; background: var(--ic-sakura) center / contain no-repeat; position: absolute; right: 12px; top: 8px; font-size: 30px; } body.theme-sakura .letter-card::after { content: ""; display: inline-block; width: 1.1em; height: 1.1em; background: var(--ic-sakura) center / contain no-repeat; position: absolute; left: 12px; bottom: 6px; font-size: 24px; }
body.theme-cinema .letter-card { border-radius: 0; border: 0; border-top: 28px solid #000; border-bottom: 28px solid #000; box-shadow: 0 0 0 2px rgba(232,196,90,.4), 0 24px 80px rgba(0,0,0,.7); padding-top: 20px; }
body.theme-cinema .letter-card .letter-body, body.theme-cinema .letter-card .letter-sign { text-align: center; }
body.theme-y2k .letter-card { border-radius: 0; box-shadow: 6px 6px 0 rgba(0,0,0,.5); }
body.theme-pixel .letter-card { text-align: left; } 
body.theme-cake .letter-card { border-radius: 34px; border: 4px dashed #ff8fb1; background-image: radial-gradient(circle at 12% 8%, #ffd166 0 6px, transparent 7px), radial-gradient(circle at 88% 12%, #7fe3ff 0 5px, transparent 6px), radial-gradient(circle at 20% 94%, #ff8fb1 0 6px, transparent 7px), radial-gradient(circle at 90% 90%, #b8f27c 0 5px, transparent 6px); }
body.theme-arcade .letter-card { border-radius: 4px; border: 3px solid #ff2bd6; box-shadow: 0 0 0 3px #0b0f2e, 0 0 30px #ff2bd6, inset 0 0 30px rgba(0,240,255,.2); text-align: left; }
body.theme-space .letter-card { border-radius: 18px; border: 1px solid #7fe3ff; background: linear-gradient(180deg, rgba(20,30,70,.95), rgba(8,12,34,.97)); box-shadow: 0 0 40px rgba(127,227,255,.35); overflow: hidden auto; }
body.theme-space .letter-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(127,227,255,.05) 0 2px, transparent 2px 4px); }
body.theme-musicbox .letter-card { padding-top: 46px; border-radius: 24px; border: 2px solid rgba(255,209,102,.5); max-width: 520px; }
body.theme-musicbox .letter-card::before { content: "♪  ♫  ♪"; position: absolute; left: 0; right: 0; top: 4px; text-align: center; color: #ffd166; font-size: 26px; letter-spacing: 12px; }
body.theme-hanami .letter-card { width: min(400px, 100%); border-radius: 4px; border-top: 22px solid #d7263d; border-bottom: 10px solid #d7263d; }
body.theme-palace .letter-card { border-radius: 4px; padding-top: 52px; padding-bottom: 52px; box-shadow: 0 24px 80px rgba(0,0,0,.6); }
body.theme-palace .letter-card::before, body.theme-palace .letter-card::after { content: ""; position: absolute; left: 0; right: 0; height: 16px; border-radius: 4px; background: linear-gradient(180deg, #8e2430, #c8414c, #8e2430); box-shadow: 0 3px 8px rgba(0,0,0,.4); }
body.theme-palace .letter-card::before { top: 0; } body.theme-palace .letter-card::after { bottom: 0; }
body.theme-matchcat .letter-card { padding-top: 56px; border-radius: 12px; border: 4px solid #ffd166; background: linear-gradient(180deg, #3a1d3e, #241526); box-shadow: 0 0 0 5px #b01e31, 0 24px 80px rgba(0,0,0,.6); }
body.theme-matchcat .letter-card::before { content: "福"; position: absolute; left: 50%; top: 6px; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; background: #ffd166; color: #8e1b22; display: grid; place-items: center; font-size: 24px; border: 3px solid #b01e31; }
@media (prefers-reduced-motion: reduce) { .lx-shell, .lx-arrow, .lx-r, .lx-env .seal { animation: none !important; } }
