/* ═══════════════════════════════════════════════════════════════
   Empire 21 — Feuille de styles principale
   Thème Art Déco, Europe des années 1920
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────── */
:root {
    --bg:           #0b0805;
    --bg2:          #140f08;
    --bg3:          #1e1610;
    --panel:        rgba(20, 15, 8, 0.97);
    --gold:         #c9a227;
    --gold-light:   #e8cc70;
    --gold-dark:    #8b6914;
    --gold-glow:    rgba(201, 162, 39, 0.25);
    --cream:        #f0e2c0;
    --cream-muted:  #9e8c6e;
    --red:          #8b1a1a;
    --green:        #1a5c2a;
    --white:        #faf7f0;
    --border:       1px solid rgba(201, 162, 39, 0.35);
    --shadow:       0 4px 24px rgba(0,0,0,0.7);
    --shadow-gold:  0 0 20px rgba(201,162,39,0.15);
    --radius:       4px;
    --serif:        'Playfair Display', Georgia, serif;
    --sans:         'Lato', 'Helvetica Neue', sans-serif;
    --transition:   0.2s ease;
}

/* ── Reset & base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(201,162,39,0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(201,162,39,0.03) 0%, transparent 60%);
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; }

/* ── Typographie ────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--cream); }

/* ── En-tête ────────────────────────────────────────────────────── */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg2);
    border-bottom: 1px solid rgba(201,162,39,0.3);
    box-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    color: var(--cream);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.logo:hover { color: var(--gold-light); }

.logo-ornament { color: var(--gold); font-size: 14px; }

.logo-num {
    color: var(--gold);
    font-style: italic;
}

.main-nav {
    display: flex;
    gap: 4px;
    flex: 1;
}

.nav-link {
    padding: 6px 16px;
    border-radius: var(--radius);
    color: var(--cream-muted);
    font-size: 14px;
    letter-spacing: 0.03em;
    transition: all var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-light);
    background: rgba(201,162,39,0.1);
}

.nav-link-admin {
    border: 1px solid rgba(201,162,39,0.25);
    margin-left: 8px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-tokens {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,162,39,0.12);
    border: 1px solid rgba(201,162,39,0.3);
    border-radius: 20px;
    padding: 5px 14px;
}

.token-icon { color: var(--gold); font-size: 16px; }

.token-amount {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 0.02em;
}

.header-avatar-wrap { position: relative; }

.header-username {
    background: none;
    border: 1px solid rgba(201,162,39,0.3);
    color: var(--cream);
    padding: 6px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-family: var(--sans);
    transition: all var(--transition);
}

.header-username:hover { border-color: var(--gold); color: var(--gold-light); }

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg2);
    border: 1px solid rgba(201,162,39,0.4);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 200;
}

.user-dropdown.open { display: block; }

.dropdown-info {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(201,162,39,0.2);
    background: rgba(201,162,39,0.05);
}

.dropdown-title { font-family: var(--serif); font-size: 13px; color: var(--gold-light); }
.dropdown-level { font-size: 12px; color: var(--cream-muted); margin-top: 2px; }

.dropdown-link {
    display: block;
    padding: 11px 16px;
    font-size: 14px;
    color: var(--cream);
    transition: background var(--transition);
}

