body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background: linear-gradient(135deg, #FCEDE2 60%, #f9d6c1 100%);
    color: #923231;
    min-height: 100vh;
}

#loader {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: linear-gradient(135deg, #FCEDE2 60%, #f9d6c1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    transition: opacity 0.4s;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.loader-text {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    color: #923231;
    background: rgba(255,255,255,0.7);
    padding: 10px 28px;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(146,50,49,0.07);
    margin-bottom: 0;
}

.loader-spinner {
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 5px solid #923231;
    border-top: 5px solid #FCEDE2;
    border-right: 5px solid #FCEDE2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(146,50,49,0.10);
    background: #fff8f3;
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 28px 10px 36px 10px;
    background: rgba(255,255,255,0.85);
    border-radius: 24px;
    box-shadow: 0 4px 32px rgba(146,50,49,0.10);
}

header {
    text-align: center;
    margin-bottom: 24px;
}

.title {
    font-family: 'MonteCarlo', cursive;
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin: 0 0 8px 0;
    color: #923231;
    text-shadow: 0 2px 8px #f9d6c1;
}

.subtitle {
    font-size: 1.15rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    color: #b94a4a;
    margin-bottom: 0;
    letter-spacing: 0.03em;
}

.cta-section {
    text-align: center;
    margin-bottom: 32px;
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(90deg, #923231 70%, #b94a4a 100%);
    color: #FCEDE2;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 18px 36px;
    border-radius: 32px;
    text-decoration: none;
    margin-bottom: 8px;
    box-shadow: 0 2px 12px rgba(146,50,49,0.10);
    transition: background 0.2s, transform 0.2s;
    border: none;
    position: relative;
    overflow: hidden;
}
.cta-btn:hover, .cta-btn:focus {
    background: linear-gradient(90deg, #b94a4a 70%, #923231 100%);
    transform: scale(1.04);
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -40%;
    width: 22%;
    height: 220%;
    background: linear-gradient(120deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.0) 100%);
    transform: skewX(-25deg);
    pointer-events: none;
    animation: shine-diagonal 2.5s linear infinite;
}

@keyframes shine-diagonal {
    0% {
        left: -60%;
    }
    100% {
        left: 120%;
    }
}

.cta-note {
    font-size: 1rem;
    color: #923231;
    margin-top: 8px;
    font-weight: 500;
}

.steps-section {
    background: transparent;
    border-radius: 18px;
    padding: 0;
    box-shadow: none;
    text-align: center;
}

.steps-toggle {
    background: #FCEDE2;
    color: #923231;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    border: 1.5px solid #e2b8a1;
    border-radius: 18px;
    padding: 10px 22px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
    box-shadow: 0 1px 6px rgba(146,50,49,0.06);
    letter-spacing: 0.01em;
    outline: none;
}
.steps-toggle:hover, .steps-toggle:focus {
    background: #f9d6c1;
    color: #b94a4a;
    border-color: #e2b8a1;
    box-shadow: 0 2px 12px rgba(146,50,49,0.10);
}

.steps-content {
    margin-top: 8px;
    text-align: left;
}

.device-select {
    margin-bottom: 16px;
    text-align: left;
}

.device-select label {
    font-size: 1rem;
    color: #923231;
    margin-right: 8px;
    font-weight: 600;
}

.device-select select {
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1.5px solid #923231;
    background: #FCEDE2;
    color: #923231;
    font-weight: 600;
}

.steps-device-title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.1rem;
    color: #923231;
    margin-bottom: 6px;
    margin-top: 0;
    font-weight: 700;
}

