*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

:root {
  --bg:      #0d0d0d;
  --bg-card: #1a1a1a;
  --bg-card2:#242424;
  --primary: #ff6b00;
  --pri-dk:  #cc5500;
  --green:   #00c04b;
  --danger:  #ff3333;
  --warn:    #ffaa00;
  --text:    #ffffff;
  --muted:   #888888;
  --border:  #2a2a2a;
  --nav-h:   60px;
}

html, body { height:100%; background:var(--bg); color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; overflow:hidden; }

.screen { position:fixed; inset:0; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.screen.hidden { display:none; }
.hidden { display:none !important; }

/* ── Identity ─────────────────────────────────────────────────────────────── */
.identity-container { min-height:100dvh; padding:48px 20px 80px;
  display:flex; flex-direction:column; align-items:center; max-width:420px; margin:0 auto; }
.logo { font-size:64px; margin-bottom:10px; }
h1 { font-size:34px; font-weight:900; text-align:center; line-height:1.15; margin-bottom:8px; }
.subtitle { color:var(--muted); font-size:16px; margin-bottom:28px; }

.persons-grid { width:100%; display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-bottom:24px; }
.person-pick-btn { background:var(--bg-card); border:2px solid var(--border); border-radius:14px;
  padding:14px 10px; color:var(--text); font-size:15px; font-weight:700; cursor:pointer; text-align:center;
  transition:border-color .12s,background .12s; }
.person-pick-btn:active { background:var(--primary); border-color:var(--primary); }
.person-pick-btn .badge { display:block; font-size:12px; font-weight:600; color:var(--primary); margin-top:4px; }

.divider { width:100%; display:flex; align-items:center; gap:10px; color:var(--muted);
  font-size:13px; margin:0 0 20px; }
.divider::before,.divider::after { content:''; flex:1; height:1px; background:var(--border); }

.add-person-form { width:100%; display:flex; flex-direction:column; gap:10px; margin-bottom:14px; }

input, select { width:100%; background:var(--bg-card); border:2px solid var(--border);
  border-radius:12px; padding:14px 16px; color:var(--text); font-size:16px; outline:none;
  transition:border-color .2s; appearance:none; -webkit-appearance:none; }
input:focus, select:focus { border-color:var(--primary); }
select { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 16px center; padding-right:40px; }

.btn { width:100%; padding:15px; border-radius:12px; border:none; font-size:16px; font-weight:700;
  cursor:pointer; transition:opacity .1s,transform .1s; text-align:center; }
.btn:active { transform:scale(.97); opacity:.85; }
.btn-primary  { background:var(--primary); color:#fff; }
.btn-secondary { background:var(--bg-card); color:var(--text); border:2px solid var(--border); }
.btn-ghost    { background:none; color:var(--muted); width:auto; padding:8px 12px; font-size:14px; }

.add-team-form { width:100%; display:flex; gap:8px; margin-top:10px; }
.add-team-form input { flex:1; }
.add-team-form .btn { width:auto; padding:14px 18px; flex-shrink:0; }

/* ── App shell ───────────────────────────────────────────────────────────── */
#screen-app { display:flex; flex-direction:column; }
#screen-app.hidden { display:none; }
.tab-content { flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch;
  padding-bottom:calc(var(--nav-h) + 20px); }
.tab-content.hidden { display:none; }

/* ── Home ────────────────────────────────────────────────────────────────── */
.my-counter-card { background:linear-gradient(160deg,#1a1a1a 0%,#222 100%);
  border-bottom:1px solid var(--border); padding:32px 20px 24px; text-align:center; }
.my-name { font-size:22px; font-weight:800; }
.my-team { font-size:13px; font-weight:700; color:var(--green); min-height:20px; margin:4px 0 16px; }

.counter-row { display:flex; align-items:center; justify-content:center; gap:0; margin-bottom:6px; }
.count-col { text-align:center; padding:0 16px; }
.count-sep { width:1px; height:60px; background:var(--border); flex-shrink:0; }
.my-count { font-size:80px; font-weight:900; color:var(--primary); line-height:1; letter-spacing:-4px; }
.my-today { font-size:48px; font-weight:900; color:var(--text); line-height:1; }
.fire-icon { font-size:30px; vertical-align:middle; margin-right:2px; }
#my-today-num { color:var(--primary); }
.my-label { font-size:11px; text-transform:uppercase; letter-spacing:2px; color:var(--muted); margin-top:4px; }

.pace-row { font-size:13px; color:var(--muted); margin:8px 0 4px; min-height:18px; }
.pace-row span { color:var(--text); font-weight:700; }

.blackout-warning { background:rgba(255,60,0,.15); border:1.5px solid var(--danger);
  border-radius:10px; padding:10px 14px; margin:10px 0 4px; font-size:13px; font-weight:700;
  color:var(--danger); text-align:center; line-height:1.4; }
.blackout-warning.rate { border-color:var(--warn); color:var(--warn);
  background:rgba(255,170,0,.12); }

.my-controls { display:flex; gap:14px; justify-content:center; margin-top:18px; }
.counter-btn { border-radius:50%; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:transform .1s; }
.counter-btn:active { transform:scale(.88); }
.counter-btn-add { width:76px; height:76px; font-size:42px; font-weight:300;
  background:var(--primary); color:#fff; box-shadow:0 6px 24px rgba(255,107,0,.4); }
.counter-btn-remove { width:76px; height:76px; font-size:42px; font-weight:300;
  background:transparent; color:var(--danger); border:2.5px solid var(--danger); }
.counter-btn-photo { width:52px; height:52px; font-size:22px;
  background:var(--bg-card2); color:var(--text); border:1.5px solid var(--border); }

.others-section { padding:20px 16px; }
.section-title { font-size:11px; text-transform:uppercase; letter-spacing:2px;
  color:var(--muted); font-weight:700; margin-bottom:12px; }
.others-list { display:flex; flex-direction:column; gap:8px; }

.other-row { background:var(--bg-card); border-radius:14px; padding:12px 14px;
  display:flex; align-items:center; gap:10px; }
.other-info { flex:1; min-width:0; }
.other-name { font-size:15px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.other-team  { font-size:11px; color:var(--green); font-weight:600; }
.other-counts { display:flex; flex-direction:column; align-items:flex-end; gap:1px; min-width:48px; }
.other-total { font-size:18px; font-weight:900; color:var(--primary); }
.other-today { font-size:11px; color:var(--muted); font-weight:600; }

.other-btns { display:flex; gap:6px; }
.other-add-btn { width:38px; height:38px; border-radius:50%; background:var(--primary); border:none;
  color:#fff; font-size:22px; cursor:pointer; display:flex; align-items:center; justify-content:center;
  flex-shrink:0; transition:transform .1s,background .1s; }
.other-add-btn:active { transform:scale(.85); background:var(--pri-dk); }
.other-photo-btn { width:32px; height:32px; border-radius:50%; background:var(--bg-card2);
  border:1.5px solid var(--border); color:var(--muted); font-size:14px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:transform .1s; }
.other-photo-btn:active { transform:scale(.85); }

/* ── Board ───────────────────────────────────────────────────────────────── */
.board-header { padding:20px 16px 12px; display:flex; justify-content:space-between;
  align-items:center; border-bottom:1px solid var(--border); }
.board-header h1 { font-size:28px; font-weight:900; }
.toggle-group { display:flex; background:var(--bg-card2); border-radius:10px; padding:3px; }
.toggle-btn { background:none; border:none; color:var(--muted); font-size:13px; font-weight:700;
  padding:7px 14px; border-radius:8px; cursor:pointer; transition:all .15s; }
.toggle-btn.active { background:var(--primary); color:#fff; }
.board-totals { padding:8px 16px 4px; font-size:12px; color:var(--muted); }
.leaderboard-list { padding:12px 16px; }

.team-group { margin-bottom:22px; }
.team-label { font-size:11px; text-transform:uppercase; letter-spacing:1.5px; color:var(--muted);
  font-weight:700; display:flex; justify-content:space-between; align-items:center;
  padding:6px 0 10px; }
.team-label-right { display:flex; gap:8px; align-items:center; }
.team-label-total { color:var(--primary); }
.team-rank { display:inline-block; font-size:10px; font-weight:900; color:var(--bg);
  background:var(--muted); border-radius:4px; padding:1px 5px; margin-right:6px;
  vertical-align:middle; line-height:16px; }

.lb-row { background:var(--bg-card); border-radius:14px; padding:12px 14px;
  display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.lb-row.is-me { border:2px solid var(--primary); }
.lb-rank { font-size:13px; font-weight:900; color:var(--muted); width:22px; text-align:center; flex-shrink:0; }
.lb-rank.r1 { color:#FFD700; } .lb-rank.r2 { color:#C0C0C0; } .lb-rank.r3 { color:#CD7F32; }
.lb-badges { display:flex; gap:2px; flex-shrink:0; }
.badge-chip { font-size:16px; line-height:1; }
.lb-name { flex:1; font-size:15px; font-weight:700; min-width:0; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis; }
.lb-counts { display:flex; flex-direction:column; align-items:flex-end; gap:1px; }
.lb-count { font-size:20px; font-weight:900; color:var(--primary); }
.lb-today-count { font-size:11px; color:var(--muted); font-weight:600; }
.lb-add-btn { width:34px; height:34px; border-radius:50%; background:var(--bg-card2);
  border:1.5px solid var(--border); color:var(--primary); font-size:18px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:background .1s,transform .1s;
  flex-shrink:0; }
.lb-add-btn:active { background:var(--primary); color:#fff; transform:scale(.85); }

/* ── Live feed ───────────────────────────────────────────────────────────── */
.live-section { padding:16px 16px 4px; }
.live-feed { max-height:220px; overflow-y:auto; display:flex; flex-direction:column; gap:6px; }
.live-event { background:var(--bg-card); border-radius:10px; padding:10px 14px;
  display:flex; justify-content:space-between; align-items:baseline; gap:10px;
  font-size:14px; font-weight:600; animation:slideIn .25s ease; }
.live-event-time { font-size:11px; color:var(--muted); flex-shrink:0; }
@keyframes slideIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }

/* ── Timeline ────────────────────────────────────────────────────────────── */
.timeline-section { padding:16px; }
.timeline-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.timeline-header .section-title { margin-bottom:0; }
.timeline-mode-select { width:auto; padding:8px 32px 8px 12px; font-size:13px;
  background-color:var(--bg-card); }
.timeline-chart { width:100%; overflow-x:auto; }
.timeline-svg { width:100%; height:200px; display:block; }
.timeline-legend { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.legend-item { display:flex; align-items:center; gap:5px; font-size:12px; color:var(--muted); }
.legend-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }

.timeline-photos { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-top:14px; }
.photo-thumb { aspect-ratio:1; border-radius:8px; overflow:hidden; cursor:pointer;
  background:var(--bg-card); border:1px solid var(--border); }
.photo-thumb img { width:100%; height:100%; object-fit:cover; }
.photo-thumb-info { font-size:10px; color:var(--muted); padding:4px 6px; text-align:center; }

/* ── Days / Sessions ─────────────────────────────────────────────────────── */
.days-header { padding:24px 16px 12px; border-bottom:1px solid var(--border); }
.days-header h1 { font-size:28px; font-weight:900; }
/* .session-chevron is shared by the expandable event cards */
.session-chevron { font-size:12px; color:var(--muted); transition:transform .2s; }
.recap-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-bottom:14px; }
.recap-stat { background:var(--bg-card2); border-radius:10px; padding:10px 12px; }
.recap-stat-val { font-size:16px; font-weight:900; color:var(--primary); }
.recap-stat-lbl { font-size:11px; color:var(--muted); margin-top:2px; }

.session-timeline-btn { font-size:13px; color:var(--primary); background:none; border:none;
  cursor:pointer; padding:0; font-weight:700; }
.session-sub-chart { margin-top:10px; }

.session-photo-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; margin-top:10px; }

/* ── Profile ─────────────────────────────────────────────────────────────── */
.profile-container { padding:24px 16px; max-width:420px; margin:0 auto;
  display:flex; flex-direction:column; gap:16px; }
.profile-container h1 { font-size:28px; font-weight:900; }
.profile-card { background:var(--bg-card); border-radius:16px; padding:24px; text-align:center; }
.profile-name { font-size:26px; font-weight:900; margin-bottom:6px; }
.profile-team  { color:var(--green); font-weight:700; min-height:22px; margin-bottom:16px; }
.profile-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.stat-item { background:var(--bg-card2); border-radius:10px; padding:12px 8px; }
.stat-value { font-size:24px; font-weight:900; color:var(--primary); }
.stat-label { font-size:11px; color:var(--muted); margin-top:3px; }
.profile-section { display:flex; flex-direction:column; gap:0; }
.profile-section .section-title { margin-bottom:10px; }

.blackout-config-view { background:var(--bg-card); border-radius:12px; padding:14px 16px;
  font-size:13px; display:flex; flex-direction:column; gap:8px; }
.bcv-row { display:flex; justify-content:space-between; }
.bcv-label { color:var(--muted); }
.bcv-val { font-weight:700; color:var(--text); }
.bcv-text { font-style:italic; color:var(--warn); font-size:12px; }

/* ── Overlay (admin + photo) ─────────────────────────────────────────────── */
.overlay { position:fixed; inset:0; background:var(--bg); z-index:200;
  overflow-y:auto; -webkit-overflow-scrolling:touch; }
.overlay-inner { max-width:480px; margin:0 auto; padding-bottom:40px; }
.overlay-header { display:flex; justify-content:space-between; align-items:center;
  padding:16px 16px 12px; border-bottom:1px solid var(--border); position:sticky; top:0;
  background:var(--bg); z-index:1; }
.overlay-header h2 { font-size:20px; font-weight:900; }
.btn-back { background:none; border:none; color:var(--primary); font-size:15px;
  font-weight:700; cursor:pointer; padding:4px 0; }

/* Admin */
.admin-login { padding:32px 16px; display:flex; flex-direction:column; gap:16px; align-items:center; }
.admin-subtitle { color:var(--muted); font-size:15px; }
.pin-row { display:flex; gap:10px; width:100%; max-width:320px; }
.pin-row input { flex:1; }
.pin-btn { width:auto; padding:14px 22px; flex-shrink:0; }
.error-text { color:var(--danger); font-size:13px; font-weight:700; }

.admin-tabs { display:flex; border-bottom:1px solid var(--border); padding:0 16px; gap:4px; }
.admin-tab-btn { background:none; border:none; border-bottom:2px solid transparent;
  color:var(--muted); font-size:13px; font-weight:700; padding:12px 12px;
  cursor:pointer; transition:all .15s; margin-bottom:-1px; }
.admin-tab-btn.active { color:var(--primary); border-bottom-color:var(--primary); }
.admin-tab-content { padding:16px; display:flex; flex-direction:column; gap:10px; }

.person-admin-row { background:var(--bg-card); border-radius:12px; padding:12px 14px;
  display:flex; flex-direction:column; gap:8px; }
.person-admin-info { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.person-admin-info strong { font-size:15px; }
.team-chip { font-size:11px; font-weight:700; color:var(--bg); background:var(--green);
  border-radius:5px; padding:1px 7px; }
.person-admin-meta { font-size:12px; color:var(--muted); }
.person-admin-actions { display:flex; gap:7px; flex-wrap:wrap; }
.btn-adm { padding:8px 14px; border-radius:8px; border:none; font-size:12px;
  font-weight:700; cursor:pointer; transition:opacity .15s; }
.btn-adm:active { opacity:.7; }
.btn-adm-neutral { background:var(--bg-card2); color:var(--text); border:1px solid var(--border); }
.btn-adm-danger  { background:rgba(255,51,51,.15); color:var(--danger); border:1px solid var(--danger); }

.blackout-form { background:var(--bg-card); border-radius:12px; padding:16px;
  display:flex; flex-direction:column; gap:10px; }
.blackout-form label { font-size:13px; color:var(--muted); font-weight:600; }
.blackout-form input[type=checkbox] { width:auto; padding:0; border:none; }
.bf-row { display:flex; align-items:center; gap:10px; }
.bf-row label { margin:0; }

.admin-info-text { font-size:13px; color:var(--muted); line-height:1.5; }
.admin-section-title { font-size:13px; font-weight:800; text-transform:uppercase;
  letter-spacing:1px; color:var(--muted); margin-top:6px; }

/* ── Photo modal ─────────────────────────────────────────────────────────── */
.photo-modal-inner { display:flex; flex-direction:column; align-items:center;
  justify-content:center; min-height:100dvh; padding:20px; }
.btn-close-modal { position:fixed; top:16px; right:16px; width:40px; height:40px;
  border-radius:50%; background:var(--bg-card); border:1.5px solid var(--border);
  color:var(--text); font-size:18px; cursor:pointer; display:flex;
  align-items:center; justify-content:center; z-index:1; }
#modal-photo { max-width:100%; max-height:75dvh; border-radius:12px; object-fit:contain; }
.modal-caption { margin-top:14px; font-size:13px; color:var(--muted); text-align:center; }

/* ── Bottom nav ──────────────────────────────────────────────────────────── */
.bottom-nav { position:fixed; bottom:0; left:0; right:0; height:var(--nav-h);
  background:var(--bg-card); border-top:1px solid var(--border);
  display:flex; z-index:100; padding-bottom:env(safe-area-inset-bottom,0); }
.nav-btn { flex:1; background:none; border:none; color:var(--muted); font-size:10px;
  cursor:pointer; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:2px; transition:color .15s; }
.nav-btn.active { color:var(--primary); }
.nav-icon { font-size:20px; }

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast { position:fixed; bottom:calc(var(--nav-h)+16px); left:50%;
  transform:translateX(-50%) translateY(4px); background:#333; color:#fff;
  padding:10px 22px; border-radius:24px; font-size:14px; font-weight:600;
  z-index:300; pointer-events:none; white-space:nowrap; opacity:0;
  transition:opacity .2s,transform .2s; }
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes pop { 0%{transform:scale(1)} 40%{transform:scale(1.18)} 100%{transform:scale(1)} }
.pop { animation:pop .22s ease; }
.empty { color:var(--muted); font-size:14px; }

/* ── Events ──────────────────────────────────────────────────────────────── */
.event-admin { background:var(--bg-card); border-radius:16px; padding:16px; margin-bottom:16px; }
.event-create-form { display:flex; flex-direction:column; gap:10px; }
.event-dt { font-size:12px; color:var(--muted); display:flex; flex-direction:column; gap:4px; }
.events-list { display:flex; flex-direction:column; gap:12px; padding-bottom:16px; }
.event-card { background:var(--bg-card); border-radius:16px; overflow:hidden; }
.event-card.open { border:1px solid var(--primary); }
.event-card-header { padding:14px 16px; display:grid;
  grid-template-columns:1fr auto; grid-template-areas:"title chev" "sub chev" "meta chev";
  gap:2px 8px; align-items:center; cursor:pointer; }
.event-card-title { grid-area:title; font-weight:800; font-size:16px; }
.event-card-sub  { grid-area:sub;  font-size:12px; color:var(--muted); }
.event-card-meta { grid-area:meta; font-size:12px; color:var(--muted); }
.event-card .session-chevron { grid-area:chev; }
.event-card.open .session-chevron { transform:rotate(180deg); }
.event-you { color:var(--primary); font-weight:700; }
.event-status { font-size:10px; font-weight:800; padding:2px 6px; border-radius:6px; vertical-align:middle; }
.event-status.live     { background:var(--primary); color:#fff; }
.event-status.upcoming { background:var(--bg-card2); color:var(--muted); }
.event-status.ended    { background:var(--bg-card2); color:var(--muted); }
.event-card-body { padding:0 16px 16px; display:none; }
.event-card.open .event-card-body { display:block; }
.event-actions { display:flex; gap:10px; margin-bottom:12px; }
.event-actions .btn { width:auto; flex:1; }

/* ── Timeline filter chips ───────────────────────────────────────────────── */
.timeline-filter { margin:10px 0 4px; }
.tl-quick-row { display:flex; gap:8px; margin-bottom:8px; flex-wrap:wrap; }
.tl-quick { width:auto; background:var(--bg-card2); border:1px solid var(--border); color:var(--text);
  font-size:12px; font-weight:600; padding:5px 10px; border-radius:8px; cursor:pointer; }
.tl-quick:active { background:var(--primary); border-color:var(--primary); color:#fff; }
.tl-chips { display:flex; flex-wrap:wrap; gap:6px; max-height:96px; overflow-y:auto; }
.tl-chip { width:auto; background:var(--bg-card); border:1px solid var(--border); color:var(--muted);
  font-size:12px; padding:5px 10px; border-radius:20px; cursor:pointer; }
.tl-chip.team { border-style:dashed; }
.tl-chip.active { background:var(--primary); border-color:var(--primary); color:#fff; font-weight:600; }

/* ── Photo corner badge (which bomb number) ──────────────────────────────── */
.photo-thumb { position:relative; }
.photo-badge { position:absolute; right:4px; bottom:4px; display:flex; flex-direction:column;
  align-items:flex-end; line-height:1.1; background:rgba(0,0,0,.62); border-radius:6px;
  padding:2px 5px; pointer-events:none; }
.photo-badge:empty { display:none; }
.photo-badge .pb-main { font-size:12px; font-weight:800; color:#fff; }
.photo-badge .pb-sub  { font-size:9px; color:var(--primary); font-weight:700; }
.modal-photo-wrap { position:relative; display:inline-block; max-width:100%; }
.modal-badge { right:8px; bottom:8px; padding:4px 8px; }
.modal-badge .pb-main { font-size:18px; }
.modal-badge .pb-sub  { font-size:12px; }

/* ── Friends (star) ──────────────────────────────────────────────────────── */
.star-btn { width:30px; height:34px; background:none; border:none; cursor:pointer;
  font-size:20px; line-height:1; color:var(--muted); flex-shrink:0; padding:0;
  transition:transform .1s; }
.star-btn.on { color:#ffd23f; }
.star-btn:active { transform:scale(1.3); }

/* ── Leaderboard scope toggle ────────────────────────────────────────────── */
.scope-group { margin:0 16px 4px; }
.scope-btn { flex:1; background:none; border:none; color:var(--muted); font-size:13px; font-weight:700;
  padding:7px 8px; border-radius:8px; cursor:pointer; transition:background .1s,color .1s; }
.scope-btn.active { background:var(--primary); color:#fff; }

/* ── Home: live-event count ──────────────────────────────────────────────── */
.my-event { margin:4px 0 2px; font-size:14px; color:var(--primary);
  background:rgba(255,107,0,.12); border-radius:10px; padding:6px 12px; display:inline-block; }
.my-event strong { color:#fff; }

/* ── Admin: people +/- and team, teams tab ───────────────────────────────── */
.person-admin-bombs { display:flex; align-items:center; gap:8px; }
.btn-adm-round { width:38px; height:38px; border-radius:50%; padding:0; font-size:20px;
  background:var(--bg-card2); color:var(--text); border:1px solid var(--border); flex-shrink:0; }
.admin-team-select { flex:1; min-width:0; padding:8px 10px; font-size:13px;
  background-color:var(--bg-card2); }
.admin-team-create { display:flex; gap:8px; margin-bottom:12px; }
.admin-team-create input { flex:1; }
.team-admin-row { background:var(--bg-card); border-radius:12px; padding:10px 12px;
  display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.team-rename-input { flex:1; min-width:120px; padding:8px 10px; font-size:14px; font-weight:700;
  background-color:var(--bg-card2); }

/* ── Board event picker + timeline source picker ─────────────────────────── */
.board-event-select { margin:0 16px 4px; width:calc(100% - 32px); padding:9px 12px;
  font-size:14px; font-weight:600; background-color:var(--bg-card2); }
.timeline-source-select { width:auto; padding:8px 30px 8px 12px; font-size:13px;
  background-color:var(--bg-card); font-weight:600; }

/* ── Rich recap (podium + superlatives) ──────────────────────────────────── */
.recap { margin-top:10px; }
.recap-stat-sub { color:var(--muted); font-weight:600; }
.recap-meta { text-align:center; font-size:12px; color:var(--muted); margin:4px 0 12px; }
.recap-podium { display:flex; justify-content:center; align-items:flex-end; gap:8px; margin:6px 0 4px; }
.podium-spot { background:var(--bg-card2); border-radius:12px; padding:10px 8px 8px; text-align:center;
  flex:1; max-width:120px; border:1px solid var(--border); }
.podium-1 { order:2; border-color:#ffd23f; background:rgba(255,210,63,.10); transform:translateY(-6px); }
.podium-2 { order:1; }
.podium-3 { order:3; }
.podium-medal { font-size:26px; line-height:1; }
.podium-name  { font-size:14px; font-weight:800; margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.podium-count { font-size:13px; font-weight:900; color:var(--primary); }
.podium-place { font-size:9px; letter-spacing:1px; color:var(--muted); margin-top:2px; }
.event-recap-head { text-align:center; font-size:18px; font-weight:900; margin:4px 0 2px; }
.event-recap-head.ended { color:#ffd23f; }
.event-when { text-align:center; font-size:12px; color:var(--muted); margin-bottom:8px; }

/* ── Admin activity / moderation ─────────────────────────────────────────── */
.person-admin-row.haywire { border:1px solid var(--danger); background:rgba(255,51,51,.06); }

/* ── Event join prompts (home + identity) ────────────────────────────────── */
.my-event.join { background:none; padding:0; }
.event-join-btn { width:100%; background:var(--primary); color:#fff; border:none; border-radius:10px;
  padding:10px 14px; font-size:14px; font-weight:800; cursor:pointer; margin-top:2px; }
.event-join-btn:active { transform:scale(.97); }
.event-join-btn strong { font-weight:900; }
.identity-event-banner { width:100%; background:rgba(255,107,0,.12); border:1px solid var(--primary);
  color:var(--primary); border-radius:12px; padding:10px 14px; font-size:14px; text-align:center;
  margin-bottom:18px; }
.identity-event-banner strong { color:#fff; }

/* ── About / privacy box ─────────────────────────────────────────────────── */
.about-box { background:var(--bg-card); border:1px solid var(--border); border-radius:12px; padding:12px 14px; }
.about-box summary { cursor:pointer; font-size:11px; text-transform:uppercase; letter-spacing:2px;
  color:var(--muted); font-weight:700; }
.about-box[open] summary { margin-bottom:10px; }
.about-box p { font-size:13px; color:var(--muted); line-height:1.5; margin-top:8px; }
.about-box p:first-of-type { margin-top:0; }
.about-box strong { color:var(--text); }
