/**
 * Interactive Graduation Experience - Apple Design System
 * Foundations: Materials, Depth, Optical Typography, Restraint, Delight
 */

:root {
    /* Color Palette */
    --bg-dark: #050508;
    --bg-surface: rgba(255, 255, 255, 0.05);
    --bg-surface-elevated: rgba(255, 255, 255, 0.09);
    --bg-surface-active: rgba(255, 255, 255, 0.14);
    
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --text-tertiary: #515154;
    
    --accent-gold: #ffd166;
    --accent-amber: #ffbe0b;
    --accent-crimson: #c1121f;
    --accent-emerald: #06d6a0;

    /* Border & Glass */
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-light: rgba(255, 255, 255, 0.22);
    --glass-blur: blur(24px) saturate(180%);

    /* Shadows */
    --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-depth: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.08);
    --shadow-floating: 0 30px 60px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 50px rgba(255, 209, 102, 0.25);

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 50% 30%, #151624 0%, #08080c 60%, #030305 100%);
}

/* Canvas Partikel */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* Custom Minimal Cursor (Desktop) */
#custom-cursor {
    position: fixed;
    top: -12px;
    left: -12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    pointer-events: none;
    z-index: 10000;
    transform: translate3d(-100px, -100px, 0);
    transition: width 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
                height 0.2s cubic-bezier(0.2, 0.8, 0.2, 1),
                background-color 0.2s ease,
                border-color 0.2s ease;
}

#custom-cursor.cursor-hover {
    width: 44px;
    height: 44px;
    top: -22px;
    left: -22px;
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: invert(10%);
}

@media (pointer: coarse) {
    #custom-cursor {
        display: none !important;
    }
}

/* Floating Sound Toggle */
.sound-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--shadow-subtle);
}

.sound-toggle:hover {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border-color: var(--glass-border-light);
}

.sound-toggle:active {
    transform: scale(0.96);
}

.sound-toggle.sound-active {
    color: var(--accent-gold);
    border-color: rgba(255, 209, 102, 0.35);
}

/* Main Viewport Container */
#app-viewport {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Stages */
.stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.stage.active-stage {
    display: flex;
    pointer-events: auto;
}

.stage.stage-fade-in {
    opacity: 1;
}

/* Buttons System (Apple Taktil) */
.btn-primary {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 32px;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 100%);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: var(--shadow-subtle), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1),
                background 0.2s ease,
                box-shadow 0.2s ease,
                border-color 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.12) 100%);
    box-shadow: var(--shadow-depth), 0 0 20px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-primary:active,
.btn-primary.btn-pressed {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.1);
}

.btn-accent {
    background: linear-gradient(135deg, #ffd166 0%, #ffbe0b 100%);
    color: #1a1500;
    border: none;
    box-shadow: 0 10px 25px -5px rgba(255, 190, 11, 0.45);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #ffe082 0%, #ffd166 100%);
    box-shadow: 0 15px 35px -5px rgba(255, 190, 11, 0.6);
}

.btn-accent:active {
    transform: scale(0.96);
}

/* ========================================================
   STAGE 1: INTRO TEASER
   ======================================================== */
.intro-content {
    text-align: center;
    max-width: 480px;
}

.intro-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--accent-gold);
    margin-bottom: 24px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.intro-title {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #ffffff 40%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 36px;
    line-height: 1.4;
}

/* ========================================================
   STAGE 2: HERO 3D ENVELOPE (Royal Luxury Stationery)
   ======================================================== */
