/* =====================================================================
   59 - เปิดเซิร์ฟ: full-screen countdown (pages/launch.blade.php, js/ui/launch.js)
   Built on the cinematic header (58-cine.css): one huge worn line of digits + the progress bar to the opening.
   ===================================================================== */

.launch { min-height: 100vh; align-items: center; padding-bottom: 90px; text-align: center; }
.launch-inner { display: flex; flex-direction: column; align-items: center; }
.launch-preview { margin: 0 0 18px; padding: 8px 16px; background: rgba(255, 203, 71, .14); border: 1px solid rgba(255, 203, 71, .5); color: var(--warn); font-size: .88rem; }
.launch-logo { width: clamp(280px, 36vw, 480px); margin-bottom: 18px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .8)); }
.launch .cine-eyebrow { padding-left: 14px; background: linear-gradient(90deg, rgba(7, 7, 8, 0), rgba(7, 7, 8, .75), rgba(7, 7, 8, 0)); }
.launch-title { font-size: clamp(2.8rem, 8.5vw, 7rem); }
.launch-date { margin: 14px 0 34px; color: rgba(241, 238, 232, .85); font-size: clamp(.95rem, 1.6vw, 1.15rem); text-shadow: 0 2px 12px rgba(0, 0, 0, .9); }
.launch-date b { color: #fff; font-weight: 700; }
.launch-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.launch-live {
    margin: 6px 0 0; padding: 14px 28px; background: rgba(61, 220, 151, .14); border: 1px solid rgba(61, 220, 151, .55);
    color: #3ddc97; font: 400 clamp(1.6rem, 4vw, 2.6rem)/1.1 var(--font-display); letter-spacing: .04em; box-shadow: 0 0 40px rgba(61, 220, 151, .25);
}
.lc { width: 100%; display: flex; justify-content: center; }
.lc[hidden], .launch-live[hidden] { display: none; }

/* the digits */
.lc-cine { display: flex; flex-direction: column; align-items: center; width: 100%; }
.lc-cine-digits { display: flex; align-items: flex-start; gap: clamp(4px, 1.2vw, 14px); }
.lc-cine-unit b { position: relative; display: block; font: 400 clamp(3.6rem, 12vw, 10rem)/.85 var(--font-display); font-variant-numeric: tabular-nums; }
.lc-cine-unit b > span {
    color: transparent; background: var(--tex-grunge) center / 300px, linear-gradient(180deg, #fff, #d9d2c6 60%, #9d9385);
    background-blend-mode: multiply; -webkit-background-clip: text; background-clip: text;
    filter: drop-shadow(0 0 30px rgba(220, 31, 41, .55));
}
.lc-cine-unit b::before, .lc-cine-unit b::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.lc-cine-unit b::before { color: var(--accent-hot); }
.lc-cine-unit b::after { color: #4af2ff; mix-blend-mode: screen; }
.lc-cine-unit small { display: block; margin-top: 6px; font-size: clamp(.72rem, 1.2vw, .95rem); color: var(--accent-hot); font-weight: 700; letter-spacing: .1em; }
.lc-cine-digits > i { font: 400 clamp(2.6rem, 8vw, 7rem)/.85 var(--font-display); font-style: normal; color: rgba(220, 31, 41, .8); }

/* the progress bar to the opening */
.lc-progress { width: min(640px, 100%); margin-top: 30px; }
.lc-progress-top { display: flex; justify-content: space-between; font-size: .7rem; font-weight: 700; color: rgba(241, 238, 232, .7); }
.lc-progress-top b { color: #fff; }
.lc-progress-bar { position: relative; display: block; height: 6px; margin-top: 8px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.lc-progress-bar > span { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--accent-dark), var(--accent-hot), #ff7a2e); box-shadow: 0 0 14px rgba(220, 31, 41, .7); }

@media (max-width: 575.98px) {
    .lc-cine-digits > i { display: none; }
    .lc-cine-digits { gap: 10px; }
    .launch-cta .btn { flex: 1 1 100%; }
}

/* =====================================================================
   Motion (nothing for reduced motion)
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
    .lc, .launch-live { animation: cine-up 1s .7s var(--ease-out) backwards; }
    .launch-logo { animation: cine-up .9s .1s var(--ease-out) backwards; }
    .launch-cta { animation: cine-up .9s 1s var(--ease-out) backwards; }
    .lc-cine-digits > i { animation: cine-blink 1s steps(1) infinite; }
    .lc-cine-unit:nth-child(7) b::before { animation: lc-glitch-a 1s steps(2) infinite; }
    .lc-cine-unit:nth-child(7) b::after { animation: lc-glitch-b 1s steps(2) infinite; }
    .lc-progress-bar > span::after { /* a light running along the bar */
        content: ''; position: absolute; top: 0; bottom: 0; width: 80px; right: 0;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: lc-run 2.2s ease-in-out infinite;
    }
    .launch.is-final .lc { animation: lc-shake .5s ease-in-out infinite; }
    .launch-live { animation: cine-up .8s var(--ease-out) backwards, lc-live 2s ease-in-out infinite .8s; }
}
@keyframes lc-glitch-a { 0%, 80%, 100% { opacity: 0; } 85% { opacity: .9; clip-path: inset(15% 0 55% 0); transform: translate(-5px, 0); } 92% { opacity: .9; clip-path: inset(60% 0 10% 0); transform: translate(4px, 0); } }
@keyframes lc-glitch-b { 0%, 80%, 100% { opacity: 0; } 86% { opacity: .8; clip-path: inset(45% 0 30% 0); transform: translate(5px, 0); } 93% { opacity: .8; clip-path: inset(5% 0 70% 0); transform: translate(-4px, 0); } }
@keyframes lc-shake { 0%, 100% { transform: none; } 25% { transform: translate(-2px, 1px); } 75% { transform: translate(2px, -1px); } }
@keyframes lc-run { from { transform: translateX(-640px); opacity: 0; } 30% { opacity: 1; } to { transform: translateX(80px); opacity: 0; } }
@keyframes lc-live { 50% { box-shadow: 0 0 70px rgba(61, 220, 151, .45); } }

/* the admin area's extra line under the date */
.launch-note { margin: -22px 0 30px; padding: 6px 16px; background: rgba(7, 7, 8, .6); border-left: 3px solid var(--accent-hot); color: #fff; font-size: clamp(.9rem, 1.5vw, 1.05rem); }
