/**
 * Urban Chat — Shared Game Components
 * Styles used across Games Arena, Live Stream, and Chat Rooms.
 * Neo-brutalist street culture: thick borders, blocky shapes, red/gold accents.
 */

/* ── Game Card Variants ── */

.uc-game-card--live {
  position: relative;
  border-top: none !important;
}

.uc-game-card--live::before {
  content: "LIVE";
  position: absolute;
  top: 10px;
  right: 10px;
  background: #dc2626;
  border: 1px solid #facc15;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #fff;
  line-height: 1.4;
  z-index: 2;
}

.uc-game-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #000;
  border: 2px solid var(--uc-dna-gold, #D4A017);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--uc-dna-gold, #D4A017);
  white-space: nowrap;
}

.uc-game-badge--live {
  background: var(--uc-dna-red, #B51611);
  border-color: #000;
  color: #fff;
  animation: uc-game-badge-pulse 2s ease-in-out infinite;
}

@keyframes uc-game-badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ── Voting Bar ── */

.uc-vote-bar {
  display: flex;
  width: 100%;
  height: 28px;
  border: 2px solid #000;
  border-radius: 0;
  overflow: hidden;
  background: #111;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

.uc-vote-bar-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  transition: width 0.4s ease;
  border-right: 2px solid #000;
}

.uc-vote-bar-segment:last-child {
  border-right: none;
}

.uc-vote-bar-label {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  padding: 0 4px;
}

/* ── Spin Wheel (CSS only) ── */

.uc-spin-wheel {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #000;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
  overflow: hidden;
  background: conic-gradient(
    #B51611 0deg 60deg,
    #D4A017 60deg 120deg,
    #22c55e 120deg 180deg,
    #3b82f6 180deg 240deg,
    #a855f7 240deg 300deg,
    #f97316 300deg 360deg
  );
}

.uc-spin-wheel.is-spinning {
  animation: uc-spin-wheel-rotate 2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes uc-spin-wheel-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(var(--uc-spin-end, 1440deg)); }
}

.uc-spin-wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 16px solid var(--uc-dna-gold, #D4A017);
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.5));
  z-index: 2;
}

.uc-spin-wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: #000;
  border: 3px solid var(--uc-dna-gold, #D4A017);
  border-radius: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--uc-dna-gold, #D4A017);
}

/* ── Win / Loss Screen Flashes ── */

