:root {
  --poker-content-max: 1180px;
}

.page-heading {
  margin-bottom: 1rem;
}

.page-heading h1 {
  margin-bottom: .25rem;
}

.surface-card {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  border-radius: 1rem;
}

.admin-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem;
}

.poker-suit {
  font-size: 1.05em;
  line-height: 1;
}

.poker-suit--heart,
.poker-suit--diamond {
  color: #ff667a;
}

.player-identifier {
  display: inline-flex;
  gap: .35rem;
  align-items: center;
  font-weight: 700;
  letter-spacing: .03em;
}

.invitation-qr {
  width: min(260px, 100%);
  aspect-ratio: 1;
  background: #fff;
  padding: .5rem;
  border-radius: .75rem;
}

.invitation-url {
  word-break: break-all;
}

.app-status-pill {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 1.7rem;
  padding: .28rem .62rem;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 999px;
  background: rgba(148, 163, 184, .09);
  color: #cbd5e1;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.app-status-pill--success {
  border-color: rgba(34, 197, 94, .28);
  background: linear-gradient(135deg, rgba(22, 163, 74, .20), rgba(20, 184, 166, .10));
  color: #bbf7d0;
}

.app-status-pill--danger {
  border-color: rgba(239, 68, 68, .28);
  background: linear-gradient(135deg, rgba(220, 38, 38, .20), rgba(244, 63, 94, .09));
  color: #fecaca;
}

.app-status-pill--warning {
  border-color: rgba(245, 158, 11, .30);
  background: linear-gradient(135deg, rgba(217, 119, 6, .18), rgba(250, 204, 21, .08));
  color: #fde68a;
}

.app-status-pill--info {
  border-color: rgba(96, 165, 250, .30);
  background: linear-gradient(135deg, rgba(37, 99, 235, .20), rgba(14, 165, 233, .10));
  color: #bfdbfe;
}

.app-status-pill--neutral {
  border-color: rgba(148, 163, 184, .22);
  background: rgba(148, 163, 184, .09);
  color: #cbd5e1;
}

.app-status-pill__dot {
  width: .48rem;
  height: .48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #4ade80;
  box-shadow:
    0 0 0 .18rem rgba(34, 197, 94, .10),
    0 0 .72rem rgba(74, 222, 128, .82);
}

.app-status-pill--live .app-status-pill__dot {
  animation: app-status-live-pulse 2.2s ease-in-out infinite;
}

@keyframes app-status-live-pulse {
  0%, 100% {
    opacity: .78;
    transform: scale(.92);
    box-shadow:
      0 0 0 .16rem rgba(34, 197, 94, .08),
      0 0 .55rem rgba(74, 222, 128, .62);
  }
  50% {
    opacity: 1;
    transform: scale(1);
    box-shadow:
      0 0 0 .22rem rgba(34, 197, 94, .12),
      0 0 .9rem rgba(74, 222, 128, .9);
  }
}

@media (max-width: 767.98px) {
  .site-navbar .navbar-toggler,
  .site-navbar .navbar-collapse {
    display: none !important;
  }
  .site-navbar__brand {
    max-width: calc(100vw - 2rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Reusable live-operation palette. Feature pages may compose these tokens without
   inventing their own blue surfaces, borders or accent glow. */
:root {
  --app-live-surface: rgba(7, 22, 42, .92);
  --app-live-surface-strong: rgba(10, 31, 57, .97);
  --app-live-border: rgba(96, 165, 250, .20);
  --app-live-border-strong: rgba(96, 165, 250, .32);
  --app-live-accent: #60a5fa;
  --app-live-text: #f3f8ff;
  --app-live-muted: rgba(200, 219, 242, .72);
  --app-live-glow: rgba(37, 99, 235, .14);
}

/* Reusable form-attention state for validation errors across the application. */
@keyframes form-attention-field-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, .12); }
  50% { box-shadow: 0 0 0 .28rem rgba(220, 53, 69, .24); }
}

@keyframes form-attention-surface-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(220, 53, 69, .38); }
  50% { box-shadow: 0 0 0 3px rgba(220, 53, 69, .22), 0 0 1.2rem rgba(220, 53, 69, .08); }
}

.form-attention-pulse {
  border-color: rgba(220, 53, 69, .92) !important;
  animation: form-attention-field-pulse 1s ease-in-out infinite;
}

.form-attention-pulse-surface {
  outline: 1px solid rgba(220, 53, 69, .44);
  outline-offset: 2px;
  animation: form-attention-surface-pulse 1s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .form-attention-pulse,
  .form-attention-pulse-surface {
    animation: none;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, .28);
  }
}
