/* ---------------------------------------------------------------
   UNO Arcade - der Phaser-Kanvas ersetzt hier Filz+Handkarten aus
   game.css. Die umgebende Karte (.felt) und alles drumherum (Kopf,
   Sitzplaetze, Aktionsleiste) bleiben normales HTML/CSS.
   --------------------------------------------------------------- */

.arcade-felt {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

.arcade-felt canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

/* Mitspieler sitzen links/rechts am Tisch statt in einer Leiste oben -
   eigene DOM-Ebene ueber dem Kanvas, damit Avatare/Buttons die gewohnte
   HTML-Optik behalten (Bilder, Fokus, Tastatur-Bedienung). */
.arcade-avatars {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  gap: 8px;
  pointer-events: none;
}
/* Hoehere Spezifitaet als .felt > * (polish.css), das jedem direkten Kind
   position:relative aufzwingt - sonst haengt das Ueberlagern hier vom
   Zufall der Stylesheet-Reihenfolge ab statt von echten CSS-Regeln. */
.felt > .arcade-avatars {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.arcade-avatars__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 100%;
  scrollbar-width: none;
}
.arcade-avatars__col::-webkit-scrollbar { display: none; }
.arcade-avatar {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 72px;
  padding: 6px 4px;
  border-radius: 12px;
  background: rgba(10, 14, 28, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  text-align: center;
}
.arcade-avatar--active {
  border-color: rgba(var(--brand-rgb), 0.85);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.35), 0 12px 24px -16px rgba(var(--brand-rgb), 0.8);
}
.arcade-avatar__name {
  font-size: 0.68rem;
  font-weight: 650;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.arcade-avatar__cards { font-size: 0.64rem; color: var(--text-dim); }
.arcade-avatar__uno {
  font-size: 0.62rem;
  font-weight: 800;
  color: #201400;
  background: var(--warn);
  border-radius: 999px;
  padding: 1px 6px;
}
.arcade-avatar__catch {
  margin-top: 2px;
  font-size: 0.64rem;
  font-weight: 700;
  color: #fff;
  background: var(--bad);
  border-radius: 999px;
  padding: 3px 8px;
}

@media (max-width: 420px) {
  .arcade-avatar { width: 58px; }
  .arcade-avatar__name { max-width: 54px; }
}
