.gate { gap: 5vh; text-align: center; }
.gate .logo { font-size: 16vh; }
.gate p { font-size: 3vh; color: var(--muted); margin: 0; }

/* lobby */
.lobby { flex-direction: row; gap: 5vw; align-items: stretch; padding: 6vh 5vw 18vh; }
.lobby .left { flex: 1.1; display: flex; flex-direction: column; justify-content: center; gap: 3vh; }
.lobby .left .logo { font-size: 10vh; }
.joinat { font-size: 3.2vh; color: var(--muted); }
.joinat b { color: var(--cream); font-family: 'Bungee'; letter-spacing: .02em; }
.code { display: flex; gap: 1.4vw; }
.code span { font-family: 'Bungee'; font-size: 15vh; width: 1.15em; text-align: center; border-radius: 3vh; background: var(--cream); color: var(--ink);
  box-shadow: 0 1.4vh 0 rgba(0, 0, 0, .4); animation: pop .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.code span:nth-child(2) { background: var(--mustard); animation-delay: .1s; }
.code span:nth-child(3) { background: var(--coral); color: var(--cream); animation-delay: .2s; }
.code span:nth-child(4) { background: var(--mint); animation-delay: .3s; }
.lobby .right { flex: 1; display: flex; flex-direction: column; gap: 2vh; justify-content: center; }
.lobby h3 { font-family: 'Bungee'; font-size: 3vh; margin: 0; color: var(--mustard); }
.seats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6vh; }
.seat { height: 9vh; border-radius: 2vh; border: .4vh dashed var(--line); display: flex; align-items: center; gap: 1.2vw; padding: 0 1.4vw;
  font-size: 3.4vh; font-weight: 600; color: var(--muted); }
