:root {
  color-scheme: dark;
  --hq-bg: #07080D;
  --hq-surface: #0F111A;
  --hq-surface-elevated: rgba(18, 21, 33, 0.94);
  --hq-surface-deep: rgba(11, 13, 21, 0.96);
  --hq-inset: rgba(7, 8, 13, 0.72);
  --hq-border: rgba(255, 255, 255, 0.085);
  --hq-border-strong: rgba(255, 255, 255, 0.14);
  --hq-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --hq-gold: #F59E0B;
  --hq-gold-glow: #FBBF24;
  --hq-crimson: #E11D48;
  --hq-indigo: #6366F1;
  --hq-emerald: #10B981;
  --hq-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hq-spring: cubic-bezier(0.34, 1.5, 0.64, 1);
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  background-color: #07080D;
  color: #F8FAFC;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body.modal-open {
  overflow: hidden !important;
}

html:not(.reduce-motion) .gs-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

html.reduce-motion .gs-reveal,
.gs-reveal.is-revealed {
  opacity: 1 !important;
  transform: none !important;
}

.cyber-grid {
  background-size: 48px 48px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Glow ambiental static pe vârful paginii (zero compoziționare fixă la scroll!) */
.ambient-orb-amber {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, rgba(245, 158, 11, 0.04) 40%, transparent 70%);
}

.ambient-orb-indigo {
  background: radial-gradient(circle, rgba(79, 70, 229, 0.14) 0%, rgba(79, 70, 229, 0.04) 40%, transparent 70%);
}

.spotlight-card {
  position: relative;
  background: linear-gradient(160deg, var(--hq-surface-elevated) 0%, var(--hq-surface-deep) 100%);
  border: 1px solid var(--hq-border);
  box-shadow:
    var(--hq-highlight),
    0 16px 36px -24px rgba(0, 0, 0, 0.88);
  overflow: hidden;
  transition: transform 0.22s var(--hq-ease), border-color 0.22s ease;
}

.spotlight-card:not(.spotlight-static):hover {
  border-color: rgba(245, 158, 11, 0.38);
  transform: translateY(-2px);
}

.spotlight-static:hover {
  transform: none !important;
}

.spotlight-card.overflow-visible {
  overflow: visible !important;
}

/* Izolare layout/paint pentru galeria celor 64 de avatare SVG (scroll instant pe Date Personale) */
.preset-avatar-btn {
  contain: layout style paint;
}

.view-transition {
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.banner-gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.38) 0%, rgba(217, 119, 6, 0.18) 45%, rgba(15, 23, 42, 0.95) 100%);
}
.banner-crimson {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.40) 0%, rgba(159, 18, 57, 0.20) 45%, rgba(15, 23, 42, 0.95) 100%);
}
.banner-indigo {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.42) 0%, rgba(67, 56, 202, 0.20) 45%, rgba(15, 23, 42, 0.95) 100%);
}
.banner-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.38) 0%, rgba(5, 150, 105, 0.18) 45%, rgba(15, 23, 42, 0.95) 100%);
}
.banner-violet {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.40) 0%, rgba(236, 72, 153, 0.20) 45%, rgba(15, 23, 42, 0.95) 100%);
}
.banner-obsidian {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.45) 0%, rgba(15, 23, 42, 0.85) 55%, rgba(7, 8, 13, 0.98) 100%);
}

/* =========================================================
   COMUTATOR ANIMAT LIMBĂ (JUMĂTATE ROMÂNIA / JUMĂTATE SUA)
   ========================================================= */
.lang-split-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 82px;
  height: 32px;
  padding: 2px;
  border-radius: 9999px;
  background: rgba(7, 9, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  user-select: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lang-split-switch:hover {
  border-color: rgba(251, 191, 36, 0.42);
}

.lang-half-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.32;
  filter: grayscale(55%) brightness(0.62);
  transform: scale(0.92);
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.34, 1.5, 0.64, 1),
    border-radius 0.35s ease,
    box-shadow 0.38s ease;
}

.lang-half-ro {
  border-radius: 9999px 5px 5px 9999px;
}

.lang-half-en {
  border-radius: 5px 9999px 9999px 5px;
}

.lang-half-btn:hover:not(.is-active) {
  opacity: 0.68;
  filter: grayscale(10%) brightness(0.92);
  transform: scale(0.96);
}

