:root {
  --bg: #09090b;
  --surface: #121215;
  --surface-elevated: #18181c;
  --border: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(255, 255, 255, 0.35);
  --accent: #ffffff;
  --accent-hover: #e4e4e7;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --success: #22c55e;
  --danger: #ef4444;
  --gold: #eab308;
  --vip: #ec4899;
  --root: #a78bfa;
}

/* JASNY MOTYW (LIGHT THEME) */
body.light-theme {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-elevated: #f8fafc;
  --border: rgba(0, 0, 0, 0.12);
  --border-focus: rgba(0, 0, 0, 0.35);
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --text: #0f172a;
  --text-muted: #64748b;
  --gold: #d97706;
}
body.light-theme input[type="text"],
body.light-theme input[type="password"],
body.light-theme input[type="number"],
body.light-theme select,
body.light-theme textarea {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}
body.light-theme input::placeholder { color: #94a3b8; }
body.light-theme .hub-card,
body.light-theme .card-box,
body.light-theme .modal-overlay .card-box,
body.light-theme .slot-machine-box,
body.light-theme .wheel-box,
body.light-theme .roulette-box,
body.light-theme .bj-box,
body.light-theme .lootbox-box {
  background: #ffffff;
  color: #0f172a;
  border-color: #e2e8f0;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}
body.light-theme .hub-topbar { background: #f8fafc; border-bottom-color: #e2e8f0; }
body.light-theme .hub-brand-logo { color: #0f172a; }
body.light-theme .hub-nav { background: #f8fafc; border-bottom-color: #e2e8f0; }
body.light-theme .hub-nav-btn { color: #64748b; }
body.light-theme .hub-nav-btn:hover { color: #0f172a; background: #e2e8f0; }
body.light-theme .hub-nav-btn.active { color: #2563eb; border-bottom-color: #2563eb; background: #eff6ff; font-weight: 700; }
body.light-theme .btn { background: #0f172a; color: #ffffff; }
body.light-theme .btn:hover { background: #1e293b; }
body.light-theme .btn.secondary { background: #f1f5f9; border-color: #cbd5e1; color: #334155; }
body.light-theme .btn.secondary:hover { background: #e2e8f0; color: #0f172a; }
body.light-theme .game-card { background: #f8fafc; border-color: #e2e8f0; }
body.light-theme .game-card:hover { background: #f1f5f9; border-color: #94a3b8; }
body.light-theme .game-card.active { background: #eff6ff; border-color: #2563eb; box-shadow: 0 0 0 1px #2563eb; }
body.light-theme .game-card h3 { color: #0f172a; }
body.light-theme .game-card p { color: #64748b; }
body.light-theme .shop-item-box { background: #f8fafc; border-color: #e2e8f0; color: #0f172a; }
body.light-theme .shop-item-box:hover { border-color: #cbd5e1; }
body.light-theme .shop-item-name { color: #0f172a; }
body.light-theme .hero-profile-box { background: #f8fafc; border-color: #e2e8f0; color: #0f172a; }
body.light-theme .stat-card { background: #f8fafc; border-color: #e2e8f0; }
body.light-theme .inv-preview-box { background: #f8fafc; border-color: #e2e8f0; color: #0f172a; }
body.light-theme #chat-box { background: #ffffff; border-color: #e2e8f0; }

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--text); height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hidden { display: none !important; }

.version-tag { position: fixed; bottom: 12px; right: 16px; font-size: 0.65rem; color: var(--text-muted); font-family: monospace; z-index: 9999; pointer-events: none; opacity: 0.7; }

/* FORM & INPUTS */
input[type="text"], input[type="password"], select, textarea {
  width: 100%; padding: 10px 14px; background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border); border-radius: 8px; color: var(--text);
  font-size: 0.88rem; margin-bottom: 8px; outline: none; transition: border-color 0.2s;
  line-height: 1.5;
}
input::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus { border-color: var(--border-focus); }
textarea { resize: vertical; min-height: 70px; font-family: monospace; }

.btn {
  width: 100%; padding: 10px 14px; border: none; border-radius: 8px;
  background: #e4e4e7; color: #09090b; font-weight: 600;
  font-size: 0.88rem; cursor: pointer; transition: 0.15s; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn:hover { background: #ffffff; }
.btn.secondary { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #a1a1aa; }
.btn.secondary:hover { background: rgba(255, 255, 255, 0.08); color: #d4d4d8; }
.btn.danger-btn { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.25); color: var(--danger); }
.btn.danger-btn:hover { background: var(--danger); color: #fff; }
.btn.sm-btn { padding: 6px 12px; font-size: 0.75rem; width: auto; margin-bottom: 0; }
.btn:disabled, .btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: auto;
  filter: grayscale(40%);
}
.btn:disabled:hover, .btn.disabled:hover { background: #e4e4e7; }
body.light-theme .btn:disabled:hover, body.light-theme .btn.disabled:hover { background: #0f172a; }
.btn.pass { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--gold); }
.btn.cheat { background: rgba(236, 72, 153, 0.12); border: 1px solid rgba(236, 72, 153, 0.3); color: var(--vip); }
.divider { margin: 8px 0; color: var(--text-muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; }

/* AVATARY */
.avatar-wrap { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: #1e2230; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); }
.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; background: #1e2230; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; border: 1px solid var(--border); }
.avatar-sm img { width: 100%; height: 100%; object-fit: cover; }

/* PROFILE AVATAR CONTAINER & MODAL */
.profile-avatar-container {
  position: relative;
  cursor: pointer;
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
  user-select: none;
}
.profile-avatar-container:hover .avatar-wrap {
  border-color: #8b5cf6;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.45);
}
.profile-avatar-edit-overlay {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  background: #7c3aed;
  border: 2px solid var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  transition: transform 0.15s, background 0.15s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.profile-avatar-container:hover .profile-avatar-edit-overlay {
  transform: scale(1.15);
  background: #9333ea;
}
.avatar-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 6px;
}
.avatar-preset-btn {
  width: 40px;
  height: 40px;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.avatar-preset-btn:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: #8b5cf6;
  transform: scale(1.08);
}
.avatar-preset-btn.selected {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}
.avatar-upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}
.avatar-upload-dropzone:hover {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.08);
}

/* MINIMAL CARD */
.card-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px; width: 520px; max-width: 95vw;
  overflow-y: auto; text-align: center;
}
.title-logo { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 2px; }
.subtitle { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; }

/* Przełącznik motywu jasny/ciemny oraz dźwięku */
.theme-toggle {
  border: 1px solid var(--border); background: rgba(255,255,255,0.05);
  border-radius: 8px; cursor: pointer; font-size: 0.95rem;
  padding: 4px 8px; height: 32px; min-width: 32px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  transition: 0.15s; line-height: 1; user-select: none;
}
.hub-brand .theme-toggle { margin-left: 8px; }
.theme-toggle:hover { background: rgba(255,255,255,0.1); }
body.light-theme .theme-toggle { background: #e2e8f0; border-color: #cbd5e1; }
body.light-theme .theme-toggle:hover { background: #cbd5e1; }

/* Utility: małe przyciski z gradientem / kolorem — zamiast powtarzalnych inline style */
.btn.btn-admin-grad { background: linear-gradient(90deg,#7c3aed,#a855f7); border:1px solid #a855f7; font-weight:800; color:#fff; }
.btn.btn-danger-grad { background: linear-gradient(90deg,#dc2626,#ef4444); border-color:#ef4444; color:#fff; }
.btn.btn-gold-grad { background: linear-gradient(90deg,#f59e0b,#facc15); color:#000; font-weight:800; }
.btn.btn-success-soft { background: rgba(34,197,94,0.18); border:1px solid rgba(34,197,94,0.5); color:#86efac; }
.btn.btn-danger-soft { background: rgba(239,68,68,0.15); border:1px solid rgba(239,68,68,0.4); color:#fca5a5; }
.btn.btn-danger-soft-strong { background: rgba(239,68,68,0.2); border:1px solid rgba(239,68,68,0.55); color:#fecaca; }
.btn.btn-admin-soft { background: rgba(167,139,250,0.2); border:1px solid rgba(167,139,250,0.5); color:#ddd6fe; }

.auth-tabs { display: flex; gap: 4px; margin-bottom: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); padding: 3px; border-radius: 8px; }
.auth-tab { flex: 1; padding: 8px; border: none; background: transparent; color: var(--text-muted); font-weight: 600; font-size: 0.82rem; cursor: pointer; border-radius: 6px; transition: all 0.15s; }
.auth-tab.active { background: rgba(255, 255, 255, 0.1); color: #ffffff; font-weight: 700; }

/* Ekran łączenia: status + spinner */
.connect-status { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-muted); font-size: 0.85rem; }
.spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: #facc15; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Komunikat błędu (logowanie/rejestracja/łączenie) */
.error-msg { margin-top: 12px; padding: 9px 12px; font-size: 0.8rem; line-height: 1.4; color: #fca5a5; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.35); border-radius: 8px; text-align: left; }
body.light-theme .error-msg { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
/* Podium: szerszy box z wyróżnieniem */
.podium-box { border-color: rgba(250, 204, 21, 0.35); box-shadow: 0 0 60px rgba(250, 204, 21, 0.12); }
/* Tryby gry w hubie: karty informacyjne (bez hover-klikania) */
.info-modes { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1050px) { .info-modes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .info-modes { grid-template-columns: repeat(2, 1fr); } }

.profile-card { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; text-align: left; }
.profile-main-row { display: flex; justify-content: space-between; align-items: center; }
.profile-nick-row { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; color: #fff; }
.profile-badge { font-size: 0.7rem; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border); padding: 2px 6px; border-radius: 4px; color: #f4f4f5; font-weight: 600; }
.profile-vip-badge { font-size: 0.7rem; background: rgba(236, 72, 153, 0.15); border: 1px solid rgba(236, 72, 153, 0.35); padding: 2px 6px; border-radius: 4px; color: #f472b6; font-weight: 700; }
.profile-root-badge { font-size: 0.7rem; background: rgba(167, 139, 250, 0.18); border: 1px solid rgba(167, 139, 250, 0.4); padding: 2px 6px; border-radius: 4px; color: #c4b5fd; font-weight: 700; }
.profile-coins-text { font-size: 0.75rem; color: #facc15; font-weight: 700; }
.profile-actions { display: flex; gap: 6px; margin-top: 8px; }

.game-select-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 12px; }
@media (max-width: 1050px) {
  .game-select-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .game-select-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
  .game-select-grid { grid-template-columns: repeat(2, 1fr); }
}

/* BLACKJACK & CARDS STYLES */
.bj-box { background: #064e3b; border: 2px solid #059669; border-radius: 16px; padding: 18px; width: 560px; max-width: 95vw; color: #fff; box-shadow: 0 0 40px rgba(5, 150, 105, 0.3); text-align: center; }
.bj-card { width: 48px; height: 68px; background: #ffffff; color: #1e293b; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.5); display: flex; flex-direction: column; justify-content: space-between; padding: 4px; font-weight: 900; font-size: 0.85rem; user-select: none; transition: transform 0.2s; }
.bj-card.red { color: #dc2626; }
.bj-card.back { background: linear-gradient(135deg, #1e3a8a, #172554); border: 2px solid #3b82f6; color: transparent; }

/* LOOTBOX CAROUSEL STYLES */
.lootbox-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; width: 580px; max-width: 95vw; color: #fff; text-align: center; }
.lootbox-viewport { position: relative; width: 100%; height: 110px; overflow: hidden; background: rgba(0,0,0,0.5); border: 1px solid var(--border); border-radius: 10px; margin: 14px 0; }
.lootbox-needle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #ef4444; z-index: 10; box-shadow: 0 0 10px #ef4444; transform: translateX(-50%); }
.lootbox-needle::before { content: '▼'; position: absolute; top: -2px; left: -6px; color: #ef4444; font-size: 12px; }
.lootbox-strip { display: flex; gap: 8px; position: absolute; top: 10px; left: 0; will-change: transform; }
.lootbox-card { width: 88px; height: 88px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 2px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px; flex-shrink: 0; text-align: center; }
.lootbox-card.tier-common { border-color: #64748b; }
.lootbox-card.tier-rare { border-color: #3b82f6; background: rgba(59,130,246,0.1); }
.lootbox-card.tier-epic { border-color: #a855f7; background: rgba(168,85,247,0.1); }
.lootbox-card.tier-legendary { border-color: #eab308; background: rgba(234,179,8,0.15); box-shadow: 0 0 15px rgba(234,179,8,0.3); }

/* COUNTRIES & CATEGORIES TABLE */
.countries-cell { padding: 6px 10px; border-radius: 6px; font-size: 0.78rem; text-align: left; }
.countries-cell.unique { background: rgba(34, 197, 94, 0.15); border: 1px solid #22c55e; color: #86efac; font-weight: 700; }
.countries-cell.dup { background: rgba(234, 179, 8, 0.15); border: 1px solid #eab308; color: #fde047; font-weight: 600; }
.countries-cell.empty { background: rgba(255, 255, 255, 0.03); border: 1px dashed rgba(255, 255, 255, 0.15); color: #64748b; font-style: italic; }

/* COUNTRIES CS:GO LETTER SPINNER */
.country-letter-tile {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  user-select: none;
  transition: all 0.25s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.country-letter-tile.winner {
  border-color: #facc15 !important;
  background: rgba(234, 179, 8, 0.25) !important;
  color: #facc15 !important;
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.65), inset 0 0 10px rgba(250, 204, 21, 0.4);
  transform: scale(1.08);
}

/* TROLL EFFECTS DLA DEX (ROOT) */
body.troll-flipped { transform: rotate(180deg); transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
body.troll-shaking { animation: trollShake 0.08s infinite; }
@keyframes trollShake {
  0% { transform: translate(4px, 3px) rotate(0deg); }
  20% { transform: translate(-4px, -3px) rotate(-1deg); }
  40% { transform: translate(4px, -2px) rotate(1deg); }
  60% { transform: translate(-3px, 4px) rotate(0deg); }
  80% { transform: translate(3px, -4px) rotate(-1deg); }
  100% { transform: translate(1px, 2px) rotate(0deg); }
}
body.troll-disco { animation: trollDisco 0.25s infinite alternate; }
@keyframes trollDisco {
  0% { filter: hue-rotate(0deg) contrast(1); }
  50% { filter: hue-rotate(180deg) invert(0.15) contrast(1.3); }
  100% { filter: hue-rotate(360deg) contrast(1.1); }
}
body.troll-spin {
  transform-origin: 50vw 50vh;
  animation: trollPageSpin 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  overflow: hidden !important;
}
@keyframes trollPageSpin {
  0% { transform: rotate(0deg) scale(0.92); }
  50% { transform: rotate(180deg) scale(0.78); }
  100% { transform: rotate(360deg) scale(0.92); }
}
body.troll-blur { filter: blur(6px) grayscale(0.5); transition: filter 0.4s ease; }
body.troll-matrix { filter: invert(0.9) sepia(1) hue-rotate(85deg) saturate(6); animation: matrixPulse 0.3s infinite alternate; }
@keyframes matrixPulse { 0% { opacity: 0.92; } 100% { opacity: 1; } }
body.troll-earthquake { animation: trollQuake 0.05s infinite; }
@keyframes trollQuake { 0% { transform: translate(-12px, 8px) scale(1.02); } 50% { transform: translate(12px, -8px) scale(0.98); } 100% { transform: translate(8px, 12px) scale(1.01); } }
body.troll-nightmare { filter: invert(1) contrast(3) saturate(0.2); transition: filter 0.3s ease; }
body.troll-drunk { animation: trollDrunk 2.5s ease-in-out infinite alternate; }
@keyframes trollDrunk { 0% { transform: skewX(-14deg) rotate(-4deg); } 50% { transform: skewY(10deg) scale(1.06); } 100% { transform: skewX(14deg) rotate(4deg); } }
body.troll-tiny { transform: scale(0.68); transform-origin: center center; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
body.troll-giant { transform: scale(1.38); transform-origin: center center; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
body.troll-blackout { filter: brightness(0.04) contrast(2); transition: filter 0.3s ease; }
body.troll-glitch { animation: trollGlitch 0.12s infinite; }
@keyframes trollGlitch { 0% { transform: translate(-5px, 2px); filter: hue-rotate(90deg); } 50% { transform: translate(5px, -3px); filter: hue-rotate(270deg) saturate(4); } 100% { transform: translate(0, 0); filter: hue-rotate(0deg); } }
.troll-fakeban-box {
  background: #090000; border: 3px solid #ef4444; border-radius: 14px;
  padding: 24px; max-width: 480px; width: 90%; color: #fff;
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.6);
  animation: pulseAlert 1s infinite alternate;
}
@keyframes pulseAlert { 0% { box-shadow: 0 0 20px rgba(239,68,68,0.4); } 100% { box-shadow: 0 0 60px rgba(239,68,68,0.8); } }
.game-card { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); border-radius: 10px; padding: 12px 8px; cursor: pointer; transition: all 0.15s ease; text-align: center; }
.game-card:hover { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.04); }
.game-card.active { border-color: #ffffff; background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 1px #ffffff; }
.game-card h3 { font-size: 0.92rem; margin-bottom: 4px; color: #f4f4f5; font-weight: 600; }
.game-card.active h3 { color: #ffffff; font-weight: 700; }
.game-card p { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; }

.config-panel { background: rgba(0, 0, 0, 0.15); border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 12px; text-align: left; }
.config-panel label { display: block; font-size: 0.68rem; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* MODERN HUB DASHBOARD */
.hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  width: 1220px;
  max-width: 96vw;
  min-height: 580px;
  height: auto;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
  position: relative;
  overflow: hidden;
}
.hub-topbar {
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  gap: 12px;
}
.hub-topbar button,
.hub-topbar .btn {
  white-space: nowrap !important;
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center !important;
}
.hub-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
.hub-brand-logo {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fafafa;
  white-space: nowrap;
}
.hub-version-chip {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.hub-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 4px 12px 4px 6px;
  border-radius: 24px;
  cursor: pointer;
  transition: 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.hub-user-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
}
.hub-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
  white-space: nowrap;
  flex-shrink: 0;
}
.hub-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border);
  padding: 0 8px;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-height: 44px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  -webkit-overflow-scrolling: touch;
}
.hub-nav::-webkit-scrollbar {
  height: 4px;
}
.hub-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.hub-nav-btn {
  padding: 11px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}
.hub-nav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}
.hub-nav-btn.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
}
.hub-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.hub-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.hub-tab-pane.hidden {
  display: none !important;
}
.room-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.room-action-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.stat-card-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 4px;
}
.stat-card-lbl {
  font-size: 0.73rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.xp-bar-wrap {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  height: 8px;
  overflow: hidden;
  width: 100%;
  margin: 6px 0;
}
.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #71717a, #a1a1aa);
  border-radius: 12px;
  width: 0%;
  transition: width 0.3s;
}
.empty-state-box {
  background: rgba(0, 0, 0, 0.15);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.hero-profile-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.hero-profile-box.has-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 16, 0.65);
  backdrop-filter: blur(2px);
  z-index: 1;
}
.hero-profile-box > * {
  position: relative;
  z-index: 2;
}
.inv-preview-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.inv-preview-box.has-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 16, 0.7);
  backdrop-filter: blur(2px);
  z-index: 1;
}
.inv-preview-box > * {
  position: relative;
  z-index: 2;
}

/* BANNERY PROFILU STYLES */
.banner-cyberpunk { background: linear-gradient(135deg, #050515 0%, #00f0ff 40%, #ff007f 80%, #1a0826 100%) !important; border-color: #00f0ff !important; }
.banner-synthwave { background: linear-gradient(180deg, #1e0038 0%, #7b1fa2 45%, #ff4081 75%, #ffeb3b 100%) !important; border-color: #ff4081 !important; }
.banner-galaxy { background: radial-gradient(circle at 70% 30%, #a855f7 0%, #3b82f6 40%, #030712 90%) !important; border-color: #a855f7 !important; }
.banner-gold { background: linear-gradient(135deg, #78350f 0%, #d97706 40%, #fef08a 60%, #b45309 85%) !important; border-color: #facc15 !important; }
.banner-matrix { background: linear-gradient(180deg, #022c22 0%, #052e16 40%, #15803d 85%, #22c55e 100%) !important; border-color: #22c55e !important; }
.banner-inferno { background: linear-gradient(135deg, #450a0a 0%, #dc2626 50%, #f97316 85%, #facc15 100%) !important; border-color: #ef4444 !important; }
.banner-sakura { background: linear-gradient(135deg, #500724 0%, #be185d 40%, #f472b6 75%, #fce7f3 100%) !important; border-color: #f472b6 !important; }
.banner-abyss { background: radial-gradient(circle at 30% 50%, #1e1b4b 0%, #311042 50%, #020617 100%) !important; border-color: #818cf8 !important; }

.shop-banner-card {
  height: 60px;
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.shop-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.shop-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* LAYOUT GRY */
#game-screen { display: flex; flex-direction: column; width: 100vw; height: 100vh; background: var(--bg); position: relative; }
.topbar { height: 60px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; z-index: 10; }
.top-meta { display: flex; align-items: center; gap: 10px; }
.badge { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); padding: 6px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.badge strong { color: var(--text); }

.timer-clean {
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 8px; font-weight: 700;
  font-size: 1.1rem; color: #e4e4e7; display: flex; align-items: center; gap: 6px;
}
.timer-clean.danger { border-color: var(--danger); color: var(--danger); }
#status-title { font-size: 1rem; font-weight: 700; letter-spacing: 0.5px; color: #a1a1aa; text-transform: uppercase; }

/* BANER VOTE KICK / VOTE BAN */
#vote-banner {
  position: absolute; top: 70px; left: 50%; transform: translateX(-50%);
  background: var(--surface-elevated); border: 1px solid var(--danger);
  padding: 10px 18px; border-radius: 10px; display: flex; align-items: center; gap: 14px;
  z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.vote-text { font-size: 0.85rem; font-weight: 600; color: #f8fafc; }

.main-grid { display: flex; flex: 1; height: calc(100vh - 60px); }

/* SIDEBAR LEFT */
.sidebar-left { width: 240px; background: var(--surface); border-right: 1px solid var(--border); padding: 14px; display: flex; flex-direction: column; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 0.68rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
#player-list { list-style: none; display: flex; flex-direction: column; gap: 6px; flex: 1; overflow-y: auto; }
.player-card { display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); padding: 8px 10px; border-radius: 6px; font-size: 0.82rem; }
.player-card.guessed { border-right: 3px solid var(--success); background: rgba(16, 185, 129, 0.08); }
.player-name-gold { color: var(--gold); font-weight: 600; }
.player-name-vip { color: var(--vip); font-weight: 700; }
.player-name-root { color: #c084fc; font-weight: 900; text-shadow: 0 0 10px rgba(168,85,247,0.7); }
.player-name-guessed { color: var(--success) !important; font-weight: 700; text-shadow: 0 0 8px rgba(16, 185, 129, 0.35); }

/* WORKSPACE */
.workspace { flex: 1; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; padding: 16px; overflow: hidden; }
#canvas-area { display: flex; flex-direction: column; align-items: center; justify-content: center; }
canvas { background: #ffffff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }

.toolbar-clean { margin-top: 10px; display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--border); padding: 6px 12px; border-radius: 10px; }
.color-swatch { width: 18px; height: 18px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: 0.1s; }
.color-swatch.active { border-color: #fff; transform: scale(1.15); }
.tool-btn { padding: 5px 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 6px; color: #fff; cursor: pointer; font-size: 0.75rem; font-weight: 600; }
.tool-btn.active { background: var(--accent); border-color: var(--accent); }
.tool-btn.danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); border-color: rgba(239, 68, 68, 0.2); }

/* GYAT TASKS */
.gyat-task-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; width: 440px; text-align: center; }
.gyat-ref-box img { max-width: 400px; max-height: 250px; width: auto; height: auto; border-radius: 8px; border: 1px solid var(--border); background: #fff; object-fit: contain; }
.gyat-ref-prompt { font-size: 1.1rem; font-weight: 700; color: #38bdf8; background: var(--surface); border: 1px solid var(--border); padding: 8px 18px; border-radius: 8px; margin-bottom: 10px; }
.timeline-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; width: 650px; text-align: center; max-height: 90vh; }
.timeline-step-box img { max-width: 100%; max-height: 340px; border-radius: 8px; border: 1px solid var(--border); background: #fff; object-fit: contain; }

/* SIDEBAR RIGHT (CHAT) */
.sidebar-right { width: 300px; background: var(--surface); border-left: 1px solid var(--border); display: flex; flex-direction: column; }
#chat-box { flex: 1; padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; line-height: 1.5; }
.msg { padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); word-break: break-word; display: flex; align-items: flex-start; gap: 8px; }
.msg.system { background: rgba(255, 255, 255, 0.04); color: #a1a1aa; border-color: rgba(255, 255, 255, 0.08); }
.msg.correct { background: rgba(34, 197, 94, 0.06); color: #4ade80; border-left: 3px solid var(--success); }
.msg.dead-chat { background: rgba(34, 197, 94, 0.05); border: 1px solid rgba(34, 197, 94, 0.15); border-left: 3px solid var(--success); color: #ecfdf5; }
.msg.root-msg { background: rgba(167, 139, 250, 0.1); color: #c4b5fd; border-left: 3px solid var(--root); font-weight: bold; white-space: pre-line; }
.msg.rainbow { color: var(--vip); font-weight: 700; }

.chat-status-indicator {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 8px;
  background: rgba(16, 185, 129, 0.12);
  border-top: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--success);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

#chat-form { display: flex; padding: 10px; border-top: 1px solid var(--border); flex-direction: column; gap: 4px; }
.chat-input-row { display: flex; gap: 6px; }
.word-counter { font-size: 0.68rem; color: var(--text-muted); text-align: right; }


/* CHAT PINGING */
.chat-mention-tag {
  background: rgba(234, 179, 8, 0.25);
  color: #fde047;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(234, 179, 8, 0.4);
  display: inline-block;
  margin: 0 1px;
}
.msg.msg-pinged {
  background: rgba(234, 179, 8, 0.15) !important;
  border-left: 3px solid #eab308 !important;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.25);
}


/* NOWE RAMKI AVATARÓW */
.avatar-wrap.frame-glitch, .avatar-sm.frame-glitch {
  border: 2px solid #ec4899;
  box-shadow: 0 0 12px #06b6d4, 0 0 20px #ec4899;
  animation: frameGlitchPulse 1.5s infinite alternate;
}
@keyframes frameGlitchPulse {
  0% { box-shadow: -2px 0 10px #06b6d4, 2px 0 12px #ec4899; }
  100% { box-shadow: 2px 0 14px #06b6d4, -2px 0 16px #ec4899; }
}
.avatar-wrap.frame-emerald, .avatar-sm.frame-emerald {
  border: 2px solid #10b981;
  box-shadow: 0 0 14px #10b981, 0 0 24px rgba(16,185,129,0.5);
  animation: emeraldPulse 2s infinite ease-in-out;
}
@keyframes emeraldPulse {
  0%, 100% { box-shadow: 0 0 8px #10b981; }
  50% { box-shadow: 0 0 20px #34d399; }
}
.avatar-wrap.frame-void, .avatar-sm.frame-void {
  border: 2px solid #8b5cf6;
  box-shadow: 0 0 15px #6366f1, 0 0 25px #a855f7;
}
.avatar-wrap.frame-dragon, .avatar-sm.frame-dragon {
  border: 2px solid #f59e0b;
  box-shadow: 0 0 15px #ef4444, 0 0 25px #f59e0b;
}
.avatar-wrap.frame-matrix, .avatar-sm.frame-matrix {
  border: 2px solid #22c55e;
  box-shadow: 0 0 12px #22c55e;
}

/* NOWE STYLE NICKÓW */
.nick-style-matrix {
  color: #22c55e !important;
  text-shadow: 0 0 8px #22c55e, 0 0 14px #15803d;
  font-family: monospace;
  font-weight: 800;
}
.nick-style-gold {
  background: linear-gradient(90deg, #facc15, #f59e0b, #eab308, #fef08a);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 3s linear infinite;
  font-weight: 900;
}
@keyframes goldShimmer { to { background-position: 200% center; } }
.nick-style-amethyst {
  color: #c084fc !important;
  text-shadow: 0 0 10px #a855f7, 0 0 20px #7c3aed;
  font-weight: 800;
}
.nick-style-ice {
  color: #7dd3fc !important;
  text-shadow: 0 0 8px #38bdf8, 0 0 16px #0284c7;
  font-weight: 800;
}


/* PETS COMPANIONS */
.pet-companion-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-left: 4px;
  animation: petIdle 2.5s ease-in-out infinite alternate;
  cursor: default;
  user-select: none;
  vertical-align: middle;
}
@keyframes petIdle {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(4deg); }
  100% { transform: translateY(0) rotate(-4deg); }
}
.pet-bounce {
  animation: petJump 0.5s ease 3 !important;
}
@keyframes petJump {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.2); }
}

/* THE FLOOR IS LAVA */
#lava-troll-curtain {
  position: fixed;
  inset: 0;
  z-index: 999998;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
  font-family: sans-serif;
}
.lava-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45vh;
  background: linear-gradient(0deg, #b91c1c, #ea580c, #f59e0b, transparent);
  animation: lavaBubble 1.5s infinite alternate ease-in-out;
  box-shadow: 0 -20px 50px rgba(234, 88, 12, 0.8);
}
@keyframes lavaBubble {
  0% { transform: translateY(10px) scaleY(0.95); }
  100% { transform: translateY(-5px) scaleY(1.05); }
}

/* BURNT SCREEN EFFECT */
body.troll-burnt {
  filter: sepia(0.8) hue-rotate(-30deg) saturate(2) contrast(1.2);
  transition: filter 0.5s ease;
}

/* ADMIN ABUSE - THANOS DUSTED */
.thanos-dusted {
  filter: grayscale(1) blur(3px) opacity(0.25) !important;
  transform: scale(0.92) skewX(10deg);
  transition: all 1.2s ease-in-out !important;
  pointer-events: none !important;
}

/* ADMIN ABUSE - APOCALYPSE BANNER PULSE */
@keyframes abuseBannerPulse {
  0% { transform: translate(-50%, 0) scale(1); box-shadow: 0 0 40px rgba(239, 68, 68, 0.85); }
  100% { transform: translate(-50%, 0) scale(1.03); box-shadow: 0 0 70px rgba(245, 158, 11, 0.95); }
}

/* MODAL PODSUMOWANIA */
.round-overlay { position: absolute; inset: 0; background: rgba(11, 12, 16, 0.9); backdrop-filter: blur(4px); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 150; }
.round-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; width: 400px; text-align: center; }
.round-title { font-size: 1.4rem; font-weight: 800; color: var(--gold); margin-bottom: 4px; }
.round-word-reveal { font-size: 0.95rem; color: #38bdf8; margin-bottom: 14px; font-weight: 600; }
.round-scores-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.round-score-row { display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.2); padding: 8px 10px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; }
.pos-tag { width: 22px; height: 22px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; }
.pos-1 { background: #fbbf24; color: #000; }
.pos-2 { background: #94a3b8; color: #000; }
.pos-3 { background: #b45309; color: #fff; }
.pos-other { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.next-round-timer { font-size: 0.85rem; font-weight: 700; color: var(--gold); }

/* MODAL KARNETU */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 200; }
.pass-card-clean { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; width: 680px; max-height: 85vh; overflow-y: auto; }
.pass-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.pass-col { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; }
.pass-col.vip-col { border-color: rgba(236, 72, 153, 0.35); background: rgba(236, 72, 153, 0.03); }
.tier-item { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; margin-bottom: 6px; font-size: 0.75rem; display: flex; justify-content: space-between; align-items: center; }
.tier-item.broken { border-left: 3px solid var(--vip); color: #f472b6; font-weight: 600; }

/* BANER PARTY HUB */
.party-banner {
  background: var(--surface-elevated); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 12px;
  display: flex; flex-direction: column; gap: 8px; text-align: left;
}
.party-banner-header { display: flex; justify-content: space-between; align-items: center; }

/* COSMETICS: FRAMES & TITLES */
.avatar-wrap.frame-gold, .avatar-sm.frame-gold {
  border: 2px solid #fbbf24 !important;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.7);
}
.avatar-wrap.frame-fire, .avatar-sm.frame-fire {
  border: 2px solid #f97316 !important;
  box-shadow: 0 0 12px #ef4444;
  animation: fireGlow 1.5s infinite alternate;
}
@keyframes fireGlow {
  0% { box-shadow: 0 0 6px #ea580c, inset 0 0 4px #ef4444; }
  100% { box-shadow: 0 0 16px #f97316, 0 0 24px #ef4444; }
}
.avatar-wrap.frame-rgb, .avatar-sm.frame-rgb {
  border: 2px solid #8b5cf6 !important;
  animation: rgbGlow 3s linear infinite;
}
@keyframes rgbGlow {
  0% { box-shadow: 0 0 10px #f43f5e; border-color: #f43f5e !important; }
  33% { box-shadow: 0 0 10px #10b981; border-color: #10b981 !important; }
  66% { box-shadow: 0 0 10px #06b6d4; border-color: #06b6d4 !important; }
  100% { box-shadow: 0 0 10px #f43f5e; border-color: #f43f5e !important; }
}
.avatar-wrap.frame-cyber, .avatar-sm.frame-cyber {
  border: 2px solid #06b6d4 !important;
  box-shadow: 0 0 10px #ec4899, inset 0 0 6px #06b6d4;
}
.avatar-wrap.frame-neon-cyan, .avatar-sm.frame-neon-cyan {
  border: 2px solid #06b6d4 !important;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.8), inset 0 0 4px #06b6d4;
}
.avatar-wrap.frame-purple-glow, .avatar-sm.frame-purple-glow {
  border: 2px solid #a855f7 !important;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.85), inset 0 0 5px #c084fc;
}
.avatar-wrap.frame-gold-bronze, .avatar-sm.frame-gold-bronze {
  border: 2px solid #d97706 !important;
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.7);
}
.avatar-wrap.frame-royal-ruby, .avatar-sm.frame-royal-ruby {
  border: 2px solid #e11d48 !important;
  box-shadow: 0 0 14px rgba(225, 29, 72, 0.9), inset 0 0 6px #f43f5e;
}

.player-title-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  margin-right: 4px;
  color: #e2e8f0;
  vertical-align: middle;
  display: inline-block;
}

.casino-exclusive-badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: #facc15;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.text-color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* BRUSH SIZES */
.brush-size-btn {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: 0.15s;
}
.brush-size-btn:hover { background: rgba(255, 255, 255, 0.1); }
.brush-size-btn.active { border-color: var(--accent); background: rgba(99, 102, 241, 0.25); }
.brush-dot { border-radius: 50%; background: #ffffff; }

/* FLOATING EMOJI REACTION */
.floating-emoji {
  position: absolute;
  pointer-events: none;
  font-size: 2.4rem;
  z-index: 1000;
  animation: floatUpFade 2.4s ease-out forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.7));
}
.floating-emoji-sender {
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.65);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 2px;
  border: 1px solid var(--border);
}
@keyframes floatUpFade {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { transform: translateY(-20px) scale(1.3); opacity: 1; }
  35% { transform: translateY(-60px) scale(1); opacity: 1; }
  100% { transform: translateY(-220px) scale(0.9); opacity: 0; }
}

.emoji-reaction-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.emoji-btn {
  font-size: 1.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.15s;
  user-select: none;
  line-height: 1;
}
.emoji-btn:hover { transform: scale(1.35); }

/* SHOP MODAL */
.shop-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px; width: 620px; max-height: 88vh;
  overflow-y: auto; text-align: left;
}
.shop-section-title {
  font-size: 0.8rem; font-weight: 700; color: #f4f4f5;
  text-transform: uppercase; margin: 16px 0 8px; letter-spacing: 0.5px;
}
.shop-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px;
}
.shop-item-box {
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px; display: flex; flex-direction: column;
  justify-content: space-between; align-items: center; text-align: center; gap: 8px;
  transition: all 0.15s ease;
}
.shop-item-box:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}
.shop-item-preview {
  display: flex; align-items: center; justify-content: center; height: 50px;
}

/* WORD CHOICE & NEAR GUESS */
.msg.near-guess {
  background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--gold); font-weight: 700;
}
.word-choice-btn {
  padding: 14px 20px; font-size: 1.05rem; font-weight: 800; letter-spacing: 1px;
  background: var(--surface-elevated); border: 1px solid var(--border);
  color: #e4e4e7; border-radius: 10px; cursor: pointer; transition: 0.15s;
  width: 100%; margin-bottom: 8px;
}
.word-choice-btn:hover {
  border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); transform: translateY(-2px);
}

/* FAKE ARTIST */
.fa-status-banner {
  background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 8px; padding: 8px 14px; margin-bottom: 8px; text-align: center; font-weight: 700;
}
.vote-candidate-btn {
  padding: 10px 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
  border-radius: 8px; color: #fff; cursor: pointer; display: flex; align-items: center;
  gap: 10px; width: 100%; margin-bottom: 6px; font-weight: 600; transition: 0.15s;
}
.vote-candidate-btn:hover {
  background: rgba(99, 102, 241, 0.15); border-color: var(--accent);
}
.vote-candidate-btn.voted {
  background: var(--accent); border-color: var(--accent-hover);
}

/* CURSOR TRAILS */
.cursor-particle {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  animation: particleFade 0.65s cubic-bezier(0, .8, .6, 1) forwards;
  user-select: none;
}
@keyframes particleFade {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) translateY(16px) scale(0.2); opacity: 0; }
}

/* ANIMATED NICK STYLES */
.nick-style-rainbow {
  background: linear-gradient(90deg, #f43f5e, #eab308, #10b981, #06b6d4, #8b5cf6, #ec4899);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowText 3s linear infinite;
  font-weight: 800;
}
@keyframes rainbowText {
  0% { background-position: 0% 50%; }
  100% { background-position: 250% 50%; }
}
.nick-style-fire {
  color: #ff5722 !important;
  text-shadow: 0 0 6px #ff5722, 0 0 12px #ff9800;
  font-weight: 800;
}
.nick-style-neon {
  color: #00f0ff !important;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.8), 0 0 14px rgba(0, 240, 255, 0.5);
  font-weight: 800;
}
.nick-style-lapeace {
  background: linear-gradient(90deg, #38bdf8, #818cf8, #fbbf24, #34d399, #38bdf8);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowText 4s linear infinite;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* SCREEN SHAKE EFFECT (ADMIN & CHAOS) */
@keyframes screenShake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}
.screen-shaking {
  animation: screenShake 0.08s infinite linear !important;
}

/* GLOBAL SLEEK SCROLLBARS */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* CHAOS MODE BANNER & BLIND CURTAIN */
.chaos-banner {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(168, 85, 247, 0.95));
  border: 2px solid #fff;
  border-radius: 12px;
  padding: 10px 22px;
  color: #fff;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.5);
  z-index: 100;
  animation: chaosPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes chaosPop {
  0% { transform: translateX(-50%) scale(0.7); opacity: 0; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}
.canvas-blind-curtain {
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 16, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #f8fafc;
  font-size: 1.2rem;
  font-weight: 800;
  z-index: 50;
  border-radius: 8px;
  border: 2px dashed rgba(239, 68, 68, 0.6);
  backdrop-filter: blur(4px);
}

/* CASINO SLOTS MODAL */
.slot-machine-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  width: 480px;
  max-width: 95vw;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  text-align: center;
}
.slot-reels-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 18px 0;
  background: rgba(0, 0, 0, 0.55);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.slot-reel {
  width: 94px;
  height: 94px;
  background: #020617;
  border: 2px solid #6366f1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: inset 0 0 14px rgba(0,0,0,0.9);
  user-select: none;
  transition: transform 0.08s;
}
.slot-reel.spinning {
  animation: reelShake 0.08s infinite linear;
}
@keyframes reelShake {
  0% { transform: translateY(-4px); }
  50% { transform: translateY(4px); }
  100% { transform: translateY(-4px); }
}
.slot-bet-btn {
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
}
.slot-bet-btn.active {
  background: var(--gold);
  border-color: #fbbf24;
  color: #000;
  font-weight: 800;
}

/* WHEEL OF FORTUNE MODAL */
.wheel-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  width: 440px;
  max-width: 95vw;
  text-align: center;
}
.wheel-pointer {
  width: 0; 
  height: 0; 
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid var(--gold);
  margin: 0 auto -12px;
  position: relative;
  z-index: 10;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.6));
}
.wheel-canvas {
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.35);
  transition: transform 3.5s cubic-bezier(0.15, 0.85, 0.25, 1);
}

/* ACHIEVEMENTS */
.ach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  margin-top: 8px;
}
.ach-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  opacity: 0.55;
  transition: 0.2s;
}
.ach-card.unlocked {
  opacity: 1;
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.08);
}
.ach-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.ach-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
}
.ach-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.25;
  margin-top: 2px;
}
.ach-reward {
  font-size: 0.68rem;
  color: var(--gold);
  font-weight: 700;
  margin-top: 2px;
}
.ach-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #181b26;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  z-index: 999999;
  animation: slideInToast 0.4s ease forwards, slideOutToast 0.4s ease 3.6s forwards;
}
@keyframes slideInToast {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes slideOutToast {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(60px); opacity: 0; }
}

/* UNIVERSAL LIVE EMOTE DOCK */
.live-emote-dock {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 20, 28, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 4px 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 900;
}

/* ADMIN PANEL ROOT */
.admin-panel-box {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  padding: 0;
  width: 740px;
  max-width: 96vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
  position: relative;
}
.admin-panel-header {
  padding: 16px 20px 10px 20px;
  background: var(--surface);
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  flex-shrink: 0;
  z-index: 25;
  position: sticky;
  top: 0;
}
.admin-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px 20px 20px;
  scrollbar-width: thin;
}
.admin-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}
.admin-tab-btn.active {
  background: rgba(168, 85, 247, 0.25);
  color: #c084fc;
  border-bottom: 2px solid var(--root);
}
.admin-subtab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.15s;
}
.admin-subtab-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent);
  color: #fff;
}
.admin-account-row {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  gap: 10px;
  transition: border-color 0.15s;
}
.admin-account-row:hover {
  border-color: rgba(168, 85, 247, 0.4);
}
.admin-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}
/* GYAT WAITING AREA */
.gyat-waiting-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  width: 100%;
  max-width: 440px;
  margin: auto;
  text-align: center;
}
.gyat-player-chip {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}
.gyat-player-chip.ready {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.gyat-player-chip.pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #f97316;
  font-weight: 800;
  font-size: 0.75rem;
  text-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
}

/* IMPOSTOR GAME AREA */
.impostor-game-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  width: 100%;
  max-width: 650px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}
.impostor-role-box {
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--border);
}
.impostor-role-box.crew {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 78, 59, 0.14) 100%);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08);
}
.impostor-role-box.impostor {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(127, 29, 29, 0.18) 100%);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.1);
}
.impostor-clues-table {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  font-size: 0.8rem;
}
.impostor-clue-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.impostor-clue-row:last-child {
  border-bottom: none;
}
.impostor-clue-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: #ffffff;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}
.impostor-decision-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  width: 480px;
  max-width: 95vw;
  text-align: center;
}
.impostor-choice-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  transition: all 0.15s ease;
  text-align: left;
}
.impostor-choice-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ═══════════════════════════════════════════════ */
/* CARDS AGAINST HUMANITY (LOŻA SZYDERCÓW)         */
/* ═══════════════════════════════════════════════ */
.cah-game-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  width: 100%;
  max-width: 820px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cah-black-card {
  background: #000000;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 18px 22px;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  text-align: left;
  position: relative;
}
.cah-black-card .cah-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: block;
}
.cah-hand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 600px) {
  .cah-hand-grid { grid-template-columns: 1fr 1fr; }
}
.cah-white-card {
  background: #ffffff;
  color: #09090b;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 85px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.cah-white-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}
.cah-white-card.selected {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px #3b82f6, 0 6px 16px rgba(59, 130, 246, 0.4);
}
.cah-white-card.winner-card {
  border-color: #eab308;
  box-shadow: 0 0 0 3px #eab308, 0 0 20px rgba(234, 179, 8, 0.6);
  animation: pulseGold 1.5s infinite;
}
.cah-white-card.judging-pick {
  color: #09090b;
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.08);
}
.cah-white-card.judging-pick:hover {
  border-color: #eab308;
  box-shadow: 0 0 0 2px #eab308, 0 8px 24px rgba(234, 179, 8, 0.35);
  transform: translateY(-3px) scale(1.02);
}
@keyframes pulseGold {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* COINFLIP 1V1 MODAL */
.coinflip-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  width: 440px;
  max-width: 95vw;
  text-align: center;
}
.coin-3d {
  width: 100px;
  height: 100px;
  margin: 16px auto;
  border-radius: 50%;
  background: radial-gradient(circle, #facc15 0%, #ca8a04 100%);
  border: 4px solid #fef08a;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 900;
  color: #000;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.coin-3d.flipping {
  animation: flipCoin 1.8s ease-out forwards;
}
@keyframes flipCoin {
  0% { transform: rotateY(0) scale(1); }
  50% { transform: rotateY(1080deg) scale(1.3); }
  100% { transform: rotateY(2160deg) scale(1); }
}

/* =========================================================
   AUTHENTIC EUROPEAN CASINO ROULETTE STYLES
   ========================================================= */
.roulette-box {
  background: #090d16;
  border: 2px solid rgba(234, 179, 8, 0.45);
  border-radius: 18px;
  padding: 16px 20px;
  width: 1060px;
  max-width: 98vw;
  max-height: 94vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(234, 179, 8, 0.2);
}

.roulette-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.roulette-main-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* WHEEL PANEL */
.roulette-wheel-panel {
  background: radial-gradient(circle, #1a2234 0%, #0d131f 100%);
  border: 2px solid #ca8a04;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8), 0 6px 16px rgba(0, 0, 0, 0.5);
  width: 310px;
  flex-shrink: 0;
}

#roulette-canvas {
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(202, 138, 4, 0.3);
  background: #111;
  display: block;
}

.roulette-result-display {
  margin-top: 10px;
  width: 100%;
  font-size: 1.05rem;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  color: #fff;
}

/* AUTHENTIC GREEN FELT BETTING TABLE */
.roulette-felt-table {
  background: radial-gradient(ellipse at center, #065f46 0%, #044e39 60%, #022c22 100%);
  border: 3px solid #b45309;
  border-radius: 14px;
  padding: 12px;
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.65), 0 6px 20px rgba(0, 0, 0, 0.6);
  flex: 1;
  min-width: 620px;
  max-width: 700px;
  user-select: none;
}

/* History Bar */
.roulette-history-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.r-history-list {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.r-history-item {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  animation: popChip 0.2s ease-out;
}

.r-history-item.red { background: #dc2626; }
.r-history-item.black { background: #18181b; }
.r-history-item.green { background: #16a34a; border-color: #facc15; }

/* TABLE GRID */
.roulette-grid-wrap {
  display: flex;
  border: 1.5px solid #facc15;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.r-zero-cell {
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #15803d;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  border-right: 1.5px solid #facc15;
  cursor: pointer;
  position: relative;
  transition: filter 0.15s;
}

.r-zero-cell:hover {
  filter: brightness(1.25);
}

.r-numbers-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.r-numbers-row {
  display: flex;
  height: 44px;
}

.r-cell {
  flex: 1;
  border-right: 1px solid rgba(250, 204, 21, 0.5);
  border-bottom: 1px solid rgba(250, 204, 21, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  position: relative;
  transition: filter 0.15s;
  user-select: none;
}

.r-cell:last-child {
  border-right: none;
}

.r-cell:hover {
  filter: brightness(1.25);
}

.r-cell.red {
  background: #b91c1c;
}

.r-cell.black {
  background: #18181b;
}

.r-cell.col-2to1 {
  background: rgba(6, 78, 59, 0.95);
  color: #fde047;
  font-size: 0.72rem;
  font-weight: 900;
  width: 52px;
  flex: none;
  border-right: none;
}

/* Outside bets rows */
.r-dozens-row, .r-outside-row {
  display: flex;
  height: 38px;
}

.r-outside-cell {
  flex: 1;
  border-right: 1px solid rgba(250, 204, 21, 0.5);
  border-bottom: 1px solid rgba(250, 204, 21, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: #fef08a;
  background: rgba(6, 78, 59, 0.95);
  cursor: pointer;
  position: relative;
  transition: filter 0.15s;
  user-select: none;
}

.r-outside-cell:last-child {
  border-right: none;
}

.r-outside-cell:hover {
  filter: brightness(1.25);
}

.r-outside-cell.red-box {
  background: #b91c1c;
  color: #fff;
}

.r-outside-cell.black-box {
  background: #18181b;
  color: #fff;
}

/* PLACED CHIPS ON CELLS */
.r-placed-chip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 11px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1.5px solid #fff;
  color: #000;
  font-size: 0.65rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 10;
  animation: popChip 0.15s ease-out;
}

@keyframes popChip {
  0% { transform: translate(-50%, -50%) scale(0.5); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* CHIP SELECTOR */
.roulette-chip-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 12px 0 8px 0;
  flex-wrap: wrap;
}

.r-chip-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  position: relative;
  user-select: none;
}

.r-chip-btn:hover {
  transform: translateY(-3px) scale(1.08);
}

.r-chip-btn.active {
  transform: translateY(-5px) scale(1.15);
  box-shadow: 0 0 15px #facc15, 0 4px 12px rgba(0, 0, 0, 0.7);
  border-color: #facc15;
  border-style: solid;
}

.chip-1 { background: linear-gradient(135deg, #f8fafc, #cbd5e1); color: #0f172a; border-color: #64748b; }
.chip-5 { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }
.chip-25 { background: linear-gradient(135deg, #10b981, #047857); color: #fff; }
.chip-100 { background: linear-gradient(135deg, #27272a, #09090b); color: #facc15; border-color: #facc15; }
.chip-500 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; }
.chip-1000 { background: linear-gradient(135deg, #f59e0b, #b45309); color: #fff; border-color: #fff; }

/* ACTION BUTTONS */
.roulette-bottom-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.r-spin-btn {
  background: linear-gradient(90deg, #16a34a, #15803d);
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 10px 24px;
  border-radius: 10px;
  border: 2px solid #4ade80;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.r-spin-btn:hover:not(:disabled) {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.6);
}

.r-spin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.6);
}

/* ─── MINIMAL DARK MODE ─── */

/* Subtle entrance */
#auth-screen {
  animation: fadeUp 0.35s ease both;
}
.hub-card {
  animation: fadeUp 0.3s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Clean input focus */
input[type="text"]:focus, input[type="password"]:focus, select:focus, textarea:focus {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Buttons — flat, clean */
.btn {
  transition: opacity 0.15s, transform 0.1s;
}
.btn:hover {
  opacity: 0.85;
}
.btn:active {
  transform: scale(0.97);
  transition-duration: 0.05s;
}

/* Tab pane fade */
.hub-tab-pane {
  animation: fadeIn 0.2s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Cards — subtle hover only */
.game-card {
  transition: border-color 0.15s;
}
.game-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}
.room-action-card {
  transition: border-color 0.15s;
}
.room-action-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}
.stat-card {
  transition: border-color 0.15s;
}
.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}
.shop-item-box {
  transition: border-color 0.15s;
}
.shop-item-box:hover {
  border-color: rgba(255, 255, 255, 0.1);
}
.player-card {
  transition: background 0.1s;
}
.player-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Modal — simple fade */
.modal-overlay {
  animation: fadeIn 0.15s ease both;
}

/* Chat message — subtle slide */
.msg {
  animation: msgIn 0.15s ease both;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Smooth focus for all interactive */
button, input, select, textarea {
  transition: border-color 0.15s, background 0.1s;
}

/* TYPERACER STYLES */
.typeracer-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; width: 100%; max-width: 820px; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.typeracer-text-display { font-family: 'Consolas', 'Courier New', monospace; font-size: 1.25rem; line-height: 1.8; letter-spacing: 0.5px; background: rgba(0,0,0,0.35); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; user-select: none; text-align: left; word-break: break-word; }
.type-char-correct { color: #22c55e; font-weight: 700; }
.type-char-wrong { background: rgba(239, 68, 68, 0.4); color: #f87171; text-decoration: underline; }
.type-char-current { background: rgba(255, 255, 255, 0.25); border-left: 2px solid #38bdf8; animation: blinkCursor 0.8s infinite; color: #fff; }
.type-char-remaining { color: #64748b; }
@keyframes blinkCursor { 0%, 100% { border-color: #38bdf8; } 50% { border-color: transparent; } }
.typeracer-track { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; }
.typeracer-bar-wrap { flex: 1; height: 16px; background: rgba(0,0,0,0.4); border-radius: 8px; overflow: hidden; position: relative; }
.typeracer-bar-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #06b6d4); border-radius: 8px; transition: width 0.15s ease-out; }

/* GEOGUESSER STYLES */
.geoguess-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; width: 100%; max-width: 720px; text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.geoguess-flag-display { font-size: 6.5rem; line-height: 1.1; margin: 14px 0; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.6)); transition: transform 0.2s; }
.geoguess-flag-display:hover { transform: scale(1.05); }
.geoguess-clue-chip { background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 8px; margin: 4px; }

/* TURTLE RACE & DICE DUEL */
.turtle-lane { height: 48px; background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 8px; position: relative; margin-bottom: 8px; display: flex; align-items: center; padding: 0 10px; overflow: hidden; }
.turtle-racer { position: absolute; left: 10px; font-size: 1.8rem; transition: left 0.25s linear; display: flex; align-items: center; gap: 4px; }
.dice-cube { width: 56px; height: 56px; background: #fff; color: #000; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 900; box-shadow: 0 6px 14px rgba(0,0,0,0.4); }

/* OPENGUESSR STYLES */
.openguessr-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 900px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  text-align: center;
}
.openguessr-hero-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.openguessr-open-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.openguessr-open-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

/* LOBBY MINIGAMES */
.lobby-minigames-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
}
.lobby-minigame-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.lobby-minigame-tab {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.lobby-minigame-tab.active {
  background: var(--surface-light);
  border-color: var(--accent);
  color: #fff;
}
.ttt-grid {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  gap: 6px;
  justify-content: center;
  margin: 10px auto;
}
.ttt-cell {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}
.ttt-cell:hover {
  background: rgba(255, 255, 255, 0.1);
}
.clicker-coin-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #f59e0b;
  background: radial-gradient(circle, #fbbf24, #d97706);
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
  transition: transform 0.05s ease;
  user-select: none;
}
.clicker-coin-btn:active {
  transform: scale(0.92);
}
.reaction-box {
  width: 100%;
  max-width: 280px;
  height: 90px;
  margin: 8px auto;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  user-select: none;
  transition: background 0.15s;
}
.reaction-waiting { background: #dc2626; color: #fff; }
.reaction-ready { background: #22c55e; color: #000; }
.reaction-idle { background: #3b82f6; color: #fff; }

/* TROLL STYLES ROOT DEX */
body.troll-upsidedown {
  transform: rotate(180deg) scaleX(-1);
  filter: hue-rotate(120deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.librus-modal-card {
  background: #ffffff;
  color: #1e293b;
  border-radius: 12px;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  animation: pulseAlert 0.4s infinite alternate;
}
.librus-topbar {
  background: #1e3a8a;
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
}
.librus-body {
  padding: 20px 24px;
}
.librus-grade-badge {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 900;
  padding: 6px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* ========================================================= */
/* G-CHEF: KUCHENNA BITWA STYLES */
/* ========================================================= */
.chef-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.chef-ticket {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2);
  position: relative;
  overflow: hidden;
}

.chef-ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.chef-recipe-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.chef-step-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.chef-step-badge.done {
  background: rgba(34, 197, 94, 0.25);
  border-color: #22c55e;
  color: #4ade80;
}

.chef-step-badge.current {
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
  animation: pulseAlert 0.5s infinite alternate;
}

.chef-kitchen-board {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

@media (max-width: 768px) {
  .chef-kitchen-board {
    grid-template-columns: 1fr;
  }
}

.chef-plate-area {
  background: rgba(0, 0, 0, 0.4);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  position: relative;
}

.chef-plate {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, #f8fafc 40%, #cbd5e1 90%, #94a3b8 100%);
  border: 4px solid #64748b;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease;
}

.chef-plate.serve-ready {
  border-color: #22c55e;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.6);
  animation: pulseAlert 0.4s infinite alternate;
}

.chef-pantry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
  padding: 8px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chef-ing-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.chef-ing-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  transform: translateY(-2px);
}

.chef-ing-btn:active {
  transform: scale(0.92);
}

.chef-sabotage-panel {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chef-fire-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.4) 10%, rgba(220, 38, 38, 0.8) 90%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  animation: pulseAlert 0.2s infinite alternate;
}

/* TROLL KUCHENNY: MAGDA GESSLER RZUT TALERZEM */
.chef-plate-smash-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chef-plate-smash-card {
  max-width: 480px;
  width: 90%;
  background: #1e1e24;
  border: 3px solid #ef4444;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 0 50px rgba(239, 68, 68, 0.6);
  animation: trollShake 0.1s infinite;
}

/* TROLL KUCHENNY: CEBULA W OCZACH */
body.troll-onion {
  filter: blur(4px) saturate(2) hue-rotate(60deg);
  transition: filter 0.4s ease;
}

/* =========================================================
   SYSTEM ZNAJOMYCH & AUTODOŁĄCZANIE DO POKOJÓW & TOASTY
   ========================================================= */

/* Badge powiadomień w nawigacji Huba */
.friends-unread-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 4px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
  animation: pulseAlert 1.2s infinite;
}

/* Baner aktywnych pokojów znajomych na ekranie Gry & Pokoje */
.friend-rooms-banner {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(56, 189, 248, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.friend-rooms-banner-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 800;
  color: #c084fc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.friend-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

/* Pojedyncza karta pokoju znajomego */
.friend-room-card {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.friend-room-card:hover {
  transform: translateY(-2px);
  border-color: #c084fc;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.friend-room-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.friend-room-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #a855f7;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #334155;
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.friend-room-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friend-room-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.friend-room-host-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-room-game-badge {
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.friend-room-join-btn {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.friend-room-join-btn:hover {
  filter: brightness(1.15);
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.6);
}

/* Zakładka Znajomi w Hubie */
.friends-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0;
}

.friends-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(30, 41, 59, 0.5);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.friends-my-id-card {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.friends-my-id-tag {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
}

.friends-my-id-tag:hover {
  background: rgba(56, 189, 248, 0.25);
}

.friends-add-form {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 400px;
}

.friends-add-input {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #f8fafc;
  outline: none;
  transition: border-color 0.2s;
}

.friends-add-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.friends-section {
  background: rgba(30, 41, 59, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.friends-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

.friends-filter-group {
  display: flex;
  gap: 6px;
}

.friends-filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.friends-filter-btn.active, .friends-filter-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Karty na liście znajomych */
.friends-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.friend-item-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s;
}

.friend-item-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.85);
}

.friend-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.friend-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  overflow: visible;
}

.friend-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Kropki statusu */
.friend-status-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #0f172a;
}

.friend-status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.friend-status-dot.lobby {
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
  animation: pulseDot 1.2s infinite;
}

.friend-status-dot.playing {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseDot 1.2s infinite;
}

.friend-status-dot.offline {
  background: #64748b;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.8; }
}

.friend-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.friend-item-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.friend-item-nick {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-item-status-text {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.friend-item-status-text.status-lobby {
  color: #c084fc;
  font-weight: 700;
}

.friend-item-status-text.status-playing {
  color: #38bdf8;
  font-weight: 700;
}

.friend-item-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.friend-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.friend-action-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.friend-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

.friend-action-btn.primary {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  border: none;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.35);
}

.friend-action-btn.primary:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
}

/* Oczekujące zaproszenia */
.friend-requests-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.friend-req-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.friend-req-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.friend-req-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* PŁYWAJĄCY PRZYCISK QUICK DRAWER (FAB) */
.friends-quick-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99990;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.friends-quick-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6);
}

/* WYSUNIĘTY PANEL BOCZNY (DRAWER) */
.friends-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99995;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.friends-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.friends-drawer-content {
  width: 380px;
  max-width: 90vw;
  height: 100%;
  background: #0f172a;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.friends-drawer-overlay.active .friends-drawer-content {
  transform: translateX(0);
}

.friends-drawer-header {
  padding: 14px 16px;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.friends-drawer-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.friends-drawer-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.friends-drawer-close:hover {
  color: #fff;
}

.friends-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* GAMINGOWY SYSTEM POWIADOMIEŃ TOAST */
#gword-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  width: calc(100% - 40px);
  pointer-events: none;
}

.gword-toast {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 4px solid #38bdf8;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.gword-toast.toast-room {
  border-left-color: #a855f7;
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.25);
}

.gword-toast.toast-friend {
  border-left-color: #22c55e;
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.25);
}

.gword-toast.toast-invite {
  border-left-color: #f59e0b;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.25);
}

.gword-toast-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
}

.gword-toast-body {
  flex: 1;
  min-width: 0;
}

.gword-toast-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 2px;
}

.gword-toast-msg {
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.gword-toast-action-btn {
  margin-top: 8px;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
  transition: all 0.2s;
}

.gword-toast-action-btn:hover {
  filter: brightness(1.2);
  transform: scale(1.03);
}

.gword-toast-close {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 1rem;
  padding: 0 2px;
  line-height: 1;
}

.gword-toast-close:hover {
  color: #fff;
}

/* ---- Powiadomienie o nagrodzie za grę (monety + XP), prawy górny róg ---- */
.reward-toast {
  min-width: 220px;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(32, 28, 16, 0.97), rgba(18, 18, 28, 0.97));
  border: 1px solid rgba(251, 191, 36, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  color: #f8fafc;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.reward-toast .reward-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 6px;
}

.reward-toast .reward-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 900;
}

.reward-toast .reward-sub {
  font-size: 0.72rem;
  color: #9aa4b2;
  margin-top: 6px;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* =========================================================
   WBUDOWANY OPENGUESSR & ANTI-CHEAT SHAKE ANIMATIONS
   ========================================================= */
.openguessr-main-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  text-align: left;
}
@media (max-width: 860px) {
  .openguessr-main-grid {
    grid-template-columns: 1fr;
  }
}
.openguessr-viewport {
  position: relative;
  background: #000;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.openguessr-sv-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #0b0f19;
}
.openguessr-sv-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.openguessr-img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.openguessr-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.openguessr-img-wrapper img:hover {
  transform: scale(1.03);
}
.lobby-host-badge {
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}
.lobby-guest-badge {
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}
.openguessr-view-overlay {
  position: relative;
  z-index: 2;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 60%);
}
.openguessr-view-overlay > * {
  pointer-events: auto;
}
.openguessr-clues-box {
  position: relative;
  z-index: 2;
  padding: 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.openguessr-clue-badge {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.78rem;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.openguessr-map-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#openguessr-leaflet-map {
  width: 100%;
  height: 380px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  z-index: 10;
  background: #1e293b;
}
.openguessr-guess-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.openguessr-guess-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.8);
  box-shadow: none;
}
.openguessr-guess-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.6);
}
.openguessr-result-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #10b981;
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
  animation: resultSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes resultSlideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   REAL OPENGUESSR STREET VIEW & FLOATING GUESS MAP
   ========================================================= */
.openguessr-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}
#openguessr-streetview {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 1;
}
#openguessr-streetview .pnlm-container {
  width: 100% !important;
  height: 100% !important;
  background: #000 !important;
}
#openguessr-streetview .pnlm-compass {
  right: 18px !important;
  top: 70px !important;
}
.openguessr-hud-top {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 25;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  gap: 10px;
}
.openguessr-hud-top > * {
  pointer-events: auto;
}
.openguessr-hud-badge {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}
.openguessr-map-floating {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 320px;
  height: 230px;
  z-index: 30;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.22s ease, height 0.22s ease;
}
.openguessr-map-floating:hover {
  border-color: rgba(16, 185, 129, 0.6);
}
.openguessr-map-floating.expanded {
  width: 580px;
  height: 420px;
  max-width: 90vw;
  max-height: 75vh;
}
.openguessr-map-floating.results-view {
  width: 650px;
  height: 460px;
  max-width: 94vw;
  max-height: 80vh;
}
.openguessr-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(10, 15, 29, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  font-weight: 700;
}
.openguessr-map-canvas {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #111;
}
.openguessr-map-footer {
  padding: 8px 10px;
  background: rgba(10, 15, 29, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 8px;
}
.openguessr-btn-submit {
  flex: 1;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.openguessr-btn-submit:disabled {
  background: #334155;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.85;
}
.openguessr-btn-submit:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.6);
}

/* =========================================================
   GEOGUESSR WORKSPACE (5 MODES + CONFIGURABLE HINTS)
   ========================================================= */
.geo-workspace {
  width: 100%;
  max-width: 820px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.geo-flag-display {
  font-size: 5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
.geo-photo-container {
  width: 100%;
  max-width: 580px;
  height: 320px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  background: #000;
  position: relative;
}
.geo-photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.geo-photo-container img:hover {
  transform: scale(1.03);
}
.geo-masked-name {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 7px;
  color: #facc15;
  font-family: monospace;
  background: rgba(250, 204, 21, 0.08);
  padding: 6px 18px;
  border-radius: 10px;
  border: 1px dashed rgba(250, 204, 21, 0.35);
  margin: 4px 0;
}
.geo-input-row {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 440px;
  margin-top: 4px;
}
.geo-input-row input {
  flex: 1;
  padding: 10px 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #fff;
  outline: none;
}
.geo-input-row input:focus {
  border-color: #facc15;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.3);
}
.geo-extra-hint-box {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 10px;
  padding: 8px 16px;
  color: #93c5fd;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: resultSlideUp 0.3s ease;
}
.tamper-screen-shake {
  animation: tamperShake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes tamperShake {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(5px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* =========================================================
   G-GUARD (MILITARY GRADE INTEGRITY & ANTI-CHEAT SYSTEM)
   ========================================================= */
.gguard-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  color: #10b981;
  letter-spacing: 0.5px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
  user-select: none;
  white-space: nowrap !important;
  flex-shrink: 0;
}
.gguard-pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: gguardPulse 1.2s infinite alternate;
}
@keyframes gguardPulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #10b981; }
}

.gguard-alert-container {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999999;
  max-width: 580px;
  width: calc(100% - 32px);
  pointer-events: auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  animation: gguardSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes gguardSlideDown {
  from { opacity: 0; transform: translate(-50%, -30px) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.gguard-box {
  background: linear-gradient(135deg, #09090b 0%, #1c0a0a 100%);
  border: 2px solid #ef4444;
  border-radius: 14px;
  box-shadow: 0 0 50px rgba(239, 68, 68, 0.8), 0 20px 40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  position: relative;
}
.gguard-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #ef4444, #dc2626, #f87171, #ef4444);
  background-size: 200% 100%;
  animation: gguardBar 1.5s linear infinite;
}
@keyframes gguardBar {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
.gguard-header-bar {
  background: rgba(239, 68, 68, 0.15);
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gguard-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gguard-title-text {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
}
.gguard-code-tag {
  font-size: 0.68rem;
  font-weight: 800;
  font-family: monospace;
  background: #ef4444;
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.gguard-content-body {
  padding: 14px 18px;
  color: #f8fafc;
  text-align: left;
}
.gguard-main-reason {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fca5a5;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gguard-target-badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.76rem;
  color: #fecaca;
  font-family: monospace;
  margin-bottom: 8px;
}
.gguard-footer-note {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.4;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  margin-top: 6px;
}

/* =========================================================
   ROZSZERZONE LOBBY GRY (NOWOCZESNY UKŁAD 780PX & 2-KOLUMNY)
   ========================================================= */
.lobby-wide-wrap {
  max-width: 780px !important;
  width: 100% !important;
  margin: auto !important;
}

.lobby-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  margin-bottom: 12px;
  text-align: left;
}

@media (max-width: 760px) {
  .lobby-main-grid {
    grid-template-columns: 1fr;
  }
}

.lobby-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lobby-section-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.lobby-section-header {
  font-size: 0.78rem;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* KAFELKI MODYFIKATORÓW CHAOSU */
.lobby-chaos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.chaos-toggle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.75rem;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.chaos-toggle-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #a855f7;
  color: #fff;
}

.chaos-toggle-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
  accent-color: #a855f7;
}

.chaos-active-badge {
  background: linear-gradient(90deg, #a855f7, #ec4899);
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* =========================================================
   G-TRIVIA (MILIONERZY / QUIZ TELE-TURNIEJOWY)
   ========================================================= */
.trivia-game-box {
  max-width: 820px;
  width: 100%;
  margin: auto;
  padding: 18px;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid #eab308;
  border-radius: 16px;
  box-shadow: 0 0 35px rgba(234, 179, 8, 0.25);
  position: relative;
}

.trivia-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(234, 179, 8, 0.3);
  padding-bottom: 8px;
}

.trivia-question-box {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #eab308;
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  line-height: 1.4;
}

.trivia-answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .trivia-answers-grid {
    grid-template-columns: 1fr;
  }
}

.trivia-btn {
  background: rgba(30, 41, 59, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 14px;
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.trivia-btn:hover:not(:disabled) {
  border-color: #facc15;
  background: rgba(234, 179, 8, 0.18);
  transform: translateY(-2px);
}

.trivia-btn.selected {
  border-color: #facc15;
  background: #eab308;
  color: #000;
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.6);
}

.trivia-btn.correct {
  border-color: #22c55e !important;
  background: #16a34a !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.8) !important;
}

.trivia-btn.wrong {
  border-color: #ef4444 !important;
  background: #dc2626 !important;
  color: #fff !important;
  opacity: 0.65;
}

.trivia-btn.eliminated {
  opacity: 0.18;
  pointer-events: none;
  text-decoration: line-through;
}

.trivia-btn-tag {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  padding: 2px 8px;
  font-weight: 900;
  color: #facc15;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.trivia-lifelines-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}

.trivia-lifeline-btn {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #eab308;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #facc15;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.trivia-lifeline-btn:hover:not(:disabled) {
  background: rgba(234, 179, 8, 0.2);
  transform: scale(1.05);
}

.trivia-lifeline-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: #64748b;
  color: #94a3b8;
}

.trivia-dex-hint-bubble {
  background: rgba(147, 51, 234, 0.2);
  border: 1px solid #a855f7;
  border-radius: 10px;
  padding: 8px 12px;
  color: #f3e8ff;
  font-size: 0.82rem;
  margin-bottom: 12px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trivia-audience-poll {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  justify-content: space-around;
}

.trivia-poll-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #facc15;
}

/* =========================================================
   ŚLEPY RYSOWNIK (BLIND DRAWING) & CHAOS MODIFIERS
   ========================================================= */

.canvas-blind-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 12px;
  pointer-events: none;
}

.chaos-inverted-canvas {
  transform: rotate(180deg);
  transition: transform 0.4s ease;
}

.chaos-disco-glow {
  animation: chaosDiscoAnim 3s linear infinite;
}

@keyframes chaosDiscoAnim {
  0% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(180deg); }
  100% { filter: hue-rotate(360deg); }
}



/* GWORD 2.0 ADMIN PANEL (xenochrist) — users list + confetti */
.admin-user-row {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.admin-user-row:hover {
  border-color: rgba(168, 85, 247, 0.45);
}
.admin-user-row.selected {
  border-color: #a78bfa;
  background: rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.25);
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0.7; }
}

/* =========================================================
   G-WORD 2.0 — SKLEP, EKWIPUNEK, KOSMETYKA, RULETKA LITER
   ========================================================= */

/* --- Ruletka liter (Państwa-Miasta) --- */
.lootbox-viewport { overflow: hidden; }
.lootbox-strip.spinning { transition: transform 2.6s cubic-bezier(0.17, 0.85, 0.12, 1.06); }
.letter-reel-item {
  width: 64px; height: 64px; flex: 0 0 64px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 900; color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border);
  border-radius: 10px;
}

/* --- Karty trybów w menu głównym (tylko informacja) --- */
.game-card.info-only { cursor: default; }
.game-card.info-only:hover { border-color: var(--border); background: rgba(255, 255, 255, 0.02); }

/* --- Sklep i ekwipunek --- */
.shop-cat-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.shop-cat-btn {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
  color: #e4e4e7; border-radius: 999px; padding: 5px 12px;
  font-size: 0.75rem; font-weight: 700; cursor: pointer; transition: 0.15s;
}
.shop-cat-btn:hover { background: rgba(255, 255, 255, 0.08); }
.shop-cat-btn.active { border-color: #a855f7; background: rgba(168, 85, 247, 0.18); color: #fff; }
.inv-equipped-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.inv-slot {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px; text-align: center;
}

/* --- Nick i tytuł gracza --- */
.player-nick { display: inline-block; }
.player-nick.nick-style-default { color: inherit; }

/* --- Kolory tekstu na czacie --- */
.chat-color-default { color: inherit; }
.chat-color-mint { color: #6ee7b7; }
.chat-color-sky { color: #7dd3fc; }
.chat-color-pink { color: #f9a8d4; }
.chat-color-lime { color: #bef264; }
.chat-color-violet { color: #c4b5fd; }
.chat-color-gold { color: #facc15; text-shadow: 0 0 6px rgba(250, 204, 21, 0.5); }
.chat-color-rainbow {
  background: linear-gradient(90deg, #f87171, #facc15, #4ade80, #60a5fa, #c084fc, #f87171);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: chatRainbow 4s linear infinite;
}
@keyframes chatRainbow { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

/* --- Efekty wokół awatara --- */
.avatar-wrap { position: relative; }
.avatar-wrap.effect-pulse { animation: effectPulse 1.6s ease-in-out infinite; }
@keyframes effectPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.7); }
  50% { box-shadow: 0 0 0 6px rgba(129, 140, 248, 0); }
}
.avatar-wrap.effect-sparkle::after {
  content: '\2728'; position: absolute; top: -8px; right: -8px; font-size: 0.7rem;
  animation: effectSparkle 1.4s ease-in-out infinite alternate;
}
@keyframes effectSparkle {
  from { transform: scale(0.7) rotate(-15deg); opacity: 0.5; }
  to { transform: scale(1.15) rotate(15deg); opacity: 1; }
}
.avatar-wrap.effect-hearts::after {
  content: '\1F496'; position: absolute; top: -9px; left: -7px; font-size: 0.7rem;
  animation: effectFloat 1.8s ease-in-out infinite;
}
@keyframes effectFloat {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(-14px) scale(1.1); opacity: 0; }
}
.avatar-wrap.effect-snow::after {
  content: '\2744'; position: absolute; top: -6px; left: 50%; font-size: 0.7rem;
  animation: effectSparkle 2.2s ease-in-out infinite alternate;
}
.avatar-wrap.effect-fire {
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.85);
  animation: effectFire 1.2s ease-in-out infinite alternate;
}
@keyframes effectFire {
  from { box-shadow: 0 0 8px rgba(249, 115, 22, 0.6); }
  to { box-shadow: 0 0 18px rgba(239, 68, 68, 0.95); }
}
.avatar-wrap.effect-void {
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.9);
  animation: effectVoid 2.4s ease-in-out infinite alternate;
}
@keyframes effectVoid { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(120deg); } }

/* --- Głosowanie nad wynikami rundy (Państwa-Miasta) --- */
.vote-btn {
  width: 28px; height: 24px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  color: #fff; font-size: 0.75rem; cursor: pointer; transition: 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.vote-btn:hover { background: rgba(255, 255, 255, 0.12); }
.vote-btn.vote-yes { border-color: #22c55e; background: rgba(34, 197, 94, 0.25); }
.vote-btn.vote-no { border-color: #ef4444; background: rgba(239, 68, 68, 0.25); }

/* =========================================================
   PANEL ADMINA 2.0 — lista kont, tagi statusu, moderacja, toast
   ========================================================= */
.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(340px, 1.25fr);
  gap: 14px;
  align-items: start;
}
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
}
.admin-col-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 2px;
}
.admin-list-row {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.admin-user-main,
.admin-list-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.admin-user-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}
.admin-user-nick {
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-user-login {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
}
.admin-user-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-user-coins { color: var(--gold); font-size: 0.78rem; font-weight: 700; }
.admin-user-lvl { color: #c084fc; font-size: 0.72rem; font-weight: 700; }
.admin-list-sub { font-size: 0.7rem; color: var(--text-muted); line-height: 1.45; }
.admin-user-row.banned { border-color: rgba(239, 68, 68, 0.42); }
.admin-empty {
  font-size: 0.76rem;
  color: var(--text-muted);
  padding: 10px 4px;
  text-align: center;
}
.admin-tag {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  white-space: nowrap;
}
.admin-tag.online { color: #86efac; border-color: rgba(34, 197, 94, 0.45); background: rgba(34, 197, 94, 0.12); }
.admin-tag.room { color: #93c5fd; border-color: rgba(59, 130, 246, 0.45); background: rgba(59, 130, 246, 0.12); }
.admin-tag.idle { color: #fcd34d; border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.1); }
.admin-tag.ban { color: #fca5a5; border-color: rgba(239, 68, 68, 0.5); background: rgba(239, 68, 68, 0.14); }
.admin-tag.admin { color: #ddd6fe; border-color: rgba(167, 139, 250, 0.5); background: rgba(167, 139, 250, 0.16); }
.admin-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-chip {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}
.admin-chip b { color: var(--text); }
.admin-chip.online { border-color: rgba(34, 197, 94, 0.35); }
.admin-chip.online b { color: #86efac; }
.admin-chip.danger { border-color: rgba(239, 68, 68, 0.35); }
.admin-chip.danger b { color: #fca5a5; }
.admin-chip.warn { border-color: rgba(245, 158, 11, 0.35); }
.admin-chip.warn b { color: #fcd34d; }
.admin-filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.15s;
}
.admin-filter-chip:hover { border-color: rgba(168, 85, 247, 0.45); color: var(--text); }
.admin-filter-chip.active {
  background: rgba(168, 85, 247, 0.22);
  border-color: var(--root);
  color: #e9d5ff;
}
.admin-hint { font-size: 0.68rem; color: var(--text-muted); line-height: 1.45; margin-top: 6px; }
.admin-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.admin-detail-name { font-weight: 800; font-size: 0.95rem; }
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 6px;
  font-size: 0.74rem;
  margin-bottom: 4px;
}
.admin-stat-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 6px;
  margin: 8px 0;
}
.admin-mini {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
  margin: 0;
}
.admin-mini input { width: 100%; padding: 5px 8px; font-size: 0.76rem; }
.admin-ban-box {
  border: 1px solid rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.76rem;
  line-height: 1.5;
  margin-bottom: 8px;
}
.admin-inv-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 8px;
  scrollbar-width: thin;
}
.admin-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 500;
  max-width: min(560px, 92vw);
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f8fafc;
  background: rgba(24, 24, 37, 0.96);
  border: 1px solid rgba(34, 197, 94, 0.5);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}
.admin-toast.error { border-color: rgba(239, 68, 68, 0.6); background: rgba(60, 12, 12, 0.96); }