.envelope-scene {
    position: relative;
    perspective: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.envelope-ambient-glow {
    position: absolute;
    width: 420px;
    height: 320px;
    background: radial-gradient(ellipse at center, rgba(255, 209, 102, 0.18) 0%, rgba(255, 190, 11, 0.06) 50%, transparent 75%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
    animation: ambientFloat 6s ease-in-out infinite alternate;
}

@keyframes ambientFloat {
    0% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}

.envelope-wrapper {
    position: relative;
    width: 330px;
    height: 230px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation: envelopeFloat 4s ease-in-out infinite;
    z-index: 2;
}

.envelope-wrapper:hover {
    transform: translateY(-4px) rotateX(4deg);
}

.envelope-wrapper.is-pressed {
    transform: scale(0.96) translateY(4px);
}

/* Kartu di Dalam Amplop (Parchment Mewah Berbingkai Emas) */
.envelope-card {
    position: absolute;
    top: 35px;
    left: 20px;
    width: 290px;
    height: 195px;
    background: linear-gradient(135deg, #fffdfa 0%, #f7f3ea 100%);
    color: #1a1714;
    border-radius: 12px;
    padding: 16px 14px 14px 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), inset 0 0 0 1.5px rgba(212, 175, 55, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
    opacity: 0;
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.4s ease, box-shadow 0.5s ease;
    overflow: hidden;
}

.card-filigree-border {
    position: absolute;
    inset: 5px;
    border: 1px dashed rgba(184, 140, 36, 0.45);
    border-radius: 8px;
    pointer-events: none;
}

.envelope-card-header {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #966f1e;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.envelope-card-sparkle {
    font-size: 22px;
    margin-bottom: 2px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.envelope-card-text {
    font-size: 13px;
    font-weight: 600;
    color: #2b251e;
    line-height: 1.35;
    margin-bottom: 10px;
    max-width: 250px;
}

.letter-action-btn {
    padding: 7px 18px;
    font-size: 12.5px;
    font-weight: 700;
    color: #1b1509;
    background: linear-gradient(135deg, #ffd166 0%, #f4a261 100%);
    border: 1px solid rgba(212, 175, 55, 0.9);
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(244, 162, 97, 0.4);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    animation: pulseLetterBtn 2s infinite ease-in-out;
}

.letter-action-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(244, 162, 97, 0.6);
    background: linear-gradient(135deg, #ffe082 0%, #f9a03f 100%);
}

.letter-action-btn:active {
    transform: scale(0.96);
}

@keyframes pulseLetterBtn {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(244, 162, 97, 0.35), 0 0 0 0 rgba(255, 209, 102, 0.55);
    }
    50% {
        box-shadow: 0 6px 16px rgba(244, 162, 97, 0.45), 0 0 0 6px rgba(255, 209, 102, 0);
    }
}

.envelope-card-watermark {
    position: absolute;
    bottom: 5px;
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: rgba(184, 140, 36, 0.35);
    text-transform: uppercase;
}

/* Bagian Belakang Amplop (Royal Midnight Satin) */
.envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(150deg, #181d2f 0%, #0d101a 100%);
    border-radius: var(--radius-sm);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 
                0 0 30px rgba(255, 209, 102, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.25);
    z-index: 1;
}

/* Kantong Saku Amplop dengan Lis Emas */
.envelope-pocket {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.pocket-left, .pocket-right, .pocket-bottom {
    position: absolute;
    bottom: 0;
}

.pocket-left {
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 230px 0 0 165px;
    border-color: transparent transparent transparent #151928;
    border-bottom-left-radius: var(--radius-sm);
    filter: drop-shadow(2px -2px 5px rgba(0, 0, 0, 0.3));
}

.pocket-right {
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 230px 165px 0 0;
    border-color: transparent #151928 transparent transparent;
    border-bottom-right-radius: var(--radius-sm);
    filter: drop-shadow(-2px -2px 5px rgba(0, 0, 0, 0.3));
}

.pocket-bottom {
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 165px 132px 165px;
    border-color: transparent transparent #1c2236 transparent;
    border-bottom-left-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
    filter: drop-shadow(0 -4px 10px rgba(0, 0, 0, 0.4));
}

.pocket-gold-trim {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.6) 50%, transparent 100%);
    z-index: 4;
}

/* Pita Belly Band Melingkari Amplop */
.envelope-belly-band {
    position: absolute;
    top: 52%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 38px;
    background: linear-gradient(90deg, 
        rgba(15, 18, 30, 0.95) 0%, 
        rgba(30, 36, 58, 0.98) 25%, 
        rgba(255, 209, 102, 0.25) 50%, 
        rgba(30, 36, 58, 0.98) 75%, 
        rgba(15, 18, 30, 0.95) 100%
    );
    border-top: 1px solid rgba(255, 209, 102, 0.65);
    border-bottom: 1px solid rgba(255, 209, 102, 0.65);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 0 8px rgba(255, 209, 102, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.belly-band-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: #ffe082;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 209, 102, 0.6);
}

/* Lipatan Flap Atas (3D Foldable dengan Gold Trim) */
.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 140px 165px 0 165px;
    border-color: #242b44 transparent transparent transparent;
    transform-origin: top center;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.2s ease;
    z-index: 5;
    border-top-left-radius: var(--radius-sm);
    border-top-right-radius: var(--radius-sm);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.flap-gold-edge {
    position: absolute;
    top: -140px;
    left: -165px;
    width: 330px;
    height: 140px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    border-bottom: 2px solid rgba(255, 215, 0, 0.7);
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(255, 209, 102, 0.5));
}

/* Segel Lilin Kerajaan (Royal Crimson Wax Seal) */
.wax-seal {
    position: absolute;
    top: 105px;
    left: 50%;
    transform: translateX(-50%);
    width: 58px;
    height: 58px;
    background: radial-gradient(circle at 35% 35%, #e63946 0%, #b51726 65%, #6a040f 100%);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65), 
                inset 0 2px 4px rgba(255, 255, 255, 0.5), 
                inset 0 -3px 6px rgba(0, 0, 0, 0.4),
                0 0 0 2.5px rgba(255, 209, 102, 0.6);
    z-index: 6;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease;
}

.wax-seal:hover {
    transform: translateX(-50%) scale(1.08);
}

.seal-outer-scallop {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 209, 102, 0.4);
    animation: rotateRays 30s linear infinite;
    pointer-events: none;
}

.seal-inner {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #8f0e1c 0%, #54030d 100%);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.7), 0 1px 1px rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 209, 102, 0.4);
}

.seal-emblem {
    font-size: 20px;
    color: #ffd166;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.seal-specular {
    position: absolute;
    top: 6px;
    left: 12px;
    width: 14px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    filter: blur(1px);
    transform: rotate(-30deg);
    pointer-events: none;
}

.seal-glow {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 209, 102, 0.5) 0%, transparent 70%);
    animation: sealGlowPulse 2.5s infinite;
    pointer-events: none;
}

.wax-seal.seal-cracked {
    transform: translateX(-50%) scale(1.4) rotate(20deg);
    opacity: 0;
}

/* Prompt Bawah Amplop */
.envelope-prompt {
    margin-top: 36px;
    text-align: center;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.envelope-prompt-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

/* Floating animation */
@keyframes envelopeFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* State Membuka */
.envelope-wrapper.flap-open .envelope-flap {
    transform: rotateX(-180deg);
    z-index: 1;
}

.envelope-wrapper.flap-open .envelope-belly-band {
    opacity: 0;
    transform: translateY(-50%) scaleX(0.9);
}

.envelope-wrapper.card-rising .envelope-card {
    opacity: 1;
    z-index: 10;
    transform: translateY(-145px) scale(1.04);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 209, 102, 0.4);
}

.envelope-wrapper.card-presented .envelope-card {
    opacity: 1;
    z-index: 10;
    transform: translateY(-150px) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 209, 102, 0.5);
    cursor: pointer;
    animation: cardPresentedFloat 3.5s ease-in-out infinite;
}