.lang-half-btn.is-active {
  z-index: 2;
  border-radius: 9999px;
  opacity: 1;
  filter: saturate(1.2) contrast(1.06) brightness(1.06);
  transform: scale(1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.lang-half-flag {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.lang-half-code {
  position: relative;
  z-index: 2;
  padding: 1px 4px;
  border-radius: 9999px;
  background: rgba(7, 8, 13, 0.62);
  backdrop-filter: blur(2px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95);
  pointer-events: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.lang-half-btn.is-active .lang-half-code {
  background: rgba(7, 8, 13, 0.78);
  color: #FDE68A;
}

/* Inelul luminos animat care glisează peste steagul activ */
.lang-switch-glider {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc(50% - 2px);
  border-radius: 9999px;
  pointer-events: none;
  z-index: 3;
  border: 1.5px solid rgba(251, 191, 36, 0.92);
  box-shadow:
    0 0 14px rgba(245, 158, 11, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 55%);
  transform: translateX(0%);
  transition:
    transform 0.42s cubic-bezier(0.34, 1.48, 0.64, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.lang-split-switch[data-active-lang="en"] .lang-switch-glider {
  transform: translateX(100%);
  border-color: rgba(147, 197, 253, 0.95);
  box-shadow:
    0 0 14px rgba(59, 130, 246, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #07080D;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #F59E0B;
}

@media (max-width: 420px) {
  .lang-split-switch {
    width: 68px;
    height: 28px;
  }
  .lang-half-code {
    font-size: 8px;
    padding: 1px 3px;
  }
}

/* ========================================================= */
/* ZERO-FLICKER PRE-HYDRATION & REFRESH SMOOTHNESS           */
/* ========================================================= */
html.auth-pre-logged #loginBtn { display: none !important; }
html.auth-pre-logged #userMenu { display: flex !important; }

@media (min-width: 768px) {
  html.auth-pre-owner #adminNavBtn,
  html.auth-pre-owner #consoleNavBtn,
  html.auth-pre-owner #botDashNavBtn { display: inline-flex !important; }
}

@media (max-width: 767px) {
  html.auth-pre-owner #mobileAdminNavBtn,
  html.auth-pre-owner #mobileConsoleNavBtn,
  html.auth-pre-owner #mobileBotDashNavBtn { display: block !important; }
}

/* Modale optimizate pentru orice telefon (header & footer fixe, corp derulabil) */
.modal-card-mobile {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  max-height: 88dvh;
}

html.route-is-profile #homeView { display: none !important; }
html.route-is-profile #profileView { display: block !important; }
html.route-is-dashboard #homeView { display: none !important; }
html.route-is-dashboard #adminView { display: block !important; }
html.route-is-activities #homeView { display: none !important; }
html.route-is-activities #activitiesView { display: block !important; }
html.route-is-minecraft #homeView { display: none !important; }
html.route-is-minecraft #minecraftView { display: block !important; }
html.route-is-bot #homeView { display: none !important; }
html.route-is-bot #botView { display: block !important; }
html.route-is-arcade #homeView { display: none !important; }
html.route-is-arcade #arcadeView { display: block !important; }

/* Oprește orice animație pe glider sau pe sliderul de cookies la refresh */
body.is-reloading,
body.is-reloading *,
.no-initial-transition,
.no-initial-transition * {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
}

.badge-card-emerald {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.28);
}

/* ========================================================= */
/* NAVIGARE CAPSULĂ PAGINI ("ACASĂ" + MENIU SUB BUTON)       */
/* ========================================================= */
.nav-morph-anchor {
  position: relative;
  height: 40px;
  display: inline-flex;
  align-items: center;
  z-index: 60;
}

.nav-morph-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: max-content;
}

.nav-morph-trigger {
  height: 38px;
  padding: 0 12px;
  border-radius: 13px;
  background: rgba(11, 14, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-morph-trigger:hover,
.nav-morph-box.is-open .nav-morph-trigger {
  border-color: rgba(251, 191, 36, 0.68);
  background: rgba(15, 19, 32, 0.98);
}

.nav-morph-chevron {
  transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.nav-morph-box.is-open .nav-morph-chevron {
  transform: rotate(180deg);
  color: #fbbf24;
}

.nav-morph-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: max(100%, 228px);
  width: max-content;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(16, 19, 30, 0.98) 0%, rgba(9, 11, 18, 0.99) 100%);
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: var(--hq-highlight), 0 22px 46px -12px rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 70;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.18s var(--hq-ease), visibility 0.16s;
}

.nav-morph-box.is-open .nav-morph-list {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-morph-inner {
  overflow: hidden;
  border-radius: 14px;
}

.nav-morph-items {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.nav-morph-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.nav-morph-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-morph-item.is-active {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.04));
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

/* ========================================================= */
/* BUTON STIL GTA PENTRU PAGINA JOCURI ARCADE                */
/* ========================================================= */
.font-gta {
  font-family: 'Bungee', 'Space Grotesk', sans-serif;
}

.gta-arcade-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(225, 29, 72, 0.2) 50%, rgba(15, 23, 42, 0.92) 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.72);
  box-shadow:
    0 4px 18px rgba(245, 158, 11, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.5, 0.64, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

@media (max-width: 639px) {
  .gta-arcade-btn {
    height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    gap: 5px;
  }
  .gta-arcade-btn .gta-arcade-text {
    font-size: 11px;
  }
}

.gta-arcade-btn::before {
  content: '';
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  transform: translateX(-120%) skewX(-18deg);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.gta-arcade-btn:hover::before {
  transform: translateX(130%) skewX(-18deg);
}

.gta-arcade-btn:hover {
  transform: translateY(-2px) scale(1.04) rotate(-0.8deg);
  border-color: #fde047;
  box-shadow:
    0 0 24px rgba(251, 191, 36, 0.45),
    0 10px 26px rgba(225, 29, 72, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.gta-arcade-btn.is-active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.36) 0%, rgba(225, 29, 72, 0.3) 100%);
  border-color: #fde047;
  box-shadow:
    0 0 26px rgba(251, 191, 36, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.gta-arcade-text {
  font-family: 'Bungee', 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #fde047;
  text-shadow:
    -1.5px -1.5px 0 #07080d,
     1.5px -1.5px 0 #07080d,
    -1.5px  1.5px 0 #07080d,
     1.5px  1.5px 0 #07080d,
     0px    3px   0 #000000;
}

/* ========================================================= */
/* MUSCHETARII ARCADE: CARDURI, CONTROALE, WORDLE, MC & ȘAH  */
/* ========================================================= */
.friv-card {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(160deg, var(--hq-surface-elevated) 0%, var(--hq-surface-deep) 100%);
  border: 1px solid var(--hq-border);
  box-shadow:
    var(--hq-highlight),
    0 16px 36px -24px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  contain: layout style paint;
  transform: translateZ(0);
  transition: transform 0.2s var(--hq-ease), border-color 0.2s ease;
}

.friv-card:hover {
  transform: translateY(-4px) translateZ(0);
  border-color: rgba(251, 191, 36, 0.62);
}

.friv-thumb {
  display: block;
}

#arcadeStageCard:fullscreen {
  background: #07080d;
  border-radius: 0;
  border: none;
  padding: 18px;
  overflow-y: auto;
}

.arcade-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 7px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom-width: 3px;
  border-bottom-color: #020617;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #fde68a;
  white-space: nowrap;
}

/* WORDLE — STIL FIDEL NYT WORDLE DARK MODE */
.wordle-board-shell {
  background: #121213;
  border: 1px solid #2c2c2e;
  border-radius: 16px;
}

.wordle-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 3px;
  border: 2px solid #3a3a3c;
  background: #121213;
  font-family: 'Plus Jakarta Sans', 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.85rem;
  line-height: 1;
  text-transform: uppercase;
  color: #ffffff;
  user-select: none;
  backface-visibility: hidden;
  transition: border-color 0.1s ease, background-color 0.1s ease;
}

@media (max-width: 480px) {
  .wordle-tile {
    width: 46px;
    height: 46px;
    font-size: 1.45rem;
  }
}

.wordle-tile.is-filled {
  border-color: #565758;
  animation: wordlePop 0.1s ease-out;
}
.wordle-tile.state-correct {
  background: #538d4e;
  border-color: #538d4e;
  color: #ffffff;
}
.wordle-tile.state-present {
  background: #b59f3b;
  border-color: #b59f3b;
  color: #ffffff;
}
.wordle-tile.state-absent {
  background: #3a3a3c;
  border-color: #3a3a3c;
  color: #ffffff;
}
.wordle-tile.is-revealing {
  animation: wordleFlipReveal 0.48s ease-in-out forwards;
}
.wordle-tile.is-bouncing {
  animation: wordleBounce 0.6s ease forwards;
}
.wordle-row.is-shaking {
  animation: wordleShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.wordle-key {
  background: #818384;
  color: #ffffff;
  border-radius: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  transition: background-color 0.15s ease, transform 0.08s ease;
}
.wordle-key:active {
  transform: scale(0.95);
}
.wordle-key:hover {
  filter: brightness(1.08);
}
.wordle-key.state-correct {
  background: #538d4e;
  color: #ffffff;
}
.wordle-key.state-present {
  background: #b59f3b;
  color: #ffffff;
}
.wordle-key.state-absent {
  background: #3a3a3c;
  color: #d7dadc;
}

@keyframes wordlePop {
  0% { transform: scale(0.92); }
  55% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes wordleShake {
  10%, 90% { transform: translateX(-3px); }
  20%, 80% { transform: translateX(6px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

@keyframes wordleFlipReveal {
  0% { transform: rotateX(0deg); }
  49% { transform: rotateX(90deg); background: #121213; border-color: #565758; }
  50% { transform: rotateX(90deg); }
  100% { transform: rotateX(0deg); }
}

@keyframes wordleBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-16px); }
  70% { transform: translateY(-6px); }
}

/* MINECRAFT GUI AUTENTIC */
.mc-pixelated {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.mc-gui-panel {
  background: #c6c6c6;
  border-top: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  border-right: 3px solid #555555;
  border-bottom: 3px solid #555555;
  box-shadow: 0 0 0 2px #1a1a1a, 0 14px 32px rgba(0, 0, 0, 0.55);
  color: #3f3f3f;
}

.mc-inv-slot {
  background: #8b8b8b;
  border-top: 2px solid #373737;
  border-left: 2px solid #373737;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.mc-inv-slot:hover {
  background: #a4a4a4;
}

.mc-inv-slot.is-ready {
  box-shadow: inset 0 0 12px rgba(16, 185, 129, 0.65), 0 0 14px rgba(52, 211, 153, 0.45);
}

/* ȘAH — CLONĂ FIDELĂ CHESS.COM (TEME, EVALUATION BAR, HIGHLIGHTS, DRAG) */
.chesscom-shell {
  background: #262421;
  border: 1px solid #3c3a37;
  border-radius: 16px;
}

.chess-theme-green {
  --sq-light: #eeeed2;
  --sq-dark: #769656;
  --sq-last-light: #f5f682;
  --sq-last-dark: #b9ca43;
}
.chess-theme-wood {
  --sq-light: #f0d9b5;
  --sq-dark: #b58863;
  --sq-last-light: #cdd26a;
  --sq-last-dark: #aaa23a;
}
.chess-theme-slate {
  --sq-light: #dee3e6;
  --sq-dark: #8ca2ad;
  --sq-last-light: #c3d887;
  --sq-last-dark: #7da362;
}
.chess-theme-blue {
  --sq-light: #eae9d2;
  --sq-dark: #4b7399;
  --sq-last-light: #7cc5e3;
  --sq-last-dark: #4690b8;
}

.chess-square {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: pointer;
}
.chess-square.light { background: var(--sq-light, #ebecd0); color: var(--sq-dark, #739552); }
.chess-square.dark { background: var(--sq-dark, #739552); color: var(--sq-light, #ebecd0); }
.chess-square.light.is-last-move { background: var(--sq-last-light, #f5f682); }
.chess-square.dark.is-last-move { background: var(--sq-last-dark, #b9ca43); }
.chess-square.is-selected { background: #f6f669 !important; color: #56632b !important; }
.chess-square.is-hint { box-shadow: inset 0 0 0 3px #38bdf8; }
.chess-square.is-marked { background: rgba(235, 97, 80, 0.82) !important; }
.chess-square.is-check {
  background: radial-gradient(circle, #ff3b30 0%, #c61a14 70%, #8a0f0b 100%) !important;
}

.chess-legal-dot {
  width: 28%;
  height: 28%;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.16);
  pointer-events: none;
}
.chess-legal-capture {
  position: absolute;
  inset: 7%;
  border-radius: 9999px;
  border: 5px solid rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

.chess-eval-bar {
  position: relative;
  width: 22px;
  border-radius: 6px;
  background: #403d39;
  overflow: hidden;
  border: 1px solid #1e1d1a;
  flex-shrink: 0;
}
.chess-eval-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.chess-drag-ghost {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.12);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.65));
}

.chess-square.is-premove {
  background: rgba(244, 63, 94, 0.55) !important;
  box-shadow: inset 0 0 0 2px #fb7185;
}

.chess-arrows-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

/* WORDLE HIGH CONTRAST (ACCESSIBILITY PALETTE CA PE NYT) */
.wordle-high-contrast .wordle-tile.state-correct,
.wordle-high-contrast .wordle-key.state-correct {
  background: #f5793a !important;
  border-color: #f5793a !important;
}
.wordle-high-contrast .wordle-tile.state-present,
.wordle-high-contrast .wordle-key.state-present {
  background: #85c0f9 !important;
  border-color: #85c0f9 !important;
  color: #111827 !important;
}

/* ========================================================= */
/* WIDGET LIVE MEMBRI DISCORD (TEMĂ DISCORD 1:1)             */
/* ========================================================= */
.discord-panel {
  background: #2b2d31;
  border: 1px solid #1e1f22;
  color: #dbdee1;
}
.discord-panel-header {
  background: #232428;
  border-bottom: 1px solid #1e1f22;
}
.discord-member-list,
.discord-popout-body {
  scroll-behavior: auto !important;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  scrollbar-gutter: stable;
}
.discord-member-list:hover,
.discord-popout-body:hover {
  scrollbar-color: #1a1b1e transparent;
}
.discord-member-list::-webkit-scrollbar,
.discord-popout-body::-webkit-scrollbar {
  width: 6px;
}
.discord-member-list::-webkit-scrollbar-track,
.discord-popout-body::-webkit-scrollbar-track {
  background: transparent;
}
.discord-member-list::-webkit-scrollbar-thumb,
.discord-popout-body::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 9999px;
}
.discord-member-list:hover::-webkit-scrollbar-thumb,
.discord-popout-body:hover::-webkit-scrollbar-thumb {
  background: #1a1b1e;
}
.discord-member-list::-webkit-scrollbar-thumb:hover,
.discord-popout-body::-webkit-scrollbar-thumb:hover {
  background: #111214;
}
.discord-role-hdr {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #949ba4;
  user-select: none;
}
.discord-member-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 7px;
  transition: background-color 0.12s ease;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}
.discord-member-row:not(.has-nameplate):hover {
  background-color: #35373c;
}
.discord-member-row > .discord-avatar-wrap,
.discord-member-row > .discord-member-body {
  position: relative;
  z-index: 2;
}
.discord-nameplate-video,
.discord-nameplate-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}
.discord-nameplate-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(43, 45, 49, 0.9) 0%, rgba(43, 45, 49, 0.56) 44%, rgba(43, 45, 49, 0.14) 100%);
  transition: opacity 0.14s ease, filter 0.14s ease;
}
.discord-nameplate-scrim.pal-crimson {
  background: linear-gradient(90deg, rgba(66, 26, 33, 0.9) 0%, rgba(72, 24, 34, 0.54) 46%, rgba(43, 45, 49, 0.12) 100%);
}
.discord-nameplate-scrim.pal-berry {
  background: linear-gradient(90deg, rgba(63, 29, 56, 0.9) 0%, rgba(74, 32, 66, 0.54) 46%, rgba(43, 45, 49, 0.12) 100%);
}
.discord-nameplate-scrim.pal-sky {
  background: linear-gradient(90deg, rgba(28, 49, 69, 0.9) 0%, rgba(30, 56, 82, 0.54) 46%, rgba(43, 45, 49, 0.12) 100%);
}
.discord-nameplate-scrim.pal-teal {
  background: linear-gradient(90deg, rgba(24, 58, 60, 0.9) 0%, rgba(24, 66, 68, 0.54) 46%, rgba(43, 45, 49, 0.12) 100%);
}
.discord-nameplate-scrim.pal-forest {
  background: linear-gradient(90deg, rgba(28, 55, 36, 0.9) 0%, rgba(30, 62, 40, 0.54) 46%, rgba(43, 45, 49, 0.12) 100%);
}
.discord-nameplate-scrim.pal-bubble_gum {
  background: linear-gradient(90deg, rgba(70, 34, 58, 0.88) 0%, rgba(86, 40, 72, 0.52) 46%, rgba(43, 45, 49, 0.12) 100%);
}
.discord-nameplate-scrim.pal-violet {
  background: linear-gradient(90deg, rgba(50, 32, 74, 0.9) 0%, rgba(60, 38, 92, 0.54) 46%, rgba(43, 45, 49, 0.12) 100%);
}
.discord-nameplate-scrim.pal-cobalt {
  background: linear-gradient(90deg, rgba(28, 42, 78, 0.9) 0%, rgba(34, 52, 96, 0.54) 46%, rgba(43, 45, 49, 0.12) 100%);
}
.discord-nameplate-scrim.pal-clover {
  background: linear-gradient(90deg, rgba(34, 62, 34, 0.9) 0%, rgba(38, 72, 38, 0.54) 46%, rgba(43, 45, 49, 0.12) 100%);
}
.discord-nameplate-scrim.pal-lemon {
  background: linear-gradient(90deg, rgba(64, 58, 26, 0.9) 0%, rgba(74, 66, 28, 0.52) 46%, rgba(43, 45, 49, 0.12) 100%);
}
.discord-nameplate-scrim.pal-white,
.discord-nameplate-scrim.pal-unknown_black {
  background: linear-gradient(90deg, rgba(35, 36, 40, 0.9) 0%, rgba(43, 45, 49, 0.54) 46%, rgba(43, 45, 49, 0.12) 100%);
}
.discord-member-row.has-nameplate:hover .discord-nameplate-scrim {
  background: linear-gradient(90deg, rgba(53, 55, 60, 0.86) 0%, rgba(53, 55, 60, 0.42) 48%, rgba(53, 55, 60, 0.06) 100%);
}
.discord-avatar-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.discord-avatar-deco {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 39px;
  height: 39px;
  max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.discord-status-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  border: 2.5px solid #2b2d31;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.discord-status-badge.status-online {
  background: #23a55a;
}
.discord-status-badge.status-idle {
  background: #f0b232;
}
.discord-status-badge.status-idle .idle-cutout {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: #2b2d31;
}
.discord-status-badge.status-dnd {
  background: #f23f43;
}
.discord-status-badge.status-dnd .dnd-bar {
  width: 6px;
  height: 1.8px;
  border-radius: 9999px;
  background: #2b2d31;
}
.discord-status-badge.status-mobile {
  width: 12px;
  height: 15px;
  border-radius: 3px;
  background: #2b2d31;
  border: none;
  right: -2px;
  bottom: -3px;
  color: #23a55a;
}
.discord-member-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  color: #dbdee1;
}
.discord-bot-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 4px;
  border-radius: 4px;
  background: #5865f2;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  flex-shrink: 0;
}
.discord-clan-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(17, 18, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dbdee1;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  flex-shrink: 0;
}
.discord-activity-line {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  line-height: 1.25;
  color: #b5bac1;
  margin-top: 1px;
}
.discord-act-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.discord-act-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.09);
  color: #dbdee1;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  flex-shrink: 0;
}

/* FLOATING DISCORD ACTIVITY HOVER TOOLTIP */
.discord-hover-tooltip {
  position: fixed;
  z-index: 115;
  width: 300px;
  max-width: calc(100vw - 24px);
  background: #111214;
  border: 1px solid #2b2d31;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.72);
  padding: 10px 12px;
  color: #dbdee1;
  pointer-events: none;
}

/* POPOUT PROFIL NATIV 1:1 DISCORD */
@keyframes discordPopoutIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.discord-popout-card {
  width: 100%;
  max-width: 396px;
  max-height: calc(100vh - 28px);
  display: flex;
  flex-direction: column;
  background: #232428;
  border: 1px solid #1e1f22;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  color: #dbdee1;
  contain: layout style;
  transform: translateZ(0);
}
#discordProfilePopoutModal:not(.hidden) .discord-popout-card {
  animation: discordPopoutIn 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
.discord-popout-banner {
  position: relative;
  height: 116px;
  width: 100%;
  flex-shrink: 0;
  background: #1e1f22;
  overflow: hidden;
}
.discord-popout-banner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
}
.discord-popout-banner-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 18, 20, 0.12) 0%, rgba(17, 18, 20, 0.45) 100%);
  pointer-events: none;
}
.discord-popout-header-row {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 16px;
  margin-top: -42px;
  flex-shrink: 0;
  z-index: 3;
}
.discord-popout-avatar-ring {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 9999px;
  background: #232428;
  padding: 5px;
  flex-shrink: 0;
}
.discord-popout-avatar-ring .discord-avatar-deco {
  width: 94px;
  height: 94px;
}
.discord-popout-status {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  border: 4px solid #232428;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.discord-popout-status.status-online { background: #23a55a; }
.discord-popout-status.status-idle { background: #f0b232; }
.discord-popout-status.status-idle .idle-cutout {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: #232428;
}
.discord-popout-status.status-dnd { background: #f23f43; }
.discord-popout-status.status-dnd .dnd-bar {
  width: 10px;
  height: 3px;
  border-radius: 9999px;
  background: #232428;
}
.discord-popout-status.status-mobile {
  width: 20px;
  height: 24px;
  border-radius: 5px;
  background: #232428;
  border: 2px solid #232428;
  color: #23a55a;
}
.discord-badges-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 8px;
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}
.discord-badges-pill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}
.discord-thought-bubble {
  position: relative;
  margin: 8px 16px 2px;
  padding: 7px 11px;
  border-radius: 12px;
  background: #2b2d31;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: #dbdee1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.discord-popout-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.discord-popout-tab-btn {
  position: relative;
  padding: 10px 2px;
  font-size: 12px;
  font-weight: 600;
  color: #949ba4;
  transition: color 0.12s ease;
  white-space: nowrap;
}
.discord-popout-tab-btn:hover {
  color: #dbdee1;
}
.discord-popout-tab-btn.is-active {
  color: #ffffff;
}
.discord-popout-tab-btn.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: #ffffff;
}
.discord-popout-body {
  padding: 12px 16px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  will-change: scroll-position;
  contain: content;
  transform: translateZ(0);
}
.discord-rich-card {
  background: #1a1b1e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  padding: 10px 11px;
}
.discord-spotify-bar {
  width: 100%;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.discord-spotify-fill {
  height: 100%;
  border-radius: 9999px;
  background: #ffffff;
  transition: width 0.5s linear;
}
.discord-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 5px;
  background: #1a1b1e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11.5px;
  font-weight: 500;
  color: #dbdee1;
  max-width: 100%;
}
.discord-role-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  flex-shrink: 0;
}
.discord-mutual-server-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #1a1b1e;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.discord-blurple-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 7px;
  background: #5865f2;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  transition: background-color 0.14s ease;
}
.discord-blurple-btn:hover {
  background: #4752c4;
}

/* ========================================================= */

/* ========================================================= */
/* CHESS VIEWPORT FIT + PEOPLE DRAWER & INVITE POPUPS        */
/* ========================================================= */
.chess-board-col-wrap {
  width: min(100%, 464px, calc(100dvh - 305px));
  min-width: 248px;
}
@media (max-width: 639px) {
  .chess-board-col-wrap {
    width: min(100%, 440px, calc(100dvh - 280px));
  }
}

.people-drawer-popover.hidden {
  display: none !important;
}
@keyframes peopleDrawerPopIn {
  from {
    opacity: 0;
    transform: translate3d(0, -6px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
.people-drawer-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 352px;
  max-height: min(78vh, 580px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, rgba(16, 19, 30, 0.98) 0%, rgba(9, 11, 18, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  box-shadow:
    var(--hq-highlight),
    0 24px 56px -12px rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f8fafc;
  z-index: 95;
  overflow: hidden;
  transform-origin: top right;
  animation: peopleDrawerPopIn 0.16s var(--hq-ease);
  will-change: transform, opacity;
}
@media (max-width: 639px) {
  .people-drawer-popover {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 72px;
    width: auto;
    max-height: calc(100dvh - 90px);
    transform-origin: top center;
  }
}

.people-drawer-hdr {
  background: rgba(10, 12, 20, 0.92);
  border-bottom: 1px solid var(--hq-border);
}

.people-section-hdr {
  padding: 10px 10px 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  user-select: none;
}

.people-user-wrap {
  border-radius: 12px;
  border: 1px solid transparent;
  overflow: hidden;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}
.people-user-wrap.is-open {
  background: rgba(15, 17, 26, 0.9);
  border-color: rgba(255, 255, 255, 0.085);
}
.people-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  min-height: 44px;
  border-radius: 11px;
  cursor: pointer;
  transition: background-color 0.14s ease;
}
.people-user-row:hover {
  background: rgba(255, 255, 255, 0.06);
}
.people-user-row.is-offline {
  opacity: 0.58;
}
.people-user-row.is-offline:hover {
  opacity: 0.88;
}

.people-action-menu {
  padding: 8px 10px 10px;
  border-top: 1px solid var(--hq-border);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.people-game-submenu {
  margin-left: 10px;
  padding-left: 9px;
  border-left: 2px solid rgba(245, 158, 11, 0.55);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

@keyframes inviteToastSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.game-invite-toast {
  pointer-events: auto;
  background: linear-gradient(160deg, rgba(18, 21, 33, 0.97) 0%, rgba(10, 12, 20, 0.99) 100%);
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 18px;
  box-shadow:
    var(--hq-highlight),
    0 20px 44px -10px rgba(0, 0, 0, 0.82);
  padding: 13px;
  color: #f8fafc;
  animation: inviteToastSlideIn 0.2s var(--hq-ease);
}

/* ========================================================= */
/* OWNER ICON-ONLY CROSSOVER BUTTONS IN TOP NAVBAR           */
/* ========================================================= */
.owner-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  cursor: pointer;
  overflow: visible;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}
.owner-icon-btn:hover {
  transform: translateY(-1px);
}
.owner-icon-btn:active {
  transform: translateY(0) scale(0.95);
}
.owner-icon-btn--dashboard {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.16), rgba(244, 63, 94, 0.14));
  border: 1px solid rgba(245, 158, 11, 0.42);
  color: #fcd34d;
  box-shadow: 0 4px 16px -4px rgba(245, 158, 11, 0.25);
}
.owner-icon-btn--dashboard:hover,
.owner-icon-btn--dashboard:focus-visible {
  border-color: rgba(251, 191, 36, 0.85);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.26), rgba(244, 63, 94, 0.22));
  box-shadow: 0 0 22px -2px rgba(245, 158, 11, 0.45);
  color: #fef3c7;
}
.owner-icon-btn--console {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.14), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  box-shadow: 0 4px 16px -4px rgba(16, 185, 129, 0.22);
}
.owner-icon-btn--console:hover,
.owner-icon-btn--console:focus-visible {
  border-color: rgba(52, 211, 153, 0.8);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.24), rgba(6, 78, 59, 0.35));
  box-shadow: 0 0 22px -2px rgba(16, 185, 129, 0.42);
  color: #d1fae5;
}
.owner-icon-btn--botdash {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.16), rgba(139, 92, 246, 0.16));
  border: 1px solid rgba(129, 140, 248, 0.42);
  color: #c7d2fe;
  box-shadow: 0 4px 16px -4px rgba(99, 102, 241, 0.25);
}
.owner-icon-btn--botdash:hover,
.owner-icon-btn--botdash:focus-visible {
  border-color: rgba(165, 180, 252, 0.85);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.26), rgba(139, 92, 246, 0.24));
  box-shadow: 0 0 22px -2px rgba(99, 102, 241, 0.45);
  color: #eef2ff;
}
.owner-icon-sheen {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  pointer-events: none;
}
.owner-icon-sheen::after {
  content: '';
  position: absolute;
  inset: -40% -80%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.24) 50%, transparent 65%);
  transform: translate3d(-120%, 0, 0);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.owner-icon-btn:hover .owner-icon-sheen::after,
