/* ---- community: counters, wall, leaderboard, share page ---- */
.wall-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.wall-cta .btn { height: 46px; }
.community .counter-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.counter { background: rgba(212,175,55,.08); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-align: center; }
.counter b { display: block; font-family: Anton, Impact, sans-serif; font-size: clamp(32px, 7vw, 52px); color: var(--gold); line-height: 1; letter-spacing: .02em; }
.counter span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; }
.community-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.wall-item { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--navy-2); color: var(--ink); text-decoration: none; transition: transform .15s, border-color .15s; }
.wall-item:hover { transform: translateY(-3px); border-color: var(--gold); }
.wall-item img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.wall-item span { display: block; padding: 8px 10px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wall-item b { color: var(--ink); }
.board { list-style: none; counter-reset: b; padding: 0; margin: 12px 0 0; }
.board li { counter-increment: b; display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.board li:not(.muted)::before { content: counter(b); color: var(--gold); font-weight: 800; width: 22px; flex: none; }
.board li b { flex: 1; }
.board li span { color: var(--muted); white-space: nowrap; }
.share-page { text-align: center; }
.share-img { width: 100%; max-width: 540px; border-radius: 16px; border: 1px solid var(--line); margin: 20px auto; display: block; }
.stats-table { width: 100%; border-collapse: collapse; margin: 10px 0 28px; }
.stats-table td, .stats-table th { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
@media (max-width: 760px) {
  .community-grid { grid-template-columns: 1fr; }
  .community .counter-row { gap: 8px; }
  .counter { padding: 12px 6px; }
}

/* ---- ETA, era guidance, saved library ---- */
.eta { color: var(--muted); font-size: 13px; margin-top: 4px; min-height: 16px; text-align: right; }
.era-steps { margin: 14px 0 0; padding-left: 20px; color: #cfd6e6; font-size: 14px; line-height: 1.55; display: grid; gap: 4px; }
.era-steps b { color: var(--gold); }
.era-hint { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: rgba(212,175,55,.1); border: 1px solid var(--gold); border-radius: 14px; padding: 14px 16px; margin: 0 0 18px; }
.era-hint span { flex: 1; min-width: 220px; }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; }
#timelineTicks span.is-then, #timelineTicks span.is-mid { color: var(--navy-deep); background: var(--gold); border-radius: 6px; padding: 0 4px; }
#timelineTicks span.is-mid { background: var(--gold-soft); }
.lib-list { display: grid; gap: 10px; margin-top: 14px; }
.lib-item { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: var(--navy-2); }
.lib-thumb { width: 64px; height: 80px; flex: none; border-radius: 8px; background: var(--navy-deep) center/cover no-repeat; }
.lib-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lib-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-info span, .lib-info small { color: var(--muted); font-size: 13px; }
.lib-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .lib-item { flex-wrap: wrap; } .lib-actions { width: 100%; } .lib-actions .btn { flex: 1; } }
#pickMiddle { font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }

/* ---- delivery ---- */
.hint { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; font-weight: 400; }
.notify-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.notify-row input { flex: 1 1 200px; min-width: 0; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--navy-deep); color: var(--ink); padding: 0 14px; font: inherit; }
.notify-row .btn { height: 48px; }
.notify-row .hidden, .notify-row input.hidden { display: none; }
.results-grid .media img, .results-grid .media video { display: block; width: 100%; background: #000; }
.lookup .notify-block { flex: 1 1 100%; }

/* ---- instant feedback while working ---- */
#go.busy { position: relative; padding-left: 52px; opacity: 1; cursor: progress; }
#go.busy::before { content: ''; position: absolute; left: 20px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 3px solid rgba(10,26,58,.25); border-top-color: #0A1A3A; animation: pbspin .8s linear infinite; }
@keyframes pbspin { to { transform: rotate(360deg); } }
#progress.working .bar { position: relative; overflow: hidden; }
#progress.working .bar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(241,212,122,.35), transparent); transform: translateX(-100%); animation: pbshimmer 1.4s ease-in-out infinite; }
@keyframes pbshimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { #go.busy::before, #progress.working .bar::after { animation-duration: 3s; } }
.btn.danger { border-color: #ff8a7a; color: #ffb4a8; }

/* ---- community v2 ---- */
.community .counter-row { grid-template-columns: repeat(4, 1fr); }
.ticker { overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: rgba(212,175,55,.06); margin: 6px 0 18px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: inline-flex; gap: 36px; padding: 10px 0; white-space: nowrap; animation: pbticker 40s linear infinite; }
.ticker .tick { color: var(--muted); font-size: 14px; } .ticker .tick b { color: var(--gold); }
@keyframes pbticker { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
.wall-item { position: relative; }
.wall-item .badge { position: absolute; top: 8px; left: 8px; background: var(--gold); color: var(--navy-deep); font-weight: 800; font-size: 10px; letter-spacing: .08em; padding: 4px 8px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.wall-item .cap { display: block; padding: 8px 10px; font-size: 12px; color: var(--muted); }
.wall-item .cap b { display: block; color: var(--ink); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boards { display: grid; gap: 24px; align-content: start; }
.board li em { color: var(--gold); font-style: normal; font-weight: 800; }
@media (max-width: 760px) { .community .counter-row { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
.wall-item .badge.score { left: auto; right: 8px; background: var(--navy-deep); color: var(--gold); border: 1px solid var(--gold); }
