/* Metaterapi ortak UI — her modül bu dosyayı dahil eder. */

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

html, body {
    height: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
}

#therapy-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    cursor: crosshair;
}

/* ------- Dialog panel ------- */
.dialog-panel {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, 90vw);
    background: rgba(10, 16, 28, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 100;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.dialog-panel.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

/* Dialog içindeki "Geç" butonu — sağ üst köşede */
.dialog-skip {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.dialog-skip:hover {
    background: rgba(138, 180, 248, 0.25);
    border-color: #8ab4f8;
    color: #fff;
}

.dialog-skip.hidden { display: none; }

.dialog-speaker {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8ab4f8;
    margin-bottom: 10px;
}

.dialog-text {
    font-size: 1.12rem;
    line-height: 1.6;
    color: #f0f2f5;
    min-height: 60px;
    margin-bottom: 14px;
}

.dialog-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.choice-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.choice-btn:hover {
    background: rgba(138, 180, 248, 0.15);
    border-color: #8ab4f8;
    transform: translateX(4px);
}

.choice-icon {
    font-size: 1.25rem;
    width: 28px;
    text-align: center;
}

.dialog-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 12px 20px;
    background: #8ab4f8;
    color: #0a1020;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.dialog-continue:hover {
    background: #a8c7ff;
    transform: translateY(-1px);
}

.dialog-continue.hidden { display: none; }

/* ------- Notification ------- */
.therapy-notification {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 24px;
    background: rgba(10, 16, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 0.95rem;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.therapy-notification.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ------- Interaction hint (E tuşu) ------- */
.interaction-hint {
    position: fixed;
    bottom: 40%;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    padding: 10px 20px;
    background: rgba(138, 180, 248, 0.9);
    color: #0a1020;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.interaction-hint.visible {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.interaction-hint::before {
    content: '⌨';
    margin-right: 6px;
}

/* ------- Breath exercise overlay ------- */
.breath-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 20, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 150;
    transition: opacity 0.6s ease;
}

.breath-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.breath-circle-wrap {
    text-align: center;
}

/* Nefes egzersizindeki "Geç" butonu */
.breath-skip {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    z-index: 151;
}

.breath-skip:hover {
    background: rgba(138, 180, 248, 0.25);
    border-color: #8ab4f8;
    color: #fff;
}

.breath-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 180, 248, 0.8) 0%, rgba(138, 180, 248, 0.2) 70%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: scale(1);
    margin: 0 auto 32px;
    box-shadow: 0 0 60px rgba(138, 180, 248, 0.5);
}

.breath-instruction {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: #fff;
}

.breath-counter {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
}

/* ------- Scene fade ------- */
.scene-fade {
    position: fixed;
    inset: 0;
    background: #000;
    opacity: 0;
    pointer-events: none;
    z-index: 300;
    transition: opacity 0.8s ease;
}

.scene-fade.active {
    opacity: 1;
    pointer-events: auto;
}

/* ------- Top bar (başlık + çıkış) ------- */
.therapy-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 80;
    pointer-events: none;
}

.therapy-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.85;
    pointer-events: auto;
}

.therapy-exit {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
    pointer-events: auto;
    transition: all 0.2s ease;
}

.therapy-exit:hover {
    background: rgba(255, 80, 80, 0.3);
    border-color: #ff6666;
}

/* VR button */
.vr-button {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #fff;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.vr-button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.vr-button.available {
    background: rgba(138, 180, 248, 0.3);
    border-color: #8ab4f8;
    opacity: 1;
}

.vr-button.available:hover {
    background: rgba(138, 180, 248, 0.5);
    transform: translateY(-1px);
}

/* VR status rozeti — VR aktifken üstte görünür */
.vr-status-badge {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    background: rgba(138, 180, 248, 0.9);
    color: #0a1020;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 85;
    box-shadow: 0 4px 14px rgba(138, 180, 248, 0.3);
    transition: opacity 0.3s ease;
}

.vr-status-badge.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   ZENGİN UI — Loading + Intro + Success + Progress + UI Extras
   ══════════════════════════════════════════════════════════════ */