.owner-icon-btn:focus-visible .owner-icon-sheen::after {
  transform: translate3d(120%, 0, 0);
}
.owner-icon-stack {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.owner-icon-primary,
.owner-icon-secondary {
  position: absolute;
  inset: 0;
  margin: auto;
  display: block;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
  will-change: transform, opacity;
}
.owner-icon-primary {
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  opacity: 1;
}
.owner-icon-secondary {
  transform: translate3d(-15px, 15px, 0) scale(0.6) rotate(-24deg);
  opacity: 0;
}
.owner-icon-btn:hover .owner-icon-primary,
.owner-icon-btn:focus-visible .owner-icon-primary {
  transform: translate3d(15px, -15px, 0) scale(0.6) rotate(24deg);
  opacity: 0;
}
.owner-icon-btn:hover .owner-icon-secondary,
.owner-icon-btn:focus-visible .owner-icon-secondary {
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  opacity: 1;
}
.owner-icon-tooltip {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  transform: translate3d(-50%, -4px, 0) scale(0.95);
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(11, 13, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65);
  transition: opacity 0.16s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 60;
}
.owner-icon-btn:hover .owner-icon-tooltip,
.owner-icon-btn:focus-visible .owner-icon-tooltip {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(1);
}

/* ========================================================= */
/* SKELETON LOAD & MODERN ANIMATED INVITE SETTINGS UI        */
/* ========================================================= */
@keyframes peopleSkeletonPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}
.people-skeleton-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: peopleSkeletonPulse 1.15s ease-in-out infinite;
}
.people-skeleton-row:nth-child(2) { opacity: 0.78; }
.people-skeleton-row:nth-child(3) { opacity: 0.62; }
.people-skeleton-row:nth-child(4) { opacity: 0.48; }
.people-skeleton-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.people-skeleton-line {
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

@keyframes invPanelFadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes invStatusPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0);
  }
}
@keyframes invStatusPulseRose {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.55);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(244, 63, 94, 0);
  }
}
.inv-settings-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: invPanelFadeIn 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.inv-settings-hero {
  position: relative;
  border-radius: 14px;
  padding: 13px;
  border: 1px solid var(--hq-border);
  background: linear-gradient(160deg, var(--hq-surface-elevated), var(--hq-surface-deep));
  box-shadow: var(--hq-highlight);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.inv-settings-hero.is-open {
  border-color: rgba(16, 185, 129, 0.36);
  box-shadow: inset 0 1px 0 rgba(52, 211, 153, 0.16), 0 8px 24px -12px rgba(16, 185, 129, 0.24);
}
.inv-settings-hero.is-muted {
  border-color: rgba(244, 63, 94, 0.42);
  box-shadow: inset 0 1px 0 rgba(251, 113, 133, 0.16), 0 8px 24px -12px rgba(225, 29, 72, 0.26);
}
.inv-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  flex-shrink: 0;
}
.inv-settings-hero.is-open .inv-status-dot {
  background: #34d399;
  animation: invStatusPulse 2s ease-in-out infinite;
}
.inv-settings-hero.is-muted .inv-status-dot {
  background: #fb7185;
  animation: invStatusPulseRose 1.8s ease-in-out infinite;
}
.inv-duration-card {
  border-radius: 14px;
  padding: 12px;
  background: rgba(7, 8, 13, 0.65);
  border: 1px solid var(--hq-border);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.inv-duration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.inv-duration-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 7px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hq-border);
  cursor: pointer;
  transition: transform 0.16s var(--hq-ease), background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