@keyframes cardPresentedFloat {
    0%, 100% {
        transform: translateY(-150px) scale(1.05);
    }
    50% {
        transform: translateY(-155px) scale(1.05);
    }
}

.envelope-wrapper.card-opening .envelope-card {
    transform: translateY(-170px) scale(1.15);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.32s ease;
}

/* ========================================================
   STAGE 3: PESAN LUCU (MESSAGES)
   ======================================================== */
.messages-card-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-floating);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.msg-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.msg-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text-primary);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.28s ease;
}

.msg-body {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 32px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.28s ease;
}

.quote-card {
    margin-top: 14px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--accent-gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-primary);
    font-size: 15px;
}

.accent-callout {
    margin-top: 12px;
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-amber);
    letter-spacing: -0.01em;
}

.journey-recap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-primary);
}

.grand-finally {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-top: 12px;
}

/* Transisi Teks Antar Pesan */
.text-exit {
    opacity: 0;
    transform: translateY(-12px);
}

.text-enter {
    opacity: 1;
    transform: translateY(0);
}

.btn-exit {
    opacity: 0;
    transform: scale(0.92);
}

.btn-enter {
    opacity: 1;
    transform: scale(1);
}

/* ========================================================
   STAGE 4: KINETIC COUNTDOWN
   ======================================================== */
