/* Party Hub: projector and phone. */
#sc-hub { position: relative; overflow: hidden; padding: 3vh 2vw 1.5vh; background: none; }
@keyframes hb-rise { to { transform: translateY(-120vh) rotate(360deg); } }
.hb { position: relative; z-index: 1; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1.6vh; height: 100%; }
.hb-head { display: flex; justify-content: space-between; align-items: center; gap: 2vw; }
.hb-stats { display: flex; gap: 1vw; font-weight: 800; font-size: 2.2vh; justify-content: flex-end; }
.hb-stats span { display: grid; justify-items: center; min-width: 12vw; padding: 1vh 1.2vw; border-radius: 1.4vh; background: linear-gradient(180deg, rgba(40, 26, 72, .9), rgba(14, 9, 26, .95)); box-shadow: inset 0 0 0 .2vh rgba(255, 216, 74, .3), 0 1vh 2.5vh rgba(0, 0, 0, .5); }
.hb-stats em { font-style: normal; font-size: 1.6vh; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.hb-stats span.bump { animation: hb-bump .7s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes hb-bump { 0% { transform: rotateX(0); } 40% { transform: rotateX(90deg) scale(1.08); box-shadow: inset 0 0 0 .3vh #ffd84a, 0 0 4vh rgba(255, 216, 74, .8); } 100% { transform: rotateX(0); } }
.hb-stats b { font-family: var(--display); font-size: 3.4vh; color: var(--gold); }
.hb-stats .jk b { color: #ffd84a; text-shadow: 0 0 2vh rgba(255, 216, 74, .6); }
.hb-body { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 1.6vw; min-height: 0; }
.hb-col { display: grid; align-content: start; gap: 1vh; min-height: 0; padding: 1.6vh 1.2vw; border-radius: 2vh; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 .2vh rgba(255, 255, 255, .06); overflow: hidden; }
.hb-col h3 { margin: 0; font-family: var(--display); font-size: 3vh; }
.hb-leaders { display: grid; gap: .7vh; }
.hb-row { display: grid; grid-template-columns: 4vh 1fr 8vw auto; align-items: center; gap: .8vw; padding: .7vh .8vw; border-radius: 1vh; background: rgba(255, 255, 255, .05); font-size: 2.2vh; }
.hb-row i { font-style: normal; font-weight: 900; text-align: center; font-size: 2.6vh; }
.hb-row b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-bar { height: 1.2vh; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.hb-bar em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb02e, #ffd84a, #fff, #ffd84a, #ffb02e); background-size: 250% 100%; transition: width .8s cubic-bezier(.2, .9, .3, 1); animation: hb-shimmer 2.5s linear infinite; }
@keyframes hb-shimmer { to { background-position: -250% 0; } }
.hb-row strong { font-family: var(--display); color: var(--gold); }
.hb-row:nth-child(1) { background: linear-gradient(90deg, rgba(255, 216, 74, .25), rgba(255, 255, 255, .04)); font-size: 2.6vh; box-shadow: inset 0 0 0 .2vh rgba(255,216,74,.4); animation: hb-lead 2.2s ease-in-out infinite; }
@keyframes hb-lead { 50% { box-shadow: inset 0 0 0 .2vh rgba(255,216,74,.8), 0 0 3vh rgba(255,216,74,.35); } }
.hb-row:nth-child(1) i { animation: hb-crown 1.6s ease-in-out infinite; display: inline-block; }
@keyframes hb-crown { 25% { transform: rotate(-12deg) scale(1.15); } 75% { transform: rotate(12deg) scale(1.15); } }
.hb-row.enter { animation: ct-toast .5s both; }
.hb-row.up { animation: hb-up 1.4s ease-out; } .hb-row.down { animation: hb-down 1.4s ease-out; }
@keyframes hb-up { 0%, 40% { background: rgba(47, 214, 131, .45); } }
@keyframes hb-down { 0%, 40% { background: rgba(255, 59, 92, .35); } }
.hb-row.me { box-shadow: inset 0 0 0 2px #7af0ff; }
.hb-reel { min-height: 26vh; display: grid; }
.hb-card { position: relative; display: grid; place-items: center; align-content: center; gap: 1.4vh; padding: 3vh 2vw; border-radius: 2vh; text-align: center;
    background: linear-gradient(160deg, rgba(122, 63, 196, .55), rgba(242, 112, 15, .35)); box-shadow: 0 1vh 3vh rgba(0, 0, 0, .5), inset 0 0 0 .3vh rgba(255, 255, 255, .15); animation: hb-flip .7s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes hb-flip { from { transform: perspective(80vh) rotateX(-80deg) scale(.9); opacity: 0; } }
.hb-card i { font-style: normal; font-size: 10vh; filter: drop-shadow(0 0 2vh rgba(255, 255, 255, .4)); animation: lt-bob 2s ease-in-out infinite; }
.hb-card b { font-family: var(--display); font-weight: 900; font-size: 4.2vh; line-height: 1.15; }
.hb-card span { color: var(--muted); font-weight: 700; }
.hb-card em { position: absolute; top: 1.4vh; right: 1.4vw; padding: .4vh 1vw; border-radius: 99px; background: #ff3b5c; font-style: normal; font-weight: 900; font-size: 2vh; animation: bg-pulse .6s infinite; }
.hb-card.fresh { box-shadow: 0 0 5vh rgba(255, 216, 74, .7), inset 0 0 0 .4vh #ffd84a; }
/* the reel card flips in like a departures board, inside a rotating rainbow border */
.hb-reel { perspective: 120vh; }
.hb-reel .hb-card { animation: hb-flapin .7s cubic-bezier(.3, 1.4, .5, 1) both; isolation: isolate; overflow: hidden; }
.hb-reel .hb-card::before { content: ""; position: absolute; inset: -60%; z-index: -2; background: conic-gradient(#ff4fd8, #ffd84a, #2fd683, #31c6ff, #b14fe0, #ff4fd8); animation: hb-spin 5s linear infinite; }
.hb-reel .hb-card::after { content: ""; position: absolute; inset: .45vh; z-index: -1; border-radius: 1.6vh; background: linear-gradient(180deg, #221540, #0e0a1c); }
@keyframes hb-flapin { from { transform: rotateX(-95deg); opacity: 0; } }
@keyframes hb-spin { to { transform: rotate(360deg); } }
/* LED sign along the bottom */
.hb-led { position: relative; height: 8.4vh; overflow: hidden; border-radius: 1.2vh; background: #0a0508; box-shadow: inset 0 0 0 .3vh #3a2a10, 0 0 3vh rgba(255, 176, 46, .2); }
.hb-led::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, transparent 55%, rgba(10, 5, 8, .45) 62%) 0 0 / .36vh .36vh; }
.hb-led-track { position: absolute; top: 50%; left: 0; display: flex; white-space: nowrap; transform: translateY(-50%); animation: hb-led var(--dur, 30s) linear infinite; }
.hb-led-track span { font-family: var(--display); font-weight: 900; font-size: 5.2vh; letter-spacing: .05em; color: #ffe27a; text-shadow: 0 0 .25vh #fff3c4, 0 0 .9vh rgba(255, 154, 26, .85), 0 0 2.2vh rgba(255, 120, 20, .35); padding-right: 4vw; }
@keyframes hb-led { to { transform: translate(-50%, -50%); } }
/* spotlight sweeps across the leader */
.hb-row:nth-child(1) { position: relative; overflow: hidden; }
.hb-row:nth-child(1)::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); animation: hb-sweep 3.2s ease-in-out infinite; }
@keyframes hb-sweep { 60%, 100% { left: 120%; } }
/* callouts slide in from the side */
.hb-callout { position: fixed; right: 0; top: 30vh; z-index: 40; pointer-events: none; }
.hb-co { display: flex; align-items: center; gap: 1.4vw; padding: 2vh 3vw 2vh 2vw; border-radius: 2.4vh 0 0 2.4vh; background: linear-gradient(90deg, rgba(20, 12, 40, .96), rgba(10, 6, 22, .98)); box-shadow: inset .6vh 0 0 var(--c), 0 2vh 6vh rgba(0, 0, 0, .7), 0 0 8vh color-mix(in srgb, var(--c) 40%, transparent); transform: translateX(110%); }
.hb-callout.on .hb-co { animation: hb-co 5.2s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes hb-co { 0% { transform: translateX(110%); } 12%, 85% { transform: translateX(0); } 100% { transform: translateX(110%); } }
.hb-co i { font-style: normal; font-size: 8vh; animation: lt-bob 1.4s ease-in-out infinite; }
.hb-co em { display: block; font-style: normal; font-weight: 900; font-size: 2vh; letter-spacing: .2em; color: var(--c); }
.hb-co b { display: block; font-family: var(--display); font-weight: 900; font-size: 5vh; color: #fff; max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-co span { font-weight: 800; font-size: 2.4vh; color: var(--muted); }
.hb-ticker { display: grid; gap: .6vh; }
.hb-ticker div { display: flex; gap: .8vw; align-items: center; padding: .6vh .8vw; border-radius: 1vh; background: rgba(255, 255, 255, .05); font-weight: 700; font-size: 2vh; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-ticker i { font-style: normal; font-size: 2.6vh; }
.hb-wins { display: grid; gap: .7vh; }
.hb-win { display: grid; grid-template-columns: 4vh 1fr auto; grid-template-rows: auto auto; column-gap: .8vw; padding: .7vh .8vw; border-radius: 1vh; background: rgba(47, 214, 131, .08); font-size: 2.1vh; }
.hb-win i { grid-row: span 2; font-style: normal; font-size: 3.4vh; align-self: center; }
.hb-win span { grid-column: 2; font-size: 1.6vh; color: var(--muted); }
.hb-win strong { grid-row: 1 / 3; grid-column: 3; align-self: center; font-family: var(--display); color: #2fd683; font-size: 2.8vh; }
.hb-podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: .8vw; text-align: center; }
.hb-podium div { display: grid; gap: .3vh; padding: 1vh .4vw; border-radius: 1vh 1vh 0 0; background: rgba(255, 255, 255, .07); }
.hb-podium .p1 { padding-top: 3vh; background: linear-gradient(180deg, rgba(255, 216, 74, .35), rgba(255, 255, 255, .05)); }
.hb-podium .p2 { padding-top: 1.8vh; }
.hb-podium i { font-style: normal; font-size: 4vh; } .hb-podium b { font-size: 2vh; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hb-podium span { color: var(--gold); font-weight: 900; }
/* phone */
.hbp { display: grid; gap: .6rem; text-align: left; }
.hbp h3 { margin: .4rem 0 0; font-size: 1rem; }
.hbp-rank { display: flex; gap: .8rem; align-items: center; padding: .8rem; border-radius: 1rem; background: linear-gradient(135deg, rgba(122, 63, 196, .6), rgba(242, 112, 15, .45)); }
.hbp-rank i { font-style: normal; font-size: 2.4rem; font-weight: 900; } .hbp-rank b { display: block; font-family: var(--display); font-size: 1.3rem; } .hbp-rank span { font-size: .85rem; font-weight: 700; }
.hb-leaders.sm .hb-row { grid-template-columns: 1.8rem 1fr 4rem auto; font-size: .85rem; padding: .35rem .5rem; gap: .4rem; }
.hb-leaders.sm .hb-row i { font-size: 1rem; } .hb-leaders.sm .hb-bar { height: .45rem; }
.hb-reel.sm { min-height: 0; } .hb-reel.sm .hb-card { padding: 1rem; } .hb-reel.sm .hb-card i { font-size: 2.6rem; } .hb-reel.sm .hb-card b { font-size: 1.05rem; }
.hb-wins.sm .hb-win { grid-template-columns: 1.8rem 1fr auto; font-size: .85rem; padding: .35rem .5rem; } .hb-wins.sm .hb-win i { font-size: 1.3rem; } .hb-wins.sm .hb-win span { font-size: .7rem; } .hb-wins.sm .hb-win strong { font-size: 1rem; }
.hb-trivia.sm .hb-podium i { font-size: 1.6rem; } .hb-trivia.sm .hb-podium b { font-size: .8rem; } .hb-trivia.sm .hb-podium .p1 { padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { .hb-card i { animation: none; } }
/* fit */
.hb-head .wg-title b { white-space: nowrap; }
.hb-stats { font-size: 1.9vh; gap: 1.2vw; } .hb-stats b { font-size: 3vh; }
.hb-reel { display: block; min-height: 0; }
.hb-card { margin-bottom: .6vh; min-height: 24vh; }
.hb-card b { font-size: 3.6vh; }
.hb-card i { font-size: 8vh; }
.hb-col.mid { grid-template-rows: auto auto 1fr; }
.hb-ticker { overflow: hidden; }
.hb-row { grid-template-columns: 4vh minmax(0, 1fr) 5.5vw auto; }
/* keep everything inside the projector: columns split the width, stat tiles share the header */
.hb-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); }
.hb-col { min-width: 0; }
.hb-head { min-width: 0; }
.hb-stats { min-width: 0; flex: 1; justify-content: flex-end; }
.hb-stats span { min-width: 0; flex: 0 1 14vw; white-space: nowrap; }
/* empty boards: a clear card with an icon instead of a tiny grey line in a big empty column */
.hb-empty { display: grid; justify-items: center; align-content: center; gap: .6vh; padding: 3vh 1vw; text-align: center; border-radius: 1.6vh; background: rgba(255, 255, 255, .04); border: .2vh dashed rgba(255, 255, 255, .14); }
.hb-empty i { font-style: normal; font-size: 7vh; line-height: 1; animation: lt-bob 2s ease-in-out infinite; }
.hb-empty b { font-family: var(--display); font-weight: 900; font-size: 3vh; line-height: 1.15; }
.hb-empty span { color: var(--muted); font-weight: 700; font-size: 1.9vh; }
.hb-col:has(> .hb-leaders > .hb-empty) { align-content: stretch; grid-template-rows: auto 1fr; }
.hb-leaders > .hb-empty { height: 100%; box-sizing: border-box; }
.sm > .hb-empty { padding: .8rem .6rem; gap: .2rem; border-radius: .8rem; }
.sm > .hb-empty i { font-size: 1.8rem; }
.sm > .hb-empty b { font-size: 1rem; }
.sm > .hb-empty span { font-size: .8rem; }
.sm > .hb-empty:only-child { margin-bottom: .2rem; }
.hb-leaders.sm > .hb-empty span { display: none; } /* the phone already says how to get on the board, just above */
.sm > .hb-empty { background: none; border: 0; } /* phones: the panel is already a card */

/* readability pass (Oct 28): the small projector text one size up so it reads from the back of the room */
.hb-stats em { font-size: 1.9vh; }
.hb-empty span { font-size: 2.2vh; }
.hb-ticker div { font-size: 2.2vh; }
