/* Hướng dẫn cài TestFlight: sân khấu vuốt, iPhone nghiêng 3D, ngón tay bấm mẫu. */
.tai-app { padding: 40px 16px 8px; text-align: center; background: #fff; scroll-margin-top: 64px; }
.tai-app__dan { margin: 6px 0 16px; color: #625868; }
[data-cai-dat] { margin: 16px auto 0; max-width: 960px; width: 100%; text-align: left; }
/* Trang Tải và cài đặt là lưới 12 cột: hướng dẫn chiếm trọn hàng */
.cai > [data-cai-dat] { grid-column: 1 / -1; margin: 0 auto; }
.cd { position: relative; height: min(680px, calc(100vh - 72px)); min-height: 520px; overflow: hidden; border-radius: 20px; background: #FBE4EA; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; cursor: grab; color: #2B2230; font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.cd__nen { position: absolute; inset: -6%; background: url(/gioi-thieu/cau-chuyen/anh/ngang/pho.webp) center/cover; filter: blur(5px) saturate(.9); opacity: .55; will-change: transform; }
.cd__mo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,247,249,.55), rgba(251,228,234,.2) 45%, rgba(255,247,249,.9)); }
.cd__dom { position: absolute; border-radius: 50%; background: rgba(255,255,255,.55); will-change: transform; }
.cd__khung { position: absolute; left: 0; right: 0; top: 14px; bottom: 138px; perspective: 1100px; display: grid; place-items: center; }
.cd__may { position: relative; height: 100%; aspect-ratio: 9 / 19; max-width: 72%; padding: 7px; border-radius: 34px; background: #17141a; box-shadow: 0 0 0 1.5px #55505a, 0 26px 50px -14px rgba(43,34,48,.6); will-change: transform; }
.cd__man { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 27px; background: #fff; }
.cd__dai { position: absolute; inset: 0; display: flex; will-change: transform; }
.cd__tho { position: relative; flex: 0 0 100%; height: 100%; padding: 34px 14px 14px; font-size: 12px; display: flex; flex-direction: column; line-height: 1.35; }
.cd__tho.tho-anh { padding: 0; display: block; }
.cd__tho::after { content: ''; margin-top: auto; height: 96px; border-radius: 12px; background: repeating-linear-gradient(180deg, #F0EEF3 0 12px, transparent 12px 26px); }
.cd__tho.tho-anh::after { display: none; }
.cd__tho > .cd__hang, .cd__tho > .cd__giua { margin-top: 16%; }
.cd__dao { position: absolute; z-index: 3; left: 50%; top: 7px; width: 34%; height: 15px; margin-left: -17%; border-radius: 10px; background: #17141a; }
.cd__icon { display: block; flex: none; border-radius: 22%; }
.cd__tf { flex: none; width: 60px; height: 60px; border-radius: 22%; background: linear-gradient(160deg, #5EC8FA, #1C7CF0); display: grid; place-items: center; }
.cd__hang { display: flex; align-items: center; gap: 10px; }
.cd__hang b { display: block; font-size: 13px; }
.cd__hang span { color: #7a7480; }
.cd__hang .cd__ios { color: #0A6CFF; margin-top: 6px; }
.cd__hang .cd__ios.dac { color: #fff; }
.cd__ios { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 0 14px; border-radius: 999px; background: #E9EEF8; color: #0A6CFF; font-weight: 700; font-size: 11px; white-space: nowrap; }
.cd__ios.dac { background: #0A6CFF; color: #fff; }
.cd__ios.rong { display: flex; margin-top: 12px; min-height: 34px; }
.cd__tieu { margin: 2px 0 10px; font-size: 18px; font-weight: 700; }
.cd__dia { display: block; margin-bottom: 12px; padding: 5px 8px; border-radius: 9px; background: #EFEFF3; color: #625868; text-align: center; font-size: 10px; }
.cd__giua { text-align: center; }
.cd__giua img { width: 62px; height: 62px; margin: 18px auto 10px; border-radius: 22%; }
.cd__giua b { display: block; font-size: 14px; }
.cd__giua p { margin: 6px 0 0; color: #625868; }
.cd__anh { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cd__hop { position: absolute; left: 10%; right: 10%; top: 34%; border-radius: 14px; overflow: hidden; background: rgba(245,245,247,.97); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.cd__hop p { margin: 0; padding: 12px 10px; }
.cd__hop div { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #d6d6db; color: #0A6CFF; }
.cd__hop span { padding: 9px 0; }
.cd__hop span + span { border-left: 1px solid #d6d6db; font-weight: 700; }
.cd__tho.dang .cd__dich { animation: cd-sang 2.4s ease-in-out infinite; }
.cd__ngon { position: absolute; z-index: 4; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(108,92,231,.34); box-shadow: 0 0 0 2px rgba(255,255,255,.95), 0 3px 10px rgba(43,34,48,.4); pointer-events: none; opacity: 0; transition: left 420ms cubic-bezier(.22,1,.36,1), top 420ms cubic-bezier(.22,1,.36,1); }
.cd.chay .cd__ngon { animation: cd-bam 2.4s ease-in-out infinite; }
@keyframes cd-bam { 0%, 12% { opacity: 0; transform: translateY(26px) scale(1.15); } 34% { opacity: 1; transform: none; } 46% { opacity: 1; transform: scale(.72); } 58% { opacity: 1; transform: none; } 82%, 100% { opacity: 0; transform: translateY(16px); } }
@keyframes cd-sang { 0%, 38% { box-shadow: 0 0 0 0 rgba(108,92,231,0); } 48% { box-shadow: 0 0 0 7px rgba(108,92,231,.34); } 70%, 100% { box-shadow: 0 0 0 12px rgba(108,92,231,0); } }
.cd__chu { position: absolute; z-index: 5; left: 10px; right: 10px; bottom: 10px; min-height: 122px; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.95); text-align: center; }
.cd__so { display: block; color: #A83A5C; font-size: .75rem; font-weight: 600; }
.cd .cd__chu h3 { margin: 0; font: 500 1.0625rem/1.25 'Lora', Georgia, serif; letter-spacing: 0; text-transform: none; }
.cd .cd__chu p { max-width: none; margin: 2px 0 0; color: #625868; font-size: .8125rem; line-height: 1.35; }
.cd__len { display: inline-flex; align-items: center; min-height: 36px; margin-top: 4px; padding: 0 16px; border-radius: 999px; background: #6C5CE7; color: #fff; font-weight: 600; font-size: .8125rem; text-decoration: none; }
.cd__len[hidden] { display: none; }
.cd__mui { position: absolute; z-index: 6; top: calc(50% - 69px); width: 40px; height: 56px; margin-top: -28px; padding: 0; border: 0; background: none; color: #6C5CE7; cursor: pointer; }
.cd__mui svg { display: block; width: 26px; height: 26px; margin: auto; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 3px #fff); }
.cd__mui[disabled] { visibility: hidden; }
.cd__lui { left: 2px; }
.cd__toi { right: 2px; }
.cd__toi svg { animation: cd-chop 1.3s ease-in-out infinite; }
@keyframes cd-chop { 0%, 100% { opacity: 1; transform: translateX(2px); } 50% { opacity: .22; transform: translateX(-1px); } }
[data-cai-dat] .cd__thu { max-width: none; margin: 8px 0 0; font-size: .8125rem; text-align: center; opacity: .75; }
@media (prefers-reduced-motion: reduce) { .cd.chay .cd__ngon { animation: none; opacity: 1; } .cd__tho.dang .cd__dich, .cd__toi svg { animation: none; } }
