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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    min-height: 100vh;
}

/* ===== Логин ===== */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: rgba(30, 30, 50, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-box h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 8px;
    color: #fff;
}

.subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
    font-size: 14px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #aaa;
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border 0.2s;
}

.input-group input:focus {
    border-color: #4a9eff;
}

.captcha-box {
    margin-bottom: 24px;
}

.captcha-box label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #aaa;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.captcha-question {
    background: rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #4a9eff;
    white-space: nowrap;
    min-width: 90px;
    text-align: center;
}

.captcha-input {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.captcha-refresh {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #aaa;
    font-size: 20px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.captcha-refresh:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4a9eff, #3a7bd5);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-login:hover {
    opacity: 0.9;
}

.no-account {
    text-align: center;
    margin-top: 20px;
}

.no-account a {
    color: #4a9eff;
    text-decoration: none;
    font-size: 14px;
}

.no-account a:hover {
    text-decoration: underline;
}

/* ===== Страница игр ===== */
.games-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.games-page header {
    text-align: center;
    margin-bottom: 40px;
}

.games-page header h1 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 8px;
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    font-size: 20px;
    color: #ccc;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: #e0e0e0;
    transition: background 0.2s, transform 0.2s;
}

.platform-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.platform-icon {
    font-size: 28px;
}

.platform-name {
    font-size: 14px;
    font-weight: 500;
}

.mini-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.game-card {
    display: block;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: #e0e0e0;
    transition: background 0.2s, transform 0.2s;
}

.game-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.game-preview {
    font-size: 48px;
    margin-bottom: 12px;
}

.game-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #fff;
}

.game-card p {
    font-size: 14px;
    color: #888;
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer a {
    color: #4a9eff;
    text-decoration: none;
    font-size: 14px;
}