@media (max-width: 639px) {
  .inv-duration-pill {
    min-height: 40px;
  }
}
.inv-duration-pill:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.inv-duration-pill:active {
  transform: scale(0.96);
}
.inv-duration-pill.is-allow.is-active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(5, 150, 105, 0.22));
  border-color: rgba(52, 211, 153, 0.68);
  color: #d1fae5;
  box-shadow: 0 4px 14px -4px rgba(16, 185, 129, 0.42);
}
.inv-duration-pill.is-timed:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.42);
  color: #fde68a;
}
.inv-duration-pill.is-perm {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.28);
}
.inv-duration-pill.is-perm:hover,
.inv-duration-pill.is-perm.is-active {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.32), rgba(225, 29, 72, 0.28));
  border-color: rgba(251, 113, 133, 0.75);
  color: #ffe4e6;
  box-shadow: 0 4px 14px -4px rgba(244, 63, 94, 0.45);
}
.inv-duration-pill.is-muted-active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(244, 63, 94, 0.22));
  border-color: rgba(251, 191, 36, 0.7);
  color: #fef3c7;
  box-shadow: 0 4px 14px -4px rgba(245, 158, 11, 0.42);
}
.inv-blocked-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(7, 8, 13, 0.68);
  border: 1px solid var(--hq-border);
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.inv-blocked-card:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(15, 17, 26, 0.92);
}
.inv-empty-card {
  padding: 16px 12px;
  border-radius: 12px;
  background: rgba(7, 8, 13, 0.52);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  text-align: center;
  color: #94a3b8;
  font-size: 11.5px;
}
.inv-toast-block-drawer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 7px;
  animation: invPanelFadeIn 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

