/* GameKnight quick games: the look the phone and the TV share. It is the app's own look (Iman, Nov 21): near-black, grey glass, a cream button, and the covers bring the colour.
   No brand colour of our own. One warm accent (--lamp) for small things like a vote ring. A game's own colour (--game) appears only on that game's own objects, such as its question card. */
@font-face{font-family:"Archivo";src:url("/fonts/Archivo_wdth_wght_.ttf") format("truetype");font-weight:100 900;font-stretch:62% 125%;font-display:swap}
@font-face{font-family:"Big Shoulders";src:url("/fonts/BigShouldersDisplay_wght_.ttf") format("truetype");font-weight:100 900;font-display:swap}
@font-face{font-family:"Hanken Grotesk";src:url("/fonts/hanken-grotesk.woff2") format("woff2");font-weight:100 900;font-display:swap}
:root{--ui:"Hanken Grotesk",system-ui,sans-serif;--wide:"Archivo","Helvetica Neue",Arial,sans-serif;
  --bg:#07070A;--card:#15151a;--tx:#F4F1EA;--tx2:#A3A09A;--lamp:#EDC27C;--ink:#0b0b0b;--line:rgba(255,255,255,.15);
  /* Most Likely To's own colours, for its card only */
  --game:#FFC62E;--gink:#1D0B40;
  --out:cubic-bezier(.16,1,.3,1);--d:40px}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%;margin:0;background:var(--bg);color:var(--tx);font-family:var(--ui);-webkit-font-smoothing:antialiased;overflow:hidden}
::selection{background:var(--tx);color:var(--ink)}
button,input{font-family:var(--ui);color:inherit}
button{cursor:pointer}
button:focus-visible,input:focus-visible{outline:2px solid var(--tx);outline-offset:3px}
.wm{font:600 12px/1 var(--wide);font-stretch:125%;letter-spacing:.3em;text-transform:uppercase}

.glass{border-radius:30px;padding:20px 20px 18px;background:rgba(46,47,54,.66);-webkit-backdrop-filter:blur(26px) saturate(1.2);backdrop-filter:blur(26px) saturate(1.2);box-shadow:inset 0 0 0 1px var(--line),inset 0 1px 0 rgba(255,255,255,.2),0 26px 50px -20px rgba(0,0,0,.9)}
.go{display:block;width:100%;height:60px;margin-top:12px;border:0;border-radius:18px;background:var(--tx);color:var(--ink);font:800 18px var(--ui);letter-spacing:-.01em;transition:transform .12s var(--out)}
.go.wait{background:rgba(255,255,255,.1);color:rgba(244,241,234,.6);box-shadow:inset 0 0 0 1px var(--line)}      /* not ready yet: it still answers a tap, with the reason */
.alt{display:block;width:100%;height:54px;margin-top:10px;border:0;border-radius:18px;background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1px var(--line);font:700 16px var(--ui);transition:transform .12s var(--out)}
.go:active,.alt:active,.nm:active{transform:scale(.975)}
.link{min-height:48px;border:0;background:none;padding:12px 6px;font:700 16px var(--ui);color:var(--tx);text-decoration:underline;text-decoration-color:rgba(255,255,255,.4);text-underline-offset:4px}