.steps-title {
    font-family: 'MonteCarlo', cursive;
    font-size: 1.4rem;
    color: #923231;
    margin-bottom: 12px;
    text-align: center;
    margin-top: 10px;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.steps-list {
    list-style: decimal inside;
    padding: 0;
    margin: 0 0 16px 0;
}

.steps-list li {
    margin-bottom: 18px;
    font-size: 1.08rem;
    line-height: 1.6;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    color: #923231;
}

.screenshot-placeholder {
    display: block;
    width: 100%;
    height: 80px;
    background: #FCEDE2;
    border: 2px dashed #923231;
    border-radius: 12px;
    margin: 8px 0 0 0;
    text-align: center;
    color: #923231;
    font-size: 0.95rem;
    line-height: 80px;
    font-style: italic;
    opacity: 0.8;
    font-family: 'Montserrat', Arial, sans-serif;
}

.icon {
    font-size: 1.2em;
    vertical-align: middle;
}

.thanks {
    text-align: center;
    font-family: 'MonteCarlo', cursive;
    font-size: 1.1rem;
    color: #923231;
    margin-top: 12px;
    font-weight: 400;
}

.main-bg {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    background: linear-gradient(135deg, #FCEDE2 60%, #f9d6c1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.main-card {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(146,50,49,0.13);
    padding: 32px 14px 36px 14px;
    margin: 32px 0;
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

#particles-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    display: block;
}

.help-section {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
}
.help-text {
    margin-bottom: 8px;
    font-size: 1rem;
    color: #923231;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
}

.help-btn {
    background: #fff8f3;
    color: #b94a4a;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1.5px solid #e2b8a1;
    border-radius: 16px;
    padding: 10px 22px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s, filter 0.18s;
    box-shadow: 0 1px 6px rgba(146,50,49,0.06);
    letter-spacing: 0.01em;
    outline: none;
    animation: buttonGlow 2.2s ease-in-out infinite;
}
.help-btn:hover, .help-btn:focus {
    background: #f9d6c1;
    color: #923231;
    border-color: #e2b8a1;
    box-shadow: 0 2px 12px rgba(146,50,49,0.10);
    filter: brightness(0.93);
}

.modal-bg {
    position: fixed;
    z-index: 10000;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.modal-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(146,50,49,0.13);
    padding: 32px 20px 24px 20px;
    max-width: 350px;
    width: 95vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.modal-close-x {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.6em;
    line-height: 1;
    color: #b94a4a;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    transition: color 0.18s;
}
.modal-close-x:hover, .modal-close-x:focus {
    color: #923231;
    background: none;
}

#tutorialSteps, #helpSteps {
    width: 100%;
    margin-bottom: 18px;
}

.modal-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.modal-nav-btn {
    background: linear-gradient(90deg, #923231 70%, #b94a4a 100%);
    color: #FCEDE2;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 16px;
    padding: 10px 22px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, filter 0.18s;
    box-shadow: 0 1px 6px rgba(146,50,49,0.06);
    outline: none;
    animation: buttonGlow 2.2s ease-in-out infinite;
}
.modal-nav-btn:hover, .modal-nav-btn:focus {
    background: linear-gradient(90deg, #b94a4a 70%, #923231 100%);
    color: #fff8f3;
    filter: brightness(0.92);
}

@keyframes buttonGlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 0px #fff8f3);
        box-shadow: 0 1px 6px rgba(146,50,49,0.06);
    }
    50% {
        filter: brightness(1.13) drop-shadow(0 0 8px #fff8f3);
        box-shadow: 0 2px 16px 0 rgba(249,214,193,0.18);
    }
    100% {
        filter: brightness(1) drop-shadow(0 0 0px #fff8f3);
        box-shadow: 0 1px 6px rgba(146,50,49,0.06);
    }
}

.cta-btn,
.help-btn,
.modal-nav-btn {
    animation: buttonGlow 2.2s ease-in-out infinite;
}

.gallery-label {
    display: block;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.32em;
    color: #b94a4a;
    text-transform: uppercase;
    margin-bottom: 2px;
    margin-top: 0;
    text-align: center;
}

.faq-section {
    width: 100%;
    margin-top: 8px;
}

.faq-item {
    margin-bottom: 16px;
    border-radius: 12px;
    background: #FCEDE2;
    box-shadow: 0 1px 6px rgba(146,50,49,0.06);
    padding: 0;
    border: none;
    overflow: hidden;
}

.faq-item summary {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #923231;
    padding: 14px 18px;
    cursor: pointer;
    outline: none;
    background: none;
    border: none;
    transition: background 0.15s;
}

.faq-item[open] summary {
    background: #fff8f3;
}

.faq-steps {
    padding: 10px 22px 16px 22px;
    font-size: 0.98rem;
    color: #923231;
    font-family: 'Montserrat', Arial, sans-serif;
    max-height: 180px;
    overflow-y: auto;
    box-sizing: border-box;
    width: 100%;
    white-space: normal;
    word-break: break-word;
    display: block;
}

.faq-steps b {
    color: #b94a4a;
    display: block;
    margin-top: 8px;
    margin-bottom: 2px;
}

.faq-steps ol {
    margin: 0 0 8px 18px;
    padding: 0;
}

.faq-steps li {
    margin-bottom: 6px;
    line-height: 1.5;
}

@media (max-width: 400px) {
    .modal-card {
        padding: 18px 4vw 18px 4vw;
    }
}