.uc-game-flash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.uc-game-flash-win {
  box-shadow: inset 0 0 0 6px var(--uc-dna-gold, #D4A017);
  background: radial-gradient(circle at center, rgba(212, 160, 23, 0.15) 0%, transparent 70%);
}

.uc-game-flash-loss {
  box-shadow: inset 0 0 0 6px var(--uc-dna-red, #B51611);
  background: radial-gradient(circle at center, rgba(181, 22, 17, 0.15) 0%, transparent 70%);
}

.uc-game-flash-active {
  opacity: 1;
}

/* ── System Game Prompt (in-chat) ── */

.uc-system-game-prompt {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #1a0505 0%, #0d0202 100%);
  border-left: 4px solid var(--uc-dna-red, #B51611);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin: 8px 0;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
}

.uc-system-game-prompt-pill {
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  background: var(--uc-dna-red, #B51611);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
}

.uc-system-game-prompt-text {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
}

.uc-system-game-prompt-meta {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Toast Override (shared invite toast) ── */

.uc-games-shared-toast {
  animation: uc-anim-bounce-in 0.35s ease both;
}

@keyframes uc-anim-bounce-in {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}

/* ── Live Match Card (spectate view) ── */

.uc-live-match-card {
  position: relative;
  background: linear-gradient(180deg, #150505 0%, #0a0202 100%);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.uc-live-match-card:hover {
  border-color: var(--uc-dna-gold, #D4A017);
  transform: translateY(-2px);
}

.uc-live-match-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--uc-dna-gold, #D4A017);
  opacity: 0.6;
}

.uc-live-match-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.uc-live-match-card__title {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.06em;
}

.uc-live-match-card__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.uc-live-match-card__players {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}

.uc-live-match-card__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: #222;
  object-fit: cover;
}

.uc-live-match-card__vs {
  font-size: 9px;
  font-weight: 900;
  color: var(--uc-dna-gold, #D4A017);
}

.uc-live-match-card__spectate-btn {
  margin-top: 10px;
  width: 100%;
  padding: 6px 0;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
}

.uc-live-match-card__spectate-btn:hover {
  background: var(--uc-dna-gold, #D4A017);
  color: #000;
  border-color: var(--uc-dna-gold, #D4A017);
}

/* ── Combo / Streak Indicator ── */

.uc-combo-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #000;
  border: 2px solid var(--uc-dna-gold, #D4A017);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--uc-dna-gold, #D4A017);
  animation: uc-combo-pop 0.3s ease;
}

@keyframes uc-combo-pop {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ── Room Vibe: Game Room Tile Chip ── */

.uc-room-vibe-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 160, 23, 0.4);
  border-radius: 4px;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--uc-dna-gold, #D4A017);
}

/* ── Games Arena Tab Buttons ── */

.uc-games-tab-btn {
  padding: 5px 12px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.uc-games-tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.9);
}

.uc-games-tab-btn.is-active {
  background: var(--uc-dna-gold, #D4A017);
  border-color: #000;
  color: #000;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
}

.uc-games-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--uc-dna-red, #B51611);
  border: 1px solid #000;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
  color: #fff;
}

.uc-games-tab-btn.is-active .uc-games-tab-badge {
  background: #000;
  color: var(--uc-dna-gold, #D4A017);
}

/* ── Responsive adjustments ── */

@media (max-width: 640px) {
  .uc-spin-wheel {
    width: 160px;
    height: 160px;
  }

  .uc-vote-bar {
    height: 24px;
  }

  .uc-vote-bar-label {
    font-size: 8px;
  }

  .uc-system-game-prompt {
    padding: 10px;
  }

  .uc-system-game-prompt-text {
    font-size: 12px;
  }
}

/* ── Games Arena shell (overlay + roster) ── */

.uc-crt-overlay {
  display: none;
}

.uc-games-arena-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: linear-gradient(90deg, #b91c1c 0%, #7f1d1d 55%, #991b1b 100%);
  border-bottom: 2px solid #facc15;
  color: #fff;
  flex-shrink: 0;
}

.uc-games-arena-head .uc-games-arena-kicker {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #facc15;
  line-height: 1.2;
}

.uc-games-arena-title {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.uc-games-arena-title .uc-games-arena-bolt {
  color: #facc15;
  font-size: 14px;
  line-height: 1;
}

.uc-games-arena-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.uc-games-arena-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fef3c7;
  padding: 6px 10px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  max-width: min(280px, 46vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uc-games-arena-status[data-tone="success"] {
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(6, 78, 59, 0.45);
}

.uc-games-arena-status[data-tone="error"] {
  color: var(--uc-primary-ink);
  border-color: rgba(252, 165, 165, 0.5);
  background: rgba(127, 29, 29, 0.5);
}

.uc-games-arena-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  line-height: 1;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.uc-games-arena-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(250, 204, 21, 0.55);
}

.uc-games-arena-btn.is-win {
  background: linear-gradient(180deg, #16a34a, #15803d);
  border-color: #4ade80;
  color: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.uc-games-arena-btn.is-win:hover {
  filter: brightness(1.06);
}

.uc-games-arena-btn.is-close {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.28);
  min-width: 36px;
  padding-left: 10px;
  padding-right: 10px;
}

.uc-games-arena-btn.is-close:hover {
  background: #7f1d1d;
  border-color: #fca5a5;
}

.uc-games-arena-practice {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #facc15;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.35);
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.uc-games-arena-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  gap: 0;
  min-height: 0;
  flex: 1 1 auto;
  height: 100%;
  overflow: hidden;
  background: #0a0b10;
}

.uc-games-arena-stage {
  position: relative;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  height: 100%;
  padding: 10px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(185, 28, 28, 0.18), transparent 42%),
    radial-gradient(ellipse at 80% 100%, rgba(250, 204, 21, 0.08), transparent 40%),
    linear-gradient(180deg, #141821 0%, #0b0d12 100%);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
}

/* Compact / content-sized games — don't stretch into empty black space */
.uc-games-arena-stage > [class*="uc-game-shell-"] {
  flex: 0 1 auto;
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 0;
  margin-inline: auto;
}

/* Native fixed-format titles use the arena's measured play area, not raw viewport height. */
.uc-games-overlay-card.is-fill-stage .uc-games-arena-stage > :is(.uc-tabletop, .uc-ratchet) {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

/* Full-bleed play surfaces that should fill the stage */
.uc-games-arena-stage > .uc-game-shell-arcade,
.uc-games-arena-stage > .uc-game-shell-pool,
.uc-games-arena-stage > .uc-game-shell-hoops-3d,
.uc-games-arena-stage > .uc-game-shell-cup-pong,
.uc-games-arena-stage > .uc-game-shell-cash-blitz {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
}

.uc-games-arena-roster {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(180deg, #161a22 0%, #0f1218 100%);
  border-left: 1px solid rgba(250, 204, 21, 0.18);
  overflow: hidden;
  min-height: 0;
}

.uc-games-overlay-card.is-lobby .uc-games-arena-body {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.uc-games-overlay-card.is-lobby .uc-games-arena-roster,
.uc-games-overlay-card.is-solo-stage .uc-games-arena-roster,
.uc-games-arena-roster[hidden] {
  display: none !important;
}

.uc-games-overlay-card.is-solo-stage .uc-games-arena-body {
  grid-template-columns: minmax(0, 1fr);
}

.uc-games-overlay-card.is-solo-stage .uc-games-arena-stage {
  border-right: 0;
}

.uc-games-overlay-card.is-lobby .uc-games-arena-stage {
  border-right: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  /* Desktop may center; phones override to flex-start so lobby cards stay above the fold. */
  justify-content: safe center;
  align-items: center;
  align-content: safe center;
  padding: 20px 16px 28px;
}

@media (max-width: 900px) {
  .uc-games-overlay-card.is-lobby .uc-games-arena-stage {
    justify-content: flex-start;
    align-items: stretch;
    align-content: flex-start;
    padding: 14px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .uc-games-overlay-card.is-lobby .uc-game-lobby,
  .uc-games-overlay-card.is-lobby .uc-play-picker {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }
}

.uc-games-overlay-card.is-lobby .uc-game-lobby,
.uc-games-overlay-card.is-lobby .uc-play-picker {
  width: min(720px, 100%);
  max-width: 720px;
  flex: 0 0 auto;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(16, 20, 28, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  padding: 18px 16px 20px;
}

.uc-games-overlay-card.is-lobby .uc-play-picker {
  box-sizing: border-box;
  flex: 0 1 680px;
  height: min(680px, 100%);
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 901px) {
  .uc-games-overlay-card.is-lobby .uc-game-lobby,
  .uc-games-overlay-card.is-lobby .uc-play-picker {
    width: min(760px, 92%);
    max-width: 760px;
    padding: 22px 20px 24px;
  }

}

.uc-games-overlay-card.is-lobby .uc-play-picker__list {
  flex: 1 1 auto;
  min-height: 96px;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.uc-games-overlay-card.is-lobby .uc-play-picker__actions {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-top: 8px;
  background: linear-gradient(180deg, transparent, rgba(16, 20, 28, 0.98) 30%);
}

.uc-games-overlay-card.is-lobby .uc-games-arena-btn.is-win {
  display: none;
}

.uc-games-arena-roster-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.uc-games-arena-roster-head p {
  margin: 0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #facc15;
}

#games-arena-roster-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.uc-games-arena-roster-list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.uc-games-arena-roster-empty {
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
}

.uc-games-arena-roster-empty__label {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4a017;
  margin-bottom: 4px;
}

.uc-games-arena-roster-empty__hint {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.uc-games-arena-roster-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.uc-games-arena-roster-row.is-turn {
  border-color: rgba(250, 204, 21, 0.7);
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.14), rgba(255, 255, 255, 0.03));
  box-shadow: inset 3px 0 0 #facc15;
}

.uc-games-arena-roster-row__name {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uc-games-arena-roster-row__turn {
  margin-left: 6px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #facc15;
}

.uc-games-arena-roster-row__pts {
  font-size: 11px;
  font-weight: 900;
  color: #facc15;
  flex-shrink: 0;
}

.uc-games-arena-roster-score {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.uc-games-arena-roster-score__label {
  margin: 0 0 8px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.uc-games-arena-roster-score__names {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.uc-games-arena-roster-score__vs {
  color: rgba(255, 255, 255, 0.3);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.uc-games-arena-roster-score__bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

#games-score-bar {
  height: 100%;
  background: linear-gradient(90deg, #b91c1c, #facc15);
  border-radius: 999px;
  transition: width 220ms ease;
  width: 50%;
}

@media (max-width: 900px) {
  .uc-games-arena-body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    max-height: none;
    height: 100%;
    overflow: hidden;
  }

  .uc-games-arena-stage {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 0;
    padding: 8px;
    overflow-y: auto;
  }

  .uc-games-arena-roster {
    border-left: 0;
    border-top: 1px solid rgba(250, 204, 21, 0.18);
    max-height: min(28dvh, 180px);
    overflow: hidden;
  }

  .uc-games-arena-roster-list {
    overflow: auto;
  }

  .uc-games-arena-head {
    padding: 8px 12px;
  }

  .uc-games-arena-tools {
    gap: 6px;
  }

  /* Lobby already shows in the kicker — drop the redundant status chip on phones. */
  .uc-games-overlay-card.is-lobby .uc-games-arena-status {
    display: none;
  }

  .uc-games-overlay-card.is-lobby .uc-games-arena-title {
    font-size: 12px;
    letter-spacing: 0.04em;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.uc-tournament-countdown {
  font-size: 10px;
  font-weight: 900;
  color: var(--uc-dna-gold, #D4A017);
  background: #000;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(212, 160, 23, 0.3);
}