/* --- Loading Screen --- */
.loading-screen {
    position: fixed; inset: 0;
    background: linear-gradient(135deg, #0a1020 0%, #1a1428 100%);
    display: flex; align-items: center; justify-content: center;
    z-index: 500;
    transition: opacity 0.7s ease;
}
.loading-screen.hidden { opacity: 0; pointer-events: none; }

.loading-content { text-align: center; max-width: 400px; padding: 40px; }

.breath-loader {
    position: relative;
    width: 120px; height: 120px;
    margin: 0 auto 32px;
}
.breath-loader .breath-circle {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(138, 180, 248, 0.5);
    border-radius: 50%;
    animation: breathLoader 3s ease-in-out infinite;
}
.breath-loader .breath-circle:nth-child(2) { animation-delay: 0.5s; }
.breath-loader .breath-circle:nth-child(3) { animation-delay: 1s; }

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

.loading-title {
    font-size: 2.2rem; font-weight: 700; color: #fff;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #8ab4f8, #c4a7ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.loading-subtitle { color: rgba(255, 255, 255, 0.6); margin-bottom: 36px; letter-spacing: 1px; }

.loading-bar {
    width: 100%; height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px; overflow: hidden;
    margin-bottom: 14px;
}
.loading-progress {
    width: 0%; height: 100%;
    background: linear-gradient(90deg, #8ab4f8, #c4a7ff);
    transition: width 0.45s ease;
    border-radius: 999px;
}
.loading-text { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.5px; }

/* --- Intro Screen (Rich) --- */
.intro-screen {
    position: fixed; inset: 0;
    background: linear-gradient(135deg, #0e1424, #1a1a2e 70%, #141e2e);
    display: flex; align-items: center; justify-content: center;
    padding: 32px;
    z-index: 450;
    overflow-y: auto;
    transition: opacity 0.7s ease;
}
.intro-screen.hidden { opacity: 0; pointer-events: none; }

.intro-bg {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(138, 180, 248, 0.15), transparent 60%),
                radial-gradient(circle at 70% 60%, rgba(196, 167, 255, 0.15), transparent 60%);
    pointer-events: none;
}

.intro-content {
    position: relative;
    max-width: 560px;
    text-align: center;
    color: #fff;
}

.intro-icon {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(138, 180, 248, 0.25), rgba(196, 167, 255, 0.25));
    border: 1px solid rgba(138, 180, 248, 0.45);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: #a8c7ff;
    box-shadow: 0 0 40px rgba(138, 180, 248, 0.3);
    animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 30px rgba(138, 180, 248, 0.25); } 50% { box-shadow: 0 0 50px rgba(138, 180, 248, 0.5); } }

.intro-title {
    font-size: 2.6rem; font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(90deg, #8ab4f8, #c4a7ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.intro-subtitle { color: rgba(255, 255, 255, 0.55); font-size: 1rem; letter-spacing: 2px; margin-bottom: 28px; text-transform: uppercase; }

.intro-description {
    margin-bottom: 32px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}
.intro-note {
    margin-top: 10px;
    font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); font-style: italic;
}

/* Mood selector */
.mood-selector, .mood-end-selector { margin-bottom: 28px; }
.mood-prompt { font-size: 0.95rem; color: rgba(255, 255, 255, 0.75); margin-bottom: 14px; }
.mood-options { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.level-btn {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 14px 22px;
    min-width: 90px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff; font-family: inherit; cursor: pointer;
    transition: all 0.2s ease;
}
.level-btn:hover { background: rgba(138, 180, 248, 0.1); border-color: rgba(138, 180, 248, 0.4); transform: translateY(-2px); }
.level-btn.selected { background: rgba(138, 180, 248, 0.18); border-color: #8ab4f8; box-shadow: 0 8px 22px rgba(138, 180, 248, 0.25); }

.level-icon { font-size: 1.8rem; }
.level-text { font-size: 0.8rem; letter-spacing: 0.5px; color: rgba(255, 255, 255, 0.7); }
.level-btn.selected .level-text { color: #fff; }

/* Intro buttons */
.intro-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }

.intro-start-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #8ab4f8, #c4a7ff);
    color: #0a1020;
    border: none; border-radius: 999px;
    font-size: 1rem; font-weight: 600; font-family: inherit;
    cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    transition: all 0.2s ease;
}
.intro-start-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.intro-start-btn:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(138, 180, 248, 0.4); }

.intro-vr-btn {
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem; font-family: inherit; cursor: pointer;
    display: flex; align-items: center; gap: 10px;
    transition: all 0.2s ease;
}
.intro-vr-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.intro-vr-btn.available { background: rgba(138, 180, 248, 0.15); border-color: #8ab4f8; color: #fff; }
.intro-vr-btn.available:hover { background: rgba(138, 180, 248, 0.3); }
.vr-status-text { font-size: 0.8rem; opacity: 0.6; }

/* Controls */
.intro-controls {
    display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}
.controls-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.controls-title { color: rgba(255, 255, 255, 0.4); font-weight: 600; margin-right: 4px; }

/* --- Progress Indicator --- */
.progress-indicator {
    position: fixed;
    top: 14px; left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: rgba(10, 16, 28, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    z-index: 75;
    transition: opacity 0.4s ease;
}
.progress-indicator.hidden { opacity: 0; pointer-events: none; }

.progress-steps { display: flex; align-items: center; gap: 8px; }
.progress-steps .step { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); transition: all 0.3s ease; }
.progress-steps .step-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transition: all 0.3s ease; }
.progress-steps .step.active { color: #a8c7ff; }
.progress-steps .step.active .step-dot { background: #8ab4f8; box-shadow: 0 0 10px rgba(138, 180, 248, 0.6); }
.progress-steps .step.completed { color: rgba(168, 199, 255, 0.6); }
.progress-steps .step.completed .step-dot { background: #8ab4f8; }
.progress-steps .step-line { width: 24px; height: 1px; background: rgba(255, 255, 255, 0.15); }

/* --- Success Screen --- */
.success-screen {
    position: fixed; inset: 0;
    background: linear-gradient(135deg, #0a1020 0%, #1a1835 50%, #2a1848 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 32px;
    z-index: 480;
    overflow-y: auto;
}

.success-content {
    max-width: 580px;
    text-align: center;
    color: #fff;
}

.success-icon {
    width: 96px; height: 96px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd080, #ffaa60);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    color: #4a2810;
    box-shadow: 0 0 60px rgba(255, 200, 100, 0.5);
    animation: medalShine 2s ease-in-out infinite;
}
@keyframes medalShine { 0%, 100% { box-shadow: 0 0 40px rgba(255, 200, 100, 0.4); } 50% { box-shadow: 0 0 80px rgba(255, 200, 100, 0.7); } }

.success-screen h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: 8px; }
.success-message { color: rgba(255, 255, 255, 0.75); margin-bottom: 28px; }

.success-stats {
    display: flex; justify-content: center; gap: 32px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}
.stat { text-align: center; }
.stat-value {
    display: block;
    font-size: 2rem; font-weight: 700;
    background: linear-gradient(90deg, #8ab4f8, #c4a7ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); letter-spacing: 1px; text-transform: uppercase; }

.success-insights {
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 24px;
}
.insights-title { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 10px; font-weight: 600; }
.success-insights ul { list-style: none; padding: 0; margin: 0; }
.success-insights li {
    padding: 6px 0 6px 24px; position: relative;
    font-size: 0.95rem; line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}
.success-insights li::before {
    content: '✓'; position: absolute; left: 0; color: #8ab4f8; font-weight: 700;
}

.reflection-box { text-align: left; margin-bottom: 24px; }
.reflection-label { display: block; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 10px; font-weight: 600; }
.reflection-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff; font-family: inherit; font-size: 0.95rem;
    resize: vertical; min-height: 70px;
}
.reflection-input:focus { outline: none; border-color: #8ab4f8; background: rgba(255, 255, 255, 0.07); }
.reflection-hint { display: block; margin-top: 6px; font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); }

.success-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.success-btn {
    padding: 12px 22px;
    border-radius: 999px;
    font-family: inherit; font-size: 0.95rem; font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.2s ease;
}
.success-btn.primary { background: linear-gradient(135deg, #8ab4f8, #c4a7ff); color: #0a1020; border: none; }
.success-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(138, 180, 248, 0.4); }
.success-btn.secondary { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; }
.success-btn.secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* --- Crosshair --- */
.crosshair {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    pointer-events: none; z-index: 60;
    transition: opacity 0.3s ease;
}
.crosshair.hidden { opacity: 0; }
.crosshair-dot { width: 4px; height: 4px; background: rgba(255, 255, 255, 0.8); border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.crosshair-ring { width: 18px; height: 18px; border: 1.5px solid rgba(255, 255, 255, 0.4); border-radius: 50%; }

/* --- Controls Hint (bottom left) --- */
.controls-hint {
    position: fixed;
    bottom: 20px; left: 20px;
    padding: 12px 16px;
    background: rgba(10, 16, 28, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.75rem; color: rgba(255, 255, 255, 0.7);
    display: flex; flex-direction: column; gap: 6px;
    z-index: 70;
    transition: opacity 0.8s ease;
}
.controls-hint.faded { opacity: 0.25; }
.controls-hint:hover { opacity: 1; }
.hint-item { display: flex; align-items: center; gap: 10px; }
.hint-item .key {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #a8c7ff;
    letter-spacing: 0.5px;
    min-width: 48px; text-align: center;
}

/* --- Safe Exit (bottom right) --- */
.safe-exit {
    position: fixed;
    bottom: 20px; right: 20px;
    padding: 12px 18px;
    background: rgba(10, 16, 28, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 120, 120, 0.3);
    border-radius: 999px;
    color: #ffb0b0; font-family: inherit; font-size: 0.85rem; font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    z-index: 70;
    transition: all 0.2s ease;
}
.safe-exit:hover { background: rgba(255, 120, 120, 0.15); border-color: #ff8080; color: #fff; transform: translateY(-2px); }

/* ------- Start screen ------- */
.therapy-start {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0a1020, #141e2e);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 40px;
    z-index: 400;
    transition: opacity 0.8s ease;
}

.therapy-start.hidden {
    opacity: 0;
    pointer-events: none;
}

.therapy-start h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #8ab4f8, #c4a7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.therapy-start p {
    max-width: 520px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
}

.therapy-start-btn {
    padding: 16px 40px;
    background: linear-gradient(135deg, #8ab4f8, #c4a7ff);
    color: #0a1020;
    border: none;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.therapy-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(138, 180, 248, 0.4);
}

.start-hint {
    margin-top: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}
