.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  color: var(--nv-text-secondary);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

/* Theme toggle (Hell / Dunkel / System) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--nv-radius-pill);
  overflow: hidden;
}

.theme-toggle legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.theme-toggle label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 44px;
  padding: 0 12px;
  cursor: pointer;
}

.theme-toggle input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.theme-toggle span {
  pointer-events: none;
}

.theme-toggle label:has(input:checked) {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.theme-toggle label:has(input:focus-visible) {
  outline: 3px solid var(--color-accent-text);
  outline-offset: -3px;
}

@media (min-width: 640px) {
  .site-footer {
    max-width: 720px;
  }
}

@media (min-width: 1024px) {
  .site-footer {
    max-width: 1040px;
  }
}

/* hide the sound-cue label until socket.js has read the stored state */
#btn-round-cues[data-cue-pending]:not([data-ready]) {
  visibility: hidden;
}

/* Spielablauf: Bereit-Status in der Lobby */
.ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--nv-text-secondary);
}

.ready-badge.is-ready {
  color: var(--nv-green-text);
}

.lobby-ready-hint {
  font-size: var(--fs-sm);
}

.lobby-footer .lobby-ready-toggle,
.lobby-footer #btn-start {
  min-height: 52px;
  max-width: 100%;
}

.lobby-footer .lobby-bar-row .lobby-ready-toggle {
  flex: 0 0 auto;
  padding-inline: 16px;
}

@media (min-width: 1024px) {
  .lobby-footer .lobby-bar-row .btn {
    flex: 0 0 auto;
    min-width: 220px;
  }
}

.lobby-footer #btn-start span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lobby-ready-toggle.is-ready {
  border-color: var(--nv-green-text);
  color: var(--nv-green-text);
}

/* Spielablauf: Abstimmung über Streitfälle */
.vote-card {
  background: var(--on-dark-bg);
  color: var(--on-dark-text);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--nv-shadow-float);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.vote-card .muted,
.vote-card .vote-progress {
  color: rgba(255, 255, 255, 0.72);
}

.vote-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vote-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--nv-radius-pill);
  background: var(--on-dark-text-12);
  color: var(--on-dark-text);
}

.vote-countdown {
  font-family: var(--nv-font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--nv-peach);
  font-variant-numeric: tabular-nums;
}

.word-lg {
  font-family: var(--nv-font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin: 8px 0;
  overflow-wrap: anywhere;
}

.vote-progress {
  font-weight: 800;
  font-size: var(--fs-sm);
  margin: 4px 0 12px;
}

.vote-actions {
  display: flex;
  gap: 10px;
}

.vote-btn {
  flex: 1 1 0;
  min-height: 56px;
  border: 2px solid var(--on-dark-text-35);
  background: transparent;
  color: var(--on-dark-text);
}

.vote-btn[aria-pressed="true"].vote-btn--yes {
  background: var(--nv-green);
  border-color: var(--nv-green);
  color: var(--nv-on-orange);
}

.vote-btn[aria-pressed="true"].vote-btn--no {
  background: var(--nv-orange);
  border-color: var(--nv-orange);
  color: var(--nv-on-orange);
}

.vote-rule {
  font-size: var(--fs-sm);
  margin: 10px 0 0;
}

.vote-host-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: var(--fs-sm);
}

.vote-host-btn {
  min-height: 44px;
  padding: 8px 12px;
  color: var(--nv-peach);
}

/* Spielablauf: Bereit-Check und Highlights nach der Runde */
.my-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.my-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--nv-radius-pill);
  background: var(--nv-surface);
  box-shadow: var(--nv-shadow-card);
  font-weight: 800;
  min-height: 44px;
}

.score-ready-toggle {
  min-height: 56px;
}

.score-ready-toggle.is-ready {
  border-color: var(--nv-green-text);
  color: var(--nv-green-text);
}

.score-ready-count {
  margin: 0;
  font-weight: 800;
}

.vote-countdown--note {
  font-family: var(--nv-font-body);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.review-reason {
  font-size: var(--fs-sm);
}

.review-fix {
  display: inline-flex;
  gap: 6px;
}

.review-fix-btn {
  min-height: 44px;
  padding: 6px 12px;
}

.review-fix-btn[aria-pressed="true"] {
  font-weight: 800;
  color: var(--nv-orange-text);
}

