/* The wall: designed at 900 x 1320 and scaled to fit the browser source. */
html, body { height: 100%; overflow: hidden; }
html.obs, html.obs body { background: transparent; }

.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 1320px;
  transform-origin: center center;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-rows: 60px 1200px 44px;
  gap: 8px;
}
.hud { display: flex; gap: 10px; justify-content: center; align-items: center; padding: 0 12px; min-width: 0; }
.hud .pill { font-size: 24px; padding: 9px 20px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hud.dense .pill { font-size: 20px; padding: 8px 14px; }
.hud.packed .pill { font-size: 17px; padding: 7px 11px; letter-spacing: 0.02em; }

.board-box { position: relative; width: 900px; height: 1200px; }
#board { display: block; width: 900px; height: 1200px; }

.banner {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: 660px;
  text-align: center;
  background: var(--scrim);
  border: 3px solid var(--gold);
  border-radius: 24px;
  padding: 26px 28px 30px;
  display: grid;
  gap: 12px;
}
.banner h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.08;
  color: var(--gold);
  text-wrap: balance;
}
.banner p { margin: 0; font-size: 25px; }
.banner .fine { color: var(--ink-dim); font-size: 20px; }
.banner .eyebrow { font-size: 19px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); }
.banner .brand-logo { display: block; max-height: 64px; max-width: 260px; margin: 0 auto 10px; object-fit: contain; }
.banner .brand-logo[hidden] { display: none; }
.hud .pill.brand { background: var(--brand, var(--gold)); }
.banner.danger { border-color: var(--pink); }
.banner.danger h2 { color: var(--pink); }
.banner.featured h2 { color: var(--ink); }
.banner.featured #banner-body { font-size: 36px; font-weight: 700; color: var(--gold); text-wrap: balance; overflow-wrap: anywhere; }
#banner-extra:empty { display: none; }

.join-count { font-family: var(--font-display); font-size: 96px; line-height: 1; font-variant-numeric: tabular-nums; }
.join-count small { font-size: 0.38em; color: var(--ink-dim); }
.join-split { margin: 0; font-size: 22px; font-weight: 700; color: var(--ink-dim); }
.joiners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.joiners li {
  font-size: 21px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--raised);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
