* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #10141c;
  color: #e8ecf4;
  min-height: 100vh;
}

.hidden { display: none !important; }

.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* ---------- Join ---------- */

.card {
  background: #1a2233;
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card h1 { font-size: 2rem; text-align: center; }
.subtitle { text-align: center; color: #9aa7bd; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: #9aa7bd; }
label.check { flex-direction: row; align-items: center; gap: 10px; color: #cbd5e6; }

input[type="text"], select {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #2c3a55;
  background: #10141c;
  color: #e8ecf4;
  font-size: 1rem;
}

button.primary {
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #3b82f6;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
}
button.primary:hover { background: #2f6fe0; }

.status { color: #9aa7bd; font-size: 0.9rem; text-align: center; min-height: 1.2em; }
.status.big { font-size: 1.1rem; color: #cbd5e6; }
.status.big.huge { font-size: 1.6rem; font-weight: 600; color: #e8ecf4; }

/* ---------- Personal-link extras ---------- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 20, 28, 0.96);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

button.big-tap {
  width: 260px;
  height: 120px;
  font-size: 1.3rem;
  border-radius: 20px;
}

.other-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2c3a55;
  margin-top: 4px;
}

/* ---------- Create-room page ---------- */

.card.wide { max-width: 620px; }

.seats { display: flex; gap: 14px; flex-wrap: wrap; }
.seat {
  flex: 1;
  min-width: 240px;
  border: 1px solid #2c3a55;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.seat legend { color: #7fb4ff; padding: 0 6px; font-size: 0.9rem; }
input[type="file"] { color: #9aa7bd; font-size: 0.85rem; }

.linkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.linklabel { color: #9aa7bd; font-size: 0.85rem; white-space: nowrap; min-width: 90px; }
.linkbox input { flex: 1; font-size: 0.8rem; padding: 8px; }
button.copy {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #3b82f6;
  background: #1a2233;
  color: #7fb4ff;
  cursor: pointer;
}

.hint a { color: #7fb4ff; }

/* ---------- Console ---------- */

#callScreen { justify-content: flex-start; padding-top: 24px; }

.console {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.peer-info { color: #9aa7bd; font-size: 0.9rem; }

button.talk {
  width: 230px;
  height: 110px;
  border-radius: 18px;
  border: none;
  background: #16a34a;
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
button.talk:disabled { background: #2c3a55; color: #7a879c; cursor: not-allowed; }
button.talk.locked { background: #7c4a03; color: #f2d9b0; }
button.talk.recording { background: #dc2626; animation: pulse 1.2s infinite; }
button.talk.warning { background: #f59e0b; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
  50% { box-shadow: 0 0 0 14px rgba(220, 38, 38, 0); }
}

.talk-timer {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 0.95rem;
}

.hint { color: #6b788a; font-size: 0.8rem; }

/* ---------- Transcript ---------- */

.transcript {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 32px;
}

.entry {
  background: #1a2233;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.entry.mine { background: #1d2b45; }
.entry .who { font-size: 0.75rem; color: #9aa7bd; }
.entry .orig { color: #cbd5e6; }
.entry .trans { color: #7fb4ff; }
