/* --- Bouton Central (Hero) --- */
.click-zone-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.glow-bg {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--accent);
    filter: blur(70px);
    opacity: 0.1;
    animation: pulseGlow 4s infinite alternate;
}

.big-button {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: none;
    background: var(--bg-panel);
    color: var(--accent);
    font-size: 6rem;
    cursor: pointer;
    position: relative;
    z-index: 60;
    box-shadow: var(--shadow-dark), var(--shadow-light);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.big-button:hover {
    transform: translateY(-8px);
    color: #93c5fd;
    text-shadow: 0 0 30px var(--accent-glow);
}

.big-button:active {
    transform: scale(0.96);
    box-shadow: var(--shadow-inset);
    color: var(--accent);
}

.big-button .icon {
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(96, 165, 250, 0.2));
    animation: levitate 3s ease-in-out infinite;
}

.big-button:active .icon { animation: none; transform: scale(0.9); }

@keyframes levitate {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes pulseGlow {
    from { opacity: 0.05; transform: scale(0.9); }
    to { opacity: 0.15; transform: scale(1.1); }
}

/* --- BLOCS (Cartes & Items) --- */
.card, .shop-item {
    background: var(--bg-app);
    border-radius: var(--radius-main);
    padding: 24px;
    box-shadow: var(--shadow-dark), var(--shadow-light);
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.03);
    position: relative;
    z-index: 60;
}

/* --- Stats --- */
.score-display h2 { 
    font-size: 3.5rem; 
    margin: 0; 
    color: var(--text-main);
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.rates { margin-top: 10px; font-weight: 600; color: var(--text-muted); }
.accent-text { color: var(--accent); }

/* --- Shop --- */
.shop-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: none; 
}
.shop-list::-webkit-scrollbar { display: none; }

.shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.shop-item:hover { transform: translateY(-3px); background: #323439; }
.shop-item:active { box-shadow: var(--shadow-inset); transform: translateY(0); }

.shop-item.disabled {
    opacity: 0.4;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.02);
    cursor: not-allowed;
    filter: grayscale(1);
}

.price-tag {
    background: var(--bg-panel);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    color: var(--accent);
    box-shadow: var(--shadow-inset);
}

/* --- Boutons UI --- */
.btn-neumo {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: none;
    border-radius: 16px;
    background: var(--bg-app);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-dark), var(--shadow-light);
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 60;
}
.btn-neumo:hover { color: var(--accent); transform: translateY(-2px); background: #323439; }
.btn-neumo:active { box-shadow: var(--shadow-inset); transform: translateY(0); }
.text-danger { color: var(--danger); }

/* --- Console Masquée --- */
.console-wrapper {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    background: #1a1c23;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 100;
    transition: all 0.3s ease;
    opacity: 1;
    max-height: 250px;
    transform: translateY(0);
}
.console-wrapper.hidden { opacity: 0; max-height: 0; pointer-events: none; transform: translateY(20px); }

.console-log {
    padding: 15px;
    color: #4ade80;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    height: 200px;
    overflow-y: auto;
}

/* Hint ESC */
.controls-hint {
    text-align: center;
    color: var(--text-muted);
    opacity: 0.6;
    margin-top: auto;
    padding-top: 20px;
    position: relative; z-index: 60;
}
kbd {
    background: rgba(0,0,0,0.3);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    font-family: monospace;
}

/* --- PROGRESSION ZONE --- */
.progression-zone {
    width: 85%;
    margin-top: 40px;
    text-align: center;
    position: relative;
    z-index: 60;
}

.progression-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.progress-bar-container {
    height: 12px;
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 15px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s ease-out;
    box-shadow: 0 0 10px var(--accent-glow);
}

.req-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 15px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: left;
}

.req-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    opacity: 0.7;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 4px;
}

.req-grid { display: flex; flex-direction: column; gap: 6px; }
.req-item { display: flex; justify-content: space-between; align-items: center; }
.req-label { color: var(--text-muted); }
.req-value { font-weight: bold; color: var(--text-main); font-family: monospace; }

.btn-ascend {
    margin-top: 20px;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #2563eb);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--accent-glow);
    animation: pulseBtn 2s infinite;
    transition: transform 0.2s;
}
.btn-ascend:hover { transform: scale(1.02); filter: brightness(1.2); }
.btn-ascend.hidden { display: none; }
@keyframes pulseBtn {
    0% { box-shadow: 0 0 0 0 var(--accent-glow); }
    70% { box-shadow: 0 0 0 10px rgba(0,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

/* --- CANVAS FOND --- */
.bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 50; 
    opacity: 0.8;
    mix-blend-mode: screen; 
}

/* --- TEXTES FLOTTANTS --- */
.float-anim {
    position: absolute;
    pointer-events: none;
    color: var(--accent);
    font-weight: 900;
    font-size: 1.8rem;
    z-index: 200; 
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.4);
    animation: floatUp 0.6s ease-out forwards;
}
@keyframes floatUp { to { transform: translateY(-100px) scale(1.5); opacity: 0; } }

/* --- MENU OVERLAY --- */
.tuto-overlay, .menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.tuto-overlay.hidden, .menu-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.tuto-modal, .menu-modal {
    background: var(--bg-panel);
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.05);
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tuto-overlay.hidden .tuto-modal, .menu-overlay.hidden .menu-modal {
    transform: scale(0.95);
}

.menu-header { text-align: center; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; }
.menu-header h2 { margin: 0; color: var(--accent); font-size: 1.8rem; }
.menu-version { margin: 5px 0 0 0; color: var(--text-muted); font-size: 0.8rem; opacity: 0.6; }

.settings-group {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.settings-group h3 { margin: 0 0 10px 0; font-size: 0.9rem; text-transform: uppercase; color: var(--text-muted); }

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    color: var(--text-main);
    cursor: pointer;
}
.setting-item:last-child { border-bottom: none; }
.setting-item.disabled { opacity: 0.5; cursor: default; }

.menu-actions { display: flex; flex-direction: column; gap: 10px; }
.menu-actions .btn-neumo { margin: 0; text-align: center; }
.menu-actions .primary { background: var(--accent); color: white; border: none; }
.menu-actions .primary:hover { filter: brightness(1.1); }

.menu-credits { text-align: center; margin-top: 20px; font-size: 0.8rem; color: var(--text-muted); opacity: 0.7; }

/* --- NOTIFICATIONS (Nouveau) --- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-panel);
    border-left: 4px solid var(--accent);
    color: var(--text-main);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
    animation: slideIn 0.3s ease-out;
    border: 1px solid rgba(255,255,255,0.05);
}

.toast.success { border-left-color: #4ade80; }
.toast.warning { border-left-color: #facc15; }
.toast.danger { border-left-color: #f87171; }

.toast-content { font-size: 0.9rem; }
.toast-title { font-weight: bold; margin-bottom: 2px; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    to { transform: translateX(100%); opacity: 0; }
}

/* --- CUSTOM MODAL (Nouveau) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

.modal-box {
    background: var(--bg-panel);
    width: 90%;
    max-width: 450px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.05);
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.modal-overlay.hidden .modal-box { transform: scale(0.9); }

.modal-box h3 { margin-top: 0; color: var(--accent); font-size: 1.5rem; }
.modal-box p { color: var(--text-muted); margin-bottom: 25px; line-height: 1.5; }

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-buttons .btn-neumo { margin: 0; flex: 1; }
.modal-buttons .primary { background: var(--accent); color: white; border: none; }
.modal-buttons .primary:hover { filter: brightness(1.1); }