html, body { height: 100%; overflow: hidden; }
body { font-size: clamp(16px, 1.6vw, 34px); cursor: default; }
#app { height: 100vh; display: flex; flex-direction: column; padding: 4vh 5vw; }
.screen { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }

.d-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3.5vh; }
.d-kicker { font-size: 1.4em; font-weight: 800; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.d-question { font-size: 3.1em; font-weight: 900; line-height: 1.12; max-width: 20ch; }
.d-name { font-size: 5em; font-weight: 900; line-height: 1; color: var(--accent2); }
.d-statement { font-size: 2.4em; font-weight: 800; line-height: 1.25; max-width: 28ch; }
.d-progress { font-size: 1.5em; color: var(--muted); }
.d-progress b { color: var(--text); font-size: 1.4em; }
.d-emoji { font-size: 6em; line-height: 1; }
.d-timer { font-size: 3em; }
.d-verdict { font-size: 7em; line-height: 1; }
.d-sub { font-size: 1.1em; max-width: 60vw; width: 100%; text-align: left; }
.d-pills { justify-content: center; max-width: 80vw; font-size: .9em; }
.d-results { display: flex; flex-direction: column; gap: 2.5vh; max-width: 70vw; width: 100%; margin: 0 auto; }
.d-results .d-kicker { justify-content: flex-start; }
.d-winner { font-size: 3.4em; font-weight: 900; line-height: 1.05; color: var(--accent2); }
.d-results .bar { font-size: 1.2em; padding: 1.4vh 1.2vw; }

/* bli med */
.joingrid { display: grid; grid-template-columns: auto 1fr; gap: 6vw; align-items: center; }
.qr { background: #fff; border-radius: 3vh; padding: 2vh; width: 36vh; height: 36vh; }
.qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.joinurl { font-size: 1.5em; color: var(--muted); font-weight: 700; }
.joinurl b { color: var(--text); }
.joincode { font-size: 9em; line-height: 1; margin: 1vh 0 2vh; }
.partyname { font-size: 2.6em; font-weight: 900; margin-bottom: 1vh; }
.joined { margin-top: 4vh; display: flex; flex-wrap: wrap; gap: 1vh 1vw; font-size: 1.05em; }
.joined .pill { animation: pop .45s cubic-bezier(.2,.9,.3,1.2) both; }

/* poengtavle */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(30vw, 1fr)); gap: 4vw; align-items: start; }
.board h2 { font-size: 1.6em; }
.rank { display: grid; gap: 1vh; }
.rank .bar { font-size: 1.15em; padding: 1.1vh 1.2vw; }
.rank .place { width: 2.2em; color: var(--muted); font-weight: 900; }
.teamrow { display: flex; align-items: center; gap: 1vw; font-size: 1.5em; font-weight: 900; padding: 1.4vh 1.4vw; border-radius: 2vh; background: var(--surface); border-left: 1.2vh solid var(--c); }
.teamrow .members { font-size: .5em; font-weight: 600; color: var(--muted); }

.message { font-size: 4em; font-weight: 900; text-align: center; line-height: 1.15; }

.corner { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .9em; }
.corner .code { font-size: 1.3em; }
.fs { position: fixed; right: 12px; top: 12px; opacity: .25; }
.fs:hover { opacity: 1; }
.codeform { max-width: 520px; margin: 20vh auto 0; }
.qrcol { display: flex; flex-direction: column; align-items: center; gap: 3vh; }
.qrhero { width: 22vh; height: 22vh; }
.joinkicker { font-size: 1.6em; margin-bottom: 1vh; }
