body {
    background-color: #0f172a;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.info-wrapper {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.info-button-container {
    width: 42px;
    height: 42px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.info-button-container:hover { transform: scale(1.1); }
.info-icon { width: 100%; height: 100%; object-fit: contain; }

.info-tooltip {
    position: absolute;
    top: 55px;
    left: 0;
    width: 250px;
    background: #1e293b;
    border: 1px solid #38bdf8;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: none;
    animation: fadeIn 0.3s ease;
}

.info-tooltip.active { display: block; }

.container {
    display: flex;
    width: 90%;
    max-width: 1100px;
    background: #1e293b;
    border-radius: 24px;
    padding: 40px;
    gap: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.left-panel { flex: 1; text-align: center; border-right: 1px solid #334155; padding-right: 40px; }
.right-panel { flex: 1.2; display: flex; flex-direction: column; max-height: 450px; }

#achievements-list { overflow-y: auto; flex-grow: 1; padding-right: 10px; }

h1 { font-size: 2rem; margin-bottom: 20px; }
h2 { color: #38bdf8; margin-top: 0; }

.stats-container {
    background: #0f172a;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #38bdf8;
    margin-bottom: 25px;
}

input {
    width: 100%;
    padding: 15px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    color: white;
    margin-bottom: 25px;
    box-sizing: border-box;
    outline: none;
    transition: border 0.3s;
}

input:focus { border-color: #38bdf8; }

.buttons-group { display: flex; gap: 15px; }

.game-btn {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.accept-btn { background: #38bdf8; color: #0f172a; }
.accept-btn:hover { 
    background: #7dd3fc; 
    transform: translateY(-4px); 
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
}

.danger-btn { background: transparent; border: 2px solid #ef4444; color: #ef4444; }
.danger-btn:hover { 
    background: #ef4444; 
    color: white; 
    transform: translateY(-4px);
}

.game-btn:active { transform: translateY(-1px) scale(0.95); }

.achievement-item {
    background: #334155;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 5px solid #38bdf8;
    animation: slideIn 0.3s ease-out;
}

.title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

[contenteditable="true"] {
    outline: none;
    border-bottom: 1px dashed transparent;
    transition: all 0.3s;
    padding: 2px 5px;
    border-radius: 5px;
}

[contenteditable="true"]:hover {
    background: rgba(56, 189, 248, 0.1);
    border-bottom: 1px dashed #38bdf8;
    cursor: text;
}

[contenteditable="true"]:focus {
    background: rgba(56, 189, 248, 0.2);
    border-bottom: 1px solid #38bdf8;
}

.edit-icon {
    font-size: 1.2rem;
    color: #38bdf8;
    opacity: 0.5;
    cursor: pointer;
}

.modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center; align-items: center; z-index: 2000;
}
.modal-backdrop.active { display: flex; }
.modal-window { background: #1e293b; padding: 30px; border-radius: 20px; text-align: center; border: 2px solid #ef4444; }
.danger-confirm-btn { background: #ef4444; color: white; margin-bottom: 10px; width: 100%; }
.cancel-btn { background: #475569; color: white; width: 100%; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }