:root {
  color-scheme: dark;
  --bg: #0d0b14;
  --panel: #191620;
  --muted: #aaa3b8;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --white: #f8fafc;
  --green: #22c55e;
  --border: #ffffff15;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  background-image: radial-gradient(
    ellipse at 73% 28%,
    #6430ad1b,
    transparent 50%
  );
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #d4baff;
  outline-offset: 5px;
}
header {
  height: 98px;
  max-width: 1440px;
  padding: 0 6%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.wordmark {
  font-size: 32px;
  letter-spacing: -2px;
  font-weight: 950;
  text-decoration: none;
  font-style: italic;
}
.wordmark span {
  color: var(--pink);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.adult-label {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font-size: 20px;
}
.icon-button.on {
  color: white;
  background: #8b5cf640;
}
#network {
  font-size: 12px;
  color: #ffb8be;
}
main {
  max-width: 1320px;
  margin: auto;
  padding: 54px 5% 60px;
  min-height: calc(100vh - 180px);
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 34px;
  min-height: 500px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  color: #bf9fff;
  font-weight: 750;
  letter-spacing: 2px;
  font-size: 12px;
}
.eyebrow:before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--purple);
}
h1 {
  font-size: clamp(46px, 5.5vw, 78px);
  line-height: 1.04;
  letter-spacing: -4px;
  font-weight: 900;
  margin: 28px 0 24px;
}
h1 em {
  font-style: normal;
  color: #b18aff;
}
h2 {
  font-size: clamp(28px, 3.5vw, 46px);
  letter-spacing: -1.7px;
  line-height: 1.12;
  margin: 18px 0;
}
h3 {
  margin: 0 0 12px;
}
p {
  line-height: 1.65;
}
.lede {
  max-width: 460px;
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 30px;
}
.lede b {
  color: #e1dbea;
  font-weight: 500;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 23px;
  border-radius: 13px;
  background: var(--purple);
  border: 1px solid transparent;
  color: white;
  font-weight: 750;
  transition:
    transform 0.2s,
    background 0.2s;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  background: #9d74fa;
}
.btn.secondary {
  background: #211c2c;
  border-color: #ffffff20;
}
.btn.secondary:hover {
  background: #30263e;
}
.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: #d0c7dd;
}
.btn.danger {
  background: #5b1d32;
  border-color: #e04c73;
}
.btn.small {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 14px;
}
.solo-link {
  margin-top: 19px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #aaa2b8;
  font-size: 14px;
}
.text-button {
  border: 0;
  background: none;
  color: inherit;
  padding: 5px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.trust {
  margin-top: 30px;
  color: #777080;
  font-size: 12px;
  display: flex;
  gap: 18px;
}
.trust span:before {
  content: "✓";
  color: #9a82bc;
  margin-right: 7px;
}
.art {
  height: 470px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.orbital {
  position: absolute;
  border: 1px solid #8b5cf61c;
  border-radius: 50%;
  width: 430px;
  height: 430px;
  transform: rotate(-25deg);
}
.orbital:after {
  content: "";
  position: absolute;
  inset: 35px;
  border-radius: 50%;
  border: 1px dashed #8b5cf62a;
}
.glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: #7837ec38;
  filter: blur(65px);
}
.dossier {
  position: relative;
  width: 290px;
  height: 350px;
  background: linear-gradient(145deg, #b493f6, #8355cc);
  transform: rotate(-9deg);
  border-radius: 5px 18px 18px 18px;
  box-shadow:
    16px 20px 0 #38264e,
    -2px -2px 0 #c8abff,
    0 40px 100px #0008;
  padding: 28px;
  color: #20122f;
}
.dossier:before {
  content: "";
  position: absolute;
  top: -17px;
  left: 0;
  width: 110px;
  height: 25px;
  background: #b493f6;
  border-radius: 9px 9px 0 0;
}
.dossier .label {
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 800;
  border-bottom: 1px solid #24132c55;
  padding-bottom: 16px;
}
.dossier .face {
  font-size: 100px;
  line-height: 1.2;
  text-align: center;
  margin-top: 17px;
  filter: grayscale(1) contrast(2);
}
.dossier .redacted {
  height: 10px;
  width: 80%;
  background: #321d4c;
  margin-top: 12px;
}
.dossier .redacted.short {
  width: 56%;
}
.stamp {
  position: absolute;
  bottom: 31px;
  right: -24px;
  font-size: 27px;
  font-weight: 950;
  color: #432453;
  border: 4px solid #432453;
  border-radius: 5px;
  padding: 4px 10px;
  transform: rotate(15deg);
  letter-spacing: 2px;
}
.floating {
  position: absolute;
  border: 1px solid #ffffff23;
  background: #211a2ce8;
  backdrop-filter: blur(12px);
  border-radius: 15px;
  padding: 13px 18px;
  box-shadow: 0 15px 40px #0006;
  z-index: 2;
}
.floating.top {
  right: 0;
  top: 65px;
  transform: rotate(8deg);
  font-size: 13px;
}
.floating.bottom {
  left: 0;
  bottom: 35px;
  transform: rotate(5deg);
  font-size: 14px;
}
.floating b {
  display: block;
  margin-top: 3px;
  color: #d1b1ff;
}
.seal {
  position: absolute;
  left: 20px;
  top: 45px;
  background: #e8ff95;
  color: #17151e;
  width: 72px;
  height: 72px;
  display: grid;
  place-content: center;
  transform: rotate(-15deg);
  border-radius: 50%;
  font-size: 12px;
  text-align: center;
  font-weight: 850;
}
.tiny-star {
  position: absolute;
  right: 8px;
  bottom: 82px;
  color: #dfc1ff;
  font-size: 48px;
}
.ticker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 34px;
  gap: 18px;
  color: #bcb2ca;
  font-weight: 650;
  font-size: 13px;
  letter-spacing: 1px;
}
.ticker span:nth-child(even) {
  color: #765498;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 38px;
}
.step {
  display: flex;
  gap: 16px;
}
.step-num {
  width: 35px;
  height: 35px;
  border: 1px solid #76549855;
  color: #b08ae6;
  display: grid;
  place-items: center;
  border-radius: 10px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
}
.step h3 {
  font-size: 15px;
  margin: 1px 0 6px;
}
.step p {
  font-size: 13px;
  color: #8b829a;
  margin: 0;
  line-height: 1.55;
}
footer {
  max-width: 1320px;
  margin: auto;
  padding: 24px 5%;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #81788e;
  font-size: 12px;
}
footer nav {
  display: flex;
  gap: 20px;
}
footer button {
  font-size: 12px;
  background: none;
  color: inherit;
  border: 0;
  padding: 0;
}
dialog {
  background: #191420;
  color: white;
  border: 1px solid #ffffff25;
  border-radius: 24px;
  width: min(520px, calc(100% - 24px));
  max-height: 90vh;
  padding: 32px;
  box-shadow: 0 20px 100px #0009;
}
dialog::backdrop {
  background: #06040cc9;
  backdrop-filter: blur(8px);
}
.close {
  float: right;
  border: 0;
  background: #ffffff0b;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: white;
  font-size: 22px;
}
.field {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.field > span,
label {
  font-size: 14px;
  color: #c9bfd7;
}
input,
select,
textarea {
  width: 100%;
  background: #0d0b14;
  border: 1px solid #ffffff25;
  border-radius: 10px;
  padding: 14px;
  color: white;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
  flex: none;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  margin: 15px 0;
}
.avatar-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.avatar-select button {
  background: #ffffff08;
  border: 2px solid transparent;
  border-radius: 12px;
  width: 47px;
  height: 47px;
  font-size: 25px;
}
.avatar-select button.selected {
  border-color: var(--purple);
  background: #8b5cf630;
}
.muted {
  color: var(--muted);
}
.caption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.panel {
  background: linear-gradient(135deg, #211a2caa, #15111bcc);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
}
.center {
  text-align: center;
}
.narrow {
  max-width: 760px;
  margin: 0 auto;
}
.room-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 25px;
}
.code {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: 9px;
  margin: 22px 0;
  color: #c9aaff;
}
.qr {
  background: white;
  border-radius: 14px;
  padding: 12px;
  width: 150px;
  margin: 22px auto;
}
.qr svg {
  display: block;
  width: 100%;
  height: auto;
}
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.player {
  background: #ffffff05;
  border: 1px solid var(--border);
  padding: 17px;
  border-radius: 15px;
  text-align: center;
}
.avatar {
  font-size: 35px;
}
.player .name {
  display: block;
  margin: 8px 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}
.player small {
  font-size: 12px;
  color: var(--muted);
}
.player.yes {
  border-color: #ec489970;
  background: #ec489912;
}
.player.no {
  border-color: #22c55e70;
  background: #22c55e12;
}
.player.focus {
  box-shadow: 0 0 30px #8b5cf62b;
}
.question {
  padding: 50px 40px;
  text-align: center;
  margin: 25px 0;
}
.question h2 {
  font-size: clamp(28px, 4vw, 46px);
  max-width: 820px;
  margin: 30px auto;
  line-height: 1.2;
  min-height: 110px;
}
.pill {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 30px;
  background: #8b5cf622;
  color: #c7a8ff;
  font-size: 13px;
}
.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 36px 0 12px;
}
.answer {
  min-height: 102px;
  border-radius: 17px;
  padding: 20px;
  color: white;
  border: 1px solid;
  font-weight: 850;
  font-size: 24px;
  transition: transform 0.15s;
}
.answer small {
  font-weight: 400;
  font-size: 13px;
  display: block;
  margin-top: 5px;
}
.answer:hover {
  transform: translateY(-3px);
}
.answer.no {
  background: #143225;
  border-color: #22c55e77;
  color: #7eeaaa;
}
.answer.yes {
  background: #3e182f;
  border-color: #ec489977;
  color: #ff8ac7;
}
.answer.chosen {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
.progress {
  width: 100%;
  height: 5px;
  border-radius: 10px;
  background: #ffffff12;
  overflow: hidden;
  margin: 12px 0;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  transition: width 0.3s;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px 0;
}
.quote {
  color: #d1bbef;
  font-size: 20px;
  line-height: 1.6;
  max-width: 700px;
  margin: 25px auto;
}
.reaction-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}
.reaction-buttons button {
  background: #ffffff08;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 23px;
  padding: 10px;
}
.score-ring {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  margin: 20px auto;
  display: grid;
  place-items: center;
  background: radial-gradient(closest-side, #191420 82%, transparent 84%),
    conic-gradient(#b081ff calc(var(--score) * 1%), #ffffff10 0);
  font-size: 46px;
  font-weight: 900;
}
.big-avatar {
  font-size: 75px;
}
.badge {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid #8b5cf650;
  background: #8b5cf612;
  border-radius: 9px;
  margin: 4px;
  font-size: 12px;
  color: #d1bbef;
}
.result-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.result-row .grow {
  flex: 1;
}
.result-row .score {
  font-size: 27px;
  font-weight: 900;
  color: #c4a0ff;
}
.rank {
  font-weight: 800;
  font-size: 21px;
  color: #81708e;
  min-width: 35px;
}
.radar {
  max-width: 350px;
  width: 100%;
  display: block;
  margin: 20px auto;
}
.stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin: 24px 0;
}
.stats b {
  font-size: 28px;
  display: block;
  color: #cfb2f8;
}
.stats span {
  font-size: 12px;
  color: var(--muted);
}
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 15px;
  margin: 35px auto;
}
.podium > div {
  background: linear-gradient(#8056bc44, #8056bc08);
  border: 1px solid #b68be84a;
  border-radius: 16px 16px 0 0;
  padding: 20px;
  min-width: 130px;
  max-width: 250px;
  overflow-wrap: anywhere;
}
.podium > div:first-child {
  min-height: 245px;
}
.podium > div:nth-child(2) {
  min-height: 200px;
}
.podium > div:nth-child(3) {
  min-height: 165px;
}
.podium .avatar {
  margin: 15px 0;
}
.error-box {
  background: #4c1d2a;
  border: 1px solid #ff77854a;
  padding: 15px;
  border-radius: 12px;
  margin: 16px 0;
  color: #ffd4db;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 20px);
  max-width: 90vw;
  padding: 14px 23px;
  background: #342641;
  color: white;
  border: 1px solid #9677bb;
  border-radius: 14px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.float-reaction {
  position: fixed;
  bottom: 0;
  font-size: 42px;
  animation: float 2.4s ease-out forwards;
  pointer-events: none;
  z-index: 20;
}
@keyframes float {
  to {
    transform: translateY(-75vh) rotate(20deg);
    opacity: 0;
  }
}
.reveal-in {
  animation: reveal 0.6s both;
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(15px) rotateX(20deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.confetti {
  position: fixed;
  top: -10px;
  width: 7px;
  height: 13px;
  animation: fall 3s linear forwards;
  z-index: 5;
  pointer-events: none;
}
@keyframes fall {
  to {
    transform: translateY(105vh) rotate(500deg);
  }
}
body.tv main {
  max-width: 1600px;
}
body.tv .question h2 {
  font-size: clamp(36px, 4vw, 64px);
}
body.tv footer {
  display: none;
}
body.reduced *,
body.reduced *:before,
body.reduced *:after {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
@media (min-width: 1500px) {
  main {
    padding-top: 70px;
  }
  .hero {
    min-height: 550px;
  }
}
@media (max-width: 850px) {
  header {
    padding: 0 6%;
    height: 78px;
  }
  .adult-label {
    display: none;
  }
  main {
    padding: 35px 6%;
  }
  .hero {
    gap: 0;
  }
  .art {
    transform: scale(0.8);
    transform-origin: center;
    width: 100%;
    height: 400px;
  }
  .dossier {
    width: 260px;
  }
  .floating.top {
    right: -15px;
  }
  .floating.bottom {
    left: -15px;
  }
  .trust {
    gap: 10px;
    font-size: 11px;
  }
  .room-layout {
    grid-template-columns: 1fr;
  }
  .steps {
    gap: 20px;
  }
  .ticker {
    flex-wrap: wrap;
    justify-content: center;
  }
  .ticker span:nth-child(even) {
    display: none;
  }
  h1 {
    letter-spacing: -2px;
  }
  .hero .actions .btn {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    position: relative;
    z-index: 3;
  }
  .hero h1 {
    font-size: 53px;
    max-width: 400px;
  }
  .hero .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .hero .actions .btn {
    font-size: 13px;
    padding: 15px 10px;
  }
  .art {
    height: 330px;
    transform: scale(0.78);
    margin: 0 auto -20px;
    max-width: 420px;
  }
  .hero .lede {
    font-size: 16px;
  }
  .trust {
    margin-top: 22px;
  }
  .steps {
    grid-template-columns: 1fr;
    margin: 28px 0;
    gap: 23px;
  }
  .ticker {
    margin-top: 10px;
    font-size: 11px;
    padding: 18px 0;
  }
  .floating.top {
    right: 0;
  }
  .floating.bottom {
    left: 0;
  }
  footer {
    display: block;
    line-height: 1.8;
  }
  footer nav {
    margin-top: 12px;
  }
  header .header-right {
    gap: 9px;
  }
  .panel {
    padding: 22px;
  }
  .question {
    padding: 28px 18px;
  }
  .question h2 {
    min-height: 120px;
  }
  .answers {
    gap: 12px;
  }
  .answer {
    font-size: 22px;
    padding: 17px 8px;
    min-height: 95px;
  }
  .screen-head {
    align-items: flex-start;
  }
  .screen-head h2 {
    font-size: 27px;
  }
  .player-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .podium {
    gap: 8px;
  }
  .podium > div {
    min-width: 0;
    flex: 1;
    padding: 12px 7px;
    font-size: 12px;
  }
  .code {
    letter-spacing: 5px;
  }
  .result-row {
    gap: 10px;
    padding: 15px 0;
  }
  .result-row .btn {
    font-size: 12px;
    padding: 8px;
  }
  .quote {
    font-size: 18px;
  }
  dialog {
    padding: 25px;
  }
  .btn {
    padding: 13px 18px;
  }
  .controls .btn {
    flex: 1;
  }
  .adult-label {
    display: none;
  }
}

body {
  overflow-x: clip;
}
.hero > * {
  min-width: 0;
}
.hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
@media (max-width: 600px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

.score-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.score-ring small {
  font-size: 22px;
}
.eyebrow {
  line-height: 1.5;
}
.question h2 {
  overflow-wrap: anywhere;
}

/* Ties may put every participant on the podium. Wrap instead of hiding names. */
.podium {
  flex-wrap: wrap;
}
.podium > div {
  flex: 0 1 210px;
}
@media (max-width: 600px) {
  .podium > div {
    flex: 1 1 90px;
    min-width: 90px;
  }
}
