/* ===================================
   SLOTS Game - Single Screen Design
   倒计时冲击式 - 手机一屏展示
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Scheme */
    --gold: #FFD700;
    --orange: #FF6B35;
    --dark-purple: #1a1a2e;
    --deep-purple: #16213e;
    --red: #ff4757;
    --facebook-blue: #1877f2;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --urgent-red: #FF3333;
}

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f0f1e 100%);
    background-attachment: fixed;
    color: var(--white);
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* ===================================
   Single Screen Container
   =================================== */

.single-screen-container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* ===================================
   Urgency Banner - 固定高度
   =================================== */

.urgency-banner {
    background: linear-gradient(135deg, var(--urgent-red) 0%, var(--orange) 100%);
    padding: 1.5vh 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.5);
    animation: bannerPulse 2s infinite;
    flex-shrink: 0;
}

@keyframes bannerPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 51, 51, 0.5); }
    50% { box-shadow: 0 4px 25px rgba(255, 51, 51, 0.8); }
}

.limited-text {
    font-family: 'Bebas Neue', cursive;
    font-size: 5.5vw;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5vh;
}

.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3vh;
}

.countdown-label {
    font-size: 3vw;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.countdown {
    font-family: 'Bebas Neue', cursive;
    font-size: 7vw;
    color: var(--white);
    font-weight: 900;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    letter-spacing: 3px;
}

.countdown span {
    display: inline-block;
    min-width: 8vw;
    text-align: center;
}

/* ===================================
   Logo Section - 22%
   =================================== */

.logo-section {
    text-align: center;
    padding: 1.5vh 0;
    flex-shrink: 0;
}

.slot-icons {
    font-size: 10vw;
    margin-bottom: 0.5vh;
    animation: slotBounce 1.5s ease-in-out infinite;
}

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

.main-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 9vw;
    background: linear-gradient(135deg, var(--gold) 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    margin-bottom: 0.5vh;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    animation: titleGlow 2s ease-in-out infinite;
    line-height: 1;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)); }
    50% { filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.9)); }
}

.bonus-text {
    margin-top: 0.5vh;
}

.free-bonus {
    font-family: 'Bebas Neue', cursive;
    font-size: 7vw;
    color: var(--gold);
    font-weight: 900;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    letter-spacing: 2px;
    line-height: 1;
}

.free-account {
    font-size: 4.5vw;
    color: var(--white);
    font-weight: 700;
    margin-top: 0.3vh;
    line-height: 1;
}

/* ===================================
   Instructions Section
   =================================== */

.instructions-section {
    padding: 1.5vh 5vw;
    background: rgba(255, 255, 255, 0.05);
    border-top: 2px solid rgba(255, 215, 0, 0.2);
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    flex-shrink: 0;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 2.5vw;
    margin-bottom: 1.2vh;
}

.instruction-icon {
    font-size: 6vw;
    flex-shrink: 0;
}

.instruction-item p {
    font-size: 3.8vw;
    line-height: 1.3;
    color: var(--white);
    margin: 0;
}

.auto-message {
    text-align: center;
    font-size: 3.5vw;
    color: var(--gold);
    font-weight: 700;
    margin-top: 1vh;
    padding: 1vh 3vw;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    line-height: 1.3;
}

/* ===================================
   CTA Section - Facebook Messenger Button
   =================================== */

.cta-section {
    padding: 1.5vh 5vw;
    text-align: center;
    flex-shrink: 0;
}

.facebook-messenger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #00B2FF 0%, #006AFF 100%);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 4.2vw;
    box-shadow: 0 4px 15px rgba(0, 106, 255, 0.4);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.facebook-messenger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 106, 255, 0.6);
}

.facebook-messenger-btn:active {
    transform: translateY(0);
}

.messenger-icon {
    width: 7vw;
    height: 7vw;
    flex-shrink: 0;
}

.btn-text {
    line-height: 1;
}


/* ===================================
   Social Proof - 16%
   =================================== */

.social-proof {
    padding: 1.5vh 5vw;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    flex-shrink: 0;
}

.claimed-count {
    margin-bottom: 1vh;
}

.count-number {
    font-family: 'Bebas Neue', cursive;
    font-size: 9vw;
    color: var(--gold);
    font-weight: 900;
    display: block;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    line-height: 1;
}

.count-text {
    font-size: 3.8vw;
    color: var(--white);
    font-weight: 700;
    display: block;
    margin-top: 0.3vh;
}

.limited-spots {
    font-family: 'Bebas Neue', cursive;
    font-size: 5vw;
    color: var(--urgent-red);
    font-weight: 900;
    background: rgba(255, 51, 51, 0.2);
    padding: 1.2vh 3.5vw;
    border-radius: 10px;
    border: 2px solid var(--urgent-red);
    animation: spotsPulse 1.5s infinite;
}

@keyframes spotsPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 25px rgba(255, 51, 51, 0.8);
    }
}

.spots-left {
    color: var(--gold);
    font-size: 6.5vw;
}

/* ===================================
   Responsive Adjustments
   =================================== */