.dropdown-link:hover { background: rgba(255,255,255,0.05); color: var(--gold-light); }
.dropdown-logout { color: #c0392b !important; border-top: 1px solid rgba(255,255,255,0.06); }

/* ── Flash ──────────────────────────────────────────────────────── */
.flash {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 500;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease;
    max-width: 420px;
}

.flash-success { background: #1a3d2b; border: 1px solid #2a7a4a; color: #7effc4; }
.flash-error   { background: #3d1a1a; border: 1px solid #7a2a2a; color: #ffb0b0; }
.flash-info    { background: #1a2a3d; border: 1px solid #2a4a7a; color: #b0d0ff; }

.flash-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    margin-left: auto;
}

@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Toast (notifications AJAX) ─────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 600; display: flex; flex-direction: column; gap: 10px; }

.toast {
    padding: 12px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease;
    pointer-events: none;
}

.toast-success { background: #1a3d2b; border: 1px solid #2a7a4a; color: #7effc4; }
.toast-error   { background: #3d1a1a; border: 1px solid #7a2a2a; color: #ffb0b0; }

/* ── Contenu principal ──────────────────────────────────────────── */
.main-content {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 40px 24px;
}

.main-content.no-pad { padding: 0; max-width: 100%; }

/* ── Pied de page ───────────────────────────────────────────────── */
.main-footer {
    border-top: 1px solid rgba(201,162,39,0.15);
    padding: 20px 24px;
    text-align: center;
    background: var(--bg2);
}

.footer-disclaimer { font-size: 11px; color: var(--cream-muted); margin-bottom: 6px; }
.footer-copy { font-size: 11px; color: rgba(201,162,39,0.5); }

/* ── Boutons ────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--sans);
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
    text-transform: uppercase;
}

.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #0b0805;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    box-shadow: 0 4px 20px rgba(201,162,39,0.4);
    color: #0b0805;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(201,162,39,0.1);
    color: var(--gold-light);
}

.btn-ghost {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--cream-muted);
}

.btn-ghost:hover:not(:disabled) {
    background: rgba(255,255,255,0.09);
    color: var(--cream);
}

.btn-gold {
    background: linear-gradient(135deg, #c9a227, #e8cc70, #c9a227);
    color: #0b0805;
    font-weight: 700;
}

.btn-gold:hover:not(:disabled) {
    box-shadow: 0 4px 24px rgba(201,162,39,0.5);
    transform: translateY(-1px);
    color: #0b0805;
}

.btn-full { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 12px; }

/* ── Formulaires ────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    color: var(--cream-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-group label small {
    text-transform: none;
    letter-spacing: 0;
    color: rgba(158,140,110,0.7);
    font-size: 11px;
    margin-left: 4px;
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201,162,39,0.25);
    border-radius: var(--radius);
    color: var(--cream);
    font-size: 15px;
    font-family: var(--sans);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input::placeholder { color: rgba(158,140,110,0.5); }
.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 20px;
}

.alert-error   { background: rgba(139,26,26,0.2); border: 1px solid rgba(139,26,26,0.5); color: #ffb0b0; }
.alert-success { background: rgba(26,92,42,0.2);  border: 1px solid rgba(26,92,42,0.5);  color: #90efb0; }

/* ── Pages d'authentification ───────────────────────────────────── */
body.page-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 50% 30%, rgba(201,162,39,0.07) 0%, transparent 60%);
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.auth-card {
    background: var(--panel);
    border: 1px solid rgba(201,162,39,0.3);
    border-radius: 8px;
    padding: 40px 36px;
    box-shadow: var(--shadow), var(--shadow-gold);
}

.auth-logo {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.auth-logo .logo-text { font-family: var(--serif); font-size: 32px; color: var(--cream); }
.auth-logo .logo-ornament { color: var(--gold); font-size: 16px; }

.auth-subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--cream-muted);
    margin-bottom: 28px;
    font-style: italic;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin-bottom: 24px;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(201,162,39,0.2);
}

.auth-divider span {
    position: relative;
    background: var(--panel);
    padding: 0 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cream-muted);
}

.auth-form { margin-bottom: 20px; }

.auth-link {
    text-align: center;
    font-size: 14px;
    color: var(--cream-muted);
}

.auth-disclaimer {
    font-size: 11px;
    color: rgba(158,140,110,0.7);
    margin-bottom: 20px;
    line-height: 1.5;
}

.auth-footer {
    margin-top: 20px;
    padding: 16px;
    text-align: center;
    font-size: 11px;
    color: rgba(158,140,110,0.5);
    max-width: 440px;
}

/* ── Dashboard ──────────────────────────────────────────────────── */
.dashboard-wrap { display: flex; flex-direction: column; gap: 48px; }

/* Bandeau joueur */
.player-banner {
    background: var(--bg2);
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 8px;
    padding: 28px 32px;
    box-shadow: var(--shadow);
}

.player-banner-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 28px;
    color: #0b0805;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(201,162,39,0.3);
}

