/* acronym.css */
/* Acronym */
.acronym-stage { gap: 1.2vw; justify-content: flex-start; padding-top: 1vw; }
.acronym-tiles { display: flex; gap: 1.2vw; }
.acronym-tiles span { width: 8vw; height: 8vw; border-radius: 1.2vw; background: #9b51e0; color: #fff; font-size: 5.5vw; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 .6vw 0 #5b2a8c, 0 1vw 2.5vw rgba(0,0,0,.4); }
.acronym-tiles.small { gap: .6vw; }
.acronym-tiles.small span { width: 3.6vw; height: 3.6vw; font-size: 2.4vw; border-radius: .6vw; box-shadow: 0 .3vw 0 #5b2a8c; }
.acronym-cat { font-size: 3vw; font-weight: 900; color: var(--gold); max-width: 80vw; line-height: 1.15; }
.acronym-cat.small { font-size: 2vw; text-align: left; }
.acronym-how { max-width: 64vw; font-size: 1.45em; }
.acronym-head { display: flex; align-items: center; gap: 2vw; }
.acronym-ask { margin: 0; font-size: 1.8vw; }
.acronym-row { display: flex; gap: 2vw; align-items: center; }
.acronym-list { display: flex; flex-direction: column; gap: .6vw; width: 70vw; }
.acronym-list.acronym-two { display: grid; grid-template-columns: 1fr 1fr; width: 90vw; }
.acronym-opt { display: flex; gap: 1vw; align-items: center; background: var(--panel); border-radius: .9vw; padding: .7vw 1.1vw; font-size: 1.6vw; text-align: left; border: .2vw solid transparent; }
.acronym-list.acronym-two .acronym-opt { font-size: 1.35vw; }
.acronym-opt.win { border-color: var(--gold); background: rgba(242,201,76,.14); }
.acronym-opt.none { opacity: .6; }
.acronym-text { flex: 1; min-width: 0; font-weight: 800; line-height: 1.25; overflow-wrap: break-word; }
.acronym-votes { flex: 0 0 2.6vw; height: 2.6vw; border-radius: 50%; background: #9b51e0; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }
.acronym-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .3vw; font-size: 1.05vw; white-space: nowrap; }
.acronym-badges { display: flex; gap: .6vw; }
.acronym-win { color: var(--gold); }
.acronym-fast { color: #56ccf2; }

/* big rooms (9-16 players): 3 columns of phrases (4 from 13 on), smaller rows, scores in a grid */
.acronym-crowd { gap: .8vw; padding-top: .4vw; }
.acronym-crowd .dd-step span { padding: .25vw 1vw; font-size: 1.1vw; }
.acronym-crowd .acronym-tiles span { width: 6.5vw; height: 6.5vw; font-size: 4.4vw; }
.acronym-list.acronym-two.jb-n9 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: .5vw .6vw; width: 94vw; }
.acronym-list.acronym-two.jb-n13 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.acronym-list.acronym-two.jb-n9 .acronym-opt { flex-wrap: wrap; font-size: 1.1vw; padding: .4vw .7vw; }
.acronym-list.jb-n9 .pt-letter { flex: 0 0 1.8vw; height: 1.8vw; }
.acronym-list.jb-n9 .acronym-votes { flex: 0 0 1.9vw; height: 1.9vw; }
.acronym-list.jb-n9 .acronym-meta { flex: 1 0 100%; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; font-size: .95vw; margin-top: .2vw; }
.acronym-list.jb-n9 .acronym-meta > span { margin-right: .7vw; }
.acronym-list.jb-n9 .acronym-meta .dot { width: 1.2vw; height: 1.2vw; }
.acronym-list.jb-n9 .pt-fooled .dot { width: 1.2vw; height: 1.2vw; font-size: .7vw; margin-right: .15vw; }
.acronym-stage .pt-strip.jb-n9 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-gap: .4vw .5vw; width: 94vw; }
.acronym-stage .pt-strip.jb-n9 .pt-schip { display: flex; min-width: 0; font-size: 1vw; padding: .25vw .7vw .25vw .3vw; }
.acronym-stage .pt-strip.jb-n9 .pt-schip .dot { width: 1.3vw; height: 1.3vw; flex: 0 0 1.3vw; }
.acronym-stage .pt-strip.jb-n9 .pt-schip > span + span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.acronym-stage .dd-progress.jb-n9 { max-width: 94vw; }
.acronym-stage .dd-progress.jb-n9 .dd-chip { font-size: 1.15vw; padding: .3vw .8vw .3vw .3vw; }
.acronym-stage .dd-progress.jb-n9 .dd-chip .dot { width: 1.5vw; height: 1.5vw; }

/* phone */
.acronym-ptiles { display: flex; gap: 6px; justify-content: center; }
.acronym-ptiles span { flex: 0 1 46px; height: 46px; border-radius: 9px; background: #9b51e0; color: #fff; font-size: 26px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; }
.acronym-pcard { align-items: stretch; text-align: center; }
.acronym-pcat { font-weight: 800; color: var(--gold); font-size: 18px; }

/* bomb.css */
/* Pass the Bomb */
.bomb-tv { gap: 1.4vw; }
.bomb-rule { background: var(--panel); border-radius: 1vw; padding: 1vw 2.4vw; text-align: center; border: .25vw solid #ff4d2e; }
.bomb-rule.big { padding: 1.6vw 3vw; }
.bomb-kind { font-size: 1.1vw; text-transform: uppercase; letter-spacing: .15vw; color: #ff9b7a; font-weight: 800; }
.bomb-label { font-size: 2.6vw; font-weight: 900; line-height: 1.15; }
.bomb-rule.big .bomb-label { font-size: 3.6vw; }
.bomb-ex { font-size: 1.3vw; color: var(--muted); margin-top: .4vw; }
.bomb-call { font-size: 2vw; }
.bomb-clutchwin { background: rgba(242,201,76,.12); border: .15vw solid var(--gold); border-radius: 99px; padding: .5vw 1.6vw; font-size: 1.5vw; }
.bomb-seats { display: flex; flex-wrap: wrap; gap: 1vw; justify-content: center; max-width: 90vw; }
.bomb-seat { position: relative; background: var(--panel); border-radius: 1vw; padding: .8vw 1.3vw; min-width: 11vw; display: flex; flex-direction: column; align-items: center; gap: .3vw; border: .25vw solid transparent; transition: transform .2s; }
.bomb-seat.hold { border-color: #ff4d2e; background: #3a1410; transform: scale(1.08); box-shadow: 0 0 2vw rgba(255,77,46,.5); }
.bomb-seat.out { opacity: .35; }
.bomb-seat.off { opacity: .5; }
.bomb-seat.hit { animation: bomb-shake .5s 3; border-color: #fff; }
.bomb-sname { display: flex; align-items: center; gap: .5vw; font-size: 1.4vw; font-weight: 800; }
.bomb-sname .dot { width: 1.6vw; height: 1.6vw; }
.bomb-hearts { color: #ff5a5a; font-size: 1.5vw; letter-spacing: .2vw; font-weight: 900; }
.bomb-has { position: absolute; top: -1.6vw; right: -1vw; font-size: 2.4vw; animation: bomb-bob .5s ease-in-out infinite alternate; }
@keyframes bomb-bob { to { transform: translateY(-.4vw) rotate(10deg); } }

.bomb-live { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1.2vw; min-height: 0; }
.bomb-top { display: flex; flex-direction: column; align-items: center; gap: .5vw; }
.bomb-mid { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5vw; min-height: 0; width: 100%; }
.bomb-side { width: 30vw; display: flex; flex-direction: column; gap: 1vw; }
.bomb-holder { font-size: 1.5vw; color: var(--muted); display: flex; flex-direction: column; }
.bomb-holder b { font-size: 3.4vw; line-height: 1.1; }
.bomb-feed { display: flex; flex-direction: column; gap: .5vw; }
.bomb-ans { display: flex; align-items: center; gap: .7vw; background: var(--panel); border-radius: .7vw; padding: .5vw 1vw; font-size: 1.4vw; opacity: .7; }
.bomb-ans b { font-size: 1.15em; }
.bomb-ans .dot { width: 1.5vw; height: 1.5vw; }
.bomb-ans.new { opacity: 1; border: .15vw solid var(--ok); animation: bomb-in .35s ease-out; }
@keyframes bomb-in { from { transform: translateX(-2vw); opacity: 0; } }

/* the bomb itself: a black ball with a burning fuse; the pulse speed is set by the script */
.bomb-art { position: relative; width: 22vw; height: 24vw; flex: none; }
.bomb-body { position: absolute; left: 1vw; bottom: 0; width: 20vw; height: 20vw; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a4f58, #14161a 60%, #000); box-shadow: 0 1.5vw 3vw rgba(0,0,0,.6); }
.bomb-art.lit .bomb-body { animation: bomb-pulse .9s ease-in-out infinite; }
.bomb-shine { position: absolute; left: 22%; top: 18%; width: 22%; height: 14%; border-radius: 50%; background: rgba(255,255,255,.35); transform: rotate(-30deg); }
.bomb-cap { position: absolute; left: 50%; top: -1.6vw; width: 5vw; height: 3vw; margin-left: -2.5vw; background: linear-gradient(#5a5f68, #262a30); border-radius: .5vw; }
.bomb-fuse { position: absolute; left: 11.5vw; top: 0; width: 6vw; height: 5vw; border: .55vw solid #c9a46a; border-color: #c9a46a transparent transparent #c9a46a; border-radius: 50% 0 0 0; transform: rotate(20deg); }
.bomb-spark { position: absolute; left: 16.6vw; top: -1.2vw; width: 3.4vw; height: 3.4vw; border-radius: 50%; background: radial-gradient(circle, #fff 0, #ffe066 25%, #ff7b00 50%, rgba(255,80,0,0) 70%); animation: bomb-flicker .12s linear infinite alternate; }
@keyframes bomb-pulse { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.07); box-shadow: 0 0 4vw rgba(255,60,30,.55); } }
@keyframes bomb-flicker { from { transform: scale(.8) rotate(0); opacity: .8; } to { transform: scale(1.2) rotate(40deg); opacity: 1; } }

.bomb-boomtv { position: relative; overflow: hidden; }
.bomb-flash { position: absolute; top: -3vw; left: -3vw; right: -3vw; bottom: -3vw; background: radial-gradient(circle, #fff6c2 0, #ff9a3c 30%, rgba(255,60,0,0) 70%); animation: bomb-flash 1.2s ease-out forwards; pointer-events: none; }
@keyframes bomb-flash { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.6); } }
.bomb-kaboom { font-size: 12vw; line-height: 1; animation: bomb-kaboom .6s ease-out; }
@keyframes bomb-kaboom { from { transform: scale(.2) rotate(-20deg); } 60% { transform: scale(1.25); } }
@keyframes bomb-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-.6vw); } 75% { transform: translateX(.6vw); } }
.bomb-clutch { display: flex; flex-wrap: wrap; gap: .8vw; justify-content: center; max-width: 84vw; }
.bomb-copt { display: flex; align-items: center; gap: .8vw; background: var(--panel); border-radius: .8vw; padding: .6vw 1.2vw; font-size: 1.5vw; }
.bomb-foot { display: flex; gap: 2vw; align-items: center; }

/* phone */
.bomb-c { text-align: center; align-items: center; }
.bomb-c.bomb-next { border: 2px solid var(--gold); background: #2b2612; }
.bomb-who { font-size: 30px; font-weight: 900; }
.bomb-rule .bomb-label { overflow-wrap: anywhere; }
body.play .bomb-rule { border-width: 2px; border-radius: 14px; padding: 12px 14px; }
body.play .bomb-kind { font-size: 12px; letter-spacing: .1em; }
body.play .bomb-label { font-size: 24px; }
body.play .bomb-rule.big .bomb-label { font-size: 28px; }
body.play .bomb-ex { font-size: 14px; }
.bomb-said .bomb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bomb-tags span { background: var(--panel2); border-radius: 99px; padding: 5px 10px; font-size: 14px; }
.bomb-hot { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 5; background: #c8101a; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; animation: bomb-hotpulse .9s ease-in-out infinite; }
@keyframes bomb-hotpulse { 0%, 100% { background: #c8101a; } 15% { background: #ff2a1a; } }
.bomb-hot-t { font-size: 26px; font-weight: 900; letter-spacing: .02em; }
.bomb-hot-k { font-size: 15px; opacity: .85; margin-top: 6px; }
.bomb-hot-r { font-size: 28px; font-weight: 900; line-height: 1.15; background: rgba(0,0,0,.25); border-radius: 12px; padding: 10px 14px; max-width: 100%; overflow-wrap: anywhere; }
.bomb-hot .bomb-in { font-size: 24px; text-align: center; background: #fff; color: #111; border-color: #fff; max-width: 420px; }
.bomb-hot .bomb-go { background: #111; color: #fff; max-width: 420px; font-size: 20px; }
.bomb-used { font-size: 14px; opacity: .85; max-width: 420px; }
.bomb-hot-l { font-size: 22px; letter-spacing: 4px; }
.bomb-in.bomb-shakeit { animation: bomb-pshake .4s; border-color: #ffd400 !important; }
@keyframes bomb-pshake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-12px); } 40% { transform: translateX(10px); } 60% { transform: translateX(-8px); } 80% { transform: translateX(6px); } }
.bomb-pboom h2 { margin: 0; }
.bomb-pk { font-size: 90px; animation: bomb-kaboom .6s ease-out; }
.bomb-pboom.me { background: radial-gradient(circle, rgba(255,120,0,.35), rgba(0,0,0,0) 70%); }
/* 9-16 seats: two rows of small seats; the bomb shrinks a little so the live screen still fits */
.bomb-many.bomb-tv { gap: .9vw; }
.bomb-many .bomb-seats { max-width: 92vw; }
.bomb-many .bomb-seat { min-width: 9vw; padding: .45vw .7vw; }
.bomb-many .bomb-sname { font-size: 1.1vw; }
.bomb-many .bomb-sname .dot { width: 1.2vw; height: 1.2vw; }
.bomb-many .bomb-hearts { font-size: 1.1vw; }
.bomb-many .bomb-has { font-size: 1.8vw; top: -1.2vw; right: -.7vw; }
.bomb-many .bomb-art { zoom: .8; }
.bomb-many .bomb-rule.big { padding: 1vw 2.4vw; }
.bomb-many .bomb-rule.big .bomb-label { font-size: 3vw; }
.bomb-many .bomb-kaboom { font-size: 9vw; }

/* bracket.css */
/* Deathmatch Bracket */
.bracket-stage { gap: 1vw; justify-content: flex-start; padding-top: .6vw; min-height: 0; }
.bracket-prompt { color: var(--gold); max-width: 84vw; line-height: 1.1; }
.bracket-prompt.small { font-size: 2.3vw; margin: 0; }
.bracket-prompt.tiny { font-size: 1.5vw; font-weight: 800; }
.bracket-how { max-width: 64vw; font-size: 1.45em; }
.bracket-row { display: flex; gap: 2vw; align-items: center; }
.bracket-call { font-size: 1.6vw; font-weight: 800; background: rgba(235,87,87,.14); border: .15vw solid rgba(235,87,87,.5); padding: .7vw 1.6vw; border-radius: 1vw; }

/* the current matchup, big */
.bracket-mhead { display: flex; gap: 1.4vw; align-items: baseline; }
.bracket-rname { font-size: 1.5vw; font-weight: 900; text-transform: uppercase; letter-spacing: .15vw; color: #eb5757; }
.bracket-fight { display: flex; align-items: stretch; gap: 1.6vw; width: 86vw; }
.bracket-fighter { flex: 1; border-radius: 1.2vw; padding: 1.4vw 1.8vw; display: flex; flex-direction: column; justify-content: center; gap: .6vw; min-height: 8vw; border: .25vw solid transparent; }
.bracket-fighter.a { background: rgba(47,128,237,.22); border-color: rgba(47,128,237,.6); }
.bracket-fighter.b { background: rgba(229,9,20,.2); border-color: rgba(229,9,20,.55); }
.bracket-fighter.won { border-color: var(--gold); box-shadow: 0 0 2.5vw rgba(242,201,76,.4); }
.bracket-fighter.lost { opacity: .4; }
.bracket-ftext { font-size: 2.5vw; font-weight: 900; line-height: 1.15; overflow-wrap: break-word; }
.bracket-fvotes { font-size: 1.4vw; font-weight: 800; color: var(--gold); }
.bracket-vs { align-self: center; font-size: 2.6vw; font-weight: 900; color: var(--muted); }

/* the bracket: rounds as columns; each pair of matches draws a "]" to the next round */
.bracket-tree { display: flex; gap: 0; width: 92vw; flex: 1 1 auto; min-height: 9vw; max-height: 34vw; font-size: 1.15vw; }
.bracket-tree.bracket-mid { font-size: 1.05vw; }
.bracket-tree.bracket-dense { font-size: .85vw; }
.bracket-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: .4vw; }
.bracket-col.last { flex: .8 1 0; }
.bracket-col + .bracket-col { margin-left: 2.4vw; }   /* not flex gap: the TV (Chrome 68) has none */
.bracket-chead { font-size: 1vw; font-weight: 800; text-transform: uppercase; letter-spacing: .1vw; color: var(--muted); text-align: center; }
.bracket-cbody { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.bracket-pair { flex: 1; display: flex; flex-direction: column; justify-content: space-around; position: relative; }
.bracket-pair::after { content: ''; position: absolute; right: -1.2vw; width: 1.2vw; top: 25%; bottom: 25%; border: .15vw solid rgba(255,255,255,.25); border-left: 0; }
.bracket-pair.solo::after { top: 50%; bottom: auto; height: 0; border-right: 0; border-bottom: 0; }
.bracket-col.last .bracket-pair::after { display: none; }
.bracket-m { position: relative; background: var(--panel); border-radius: .5vw; overflow: visible; display: flex; flex-direction: column; border: .15vw solid rgba(255,255,255,.08); }
.bracket-col + .bracket-col .bracket-m::before { content: ''; position: absolute; left: -1.35vw; width: 1.2vw; top: 50%; border-top: .15vw solid rgba(255,255,255,.25); }
.bracket-m.now { border-color: var(--gold); box-shadow: 0 0 1.5vw rgba(242,201,76,.45); }
.bracket-m.bye { opacity: .7; }
.bracket-m.crown.set { border-color: var(--gold); background: rgba(242,201,76,.16); }
.bracket-slot { display: flex; align-items: center; gap: .4em; padding: .3em .6em; min-height: 1.5em; line-height: 1.2; text-align: left; }
.bracket-slot + .bracket-slot { border-top: .1vw solid rgba(255,255,255,.08); }
.bracket-slot .dot { width: 1.2em; height: 1.2em; flex: 0 0 1.2em; }
.bracket-stext { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bracket-slot b { color: var(--muted); font-variant-numeric: tabular-nums; }
.bracket-slot.won { font-weight: 800; }
.bracket-slot.won b { color: var(--gold); }
.bracket-slot.lost { opacity: .4; text-decoration: line-through; }
.bracket-slot.empty { color: var(--muted); font-style: italic; }
.bracket-m.crown .bracket-slot { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; font-weight: 800; }

/* 16 slots: two mirrored halves meeting at the final in the middle column */
.bracket-tree.bracket-split { font-size: .95vw; }
.bracket-split .bracket-col.mid { flex: 1.15 1 0; }
.bracket-split .bracket-col.mid .bracket-pair::after { display: none; }
.bracket-split .bracket-m.fin::after { content: ''; position: absolute; right: -1.35vw; width: 1.2vw; top: 50%; border-top: .15vw solid rgba(255,255,255,.25); }
.bracket-split .bracket-crownbox { position: absolute; left: 0; right: 0; top: calc(50% + 2.8vw); }
.bracket-split .bracket-crownbox .bracket-chead { margin-bottom: .3vw; }
.bracket-split .bracket-crownbox .bracket-m::before { display: none; }
.bracket-split .flip .bracket-pair::after { right: auto; left: -1.2vw; border-left: .15vw solid rgba(255,255,255,.25); border-right: 0; }
.bracket-split .flip .bracket-pair.solo::after { border-left: 0; }
.bracket-split .flip .bracket-m::before { display: none; }
.bracket-split .flip.inr .bracket-m::before { display: block; left: auto; right: -1.35vw; }
.bracket-split .flip .bracket-slot { flex-direction: row-reverse; text-align: right; }

/* big rooms (9-16 players): tighter spacing, scores in a grid */
.bracket-crowd { gap: .8vw; }
.bracket-crowd .dd-step span { padding: .25vw 1vw; font-size: 1.1vw; }
.bracket-crowd .bracket-fighter { padding: 1vw 1.5vw; min-height: 6vw; }
.bracket-crowd .bracket-ftext { font-size: 2.1vw; }
.bracket-crowd .bracket-champ { padding: .8vw 2vw; }
.bracket-crowd .bracket-trophy { font-size: 3.5vw; }
.bracket-crowd .bracket-ctext { font-size: 2.4vw; }
.bracket-stage .pt-strip.jb-n9 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-gap: .4vw .5vw; width: 94vw; }
.bracket-stage .pt-strip.jb-n9 .pt-schip { display: flex; min-width: 0; font-size: 1vw; padding: .25vw .7vw .25vw .3vw; }
.bracket-stage .pt-strip.jb-n9 .pt-schip .dot { width: 1.3vw; height: 1.3vw; flex: 0 0 1.3vw; }
.bracket-stage .pt-strip.jb-n9 .pt-schip > span + span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.bracket-stage .dd-progress.jb-n9 { max-width: 94vw; }
.bracket-stage .dd-progress.jb-n9 .dd-chip { font-size: 1.15vw; padding: .3vw .8vw .3vw .3vw; }
.bracket-stage .dd-progress.jb-n9 .dd-chip .dot { width: 1.5vw; height: 1.5vw; }

/* champion */
.bracket-champ { display: flex; align-items: center; gap: 2vw; background: rgba(242,201,76,.12); border: .2vw solid var(--gold); border-radius: 1.4vw; padding: 1.2vw 2.4vw; max-width: 86vw; text-align: left; }
.bracket-trophy { font-size: 5vw; }
.bracket-ctext { font-size: 2.8vw; font-weight: 900; line-height: 1.1; }
.bracket-cby { display: flex; flex-wrap: wrap; align-items: center; gap: .5vw; font-size: 1.4vw; margin-top: .5vw; }
.bracket-bets { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .6vw; color: var(--muted); }
.bracket-better { display: inline-flex; align-items: center; gap: .3vw; color: var(--text); font-weight: 700; }

/* phone */
.bracket-pbtn { text-align: center; color: #fff; min-height: 96px; font-size: 21px; line-height: 1.25; }
.bracket-pvs { text-align: center; font-weight: 900; color: var(--muted); margin: -4px 0; }

/* bstrivia.css */
/* BS Trivia (also used by BS Trivia: Roast) */
.bstrivia-stage { gap: 1.1vw; justify-content: flex-start; }
.bstrivia-head { display: flex; align-items: center; gap: 1.6vw; }
.bstrivia-row .timer { font-size: 2.6vw; }
.bstrivia-emoji { font-size: 6vw; }
.bstrivia-fact { font-weight: 800; line-height: 1.3; text-align: center; max-width: 78vw; }
.bstrivia-fact.big { font-size: 3.4vw; background: var(--panel); border-radius: 1.4vw; padding: 2.4vw 3vw; box-shadow: 0 1vw 3vw rgba(0,0,0,.3); border-left: .6vw solid #eb5757; }
.bstrivia-fact.small { font-size: 2.2vw; background: var(--panel); border-radius: 1.2vw; padding: 1.3vw 2.2vw; border-left: .5vw solid #eb5757; }
.bstrivia-fact.phone { font-size: 19px; text-align: left; line-height: 1.35; }
.bstrivia-blank { display: inline-block; width: 7em; border-bottom: .15em solid #eb5757; margin: 0 .2em; vertical-align: baseline; height: .9em; }
.bstrivia-fill { color: var(--ok); border-bottom: .12em solid var(--ok); padding: 0 .15em; }
.bstrivia-sub { font-size: 1.5vw; max-width: 70vw; }
.bstrivia-rules { display: flex; gap: 1vw; flex-wrap: wrap; justify-content: center; }
.bstrivia-rules span { padding: .5vw 1.2vw; border-radius: 99px; background: rgba(255,255,255,.07); font-weight: 700; font-size: 1.3vw; }
.bstrivia-ask { margin: 0; font-size: 2vw; }
.bstrivia-opts { display: grid; grid-template-columns: 1fr 1fr; gap: .9vw; width: 80vw; }
.bstrivia-opts.many { gap: .6vw; }
.bstrivia-opt { display: flex; align-items: center; gap: 1vw; background: var(--panel); border-radius: 1vw; padding: 1vw 1.3vw; font-size: 1.9vw; font-weight: 800; border: .22vw solid transparent; text-align: left; min-height: 5vw; }
.bstrivia-opts.many .bstrivia-opt { font-size: 1.5vw; padding: .5vw 1.1vw; min-height: 3.6vw; }
.bstrivia-opts.lots .bstrivia-opt { font-size: 1.3vw; padding: .35vw 1vw; min-height: 3vw; }
.bstrivia-opts.many .bstrivia-letter { flex-basis: 2.2vw; height: 2.2vw; }
.bstrivia-opt.truth { border-color: var(--ok); background: rgba(39,174,96,.2); }
.bstrivia-opt.fooled { border-color: rgba(242,201,76,.7); }
.bstrivia-opt.dud { opacity: .55; }
.bstrivia-letter { flex: 0 0 2.6vw; height: 2.6vw; border-radius: 50%; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3vw; font-weight: 900; }
.bstrivia-otext { flex: 1; min-width: 0; overflow-wrap: break-word; }
.bstrivia-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .4vw; font-size: 1.1vw; font-weight: 700; white-space: nowrap; }
.bstrivia-true { color: var(--ok); font-size: 1.3vw; }
.bstrivia-by { display: inline-flex; align-items: center; gap: .4vw; opacity: .9; }
.bstrivia-by .dot, .bstrivia-picked .dot { width: 1.6vw; height: 1.6vw; font-size: .85vw; }
.bstrivia-picked { display: inline-flex; gap: .3vw; flex-wrap: wrap; justify-content: flex-end; }
.bstrivia-row { display: flex; gap: 2vw; align-items: center; }
/* phone */
.bstrivia-ionce { font-size: 20px; font-weight: 800; color: #eb5757; margin-bottom: -6px; }
.bstrivia-you { font-weight: 800; color: #f2994a; }
.bstrivia-pick { font-size: 18px; font-weight: 700; line-height: 1.3; }
.bstrivia-mine { font-size: 17px; font-weight: 600; opacity: .45; }
/* 9+ players: smaller progress chips and score strip, choices in four columns with the names under each */
.bstrivia-intro .dd-progress.jb-n9 .dd-chip, .bstrivia-stage .dd-progress.jb-n9 .dd-chip { font-size: 1.15vw; padding: .3vw .8vw; }
.bstrivia-intro .dd-progress.jb-n9 .dot, .bstrivia-stage .dd-progress.jb-n9 .dot { width: 1.6vw; height: 1.6vw; }
.bstrivia-stage .pt-strip.jb-n9 { justify-content: center; }
.bstrivia-stage .pt-strip.jb-n9 .pt-schip { font-size: .95vw; padding: .25vw .8vw .25vw .3vw; }
.bstrivia-stage .pt-strip.jb-n9 .dot { width: 1.35vw; height: 1.35vw; font-size: .75vw; }
.bstrivia-opts.jb-n9 { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 92vw; grid-gap: .5vw; }
.bstrivia-opts.jb-n9 .bstrivia-opt { flex-wrap: wrap; font-size: 1.15vw; padding: .35vw .8vw; min-height: 2.6vw; align-content: center; }
.bstrivia-opts.jb-n9 .bstrivia-letter { flex: 0 0 1.9vw; height: 1.9vw; font-size: 1vw; margin-right: .6vw; }
.bstrivia-opts.jb-n9 .bstrivia-meta { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; white-space: normal; font-size: .95vw; margin-top: .25vw; }
.bstrivia-opts.jb-n9 .bstrivia-true { font-size: 1vw; }
.bstrivia-opts.jb-n9 .bstrivia-by .dot, .bstrivia-opts.jb-n9 .bstrivia-picked .dot { width: 1.35vw; height: 1.35vw; font-size: .75vw; margin-right: .15vw; }
.bstrivia-big .bstrivia-fact.big { font-size: 2.8vw; padding: 1.8vw 2.6vw; }
.bstrivia-big .bstrivia-emoji { font-size: 4vw; }
.bstrivia-huge { gap: .7vw; }
.bstrivia-huge .bstrivia-fact.small { font-size: 1.8vw; padding: .9vw 1.8vw; }
.bstrivia-huge .bstrivia-row { flex-wrap: wrap; justify-content: center; width: 94vw; }
.bstrivia-opts.jb-n13 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bstrivia-opts.jb-n13 .bstrivia-opt { font-size: 1.1vw; }
.bstrivia-huge .bstrivia-row .pt-strip { flex: 1 1 0; min-width: 0; }

/* emoji.css */
/* Emoji Telephone + the emoji picker (JB.emojiPicker). Every class starts with emo-. */

/* ---------- picker (phone, px sizes) ---------- */
.emo-pick { display: flex; flex-direction: column; gap: 8px; }
.emo-slots { display: flex; gap: 8px; align-items: stretch; }
.emo-slots.full .emo-slot { animation: emo-shake .35s; }
.emo-slot { flex: 1; height: 64px; border-radius: 14px; border: 2px dashed rgba(255,255,255,.22); background: #0f1216; font-size: 40px; line-height: 1; padding: 0; }
.emo-slot.on { border-style: solid; border-color: var(--gold); background: var(--panel2); }
.emo-back { flex: 0 0 54px; border: 0; border-radius: 14px; background: var(--panel2); font-size: 24px; padding: 0; }
.emo-back:disabled { opacity: .4; }
.emo-tabs { display: flex; gap: 4px; }
.emo-tab { flex: 1; min-width: 0; height: 42px; border: 0; border-radius: 10px; background: var(--panel); font-size: 22px; padding: 0; opacity: .65; }
.emo-tab.on { background: var(--panel2); opacity: 1; box-shadow: inset 0 -3px 0 var(--gold); }
.emo-search { width: 100%; font: inherit; font-size: 17px; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--panel2); background: #0f1216; color: var(--text); -webkit-appearance: none; }
.emo-label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; min-height: 16px; }
.emo-grid { height: 236px; height: calc(100vh - 560px); min-height: 190px; max-height: 420px; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-wrap: wrap; align-content: flex-start; background: var(--panel); border-radius: 12px; padding: 4px; }
.emo-cell { width: 14.28%; height: 50px; border: 0; background: none; font-size: 31px; line-height: 1; padding: 0; border-radius: 10px; }
.emo-cell:active { background: var(--panel2); }
.emo-empty { padding: 20px; color: var(--muted); width: 100%; text-align: center; }
.emo-send { font-size: 20px; }
@keyframes emo-shake { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-5px); } 70% { transform: translateX(5px); } }

/* ---------- phone screens ---------- */
.emo-from { gap: 6px; padding: 12px 14px; }
.emo-from .pprompt { font-size: 21px; }
.emo-reroll { padding: 9px; font-size: 15px; }
.emo-row { display: flex; gap: 6px; justify-content: center; line-height: 1.1; }
.emo-big { font-size: 54px; gap: 10px; }
.emo-sent { font-size: 46px; }
.emo-vote { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 12px 16px; }
.emo-vote .emo-row { font-size: 34px; justify-content: flex-start; }
.emo-vote.off { opacity: .4; }
.emo-vwho { font-size: 14px; font-weight: 700; color: var(--muted); }
.emo-vtext { font-size: 19px; }

/* ---------- TV (vw sizes) ---------- */
.emo-stage { gap: 1.4vw; }
.emo-pills span { font-size: 1.15vw; }
.emo-hint { font-size: 1.6vw; }
.emo-clock { display: flex; align-items: center; gap: 1.4vw; font-size: 1.5vw; }
.emo-clock .timer { font-size: 2.4vw; font-weight: 800; font-variant-numeric: tabular-nums; }
.emo-count { color: var(--muted); }
.emo-chains { display: flex; flex-wrap: wrap; gap: .8vw 2vw; justify-content: center; max-width: 80vw; }
.emo-track { display: flex; align-items: center; gap: .8vw; font-size: 1.2vw; background: rgba(255,255,255,.04); padding: .5vw 1vw; border-radius: .8vw; }
.emo-tname { display: inline-flex; align-items: center; gap: .5vw; opacity: .85; }
.emo-boxes { display: inline-flex; gap: .3vw; }
.emo-boxes i { width: 1.1vw; height: 1.1vw; border-radius: .25vw; background: rgba(255,255,255,.12); }
.emo-boxes i.full { background: var(--gold); }
.emo-boxes i.now { background: rgba(242,201,76,.4); animation: emo-pulse 1.2s infinite; }
@keyframes emo-pulse { 50% { opacity: .4; } }

.emo-wrap { flex: 1; display: flex; gap: 2.5vw; align-items: center; min-height: 0; padding: 0 1vw; }
.emo-list { flex: 1; display: flex; flex-direction: column; gap: .7vw; min-width: 0; }
.emo-item { display: flex; align-items: center; gap: 1.4vw; padding: .7vw 1.4vw; border-radius: 1vw; background: var(--panel); min-height: 5.4vw; }
.emo-item.phrase { background: linear-gradient(90deg, rgba(242,201,76,.22), var(--panel)); }
.emo-item.guess { background: #1a2230; }
.emo-item.fave { outline: .22vw solid var(--gold); }
.emo-item.emo-new { animation: emo-in .6s ease-out; }
@keyframes emo-in { from { opacity: 0; transform: translateY(1.2vw) scale(.96); } to { opacity: 1; transform: none; } }
.emo-num { flex: 0 0 2.4vw; height: 2.4vw; border-radius: 50%; background: rgba(255,255,255,.1); font-weight: 900; font-size: 1.3vw; display: flex; align-items: center; justify-content: center; }
.emo-num:empty { background: none; }
.emo-who { flex: 0 0 13vw; display: flex; flex-wrap: wrap; align-items: center; gap: .2vw .6vw; font-size: 1.35vw; font-weight: 700; min-width: 0; }
.emo-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 10vw; }
.emo-who small { flex-basis: 100%; font-size: .95vw; font-weight: 400; color: var(--muted); padding-left: 1.6vw; }
.emo-item .emo-row { font-size: 3.4vw; gap: .8vw; justify-content: flex-start; flex: 1; }
.emo-words { flex: 1; font-size: 2.1vw; font-weight: 800; line-height: 1.2; min-width: 0; }
.emo-item.phrase .emo-words { font-size: 2.3vw; color: #fff3c4; }
.emo-tags { display: flex; gap: 1vw; font-size: 1.5vw; font-weight: 700; white-space: nowrap; }
.emo-match { color: var(--gold); }
/* longer chains: tighter rows so 7 fit on screen */
.emo-list.n6 .emo-item, .emo-list.n7 .emo-item, .emo-list.n8 .emo-item, .emo-list.n9 .emo-item { min-height: 4.4vw; padding: .45vw 1.2vw; }
.emo-list.n7 .emo-row, .emo-list.n8 .emo-row, .emo-list.n9 .emo-row { font-size: 2.8vw; }
.emo-list.n7 .emo-words, .emo-list.n8 .emo-words, .emo-list.n9 .emo-words { font-size: 1.8vw; }
.emo-side { flex: 0 0 25vw; display: flex; flex-direction: column; gap: 1.2vw; }
.emo-side-title { margin: 0; font-size: 2.6vw; }
.emo-side-text { font-size: 1.4vw; }
.emo-pts { display: flex; flex-direction: column; gap: .5vw; }
.emo-prow { display: flex; align-items: center; gap: .8vw; font-size: 1.6vw; background: var(--panel); padding: .5vw 1vw; border-radius: .7vw; }
.emo-prow .grow { flex: 1; }
.emo-prow b { color: var(--gold); }
/* 9-16 players: the chain tracker becomes a 4-column grid of small rows (all the trackers look the same anyway) */
.emo-chains.jb-n9 { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: .5vw .8vw; max-width: 90vw; width: 90vw; }
.emo-chains.jb-n9 .emo-track { font-size: 1vw; padding: .3vw .6vw; min-width: 0; }
.emo-chains.jb-n9 .emo-tname { flex: 1; min-width: 0; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.emo-chains.jb-n9 .emo-tname .dot { width: 1.1vw; height: 1.1vw; vertical-align: middle; margin-right: .4vw; }
.emo-chains.jb-n9 .emo-boxes i { width: .75vw; height: .75vw; margin-left: .2vw; }

/* emoji pictures: 1em square; margins instead of flex gap (the LG TV's Chrome 68 has no flex gap) */
.emo-img { width: 1em; height: 1em; margin: 0 .08em; vertical-align: -.1em; flex: none; }

/* h2h.css */
/* Head-to-Head: black prompt card above two white answer cards */
.h2h-stage { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5vw; }
.h2h-top { display: flex; flex-direction: column; align-items: center; gap: .6vw; }
.h2h-how { max-width: 60vw; }
.h2h-blank { display: inline-block; width: 6em; border-bottom: .2em solid currentColor; margin: 0 .1em 0 .2em; vertical-align: baseline; }
.h2h-nowrap { white-space: nowrap; }
.h2h-fill { color: var(--gold); }
.h2h-black { background: #050505; color: #fff; border: .2vw solid #333; border-radius: 1.4vw; padding: 2vw 2.6vw; max-width: 70vw;
  font-size: 2.8vw; font-weight: 900; line-height: 1.25; text-align: center; box-shadow: 0 1vw 3vw rgba(0,0,0,.5); }
.h2h-black.small { font-size: 2.1vw; padding: 1.4vw 2vw; }
.h2h-row { display: flex; align-items: stretch; gap: 2vw; width: 86vw; }
.h2h-vs { align-self: center; font-size: 2.6vw; font-weight: 900; color: var(--accent); }
.h2h-white { position: relative; flex: 1; min-width: 0; background: #f6f3ec; color: #111; border-radius: 1.4vw; padding: 2.4vw 2vw 1.6vw;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.2vw; min-height: 14vw; box-shadow: 0 1vw 3vw rgba(0,0,0,.4);
  border: .3vw solid transparent; transition: transform .3s, opacity .3s; }
.h2h-white.win { border-color: var(--gold); transform: scale(1.03); }
.h2h-white.lose { opacity: .6; }
.h2h-wtext { font-size: 2.3vw; font-weight: 800; line-height: 1.25; }
.h2h-letter { position: absolute; top: .5vw; right: 1.2vw; font-weight: 900; font-size: 1.1vw; color: #888; }
.h2h-sweep { position: absolute; top: -1.2vw; left: 1.2vw; background: var(--gold); color: #111; font-weight: 900; padding: .3vw 1vw; border-radius: 99px; font-size: 1.2vw; }
.h2h-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .6vw 1.2vw; font-size: 1.3vw; font-weight: 700; border-top: .1vw solid #ddd; padding-top: .8vw; }
.h2h-foot .dd-who { opacity: 1; }
.h2h-foot .pt-got { color: #1e8e4e; }
.h2h-votes { color: #555; }
.h2h-bottom { display: flex; align-items: center; gap: 2vw; flex-wrap: wrap; justify-content: center; }
/* final round: everyone's answer in a grid */
.h2h-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2vw; width: 90vw; }
.h2h-grid .h2h-white { flex: 0 0 27vw; min-height: 9vw; padding: 2vw 1.4vw 1.2vw; }
.h2h-grid .h2h-wtext { font-size: 1.6vw; }
.h2h-grid.many .h2h-white { flex-basis: 20vw; min-height: 7vw; }
.h2h-grid.many .h2h-wtext { font-size: 1.3vw; }
.h2h-grid .h2h-foot { font-size: 1.05vw; }
/* scores board */
.h2h-board { display: flex; flex-direction: column; gap: .5vw; width: 46vw; padding: 1.4vw; }
.h2h-brow { display: flex; align-items: center; gap: 1vw; font-size: 1.7vw; padding: .5vw 1vw; border-radius: .8vw; background: rgba(255,255,255,.04); }
.h2h-rank { width: 2vw; color: var(--muted); font-weight: 900; }
.h2h-bname { flex: 1; text-align: left; font-weight: 700; }

/* phone */
.h2h-pblack { background: #050505; border: 1px solid #333; border-radius: 14px; padding: 18px 16px; font-size: 21px; font-weight: 800; line-height: 1.3; }
.h2h-pblack .h2h-blank { width: 4em; border-bottom-width: 3px; }
.h2h-pvs { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: 8px; }
.h2h-or { text-align: center; font-size: 15px; }
.h2h-pcard { background: #f6f3ec; color: #111; font-size: 17px; font-weight: 700; line-height: 1.3; padding: 14px 16px; }
.h2h-pcard.pick { padding: 16px; }
.h2h-pcard.mine { opacity: .45; }

/* Pick 2: blank counter, used cards, undo/send bar, numbered parts on the TV */
.h2h-pickn { text-align: center; font-weight: 900; color: var(--gold); letter-spacing: .5px; }
.h2h-pickbar { display: flex; gap: 10px; }
.h2h-pickbar .pbtn { flex: 1; }
.h2h-pcard.h2h-used { opacity: .35; text-decoration: line-through; }
.h2h-pcard[disabled] { opacity: .45; }
.h2h-part { margin: .2vw 0; }

/* a revealed prompt with long answers in it: smaller type so it stays on screen */
.h2h-black.long { font-size: 2vw; padding: 1.4vw 2vw; }
.h2h-black .h2h-fill { overflow-wrap: anywhere; }

/* 9+ players: smaller progress chips and score strip, a two-column scoreboard, and compact final-round cards
   (h2h-lots: 9+ answers, four columns; h2h-huge: 13+, no voter dots or score strip) */
.h2h-tv .dd-progress.jb-n9 .dd-chip { font-size: 1.15vw; padding: .3vw .8vw; }
.h2h-tv .dd-progress.jb-n9 .dot { width: 1.6vw; height: 1.6vw; }
.h2h-big { gap: 1.2vw; }
.h2h-bottom .pt-strip.jb-n9 { flex: 1 1 0; min-width: 0; justify-content: center; }
.h2h-bottom .pt-strip.jb-n9 .pt-schip { font-size: .95vw; padding: .25vw .8vw .25vw .3vw; }
.h2h-bottom .pt-strip.jb-n9 .dot { width: 1.35vw; height: 1.35vw; font-size: .75vw; }
.h2h-scores { gap: 1vw; }
.h2h-board.jb-n9 { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-gap: .4vw 1.2vw; width: 80vw; padding: 1vw 1.2vw; }
.h2h-board.jb-n9 .h2h-brow { font-size: 1.35vw; padding: .35vw .9vw; }
.h2h-board.jb-n9 .dot { width: 1.6vw; height: 1.6vw; }
.h2h-lots { gap: .8vw; }
.h2h-lots .h2h-top { flex-direction: row; }
.h2h-lots .h2h-top .hint { margin-left: 1.6vw; }
.h2h-lots .h2h-black.small { font-size: 1.7vw; padding: 1vw 1.6vw; }
.h2h-grid.jb-n9 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: .8vw; width: 92vw; }
.h2h-grid.jb-n9 .h2h-white { min-height: 0; padding: .7vw 2vw .7vw .9vw; border-radius: 1vw; }
.h2h-grid.jb-n9 .h2h-wtext { font-size: 1.1vw; }
.h2h-grid.jb-n9 .h2h-letter { top: .5vw; right: .7vw; font-size: .9vw; }
.h2h-grid.jb-n9 .h2h-foot { font-size: .95vw; padding-top: .4vw; }
.h2h-grid.jb-n9 .h2h-foot .dot { width: 1.3vw; height: 1.3vw; font-size: .7vw; }
.h2h-huge .h2h-foot .pt-fooled { display: none; }

/* hive.css */
/* Hive Mind */
.hive-stage { gap: 1.2vw; justify-content: flex-start; padding-top: 1vw; }
.hive-prompt { color: var(--gold); max-width: 84vw; line-height: 1.1; }
.hive-prompt.small { font-size: 2.4vw; margin: 0; }
.hive-how { max-width: 66vw; font-size: 1.4em; }
.hive-row { display: flex; gap: 2vw; align-items: center; }
.hive-curse { display: inline-flex; align-items: center; gap: .8vw; font-size: 1.4vw; background: rgba(155,81,224,.16); border: .15vw solid rgba(155,81,224,.6); padding: .5vw 1.2vw; border-radius: 99px; }
.hive-badge { font-weight: 900; color: #c39bf0; }
.hive-vs { display: flex; align-items: center; gap: 2vw; }
.hive-vs b { font-size: 4vw; color: var(--gold); }
.hive-cell { background: var(--panel); border-radius: 1.2vw; padding: 2vw 3vw; font-size: 3vw; font-weight: 900; max-width: 36vw; overflow-wrap: break-word; }

/* the groups as honeycomb-ish bubbles; bigger groups are drawn bigger */
.hive-bubbles { display: flex; flex-wrap: wrap; gap: 1.2vw; justify-content: center; align-items: center; max-width: 92vw; font-size: 1.3vw; }
.hive-bubble { background: var(--panel); border: .2vw solid rgba(255,255,255,.08); border-radius: 3vw; padding: 1em 1.4em; display: flex; flex-direction: column; align-items: center; gap: .45em; min-width: 12em; max-width: 26em; }
.hive-bubble.win { border-color: var(--gold); background: rgba(242,201,76,.16); box-shadow: 0 0 2.5vw rgba(242,201,76,.35); }
.hive-bubble.cursed { border-color: #9b51e0; background: rgba(155,81,224,.18); }
.hive-blabel { font-size: 1.7em; font-weight: 900; line-height: 1.1; overflow-wrap: break-word; max-width: 100%; }
.hive-bcount { color: var(--muted); font-weight: 700; }
.hive-bnames { display: flex; flex-wrap: wrap; gap: .4em .9em; justify-content: center; }
.hive-bname { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; }
.hive-bname .dot { width: 1.3em; height: 1.3em; }
.hive-bname i { color: var(--muted); font-weight: 400; font-size: .9em; }
.hive-bflag { font-weight: 900; color: var(--gold); }
.hive-bflag.bad { color: #c39bf0; }
.hive-msg { font-size: 1.7vw; font-weight: 800; background: rgba(155,81,224,.16); padding: .7vw 1.6vw; border-radius: 1vw; max-width: 80vw; }
.pt-schip.hive-cursed { outline: .15vw solid #9b51e0; }

/* final */
.hive-crown { font-size: 6vw; }
.hive-board { width: 50%; display: flex; flex-direction: column; gap: .5vw; }
.hive-board .row.hive-champ { outline: .2vw solid var(--gold); }
.hive-board .row.hive-cursed { opacity: .75; outline: .15vw dashed #9b51e0; }

/* big rooms (9-16 players): smaller bubbles, scores in a grid, final board in columns */
.hive-crowd { gap: .9vw; padding-top: .5vw; }
.hive-crowd .dd-step span { padding: .25vw 1vw; font-size: 1.1vw; }
.hive-crowd .hive-bubbles { font-size: 1vw; max-width: 94vw; }
.hive-crowd .hive-bubble { min-width: 9em; max-width: 40em; padding: .6em 1em; }
.hive-bubbles.jb-n9 .hive-blabel { font-size: 1.4em; }
.hive-stage .pt-strip.jb-n9 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-gap: .4vw .5vw; width: 94vw; }
.hive-stage .pt-strip.jb-n9 .pt-schip { display: flex; min-width: 0; font-size: 1vw; padding: .25vw .7vw .25vw .3vw; }
.hive-stage .pt-strip.jb-n9 .pt-schip .dot { width: 1.3vw; height: 1.3vw; flex: 0 0 1.3vw; }
.hive-stage .pt-strip.jb-n9 .pt-schip > span + span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.hive-stage .dd-progress.jb-n9 { max-width: 94vw; }
.hive-stage .dd-progress.jb-n9 .dd-chip { font-size: 1.15vw; padding: .3vw .8vw .3vw .3vw; }
.hive-stage .dd-progress.jb-n9 .dd-chip .dot { width: 1.5vw; height: 1.5vw; }
.hive-crowd .hive-crown { font-size: 4vw; }
.hive-stage .board.hive-board.jb-n9 { display: grid; grid-template-columns: none; grid-template-rows: repeat(6, auto); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-gap: .5vw 1.2vw; width: 84vw; }
.hive-stage .board.hive-board.jb-n9 > .row { font-size: 1.25vw; padding: .45vw .8vw; margin: 0; min-width: 0; }
.hive-board.jb-n9 .dot { width: 1.6vw; height: 1.6vw; flex: 0 0 1.6vw; }
.hive-board.jb-n9 .hive-mark { flex: 0 0 2vw; }

/* phone */
.hive-pcurse { background: rgba(155,81,224,.2); border: 1px solid #9b51e0; gap: 4px; }
.hive-pmerge { text-align: center; align-items: center; }
.hive-pbtns { display: flex; flex-direction: column; gap: 12px; }
.hive-pbtns .pvote { text-align: center; color: #fff; }
.hive-mark { flex: 0 0 2.4vw; text-align: center; }

/* mole.css */
/* The Mole (also used by molespoken) */
.mole-tv { gap: 1.3vw; }
.mole-big { font-size: 7vw; line-height: 1; }
.mole-rules { max-width: 70vw; }
.mole-lap { font-size: 1.4vw; font-weight: 800; letter-spacing: .15vw; text-transform: uppercase; color: var(--gold); }
.mole-call { font-size: 2.8vw; font-weight: 700; padding: .8vw 2.4vw; border-radius: 99px; background: var(--panel); border: .3vw solid; animation: mole-glow 1.6s ease-in-out infinite; }
.mole-call b { font-weight: 900; }
@keyframes mole-glow { 50% { box-shadow: 0 0 2.5vw rgba(255,255,255,.18); } }
.mole-board { display: flex; flex-wrap: wrap; gap: 1vw; justify-content: center; max-width: 88vw; }
.mole-card { position: relative; width: 13.5vw; background: var(--panel); border-radius: 1vw; padding: 1vw; display: flex; flex-direction: column; gap: .5vw; border: .25vw solid transparent; transition: transform .2s; }
.mole-board.many .mole-card { width: 10.5vw; padding: .7vw; }
.mole-card.now { border-color: var(--gold); transform: translateY(-.5vw); background: #2a2614; }
.mole-card.mole { border-color: #b06cff; background: #241a38; }
.mole-card.off { opacity: .45; }
.mole-who { display: flex; align-items: center; gap: .5vw; font-size: 1.3vw; font-weight: 700; min-width: 0; }
.mole-who .dot { width: 1.7vw; height: 1.7vw; flex: none; }
.mole-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mole-n { flex: none; width: 1.6vw; height: 1.6vw; border-radius: 50%; background: rgba(255,255,255,.1); font-size: .9vw; display: inline-flex; align-items: center; justify-content: center; }
.mole-clue { font-size: 1.8vw; font-weight: 800; background: rgba(255,255,255,.05); border-radius: .5vw; padding: .35vw .5vw; min-height: 2.9vw; overflow-wrap: anywhere; line-height: 1.15; }
.mole-board.many .mole-clue { font-size: 1.4vw; min-height: 2.3vw; }
.mole-clue.empty { color: var(--muted); opacity: .4; }
.mole-clue.skip { color: var(--muted); font-style: italic; font-weight: 600; font-size: 1.2vw; }
.mole-clue.said { color: var(--ok); font-size: 1.3vw; }
.mole-tag { font-size: 1.1vw; font-weight: 900; color: #c9a6ff; letter-spacing: .08vw; }
.mole-votes { position: absolute; top: -1vw; right: -.6vw; background: var(--accent); color: #fff; font-weight: 900; font-size: 1vw; padding: .2vw .7vw; border-radius: 99px; }
.mole-foot { display: flex; align-items: center; gap: 2vw; }
.mole-words { display: flex; align-items: center; gap: 2vw; }
.mole-word { display: flex; flex-direction: column; align-items: center; gap: .3vw; background: var(--panel); padding: 1vw 2.4vw; border-radius: 1vw; border: .25vw solid var(--ok); }
.mole-word.moleword { border-color: #b06cff; }
.mole-word span { color: var(--muted); font-size: 1.1vw; text-transform: uppercase; letter-spacing: .12vw; font-weight: 700; }
.mole-word b { font-size: 3vw; }
.mole-vs { font-size: 1.6vw; color: var(--muted); font-weight: 800; }
.mole-line { font-size: 1.5vw; }

/* phone */
.mole-role { border: 2px solid #3d4a5c; text-align: center; align-items: center; gap: 4px; color: inherit; font: inherit; width: 100%; }
.mole-role.is-mole { border-color: #b06cff; background: #221833; }
.mole-r1 { font-size: 20px; font-weight: 900; }
.mole-role.is-mole .mole-r1 { color: #d2b6ff; }
.mole-r2 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 4px; }
.mole-r3 { font-size: 34px; font-weight: 900; line-height: 1.1; color: var(--gold); overflow-wrap: anywhere; }
.mole-r4 { font-size: 14px; color: var(--muted); line-height: 1.35; }
.mole-role.big { padding: 26px 16px; gap: 8px; }
.mole-role.big .mole-r1 { font-size: 26px; }
.mole-role.big .mole-r3 { font-size: 44px; }
.mole-hide { font-size: 12px; opacity: .5; margin-top: 4px; }
.mole-role.hidden .mole-r2, .mole-role.hidden .mole-r3, .mole-role.hidden .mole-r4 { display: none; }
.mole-c { text-align: center; }
.mole-say { text-align: center; align-items: center; }
.mole-done { font-size: 22px; padding: 20px; }
/* hidden: the same plain card for Agents and the Mole, so a glance gives nothing away */
.mole-role.hidden .mole-r1 { display: none; }
.mole-role.hidden, .mole-role.hidden.is-mole { border-color: #3d4a5c; background: var(--panel); min-height: 96px; justify-content: center; }
.mole-role.hidden .mole-hide { font-size: 17px; font-weight: 800; opacity: .85; }
.mole-role { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: pointer; }
/* 9-16 players: 8 cards a row (2 rows), smaller words; the score strip is left off the reveal */
.mole-lots { gap: .8vw; }
.mole-board.jb-n9 { max-width: 86vw; }
.mole-board.jb-n9 .mole-card { width: 9.8vw; padding: .55vw .6vw; }
.mole-board.jb-n9 .mole-who { font-size: 1.1vw; }
.mole-board.jb-n9 .mole-who .dot { width: 1.3vw; height: 1.3vw; }
.mole-board.jb-n9 .mole-n { width: 1.2vw; height: 1.2vw; font-size: .75vw; }
.mole-board.jb-n9 .mole-clue { font-size: 1.25vw; min-height: 2vw; padding: .25vw .4vw; }
.mole-board.jb-n9 .mole-clue.skip, .mole-board.jb-n9 .mole-clue.said { font-size: 1vw; }
.mole-board.jb-n9 .mole-tag { font-size: .9vw; }
.mole-got { display: none; }
.mole-lots .mole-got { display: block; font-size: .95vw; line-height: 1.1; font-weight: 900; color: var(--ok); }
.mole-lots .mole-call { font-size: 2.2vw; padding: .5vw 2vw; }
.mole-lots .mole-word { padding: .5vw 2vw; }
.mole-lots .mole-word b { font-size: 2.4vw; }
.mole-lots h1.big { font-size: 2.8em; }

/* ransom.css */
/* Ransom Note */
.ransom-tv { gap: .9vw; justify-content: flex-start; padding-top: .5vw; }
.ransom-prompt { position: relative; max-width: 72vw; background: #f4ecd8; color: #1a1a1a; font-family: Georgia, serif; font-size: 2.4vw; font-weight: 800; line-height: 1.2;
  padding: 1.2vw 2.4vw; border-radius: .3vw; transform: rotate(-1deg); box-shadow: 0 1vw 2.5vw rgba(0,0,0,.45); text-wrap: balance; }
.ransom-prompt.small { font-size: 1.45vw; padding: .7vw 1.8vw; }
.ransom-pin { position: absolute; top: -.7vw; left: 50%; width: 1.4vw; height: 1.4vw; margin-left: -.7vw; border-radius: 50%; background: var(--accent); box-shadow: 0 .2vw .4vw rgba(0,0,0,.5); }
.ransom-demo { font-size: 2.3vw; margin: .4vw 0; }
.ransom-how { max-width: 64vw; font-size: 1.4em; padding: 1vw 1.6vw; }
.ransom-note { display: flex; flex-wrap: wrap; align-items: center; gap: .55em .35em; line-height: 1.1; }
.ransom-scrap { display: inline-block; padding: .12em .32em; box-shadow: .08em .1em 0 rgba(0,0,0,.35); clip-path: polygon(2% 6%, 98% 0, 100% 92%, 4% 100%); }
.ransom-scrap.suf { margin-left: -.42em; }
.ransom-grid { display: grid; gap: 1.2vw; width: 92vw; font-size: 1.75vw; }
.ransom-grid.c2 { grid-template-columns: 1fr 1fr; }
.ransom-grid.c3 { grid-template-columns: 1fr 1fr 1fr; }
.ransom-grid.c4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.ransom-grid.small { font-size: 1.3vw; }
.ransom-card { position: relative; background: #3b3328; background-image: linear-gradient(135deg, #4a3f30, #2c261e); border-radius: .6vw; padding: 1.3vw 1.3vw .9vw; display: flex; flex-direction: column; gap: .7vw; justify-content: center; border: .25vw solid transparent; min-height: 6vw; }
.ransom-card.top { border-color: var(--gold); box-shadow: 0 0 2.5vw rgba(242,201,76,.35); }
.ransom-letter { position: absolute; top: -.9vw; left: -.6vw; width: 2.4vw; height: 2.4vw; border-radius: 50%; background: var(--panel2); border: .15vw solid #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.2vw; font-family: system-ui, sans-serif; }
.ransom-by { display: flex; align-items: center; gap: .6vw; font-size: 1.15vw; font-family: system-ui, sans-serif; flex-wrap: wrap; }
.ransom-by .dot { width: 1.6vw; height: 1.6vw; }
.ransom-crown { font-size: 1.4vw; }
.ransom-v { margin-left: auto; color: var(--gold); font-weight: 800; }
.ransom-foot { display: flex; align-items: center; gap: 2vw; }
.ransom-foot .timer { font-size: 2.4em; }
.ransom-row2 { display: flex; align-items: center; gap: 2vw; }

/* phone */
.ransom-pcard { gap: 4px; padding: 12px 14px; }
.ransom-pprompt { font-family: Georgia, serif; font-weight: 800; font-size: 18px; line-height: 1.25; }
.ransom-pnote { padding: 12px; gap: 8px; background: #3b3328; }
.ransom-line { display: flex; flex-wrap: wrap; gap: 8px 4px; min-height: 64px; align-items: center; align-content: flex-start; }
.ransom-line .ransom-tile { border: 0; font-size: 19px; }
.ransom-empty { color: #b9ab93; font-size: 15px; font-style: italic; }
.ransom-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.ransom-hand { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ransom-htile { border: 0; border-radius: 6px; background: #f4ecd8; color: #1a1a1a; font-weight: 800; font-size: 15px; padding: 10px 2px; font-family: Georgia, serif; overflow-wrap: anywhere; line-height: 1.1; min-height: 46px; }
.ransom-htile.suf { background: #ffe14d; font-family: "Courier New", monospace; }
.ransom-htile.used { opacity: .18; }
.ransom-note.phone { font-size: 20px; justify-content: center; background: #3b3328; padding: 16px; border-radius: 12px; }
.ransom-pick { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.3; }
.ransom-pick.mine { opacity: .45; }
.ransom-l { flex: none; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.ransom-ptext { flex: 1; font-family: Georgia, serif; }
/* 9-16 notes: 3-4 rows of 4; tighter cards so 4 rows fit (the score strip is left off then) */
.ransom-grid.jb-n9 { grid-gap: .8vw; }
.ransom-grid.jb-n13 { font-size: 1.05vw; }
.ransom-grid.jb-n9 .ransom-card { padding: .9vw 1vw .6vw; min-height: 0; }
.ransom-grid.jb-n9 .ransom-by { font-size: 1vw; }
.ransom-grid.jb-n9 .ransom-by .dot { width: 1.3vw; height: 1.3vw; }
.ransom-grid.jb-n9 .ransom-letter { width: 2vw; height: 2vw; font-size: 1vw; top: -.7vw; }

/* redflags.css */
/* Red Flag Roulette: date cards made of green perks and one red flag */
.rf-stage { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4vw; }
.rf-top { display: flex; flex-direction: column; align-items: center; gap: .6vw; }
.rf-ask { margin: 0; font-size: 2.3vw; }
.rf-tv { gap: 1.4vw; }
.rf-how { max-width: 60vw; }
.rf-single { display: inline-flex; align-items: center; gap: .8vw; padding: .6vw 1.6vw .6vw .7vw; border-radius: 99px; background: rgba(235,87,87,.18);
  border: .15vw solid rgba(235,87,87,.6); font-size: 1.8vw; font-weight: 800; }
.rf-single .dot { width: 2.4vw; height: 2.4vw; }
.rf-bottom { display: flex; align-items: center; gap: 2vw; flex-wrap: wrap; justify-content: center; }

.rf-date { text-align: left; align-items: stretch; background: var(--panel); border-radius: 1.4vw; padding: 1.4vw; display: flex; flex-direction: column; gap: .8vw; box-shadow: 0 1vw 3vw rgba(0,0,0,.35);
  border: .25vw solid transparent; min-width: 0; }
.rf-date.win { border-color: var(--gold); background: #241f12; }
.rf-date.flop { opacity: .75; }
.rf-dhead { display: flex; flex-direction: column; align-items: flex-start; gap: .4vw; font-weight: 900; font-size: 1.5vw; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.rf-by { display: inline-flex; align-items: center; gap: .5vw; color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 1.2vw; white-space: nowrap; }
.rf-perk { background: rgba(39,174,96,.16); border-left: .4vw solid var(--ok); border-radius: .7vw; padding: .8vw 1.1vw; font-weight: 700; font-size: 1.6vw; line-height: 1.25; }
.rf-flag { background: rgba(235,87,87,.18); border-left: .4vw solid var(--bad); border-radius: .7vw; padding: .8vw 1.1vw; }
.rf-ftext { font-weight: 800; font-size: 1.6vw; line-height: 1.25; }
.rf-sab { display: flex; flex-wrap: wrap; align-items: center; gap: .3vw .5vw; margin-top: .5vw; font-size: 1.1vw; color: #f0b4b4; }
.rf-sab .dot, .rf-by .dot { width: 1.6vw; height: 1.6vw; }
.rf-tally { display: flex; align-items: center; gap: 1vw; font-size: 1.4vw; }
.rf-q { font-size: 6vw; font-weight: 900; text-align: center; opacity: .3; }
.rf-hidden { opacity: .5; }

/* one date at a time, big */
.rf-date.big { width: 60vw; padding: 2vw 2.4vw; gap: 1.2vw; }
.rf-date.big .rf-dhead { font-size: 2vw; }
.rf-date.big .rf-perk, .rf-date.big .rf-ftext { font-size: 2.5vw; }
.rf-date.big .rf-sab { font-size: 1.5vw; }
.rf-mini { display: flex; gap: .6vw; }
.rf-pip { width: 2.4vw; height: 2.4vw; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1vw; background: rgba(255,255,255,.08); opacity: .5; }
.rf-pip.seen { opacity: .9; }
.rf-pip.on { background: var(--accent); opacity: 1; }

/* all dates side by side for the vote */
.rf-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2vw; width: 92vw; }
.rf-date.mid { flex: 0 0 27vw; }
.rf-date.small { flex: 0 0 21vw; }
.rf-date.mid .rf-perk, .rf-date.mid .rf-ftext, .rf-date.small .rf-perk, .rf-date.small .rf-ftext { font-size: 1.4vw; }
.rf-date.small .rf-perk, .rf-date.small .rf-flag { padding: .6vw .9vw; }
.rf-date.tiny { flex: 0 0 17vw; padding: 1vw; gap: .6vw; }
.rf-date.tiny .rf-perk, .rf-date.tiny .rf-ftext { font-size: 1.2vw; }
.rf-date.tiny .rf-perk { padding: .6vw .8vw; }
.rf-date.tiny .rf-flag { padding: .6vw .8vw; }
.rf-date.tiny .rf-dhead { font-size: 1.2vw; }
.rf-date.tiny .rf-sab { font-size: .95vw; }

/* phone */
.rf-pcard { font-size: 17px; font-weight: 700; line-height: 1.3; padding: 14px 16px; border: 2px solid transparent; }
.rf-pcard.perk { background: rgba(39,174,96,.16); }
.rf-pcard.flag { background: rgba(235,87,87,.16); }
.rf-pcard.on { border-color: #fff; }
.rf-pcard.perk.on { background: var(--ok); }
.rf-pcard.flag.on { background: var(--bad); }
.rf-plist { display: flex; flex-direction: column; gap: 6px; font-size: 16px; font-weight: 600; color: #bfe8cf; }
.rf-pdate { display: flex; flex-direction: column; gap: 5px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.rf-pdate b { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rf-pdate .rf-pflag { color: #ff9c9c; font-weight: 800; }
.rf-pdate.mine { opacity: .45; }

/* 9+ players: smaller score strip; six dates (the most per round) in one row */
.rf-bottom .pt-strip.jb-n9 { flex: 1 1 0; min-width: 0; justify-content: center; }
.rf-bottom .pt-strip.jb-n9 .pt-schip { font-size: .95vw; padding: .25vw .8vw .25vw .3vw; }
.rf-bottom .pt-strip.jb-n9 .dot { width: 1.35vw; height: 1.35vw; font-size: .75vw; }
.rf-date.six { flex-basis: 14.2vw; padding: .8vw; }
.rf-date.six .rf-perk, .rf-date.six .rf-ftext { font-size: 1.1vw; line-height: 1.2; }
.rf-date.six .rf-perk, .rf-date.six .rf-flag { padding: .45vw .6vw; }
.rf-date.six .rf-dhead { font-size: 1.1vw; }
.rf-date.six .rf-by { font-size: 1vw; white-space: normal; }
.rf-date.six .rf-tally { font-size: 1.2vw; flex-wrap: wrap; }
.rf-date.six .pt-fooled .dot { width: 1.4vw; height: 1.4vw; font-size: .75vw; }

/* sabotage.css */
/* Sabotage Trivia. TV sizes in vw (1920x1080), phone sizes in px. */

/* ---------- TV ---------- */
.sb-wrap { flex: 1; display: flex; flex-direction: column; gap: 1.1vw; justify-content: center; min-width: 0; padding: 0 2vw; }
.sb-top { display: flex; align-items: center; justify-content: space-between; gap: 2vw; align-self: stretch; }
.sb-label { font-size: 1.4vw; font-weight: 800; color: #ff8a80; }
.sb-worth { font-size: 1.6vw; font-weight: 900; color: var(--gold); background: rgba(242,201,76,.12); padding: .35vw 1.2vw; border-radius: 99px; }
.sb-intro { gap: 1.4vw; }
.sb-icon { font-size: 7vw; animation: sb-wobble 1.6s ease-in-out infinite; }
@keyframes sb-wobble { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.sb-cattitle { max-width: 80vw; text-wrap: balance; font-size: 4.2vw; }
.sb-cat { font-size: 1.8vw; font-weight: 800; color: var(--muted); text-align: center; }
.sb-item { align-self: center; background: #fff; color: #111; border-radius: 1.4vw; padding: 1.6vw 4vw; font-size: 4.6vw; font-weight: 900; text-align: center; max-width: 86vw; box-shadow: 0 1vw 3vw rgba(0,0,0,.45); transform: rotate(-1deg); word-break: break-word; line-height: 1.1; }
.sb-item.shown { transform: none; }
.sb-choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1vw; }
.sb-choices.two { grid-template-columns: 1fr 1fr; }
.sb-choice { border-radius: .9vw; padding: 1.2vw; font-size: 2vw; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 1vw; min-height: 6vw; text-align: center; }
.sb-choices:not(.two) .sb-choice { font-size: 1.7vw; }
.sb-choice .sym { font-size: 1.2em; }
.sb-choice.dim { opacity: .22; }
.sb-choice.right { outline: .45vw solid #fff; animation: sb-pulse 1s ease-in-out infinite alternate; }
@keyframes sb-pulse { to { transform: scale(1.03); } }
.sb-timeline { display: flex; align-items: center; gap: 1.5vw; }
.sb-timeline .bar { flex: 1; height: .9vw; }
.sb-timeline .bar > i { background: linear-gradient(90deg, #f2c94c, #e50914); }
.sb-timeline .timer { font-size: 2.4vw; min-width: 6vw; text-align: right; }
.sb-why { font-size: 1.6vw; background: var(--panel); border-radius: 1vw; padding: 1vw 1.4vw; color: #e8ecf1; text-align: center; }
.sb-steals { display: flex; flex-direction: column; gap: .5vw; }
.sb-steal { font-size: 1.5vw; font-weight: 800; padding: .7vw 1.2vw; border-radius: .8vw; background: rgba(229,57,53,.18); border: .15vw solid rgba(229,57,53,.6); }
.sb-steal.back { background: rgba(39,174,96,.16); border-color: rgba(39,174,96,.6); }
.sb-chips { display: flex; flex-wrap: wrap; gap: .7vw; justify-content: center; }
.sb-chip { display: inline-flex; align-items: center; gap: .6vw; background: var(--panel); border-radius: 99px; padding: .4vw 1.1vw .4vw .4vw; font-size: 1.3vw; font-weight: 700; border: .15vw solid transparent; }
.sb-chip.in { border-color: rgba(255,255,255,.35); }
.sb-chip.panic { border-color: var(--bad); background: rgba(229,57,53,.2); animation: sb-blink .6s step-end infinite; }
@keyframes sb-blink { 50% { border-color: transparent; } }
.sb-name { max-width: 11vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-score { color: var(--muted); font-variant-numeric: tabular-nums; }
.sb-has { font-size: .95vw; opacity: .8; }
.sb-up { color: var(--ok); } .sb-down { color: var(--bad); } .sb-zero { color: var(--muted); }
.sb-panics { display: flex; flex-wrap: wrap; gap: .8vw; justify-content: center; }
.sb-pan { display: inline-flex; align-items: center; gap: .6vw; font-size: 1.4vw; font-weight: 800; background: rgba(229,57,53,.2); color: #ffb4ae; padding: .45vw 1.2vw .45vw .45vw; border-radius: 99px; }
.sb-panics.next .sb-pan { background: rgba(255,255,255,.06); color: var(--muted); font-size: 1.15vw; }
.sb-actions { display: flex; justify-content: flex-end; }

/* big rooms (9-16 players): everything a bit tighter, scores in a 4-column grid, so it fits on the TV */
.sb-many { gap: .7vw; }
.sb-many .sb-item { font-size: 3.4vw; padding: 1vw 3vw; }
.sb-many .sb-choice { min-height: 4.4vw; padding: .8vw; }
.sb-many .sb-choices:not(.two) .sb-choice { font-size: 1.5vw; }
.sb-many .sb-why { font-size: 1.3vw; padding: .6vw 1.2vw; }
.sb-many .sb-steal { font-size: 1.15vw; padding: .45vw 1vw; }
.sb-chips.jb-n9 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: .5vw .6vw; }
.sb-chips.jb-n9 .sb-chip { display: flex; min-width: 0; font-size: 1.1vw; padding: .3vw .7vw .3vw .3vw; }
.sb-chips.jb-n9 .sb-chip .dot { width: 1.5vw; height: 1.5vw; flex: 0 0 1.5vw; }
.sb-chips.jb-n9 .sb-name { flex: 1; min-width: 0; max-width: none; }

/* the siren: a fixed overlay over everything, click-through so the TV buttons still work */
.sb-flash { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 50; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5vw;
  background: rgba(160,0,0,.97); animation: sb-siren 3.2s linear both; }
@keyframes sb-siren { 0%, 20%, 40%, 60% { background: rgba(200,0,0,.97); } 10%, 30%, 50%, 70% { background: rgba(70,0,0,.97); } 85% { opacity: 1; } 100% { opacity: 0; background: rgba(70,0,0,.97); } }
.sb-siren { font-size: 10vw; animation: sb-spin .5s linear infinite; }
@keyframes sb-spin { 50% { transform: scale(1.15) rotate(8deg); } }
.sb-ftext { display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; text-shadow: 0 .4vw 1.5vw rgba(0,0,0,.6); }
.sb-fby { font-size: 5vw; font-weight: 900; max-width: 90vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-fverb { font-size: 7vw; font-weight: 900; letter-spacing: .6vw; color: var(--gold); line-height: 1; }
.sb-fsub { font-size: 1.8vw; color: #ffd6d2; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .sb-siren, .sb-icon, .sb-chip.panic, .sb-choice.right { animation: none !important; } }

/* ---------- phone ---------- */
.sb-screw { background: #4a1014; border: 2px solid #e53935; color: #ffd6d2; }
.sb-note { text-align: center; color: #ffb4ae; font-weight: 800; }
.sb-panic { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #b71c1c; border-radius: 14px; padding: 12px 16px; animation: sb-throb .5s ease-in-out infinite alternate; }
.sb-panic b { font-size: 16px; }
.sb-pcount { font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; min-width: 60px; text-align: right; }
@keyframes sb-throb { to { background: #e53935; } }
.sb-pitem { align-items: center; text-align: center; gap: 4px; }
.sb-ptext { font-size: 30px; font-weight: 900; line-height: 1.15; word-break: break-word; }
.sb-pch.over { opacity: .3; }
.sb-pch .pchoice { min-height: 96px; }

/* searchbar.css */
/* Search Bar Roulette */
.searchbar-stage { gap: 1vw; justify-content: flex-start; }
.searchbar-wrap { width: 62vw; display: flex; flex-direction: column; }
.searchbar-box { display: flex; align-items: center; gap: 1vw; background: #fff; color: #202124; border-radius: 3vw; padding: .9vw 2vw; font-size: 2.2vw; box-shadow: 0 .4vw 1.6vw rgba(0,0,0,.35); width: 62vw; text-align: left; }
.searchbar-box.small { font-size: 1.8vw; padding: .7vw 1.6vw; width: 50vw; }
.searchbar-glass { font-size: .9em; opacity: .7; }
.searchbar-stem { font-weight: 500; }
.searchbar-caret { display: inline-block; width: .12em; height: 1.1em; background: #1a73e8; margin-left: -.6vw; animation: searchbar-blink 1s steps(1) infinite; }
@keyframes searchbar-blink { 50% { opacity: 0; } }
.searchbar-wrap .searchbar-box { border-radius: 2vw 2vw 0 0; box-shadow: none; border-bottom: .1vw solid #dadce0; }
.searchbar-drop { background: #fff; color: #202124; border-radius: 0 0 2vw 2vw; padding: .6vw 0 1vw; box-shadow: 0 .8vw 2vw rgba(0,0,0,.35); text-align: left; }
.searchbar-drop.reveal { border-radius: 1.2vw; padding: .6vw 0; }
.searchbar-row { display: flex; align-items: center; gap: 1.2vw; padding: .45vw 2vw; font-size: 1.7vw; }
.searchbar-rank { flex: 0 0 3vw; font-weight: 900; color: #1a73e8; font-size: .9em; }
.searchbar-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.searchbar-dim { color: #70757a; }
.searchbar-mask { display: inline-block; width: 14vw; height: 1.2vw; border-radius: 1vw; background: linear-gradient(90deg, #e8eaed, #f1f3f4, #e8eaed); vertical-align: middle; }
.searchbar-row.hidden:nth-child(2) .searchbar-mask { width: 18vw; }
.searchbar-row.hidden:nth-child(3) .searchbar-mask { width: 11vw; }
.searchbar-row.hidden:nth-child(4) .searchbar-mask { width: 16vw; }
.searchbar-row.hidden:nth-child(5) .searchbar-mask { width: 9vw; }
.searchbar-pts { flex: 0 0 auto; font-weight: 800; color: #188038; font-size: .85em; min-width: 4vw; text-align: right; }
.searchbar-row.hit { background: #e6f4ea; }
.searchbar-who { display: inline-flex; gap: .3vw; }
.searchbar-who .dot, .searchbar-fooled .dot, .searchbar-by .dot { width: 1.45vw; height: 1.45vw; font-size: .8vw; }
.searchbar-sub { font-size: 1.5vw; color: var(--muted); max-width: 64vw; }
.searchbar-rules { display: flex; gap: 1vw; flex-wrap: wrap; justify-content: center; }
.searchbar-rules span { padding: .5vw 1.2vw; border-radius: 99px; background: rgba(255,255,255,.07); font-weight: 700; font-size: 1.3vw; }
.searchbar-line { display: flex; gap: 1.6vw; align-items: center; justify-content: center; flex-wrap: wrap; max-width: 92vw; }
.searchbar-line .timer { font-size: 2.6vw; }
.searchbar-head { display: flex; align-items: center; gap: 1.6vw; }
.searchbar-ask { margin: 0; font-size: 1.8vw; }
.searchbar-list { background: #fff; color: #202124; border-radius: 1.2vw; padding: .5vw 0; width: 50vw; text-align: left; box-shadow: 0 .8vw 2vw rgba(0,0,0,.35); }
.searchbar-list.two { width: 84vw; display: grid; grid-template-columns: 1fr 1fr; }
.searchbar-list .searchbar-row { padding: .4vw 1.6vw; font-size: 1.55vw; }
.searchbar-letter { flex: 0 0 2.2vw; height: 2.2vw; border-radius: 50%; background: #e8f0fe; color: #1a73e8; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1vw; }
.searchbar-reveal { display: flex; gap: 2vw; width: 88vw; align-items: flex-start; text-align: left; }
.searchbar-col { flex: 1.4; min-width: 0; display: flex; flex-direction: column; gap: .6vw; }
.searchbar-reveal h3 { margin: 0; font-size: 1.4vw; color: var(--muted); text-transform: uppercase; letter-spacing: .08vw; }
.searchbar-reveal .searchbar-row { font-size: 1.55vw; padding: .45vw 1.6vw; }
.searchbar-fakes { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .45vw; }
.searchbar-fake { background: var(--panel); border-radius: .9vw; padding: .35vw .9vw; border: .2vw solid transparent; display: flex; align-items: center; gap: .8vw; }
.searchbar-nobody { color: var(--muted); font-size: 1vw; white-space: nowrap; }
.searchbar-fake.fooled { border-color: rgba(242,201,76,.7); }
.searchbar-ftext { flex: 1; min-width: 0; font-size: 1.3vw; overflow-wrap: break-word; }
.searchbar-by, .searchbar-fooled { display: inline-flex; align-items: center; gap: .3vw; font-size: 1vw; white-space: nowrap; }
/* phone */
.searchbar-pstem { font-size: 18px; background: #fff; color: #202124; border-radius: 22px; padding: 8px 14px; }
.searchbar-opt { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; border: 2px solid transparent; padding: 12px 14px; }
.searchbar-lock { position: sticky; bottom: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.searchbar-lock:disabled { opacity: 1; background: var(--panel2); }
.searchbar-opt.on { border-color: var(--ok); background: rgba(39,174,96,.2); }
.searchbar-opt.mine { opacity: .45; }
.searchbar-tick { flex: 0 0 24px; height: 24px; border-radius: 6px; border: 2px solid rgba(255,255,255,.5); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.searchbar-opt.on .searchbar-tick { background: var(--ok); border-color: var(--ok); }
.searchbar-opt.on .searchbar-tick:after { content: '✓'; color: #fff; }
/* 9+ players: smaller progress chips and score strip; 15+ choices in three columns; 8+ fakes in a three-column grid */
.searchbar-stage .dd-progress.jb-n9 .dd-chip { font-size: 1.15vw; padding: .3vw .8vw; }
.searchbar-stage .dd-progress.jb-n9 .dot { width: 1.6vw; height: 1.6vw; }
.searchbar-line .pt-strip.jb-n9 { flex: 1 1 0; min-width: 0; justify-content: center; }
.searchbar-line .pt-strip.jb-n9 .pt-schip { font-size: .95vw; padding: .25vw .8vw .25vw .3vw; }
.searchbar-line .pt-strip.jb-n9 .dot { width: 1.35vw; height: 1.35vw; font-size: .75vw; }
.searchbar-list.three { width: 92vw; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.searchbar-list.three .searchbar-row { padding: .4vw 1vw; font-size: 1.35vw; }
.searchbar-list.three .searchbar-dim { display: none; }
.searchbar-list.three .searchbar-letter { margin-right: .8vw; }
.searchbar-reveal.many .searchbar-col { flex: 1; }
.searchbar-reveal.many .searchbar-fakes { flex: 1.7; }
.searchbar-reveal.many .searchbar-row { font-size: 1.3vw; padding: .4vw 1vw; }
.searchbar-reveal.many .searchbar-dim { display: none; }
.searchbar-reveal.many .searchbar-rank { flex-basis: 2.4vw; }
.searchbar-reveal.many .searchbar-who { flex-wrap: wrap; max-width: 10vw; }
.searchbar-fakes.jb-n9 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: .4vw; align-content: start; }
.searchbar-fakes.jb-n9 h3 { grid-column: 1 / -1; }
.searchbar-fakes.jb-n9 .searchbar-fake { display: block; padding: .3vw .6vw; font-size: 1.05vw; line-height: 1.3; }
.searchbar-fakes.jb-n9 .searchbar-ftext { font-size: 1.05vw; margin: 0 .3vw; }
.searchbar-fakes.jb-n9 .searchbar-by, .searchbar-fakes.jb-n9 .searchbar-fooled { display: inline; white-space: normal; font-size: .9vw; }
.searchbar-fakes.jb-n9 .searchbar-nobody { display: none; }
.searchbar-fakes.jb-n9 .dot { width: 1.25vw; height: 1.25vw; font-size: .7vw; vertical-align: middle; margin-right: .15vw; }

/* suddendeath.css */
/* Sudden Death. TV sizes in vw (1920x1080), phone sizes in px. Animations loop or settle,
   so they look right even when the TV rebuilds the screen mid-animation. */

/* ---------- TV ---------- */
.sd-wrap { flex: 1; display: flex; flex-direction: column; gap: 1.1vw; min-width: 0; padding: 0 2vw; justify-content: center; }
.sd-top { display: flex; align-items: center; justify-content: space-between; gap: 2vw; }
.sd-label { font-size: 1.4vw; font-weight: 800; color: #c9a7ff; letter-spacing: .05vw; }
.sd-count { display: flex; gap: 1vw; font-size: 1.3vw; }
.sd-count b { background: rgba(255,255,255,.07); padding: .35vw 1vw; border-radius: 99px; }
.sd-count .sd-gcount { color: #d9cfff; background: rgba(123,47,247,.25); }
.sd-cat { font-size: 1.2vw; text-transform: uppercase; letter-spacing: .15vw; color: var(--muted); font-weight: 700; }
.sd-q { font-size: 2.5vw; line-height: 1.25; text-wrap: balance; }
.sd-choices .choice { font-size: 1.6vw; min-height: 5.4vw; }
.sd-right { animation: sd-glow 1.2s ease-in-out infinite alternate; }
@keyframes sd-glow { from { box-shadow: 0 0 0 0 rgba(255,255,255,.0); } to { box-shadow: 0 0 2vw .4vw rgba(255,255,255,.45); } }
.sd-timeline { display: flex; align-items: center; gap: 1.5vw; }
.sd-timeline .bar { flex: 1; height: .9vw; }
.sd-timeline .bar > i { background: linear-gradient(90deg, #7b2ff7, #e50914); }
.sd-timeline .timer { font-size: 2.4vw; min-width: 6vw; text-align: right; }
.sd-chips { display: flex; flex-wrap: wrap; gap: .7vw; }
.sd-chip { display: inline-flex; align-items: center; gap: .6vw; background: var(--panel); border-radius: 99px; padding: .4vw 1.1vw .4vw .4vw; font-size: 1.3vw; font-weight: 700; border: .15vw solid transparent; }
.sd-chip.in { border-color: rgba(255,255,255,.35); }
.sd-chip.ghost { background: rgba(123,47,247,.18); color: #d9cfff; }
.sd-chip.ghost .dot { opacity: .55; }
.sd-cname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 12vw; }
.sd-tick, .sd-ok { color: var(--ok); }
.sd-bad { color: var(--bad); }
.sd-doombar, .sd-safebar { display: flex; flex-wrap: wrap; align-items: center; gap: 1vw; font-size: 1.5vw; font-weight: 800; padding: .9vw 1.3vw; border-radius: .8vw; }
.sd-doombar { background: rgba(229,9,20,.18); border: .15vw solid rgba(229,9,20,.6); animation: sd-throb 1s ease-in-out infinite; }
.sd-safebar { background: rgba(39,174,96,.12); color: #9fe0b9; }
.sd-dname { display: inline-flex; align-items: center; gap: .5vw; }
@keyframes sd-throb { 50% { background: rgba(229,9,20,.32); } }
.sd-actions { display: flex; justify-content: flex-end; }

/* the Punishment Room */
.sd-room { background: radial-gradient(ellipse at center, rgba(120,0,10,.35), transparent 70%); border-radius: 2vw; }
.sd-roomtitle { margin: 0; text-align: center; font-size: 4.4vw; letter-spacing: .5vw; color: #ff3b3b; text-shadow: 0 0 2vw rgba(255,0,0,.6); animation: sd-flicker 3s linear infinite; }
@keyframes sd-flicker { 0%, 18%, 22%, 60%, 64%, 100% { opacity: 1; } 20%, 62% { opacity: .35; } }
.sd-trial { display: flex; align-items: center; gap: 1.6vw; background: var(--panel); border-radius: 1vw; padding: 1.2vw 1.8vw; align-self: center; max-width: 70vw; }
.sd-ticon { font-size: 4vw; }
.sd-ttitle { font-size: 2.2vw; font-weight: 900; }
.sd-trules { font-size: 1.5vw; color: #dfe3e8; line-height: 1.35; }
.sd-cells { display: flex; flex-wrap: wrap; gap: 1.3vw; justify-content: center; }
.sd-cell { width: 15vw; background: #1a0c0e; border: .2vw solid #5a1a1f; border-radius: 1.2vw; padding: 1.2vw; display: flex; flex-direction: column; align-items: center; gap: .5vw; text-align: center; animation: sd-shake .5s ease-in-out infinite; }
.sd-cell.done { animation: none; border-color: #888; }
.sd-cell.ok { animation: sd-pop .6s ease-out both; border-color: var(--ok); background: rgba(39,174,96,.16); }
.sd-cell.dead { animation: sd-die 1.1s ease-out both; border-color: #7b2ff7; background: rgba(123,47,247,.2); }
.sd-cdot .dot { width: 4.5vw; height: 4.5vw; font-size: 2.6vw; }
.sd-cell.dead .sd-cdot { animation: sd-bob 2.2s ease-in-out infinite; }
.sd-cellname { font-size: 1.6vw; font-weight: 900; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-cstate { font-size: 1.2vw; font-weight: 800; letter-spacing: .1vw; color: var(--muted); }
.sd-cell.ok .sd-cstate { color: var(--ok); font-size: 1.5vw; }
.sd-cell.dead .sd-cstate { color: #c9a7ff; font-size: 1.5vw; }
.sd-cnote { font-size: 1.05vw; color: var(--muted); }
@keyframes sd-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-.25vw) rotate(-.5deg); } 75% { transform: translateX(.25vw) rotate(.5deg); } }
@keyframes sd-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes sd-die { 0% { filter: none; transform: scale(1); } 30% { filter: brightness(2.5); transform: scale(1.06); } 100% { filter: grayscale(.4); transform: scale(.96); } }
@keyframes sd-bob { 50% { transform: translateY(-.6vw); } }

/* wipe-out, the Escape */
.sd-float { font-size: 8vw; animation: sd-bob 2.4s ease-in-out infinite; }
.sd-wipe .q-text, .sd-escintro .q-text, .sd-escres .q-text { max-width: 60vw; }
.sd-door { font-size: 7vw; animation: sd-pop .8s ease-out both; }
.sd-esctitle { letter-spacing: .6vw; color: var(--gold); }
.sd-rules { display: flex; gap: 1.5vw; }
.sd-rule { width: 30vw; background: var(--panel); border-radius: 1vw; padding: 1.4vw; display: flex; flex-direction: column; gap: .6vw; font-size: 1.45vw; text-align: left; border: .2vw solid rgba(39,174,96,.5); }
.sd-rule b { font-size: 1.7vw; }
.sd-rule.ghost { border-color: rgba(123,47,247,.7); background: rgba(123,47,247,.14); }
.sd-wrap.esc .sd-label { color: var(--gold); }
.sd-track { display: flex; flex-wrap: wrap; gap: .8vw; }
.sd-trow { display: inline-flex; align-items: center; gap: .6vw; background: var(--panel); border-radius: 99px; padding: .35vw 1vw .35vw .35vw; font-size: 1.2vw; font-weight: 700; }
.sd-trow.ghost { background: rgba(123,47,247,.18); }
.sd-pips { display: inline-flex; gap: .3vw; }
.sd-pips i { width: 1vw; height: 1vw; border-radius: 50%; background: rgba(255,255,255,.15); }
.sd-pips i.need { box-shadow: 0 0 0 .15vw var(--gold); }
.sd-pips i.on { background: var(--ok); }
.sd-heist { display: flex; flex-direction: column; align-items: center; gap: 1vw; }
.sd-heist h1 { color: #c9a7ff; animation: sd-flicker 2.5s linear infinite; }
.sd-final { display: flex; flex-direction: column; gap: .6vw; width: 60vw; }
.sd-frow { text-align: left; display: flex; align-items: center; gap: 1vw; background: var(--panel); border-radius: .8vw; padding: .7vw 1.1vw; font-size: 1.4vw; font-weight: 700; }
.sd-frow .sd-cname { flex: 1; max-width: none; }
.sd-frow.out { outline: .2vw solid var(--ok); }
.sd-frow.ghost { background: rgba(123,47,247,.16); }
.sd-fwhat { color: var(--muted); font-size: 1.15vw; }
.sd-got { color: var(--ok); min-width: 6vw; text-align: right; }
/* big rooms (9-16 players): tighter spacing and player lists in grids, so they fit on the TV */
.sd-wrap.sd-many { gap: .8vw; }
.sd-many .sd-choices .choice { min-height: 4.6vw; padding: .9vw; }
.sd-chips.jb-n9 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-gap: .45vw .5vw; }
.sd-chips.jb-n9 .sd-chip { display: flex; min-width: 0; font-size: 1.1vw; padding: .3vw .7vw .3vw .3vw; }
.sd-chips.jb-n9 .sd-chip .dot, .sd-track.jb-n9 .dot, .sd-doombar.jb-n9 .dot { width: 1.5vw; height: 1.5vw; flex: 0 0 1.5vw; }
.sd-chips.jb-n9 .sd-cname, .sd-track.jb-n9 .sd-cname { flex: 1; min-width: 0; max-width: none; }
.sd-track.jb-n9 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: .45vw .6vw; }
.sd-track.jb-n9 .sd-trow { display: flex; min-width: 0; font-size: 1.1vw; padding: .3vw .8vw .3vw .3vw; }
.sd-track.jb-n9 .sd-pips i { width: .85vw; height: .85vw; margin-left: .25vw; }
.sd-track.jb-n9 .sd-trow > b { margin-left: .5vw; }
.sd-doombar.jb-n9 { font-size: 1.2vw; padding: .6vw 1vw; }
.sd-many .sd-roomtitle { font-size: 3.4vw; }
.sd-many .sd-trial { padding: .8vw 1.6vw; }
.sd-many .sd-ticon { font-size: 3vw; }
.sd-cells.jb-n9 { gap: 0; }
.sd-cells.jb-n9 .sd-cell { width: 10.4vw; padding: .6vw; margin: .35vw; }
.sd-cells.jb-n9 .sd-cdot .dot { width: 2.8vw; height: 2.8vw; font-size: 1.6vw; }
.sd-cells.jb-n9 .sd-cellname { font-size: 1.25vw; }
.sd-cells.jb-n9 .sd-cstate, .sd-cells.jb-n9 .sd-cell.ok .sd-cstate, .sd-cells.jb-n9 .sd-cell.dead .sd-cstate { font-size: 1vw; }
.sd-cells.jb-n9 .sd-cnote { font-size: .9vw; }
.sd-escres.sd-many { gap: 1vw; }
.sd-many .sd-float { font-size: 3.5vw; }
.sd-many .sd-heist { gap: .5vw; }
.sd-final.jb-n9 { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-gap: .45vw 1.2vw; width: 88vw; }
.sd-final.jb-n9 .sd-frow { font-size: 1.2vw; padding: .4vw .9vw; }
.sd-final.jb-n9 .dot { width: 1.6vw; height: 1.6vw; }
.sd-final.jb-n9 .sd-fwhat { font-size: 1vw; }
.sd-final.jb-n9 .sd-got { min-width: 4.5vw; }
@media (prefers-reduced-motion: reduce) { .sd-cell, .sd-roomtitle, .sd-float, .sd-doombar, .sd-right { animation: none !important; } }

/* ---------- phone ---------- */
.sd-ph { flex: 1; display: flex; flex-direction: column; gap: 14px; border-radius: 16px; }
.sd-ph.sd-ghost { background: linear-gradient(180deg, rgba(123,47,247,.22), rgba(20,10,40,.6)); padding: 12px; margin: -4px; box-shadow: inset 0 0 40px rgba(180,150,255,.18); color: #e6ddff; }
.sd-ph.sd-ghost .big-emoji { animation: sd-bob 2.4s ease-in-out infinite; }
.sd-ph.sd-ghost .card { background: rgba(255,255,255,.06); }
.sd-ph.sd-ghost .pchoice { opacity: .85; }
.sd-pq { gap: 6px; }
.sd-pqt { font-size: 18px; font-weight: 700; line-height: 1.3; }
.sd-pch { display: flex; flex-direction: column; gap: 10px; }
.sd-pch .pchoice { width: 100%; min-height: 62px; }
.sd-sum { align-items: center; text-align: center; }
.sd-sumq { font-size: 44px; font-weight: 900; }
.sd-typed { font-size: 40px; font-weight: 900; color: var(--gold); min-height: 48px; }
.sd-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sd-key { border: 0; border-radius: 12px; background: var(--panel2); font-size: 28px; font-weight: 800; padding: 14px 0; }
.sd-key.alt { background: #2a2f37; }
.sd-key.go { background: var(--ok); }
/* Five Letter Lock, Scrambled, What Comes Next? */
.sd-wgrid { display: flex; flex-direction: column; align-items: center; margin: 6px 0 10px; }
.sd-wrow { display: flex; }
.sd-wl { display: inline-block; width: 46px; height: 46px; line-height: 46px; margin: 2px; border: 2px solid #555; border-radius: 6px; font-style: normal; font-weight: 800; font-size: 26px; text-align: center; color: #fff; background: #1c1c28; }
.sd-wl.mg { background: #2e9d4a; border-color: #2e9d4a; }
.sd-wl.my { background: #c9a400; border-color: #c9a400; }
.sd-wl.mb { background: #3a3a46; border-color: #3a3a46; }
.sd-wgrid.tv { margin: .4vw 0 0; }
.sd-wgrid.tv .sd-wl { width: 1.3vw; height: 1.3vw; line-height: 1.3vw; margin: .12vw; border-width: 0; border-radius: .2vw; }
.sd-many .sd-wgrid.tv .sd-wl { width: .9vw; height: .9vw; }
.sd-mixed { display: flex; justify-content: center; flex-wrap: wrap; padding: 14px 8px; }
.sd-mixed i { font-style: normal; font-weight: 900; font-size: 34px; width: 50px; height: 56px; line-height: 56px; margin: 3px; text-align: center; border-radius: 10px; background: #7b2ff7; color: #fff; }
.sd-sumq.pat { font-size: 30px; letter-spacing: .02em; }

/* twist.css */
/* Twist the Quote */
.twist-emoji { font-size: 4.4vw; }
.twist-lead { font-size: 1.8vw; color: #dfe3e8; max-width: 64vw; line-height: 1.4; }
.twist-kinds { display: flex; gap: 1.5vw; }
.twist-kind { display: flex; flex-direction: column; align-items: center; gap: .3vw; background: var(--panel); border-radius: 1vw; padding: 1.2vw 2vw; min-width: 15vw; }
.twist-kind span { font-size: 3vw; }
.twist-kind b { font-size: 1.5vw; }
.twist-kind i { font-size: 1.1vw; color: var(--muted); font-style: normal; }
.twist-rules { display: flex; gap: 1vw; flex-wrap: wrap; justify-content: center; }
.twist-rules span { padding: .5vw 1.2vw; border-radius: 99px; background: rgba(255,255,255,.07); font-weight: 700; font-size: 1.3vw; }
.twist-stage { gap: 1.2vw; justify-content: flex-start; }
.twist-ask { margin: 0; font-size: 1.9vw; }
.twist-head { display: flex; align-items: center; gap: 2vw; }
.twist-row { display: flex; gap: 1.6vw; align-items: center; justify-content: center; flex-wrap: wrap; max-width: 92vw; }
.twist-row .timer { font-size: 2.6vw; }
.twist-grid { display: grid; gap: 1.2vw; width: 100%; max-width: 88vw; align-items: start; }
.twist-grid.c2 { grid-template-columns: repeat(2, minmax(0, 30vw)); justify-content: center; }
.twist-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 80vw; }
.twist-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.twist-cell { display: flex; flex-direction: column; gap: .5vw; text-align: left; border-radius: 1vw; padding: .4vw; border: .2vw solid transparent; }
.twist-grid.dense .twist-cell { zoom: .62; }   /* 5-8 cards: two rows have to fit */
.twist-cell.top { border-color: var(--gold); background: rgba(242,201,76,.08); }
.twist-label { display: flex; align-items: center; gap: .6vw; font-weight: 800; font-size: 1.1vw; color: var(--muted); }
.twist-letter { width: 1.9vw; height: 1.9vw; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.twist-card { border-radius: .8vw; overflow: hidden; box-shadow: 0 .8vw 2vw rgba(0,0,0,.35); overflow-wrap: break-word; }
/* newspaper clipping */
.twist-news { background: #f3eee2; color: #1b1b1b; padding: 1vw 1.2vw; font-family: Georgia, "Times New Roman", serif; }
.twist-mast { text-align: center; font-weight: 900; font-size: 1.35vw; letter-spacing: .05vw; border-bottom: .15vw solid #1b1b1b; padding-bottom: .3vw; font-family: "Old English Text MT", Georgia, serif; }
.twist-dateline { text-align: center; font-size: .8vw; text-transform: uppercase; letter-spacing: .1vw; border-bottom: .06vw solid #1b1b1b; padding: .25vw 0; margin-bottom: .6vw; color: #444; }
.twist-headline { font-weight: 900; font-size: 1.6vw; line-height: 1.15; margin-bottom: .6vw; }
.twist-pull { font-style: italic; font-size: 1.1vw; line-height: 1.35; color: #333; border-left: .25vw solid #b22; padding-left: .6vw; }
/* group chat screenshot */
.twist-chat { background: #f2f2f7; color: #111; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
.twist-chathead { display: flex; align-items: center; gap: .6vw; background: #fff; padding: .6vw .9vw; border-bottom: .06vw solid #d5d5da; font-size: 1.05vw; }
.twist-chathead b { flex: 1; }
.twist-back { color: #0a7cff; font-size: 1.8vw; line-height: 1; }
.twist-members { color: #8e8e93; font-size: .85vw; }
.twist-msgs { display: flex; flex-direction: column; gap: .5vw; padding: .9vw; }
.twist-them { display: flex; flex-direction: column; gap: .15vw; align-items: flex-start; }
.twist-sender { font-size: .8vw; color: #8e8e93; padding-left: .6vw; }
.twist-bubble { max-width: 85%; padding: .6vw .9vw; border-radius: 1.2vw; font-size: 1.25vw; line-height: 1.3; }
.twist-bubble.in { background: #e5e5ea; border-bottom-left-radius: .3vw; }
.twist-bubble.out { background: #0a7cff; color: #fff; align-self: flex-end; border-bottom-right-radius: .3vw; }
.twist-read { align-self: flex-end; font-size: .75vw; color: #8e8e93; }
/* shop review */
.twist-review { background: #fff; color: #111; padding: 1vw 1.2vw; display: flex; flex-direction: column; gap: .35vw; font-family: Arial, Helvetica, sans-serif; }
.twist-product { font-weight: 700; font-size: 1.45vw; color: #0b5cad; line-height: 1.2; }
.twist-stars { display: flex; align-items: center; gap: .6vw; }
.twist-stars span { color: #f5a623; font-size: 1.5vw; letter-spacing: .1vw; }
.twist-stars.low span { color: #e07b00; }
.twist-stars i { font-style: normal; font-size: .9vw; color: #555; }
.twist-verified { color: #c45500; font-weight: 700; font-size: .85vw; }
.twist-body { font-size: 1.2vw; line-height: 1.35; }
.twist-helpful { font-size: .8vw; color: #666; }
/* reveal footer */
.twist-foot { display: flex; flex-direction: column; gap: .3vw; font-size: 1vw; padding: 0 .2vw; }
.twist-credit { display: flex; align-items: center; gap: .4vw; flex-wrap: wrap; }
.twist-credit .dot, .twist-votes .dot { width: 1.5vw; height: 1.5vw; font-size: .8vw; }
.twist-orig { color: var(--muted); font-style: italic; }
.twist-votes { display: flex; gap: .3vw; flex-wrap: wrap; min-height: 1.5vw; align-items: center; }
/* phone */
.twist-pcard { gap: 6px; }
.twist-pquote { font-size: 21px; font-weight: 800; line-height: 1.3; }
.twist-pformat { align-self: flex-start; background: rgba(86,204,242,.18); color: #8fdcf5; border-radius: 99px; padding: 4px 12px; font-weight: 700; font-size: 15px; }
.twist-vote { display: flex; flex-direction: column; gap: 4px; font-size: 18px; line-height: 1.3; }
.twist-vote.mine { opacity: .45; }
.twist-vhead { font-size: 13px; color: var(--muted); font-weight: 700; }
.twist-vq { font-size: 15px; font-weight: 500; color: var(--muted); }
/* 9+ players: smaller progress chips and score strip; 13+ (twist-big): tighter intro screens */
.twist-intro .dd-progress.jb-n9 .dd-chip { font-size: 1.15vw; padding: .3vw .8vw; }
.twist-intro .dd-progress.jb-n9 .dot { width: 1.6vw; height: 1.6vw; }
.twist-big { gap: .8vw; }
.twist-big .big-emoji { font-size: 3.4vw; }
.twist-big .twist-kind { padding: .6vw 1.6vw; }
.twist-big .twist-kind span { font-size: 2.2vw; }
.twist-row .pt-strip.jb-n9 { justify-content: center; }
.twist-row .pt-strip.jb-n9 .pt-schip { font-size: .95vw; padding: .25vw .8vw .25vw .3vw; }
.twist-row .pt-strip.jb-n9 .dot { width: 1.35vw; height: 1.35vw; font-size: .75vw; }