html.reduce-motion .owner-icon-btn,
html.reduce-motion .owner-icon-primary,
html.reduce-motion .owner-icon-secondary,
html.reduce-motion .owner-icon-tooltip,
html.reduce-motion .people-drawer-popover,
html.reduce-motion .inv-settings-panel,
html.reduce-motion .inv-status-dot,
html.reduce-motion .inv-duration-pill,
html.reduce-motion .inv-toast-block-drawer {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .owner-icon-primary,
  .owner-icon-secondary,
  .people-drawer-popover,
  .inv-settings-panel,
  .inv-status-dot,
  .inv-toast-block-drawer {
    animation: none !important;
    transition: none !important;
  }
}

/* ========================================================= */
/* HOME STUDIO POLISH & INTERACTIVE FX (OBSIDIAN + GOLD)     */
/* ========================================================= */
.site-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.site-header.header-scrolled {
  background-color: rgba(7, 8, 13, 0.97);
  border-bottom-color: rgba(245, 158, 11, 0.22);
  box-shadow: 0 12px 34px -14px rgba(0, 0, 0, 0.88);
}

@keyframes uiDropdownIn {
  from {
    opacity: 0;
    transform: translate3d(0, -6px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.mobile-nav-drawer {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mobile-nav-drawer:not(.hidden) {
  animation: uiDropdownIn 0.18s var(--hq-ease);
}

@media (max-width: 639px) {
  .gta-arcade-btn {
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    gap: 5px;
  }
  #peopleNavBtn,
  #mobileMenuBtn {
    min-width: 38px;
    min-height: 38px;
  }
  #loginBtn {
    min-height: 38px;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
}

.hero-fx-stage {
  -webkit-mask-image: radial-gradient(ellipse 88% 82% at 50% 44%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 82% at 50% 44%, #000 52%, transparent 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 9999px;
  background: rgba(15, 17, 26, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 20px -10px rgba(245, 158, 11, 0.35);
  color: #fde68a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.85);
  animation: heroLivePulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes heroLivePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.28);
    opacity: 0.72;
  }
}

.hero-cta-primary {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 14px 32px -10px rgba(88, 101, 242, 0.55);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, box-shadow 0.24s ease;
}

.hero-cta-primary::after {
  content: '';
  position: absolute;
  inset: -40% -25%;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.22) 50%, transparent 64%);
  transform: translate3d(-125%, 0, 0) skewX(-18deg);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hero-cta-primary:hover::after {
  transform: translate3d(125%, 0, 0) skewX(-18deg);
}

.hero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 18px 36px -10px rgba(88, 101, 242, 0.68);
}

.hero-cta-primary:active {
  transform: translateY(0) scale(0.98);
}

.hero-cta-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 17, 26, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.hero-cta-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(24, 27, 41, 0.92);
  color: #fde68a;
}

