body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.content-wrapper {
    flex: 1;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #e8c4c4;
    border-bottom: 2px solid #d1a3a3;
}

.level-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.level-slider-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.level-slider {
    flex-grow: 1;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background-color: #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.level-slider::-webkit-progress-bar {
    background-color: #ddd;
    border-radius: 10px;
}

.level-slider::-webkit-progress-value {
    background-color: #a52a2a;
    border-radius: 10px;
}

.level-slider::-moz-progress-bar {
    background-color: #a52a2a;
    border-radius: 10px;
}

.level-progress {
    height: 100%;
    width: 30%;
    background-color: #a52a2a;
    border-radius: 10px;
}

.currency {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
}

.currency img {
    width: 20px;
    height: 20px;
}

.nav {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background-color: #e8c4c4;
    border-bottom: 2px solid #d1a3a3;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.nav-item img {
    width: auto;
    height: 45px;
    margin-bottom: 5px;
}

.main-content {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.left-panel, .center-panel, .right-panel {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.left-panel {
    width: 200px;
}

.center-panel {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.right-panel {
    width: 250px;
    overflow-y: auto;
    max-height: 600px;
}

.character-sprite {
    position: relative;
    margin-bottom: 20px;
}

.character-name {
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    text-align: center;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 3px;
    border-radius: 5px;
}

.character-level {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 6px;
    border-radius: 50%;
}

.upgrade-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

button {
    padding: 8px 15px;
    background-color: #a52a2a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #8b2323;
}

.item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.item-icon {
    width: 40px;
    height: 40px;
    border: 1px dashed #ccc;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    width: 100%;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.stat img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.character-portrait {
    width: 70px;
    height: 70px;
    border-radius: 5px;
    object-fit: cover;
    border: 2px solid transparent;
}

.current-character {
    border-color: red;
}

.owned-character {
    filter: none;
}

.unowned-character {
    filter: grayscale(100%);
}

footer {
    text-align: center;
    padding: 15px;
    background-color: #e8c4c4;
    border-top: 2px solid #d1a3a3;
    font-size: 12px;
}

.profile-header {
    font-size: 24px;
    color: #a52a2a;
    margin-bottom: 20px;
    text-align: center;
}

.profile-value {
    font-weight: bold;
    color: #333;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, ##faf5f5 50%, #fff5f5 100%);
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(165, 42, 42, 0.3);
    border: 2px solid #d1a3a3;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #a52a2a, #e94560, #a52a2a);
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.geass-icon {
    width: 95px;
    height: 60px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(165, 42, 42, 0.5));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.auth-header h2 {
    color: #a52a2a;
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.auth-subtitle {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    font-style: italic;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.form-group input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #a52a2a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(165, 42, 42, 0.1);
}

.form-group input::placeholder {
    color: #aaa;
}

.form-error {
    color: #e74c3c;
    font-size: 0.85rem;
    background: #fef2f2;
    padding: 6px 10px;
    border-radius: 5px;
    border-left: 3px solid #e74c3c;
}

.form-hint {
    color: #888;
    font-size: 0.8rem;
    margin-top: 2px;
}

.auth-btn {
    background: linear-gradient(135deg, #a52a2a, #c41e3a);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #8b2323, #a52a2a);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(165, 42, 42, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.auth-footer p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.auth-link {
    color: #a52a2a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #c41e3a;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 480px) {
    .auth-card {
        padding: 25px 20px;
    }
    
    .auth-header h2 {
        font-size: 1.3rem;
    }
}