/* FANTASY LAB: GLOBAL STYLESHEET (AGE/VISION OPTIMIZED) */

:root { 
    --gold: #d4af37; 
    --gold-dim: #a38931; /* Сделал чуть ярче для читабельности */
    --dark: #030303; 
    --panel: #0a0a0a;
    --gray: #999; /* Осветлил серый */
    --border: #222; /* Усилил границы карточек */
    --error: #8b1c1c;
}

body { 
    background-color: var(--dark); 
    color: #f0f0f0; /* Смягченный белый, чтобы не резало глаза */
    margin: 0; 
    font-family: 'Georgia', serif; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    overflow-x: hidden;
    line-height: 1.7; /* Увеличил межстрочный интервал */
}

/* The Laboratory Vignette - Universal Tunnel Vision */
body::before { 
    content: ""; 
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background: radial-gradient(circle, transparent 20%, rgba(0,0,0,0.95) 100%); 
    pointer-events: none; 
    z-index: 0; 
}

#app, #hub-container, #lab-container { 
    width: 100%; 
    max-width: 700px; /* Сделал контейнер чуть шире для крупных шрифтов */
    padding: 60px 20px; 
    z-index: 10; 
    position: relative;
}

/* Base Components */
.card { 
    background: var(--panel); 
    border: 1px solid var(--border); 
    padding: 50px 40px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.9); 
}

h1.gold-text { 
    color: var(--gold-dim); 
    text-transform: uppercase; 
    letter-spacing: 6px; 
    font-size: 14px; /* Увеличено */
    text-align: center; 
    margin-bottom: 40px; 
    font-weight: 600; 
}

/* Interactive Buttons */
.cta-button { 
    display: block; 
    width: 100%; 
    padding: 22px; /* Больше зона клика */
    background: var(--gold); 
    color: #000 !important; 
    border: none; 
    text-transform: uppercase; 
    letter-spacing: 4px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1); 
    text-align: center;
    text-decoration: none;
    font-size: 15px; /* Увеличено */
}
.cta-button:hover { 
    background: #fff; 
    letter-spacing: 6px;
}

/* Quiz Specifics */
.question-text { 
    font-size: 26px; /* Крупный вопрос, легко читать */
    text-align: center; 
    margin-bottom: 40px; 
    color: #fff; 
    font-style: italic; 
    line-height: 1.4;
}
.options { display: flex; flex-direction: column; gap: 18px; } /* Больше отступ между кнопками */
.option-btn { 
    background: transparent; 
    border: 1px solid #333; /* Более заметная рамка */
    color: #bbb; /* Светлее для читабельности */
    padding: 22px 25px; 
    font-size: 18px; /* Крупный текст ответов */
    text-align: left; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    font-family: 'Georgia', serif; 
    line-height: 1.5;
}
.option-btn:hover { 
    border-color: var(--gold); 
    color: #fff; 
    background: rgba(212, 175, 55, 0.05); 
    padding-left: 35px; 
}
.option-btn:active, .option-btn.processing { background: var(--gold); color: #000; font-weight: bold; }

.progress-container { width: 100%; height: 2px; background: #333; margin-bottom: 40px; } /* Сделал полосу толще */
.progress-bar { height: 100%; background: var(--gold); box-shadow: 0 0 10px var(--gold); transition: width 0.5s ease; }
.counter { margin-top: 30px; font-size: 13px; text-transform: uppercase; letter-spacing: 4px; color: var(--gray); text-align: center; }

/* Result Specifics */
.archetype-title { font-size: 36px; color: #fff; text-align: center; margin-bottom: 25px; letter-spacing: 2px; text-transform: uppercase; }
.result-description { color: #ccc; font-size: 19px; line-height: 1.7; margin-bottom: 30px; text-align: center; }
.ritual-box { background: #050505; border: 1px dashed #444; padding: 30px; margin-bottom: 40px; }
.ritual-text { color: var(--gold); font-style: italic; text-align: center; margin: 0; font-size: 18px; line-height: 1.6; }

/* Hub & Auth Specifics */
.system-status { font-size: 12px; letter-spacing: 6px; color: var(--gold-dim); text-transform: uppercase; margin-bottom: 20px; text-align: center;}
h1 { font-size: 48px; font-weight: 400; letter-spacing: -1px; text-align: center; text-transform: uppercase; margin: 0 0 30px 0; color: #fff; }
.manifesto { font-size: 21px; color: #aaa; font-style: italic; text-align: center; border-bottom: 1px solid var(--border); padding-bottom: 50px; margin-bottom: 50px; line-height: 1.6; }

.auth-gate { background: var(--panel); border: 1px solid var(--border); padding: 50px 40px; text-align: center; margin-bottom: 70px; }
.auth-gate p { font-size: 13px; text-transform: uppercase; letter-spacing: 3px; color: var(--gold); margin-bottom: 25px; }
.auth-gate input { width: 100%; background: transparent; border: none; border-bottom: 1px solid #444; padding: 18px 0; color: #fff; font-size: 20px; margin-bottom: 35px; text-align: center; outline: none; }
.auth-gate input:focus { border-color: var(--gold); }
.auth-gate button { background: var(--gold); color: #000; border: none; padding: 22px; font-weight: bold; letter-spacing: 4px; text-transform: uppercase; cursor: pointer; display: block; width: 100%; font-size: 14px; transition: 0.3s; }
.auth-gate button:hover { background: #fff; }

/* Rooms Grid */
.ladder-title { font-size: 13px; text-transform: uppercase; letter-spacing: 5px; color: var(--gray); text-align: center; margin-bottom: 40px; }
.rooms-grid { display: flex; flex-direction: column; gap: 25px; }
.room-card { background: var(--panel); border: 1px solid var(--border); padding: 40px 30px; text-decoration: none; color: inherit; display: block; transition: 0.4s; }
.room-card.unlocked { border-left: 3px solid var(--gold); } /* Более жирная линия */
.room-card.unlocked:hover { background: #0f0f0f; transform: translateX(5px); }
.room-card.locked { opacity: 0.5; cursor: not-allowed; } /* Сделал чуть менее прозрачным для чтения */
.room-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 15px; }
.room-header h3 { font-size: 24px; font-weight: 600; margin: 0; color: #fff; }
.room-status { font-size: 12px; font-weight: bold; letter-spacing: 3px; }
.room-desc { color: #aaa; font-size: 17px; line-height: 1.6; margin: 0; }

.fade-in { animation: fadeIn 0.8s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scan { 0% { top: 0; } 50% { top: 50px; } 100% { top: 0; } }

/* Public Confession Block */
.confession-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.confession-title {
    font-size: 14px;
    color: var(--error);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}
.confession-instruction {
    font-size: 16px;
    color: var(--gray);
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
}
.code-snippet {
    background: #000;
    border: 1px solid #333;
    padding: 20px;
    font-family: 'Courier New', Courier, monospace; /* Терминальный стиль */
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    word-wrap: break-word;
}
.copy-btn {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 18px;
    width: 100%;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
    margin-bottom: 40px;
}
.copy-btn:hover, .copy-btn.copied {
    background: var(--gold);
    color: #000;
}

/* System Breadcrumbs */
.breadcrumbs {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #666;
    margin-bottom: 40px;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
}
.breadcrumbs a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumbs a:hover {
    color: var(--gold);
}
.breadcrumbs .separator {
    margin: 0 10px;
    color: #333;
}
.breadcrumbs .current-node {
    color: var(--gold);
    font-weight: bold;
}