.countdown-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.countdown-ready {
    font-size: 16px;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 600;
}

.countdown-num {
    font-size: clamp(6rem, 18vw, 11rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.6);
    filter: blur(12px);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.countdown-num.kinetic-spring {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
}

.countdown-num.glow {
    color: var(--accent-gold);
    text-shadow: 0 0 50px rgba(255, 209, 102, 0.7);
}

/* ========================================================
   STAGE 5: 3D INTERACTIVE PHOTO STACK & JOURNEY
   ======================================================== */
.gallery-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1000px;
}

.photo-stack {
    position: relative;
    width: 310px;
    height: 410px;
    margin-bottom: 24px;
    touch-action: none;
    transform-style: preserve-3d;
}

.photo-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: grab;
    will-change: transform, opacity;
    box-shadow: var(--shadow-depth);
    transform-origin: center bottom;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.photo-card.is-dragging {
    cursor: grabbing;
    transition: none !important;
}

/* Scatter Opening Banner */
.scatter-banner {
    position: absolute;
    top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 209, 102, 0.15);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 209, 102, 0.4);
    border-radius: var(--radius-full);
    color: var(--accent-gold);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 209, 102, 0.25);
    opacity: 0;
    transform: translateY(-12px) scale(0.95);
    transition: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 60;
    pointer-events: none;
}

.scatter-banner.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scatter-icon {
    font-size: 16px;
    animation: spinGlow 2s ease-in-out infinite;
}

@keyframes spinGlow {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.25) rotate(15deg); }
}

.photo-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #111218;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.photo-card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
}

/* Holographic Shimmer Foil */
.photo-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.28) 48%, rgba(255, 215, 0, 0.35) 52%, transparent 65%);
    background-size: 250% 250%;
    opacity: 0.6;
    mix-blend-mode: overlay;
    pointer-events: none;
    animation: shimmerSweep 4.5s ease-in-out infinite;
}

@keyframes shimmerSweep {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
}

.photo-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.photo-frame-decor {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    pointer-events: none;
    z-index: 5;
}

/* Captions & Timeline */
.photo-caption-box {
    text-align: center;
    margin-bottom: 20px;
    min-height: 64px;
}

.photo-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.photo-caption {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: 320px;
    margin: 0 auto;
}

/* Timeline Dots */
.timeline-dots-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
}

.timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.timeline-dot.active {
    width: 28px;
    border-radius: 8px;
    background: var(--accent-gold);
    box-shadow: 0 0 10px rgba(255, 209, 102, 0.4);
}

/* Gallery Navigation Actions */
.gallery-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gallery-arrow-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.15s ease, background 0.2s ease;
}

.gallery-arrow-btn:active {
    transform: scale(0.92);
}

#gallery-finish-btn {
    display: none;
}

#gallery-finish-btn.visible {
    display: inline-flex;
}

/* ========================================================
   STAGE 6: EMOTIONAL PAUSE
   ======================================================== */
#stage-pause {
    background: #000000;
}

.pause-box {
    text-align: center;
    max-width: 500px;
}

.pause-text-line {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.95);
    filter: blur(8px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
                filter 0.6s ease;
}

.pause-text-line.fade-in {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
}

.pause-text-line.fade-out {
    opacity: 0;
    transform: scale(1.05);
    filter: blur(10px);
}

.wait-highlight {
    color: var(--accent-gold);
    text-shadow: 0 0 30px rgba(255, 209, 102, 0.6);
}

/* ========================================================
   STAGE 7: CLIMAX & FINAL CONGRATULATIONS REVEAL
   ======================================================== */
.climax-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 520px;
    width: 100%;
}

/* Background Ambient Sparks */
.ambient-sparks-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.ambient-emoji {
    position: absolute;
    font-size: 20px;
    opacity: 0.25;
    filter: blur(1px);
    animation: floatEmoji 8s ease-in-out infinite;
}

.ambient-emoji.e1 { top: 12%; left: 10%; animation-delay: 0s; font-size: 24px; }
.ambient-emoji.e2 { top: 25%; right: 12%; animation-delay: 2s; font-size: 18px; }
.ambient-emoji.e3 { bottom: 20%; left: 8%; animation-delay: 4s; font-size: 22px; }
.ambient-emoji.e4 { bottom: 15%; right: 10%; animation-delay: 1.5s; font-size: 26px; }
.ambient-emoji.e5 { top: 75%; left: 45%; animation-delay: 3.5s; font-size: 20px; }