.hero-cta-secondary:active {
  transform: translateY(0) scale(0.98);
}

.hero-stat-chip {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 17, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-discord-frame {
  position: relative;
  padding: 5px;
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.1), rgba(245, 158, 11, 0.08) 45%, rgba(255, 255, 255, 0.03));
  box-shadow: 0 24px 54px -20px rgba(0, 0, 0, 0.85);
}

/* Carduri Bento cu Cursor Spotlight + Border Rim Glow + Micro-Tilt 3D */
.fx-card {
  position: relative;
  background: linear-gradient(160deg, rgba(18, 21, 33, 0.92) 0%, rgba(12, 14, 22, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 16px 36px -24px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transform-style: preserve-3d;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease;
}

.fx-card[data-fx-card="amber"] {
  --fx-glow: rgba(245, 158, 11, 0.14);
  --fx-border: rgba(251, 191, 36, 0.72);
  border-color: rgba(245, 158, 11, 0.28);
}

.fx-card[data-fx-card="emerald"] {
  --fx-glow: rgba(16, 185, 129, 0.13);
  --fx-border: rgba(52, 211, 153, 0.65);
}

.fx-card[data-fx-card="crimson"] {
  --fx-glow: rgba(225, 29, 72, 0.13);
  --fx-border: rgba(251, 113, 133, 0.65);
}

.fx-card[data-fx-card="indigo"] {
  --fx-glow: rgba(99, 102, 241, 0.14);
  --fx-border: rgba(129, 140, 248, 0.68);
}

.fx-card > * {
  position: relative;
  z-index: 2;
}

.fx-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    360px circle at var(--fx-x, 50%) var(--fx-y, 50%),
    var(--fx-glow, rgba(245, 158, 11, 0.14)),
    transparent 70%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.28s ease;
}

.fx-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    240px circle at var(--fx-x, 50%) var(--fx-y, 50%),
    var(--fx-border, rgba(251, 191, 36, 0.62)),
    transparent 72%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .fx-card.is-fx-active::before,
  .fx-card.is-fx-active::after {
    opacity: 1;
  }
  .fx-card[data-fx-tilt="true"].is-fx-active {
    transform: perspective(900px) rotateX(var(--fx-rx, 0deg)) rotateY(var(--fx-ry, 0deg)) translateY(-3px);
    transition: transform 0.08s linear, border-color 0.22s ease;
  }
}