.seat.full { border: .4vh solid transparent; background: var(--card); color: var(--cream); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.seat .dot { font-size: 2.6vh; width: 6vh; height: 6vh; }
.seat.off { opacity: .45; }
.vipnote { font-size: 2.6vh; color: var(--muted); }

/* round header */
.top { position: absolute; top: 4vh; left: 4vw; right: 4vw; display: flex; justify-content: space-between; align-items: center; }
.rtag { font-family: 'Bungee'; font-size: 2.6vh; padding: .5em 1em; border-radius: 99px; background: var(--card); border: 2px solid var(--line); }
.rtag.final { background: var(--coral); border-color: var(--coral); animation: throb 1.2s infinite; }

.write { gap: 3vh; padding-bottom: 18vh; }
.write .word { font-size: clamp(6vh, 14vw, 20vh); }
.write .pos { font-size: 4vh; }
.write .ask { font-size: 3.4vh; color: var(--muted); }
.status { display: flex; flex-wrap: wrap; gap: 1.2vw; justify-content: center; font-size: 2.6vh; }
.status .chip.done { border-color: var(--mint); background: rgba(61, 220, 151, .15); }
.status .chip.done::after { content: '✓'; color: var(--mint); font-weight: 700; }

.judging { gap: 4vh; padding-bottom: 18vh; }
.judging .word { font-size: 9vh; }
.lens { font-size: 16vh; animation: search 2.2s ease-in-out infinite; }
@keyframes search { 0%, 100% { transform: translate(-6vw, 0) rotate(-10deg); } 50% { transform: translate(6vw, -2vh) rotate(10deg); } }
.judging p { font-size: 3.6vh; margin: 0; }

/* vote */
.vote { padding: 13vh 4vw 18vh; gap: 2.5vh; justify-content: flex-start; }
.vote h2 { font-family: 'Bungee'; font-size: 4vh; margin: 0; text-align: center; }
.vote h2 .word { font-size: 5.5vh; display: inline; }
.ballot { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2vh 2vw; width: 100%; flex: 1; align-content: center; }
.ballot.many { grid-template-columns: repeat(3, 1fr); }
.bcard { position: relative; padding: 2.2vh 2vw 2.2vh 6vw; border-radius: 2.4vh; background: var(--cream); color: var(--ink);
  font-size: 3vh; line-height: 1.25; box-shadow: 0 1vh 0 rgba(0, 0, 0, .35); animation: rise .5s ease-out both; }
.bcard .n { position: absolute; left: 1.6vw; top: 50%; transform: translateY(-50%); font-family: 'Bungee'; font-size: 4vh; color: var(--coral); }

/* reveal */
.reveal { gap: 2.4vh; padding-bottom: 20vh; }
.reveal #rslot { display: flex; flex-direction: column; align-items: center; gap: 2vh; }
.reveal .word { font-size: 6vh; }
.rcard { position: relative; width: min(80vw, 1200px); padding: 5vh 4vw; border-radius: 3vh; background: var(--cream); color: var(--ink);
  font-size: 4.6vh; text-align: center; box-shadow: 0 1.6vh 0 rgba(0, 0, 0, .4); animation: flipin .6s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes flipin { from { transform: perspective(900px) rotateY(-90deg); opacity: 0; } }
.rcard.truth { background: var(--mustard); box-shadow: 0 0 0 1vh rgba(255, 183, 3, .3), 0 0 12vh rgba(255, 183, 3, .7); }
.pickers { display: flex; gap: 1vw; justify-content: center; min-height: 6vh; flex-wrap: wrap; }
.pickers .chip { font-size: 2.8vh; animation: fly .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes fly { from { transform: translateY(40vh) scale(.4); opacity: 0; } }
.plabel { font-size: 2.4vh; color: var(--muted); text-align: center; }
.stamp { position: absolute; right: -2vw; top: -4vh; font-family: 'Bungee'; font-size: 5vh; padding: .2em .6em; border: .8vh solid currentColor;
  border-radius: 1.5vh; transform: rotate(10deg); background: rgba(255, 246, 229, .95); animation: stamp .35s cubic-bezier(.3, 1.8, .5, 1) both; }
.stamp.lie { color: var(--coral); }
.stamp.ai { color: #7b2cbf; }
.stamp.true { color: #0a8754; }
@keyframes stamp { from { transform: rotate(10deg) scale(3); opacity: 0; } }
.byline { font-size: 3vh; font-family: 'Bungee'; text-align: center; }
.knew { font-size: 2.6vh; color: var(--mint); }

/* scores */
.scores { gap: 2vh; padding: 10vh 10vw 20vh; }
.scores h2 { font-family: 'Bungee'; font-size: 6vh; margin: 0 0 2vh; color: var(--mustard); }
.board { width: 100%; display: flex; flex-direction: column; gap: 1.6vh; }
.brow { display: grid; grid-template-columns: 5vh 22vw 1fr 12vw; gap: 1.5vw; align-items: center; font-size: 3.4vh; font-weight: 600;
  animation: rise .5s ease-out both; }
.brow .rank { font-family: 'Bungee'; color: var(--muted); }
.brow .barwrap { height: 5vh; border-radius: 1.4vh; background: rgba(255, 255, 255, .08); overflow: hidden; }
.brow .barfill { height: 100%; border-radius: 1.4vh; width: 0; transition: width 1.4s cubic-bezier(.2, 1, .3, 1); }
.brow .pts { font-family: 'Bungee'; text-align: right; }
.brow .delta { color: var(--mint); font-size: 2.6vh; margin-left: .6em; animation: pop .5s 1s both; }

/* game over */
.over { gap: 3vh; padding-bottom: 18vh; }
.over .logo { font-size: 9vh; }
.awards { display: flex; gap: 2vw; flex-wrap: wrap; justify-content: center; }
.award { width: 18vw; min-width: 220px; padding: 3vh 1.5vw; border-radius: 3vh; background: var(--card); border: .4vh solid var(--line); text-align: center;
  animation: flipin .7s cubic-bezier(.2, 1.3, .4, 1) both; }
.award:first-child { border-color: var(--mustard); background: rgba(255, 183, 3, .12); }
.award h4 { font-family: 'Bungee'; font-size: 2.4vh; margin: 0 0 1.5vh; color: var(--mustard); }
.award .name { font-size: 4.6vh; font-weight: 700; }
.award p { margin: 1vh 0 0; color: var(--muted); font-size: 2.4vh; }

.soundbtn { position: fixed; top: 2vh; right: 2vw; z-index: 60; font: 600 2.2vh 'Fredoka'; padding: .8em 1.2em; border-radius: 99px; border: 0;
  background: var(--coral); color: var(--cream); cursor: pointer; animation: throb 1.2s infinite; }

.endbtn { position: fixed; left: 4vw; bottom: 2vh; z-index: 45; font: 600 1.6vh 'Fredoka'; padding: .5em 1em; border-radius: 99px; border: 2px solid var(--line);
  background: rgba(0,0,0,.35); color: var(--muted); cursor: pointer; opacity: .5; }
.endbtn:hover, .endbtn[data-armed] { opacity: 1; border-color: var(--coral); color: var(--coral); }

.seat .sname { flex: 1; }
.seat.ready { border-color: var(--mint); background: rgba(61, 220, 151, .12); }
.seat .rdy { font: 1.6vh 'Bungee'; color: var(--mint); }
.seat .ava { animation: bob 2.4s ease-in-out infinite; }
.seat:nth-child(2n) .ava { animation-delay: -1.2s; }
@keyframes bob { 50% { transform: translateY(-.6vh) rotate(-4deg); } }
.who2 { display: flex; align-items: center; gap: .6vw; }
.award .ava { display: block; margin: 0 auto 1vh; }
.chip .ava { margin: -.4em 0 -.4em -.2em; }
