/* ========== ИГРА (ДИНОЗАВРИК) - ТЕМНЫЙ ФОН, БЕЛОЕ ОКНО ========== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.game-wrap { 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    /* Градиентный фон как в первой игре */
    background: linear-gradient(145deg, #0b1120 0%, #1a2338 100%); 
    color: #e5e9f0; 
}

/* Шапка */
.game-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 16px 32px; 
    background: rgba(15, 23, 42, 0.8); 
    backdrop-filter: blur(8px); 
    border-bottom: 1px solid #2d3a55; 
}
.logo { 
    font-weight: 600; 
    font-size: 1.1rem; 
    color: #cbd5e1; 
    letter-spacing: 0.3px;
}

/* Основной контейнер */
.game-main { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 24px; 
}

/* Карточка игры (тёмная, с размытием) */
.game-card { 
    background: rgba(30, 41, 59, 0.7); 
    backdrop-filter: blur(12px);
    border: 1px solid #334155; 
    border-radius: 32px; 
    padding: 40px 32px; 
    max-width: 560px; 
    width: 100%; 
    text-align: center; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6); 
}
.game-card-wide { max-width: 860px; }

.game-card h1 { 
    font-size: 2rem; 
    font-weight: 700;
    margin-bottom: 8px; 
    background: linear-gradient(135deg, #94a3b8, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.game-card p { 
    color: #94a3b8; 
    margin-bottom: 24px; 
    font-size: 0.95rem; 
    line-height: 1.5;
}

/* Контейнер для canvas (белое окно) */
.canvas-container { 
    display: flex; 
    justify-content: center; 
    background: #fff; /* БЕЛЫЙ ФОН ОКНА */
    border-radius: 16px; 
    overflow: hidden; 
    margin: 0 auto;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    border: 4px solid #0f172a; /* Тёмная рамка */
}
canvas { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

/* Кнопки (стиль первой игры) */
.game-btn { 
    padding: 16px 28px; 
    border-radius: 16px; 
    border: none; 
    font-size: 1rem; 
    font-weight: 600; 
    cursor: pointer; 
    background: linear-gradient(135deg, #3b82f6, #2563eb); 
    color: white; 
    transition: all 0.2s; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
}
.game-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 12px 24px -8px rgba(59, 130, 246, 0.4); 
}
.game-btn:active { 
    transform: translateY(0); 
}
.game-btn-outline { 
    background: transparent; 
    border: 2px solid #334155; 
    color: #cbd5e1; 
}
.game-btn-outline:hover { 
    border-color: #3b82f6; 
    color: white; 
    background: rgba(59, 130, 246, 0.1); 
}

/* Статистика */
.game-stats { 
    display: flex; 
    justify-content: space-around; 
    padding-top: 20px; 
    border-top: 1px solid #334155; 
}
.game-stat-item { 
    display: flex; 
    flex-direction: column; 
    gap: 4px;
}
.game-stat-value { 
    font-size: 1.6rem; 
    font-weight: 700; 
    color: #e2e8f0; 
}
.game-stat-label { 
    font-size: 0.8rem; 
    color: #64748b; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}
.game-hidden { display: none !important; }


/* ========== ОРИГИНАЛЬНЫЕ СТИЛИ HUB (АДМИНКА) ========== */
* { box-sizing: border-box; }
.btn { padding: 12px 24px; border-radius: 12px; border: none; font-size: 0.95rem; font-weight: 600; cursor: pointer; background: #3b82f6; color: white; text-decoration: none; display: inline-block; text-align: center; }
.btn:hover { background: #2563eb; }
.btn-outline { background: transparent; border: 2px solid #475569; color: #cbd5e1; }
.btn-full-width { width: 100%; }
.text-success { color: #34d399; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal-card { background: #1e293b; padding: 32px; border-radius: 24px; max-width: 800px; width: 100%; position: relative; color: #fff; font-family: 'Segoe UI', sans-serif; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.modal-header h2 { margin: 0 0 8px 0; color: #fff; font-size: 1.5rem; }
.modal-header p { margin: 0; color: #94a3b8; }
.modal-close { background: transparent; border: none; color: #94a3b8; cursor: pointer; padding: 4px; font-size: 1.5rem; line-height: 1; }
.modal-close:hover { color: #fff; }
.form-group { margin-bottom: 16px; text-align: left; }
.form-group label { display: block; color: #94a3b8; margin-bottom: 8px; font-size: 0.9rem; }
.form-control { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #334155; background: #0f172a; color: #fff; font-size: 1rem; font-family: inherit; }
.form-control:focus { border-color: #3b82f6; outline: none; }
.alert-box { display: none; background: rgba(248, 113, 113, 0.1); color: #f87171; padding: 12px; border-radius: 8px; margin-bottom: 16px; align-items: center; gap: 8px; }

.hub-grid { display: flex; flex-direction: column; gap: 16px; }
.hub-card { display: flex; justify-content: space-between; align-items: center; background: #252525; border: 1px solid #333; border-radius: 16px; padding: 20px 24px; cursor: pointer; text-decoration: none; transition: 0.2s; }
.hub-card:hover { background: #2a2a2a; border-color: #555; }
.hub-info h4 { margin: 0 0 6px 0; color: #fff; font-size: 1.1rem; }
.hub-info p { margin: 0; color: #8e8e8e; font-size: 0.9rem; }
.hub-arrow { color: #8e8e8e; font-size: 1.2rem; }
.hub-toolbar { display: flex; justify-content: space-between; margin-bottom: 16px; }
.hub-meta-box { background: #0f172a; padding: 12px; border-radius: 8px; border: 1px solid #334155; color: #94a3b8; font-size: 0.85rem; margin-bottom: 16px; }
.peers-table-container { overflow-x: auto; }
.awg-table { width: 100%; border-collapse: collapse; text-align: left; }
.awg-table th, .awg-table td { padding: 12px; border-bottom: 1px solid #334155; color: #cbd5e1; }
.awg-table th { background: #0f172a; color: #94a3b8; }
.peers-empty-td { text-align: center; color: #64748b; }
.status-pill { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.status-pill.online { background: #34d399; }
.status-pill.offline { background: #64748b; }
.actions-group { display: flex; gap: 6px; }
.btn-mini { padding: 4px 8px; font-size: 0.8rem; border-radius: 6px; background: #334155; border: none; color: #fff; cursor: pointer; }

.toast-hud { position: fixed; bottom: 24px; right: 24px; background: #1e293b; border: 1px solid #334155; padding: 16px; border-radius: 12px; display: flex; align-items: center; gap: 12px; transform: translateY(200%); transition: 0.3s; z-index: 3000; }
.toast-hud.active { transform: translateY(0); }
.toast-icon { color: #34d399; }
.toast-title { font-weight: bold; color: #fff; }
.toast-desc { color: #94a3b8; font-size: 0.9rem; }
.qr-display-container { display: flex; justify-content: center; padding: 20px; background: #0f172a; border-radius: 12px; margin-bottom: 20px; }
.qr-img-large { max-width: 200px; }
.dialog-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.spinner-wrap { text-align: center; padding: 20px; }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