/* Small phones - Height based */
@media (max-height: 600px) {
    .urgency-banner { padding: 1.5vh 0; }
    .limited-text { font-size: 4.5vw; }
    .countdown { font-size: 6vw; }
    .countdown-label { font-size: 2.5vw; }
    .logo-section { padding: 1.5vh 0; }
    .slot-icons { font-size: 10vw; }
    .main-title { font-size: 9vw; }
    .free-bonus { font-size: 7vw; }
    .free-account { font-size: 4vw; }
    .instructions-section { padding: 1.5vh 5vw; }
    .instruction-item { margin-bottom: 1.5vh; }
    .instruction-icon { font-size: 6vw; }
    .instruction-item p { font-size: 3.8vw; }
    .auto-message { font-size: 3.5vw; padding: 1vh 3vw; }
    .cta-section { padding: 1.5vh 5vw; }
    .facebook-messenger-btn { font-size: 4vw; padding: 10px 24px; }
    .messenger-icon { width: 6vw; height: 6vw; }
    .social-proof { padding: 1.5vh 5vw; }
    .count-number { font-size: 8vw; }
    .count-text { font-size: 3.5vw; }
    .limited-spots { font-size: 4.5vw; padding: 1vh 3vw; }
}

/* Very small phones */
@media (max-width: 360px) {
    .limited-text { font-size: 5vw; }
    .countdown { font-size: 6.5vw; }
    .main-title { font-size: 10vw; }
    .instruction-item p { font-size: 4vw; }
    .facebook-messenger-btn { font-size: 4.2vw; }
}

/* Medium phones and small tablets */
@media (min-width: 480px) and (max-width: 767px) {
    .single-screen-container {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Tablets and larger screens */
@media (min-width: 768px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
        min-height: 100vh;
    }

    .single-screen-container {
        max-width: 480px;
        max-height: 95vh;
        margin: 0 auto;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
        border-radius: 20px;
        overflow: auto;
        background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f0f1e 100%);
    }

    .urgency-banner {
        border-radius: 20px 20px 0 0;
    }

    .limited-text { font-size: 26px; }
    .countdown { font-size: 34px; }
    .countdown-label { font-size: 13px; }
    .slot-icons { font-size: 56px; }
    .main-title { font-size: 52px; }
    .free-bonus { font-size: 38px; }
    .free-account { font-size: 22px; }
    .instruction-icon { font-size: 30px; }
    .instruction-item p { font-size: 17px; }
    .auto-message { font-size: 15px; }
    .facebook-messenger-btn { font-size: 17px; padding: 14px 32px; }
    .messenger-icon { width: 30px; height: 30px; }
    .count-number { font-size: 48px; }
    .count-text { font-size: 17px; }
    .limited-spots { font-size: 22px; }
    .spots-left { font-size: 26px; }
}

/* Large tablets and desktops */
@media (min-width: 1024px) {
    .single-screen-container {
        max-width: 500px;
    }
}

/* Landscape mode */
@media (orientation: landscape) and (max-height: 500px) {
    .urgency-banner { padding: 1vh 0; }
    .limited-text { font-size: 4vw; }
    .countdown { font-size: 5vw; }
    .slot-icons { font-size: 10vw; }
    .main-title { font-size: 8vw; }
    .instructions-section { padding: 1vh 5vw; }
    .facebook-messenger-btn { padding: 10px 24px; font-size: 3.5vw; }
    .social-proof { padding: 1vh 5vw; }
}

/* Prevent text selection and highlights */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

/* Allow button to be clickable */
.mega-button {
    user-select: none;
    -webkit-user-select: none;
}

/* ============================================
   Skeleton Screen (Facebook Loading)
   ============================================ */

.skeleton-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #ffffff !important;
    z-index: 999999 !important;
    overflow-y: auto !important;
    animation: fadeIn 0.3s ease;
    display: none;
}

.skeleton-screen[style*="display: block"] {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Skeleton shimmer animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton-screen [class^="skeleton-"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 8px;
}

/* Header */
.skeleton-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #4267B2;
    position: sticky;
    top: 0;
    z-index: 100;
}

.skeleton-back-btn,
.skeleton-menu-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 50%;
}

.skeleton-title {
    flex: 1;
    height: 20px;
    margin: 0 15px;
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Cover & Avatar */
.skeleton-cover {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    position: relative;
}

.skeleton-avatar {
    position: absolute;
    bottom: -50px;
    left: 20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Info Section */
.skeleton-info {
    padding: 60px 20px 20px;
}

.skeleton-name {
    width: 60%;
    height: 28px;
    margin-bottom: 10px;
}

.skeleton-category {
    width: 40%;
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-followers {
    width: 50%;
    height: 16px;
}

/* Action Buttons */
.skeleton-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
}

.skeleton-btn {
    flex: 1;
    height: 40px;
}

/* Tabs */
.skeleton-tabs {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    border-bottom: 1px solid #e0e0e0;
}

.skeleton-tab {
    width: 80px;
    height: 40px;
}

/* Posts */
.skeleton-posts {
    padding: 20px;
}

.skeleton-post {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.skeleton-post-header {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.skeleton-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-post-info {
    flex: 1;
}

.skeleton-post-name {
    width: 120px;
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-post-time {
    width: 80px;
    height: 12px;
}

.skeleton-post-text {
    width: 100%;
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-post-text.short {
    width: 70%;
}

.skeleton-post-image {
    width: 100%;
    height: 200px;
    margin-top: 15px;
}

/* Loading Text */
.skeleton-loading-text {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    z-index: 101;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