/* The winners' wall: every winner's message together at the end of a show. */
.howto { margin: 0; padding: 0 0 0 1.3em; text-align: left; display: grid; gap: 10px; font-size: 22px; line-height: 1.3; color: var(--ink); }
.howto li::marker { color: var(--gold); font-weight: 800; }
.howto strong { color: var(--gold); }
.winwall-view { max-height: 600px; overflow: hidden; }
.winwall { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; text-align: left; }
.winwall li { padding: 7px 12px; border-radius: 10px; background: var(--raised); font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.winwall .who { font-weight: 800; color: var(--gold); margin-right: 8px; }
.winwall .said { color: var(--ink); }
.winwall.many li { padding: 5px 10px; font-size: 16px; }
/* Longer lists drift up and back so every message gets its moment. */
.winwall.scroll { animation: winwall-drift var(--wwdur, 20s) ease-in-out infinite alternate; }
@keyframes winwall-drift { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(var(--wwshift, 0px)); } }
@media (prefers-reduced-motion: reduce) { .winwall.scroll { animation: none; } }
.tally div { background: var(--panel); border: 2px solid var(--line); border-radius: 12px; padding: 10px 6px; display: grid; gap: 2px; }
.tally .n { font-family: var(--font-display); font-size: 38px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tally .k { font-size: 17px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.tally .lead { border-color: var(--gold); }
.tally .lead .n { color: var(--gold); }
.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.reel { background: var(--stage); border: 3px solid var(--line); border-radius: 14px; padding: 14px 6px; display: grid; gap: 6px; min-height: 112px; align-content: center; }
.reel .k { font-size: 15px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
.reel .v { font-family: var(--font-display); font-size: 25px; line-height: 1.15; color: var(--ink-dim); }
.reel.locked { border-color: var(--gold); }
.reel.locked .v { color: var(--gold); }
.reel.locked.bad { border-color: var(--pink); }
.reel.locked.bad .v { color: var(--pink); }

.strip {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-dim);
  white-space: nowrap;
}
.strip .cmd { font-family: var(--font-display); font-weight: 400; color: var(--gold); }
.strip .sw { display: inline-block; width: 16px; height: 16px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; }

.notice {
  position: fixed;
  left: 12px;
  bottom: 12px;
  max-width: min(92vw, 520px);
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--scrim);
  border: 2px solid var(--pink);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

/* Shouts: a bought name slides across the top of the stage */
.shout {
  position: absolute; left: 0; top: 54px; z-index: 6; pointer-events: none;
  font-family: var(--font-display); font-weight: 400; font-size: 44px; letter-spacing: 0.04em; white-space: nowrap;
  color: var(--ink); text-shadow: 0 0 18px var(--aqua), 0 2px 0 #000;
  padding: 6px 22px; border-radius: 999px; background: rgba(10, 12, 30, 0.82); border: 2px solid var(--aqua);
  animation: shout-slide 3s linear forwards;
}
.shout.mega { font-size: 64px; color: var(--gold); border-color: var(--gold); text-shadow: 0 0 26px var(--gold), 0 3px 0 #000; }
.shout.buy { font-size: 40px; color: var(--gold); border-color: var(--pink); text-shadow: 0 0 18px var(--pink), 0 2px 0 #000; }
.shout[hidden] { display: none; }
@keyframes shout-slide {
  0% { transform: translateX(900px); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateX(-100%); opacity: 0; }
}
.strip .ticker { color: var(--ink-dim); }
@media (prefers-reduced-motion: reduce) {
  .shout { animation: shout-fade 3s linear forwards; left: 50%; transform: translateX(-50%); }
  @keyframes shout-fade { 0% { opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; } }
}

/* Weekly leaderboard in the lobby banner */
.board { width: 100%; }
.board-head { margin: 0 0 8px; font-size: 19px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); }
.board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board-list li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; font-size: 24px; padding: 6px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }
.board-list li.top { background: var(--gold); color: var(--stage); }
.board-list .rank { font-family: var(--font-display); font-weight: 400; font-size: 26px; }
.board-list .who { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.board-list .pts { font-weight: 800; }
.board-titles { margin: 8px 0 0; font-size: 19px; font-weight: 700; color: var(--aqua); }

/* Sponsor (Pro): the corner tag while a sponsor is on, and the card at the start of each reveal */
.sponsor-tag { position: absolute; left: 14px; top: 8px; z-index: 7; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; max-width: 170px; padding: 5px 9px; border-radius: 10px; background: rgba(10, 12, 30, 0.78); border: 1px solid var(--line); pointer-events: none; }
.sponsor-tag[hidden] { display: none; }
.sponsor-tag img { grid-row: 1 / span 2; max-height: 34px; max-width: 48px; object-fit: contain; }
.sponsor-tag .k { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); }
.sponsor-tag .n { font-size: 14px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sponsor-card { position: absolute; left: 50%; top: 40%; z-index: 9; transform: translate(-50%, -50%); width: 720px; min-height: 330px; display: flex; flex-direction: column; justify-content: center; padding: 34px 40px; box-sizing: border-box; text-align: center; border-radius: 22px; background: #0c0a1e; border: 3px solid var(--brand, var(--gold)); box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55); pointer-events: none; }
.sponsor-card[hidden] { display: none; }
.sponsor-card .k { margin: 0 0 12px; font-size: 20px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); }
.sponsor-card img { display: block; max-height: 120px; max-width: 420px; margin: 0 auto 12px; object-fit: contain; }
.sponsor-card .n { margin: 0; font-family: var(--font-display); font-size: 64px; line-height: 1.05; color: var(--brand, var(--gold)); }
.sponsor-card.go { animation: sponsor-card 2.8s ease forwards; }
@keyframes sponsor-card { 0% { opacity: 0; transform: translate(-50%, -46%) scale(0.96); } 10% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sponsor-card.go { animation: none; } }
