/* VIZWorld Web (ADR-0018) : accueil (connexion, mondes). */
:root { --bg: #0f1117; --card: #181b24; --text: #eef1f6; --muted: #9aa3b2; --accent: #5aa9ff; --error: #ff8a80; color-scheme: dark; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
h1 { margin: 0; font-size: 26px; }
h1 span { color: var(--accent); }
h2 { margin: 28px 0 12px; font-size: 18px; }
.muted, .who { color: var(--muted); }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }
form { max-width: 360px; display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
input { padding: 10px 12px; border-radius: 8px; border: 1px solid #2c3242; background: #11141b; color: var(--text); font: inherit; }
button[type=submit] { padding: 10px 14px; border: 0; border-radius: 8px; background: var(--accent); color: #0b0d12; font-weight: 600; cursor: pointer; }
.error { color: var(--error); min-height: 1em; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.world { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--card); color: inherit; text-decoration: none; }
.world .thumb { aspect-ratio: 16 / 9; background: #232838 center / cover no-repeat; }
.world .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.world b { font-size: 15px; }
.world small { color: var(--muted); }
.badge { align-self: flex-start; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(90, 169, 255, 0.15); color: var(--accent); }
.world:hover { outline: 2px solid var(--accent); }
.titre { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#nouveau, #creer button[type=submit] { padding: 8px 14px; border: 0; border-radius: 8px; background: var(--accent); color: #0b0d12; font: inherit; font-weight: 600; cursor: pointer; }
#creer { max-width: 440px; margin-bottom: 18px; padding: 14px; border-radius: 12px; background: var(--card); }
select { padding: 10px 12px; border-radius: 8px; border: 1px solid #2c3242; background: #11141b; color: var(--text); font: inherit; }
.actions { display: flex; align-items: center; gap: 14px; }

/* Économie du jeu (ADR-0022) : onglets, parcelles à vendre, profils. */
.onglets { display: flex; gap: 6px; margin: 16px 0 0; flex-wrap: wrap; }
.onglets[hidden] { display: none; }
.onglets a { padding: 6px 14px; border-radius: 999px; background: var(--card); color: var(--text); text-decoration: none; }
.onglets a.actif { background: var(--accent); color: #0b0d12; font-weight: 600; }
.solde { color: var(--accent); text-decoration: none; font-variant-numeric: tabular-nums; }
.liste { display: flex; flex-direction: column; gap: 8px; }
.parcelle { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border-left: 4px solid; border-radius: 10px; background: var(--card); }
.parcelle small { grid-column: 1; }
.parcelle .prix { grid-row: 1 / 3; grid-column: 2; align-self: center; font-weight: 600; color: var(--accent); }
.parcelle a { color: var(--accent); }
.presentation { white-space: pre-wrap; max-width: 720px; }
textarea { padding: 10px 12px; border-radius: 8px; border: 1px solid #2c3242; background: #11141b; color: var(--text); font: inherit; resize: vertical; }
#profil-modifier { max-width: 560px; }
.grid.petite { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.creation { display: flex; flex-direction: column; gap: 4px; }
.creation .thumb { aspect-ratio: 1; border-radius: 10px; background: #232838 center / cover no-repeat; }

/* Se connecter avec Google (ADR-0026). */
button.google { background: #fff; color: #1f2937; border: 1px solid #d1d5db; margin-top: 8px; padding: 10px 14px; border-radius: 8px; font-weight: 600; width: 100%; cursor: pointer; }
button.google::before { content: 'G'; font-weight: 700; color: #4285f4; margin-right: 8px; }
.profil-google { margin: 12px 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.profil-google p { margin: 0 0 8px; }
.profil-google button { width: auto; padding: 6px 12px; border-radius: 6px; border: 1px solid #d1d5db; background: rgba(255, 255, 255, 0.08); color: inherit; cursor: pointer; }
.profil-google button.google { background: #fff; color: #1f2937; }