@keyframes floatEmoji {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.2; }
    50% { transform: translateY(-16px) rotate(15deg); opacity: 0.45; }
}

/* ========================================================
   STAGE 7: CLIMAX & FINAL CONGRATULATIONS REVEAL (Royal Digital Diploma)
   ======================================================== */
.climax-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 560px;
    width: 100%;
    z-index: 10;
    margin: 0 auto;
}

/* Background Ambient Sparks */
.ambient-sparks-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.ambient-emoji {
    position: absolute;
    font-size: 20px;
    opacity: 0.25;
    filter: blur(1px);
    animation: floatEmoji 8s ease-in-out infinite;
}

.ambient-emoji.e1 { top: 12%; left: 10%; animation-delay: 0s; font-size: 24px; }
.ambient-emoji.e2 { top: 25%; right: 12%; animation-delay: 2s; font-size: 18px; }
.ambient-emoji.e3 { bottom: 20%; left: 8%; animation-delay: 4s; font-size: 22px; }
.ambient-emoji.e4 { bottom: 15%; right: 10%; animation-delay: 1.5s; font-size: 26px; }
.ambient-emoji.e5 { top: 75%; left: 45%; animation-delay: 3.5s; font-size: 20px; }

@keyframes floatEmoji {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.2; }
    50% { transform: translateY(-16px) rotate(15deg); opacity: 0.45; }
}

/* Scroll & Viewport Handling for Climax Stage */
#stage-climax {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}

#stage-climax .climax-container {
    margin: auto;
}

/* Royal Digital Award Certificate Card */
.climax-award-card {
    position: relative;
    width: 100%;
    background: radial-gradient(130% 120% at 50% 0%, rgba(22, 27, 46, 0.95) 0%, rgba(10, 12, 22, 0.98) 100%);
    backdrop-filter: blur(28px) saturate(190%);
    border: 1.5px solid rgba(255, 209, 102, 0.55);
    border-radius: var(--radius-lg);
    padding: 26px 22px 24px 22px;
    box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.85), 
                0 0 50px rgba(255, 209, 102, 0.18),
                inset 0 1px 1px rgba(255, 255, 255, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* Inner Dotted Decorative Border */
.card-inner-border {
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(255, 209, 102, 0.35);
    border-radius: calc(var(--radius-lg) - 8px);
    pointer-events: none;
}

/* Filigree Gold Corner Accents */
.card-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: rgba(255, 209, 102, 0.9);
    border-style: solid;
    pointer-events: none;
}

.card-corner.top-left { top: 14px; left: 14px; border-width: 2.5px 0 0 2.5px; }
.card-corner.top-right { top: 14px; right: 14px; border-width: 2.5px 2.5px 0 0; }
.card-corner.bottom-left { bottom: 14px; left: 14px; border-width: 0 0 2.5px 2.5px; }
.card-corner.bottom-right { bottom: 14px; right: 14px; border-width: 0 2.5px 2.5px 0; }

/* Certificate Header Ribbon */
.climax-cert-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #ffd166;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding: 4px 18px;
    background: rgba(255, 209, 102, 0.1);
    border: 1px solid rgba(255, 209, 102, 0.35);
    border-radius: var(--radius-full);
    box-shadow: 0 0 14px rgba(255, 209, 102, 0.2);
}

.cert-gold-star {
    color: #ffbe0b;
    font-size: 12px;
}

/* Portrait Frame (Clean, Tanpa Tulisan Menutupi Foto) */
.climax-portrait-frame {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 12px;
}

.portrait-glow-aura {
    position: absolute;
    inset: -16px;
    background: radial-gradient(circle, rgba(255, 209, 102, 0.55) 0%, rgba(255, 180, 0, 0.18) 55%, transparent 75%);
    border-radius: 50%;
    filter: blur(18px);
    animation: pulseAura 3s ease-in-out infinite;
    pointer-events: none;
}

