:root {
    --bg-color: #0b0c10;
    --card-bg: rgba(31, 40, 51, 0.6);
    --card-border: rgba(102, 252, 241, 0.2);
    --text-primary: #c5c6c7;
    --text-accent: #66fcf1;
    --accent-glow: 0 0 15px rgba(102, 252, 241, 0.5);
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    position: relative;
}

#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(circle at center, #1f2833 0%, #0b0c10 100%);
}

.app-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px; 
    min-height: 100vh;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeIn 0.8s ease forwards;
    width: 100%;
}

.screen.active {
    display: flex;
}

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

.title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--text-accent);
    margin-bottom: 1rem;
    text-shadow: var(--accent-glow);
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-style: italic;
    opacity: 0.8;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-accent);
    margin-bottom: 2rem;
}

.chosen-beginning {
    font-size: 1.5rem;
    color: white;
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.options-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: left;
    line-height: 1.4;
}

.card:hover, .card:active {
    transform: scale(1.02);
    border-color: var(--text-accent);
    box-shadow: var(--accent-glow);
    background: rgba(31, 40, 51, 0.8);
}

.btn {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    width: 80%;
    max-width: 300px;
}

.primary-btn {
    background: var(--text-accent);
    color: var(--bg-color);
    box-shadow: 0 4px 15px rgba(102, 252, 241, 0.4);
}

.primary-btn:hover, .primary-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 252, 241, 0.6);
}

.secondary-btn {
    background: transparent;
    color: var(--text-accent);
    border: 2px solid var(--text-accent);
    margin-bottom: 1rem;
}

.secondary-btn:hover, .secondary-btn:active {
    background: rgba(102, 252, 241, 0.1);
}

.mystic-loader {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(102, 252, 241, 0.3);
    border-radius: 50%;
    border-top-color: var(--text-accent);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 2rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-accent);
    letter-spacing: 2px;
    animation: pulse 2s infinite;
}

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

.result-card {
    background: var(--card-bg);
    border: 2px solid var(--text-accent);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--accent-glow);
    position: relative;
}

.result-card::before, .result-card::after {
    content: '"';
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--text-accent);
    opacity: 0.3;
    position: absolute;
}

.result-card::before {
    top: 10px;
    left: 20px;
}

.result-card::after {
    bottom: -20px;
    right: 20px;
}

.result-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    line-height: 1.3;
    color: white;
}

.divider {
    height: 1px;
    background: var(--card-border);
    margin: 1.5rem 0;
    width: 100%;
}

.result-meaning {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-accent);
    font-style: italic;
    opacity: 0.9;
    line-height: 1.5;
}

.actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

@media (max-width: 380px) {
    .title { font-size: 2.5rem; }
    .section-title { font-size: 1.5rem; }
    .card { padding: 1rem; font-size: 1rem; }
    .result-text { font-size: 1.3rem; }
    .subtitle { font-size: 1rem; margin-bottom: 2rem; }
}

/* Скрываем кнопку выхода на телефонах */
@media (max-width: 768px) {
    .desktop-only-btn {
        display: none !important;
    }
}
