/* Obrazovka hostitele. Vaiana aktivace, Westfield Cerny Most. */

body { overflow: hidden; }
#app { height: 100vh; display: flex; flex-direction: column; }

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  position: relative;
}

/* ---------- lobby (wr-family-quiz pattern) ---------- */

#screen-lobby {
  justify-content: space-between; padding: 4vh 6vw 2vh;
  background-image: url("/brand/vaiana/ocean-wave.jpg");
  background-size: cover; background-position: center;
}
/* Prekryv drzi text citelny pres fotku, vlevo hustsi, vpravo prosviti more. */
#screen-lobby::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(4,20,26,.95) 0%, rgba(4,20,26,.90) 46%, rgba(4,20,26,.66) 74%, rgba(4,20,26,.58) 100%);
}
#screen-lobby > * { position: relative; }
.lobby-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 4vw;
  width: 100%;
  max-width: 1400px;
}
.lobby-left { text-align: left; display: flex; flex-direction: column; gap: 2vh; align-items: flex-start; }
.lobby-logo { width: clamp(200px, 22vw, 320px); }
.lobby-left h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 1.02; }
.eyebrow { letter-spacing: 0.22em; color: var(--ice); }
.lobby-hint { color: var(--text-soft); max-width: 38ch; }
.lobby-actions { display: flex; gap: 1rem; }
.lobby-players { display: flex; flex-wrap: wrap; gap: 0.8rem; min-height: 3.2rem; }
.player-chip {
  display: flex; align-items: center; gap: 0.6rem;
  background: rgba(10, 37, 48, .82);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.1rem 0.5rem 0.6rem;
  font-weight: 600;
}
/* Puntik nese motiv hrace, ne jen barvu. */
.player-chip .dot {
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; line-height: 1;
}
.player-chip.off { opacity: 0.4; }
.lobby-right { display: flex; flex-direction: column; align-items: center; gap: 1.5vh; }
/* QR na pevnem svetlem podkladu. Pres fotku mora by ho ctecka nesejmula. */
.qr-plate {
  background: var(--foam); padding: 14px; border-radius: 18px;
  box-shadow: 0 12px 44px rgba(4, 20, 26, .55);
}
#qr { display: block; width: min(30vh, 23vw); border-radius: 6px; }
.room-code { font-size: 4.5rem; font-weight: 700; letter-spacing: 0.18em; color: var(--ice); }
.lobby-footer { padding: 1.5vh 0; color: var(--text-muted); letter-spacing: .2em; }

/* ---------- match ---------- */

#screen-match { background: var(--bg); }
#game { display: block; }

/* Retro scanlines patrily k pongu. V lagune nemaji co delat. */
.scanlines { display: none; }

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2vh;
  background: rgba(4, 20, 26, 0.72);
  text-align: center;
}
#overlay-big { font-size: clamp(4rem, 11vw, 9rem); font-weight: 700; color: var(--ice); line-height: 1; }
#overlay-sub { font-size: 1.4rem; color: var(--text-soft); }
.overlay-actions { display: flex; gap: 1rem; }

.match-queue {
  position: absolute;
  bottom: 1.2vh;
  width: 100%;
  text-align: center;
}

/* Ztlumení zvuku. Obsluha na místě to musí umět vypnout bez zásahu do kódu. */
.btn-mute {
  position: fixed; right: 16px; bottom: 14px; z-index: 30;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(4, 20, 26, .6); border: 1px solid var(--border);
  color: #fff; font-size: 17px; line-height: 1; cursor: pointer; opacity: .45;
}
.btn-mute:hover { opacity: 1; }