/* Smooth rotating light halo */
.portrait-light-rays {
    position: absolute;
    inset: -24px;
    background: radial-gradient(circle, rgba(255, 209, 102, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(10px);
}

.portrait-ring-outer {
    position: absolute;
    inset: -5px;
    border: 1.5px dashed rgba(255, 209, 102, 0.55);
    border-radius: 50%;
    animation: rotateRays 35s linear infinite;
    pointer-events: none;
}

.portrait-gold-rim {
    position: absolute;
    inset: -2px;
    border: 2px solid rgba(255, 209, 102, 0.85);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 209, 102, 0.5);
    pointer-events: none;
    z-index: 3;
}

.portrait-img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3.5px solid #ffd166;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

@keyframes rotateRays {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.climax-hat {
    font-size: 34px;
    margin-bottom: 2px;
    display: block;
    animation: bounceHat 2.4s ease-in-out infinite;
}

/* Heading: Guaranteed Single-Row Typography (No awkward wrapping!) */
.climax-heading-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 4px;
}

.climax-heading {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: clamp(1.4rem, 4vw, 2.5rem) !important;
    font-weight: 900 !important;
    letter-spacing: 0.05em !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #ffffff 15%, #ffe699 45%, #ffd166 70%, #d4af37 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 20px rgba(255, 209, 102, 0.45)) !important;
}

/* Letter Stagger Animation */
.stagger-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(14px) scale(0.85);
    animation: letterReveal 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes letterReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.climax-subheading {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.climax-name {
    font-size: clamp(1.6rem, 4.2vw, 2.2rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Credentials Metadata Badges */
.climax-meta-pills {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.climax-honor-badge {
    display: inline-block;
    padding: 5px 20px;
    background: linear-gradient(135deg, #ffd166 0%, #ffbe0b 100%);
    color: #1a1500;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(255, 190, 11, 0.45);
}

.climax-degree {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 209, 102, 0.4);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(255, 209, 102, 0.15);
}

.climax-univ {
    font-size: 12.5px;
    color: var(--text-secondary);
}

/* Quote Container */
.climax-quote-container {
    position: relative;
    max-width: 420px;
    margin: 8px auto 10px auto;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--accent-gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    backdrop-filter: blur(10px);
}

.quote-mark-open, .quote-mark-close {
    font-size: 20px;
    color: var(--accent-gold);
    line-height: 0;
    vertical-align: middle;
}

.climax-quote {
    display: inline;
    font-size: 13px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
}

/* Stempel Resmi Digital Emas */
.climax-official-stamp {
    width: 72px;
    height: 72px;
    border: 2px dashed rgba(255, 209, 102, 0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffd166;
    transform: rotate(-8deg);
    margin: 2px auto 12px auto;
    background: rgba(255, 209, 102, 0.06);
    box-shadow: 0 0 14px rgba(255, 209, 102, 0.18);
    pointer-events: none;
}

.stamp-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.stamp-acc {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #ffbe0b;
}

.stamp-title {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #ffffff;
    margin: 1px 0;
}

.stamp-year {
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ffd166;
}

/* Action Buttons */
.climax-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 340px;
}

.btn-whatsapp {
    min-height: 50px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    border: none;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    animation: waPulse 2.5s infinite;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

@keyframes waPulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45); }
    50% { box-shadow: 0 12px 35px rgba(37, 211, 102, 0.75), 0 0 20px rgba(37, 211, 102, 0.45); }
}

.climax-sub-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn-secondary {
    flex: 1;
    min-height: 44px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:active {
    transform: scale(0.95);
}

.btn-confetti {
    color: var(--accent-gold);
    border-color: rgba(255, 209, 102, 0.35);
}

@keyframes sealGlowPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.3; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

@keyframes pulseAura {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes bounceHat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* ========================================================
   8-SECOND AUTO TRANSITION INDICATOR (Stage 7 Climax)
   ======================================================== */
.climax-auto-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 209, 102, 0.08);
    border: 1px solid rgba(255, 209, 102, 0.25);
    padding: 5px 14px;
    border-radius: var(--radius-full);
}

.climax-auto-indicator b {
    color: var(--accent-gold);
}

.btn-skip-hero {
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 0 4px;
}

.btn-skip-hero:hover {
    color: #ffffff;
}

/* ========================================================
   STAGE 8: HERO PHOTO SHOWCASE (Foto Utama Wisudawan)
   ======================================================== */
#stage-hero-photo {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(28px, env(safe-area-inset-bottom));
}

.hero-spotlight {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 209, 102, 0.22) 0%, rgba(255, 190, 11, 0.06) 50%, transparent 75%);
    border-radius: 50%;
    filter: blur(55px);
    pointer-events: none;
    z-index: 1;
}

