/* ── Show screen — écran scène Thomas ────────────────────────────────────── */

html, body {
  overflow: hidden;
  height: 100%;
  background: var(--bg);
}

#particle-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── Header stats ────────────────────────────────────────────────────────── */

.show-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 32px;
  background: rgba(22, 36, 53, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.show-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 0.65rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text2);
}

.stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* ── Main word area ──────────────────────────────────────────────────────── */

.show-main {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 48px 80px;
  text-align: center;
  gap: 16px;
}

.show-question {
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  color: var(--text2);
  font-weight: 400;
  max-width: 80vw;
  line-height: 1.4;
  min-height: 1.5em;
  transition: opacity 0.3s ease;
}

.show-word {
  font-family: var(--display);
  font-size: clamp(4rem, 15vw, 9rem);
  color: var(--green);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.show-name {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: var(--text2);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-height: 1.5em;
  transition: opacity 0.3s ease;
}

/* ── Sequence badge ──────────────────────────────────────────────────────── */

.sequence-badge {
  position: fixed;
  bottom: 28px;
  right: 32px;
  z-index: 20;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--green-border);
  transition: all 0.3s ease;
}

.sequence-badge.changing {
  animation: badge-flash 0.4s ease;
}

@keyframes badge-flash {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); background: var(--green); color: var(--bg); }
  100% { transform: scale(1); }
}

/* ── Connection indicator ────────────────────────────────────────────────── */

.conn-dot {
  position: fixed;
  top: 20px;
  right: 32px;
  z-index: 20;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text2);
  transition: background 0.3s;
}

.conn-dot.connected {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease infinite;
}

.conn-dot.error {
  background: var(--danger);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── QR Code overlay ──────────────────────────────────────────────────── */

.qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: qr-fade-in 0.5s ease;
}

@keyframes qr-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.qr-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.qr-logo {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--green);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qr-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text);
  font-weight: 300;
}

.qr-code-wrapper {
  padding: 20px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(57, 231, 95, 0.15);
}

.qr-url {
  font-family: var(--mono);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.qr-hint {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: var(--text2);
  font-weight: 300;
  max-width: 500px;
}
