* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Montserrat, "Avenir Next", system-ui, sans-serif; color: #fff;
  background: radial-gradient(circle at 80% 20%, #0a6aa8 0 22%, transparent 22.2%),
    linear-gradient(135deg, #06306e, #0742a0 55%, #02108c) fixed; }
#screen { height: 100dvh; display: flex; flex-direction: column; gap: 1.5vh; overflow: hidden; }
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; }
.host header { background: #02092ad9; font-size: 1.2rem; }
.right { display: flex; gap: .6rem; align-items: center; }
.logo { font-weight: 900; font-size: 1.8rem; text-align: center; }
.player .logo { margin-top: 12vh; font-size: 3rem; }
button, input { font: inherit; border: 0; border-radius: 6px; }
button { cursor: pointer; font-weight: 700; }
button:disabled { opacity: .4; cursor: default; }
.card { background: #fff; padding: 1.2rem; border-radius: 10px; width: min(90vw, 22rem);
  margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.card input { border: 2px solid #ccc; padding: .8rem; text-align: center; font-size: 1.1rem; }
.card button { background: #222; color: #fff; padding: .8rem; }
.card .error { color: #b00020; }
.error { text-align: center; font-weight: 700; }
.error:empty { display: none; }
.next { background: #fff; color: #222; padding: .7rem 1.4rem; align-self: flex-end; margin-right: 2vw; }
.quiet { background: #ffffff26; color: #fff; padding: .4rem .8rem; }
.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3vh; text-align: center; padding: 1rem; min-height: 0; }
.center .next { align-self: center; margin: 0; }
.center h2 { font-size: 2.6rem; }
.pin { background: #fff; color: #222; font-size: clamp(3rem, 10vw, 7rem); font-weight: 900;
  padding: .2em .5em; border-radius: 10px; letter-spacing: .05em; }
.names { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; max-height: 28vh; overflow: auto; }
.names span, .pill { background: #0006; padding: .4rem 1rem; border-radius: 99px; font-weight: 700; }
ol { list-style: none; width: min(90vw, 40rem); display: flex; flex-direction: column; gap: 1vh; }
li { display: flex; justify-content: space-between; background: #fff; color: #222; padding: .9rem 1.2rem;
  border-radius: 6px; font-weight: 700; font-size: 1.4rem; white-space: pre; }
.title { background: #fff; color: #333; margin: 0 auto; padding: .6em 1.4em; border-radius: 4px;
  text-align: center; max-width: 90vw; font-size: clamp(1.3rem, 3vw, 2.6rem); }
.stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 4vw; }
.stage.column { flex-direction: column; justify-content: flex-end; gap: 2vh; }
.bubble { width: 6rem; height: 6rem; flex: none; border-radius: 50%; background: #02205f; display: flex;
  flex-direction: column; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 900; }
.bubble small { font-size: .75rem; }
.picture { position: relative; height: 100%; max-width: 65vw; aspect-ratio: 1036 / 590; }
.picture img { width: 100%; height: 100%; object-fit: cover; }
.tiles { position: absolute; inset: 0; display: grid; grid-template: repeat(8, 1fr) / repeat(8, 1fr); }
.tiles i { background: #022369; box-shadow: 0 0 0 1px #022369; transition: opacity .25s; }
.tiles i.gone { opacity: 0; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 1vh; padding: 0 1.5vw 2vh; }
.answer { display: flex; gap: 1rem; align-items: center; padding: 3vh 1.5rem; border-radius: 4px;
  font-size: clamp(1.1rem, 2.2vw, 2rem); }
.verdict { margin-left: auto; font-weight: 900; }
.dim { opacity: .45; }
.a0 { background: #e21b3c; }
.a1 { background: #1368ce; }
.a2 { background: #d89e00; }
.a3 { background: #26890c; }
.counts { display: flex; gap: 4vw; }
.counts span { min-width: 7rem; text-align: center; padding: .4rem; border-radius: 4px; font-weight: 700; }
.overlay { position: fixed; inset: 0; background: #020b1cf2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3vh; cursor: pointer; }
.overlay img { max-width: 90vw; max-height: 70vh; }
.pads { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: .6rem; padding: .6rem; }
.pad { color: #fff; font-size: 22vw; }
.mark { width: 7rem; height: 7rem; border-radius: 50%; border: 5px solid #fff; font-size: 4rem;
  display: flex; align-items: center; justify-content: center; }
.mark.ok { background: #26890c; }
.mark.no { background: #ff3355; }