.hero-showcase-container {
    position: relative;
    max-width: 440px;
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.hero-frame-wrapper {
    position: relative;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 3 / 4;
    margin-bottom: 18px;
}

.hero-frame-glow {
    position: absolute;
    inset: -14px;
    border-radius: 28px;
    background: radial-gradient(circle, rgba(255, 209, 102, 0.45) 0%, transparent 70%);
    filter: blur(22px);
    animation: pulseAura 4s ease-in-out infinite;
    pointer-events: none;
}

.hero-photo-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.95), 
                0 0 35px rgba(255, 209, 102, 0.35), 
                inset 0 0 0 2px rgba(255, 209, 102, 0.85);
    background: #111218;
    border: 2.5px solid rgba(255, 209, 102, 0.75);
}

.hero-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    animation: heroKenBurns 18s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroKenBurns {
    0% { transform: scale(1) translateY(0); }
    100% { transform: scale(1.08) translateY(-10px); }
}

.hero-photo-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, transparent 35%, rgba(255, 255, 255, 0.22) 48%, rgba(255, 209, 102, 0.25) 52%, transparent 65%);
    background-size: 250% 250%;
    pointer-events: none;
    mix-blend-mode: overlay;
    animation: shimmerSweep 5s ease-in-out infinite;
}

.hero-info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
    padding: 0 10px;
}

.hero-badge {
    display: inline-block;
    padding: 4px 18px;
    background: rgba(255, 209, 102, 0.15);
    border: 1px solid rgba(255, 209, 102, 0.45);
    border-radius: var(--radius-full);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--accent-gold);
    margin-bottom: 8px;
    box-shadow: 0 0 12px rgba(255, 209, 102, 0.25);
}

.hero-name {
    font-size: clamp(1.7rem, 4.8vw, 2.3rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero-meta {
    font-size: 13.5px;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 6px;
}

.hero-motto {
    font-size: 13px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.82);
    max-width: 360px;
    line-height: 1.4;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 330px;
}

.hero-sub-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

/* Hide captions on photo gallery (murni foto tanpa tulisan) */
.photo-caption-box,
.scatter-banner {
    display: none !important;
}

/* Climax Sender Text */
.climax-sender-text {
    display: block;
    font-style: normal;
    font-weight: 700;
    color: #ffd166;
    font-size: 13.5px;
    margin-top: 4px;
}

/* Countdown Widget 10 -> 1 Menuju Foto Lucu */
.climax-countdown-widget {
    width: 100%;
    max-width: 320px;
    background: rgba(255, 209, 102, 0.08);
    border: 1px solid rgba(255, 209, 102, 0.35);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    margin: 4px auto 14px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

.countdown-widget-header {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--accent-gold);
    text-transform: uppercase;
}

.cd-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff5252;
    box-shadow: 0 0 8px #ff5252;
    animation: blinkDot 1s infinite alternate;
}

@keyframes blinkDot {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

.countdown-display-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 2px 0 4px 0;
}

.climax-countdown-digit {
    font-size: clamp(2.2rem, 5.5vw, 3rem);
    font-weight: 900;
    line-height: 1;
    color: #ffd166;
    text-shadow: 0 0 20px rgba(255, 209, 102, 0.8), 0 0 40px rgba(255, 107, 107, 0.5);
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.climax-countdown-digit.tick-pulse {
    animation: tickBounce 0.3s ease-out;
}

@keyframes tickBounce {
    0% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.countdown-unit-text {
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.countdown-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 99px;
    overflow: hidden;
}

.countdown-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ffd166 0%, #ff5252 100%);
    border-radius: 99px;
    transition: width 0.95s linear;
}

/* Stage 8 Hero Title: Selamat ya dik */
.hero-title-badge {
    text-align: center;
    margin-bottom: 12px;
}

.hero-main-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #ffd166;
    text-shadow: 0 4px 20px rgba(255, 209, 102, 0.4), 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   DELUXE PROFESSIONAL ANIMATIONS & INTERACTIVE 3D SYSTEM
   ========================================================================== */

/* 1. Interactive 3D Perspective Tilt & Specular Light System */
.card-tilt-interactive {
    transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
    transform-style: preserve-3d;
    will-change: transform;
    position: relative;
}

.card-tilt-interactive:hover {
    box-shadow: 0 45px 95px -15px rgba(0, 0, 0, 0.92), 
                0 0 60px rgba(255, 209, 102, 0.32),
                inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
}

.specular-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle 380px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.22), rgba(255, 209, 102, 0.1) 35%, transparent 75%);
    opacity: 0;
    transition: opacity 0.35s ease;
    mix-blend-mode: screen;
    z-index: 6;
}

