.game-wrap { max-width: 1000px; padding-top: 18px; padding-bottom: 40px; }
.game-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.game-title { margin: 0; color: var(--gold); font-size: clamp(24px, 4vw, 34px); font-weight: 600; }
.band-bar { list-style: none; padding: 0; margin: 14px 0 10px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.band-bar li {
  display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px;
  border: 1px solid rgba(201,162,76,.3); color: #9c927f; font-size: 14px; opacity: .55; transition: all .3s;
}
.band-bar li .ic { width: 28px; height: 28px; border-radius: 50%; background: var(--parchment); padding: 3px; display: grid; place-items: center; filter: grayscale(1); }
.band-bar li .ic svg { width: 100%; height: 100%; }
.band-bar li.joined { opacity: 1; color: var(--parchment); border-color: var(--gold); background: rgba(201,162,76,.15); }
.band-bar li.joined .ic { filter: none; }
.band-bar li.joined::after { content: "✓"; color: var(--gold); }

.stage-wrap { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgba(201,162,76,.5); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
#game { display: block; width: 100%; height: min(72vh, 620px); min-height: 380px; touch-action: none; background: #120d18; }
.toast {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%); max-width: calc(100% - 32px);
  background: rgba(13,10,20,.85); color: #ffe7a8; border: 1px solid var(--gold); border-radius: 999px;
  padding: 6px 16px; font-size: 16px; text-align: center; opacity: 0; transition: opacity .3s; pointer-events: none;
}
.toast.show { opacity: 1; }
.toast.bad { color: #ffb4b4; border-color: #c1272d; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(10,8,18,.55); }
.overlay .panel {
  max-width: 520px; text-align: center; color: var(--ink); border-radius: 18px; padding: 24px 22px;
  background: linear-gradient(180deg, var(--parchment), var(--parchment-2)); box-shadow: 0 0 0 3px var(--gold), 0 30px 60px rgba(0,0,0,.5);
  max-height: 100%; overflow: auto;
}
.overlay h2 { margin: 2px 0 10px; color: var(--navy); font-size: clamp(28px, 5vw, 40px); }
.overlay p { margin: 0 0 10px; }
.kicker-g { color: var(--wine) !important; letter-spacing: .2em; text-transform: uppercase; font-size: 12px; font-weight: 600; }
.controls { color: var(--ink-soft); font-size: 15px; }
.btn.big { font-size: 20px; padding: 10px 28px; margin-top: 6px; }
.overlay .btn:not(.solid) { color: var(--navy); border-color: var(--navy); }
.end-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  margin-top: 14px; padding: 14px 20px; border-radius: 14px; color: var(--ink);
  background: linear-gradient(180deg, var(--parchment), var(--parchment-2)); box-shadow: 0 0 0 2px var(--gold);
}
.end-bar h2 { margin: 2px 0 4px; color: var(--navy); font-size: clamp(22px, 3.6vw, 30px); }
.end-bar p { margin: 0; }
.end-bar .btn:not(.solid) { color: var(--navy); border-color: var(--navy); }
.end-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pad { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.pad button { font-size: 22px; padding: 12px 26px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
@media (hover: hover) and (pointer: fine) { .pad { display: none; } }

/* Hall of Fame */
.hof {
  max-width: 1000px; margin: 22px auto 40px; padding: 18px 20px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid rgba(201,162,76,.4);
  width: calc(100% - 32px);
}
.hof h2 { margin: 0; color: var(--gold); font-size: 24px; }
.hof-sub { margin: 2px 0 12px; color: #c8bfae; font-size: 15px; }
.hof-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: rank; }
.hof-list li {
  counter-increment: rank; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.04); color: var(--parchment);
}
.hof-list li::before { content: counter(rank); color: var(--gold); font-weight: 600; font-size: 18px; text-align: center; }
.hof-list li:nth-child(1)::before { content: "🥇"; } .hof-list li:nth-child(2)::before { content: "🥈"; } .hof-list li:nth-child(3)::before { content: "🥉"; }
.hof-list li.me { outline: 1px solid var(--gold); background: rgba(201,162,76,.12); }
.hof-list .who { font-weight: 600; } .hof-list .when { color: #9c927f; font-size: 13px; display: block; font-weight: 400; }
.hof-list .score { text-align: right; font-variant-numeric: tabular-nums; } .hof-list .score small { display: block; color: #c8bfae; font-size: 13px; }
.hof-list li.hof-empty { grid-template-columns: 1fr; color: #c8bfae; font-style: italic; } .hof-list li.hof-empty::before { content: none; }
.end-record { font-weight: 700; color: var(--wine) !important; font-size: 18px; margin-top: 4px !important; }
.band-bar li .ic img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.band-bar li .ic:has(img) { padding: 0; }
.band-bar li.joined .ic img { filter: none; }
.band-bar { gap: 6px; }
.band-bar li { font-size: 13px; }
.band-bar li .ic:has(img.cropped) { position: relative; overflow: hidden; }
.band-bar li .ic img.cropped { position: absolute; height: auto; max-width: none; border-radius: 0; }

.title-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.title-actions .btn.big { margin-top: 6px; }
