* { box-sizing: border-box; }
/* espacio unico compartido por la lista de jugadores y las pildoras de
   tiempo/piezas en movil, asi quedan siempre a la misma distancia exacta
   de su lado (sin repetir el numero dos veces por separado) */
:root { --hud-inset-mobile: 12px; --hud-pad-v: 6px; }
html, body {
  margin: 0; padding: 0;
  background: #131019;
  color: #e9e6f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
a { color: inherit; }
input, select, button, textarea { font-family: inherit; }

/* todo el contenido de las paginas de formulario queda centrado vertical y
   horizontalmente, nunca pegado arriba */
.wrap {
  max-width: 380px;
  margin: 0 auto;
  padding: 24px 18px;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  align-items: center;
  text-align: center;
}
.wrap > * { width: 100%; }

.wrap.admin-wrap { justify-content: flex-start; align-items: stretch; padding-top: 32px; }
.brand {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .2px;
  margin-bottom: 4px;
}
.brand span { color: #9d5cff; }
.sub { color: #a89fc2; font-size: 14px; margin-bottom: 20px; }

.card {
  background: #1b1723;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}

label.field-label {
  display: block;
  font-size: 13px;
  color: #a89fc2;
  margin-bottom: 6px;
}

input[type=text], input[type=password], input[type=number], select {
  width: 100%;
  background: #221c2c;
  border: 1px solid #362c44;
  color: #e9e6f0;
  font-size: 15px;
  padding: 11px 12px;
  border-radius: 9px;
  margin-bottom: 14px;
  outline: none;
  text-align: center;
}
input:focus, select:focus {
  border-color: #7c3aed;
}
/* nombre: chico y centrado, nadie necesita un campo gigante */
.input-name {
  max-width: 220px;
  margin-left: auto; margin-right: auto;
}

/* los botones jamas ocupan todo el ancho */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  cursor: pointer;
  width: auto;
  text-decoration: none;
}
.btn-primary { background: #7c3aed; color: #fff; }
.btn-primary:active { background: #6b2fd4; }
.btn-secondary { background: #2a2333; color: #e9e6f0; }
.btn-secondary:active { background: #332a40; }
.btn-danger { background: #3a1620; color: #ff7b93; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }

.row { display: flex; gap: 10px; justify-content: center; }

.player-list { display: flex; flex-direction: column; text-align: left; }
.player-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 2px;
  border-bottom: 1px solid #241f2e;
  transition: opacity .3s ease, transform .3s ease, max-height .3s ease, padding .3s ease;
  max-height: 80px;
  overflow: hidden;
}
.player-row:last-child { border-bottom: none; }
.player-row.offline { opacity: .35; }
.player-row.removing {
  opacity: 0;
  transform: translateX(36px);
  max-height: 0;
  padding-top: 0; padding-bottom: 0;
  border-bottom-color: transparent;
}
.pl-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; line-height: 1; flex-shrink: 0;
  border: 2.5px solid var(--pcolor, #7c3aed);
  background: rgba(255,255,255,.03);
}
.pl-avatar span, .pl-avatar { text-align: center; }
.pl-name {
  flex: 1; font-size: 15px; color: #e9e6f0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-host-tag { font-size: 11px; color: #a89fc2; flex-shrink: 0; }
.pl-crown { color: #ffd166; flex-shrink: 0; display: flex; position: relative; }
.pl-crown svg { width: 18px; height: 18px; }
.pl-crown-btn {
  color: #a89fc2; flex-shrink: 0; display: flex; position: relative; cursor: pointer;
  opacity: .55; transition: opacity .15s ease, color .15s ease;
}
.pl-crown-btn:hover { opacity: 1; color: #ffd166; }
.pl-crown-btn svg { width: 17px; height: 17px; }
.pl-crown[data-tooltip]:hover::after, .pl-crown-btn[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #1b1723; color: #e9e6f0;
  padding: 5px 9px; border-radius: 7px;
  font-size: 11px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  z-index: 999999; pointer-events: none;
}
.pl-badge {
  position: relative;
  width: 30px; height: 30px; border-radius: 50%;
  flex-shrink: 0; background: none; border: none;
}
.pl-badge.kickable { cursor: pointer; }
.pl-badge .icon-check, .pl-badge .icon-x, .pl-badge .icon-error {
  position: absolute; inset: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .15s ease, background .15s ease;
}
.pl-badge .icon-check { color: #3ddc84; font-size: 19px; font-weight: 700; }
.pl-badge .icon-x { color: #ff7b93; font-size: 20px; opacity: 0; }
.pl-badge.kickable:hover .icon-check { opacity: 0; }
.pl-badge.kickable:hover .icon-x { opacity: 1; background: rgba(58,22,32,.55); }
.pl-badge .icon-error { color: #ff7b93; font-size: 16px; opacity: 0; }
.pl-badge.error .icon-check, .pl-badge.error .icon-x { opacity: 0; }
.pl-badge.error .icon-error { opacity: 1; }
.pl-badge .btn-dots { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3px; height: auto; }

.code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #221c2c; border-radius: 10px;
  padding: 12px 14px; margin-bottom: 14px;
}
.code-box .code { font-size: 15px; letter-spacing: .5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn {
  background: #7c3aed; color: #fff; border: none; border-radius: 7px;
  font-size: 12px; padding: 0 12px; cursor: pointer;
  height: 36px; display: flex; align-items: center; justify-content: center;
}


.thumb-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 12px;
}
.thumb {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 1;
  border-radius: 9px;
  background-size: cover;
  background-position: center;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  opacity: .55;
}
.thumb.selected { border-color: #7c3aed; opacity: 1; }
.thumb .del {
  position: absolute; top: -6px; right: -6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #3a1620; color: #ff7b93; border: 1px solid #52202e;
  font-size: 12px; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: #221c2c; border: 1px solid #362c44; color: #e9e6f0;
  padding: 10px 16px; border-radius: 9px; font-size: 13px;
  opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 200000;
}
.toast.show { opacity: 1; }

/* ---- tablero de juego ---- */
.game-shell {
  display: flex; flex-direction: column; height: 100vh; height: 100dvh;
  max-width: 100%;
  touch-action: none;
  position: relative;
}

.board-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  touch-action: none;
  background-color: #14111c;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

.board-target {
  position: absolute;
  border: 3px solid #56496f;
  border-radius: 10px;
  background: rgba(124,58,237,0.025);
}

.piece {
  position: absolute;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.piece.dragging {
  cursor: grabbing;
  z-index: 90000 !important;
  transform: scale(1.04);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.5));
}
.piece.placed { cursor: default; filter: none; }
.piece.locked-other { filter: brightness(.7) drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.piece.sliding {
  transition: left .5s cubic-bezier(.22,.9,.34,1), top .5s cubic-bezier(.22,.9,.34,1);
}

@keyframes piecePlaced {
  0%   { transform: scale(1); filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)) brightness(1); }
  35%  { transform: scale(1.14); filter: drop-shadow(0 0 14px rgba(157,92,255,.85)) brightness(1.35); }
  100% { transform: scale(1); filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)) brightness(1); }
}
.piece.just-placed { animation: piecePlaced .45s ease; z-index: 80000 !important; }

/* ---- controles flotantes ---- */
/* escritorio: apilado abajo a la derecha (como antes).
   movil: timer/contador arriba a la derecha (chico, no tapa el tablero)
   y los botones abajo en fila horizontal. */
.controls-top {
  position: absolute; top: 16px; right: 16px; z-index: 100000;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  transition: opacity .4s ease;
}
.controls-bottom {
  position: absolute; right: 16px; bottom: 16px; z-index: 100000;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  transition: opacity .4s ease;
}
.controls-top.hide, .controls-bottom.hide { opacity: 0; pointer-events: none; }

/* boton unico que aparece al combinarse el resto; el resto se combina solo
   tras unos segundos, uno por uno. este boton SIEMPRE se ve en movil/tablet
   (en los 2 estados, expandido y encogido) para poder alternar en cualquier
   momento; en escritorio nunca aparece (ver regla suelta mas abajo). */
#controlsToggleBtn { display: none; }
@media (max-width: 1024px) {
  #controlsToggleBtn { display: flex; }
  .controls-bottom.collapsed .floating-btn:not(#controlsToggleBtn) {
    opacity: 0; transform: scale(.4);
    pointer-events: none;
    position: absolute;
    transition: opacity .25s ease, transform .25s ease;
  }
  /* parpadeo breve justo cuando termina de combinarse, para avisar que ahi
     quedaron los botones guardados */
  #controlsToggleBtn.pulse { animation: toggleBtnPulse .6s ease; }
  @keyframes toggleBtnPulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(0,0,0,.35); }
    40% { box-shadow: 0 0 0 9px rgba(124,58,237,.4), 0 2px 10px rgba(0,0,0,.35); }
  }
  #controlsToggleIcon { transition: transform .25s ease; }
  .controls-bottom:not(.collapsed) #controlsToggleIcon { transform: rotate(180deg); }
}

@media (max-width: 700px) {
  .controls-top { flex-direction: row; gap: 6px; top: var(--hud-inset-mobile); right: var(--hud-inset-mobile); }
  .players-floating { top: var(--hud-inset-mobile); left: var(--hud-inset-mobile); }
  .controls-bottom {
    left: auto; right: 12px; bottom: 12px;
    flex-direction: row; justify-content: flex-end; flex-wrap: nowrap;
    gap: clamp(6px, 2vw, 16px);
    max-width: calc(100vw - 24px);
  }
  .controls-bottom .floating-btn {
    width: clamp(42px, 10.5vw, 46px); height: clamp(42px, 10.5vw, 46px); flex-shrink: 1;
  }
}
.floating-btn {
  position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(30,25,38,.85);
  backdrop-filter: blur(6px);
  border: 1px solid #362c44;
  color: #e9e6f0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
  transition: background .12s, border-color .12s, color .12s;
}
.floating-btn:active, .floating-btn.active { background: rgba(47,38,64,.95); color: #d4b8ff; border-color: #7c3aed; }
.floating-btn .key-hint {
  position: absolute;
  bottom: -7px; left: 50%; transform: translateX(-50%);
  background: #7c3aed; color: #fff;
  font-size: 9px; font-weight: 600; letter-spacing: .2px;
  padding: 1px 5px; border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
}
.controls-top .progress-pill, .controls-top .timer-pill {
  background: rgba(30,25,38,.85);
  backdrop-filter: blur(6px);
  border: 1px solid #362c44;
  border-radius: 20px; padding: var(--hud-pad-v) 14px; font-size: 12px; color: #e9e6f0; letter-spacing: .2px;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
  font-variant-numeric: tabular-nums;
}

/* ---- lista flotante de jugadores, esquina superior izquierda ---- */
.players-floating {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.player-chip {
  display: flex; align-items: center; gap: 6px;
  background: rgba(30,25,38,.55);
  backdrop-filter: blur(4px);
  border: 1.5px solid #362c44;
  border-radius: 20px;
  padding: var(--hud-pad-v) 8px var(--hud-pad-v) 3px;
  opacity: .82;
  transition: transform .2s ease, gap .2s ease, padding .2s ease;
  transform-origin: right center;
}
.player-chip-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.player-chip-name {
  font-size: 12px; color: #e9e6f0; max-width: 110px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 1024px) {
  /* el marco casi recto, no tan redondeado como en escritorio */
  .board-target { border-radius: 3px; }
  /* competitivo con mas de 3 en la lista: se van achicando solas para no
     tapar tanto el tablero. truco sin JS: n+4 selecciona el 4to desde el
     final y todo lo que sigue, o sea TODAS si hay 4 o mas en total. */
  .game-shell[data-mode="vs"] .players-floating .player-chip:nth-last-child(n+4),
  .game-shell[data-mode="vs"] .players-floating .player-chip:nth-last-child(n+4) ~ .player-chip {
    transform: scale(.82);
    gap: 4px;
    padding: 2px 6px 2px 2px;
  }
  .game-shell[data-mode="vs"] .players-floating .player-chip:nth-last-child(n+4) .player-chip-avatar,
  .game-shell[data-mode="vs"] .players-floating .player-chip:nth-last-child(n+4) ~ .player-chip .player-chip-avatar {
    width: 18px; height: 18px; font-size: 10px;
  }
  .game-shell[data-mode="vs"] .players-floating .player-chip:nth-last-child(n+4) .player-chip-name,
  .game-shell[data-mode="vs"] .players-floating .player-chip:nth-last-child(n+4) ~ .player-chip .player-chip-name {
    font-size: 10.5px; max-width: 80px;
}
}

.reference-overlay {
  position: absolute;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 70000;
}
.reference-overlay.show { opacity: .32; }

/* ---- pausa: bloquea toda la pantalla para todos los jugadores ---- */
.pause-overlay {
  position: absolute; inset: 0;
  z-index: 250000;
  background: rgba(15,12,20,.88);
  backdrop-filter: blur(4px);
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  text-align: center;
}
.pause-overlay.show { display: flex; }
.pause-overlay .pause-title { font-size: 22px; font-weight: 700; color: #fff; }
.pause-overlay .pause-time { font-size: 34px; font-weight: 800; color: #d4b8ff; font-variant-numeric: tabular-nums; }

@media (max-width: 480px) {
  .wrap { padding: 18px 14px; }
}

/* ---- animacion de rompecabezas completado ---- */
@keyframes celebrateWave {
  0%   { transform: scale(1); filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)) brightness(1) saturate(1); }
  45%  { transform: scale(1.1); filter: drop-shadow(0 0 22px rgba(157,92,255,.95)) brightness(1.4) saturate(1.3); }
  100% { transform: scale(1); filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)) brightness(1) saturate(1); }
}
.piece.celebrate { animation: celebrateWave .62s ease; z-index: 85000 !important; }

.piece.seamless .pc-outline { stroke: transparent !important; transition: stroke .8s ease; }

.board-target.finish-image-mode {
  border: none;
  background-color: transparent;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transition: background-color .8s ease;
}

.finish-title {
  position: absolute;
  z-index: 90000;
  left: 50%;
  transform: translate(-50%, -12px);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  opacity: 0;
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,.9,.34,1);
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.finish-title.show { opacity: 1; transform: translate(-50%, calc(-100% - 16px)); }

.finish-buttons {
  position: absolute;
  z-index: 90000;
  left: 50%;
  transform: translate(-50%, 12px);
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity .6s ease .1s, transform .6s cubic-bezier(.22,.9,.34,1) .1s;
}
.finish-buttons.show { opacity: 1; transform: translate(-50%, 16px); }

/* ---- pantalla de inicio ---- */
.home-center {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; padding: 24px;
}
.home-logo { height: 90px; width: auto; }
.home-actions { display: flex; gap: 12px; align-items: stretch; }
.home-btn { white-space: nowrap; }

/* el ancho del boton "unirme" y el widget de codigo expandido son IGUALES,
   nunca cambia el layout al tocarlo */
.join-widget {
  display: flex; align-items: stretch;
  width: 128px;
}
.join-widget .home-btn { width: 100%; }
.join-widget.active {
  border: 1.5px solid #7c3aed;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
}
input.join-input {
  flex: 1; min-width: 0; margin: 0 !important; border: none !important; border-radius: 0;
  background: transparent; text-align: center; font-size: 15px;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: #e9e6f0; padding: 0 4px;
}
.join-input:focus { outline: none; }
.join-go {
  flex-shrink: 0;
  background: #7c3aed; color: #fff; border: none;
  font-size: 14px; font-weight: 600; padding: 0 14px; cursor: pointer;
}

/* ---- logo pequeno centrado arriba (crear sala / unirse / panel) ---- */
.top-logo { display: flex; justify-content: center; margin-bottom: 40px; }
.top-logo img { height: 60px; width: auto; }

/* ---- botones de cantidad de piezas: una sola fila, sin bordes, tonos de color ---- */
.piece-count-grid {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
  justify-content: center;
}
.piece-count-btn {
  border: none; color: #fff;
  border-radius: 10px; padding: 10px 0; cursor: pointer;
  font-size: 13px; font-weight: 700;
  flex: 1; min-width: 0;
  opacity: .55;
}
.piece-count-btn.selected { opacity: 1; box-shadow: 0 0 0 2px #fff inset; }
.piece-count-btn[data-count="12"]  { background: #4c3a8a; }
.piece-count-btn[data-count="24"]  { background: #5a3796; }
.piece-count-btn[data-count="48"]  { background: #6934a2; }
.piece-count-btn[data-count="80"]  { background: #7830ae; }
.piece-count-btn[data-count="108"] { background: #8a2ca8; }
.piece-count-btn[data-count="150"] { background: #9c2898; }

/* ---- zona de arrastrar y soltar imagen ---- */
.upload-drop {
  margin-top: 10px;
  border-radius: 12px;
  background: #221c2c;
  padding: 22px 16px;
  text-align: center;
  color: #a89fc2;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: background .15s, color .15s;
}
.upload-drop-text { font-size: 12px; line-height: 1.4; }
.upload-drop.dragover { background: rgba(124,58,237,.18); color: #d4b8ff; }
.upload-drop.uploading { opacity: .6; pointer-events: none; }

/* paso 1 de crear sala: nombre y boton siempre en columna, nunca en fila */
#step1 { display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ---- capa de zoom/movimiento (solo visual, cada jugador ve su propia vista) ---- */
#pieceWorld {
  position: absolute; inset: 0;
  transform-origin: 0 0;
  touch-action: none;
}
.board-area.panning { cursor: grab; }
.board-area.panning:active { cursor: grabbing; }

/* las teclas (Space, R, P) solo tienen sentido en escritorio: en movil no
   existen teclas, asi que no se muestran */
@media (max-width: 700px) {
  .key-hint { display: none; }
}

/* ---- barra de progreso al subir una imagen propia ---- */
.upload-progress-wrap {
  height: 6px;
  border-radius: 4px;
  background: #221c2c;
  margin-top: 10px;
  overflow: hidden;
  opacity: 0;
  transition: opacity .2s ease;
}
.upload-progress-wrap.show { opacity: 1; }
.upload-progress-bar {
  height: 100%;
  width: 0%;
  background: #7c3aed;
  transition: width .15s ease;
}

/* ---- chat de voz: boton de microfono y quien esta hablando ---- */
.floating-btn#micBtn.active { background: rgba(47,38,64,.95); color: #d4b8ff; border-color: #7c3aed; }
.floating-btn#micBtn.muted { background: rgba(58,22,32,.9); color: #ff7b93; border-color: #52202e; }

@keyframes speakGlow {
  0%, 100% { box-shadow: 0 0 0 2px var(--speak-color, #7c3aed); }
  50% { box-shadow: 0 0 0 4px var(--speak-color, #7c3aed); }
}
.player-chip.speaking {
  animation: speakGlow .9s ease-in-out infinite;
}

/* jugador que ya no esta conectado, pero paso por la sala alguna vez */
.player-chip.offline {
  opacity: .32;
  filter: grayscale(60%);
}

/* ---- pantalla de carga (overlay completo, pieza pulsando) ---- */
.page-loading {
  position: fixed; inset: 0; z-index: 400000;
  background: #131019;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.page-loading.show { opacity: 1; pointer-events: auto; }
.page-loading svg { width: 52px; height: 52px; }
.page-loading path {
  fill: #7c3aed;
  transform-origin: center;
  animation: pageLoadPulse 1.1s ease-in-out infinite;
}
@keyframes pageLoadPulse {
  0%, 100% { transform: scale(1); opacity: .6; }
  50% { transform: scale(1.18); opacity: 1; }
}

/* ---- puntos de carga dentro de un boton (reemplazan el texto) ---- */
.btn-dots { display: inline-flex; gap: 4px; align-items: center; height: 15px; }
.btn-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  animation: btnDotBounce .9s ease-in-out infinite;
}
.btn-dots span:nth-child(2) { animation-delay: .15s; }
.btn-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes btnDotBounce {
  0%, 100% { opacity: .3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

/* ---- desarmado de piezas (antes de reiniciar un puzzle terminado) ---- */
@keyframes pieceDisassemble {
  0%   { transform: scale(1) rotate(0deg) translate(0,0); opacity: 1; }
  100% { transform: scale(.4) rotate(var(--dis-rot, 20deg)) translate(var(--dis-x, 0px), var(--dis-y, 0px)); opacity: 0; }
}
.piece.disassembling { animation: pieceDisassemble .6s ease-in forwards; }

/* ---- switch de modo: colaborativo / competitivo ---- */
.mode-switch {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  background: #1b1723;
  border-radius: 10px;
  padding: 4px;
}
.mode-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: #a89fc2;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 0;
  border-radius: 8px;
  cursor: pointer;
}
.mode-btn.selected { background: #7c3aed; color: #fff; }

/* ---- cuenta regresiva de salida (modo competitivo) ---- */
.countdown-overlay {
  position: absolute; inset: 0;
  z-index: 300000;
  background: rgba(15,12,20,.92);
  backdrop-filter: blur(6px);
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
}
.countdown-overlay.show { display: flex; }
.countdown-overlay .countdown-label { font-size: 15px; color: #a89fc2; }
.countdown-overlay .countdown-number {
  font-size: 96px; font-weight: 800; color: #fff;
  line-height: 1; font-variant-numeric: tabular-nums;
}

/* ---- contador de piezas al lado del nombre (solo competitivo) ---- */
.player-chip-count {
  font-size: 11px; color: #a89fc2; margin-left: -2px; white-space: nowrap;
}
.player-chip-rank {
  font-size: 11px; font-weight: 700; color: #ffd166; margin-left: -2px; white-space: nowrap;
}

/* ---- pantalla de resultados (modo competitivo) ---- */
.vs-results {
  position: absolute; inset: 0;
  z-index: 260000;
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  text-align: center;
  padding: 24px;
}
.vs-results.show { display: flex; }
.vs-results-bg {
  position: absolute; inset: 0;
  background-size: cover; background-repeat: no-repeat; background-position: center;
  filter: blur(10px) brightness(.35);
  z-index: -1;
}
.vs-big-timer {
  font-size: 44px; font-weight: 800; color: #fff;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.vs-big-list {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; max-width: 320px;
}
.vs-big-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(20,16,26,.72);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 8px 16px 8px 10px;
}
.vs-big-row.vs-big-row-me { background: rgba(124,58,237,.22); }
.vs-big-row .vs-big-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; line-height: 1; flex-shrink: 0;
  border: 2.5px solid var(--pcolor, #7c3aed);
  background: rgba(255,255,255,.04);
}
.vs-big-row.speaking .vs-big-avatar { animation: speakGlow .9s ease-in-out infinite; }
.vs-big-row .vs-big-name {
  flex: 1; text-align: left; font-size: 15px; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vs-big-online-dot {
  position: relative;
  width: 7px; height: 7px; border-radius: 50%; background: #46405a; flex-shrink: 0;
}
.vs-big-online-dot.online { background: #3ddc84; }
.vs-big-online-dot[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #1b1723; color: #e9e6f0;
  padding: 5px 9px; border-radius: 7px;
  font-size: 11px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  z-index: 999999; pointer-events: none;
}
/* tiempo y puesto agrupados juntos (mas cerca entre si que del nombre) */
.vs-big-row .vs-big-time-rank { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: 4px; }
.vs-big-row .vs-big-detail {
  font-size: 13px; color: #d4b8ff; font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.vs-big-row .vs-big-ready {
  width: 18px; text-align: center; color: #3ddc84; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.vs-big-row .vs-big-rank {
  font-size: 22px; font-weight: 800; color: #ffd166;
  min-width: 34px; text-align: center; flex-shrink: 0;
}
.vs-results .finish-buttons { position: static; opacity: 1; transform: none; margin-top: 4px; }

/* ---- aviso chico de ranking (para quien sigue jugando) ---- */
.vs-corner-toast {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 150000;
  background: rgba(30,25,38,.92); border: 1px solid #362c44;
  border-radius: 20px; padding: 7px 16px;
  font-size: 12px; color: #e9e6f0;
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.vs-corner-toast.show { opacity: 1; }


/* ---- microfono: estado "conectando" (aro pulsando hacia afuera) ---- */
@keyframes micConnectingPulse {
  0%   { box-shadow: 0 0 0 0 rgba(124,58,237,.65); }
  100% { box-shadow: 0 0 0 12px rgba(124,58,237,0); }
}
.floating-btn#micBtn.connecting {
  border-color: #7c3aed; color: #d4b8ff;
  animation: micConnectingPulse 1s ease-out infinite;
}

/* ---- microfono: aviso de 'recien se habilito' invitando a activar ---- */
@keyframes micAlertPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,209,102,.7); }
  50% { box-shadow: 0 0 0 8px rgba(255,209,102,0); }
}
.floating-btn#micBtn.alert {
  border-color: #ffd166; color: #ffd166;
  animation: micAlertPulse 1.1s ease-in-out infinite;
}

/* ---- aviso de expulsion (te saco el host) ---- */
.kicked-overlay {
  position: fixed; inset: 0; z-index: 500000;
  background: rgba(15,12,20,.95);
  display: none; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}
.kicked-overlay.show { display: flex; }
.kicked-msg { font-size: 16px; color: #ff7b93; font-weight: 600; }

/* ---- tooltip del boton de audio ---- */
.floating-btn[data-tooltip] { position: relative; }
.floating-btn[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%; transform: translateX(-50%);
  background: #1b1723; color: #e9e6f0;
  border: 1px solid #362c44;
  padding: 6px 11px; border-radius: 8px;
  font-size: 11px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  pointer-events: none;
  z-index: 999999;
}
.floating-btn[data-tooltip]:hover::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%; transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1b1723;
  pointer-events: none;
  z-index: 999999;
}

/* ---- banner "Modo: COMPETITIVO" en la sala de espera ---- */
.mode-banner {
  font-size: 18px; font-weight: 800; color: #fff;
  letter-spacing: .8px;
  margin-bottom: 14px;
}
.top-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.top-row .code-box { flex: 1; margin-bottom: 0; }
#micSlotBottom { display: flex; justify-content: center; margin-top: 14px; }
.mic-square {
  width: 60px; height: 60px; border-radius: 14px;
  border: none; flex-shrink: 0;
}
#micBtn.mic-square.active {
  background: #2f9e58; color: #fff;
}
#micBtn.mic-square.connecting {
  color: #d4b8ff;
}
#micBtn.mic-square.muted {
  background: #3a1620; color: #ff7b93;
}

/* ---- "esperando..." con puntos animados, para el invitado en la sala de espera ---- */
.wait-text {
  font-size: 14px; color: #a89fc2; text-align: center;
  margin-bottom: 6px;
}
.wait-text::after {
  content: '...';
  display: inline-block;
  width: 14px;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  animation: waitDotsGrow 1.2s steps(1) infinite;
}
@keyframes waitDotsGrow {
  0%   { width: 0; }
  33%  { width: 5px; }
  66%  { width: 10px; }
  100% { width: 14px; }
}

/* ---- logo mas junto, solo en la sala de espera (no afecta otras pantallas) ---- */
.top-logo-tight { margin-bottom: 20px; }

/* ---- el tooltip del boton de audio EN EL JUEGO va pegado al borde de la ---- */
/* pantalla (controls-bottom/top); centrarlo haria que se salga y genere   */
/* scroll horizontal en toda la pagina. se ancla a la derecha en vez de    */
/* centrarlo, sin tocar el tooltip centrado que usa la sala de espera.     */
.controls-bottom .floating-btn[data-tooltip]:hover::after,
.controls-top .floating-btn[data-tooltip]:hover::after {
  left: auto; right: 0; transform: none;
}
.controls-bottom .floating-btn[data-tooltip]:hover::before,
.controls-top .floating-btn[data-tooltip]:hover::before {
  left: auto; right: 14px; transform: none;
}
.ranking-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  justify-content: center; position: relative;
  margin-bottom: 18px;
}
.ranking-tab {
  padding: 7px 13px; border-radius: 8px;
  background: #1b1723; color: #a89fc2; border: none; cursor: pointer;
  font-size: 13px; font-weight: 600; text-decoration: none;
  position: relative; z-index: 1; transition: color .25s ease;
}
.ranking-tab.selected { background: #7c3aed; color: #fff; }

/* variante para ranking.php: todo en una sola fila, sin fondo propio por */
/* boton, con una pastilla "vidrio" que se desliza detras del activo      */
.ranking-tabs-glass {
  flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
  gap: 2px; padding: 5px; background: #1b1723; border-radius: 999px;
  scrollbar-width: none;
}
.ranking-tabs-glass::-webkit-scrollbar { display: none; }
.ranking-tabs-glass .ranking-tab {
  background: none; padding: 10px 8px; flex: 1 1 0; min-width: 0;
  text-align: center; white-space: nowrap;
}
.ranking-tabs-glass .ranking-tab.selected { background: none; color: #fff; }
.ranking-tab-indicator {
  position: absolute; top: 5px; left: 0; height: calc(100% - 10px);
  border-radius: 999px;
  background: #7c3aed;
  transition: transform .4s cubic-bezier(.34,1.3,.4,1), width .4s cubic-bezier(.34,1.3,.4,1);
  z-index: 0; pointer-events: none;
}

.ranking-page-list { transition: opacity .18s ease; }
.ranking-page-list.ranking-list-fading { opacity: 0; }

.ranking-row.ranking-first { background: rgba(255,209,102,.08); }
.ranking-date-tip {
  position: relative; cursor: default; display: inline-flex; align-items: center; color: #a89fc2;
}
  .ranking-date-tip svg { width: 14px; height: 14px; display: block; }

/* ---- icono de trofeo en el inicio, lleva a los records ---- */
.ranking-link {
  position: fixed; top: 16px; right: 16px;
  font-size: 20px; text-decoration: none;
  opacity: .75;
  z-index: 500;
}
.ranking-link[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #1b1723; color: #e9e6f0;
  border: 1px solid #362c44;
  padding: 6px 11px; border-radius: 8px;
  font-size: 11px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}


/* ---- pagina de records: encabezado, podio con medallas, vacio bonito ---- */
.ranking-hero { text-align: center; margin-bottom: 22px; }
.ranking-hero-icon { font-size: 42px; line-height: 1; margin-bottom: 8px; filter: drop-shadow(0 4px 14px rgba(255,209,102,.25)); }
.ranking-hero-title { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: .3px; }
.ranking-hero-sub { font-size: 13px; color: #a89fc2; margin-top: 4px; }

.ranking-page-list { max-width: 100%; }
.ranking-page-row { justify-content: flex-start; }
.ranking-page-row-gold { background: rgba(255,209,102,.14); }
.ranking-medal-avatar { font-size: 20px; }
.ranking-medal-1 { border-color: #ffd166 !important; background: rgba(255,209,102,.14) !important; }
.ranking-medal-2 { border-color: #c9c9d6 !important; background: rgba(201,201,214,.12) !important; }
.ranking-medal-3 { border-color: #d99a5b !important; background: rgba(217,154,91,.14) !important; }
.ranking-page-time { font-size: 16px; font-weight: 700; color: #fff; position: relative; cursor: default; }

.ranking-empty { width: 100%; text-align: center; padding: 34px 10px; }
.ranking-empty-icon { font-size: 38px; margin-bottom: 12px; opacity: .7; }
/* ---- aviso de "nuevo record" en la pantalla de resultados competitiva ---- */
.vs-new-record {
  font-size: 13px; font-weight: 700; color: #ffd166;
  margin-top: -8px; margin-bottom: 4px;
}

.ranking-date-tip[data-tooltip]:hover::after, .ranking-page-time[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #1b1723; color: #e9e6f0;
  border: none;
  padding: 5px 9px; border-radius: 7px;
  font-size: 11px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  z-index: 999999;
}

/* ---- aviso de "alguien quiere entrar" para el host, mientras juega ---- */
.vs-join-request {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 350000;
  background: rgba(27,23,35,.95);
  border-radius: 24px; padding: 20px 26px;
  display: none; align-items: center; gap: 20px;
  font-size: 26px; color: #e9e6f0;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.vs-join-request.show { display: flex; }
.vs-join-request-btns { display: flex; gap: 12px; }
.vs-join-request-btns button {
  width: 58px; height: 58px; border-radius: 50%; border: none;
  font-size: 30px; font-weight: 700; cursor: pointer;
}
#vsJoinAcceptBtn { background: rgba(61,220,132,.2); color: #3ddc84; }
#vsJoinRejectBtn { background: rgba(255,123,147,.18); color: #ff7b93; }

/* ---- panel de administracion: tablero de 3 columnas, sin contornos, con ---- */
/* bastante espacio, todo alineado arriba, alturas parejas y animado       ---- */
.admin-dash { display: flex; gap: 22px; align-items: flex-start; text-align: left; }

.admin-nav {
  width: 140px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 6px;
  background: #1b1723; border-radius: 16px; padding: 16px 10px;
  position: sticky; top: 20px;
}
.admin-nav-brand { font-size: 13px; font-weight: 700; color: #fff; padding: 6px 10px 16px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 10px; border: none; background: none;
  color: #a89fc2; font-size: 13px; text-align: left; cursor: pointer; text-decoration: none;
  white-space: nowrap; transition: background-color .15s ease, color .15s ease;
}
.admin-nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.admin-nav-item.selected { background: #7c3aed; color: #fff; }
.admin-nav-logout { margin-top: 14px; color: #ff7b93; }

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-content: flex-start; }
.admin-side { width: 200px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 20px; }

.admin-widget { background: #1b1723; border-radius: 16px; padding: 20px; }
.admin-widget-title { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #e9e6f0; margin-bottom: 14px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #46405a; display: inline-block; flex-shrink: 0; }
.admin-live-room { font-size: 12px; margin-bottom: 12px; }
.admin-live-room:last-child { margin-bottom: 0; }
.admin-live-room .code { color: #fff; }
.admin-live-room .detail { color: #a89fc2; font-size: 11px; margin-top: 2px; }

.thumb-grid-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.thumb-grid-mini .thumb-mini { aspect-ratio: 1; border-radius: 9px; background-size: cover; background-position: center; background-color: #2a2436; }

.admin-stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.admin-stat-chip { background: #1b1723; border-radius: 14px; padding: 16px 10px; text-align: center; }
.admin-stat-chip .num { font-size: 20px; font-weight: 800; color: #fff; }
.admin-stat-chip .lbl { font-size: 10px; color: #6b6478; margin-top: 4px; }

/* fila de filtros: TODO a la misma altura (selects, fechas y botones) */
.admin-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.admin-select, .admin-btn-quiet, .admin-btn-danger {
  height: 40px; box-sizing: border-box;
  font-size: 13px; border-radius: 9px; border: none;
  display: flex; align-items: center;
}
select.admin-select {
  background-color: #26202f; color: #e9e6f0;
  padding: 0 34px 0 12px; width: 100%; min-width: 0;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a89fc2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 15px;
}
input[type="date"].admin-select {
  background: #26202f; color: #e9e6f0;
  padding: 0 12px; width: 100%; min-width: 0;
  color-scheme: dark;
}
.admin-select:focus { outline: 2px solid #7c3aed; }
.admin-btn-quiet { background: #26202f; color: #e9e6f0; padding: 0 16px; cursor: pointer; }
.admin-btn-danger { background: #3a1620; color: #ff7b93; padding: 0 16px; cursor: pointer; white-space: nowrap; }
.admin-filters-actions { display: flex; gap: 10px; margin-top: 12px; }

/* lista liviana: nada de tarjetas por fila, solo una linea fina separando, */
/* y una animacion suave al aparecer o al borrarse                        */
.admin-room-list { display: flex; flex-direction: column; text-align: left; }
.admin-room-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 2px;
  border-bottom: 1px solid #29233a;
  max-height: 90px;
  transition: opacity .28s ease, max-height .28s ease, padding .28s ease, border-color .28s ease;
  animation: adminRowIn .3s ease;
}
.admin-room-row:last-child { border-bottom: none; }
.admin-room-row.row-removing {
  opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; border-color: transparent; overflow: hidden;
}
@keyframes adminRowIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.admin-room-thumb {
  width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0;
  background-size: cover; background-position: center;
}
.admin-room-thumb-empty { background: #26202f; }
.admin-room-name {
  flex: 1; min-width: 0; font-size: 14px; color: #e9e6f0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.admin-room-code {
  background: none; border: none; color: #6b6478; font-size: 12px;
  cursor: pointer; padding: 2px 4px; border-radius: 5px; transition: background-color .15s ease, color .15s ease;
}
.admin-room-code:hover { background: rgba(255,255,255,.06); color: #a89fc2; }
.admin-room-icon { color: #a89fc2; display: flex; flex-shrink: 0; position: relative; }
.admin-room-icon svg { width: 16px; height: 16px; }
.admin-room-players {
  position: relative;
  display: flex; align-items: center; gap: 3px; flex-shrink: 0;
  color: #a89fc2; font-size: 12px;
}
.admin-room-players svg { width: 14px; height: 14px; }
.admin-room-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #46405a; flex-shrink: 0; }
.admin-room-dot.live { background: #3ddc84; }
.admin-room-icon-btn {
  position: relative;
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #a89fc2; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.admin-room-icon-btn svg { width: 15px; height: 15px; }
.admin-room-icon-btn:hover { background: rgba(255,255,255,.06); }
.admin-room-icon-danger:hover { background: rgba(255,123,147,.14); color: #ff7b93; }

/* tooltip generico para cualquier icono de una fila de admin */
.admin-room-row [data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #26202f; color: #e9e6f0;
  padding: 5px 9px; border-radius: 7px;
  font-size: 11px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  z-index: 999999; pointer-events: none;
}

.admin-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-stat-box { background: #221c2c; border-radius: 12px; padding: 18px; text-align: center; }
.admin-stat-num { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 4px; }

/* transicion suave al cambiar de pestaña, en vez de un salto seco */
.admin-panel { display: flex; flex-direction: column; gap: 20px; animation: adminPanelIn .22s ease; }
@keyframes adminPanelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
  .admin-dash { flex-direction: column; gap: 16px; }
  .admin-nav {
    width: 100%; flex-direction: row; overflow-x: auto; position: static;
  }
  .admin-nav-brand { display: none; }
  .admin-nav-logout { margin-top: 0; margin-left: auto; }
  .admin-side { width: 100%; flex-direction: row; position: static; }
  .admin-side .admin-widget { flex: 1; }
  .admin-stat-strip { grid-template-columns: repeat(2, 1fr); }
  .admin-room-name { font-size: 13px; }
}
