/* ============================================================
   RAVE GAMES — Design System
   Mirrors the Rave Store look: black & silver, glass cards,
   concentric rings + twinkling stars, Tajawal typeface.
   ============================================================ */
@import url('/css/fonts.css');

:root {
  --bg: #070d14;
  --bg-2: #0a131e;
  --card: #0e1a28;
  --card-2: #132234;
  --border: #20354d;
  --border-2: rgba(140, 190, 232, 0.14);
  --fg: #f0f7ff;
  --fg-2: #a8c7e0;
  --fg-3: #6e92b2;
  --fg-4: #3f5c78;
  --silver-100: #f2f9ff;
  --silver-200: #d5eafb;
  --silver-300: #9bc3e4;
  --silver-400: #6f9ec4;
  --silver-500: #4c7497;
  --green: #34d399;
  --red: #f87171;
  --amber: #fbbf24;
  --blue: #7ab3e0;
  --radius: 14px;
  --radius-lg: 22px;
  --nav-h: 64px;
  --tab-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh; min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
img { max-width: 100%; display: block; }
::selection { background: rgba(200, 200, 200, .18); color: #fff; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #090909; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #444, #222); border-radius: 3px; }

/* ---------- Background: rings + stars ---------- */
.bg-fx { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; contain: strict; transform: translateZ(0); }
.bg-fx::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 18%, rgba(123,169,209,.12) 0%, transparent 60%),
    radial-gradient(ellipse at 72% 82%, rgba(76,116,151,.10) 0%, transparent 60%);
}
.bg-fx .ring {
  position: absolute; top: 50%; left: 50%; border-radius: 50%;
  border: 1px solid rgba(155,195,228,.07); transform: translate(-50%, -50%);
}
.bg-fx .star {
  position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff;
  animation: twinkle 4s ease-in-out infinite; will-change: opacity;
}
@keyframes twinkle { 0%,100% { opacity: .2; } 50% { opacity: .85; } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.85); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes glow { 0%,100% { box-shadow: 0 0 15px rgba(200,200,200,.12); } 50% { box-shadow: 0 0 28px rgba(200,200,200,.28); } }

.page { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 12px); }
@media (min-width: 820px) { .page { padding-bottom: 40px; } }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.anim-up { animation: fadeUp .6s var(--ease) both; }

