/* ===========================================================================
   Member pages — profile, board, sign-in trouble.
   Plain and fast on purpose: these are utility screens, not the game. They
   borrow the game's palette (app.css loads first) so they still feel like the
   same place.
   ========================================================================= */
.mem-body {
    background: var(--stage, #10293B);
    color: var(--cream, #F7EEDD);
    font-family: Barlow, system-ui, -apple-system, "Segoe UI", sans-serif;
    margin: 0; line-height: 1.6;
}
.mem-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    padding: 16px 22px; border-bottom: 2px solid var(--bulb-dim, #8A6A26);
    background: var(--stage-deep, #0A1A26);
}
.mem-brand {
    font-family: "Alfa Slab One", Georgia, serif; font-size: 1.15rem;
    color: var(--bulb, #FFD469); text-decoration: none; letter-spacing: .01em;
}
.mem-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.mem-nav a { color: rgba(247,238,221,.82); text-decoration: none; font-size: .95rem; }
.mem-nav a:hover, .mem-nav a:focus-visible { color: var(--bulb, #FFD469); }

.mem-main { max-width: 720px; margin: 0 auto; padding: 26px 20px 60px; }
.mem-title {
    font-family: "Alfa Slab One", Georgia, serif; font-size: 2rem;
    margin: 8px 0 6px; color: var(--cream, #F7EEDD); line-height: 1.15;
}
.mem-lead { margin: 0 0 22px; color: rgba(247,238,221,.72); }

.mem-card {
    background: rgba(27, 68, 96, .42); border: 1px solid var(--bulb-dim, #8A6A26);
    border-radius: 14px; padding: 20px 22px; margin: 0 0 18px;
}
.mem-card h2 { margin: 0 0 12px; font-size: 1.2rem; color: var(--bulb, #FFD469); }

.mem-form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.mem-form label { font-size: .92rem; color: rgba(247,238,221,.8); }
.mem-form input[type="text"], .mem-form input[type="file"] {
    width: 100%; max-width: 380px; font: inherit; font-size: 1.05rem;
    padding: 11px 13px; border-radius: 10px;
    border: 2px solid var(--bulb-dim, #8A6A26);
    background: var(--stage-deep, #0A1A26); color: var(--cream, #F7EEDD);
}
.mem-form input:focus-visible { outline: none; border-color: var(--bulb, #FFD469); }

.mem-btn {
    display: inline-block; font: inherit; font-weight: 700; font-size: 1rem;
    padding: 12px 22px; border: 0; border-radius: 10px; cursor: pointer;
    background: var(--gold, #E0A93B); color: #23180E; text-decoration: none;
}
.mem-btn:hover, .mem-btn:focus-visible { background: var(--bulb, #FFD469); outline: none; }
.mem-actions { margin-top: 20px; }
.mem-hint { font-size: .86rem; color: rgba(247,238,221,.58); margin: 4px 0 0; }

.mem-note { border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; font-size: .96rem; }
.mem-note--ok   { background: rgba(62,125,79,.28);  border: 1px solid #3E7D4F; }
.mem-note--warn { background: rgba(224,169,59,.20); border: 1px solid var(--gold, #E0A93B); }
.mem-note--stop { background: rgba(179,58,43,.24);  border: 1px solid #B33A2B; }

.mem-photo-row { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.mem-photo { border-radius: 10px; border: 2px solid var(--bulb-dim, #8A6A26); }

/* The board */
.mem-board { list-style: none; margin: 0 0 24px; padding: 0; }
.mem-board li {
    display: grid; grid-template-columns: 34px 44px 1fr auto auto;
    align-items: center; gap: 12px;
    padding: 10px 12px; border-bottom: 1px solid rgba(138,106,38,.35);
}
.mem-board li.is-you { background: rgba(224,169,59,.14); border-radius: 8px; }
.mem-rank { font-weight: 700; color: var(--bulb, #FFD469); font-variant-numeric: tabular-nums; }
.mem-face { border-radius: 50%; object-fit: cover; }
.mem-face--blank {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--stage-glow, #1B4460); color: rgba(247,238,221,.6);
    font-weight: 700; border: 1px solid rgba(138,106,38,.5);
}
.mem-name { font-weight: 600; }
.mem-rounds { font-size: .84rem; color: rgba(247,238,221,.55); }
.mem-score { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--bulb, #FFD469); }
@media (max-width: 520px) {
    .mem-board li { grid-template-columns: 28px 40px 1fr auto; }
    .mem-rounds { display: none; }
}

.mem-join { border-color: var(--gold, #E0A93B); background: rgba(224,169,59,.12); }
.mem-foot {
    text-align: center; padding: 22px; font-size: .88rem;
    color: rgba(247,238,221,.5); border-top: 1px solid rgba(138,106,38,.3);
}
.mem-foot a { color: rgba(247,238,221,.75); }