.card-tilt-interactive:hover .specular-shine,
.card-tilt-interactive:active .specular-shine {
    opacity: 1;
}

/* 2. Tactile Button Ripples */
button, .intro-btn, .letter-action-btn, .climax-btn {
    position: relative;
    overflow: hidden;
}

.btn-ripple-wave {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 209, 102, 0.35) 45%, transparent 75%);
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%) scale(0);
    animation: rippleExpand 0.65s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
    pointer-events: none;
    z-index: 5;
}

@keyframes rippleExpand {
    to {
        transform: translate(-50%, -50%) scale(24);
        opacity: 0;
    }
}

/* 3. Hero Replay Button (Single Centered Prominent Showcase Action) */
.hero-replay-prominent {
    width: 100%;
    max-width: 320px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    white-space: nowrap;
    background: linear-gradient(135deg, #ffbe0b 0%, #ffd166 45%, #ffbe0b 100%);
    background-size: 200% auto;
    color: #0c0d14 !important;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 30px rgba(255, 190, 11, 0.38), 0 0 25px rgba(255, 209, 102, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.65);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.hero-replay-prominent:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 45px rgba(255, 190, 11, 0.55), 0 0 35px rgba(255, 209, 102, 0.45);
    filter: brightness(1.06);
}

.hero-replay-prominent:active {
    transform: translateY(1px) scale(0.97);
}

.btn-shine-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-22deg);
    animation: btnShineSweep 3.5s infinite;
    pointer-events: none;
}

@keyframes btnShineSweep {
    0%, 55% { left: -100%; }
    100% { left: 220%; }
}

/* 4. Luxury Holographic Gold Border Glow */
.climax-award-card::before,
.hero-photo-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(60deg, #ffbe0b, #ffd166, #ff70a6, #4cc9f0, #ffd166, #ffbe0b);
    background-size: 300% 300%;
    opacity: 0.25;
    z-index: -1;
    animation: holoBorderMove 8s ease infinite alternate;
    pointer-events: none;
}

@keyframes holoBorderMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* 5. Gold Ribbon Shimmer */
.climax-cert-header {
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.15) 0%, rgba(255, 209, 102, 0.06) 100%);
    border: 1.2px solid rgba(255, 209, 102, 0.45);
    box-shadow: 0 0 18px rgba(255, 209, 102, 0.22);
    animation: tributePulse 3s ease-in-out infinite alternate;
}

@keyframes tributePulse {
    0% { box-shadow: 0 0 12px rgba(255, 209, 102, 0.18); border-color: rgba(255, 209, 102, 0.35); }
    100% { box-shadow: 0 0 24px rgba(255, 209, 102, 0.38); border-color: rgba(255, 209, 102, 0.65); }
}

/* Stagger letter 3D pop */
.stagger-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(22px) scale(0.7) rotateX(45deg);
    animation: letterReveal 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes letterReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

/* 6. Foto Final 1 (Foto Lucu) & Final 2 (Foto Bagus) Styles */
.funny-title {
    font-size: clamp(1.4rem, 4.5vw, 2.1rem) !important;
    color: #ffd166 !important;
    letter-spacing: -0.01em;
}

.funny-info-box {
    margin-bottom: 18px;
    padding: 0 14px;
    text-align: center;
}

.funny-joke-text {
    font-size: clamp(13px, 3.8vw, 15px);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    max-width: 380px;
    margin: 8px auto 0 auto;
    font-weight: 500;
}

.funny-sub-joke {
    display: inline-block;
    margin-top: 6px;
    font-size: clamp(12px, 3.5vw, 13.5px);
    font-weight: 700;
    color: #ffd166;
}

.hero-degree-meta {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffd166;
    margin: 4px 0 6px 0;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.meme-photo-img {
    object-position: center 20% !important;
}




