*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a12;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f0f0f8;
  --text-muted: #8888a8;
  --accent: #7c5cfc;
  --accent-2: #00d4aa;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(124, 92, 252, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(0, 212, 170, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255, 100, 150, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.25rem 1.5rem 1.25rem;
}

.back-btn {
  position: absolute;
  left: 1.5rem;
  top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.back-btn:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.back-btn.hidden {
  display: none;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.logo-link {
  display: inline-flex;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.logo-link--auth {
  display: block;
  margin: 0 auto 1rem;
  width: fit-content;
}

.logo-icon {
  font-size: 2rem;
}

.logo-img {
  display: block;
  height: auto;
  max-height: 9rem;
  width: auto;
  max-width: min(600px, 96vw);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55))
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
  transition: filter 0.25s ease, transform 0.25s ease;
}

.logo:hover .logo-img,
.logo-link--auth:hover .logo-img {
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.62))
    drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
  transform: scale(1.015);
}

.logo-img--auth {
  max-height: 7.5rem;
  max-width: min(520px, 94vw);
}

.dev-app-header-compact .logo-img {
  max-height: 6rem;
  max-width: min(460px, 92vw);
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
}

.main {
  flex: 1;
  position: relative;
  z-index: 1;
  padding: 1rem 1.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hidden {
  display: none !important;
}

/* Lobby */
.lobby-search-wrap {
  margin-top: 0.5rem;
}

.lobby-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lobby-search:focus-within {
  border-color: rgba(124, 92, 252, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.15);
}

.lobby-search-icon {
  flex-shrink: 0;
  color: var(--text-muted);
}

.lobby-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.lobby-search input::placeholder {
  color: var(--text-muted);
}

.lobby-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.lobby-search-empty {
  margin-top: 0.85rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.game-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
}

.card-glow {
  position: absolute;
  top: -40%;
  right: -30%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  transition: opacity 0.3s;
}

.game-card:hover .card-glow {
  opacity: 0.8;
}

.card-glow.tictactoe { background: #7c5cfc; }
.card-glow.chess { background: #f0c040; }
.card-glow.ludo { background: #ff6b6b; }
.card-glow.flappy { background: #00d4aa; }

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.game-card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.game-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-badge {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  background: rgba(124, 92, 252, 0.2);
  color: #b8a8ff;
  border: 1px solid rgba(124, 92, 252, 0.3);
}

/* Game view */
.game-view {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  animation: fadeIn 0.35s ease;
}

.main.game-active {
  max-width: none;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.game-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  z-index: 5;
}

.setup-screen {
  position: relative;
  z-index: 10;
}

.setup-screen.hidden,
.game-panel.hidden {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.mode-picker {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  backdrop-filter: blur(12px);
  text-align: center;
  width: 100%;
}

.mode-picker,
.game-panel {
  position: relative;
}

.game-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.mode-picker h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.mode-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.mode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.25rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  font-family: inherit;
}

.mode-card:hover {
  border-color: var(--accent);
  background: rgba(124, 92, 252, 0.12);
  transform: translateY(-2px);
}

.mode-card strong {
  font-size: 1rem;
  font-weight: 600;
}

.mode-card span:last-child {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.mode-icon {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

@media (max-width: 720px) {
  .mode-options {
    grid-template-columns: 1fr;
  }
}

.join-lobby-block {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: left;
}

.join-lobby-block label,
.join-lobby-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.lobby-code-slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
}

.lobby-code-char {
  width: 100%;
  min-width: 0;
  min-height: 3.1rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #141424;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #00d4aa;
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  user-select: text;
  -webkit-user-select: text;
}

.lobby-code-char:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.25);
}

.lobby-code-char.filled {
  border-color: rgba(124, 92, 252, 0.55);
  background: rgba(124, 92, 252, 0.15);
}

.join-lobby-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.85rem;
}

.btn-join {
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  min-width: unset;
  width: auto;
}

.join-lobby-error {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: #ff6b8a;
}

.invite-prompt {
  text-align: center;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.25);
}

.invite-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.invite-code {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  margin-bottom: 0.75rem;
}

.invite-hint {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 520px) {
  .mode-options {
    grid-template-columns: 1fr;
  }
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.game-header h2 {
  font-size: 1.4rem;
  font-weight: 600;
}

.game-controls {
  display: flex;
  gap: 0.5rem;
}

.btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5a3fd4);
  color: #fff;
  border: none;
  width: 100%;
  padding: 0.75rem 1.1rem;
  font-weight: 600;
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.user-bar {
  position: absolute;
  right: 1.5rem;
  top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: min(420px, 50vw);
}

.lang-toggle {
  min-width: 2.6rem;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.auth-card-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.25rem;
}

.user-greeting {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.user-greeting strong {
  color: var(--text);
  font-weight: 600;
}

.user-email {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.user-guest-badge {
  color: var(--accent-2);
  font-weight: 500;
}

/* Auth page */
.auth-page {
  justify-content: center;
}

.auth-main {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 1.5rem;
}

.auth-card {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-brand h1 {
  font-size: 1.8rem;
  margin: 0.25rem 0 0.5rem;
}

.auth-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.35rem;
  border-radius: 12px;
}

.auth-tab {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--accent);
  color: #fff;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.auth-form input {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  transition: border-color 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.2);
}

.auth-error {
  font-size: 0.85rem;
  color: #ff6b8a;
  background: rgba(255, 107, 138, 0.1);
  border: 1px solid rgba(255, 107, 138, 0.25);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.btn-guest {
  width: 100%;
}

.auth-guest-hint {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

.dev-auth-card {
  width: min(440px, 100%);
}

.dev-auth-badge {
  display: inline-block;
  margin: 0.5rem 0 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5dffd9;
  background: rgba(0, 212, 170, 0.12);
  border: 1px solid rgba(0, 212, 170, 0.28);
}

.dev-auth-back a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.dev-auth-back a:hover {
  color: var(--accent-2);
}

.game-status {
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-2);
  min-height: 1.5rem;
  margin-bottom: 1rem;
}

.rematch-prompt {
  text-align: center;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(124, 92, 252, 0.1);
  border: 1px solid rgba(124, 92, 252, 0.25);
}

.rematch-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.rematch-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.canvas-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1rem;
  overflow: hidden;
}

.leaderboard {
  position: absolute;
  left: 0;
  top: 0;
  width: 220px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 0.85rem;
  max-height: calc(100vh - 10rem);
  overflow-y: auto;
  backdrop-filter: blur(12px);
  z-index: 2;
}

.leaderboard-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.leaderboard-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  flex: 1;
}

.leaderboard-live {
  font-size: 0.55rem;
  color: #00d4aa;
  animation: lb-pulse 1.5s ease-in-out infinite;
}

@keyframes lb-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.leaderboard-item.lb-enter {
  animation: lb-fade-in 0.35s ease;
}

@keyframes lb-fade-in {
  from { opacity: 0; transform: translateX(6px); }
  to { opacity: 1; transform: translateX(0); }
}

.leaderboard-icon {
  font-size: 1.1rem;
}

.leaderboard-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.leaderboard-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.leaderboard-item {
  display: grid;
  grid-template-columns: 1.4rem 1fr auto;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.82rem;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.leaderboard-item.rank-1 { background: rgba(255, 215, 0, 0.12); border: 1px solid rgba(255, 215, 0, 0.25); }
.leaderboard-item.rank-2 { background: rgba(192, 192, 192, 0.1); border: 1px solid rgba(192, 192, 192, 0.2); }
.leaderboard-item.rank-3 { background: rgba(205, 127, 50, 0.1); border: 1px solid rgba(205, 127, 50, 0.2); }

.game-card.disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.leaderboard-you {
  font-size: 0.82rem;
  color: var(--accent-2);
  margin-bottom: 0.65rem;
  font-weight: 500;
}

.leaderboard-you.lb-guest-note {
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
}

.leaderboard-error {
  font-size: 0.78rem;
  color: #ff6b8a;
  margin-top: 0.5rem;
  text-align: center;
}

.leaderboard-item.lb-you {
  box-shadow: 0 0 0 1px rgba(124, 92, 252, 0.45);
}

.lb-you-tag {
  font-size: 0.7em;
  color: var(--accent);
}

.lb-rank {
  font-weight: 700;
  color: var(--accent-2);
  text-align: center;
}

.lb-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.lb-score {
  font-weight: 600;
  color: var(--accent);
}

.leaderboard-empty {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem 0;
}

#game-canvas {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  cursor: pointer;
  touch-action: manipulation;
}

.game-panel.hidden #game-canvas {
  pointer-events: none;
}

.game-hint {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Ludo — centered like other games, leaderboard absolute left */
.game-view.ludo-active {
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: none;
  padding: 0 1.5rem 2rem;
}

.game-stage.ludo-active {
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  flex: 0 1 auto;
}

.game-stage.ludo-active .game-panel {
  padding: 1.25rem 1rem 1.5rem;
}

.ludo-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.ludo-board-stack {
  position: relative;
  display: block;
  line-height: 0;
  margin: 0 auto;
}

.ludo-board-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  user-select: none;
  pointer-events: none;
}

.ludo-board-img.hidden {
  display: none;
}

.canvas-wrap.ludo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0.35rem;
  overflow: visible;
  background: transparent;
  border: none;
}