/* a player is a dot in their own colour with their initial on it */
.dot{display:inline-grid;place-items:center;flex:none;width:var(--d);height:var(--d);border-radius:50%;background:var(--c,#fff);color:#111;font:800 calc(var(--d) * .5)/1 var(--ui)}      /* the initial is half the circle: a 32px dot carries a 16px letter */

/* the room: the TV along the top with its light falling in, the table, sofa or row, and exactly the people who are in it. It grows as they join.
   --d0 is the size of a person, set by the page; --k shrinks it when the room gets crowded. */
.room{position:relative;--d:calc(var(--d0,40px) * var(--k,1))}
.room svg{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}
.room .tvp{position:absolute;left:50%;top:10.5%;transform:translateX(-50%);font:800 calc(var(--d0,40px) * .36)/1 var(--wide);letter-spacing:.18em;color:var(--tx);opacity:.85}
.room .seat,.room .gap{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);display:grid;place-items:center;padding:0;border:0;border-radius:50%}
.room .seat{width:var(--d);height:var(--d);background:var(--c);color:#111;font:800 calc(var(--d) * .5)/1 var(--ui);box-shadow:0 0 0 calc(var(--d) * .07) var(--bg),0 calc(var(--d) * .3) calc(var(--d) * .4) calc(var(--d) * -.16) #000;transition:transform .16s var(--out),opacity .3s,box-shadow .16s,left .4s var(--out),top .4s var(--out)}
.room .seat small{position:absolute;left:50%;top:calc(100% + var(--d) * .12);transform:translateX(-50%);max-width:min(calc(var(--d0,40px) * 2.4), calc(var(--rw,1000px) * var(--sp,100) / 100 - 3px));overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 min(calc(var(--d0,40px) * .36), calc(var(--rw,1000px) * var(--sp,100) / 420))/1.15 var(--ui);color:var(--tx);text-shadow:0 1px 3px #000}
.room .seat.me{box-shadow:0 0 0 calc(var(--d) * .07) var(--bg),0 0 0 calc(var(--d) * .14) var(--tx)}
.room .seat.off{opacity:.38}
.room .seat.dim{opacity:.45}
.room .seat.in{box-shadow:0 0 0 calc(var(--d) * .07) var(--bg),0 0 0 calc(var(--d) * .16) var(--lamp)}
.room .seat.lit{transform:translate(-50%,-50%) scale(1.3);opacity:1;box-shadow:0 0 0 calc(var(--d) * .1) var(--tx),0 0 calc(var(--d) * 1.1) var(--tx)}
/* names: full size until the room gets crowded, then only as big as the space to the next person (--sp, from ui.js; --rw is the room's width, set by the page) */
/* a gap between two people: tap the one you're sitting in */
.room .gap{width:calc(var(--d) * .82);height:calc(var(--d) * .82);min-width:26px;min-height:26px;background:rgba(255,255,255,.08);border:1.5px dashed rgba(255,255,255,.55);color:var(--tx);font:500 calc(var(--d) * .5)/1 var(--ui)}
.room .gap.sel{width:var(--d);height:var(--d);border:0;background:var(--c);color:#111;font:800 calc(var(--d) * .5)/1 var(--ui);box-shadow:0 0 0 calc(var(--d) * .07) var(--bg),0 0 0 calc(var(--d) * .14) var(--tx)}
.room .gap small{position:absolute;left:50%;top:calc(100% + var(--d) * .12);transform:translateX(-50%);font:700 min(calc(var(--d0,40px) * .36), calc(var(--rw,1000px) * var(--sp,100) / 420))/1.15 var(--ui);color:var(--tx);text-shadow:0 1px 3px #000}
/* scattered: six sections of the room, front to back, and you're in one of them */
.zones{position:absolute;left:2%;right:2%;top:20%;bottom:0;display:grid;grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr 1fr;gap:3%}
.zone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6%;min-width:0;padding:6% 4%;border:0;border-radius:calc(var(--d0,40px) * .4);background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px var(--line);color:var(--tx);font:700 calc(var(--d0,40px) * .36)/1.1 var(--ui)}
.zone em{font-style:normal;color:var(--tx2)}
.zone .zd{display:flex;flex-wrap:wrap;justify-content:center;gap:calc(var(--d0,40px) * .1)}
.zone .seat{position:static;transform:none;--d:calc(var(--d0,40px) * .62)}
.zone .seat.lit{transform:scale(1.3)}
.zone.sel{background:rgba(255,255,255,.16);box-shadow:inset 0 0 0 2px var(--tx)}

/* everyone in the room, by name */
.people{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0;padding:0}
.people li{display:flex;align-items:center;gap:7px;padding:4px 13px 4px 4px;border-radius:99px;background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1px var(--line);font:700 16px/1 var(--ui)}
.people li.off{opacity:.45}
.people .dot{--d:32px}

/* thumbs for the game that's up: two groups, each with its count and the people in it */
.votes{display:flex;gap:8px}
.vt{display:flex;align-items:center;gap:7px;min-height:44px;padding:6px 14px 6px 12px;border-radius:99px;background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px var(--line);color:var(--tx2);font:800 16px/1 var(--ui);transition:background .25s,color .25s}
.vt svg{flex:none;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.vt .dot{--d:28px;margin-left:-11px;box-shadow:0 0 0 2px #2a2b31}
.vt b + .dot{margin-left:2px}
.vt.dn.has{color:var(--tx);background:rgba(255,255,255,.14)}
.vt.up.has{background:var(--tx);color:var(--ink)}
.vt.up.has .dot{box-shadow:0 0 0 2px var(--tx)}
.vt .dot.pop{animation:vpop .7s var(--out)}
@keyframes vpop{0%{transform:scale(0)}55%{transform:scale(1.45)}}

/* the tally: one row a player, the bar behind the name is their share */
.bars{list-style:none;margin:0;padding:0}
.bars li{position:relative;display:flex;align-items:center;gap:10px;margin-top:7px;padding:7px 16px 7px 7px;border-radius:99px;background:rgba(255,255,255,.07);overflow:hidden;font:700 16px var(--ui)}
.bars li:first-child{margin-top:0}
.bars li i{position:absolute;left:0;top:0;bottom:0;width:calc(var(--p) * 1%);min-width:0;background:rgba(255,255,255,.13);border-radius:99px;transition:width .7s var(--out)}
.bars li.win{box-shadow:inset 0 0 0 2px var(--tx)}
.bars li.win i{background:rgba(255,255,255,.2)}
.bars li > :not(i){position:relative}
.bars li .dot{--d:30px}
.bars li span:not(.dot){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bars li em{font:600 12.5px var(--ui);font-style:normal;color:var(--tx2);margin-left:8px}
.bars li b{font-weight:800}

/* the debate clock (Pick a Side), on the phone and the TV: size it with --ck */
.clock{position:relative;width:var(--ck,96px);height:var(--ck,96px);flex:none}
.clock svg{position:absolute;left:0;top:0;width:100%;height:100%;transform:rotate(-90deg)}
.clock circle{fill:none;stroke-width:8}
.clock .trk{stroke:rgba(255,255,255,.14)}
.clock .arc{stroke:var(--tx);stroke-linecap:round;stroke-dasharray:276.5;transition:stroke-dashoffset .2s linear}
.clock b{position:absolute;left:0;top:0;width:100%;height:100%;display:grid;place-items:center;font:800 calc(var(--ck,96px) * .4)/1 var(--ui);letter-spacing:-.03em}

/* Worst of Us: the stamp that comes down on whoever's guilty. Size it with --st. */
.stamp{position:absolute;left:50%;top:50%;z-index:4;transform:translate(-50%,-50%) rotate(-12deg);padding:.14em .42em .1em;border:.13em solid #E5383B;border-radius:.18em;background:rgba(20,6,6,.72);color:#FF4D50;font:800 var(--st,58px)/1 var(--wide);font-stretch:112%;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;pointer-events:none}
@media (prefers-reduced-motion:no-preference){.stamp{animation:slam .42s cubic-bezier(.2,1.5,.3,1) both}@keyframes slam{from{transform:translate(-50%,-50%) rotate(-12deg) scale(3.4);opacity:0}}}
/* the tug-of-war: two sides that grow with the votes against them */
.tp{flex:1 1 0;min-width:0;min-height:0;transition:flex-grow .6s cubic-bezier(.3,0,.1,1)}
/* dice being thrown: they come in from the side spinning, bounce once, and settle into their own tilt */
@media (prefers-reduced-motion:no-preference){
  .dice.rolling .die{animation:dtumble var(--dm,1s) cubic-bezier(.25,.6,.35,1) backwards}
  .dice.rolling .die + .die{animation-delay:.08s;animation-name:dtumble2}
  .dice.rolling .die + .die + .die{animation-delay:.15s;animation-name:dtumble}
  @keyframes dtumble{0%{transform:translate(170%,-190%) rotate(-540deg) scale(.6);opacity:0}12%{opacity:1}46%{transform:translate(8%,10%) rotate(-40deg) scale(1.08)}64%{transform:translate(-6%,-26%) rotate(24deg) scale(1)}82%{transform:translate(2%,4%) rotate(-12deg)}}
  @keyframes dtumble2{0%{transform:translate(120%,-230%) rotate(620deg) scale(.6);opacity:0}12%{opacity:1}50%{transform:translate(-10%,12%) rotate(50deg) scale(1.08)}68%{transform:translate(6%,-22%) rotate(-10deg) scale(1)}86%{transform:translate(-2%,4%) rotate(16deg)}}
}
