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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

.mistype {
    position: absolute;
    font-size: 32px;
    padding: 20px;
    z-index: 10;
    top: 0;
    left: 0;
    color: #666;
    font-weight: 500;
}

.container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #e0e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.main-box {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    width: 100%;
    max-width: 28rem;
    text-align: center;
    transition: all 0.5s ease;
}

.main-box:hover {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25);
}

.icon-container {
    margin-bottom: 1.5rem;
}

.download-icon,
.check-icon {
    width: 4rem;
    height: 4rem;
    color: #3b82f6;
    margin: 0 auto 1rem;
}

.initial-state {
    animation: fadeIn 0.5s ease-in-out;
}

.download-hint-state {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    width: 100%;
    max-width: 28rem;
    z-index: 1001;
    animation: fadeIn 0.5s ease-in-out;
}

.download-steps {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.download-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.download-step:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-number {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.step-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.step-content p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.download-button.secondary {
    background: linear-gradient(90deg, #64748b 0%, #475569 100%);
    margin-top: 1rem;
}

.download-button.secondary:hover {
    background: linear-gradient(90deg, #475569 0%, #334155 100%);
    box-shadow: 0 10px 25px rgba(100, 116, 139, 0.3);
}

/* Arrow Pointer Overlay */
.overlay-hint-progress-pointer {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1000;
    animation: fadeIn 0.5s ease;
    cursor: pointer;
    display: none;
}

.overlay-hint-progress-pointer .pointer-arrow-image {
    right: 210px;
    top: 80px;
    transform: rotate(5deg);
    position: absolute;
    height: 400px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.overlay-hint-progress-pointer .pointer-arrow-image svg {
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.8));
}

.overlay-hint-progress-pointer .pointer-arrow-image.animated {
    animation: arrowImageAnimate 1s alternate infinite ease-in-out;
}

.overlay-hint-progress-pointer .pointer-arrow-image.animated svg {
    animation: upDownAnimate 1s alternate infinite ease-in-out;
}

.overlay-hint-progress-pointer-text {
    position: fixed;
    top: 20px;
    right: 200px;
    cursor: pointer;
    text-decoration: underline;
    z-index: 1001;
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    max-width: 600px;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #ffffff;
}

.overlay-hint-progress-pointer-text:hover {
    text-decoration: none;
    background: rgba(0, 0, 0, 0.9);
}

@keyframes upDownAnimate {
    from {
        transform: translate(0, 0px);
    }
    to {
        transform: translate(0, 40px);
    }
}

@keyframes arrowImageAnimate {
    from {
        transform: rotate(5deg);
    }
    to {
        transform: rotate(15deg);
    }
}

.download-icon {
    animation: pulse 2s infinite;
}

.check-icon {
    color: #10b981;
    animation: scaleIn 0.6s ease-out;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.progress-container {
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 0.75rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 9999px;
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-text {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.progress-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b82f6;
    font-variant-numeric: tabular-nums;
}

.progress-percent {
    font-size: 0.875rem;
    color: #6b7280;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #60a5fa;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.dot:nth-child(1) {
    animation-delay: 0ms;
}

.dot:nth-child(2) {
    animation-delay: 150ms;
}

.dot:nth-child(3) {
    animation-delay: 300ms;
}

.complete-state {
    animation: fadeIn 0.5s ease-in-out;
}

.download-button {
    width: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.download-button:hover {
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.download-button:active {
    transform: scale(0.95);
}

.button-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.hidden {
    display: none;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .main-box {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .progress-number {
        font-size: 2.5rem;
    }
    
    h1 {
        font-size: 1.25rem;
    }
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer a {
    color: #3b82f6;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #2563eb;
    text-decoration: underline;
}