.player-name { font-size: 22px; font-family: var(--serif); margin-bottom: 3px; }
.player-title { font-size: 13px; color: var(--gold); margin-bottom: 10px; letter-spacing: 0.04em; }

.xp-bar-wrap { display: flex; align-items: center; gap: 10px; }

.xp-bar {
    width: 180px;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.xp-label { font-size: 11px; color: var(--cream-muted); white-space: nowrap; }

.player-stats-row {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.stat-box {
    text-align: center;
    min-width: 80px;
}

.stat-val {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--gold-light);
    font-weight: 600;
}

.stat-lbl { font-size: 11px; color: var(--cream-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 3px; }

.bonus-btn { align-self: flex-start; }
.bonus-claimed { font-size: 14px; color: #7effc4; padding: 8px 0; }

/* Titre de section */
.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.section-ornament { color: var(--gold); font-size: 12px; }

.section-title {
    font-family: var(--serif);
    font-size: 22px;
    letter-spacing: 0.04em;
    color: var(--cream);
}

/* Grille des villes */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.city-card {
    background: var(--bg2);
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 8px;
    padding: 24px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.city-card.unlocked {
    border-color: rgba(201,162,39,0.35);
}

.city-card.unlocked:hover {
    border-color: rgba(201,162,39,0.6);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.city-card.locked {
    opacity: 0.5;
    filter: grayscale(0.4);
}

.city-number {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(201,162,39,0.1);
    border: 1px solid rgba(201,162,39,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 16px;
    color: var(--gold);
    font-weight: 600;
}

.city-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.city-name { font-family: var(--serif); font-size: 20px; color: var(--cream); }
.city-lock { font-size: 18px; }
.city-description { font-size: 13px; color: var(--cream-muted); margin-bottom: 16px; line-height: 1.5; }

.city-establishments {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.est-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
    color: var(--cream-muted);
    transition: all var(--transition);
}

.est-link:hover {
    background: rgba(201,162,39,0.08);
    border-color: rgba(201,162,39,0.25);
    color: var(--cream);
}

.est-icon { font-size: 14px; }
.est-name { flex: 1; }

.city-requirements { display: flex; flex-direction: column; gap: 6px; }
.req-item { font-size: 12px; color: var(--cream-muted); }

.city-play-btn { margin-top: 4px; }

/* Missions */
.missions-section { margin-top: 0; }

.missions-list { display: flex; flex-direction: column; gap: 10px; }

.mission-item {
    background: var(--bg2);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color var(--transition);
}

.mission-item:hover { border-color: rgba(201,162,39,0.25); }

.mission-item.mission-main  { border-left: 3px solid var(--gold); }
.mission-item.mission-daily { border-left: 3px solid #e8a040; }
.mission-item.mission-special { border-left: 3px solid #9060e0; }

.mission-badge { font-size: 11px; color: var(--cream-muted); white-space: nowrap; width: 110px; flex-shrink: 0; }
.mission-body { flex: 1; }
.mission-title { font-size: 14px; color: var(--cream); margin-bottom: 3px; font-weight: 600; }
.mission-desc  { font-size: 12px; color: var(--cream-muted); }
.mission-reward { text-align: right; font-size: 12px; color: var(--gold); white-space: nowrap; display: flex; flex-direction: column; gap: 2px; }
.mission-done { color: #7effc4; }

.mission-progress-wrap { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.mission-progress-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; max-width: 200px; }
.mission-progress-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width 0.3s; }
.mission-progress-label { font-size: 11px; color: var(--cream-muted); }

/* ── Profil ──────────────────────────────────────────────────────── */
.profile-wrap { display: flex; flex-direction: column; gap: 32px; }

.profile-header-card {
    background: var(--bg2);
    border: 1px solid rgba(201,162,39,0.3);
    border-radius: 8px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.profile-avatar-large {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 40px;
    color: #0b0805;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0 30px rgba(201,162,39,0.35);
}

.profile-identity { flex: 1; }
.profile-username { font-size: 28px; margin-bottom: 4px; }
.profile-title-badge { color: var(--gold); font-size: 13px; margin-bottom: 3px; letter-spacing: 0.04em; }
.profile-rep-title { color: var(--cream-muted); font-size: 13px; margin-bottom: 3px; }
.profile-member-since { color: var(--cream-muted); font-size: 12px; }

.profile-header-stats { display: flex; gap: 28px; margin-left: auto; }
.pstat { text-align: center; }
.pstat-val { font-family: var(--serif); font-size: 24px; color: var(--gold-light); font-weight: 600; }
.pstat-lbl { font-size: 11px; color: var(--cream-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 3px; }

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.profile-card {
    background: var(--bg2);
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 8px;
    padding: 24px;
}

.profile-card-wide { grid-column: 1 / -1; }

.card-title {
    font-family: var(--serif);
    font-size: 17px;
    color: var(--gold-light);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201,162,39,0.15);
}

/* Progression */
.prog-item { margin-bottom: 20px; }
.prog-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--cream-muted); margin-bottom: 8px; }
.xp-bar-large { height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.rep-fill { height: 100%; background: linear-gradient(90deg, #9060e0, #c090ff); border-radius: 4px; transition: width 0.5s; }
.prog-sublabel { font-size: 11px; color: var(--cream-muted); }

/* Stats */
.stats-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-item { background: rgba(255,255,255,0.03); border-radius: var(--radius); padding: 12px 14px; }
.si-val { display: block; font-family: var(--serif); font-size: 20px; color: var(--gold-light); }
.si-lbl { font-size: 11px; color: var(--cream-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 3px; }

/* Tabs missions */
.missions-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.mtab {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-family: var(--sans);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--cream-muted);
    cursor: pointer;
    transition: all var(--transition);
}
.mtab.active, .mtab:hover { background: rgba(201,162,39,0.15); border-color: rgba(201,162,39,0.4); color: var(--gold-light); }

/* Transactions */
.tx-list { display: flex; flex-direction: column; gap: 8px; }
.tx-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius);
    font-size: 13px;
    border: 1px solid rgba(255,255,255,0.05);
}
.tx-desc { flex: 1; }
.tx-type { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cream-muted); }
.tx-note { font-size: 12px; color: var(--cream-muted); display: block; }
.tx-amount { font-family: var(--serif); font-size: 15px; white-space: nowrap; }
.tx-amount.positive { color: #7effc4; }
.tx-amount.negative { color: #ffb0b0; }
.tx-date { font-size: 11px; color: var(--cream-muted); white-space: nowrap; }

.empty-state { text-align: center; color: var(--cream-muted); font-size: 14px; padding: 20px 0; }

/* ── Page de jeu ─────────────────────────────────────────────────── */
.game-layout {
    display: flex;
    height: calc(100vh - 60px);
    overflow: hidden;
}

.game-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--bg2);
    border-right: 1px solid rgba(201,162,39,0.2);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.sidebar-section { border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 14px; }
.sidebar-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cream-muted); margin-bottom: 4px; }
.sidebar-value { font-family: var(--serif); font-size: 15px; color: var(--cream); }
.sidebar-sub { font-size: 12px; color: var(--cream-muted); margin-top: 2px; }

.table-link {
    display: flex;
    flex-direction: column;
    padding: 7px 10px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    margin-top: 6px;
    font-size: 13px;
    color: var(--cream-muted);
    transition: all var(--transition);
}

.table-link:hover { background: rgba(201,162,39,0.08); border-color: rgba(201,162,39,0.25); color: var(--cream); }
.table-link.active { background: rgba(201,162,39,0.12); border-color: rgba(201,162,39,0.4); color: var(--gold-light); }
.table-link.locked { opacity: 0.4; pointer-events: none; }
.table-link-limits { font-size: 11px; margin-top: 2px; }
.table-link-lock { font-size: 11px; color: var(--red); }

.sidebar-back { margin-top: auto; }

.game-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg);
}