/* ---------- Typography ---------- */
.silver-text {
  background: linear-gradient(135deg, #ffffff 0%, #d5eafb 42%, #7ba9d1 72%, #b8daf5 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.shimmer-text {
  background: linear-gradient(90deg, #7ba9d1 0%, #ffffff 50%, #7ba9d1 100%); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--silver-300); font-weight: 700; font-family: ui-monospace, monospace; }
.h1 { font-size: clamp(34px, 7vw, 68px); font-weight: 900; line-height: 1.12; letter-spacing: -.01em; }
.h2 { font-size: clamp(26px, 4.5vw, 42px); font-weight: 900; line-height: 1.2; }
.h3 { font-size: 20px; font-weight: 800; }
.muted { color: var(--fg-3); }
.muted-2 { color: var(--fg-2); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }

/* ---------- Cards ---------- */
.glass {
  background: rgba(14, 26, 40, .88);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
}
.glass-hover { transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.glass-hover:hover { border-color: rgba(133, 184, 228, .34); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(4, 12, 22, .65); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.card-pad { padding: 22px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 700; font-size: 15px;
  background: linear-gradient(135deg, #1b3149, #102032); border: 1px solid rgba(140, 190, 232, .25); color: var(--silver-200);
  transition: all .25s var(--ease); user-select: none; white-space: nowrap;
}
.btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(220,242,255,.14), transparent); transition: left .55s; }
.btn:hover::before { left: 150%; }
.btn:hover { border-color: rgba(160, 208, 245, .48); box-shadow: 0 0 20px rgba(123, 169, 209, .18); }
.btn:active { transform: scale(.97); }
.btn:disabled, .btn[disabled] { opacity: .45; pointer-events: none; }
.btn-primary { background: linear-gradient(135deg, #eaf5ff, #7ba9d1); color: #06101a; border-color: transparent; font-weight: 800; }
.btn-primary:hover { background: linear-gradient(135deg, #ffffff, #9bc5e8); box-shadow: 0 0 28px rgba(133, 184, 228, .38); border-color: transparent; }
.btn-white { background: #fff; color: #000; border-color: transparent; box-shadow: 0 0 22px rgba(255,255,255,.18); }
.btn-white:hover { background: #e4e4e4; }
.btn-danger { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.35); color: var(--red); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--fg-2); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 17px; border-radius: 14px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }

/* ---------- Pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: var(--silver-300); }
.pill-green { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.3); color: var(--green); }
.pill-red { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.3); color: var(--red); }
.pill-amber { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.3); color: var(--amber); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; animation: pulse 2s infinite; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h); padding-top: var(--safe-t);
  background: rgba(7, 13, 20, .94);
  border-bottom: 1px solid #1a2d42;
}
.nav-inner { max-width: 1180px; height: 100%; margin: 0 auto; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 19px; }
.brand-logo { width: 42px; height: 42px; border-radius: 12px; background: #0d1a28; border: 1px solid #26405c; display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 20px rgba(123,169,209,.18); }
.brand-logo img { width: 34px; height: 34px; object-fit: contain; }
.nav-links { display: none; gap: 26px; font-size: 15px; color: var(--fg-3); font-weight: 500; }
.nav-links a { position: relative; transition: color .2s; padding: 6px 0; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 1px; background: var(--silver-300); transition: width .3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 10px; }
@media (min-width: 820px) { .nav-links { display: flex; } }

.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--border-2); transition: border-color .2s; }
.user-chip:hover { border-color: rgba(200,200,200,.3); }
.user-chip .lvl { font-size: 11px; color: var(--fg-3); line-height: 1; }
.user-chip .nm { font-size: 14px; font-weight: 700; line-height: 1.2; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .user-chip .meta { display: none; } .user-chip { padding: 3px; } }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(10,10,10,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid #1c1c1c; display: flex;
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--fg-3); transition: color .2s; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.active { color: #fff; }
.tabbar a.active svg { filter: drop-shadow(0 0 6px rgba(255,255,255,.4)); }
@media (min-width: 820px) { .tabbar { display: none; } }

/* ---------- Avatars ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #1a1a1a; border: 2px solid #2a2a2a; flex-shrink: 0; }
.avatar-sm { width: 30px; height: 30px; border-width: 1px; }
.avatar-lg { width: 96px; height: 96px; border-width: 4px; }
.avatar-xl { width: 124px; height: 124px; border-width: 5px; }

/* ---------- Progress ---------- */
.bar { height: 8px; border-radius: 99px; background: #1a1a1a; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #a0a0a0, #f5f5f5); transition: width .8s var(--ease); box-shadow: 0 0 12px rgba(255,255,255,.3); }

/* ---------- Layout helpers ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .g4 { grid-template-columns: repeat(4, 1fr); } }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.wrap { flex-wrap: wrap; }
.center { text-align: center; }
.hide { display: none !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 28px; }
.section { padding: 56px 0; }
.section-head { margin-bottom: 32px; }

.stat { padding: 16px 18px; border-radius: 18px; }
.stat .v { font-size: 28px; font-weight: 900; line-height: 1.1; }
.stat .l { font-size: 13px; color: #fff; font-weight: 700; margin-top: 4px; }
.stat .d { font-size: 12px; color: var(--fg-3); }

/* ---------- Forms ---------- */
.input, .textarea, .select {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; font-size: 15px;
  background: #161616; border: 1px solid #262626; color: var(--fg); outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, .select:focus { border-color: #666; box-shadow: 0 0 0 3px rgba(200,200,200,.08); }
.textarea { resize: vertical; min-height: 90px; }

/* ---------- Tabs / segmented ---------- */
.seg { display: inline-flex; gap: 4px; padding: 5px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); overflow-x: auto; max-width: 100%; }
.seg button { padding: 8px 16px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--fg-2); white-space: nowrap; transition: all .2s; min-height: 38px; }
.seg button:hover { color: #fff; }
.seg button.on { background: #fff; color: #000; box-shadow: 0 2px 10px rgba(255,255,255,.12); }

/* ---------- Table / list ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-bottom: 1px solid #1a1a1a; }
.list-item:last-child { border-bottom: 0; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: calc(var(--safe-t) + 14px); left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 380px); pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 16px; border-radius: 14px; background: rgba(22,22,22,.96); border: 1px solid #333; font-size: 14px; font-weight: 600; box-shadow: 0 12px 40px rgba(0,0,0,.6); animation: pop .3s var(--ease); display: flex; gap: 10px; align-items: center; }
.toast.ok { border-color: rgba(52,211,153,.5); } .toast.err { border-color: rgba(248,113,113,.5); } .toast.xp { border-color: rgba(251,191,36,.5); }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 18px; animation: pop .2s; }
.modal { width: min(100%, 460px); max-height: 90dvh; overflow: auto; background: #111; border: 1px solid #2a2a2a; border-radius: 24px; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.7); animation: pop .3s var(--ease); }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 2000; background: var(--bg); display: grid; place-items: center; transition: opacity .4s; }
.loader.off { opacity: 0; pointer-events: none; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #222; border-top-color: #ddd; animation: spin .8s linear infinite; }
.skeleton { background: linear-gradient(90deg, #141414 25%, #1c1c1c 50%, #141414 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 10px; }

/* ---------- Game result overlay (shared by games) ---------- */
.result-back { position: fixed; inset: 0; z-index: 800; background: rgba(0,0,0,.76); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 18px; animation: pop .25s; }
.result-card { width: min(100%, 420px); text-align: center; padding: 30px 24px; border-radius: 28px; background: linear-gradient(180deg, #151515, #0d0d0d); border: 1px solid #2a2a2a; box-shadow: 0 30px 80px rgba(0,0,0,.7); animation: pop .4s var(--ease); }
.result-card .emoji { font-size: 64px; animation: float 3s ease-in-out infinite; }
.result-card.win { border-color: rgba(251,191,36,.4); box-shadow: 0 0 60px rgba(251,191,36,.12), 0 30px 80px rgba(0,0,0,.7); }
.result-card.loss { border-color: rgba(248,113,113,.25); }

/* ---------- Game page shell ---------- */
.game-shell { position: relative; z-index: 1; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.game-top { height: 56px; padding: calc(var(--safe-t) + 0px) 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-shrink: 0; background: rgba(9,9,9,.7); backdrop-filter: blur(14px); border-bottom: 1px solid #1a1a1a; }
.game-top .title { font-weight: 900; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.game-body { flex: 1; min-height: 0; position: relative; }

@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- Monochrome Rave SVG Icons ---------- */
.rv-ico { display: inline-flex; align-items: center; justify-content: center; width: 1.05em; height: 1.05em; vertical-align: -0.15em; flex-shrink: 0; }
.rv-ico svg { width: 100%; height: 100%; }

/* ---------- Discord-style Account Badges ---------- */
.rv-badges { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; margin-inline-start: 6px; flex-wrap: wrap; }
.rv-badge {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 6px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  color: #e4e4e7; flex-shrink: 0; transition: transform .18s var(--ease), border-color .18s;
}
.rv-badge svg { width: 12px; height: 12px; }
.rv-badge:hover { transform: translateY(-1px) scale(1.08); z-index: 5; }
.rv-badge.t-diamond { color: #e4e4e7; border-color: rgba(228,228,231,.38); background: rgba(255,255,255,.07); }
.rv-badge.t-gold { color: #e2c893; border-color: rgba(226,200,147,.36); background: rgba(226,200,147,.07); }
.rv-badge.t-sky { color: #b8c4d4; border-color: rgba(184,196,212,.34); background: rgba(184,196,212,.07); }
.rv-badge.t-violet { color: #c7bfd4; border-color: rgba(199,191,212,.34); background: rgba(199,191,212,.07); }
.rv-badge.t-crimson { color: #d4b0b5; border-color: rgba(212,176,181,.34); background: rgba(212,176,181,.07); }
.rv-badge.t-emerald { color: #a9c4b8; border-color: rgba(169,196,184,.34); background: rgba(169,196,184,.07); }
.rv-badge.t-amber { color: #d4b88c; border-color: rgba(212,184,140,.34); background: rgba(212,184,140,.07); }
.rv-badge.t-pink { color: #d6c2cc; border-color: rgba(214,194,204,.34); background: rgba(214,194,204,.07); }
.rv-badge-lg { width: 24px; height: 24px; border-radius: 7px; }
.rv-badge-lg svg { width: 14px; height: 14px; }
.user-chip .rv-badges .rv-badge:nth-child(n+3) { display: none; }
.acc-badge-card { padding: 14px; border-radius: 16px; background: #121212; border: 1px solid #242424; display: flex; align-items: center; gap: 12px; transition: border-color .2s; }
.acc-badge-card.locked { opacity: .42; filter: grayscale(.8); }
.acc-badge-card .rv-badge { width: 38px; height: 38px; border-radius: 11px; }
.acc-badge-card .rv-badge svg { width: 20px; height: 20px; }
.rv-badge[data-badge-id] { cursor: pointer; user-select: none; }

.rv-badge-pop {
  position: fixed; z-index: 9999; width: min(260px, calc(100vw - 24px));
  padding: 12px 14px; border-radius: 14px;
  background: rgba(14, 14, 18, 0.96); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; gap: 11px;
  color: #f4f4f5; animation: rvPopIn .14s ease-out;
}
.rv-badge-pop .rv-badge { width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto; cursor: default; }
.rv-badge-pop .rv-badge svg { width: 18px; height: 18px; }
.rv-badge-pop-title { font-weight: 800; font-size: 13.5px; color: #fff; line-height: 1.3; }
.rv-badge-pop-desc { font-size: 12px; color: #a1a1aa; margin-top: 2px; line-height: 1.45; }
@keyframes rvPopIn { from { opacity: 0; transform: translateY(4px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---------- Game Mode Picker (shared across all games) ---------- */
.mode-modal {
  max-width: 480px !important; padding: 24px !important;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.07), transparent 60%), #0e0e0e !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}
.mode-head { text-align: center; margin-bottom: 18px; }
.mode-badge {
  width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
}
.mode-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 480px) { .mode-picker { grid-template-columns: 1fr; } }
.mode-card {
  padding: 16px; border-radius: 16px; cursor: pointer; text-align: right; color: var(--fg);
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; gap: 8px; transition: all .2s var(--ease);
}
.mode-card:hover {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.32); transform: translateY(-2px);
}
.mode-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mode-ic-box {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #e5e5e5;
}
.mode-ic-box svg { width: 18px; height: 18px; }
.mode-tag {
  font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 99px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #d4d4d4;
}
.mode-card .m-tt { font-weight: 800; font-size: 15px; color: #fff; }
.mode-card .m-ds { font-size: 12px; color: var(--fg-3); line-height: 1.45; }

/* ---------- Discord-style Two-Color & Animated Names ---------- */
.name-fx-gradient {
  background: linear-gradient(90deg, var(--nc1, #fff), var(--nc2, #a8a8a8));
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
.name-fx-wave {
  background: linear-gradient(90deg, var(--nc1, #fff), var(--nc2, #a8a8a8), var(--nc1, #fff));
  background-size: 200% auto;
  animation: raveNameWave 3s linear infinite;
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
.name-fx-glow {
  background: linear-gradient(90deg, var(--nc1, #fff), var(--nc2, #a8a8a8));
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
  animation: raveNameGlow 2.4s ease-in-out infinite;
}
@keyframes raveNameWave { to { background-position: 200% center; } }
@keyframes raveNameGlow {
  0%, 100% { filter: drop-shadow(0 0 2px var(--nc1, rgba(255,255,255,.3))); }
  50% { filter: drop-shadow(0 0 10px var(--nc2, rgba(255,255,255,.65))); }
}

/* ---------- Discord-style User Statuses ---------- */
.avatar-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.rv-status-dot {
  position: absolute; bottom: -1px; right: -1px;
  width: 11px; height: 11px; border-radius: 50%;
  border: 2.5px solid #090909; box-sizing: content-box;
  background: #23a55a; pointer-events: none; z-index: 2;
}
.rv-status-dot.lg { width: 20px; height: 20px; border-width: 4px; bottom: 2px; right: 2px; }
.rv-status-dot.inline { position: static; width: 9px; height: 9px; border: none; display: inline-block; flex-shrink: 0; }
.rv-status-dot.st-online { background: #23a55a; }
.rv-status-dot.st-idle {
  background: #090909;
  box-shadow: inset 4px -3px 0 0 #f0b232;
}
.rv-status-dot.st-idle.lg { box-shadow: inset 7px -5px 0 0 #f0b232; }
.rv-status-dot.st-idle.inline { background: transparent; box-shadow: inset 3.5px -2.5px 0 0 #f0b232; }
.rv-status-dot.st-dnd { background: #f23f43; display: grid; place-items: center; }
.rv-status-dot.st-dnd::after {
  content: ''; width: 62%; height: 2.2px; border-radius: 2px; background: #090909;
}
.rv-status-dot.st-dnd.lg::after { height: 3.5px; }
.rv-status-dot.st-invisible { background: #090909; box-shadow: inset 0 0 0 2.5px #80848e; }
.rv-status-dot.st-invisible.lg { box-shadow: inset 0 0 0 4.5px #80848e; }
.rv-status-dot.st-invisible.inline { background: transparent; box-shadow: inset 0 0 0 2px #80848e; }

.rv-status-picker { position: relative; display: inline-block; }
.rv-status-btn { display: inline-flex; align-items: center; gap: 7px; }
.rv-status-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 215px; max-height: 280px; overflow-y: auto; z-index: 120;
  padding: 6px; border-radius: 16px; background: #131313; border: 1px solid #2a2a2a;
  box-shadow: 0 18px 46px rgba(0,0,0,.78); display: flex; flex-direction: column; gap: 3px;
}
.rv-status-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px;
  border: none; border-radius: 10px; background: transparent; color: var(--fg);
  text-align: right; cursor: pointer; font: inherit; transition: background .15s;
}
.rv-status-opt:hover { background: rgba(255,255,255,.07); }
.rv-status-opt.on { background: rgba(255,255,255,.1); }
.rv-status-opt .st-lbl { font-size: 13px; font-weight: 700; line-height: 1.2; }
.rv-status-opt .st-ds { font-size: 11px; color: var(--fg-3); }