.fx-card:active {
  transform: scale(0.992);
}

/* Scroll-Reveal Choreography (GPU-only) */
html:not(.reduce-motion) [data-fx-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

html:not(.reduce-motion) [data-fx-reveal].fx-delay-1 { transition-delay: 70ms; }
html:not(.reduce-motion) [data-fx-reveal].fx-delay-2 { transition-delay: 140ms; }
html:not(.reduce-motion) [data-fx-reveal].fx-delay-3 { transition-delay: 210ms; }
html:not(.reduce-motion) [data-fx-reveal].fx-delay-4 { transition-delay: 280ms; }

html.reduce-motion [data-fx-reveal],
[data-fx-reveal].is-revealed {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}

/* ========================================================= */
/* UNIFIED OBSIDIAN UI SYSTEM (CARDS, MODALS, INPUTS, BTNS)  */
/* ========================================================= */
.ui-inset-card {
  background: rgba(7, 8, 13, 0.56);
  border: 1px solid var(--hq-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ui-input {
  background: var(--hq-inset);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  color: #F8FAFC;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.ui-input:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.2);
}
.ui-input:focus {
  outline: none;
  border-color: rgba(251, 191, 36, 0.72);
  background: rgba(7, 8, 13, 0.9);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}
.ui-input--danger:focus {
  border-color: rgba(251, 113, 133, 0.78);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.16);
}

@keyframes uiBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes uiModalIn {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.ui-modal-backdrop {
  background: rgba(5, 6, 11, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ui-modal-backdrop:not(.hidden) {
  animation: uiBackdropIn 0.16s var(--hq-ease);
}
.ui-modal-panel {
  background: linear-gradient(165deg, rgba(18, 21, 33, 0.98) 0%, rgba(10, 12, 20, 0.99) 100%);
  box-shadow: var(--hq-highlight), 0 28px 64px -16px rgba(0, 0, 0, 0.92);
}
.ui-modal-backdrop:not(.hidden) > .ui-modal-panel {
  animation: uiModalIn 0.2s var(--hq-ease);
}

.ui-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hq-border);
  color: #94a3b8;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s var(--hq-ease);
}
.ui-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.ui-modal-close:active {
  transform: scale(0.94);
}

.ui-btn-primary {
  background: linear-gradient(90deg, #FBBF24 0%, #F59E0B 100%);
  color: #07080D;
  font-weight: 800;
  border: 1px solid rgba(253, 224, 71, 0.35);
  box-shadow: 0 10px 24px -8px rgba(245, 158, 11, 0.45);
  transition: transform 0.18s var(--hq-ease), filter 0.18s ease, box-shadow 0.18s ease;
}
.ui-btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.ui-btn-primary:active {
  transform: scale(0.98);
}

.ui-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  transition: transform 0.18s var(--hq-ease), background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.ui-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.ui-btn-secondary:active {
  transform: scale(0.98);
}

.ui-btn-danger {
  background: rgba(225, 29, 72, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  transition: transform 0.18s var(--hq-ease), background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.ui-btn-danger:hover {
  background: rgba(225, 29, 72, 0.28);
  border-color: rgba(251, 113, 133, 0.55);
  color: #ffffff;
}
.ui-btn-danger:active {
  transform: scale(0.98);
}

.ui-scroll-thin {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.24) transparent;
}
.ui-scroll-thin::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.ui-scroll-thin::-webkit-scrollbar-track {
  background: transparent;
}
.ui-scroll-thin::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.24);
  border-radius: 9999px;
}
.ui-scroll-thin::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.6);
}

.arcade-hero-title {
  text-shadow: 0 3px 0 #000000;
}

/* Focus-Visible WCAG AA Global (Portal, Sertare, Modale) */
.site-header a:focus-visible,
.site-header button:focus-visible,
#homeView a:focus-visible,
#homeView button:focus-visible,
#activitiesView a:focus-visible,
#activitiesView button:focus-visible,
#minecraftView a:focus-visible,
#minecraftView button:focus-visible,
#botView a:focus-visible,
#botView button:focus-visible,
#arcadeView a:focus-visible,
#arcadeView button:focus-visible,
#adminView a:focus-visible,
#adminView button:focus-visible,
#profileView a:focus-visible,
#profileView button:focus-visible,
#peopleDrawerPopover a:focus-visible,
#peopleDrawerPopover button:focus-visible,
.ui-modal-backdrop a:focus-visible,
.ui-modal-backdrop button:focus-visible,
footer button:focus-visible,
footer a:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

html.reduce-motion .hero-live-dot,
html.reduce-motion .hero-cta-primary,
html.reduce-motion .hero-cta-primary::after,
html.reduce-motion .hero-cta-secondary,
html.reduce-motion .fx-card,
html.reduce-motion .fx-card::before,
html.reduce-motion .fx-card::after,
html.reduce-motion .ui-modal-backdrop,
html.reduce-motion .ui-modal-panel,
html.reduce-motion .mobile-nav-drawer {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-live-dot,
  .hero-cta-primary,
  .hero-cta-primary::after,
  .hero-cta-secondary,
  .fx-card,
  .fx-card::before,
  .fx-card::after,
  .ui-modal-backdrop,
  .ui-modal-panel,
  .mobile-nav-drawer,
  [data-fx-reveal] {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Aspect ratios & CSP-clean Arcade helpers (zero inline styles) */
.aim-canvas-aspect {
  aspect-ratio: 760 / 430;
}

.runner-canvas-aspect {
  aspect-ratio: 800 / 390;
}

#chessEvalFill {
  height: 50%;
}

.w-delay-0 { animation-delay: 0ms; }
.w-delay-1 { animation-delay: 170ms; }
.w-delay-2 { animation-delay: 340ms; }
.w-delay-3 { animation-delay: 510ms; }
.w-delay-4 { animation-delay: 680ms; }

.w-bounce-0 { animation-delay: 0ms; }
.w-bounce-1 { animation-delay: 85ms; }
.w-bounce-2 { animation-delay: 170ms; }
.w-bounce-3 { animation-delay: 255ms; }
.w-bounce-4 { animation-delay: 340ms; }