.ludo-board-canvas {
  display: block;
  max-width: none !important;
  border-radius: 4px;
  background: #f3e4a4;
}

.ludo-hud {
  width: 100%;
  max-width: 520px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 0.85rem 1.25rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.ludo-hud-title {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.ludo-players {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  min-width: 0;
}

.ludo-player {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ludo-player.active {
  border-color: var(--player-color, var(--accent));
  box-shadow: 0 0 0 1px var(--player-glow, rgba(124, 92, 252, 0.35));
}

.ludo-player.winner {
  border-color: #ffd24d;
  box-shadow: 0 0 16px rgba(255, 210, 77, 0.25);
}

.ludo-player-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--player-color);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.ludo-player-info {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.ludo-player-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ludo-player-progress {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ludo-dice {
  grid-row: 2;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  min-width: 100px;
}

.ludo-dice:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ludo-dice.ready:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.ludo-dice.rolling {
  animation: ludo-shake 0.45s ease-in-out infinite;
}

@keyframes ludo-shake {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

.ludo-dice-face {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #e8e8e8);
  border: 2px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), 0 4px 12px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.ludo-dice-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.25);
}

.ludo-pip {
  position: absolute;
  left: calc(50% + var(--px) * 10px);
  top: calc(50% + var(--py) * 10px);
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #1a1a1a;
}

.ludo-dice-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  max-width: 90px;
  line-height: 1.3;
}

.ludo-wrap #game-canvas,
.ludo-board-canvas {
  display: block;
  border-radius: 4px;
}

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-links {
  margin: 0.5rem 0 0;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-links a:hover {
  color: var(--accent);
}

.auth-footer {
  padding-bottom: 2rem;
}

.legal-main {
  align-items: flex-start;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.legal-card {
  max-width: 42rem;
  text-align: left;
}

.legal-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}

.legal-intro {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-card-top {
  margin-bottom: 1rem;
}

.legal-section {
  margin-bottom: 1.5rem;
}

.legal-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.legal-section p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section a {
  color: var(--accent);
  word-break: break-word;
}

.legal-section em {
  font-style: normal;
  opacity: 0.85;
}

.legal-list {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.legal-list li {
  margin-bottom: 0.35rem;
}

.legal-list code,
.legal-section code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.legal-nav {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.legal-nav a {
  color: var(--accent);
}

@media (max-width: 900px) {
  .game-view {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .leaderboard {
    position: static;
    width: 100%;
    max-width: 400px;
    max-height: 200px;
  }

  .game-view.ludo-active {
    padding: 0 0.75rem 1.5rem;
  }

  .game-stage.ludo-active {
    margin-left: 0;
    max-width: 100%;
  }

  .ludo-hud {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ludo-dice {
    grid-row: auto;
    grid-column: 1;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    padding: 0.85rem 1rem;
  }

  .ludo-players {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .back-btn {
    position: static;
    margin-bottom: 1rem;
  }

  .user-bar {
    position: static;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }

  .header {
    padding-top: 1.5rem;
  }

  .game-panel {
    padding: 1rem;
  }

  .auth-card {
    padding: 1.5rem;
  }
}

/* ── Dev dashboard ── */
#dev-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  width: 100%;
}

.dev-app-header-compact {
  padding-bottom: 0.25rem;
}

.dev-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

.dev-sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 0.75rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.dev-sidebar-label {
  margin: 0 0 0.75rem;
  padding: 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dev-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dev-nav-btn {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.dev-nav-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.dev-nav-btn.active {
  background: rgba(124, 92, 252, 0.18);
  border-color: rgba(124, 92, 252, 0.35);
  color: #fff;
}

.dev-content {
  min-width: 0;
}

.dev-view.hidden {
  display: none;
}

.dev-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.dev-panel-head h2 {
  margin: 0;
}

.dev-hint {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dev-success {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #5dffd9;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.dev-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.dev-badge-admin {
  color: #5dffd9;
  background: rgba(0, 212, 170, 0.12);
  border: 1px solid rgba(0, 212, 170, 0.28);
}

.dev-badge-guest {
  color: #c4b5fd;
  background: rgba(124, 92, 252, 0.12);
  border: 1px solid rgba(124, 92, 252, 0.28);
}

.dev-badge-user {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.dev-badge-current {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  margin-left: 0.35rem;
}

.dev-sessions-table td {
  vertical-align: middle;
}

.dev-select {
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.dev-score-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dev-score-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.dev-score-stat strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.15rem;
}

.dev-score-stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dev-mp-block {
  margin-bottom: 1.5rem;
}

.dev-mp-block h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.dev-maint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.dev-kind-badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .dev-score-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dev-inline-input {
  width: 100%;
  min-width: 120px;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.dev-inline-input:focus {
  outline: none;
  border-color: var(--accent);
}

.dev-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.dev-action-btn {
  white-space: nowrap;
}

.dev-action-danger {
  border-color: rgba(255, 107, 138, 0.35);
  color: #ff8a8a;
}

.dev-action-danger:hover {
  background: rgba(255, 107, 138, 0.12);
}

.dev-users-table td {
  vertical-align: middle;
}

.dev-dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  background: #12121c;
  color: var(--text);
  box-shadow: var(--shadow);
  max-width: 420px;
  width: calc(100% - 2rem);
}

.dev-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.dev-dialog-form {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dev-dialog-form h3 {
  margin: 0;
  font-size: 1.1rem;
}

.dev-dialog-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dev-dialog-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dev-dialog-form input {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
}

.dev-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.dev-create-panel {
  margin-bottom: 1rem;
}

.dev-create-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
}

.dev-create-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dev-create-form input {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.dev-create-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.dev-create-submit {
  width: auto;
  height: fit-content;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .dev-create-form {
    grid-template-columns: 1fr;
  }

  .dev-create-submit {
    width: 100%;
  }
}

.dev-dialog-actions .btn-primary {
  width: auto;
}

.dev-app-header {
  padding-bottom: 0.5rem;
}

.dev-user-bar {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
}

.dev-last-updated {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.dev-live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: dev-live-pulse 2s ease-out infinite;
  flex-shrink: 0;
}

.dev-live-dot-paused {
  background: #94a3b8;
  box-shadow: none;
  animation: none;
}

@keyframes dev-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.dev-main {
  padding-top: 0.5rem;
}

.dev-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dev-kpi {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dev-kpi-accent {
  border-color: rgba(124, 92, 252, 0.35);
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.12), rgba(255, 255, 255, 0.04));
}

.dev-kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 20%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dev-kpi-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dev-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dev-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.dev-panel h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.dev-panel-wide {
  grid-column: 1 / -1;
}

.dev-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 160px;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}

.dev-chart-games {
  height: 200px;
  gap: 0.75rem;
  align-items: flex-end;
}

.dev-chart-bar-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 0.35rem;
}

.dev-chart-bar {
  width: 100%;
  max-width: 28px;
  min-height: 2px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent), rgba(124, 92, 252, 0.45));
  transition: opacity 0.15s ease;
}

.dev-chart-bar-wrap:hover .dev-chart-bar {
  opacity: 0.85;
}

.dev-chart-bar-wrap[data-value="0"] .dev-chart-bar {
  background: rgba(255, 255, 255, 0.08);
  min-height: 2px;
}

.dev-chart-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.dev-chart-games .dev-chart-bar-wrap {
  max-width: 120px;
}

.dev-chart-games .dev-chart-bar {
  max-width: 56px;
}

.dev-chart-games .dev-chart-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
}

.dev-chart-value {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
}

.dev-chart-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 2rem 0;
  text-align: center;
  width: 100%;
}

.dev-dl {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.dev-dl > div {
  display: grid;
  grid-template-columns: minmax(130px, 42%) 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dev-dl > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dev-dl dt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.dev-dl dd {
  margin: 0;
  font-weight: 500;
  word-break: break-word;
}

.dev-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.82rem;
}

.dev-table-wrap {
  overflow-x: auto;
}

.dev-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.dev-table th,
.dev-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dev-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.dev-table-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 1rem !important;
}

.dev-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.dev-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.dev-link-card:hover {
  border-color: rgba(124, 92, 252, 0.4);
  background: rgba(124, 92, 252, 0.08);
}

.dev-link-card strong {
  color: var(--accent-2);
  font-size: 0.95rem;
}

.dev-link-card code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
}

@media (max-width: 900px) {
  .dev-layout {
    grid-template-columns: 1fr;
  }

  .dev-sidebar {
    position: static;
  }

  .dev-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .dev-nav-btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .dev-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dev-user-bar {
    position: static;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 800px) {
  .dev-grid {
    grid-template-columns: 1fr;
  }

  .dev-dl > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (max-width: 500px) {
  .dev-kpi-row {
    grid-template-columns: 1fr;
  }
}

.app-announcement {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0.65rem 1rem;
  text-align: center;
  font-weight: 500;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.92);
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
  backdrop-filter: blur(8px);
}

.app-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  max-width: min(360px, calc(100vw - 2rem));
  padding: 1rem 2.5rem 1rem 1rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(0, 212, 170, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.app-toast strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #5dffd9;
}

.app-toast p {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.app-toast-close {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.game-card.game-disabled {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.35);
}

.dev-settings-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 520px;
}

.dev-settings-form label span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
}

.dev-settings-form input[type="text"],
.dev-settings-form textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.6);
  color: inherit;
  font: inherit;
}

.dev-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}

.dev-toggle-row input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #00d4aa;
}

.dev-subheading {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.dev-admin-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #cbd5e1;
}

.dev-admin-list li + li {
  margin-top: 0.35rem;
}
