:root {
  --bg: #f4f5f8;
  --bg-accent: #e9eaf7;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e5e7ef;
  --line-strong: #d4d8e3;
  --primary: #4338ca;
  --primary-2: #6366f1;
  --primary-text: #ffffff;
  --ink: #111827;
  --good: #16a34a;
  --bad: #dc2626;
  --warn: #d97706;
  --gold: #b7791f;
  --gold-soft: #fdf6e7;
  --soft: #eef0fb;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --shadow-lg: 0 1px 2px rgba(15, 23, 42, .05), 0 24px 48px -20px rgba(30, 27, 75, .25);
  --focus: 0 0 0 4px rgba(99, 102, 241, .18);
}

body.night {
  --bg: #0b1020;
  --bg-accent: #121a33;
  --card: #141b31;
  --text: #e6e9f5;
  --muted: #8a93b2;
  --line: #222b47;
  --line-strong: #2e3859;
  --soft: #1b2340;
  --gold-soft: #2a2412;
  --shadow: none;
  --shadow-lg: none;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  transition: background .6s, color .6s;
  overscroll-behavior: none;
}

body {
  background:
    radial-gradient(900px 480px at 50% -220px, var(--bg-accent), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: 28px; font-weight: 750; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 650; }
p { margin: 0; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.ic { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 16px; height: 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

/* ---------- Düymələr ---------- */

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  min-height: 52px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 650;
  font-size: 16px;
  background: var(--soft);
  color: var(--text);
  cursor: pointer;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .08s, opacity .2s, box-shadow .2s, background .2s;
  user-select: none;
  text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary {
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  color: var(--primary-text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 8px 20px -8px rgba(67, 56, 202, .55);
}
.btn.dark { background: var(--ink); color: #fff; }
.btn.good { background: var(--good); color: #fff; }
.btn.bad { background: var(--bad); color: #fff; }
.btn.outline { background: var(--card); border-color: var(--line-strong); }
.btn.ghost { background: transparent; color: var(--muted); min-height: 40px; font-weight: 550; font-size: 15px; }
.btn.small { min-height: 40px; font-size: 14px; padding: 8px 12px; width: auto; border-radius: 12px; }
.btn.icon-only { width: 40px; min-height: 40px; padding: 0; }

input, select {
  font: inherit;
  font-size: 16px;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #a0a8bb; }
input:focus, select:focus { border-color: var(--primary-2); box-shadow: var(--focus); }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }

.code-input {
  text-align: center;
  font-size: 30px;
  letter-spacing: 14px;
  padding-left: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- Brend ---------- */

.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -.02em; }
.logo {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(145deg, var(--primary-2), var(--primary) 60%, #312e81);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(67, 56, 202, .6);
}
.logo .ic { width: 20px; height: 20px; }
.logo.lg { width: 60px; height: 60px; border-radius: 18px; }
.logo.lg .ic { width: 30px; height: 30px; }

/* ---------- Giriş ekranı ---------- */

.auth {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 24px 0;
}
.auth-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.auth-head p { max-width: 300px; }

/* Dəyişən söz: öz sətrindədir ki, uzunluğu dəyişəndə qalan mətn yerindən oynamasın */
.rotator { display: block; height: 1.5em; overflow: hidden; font-size: 20px; font-weight: 750; letter-spacing: -.01em; margin-bottom: 2px; }
.rotator span {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary-2), var(--primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .35s;
}
.rotator span.out { transform: translateY(-70%); opacity: 0; }
.rotator span.in { transform: translateY(70%); opacity: 0; transition: none; }
.auth .card { padding: 20px; box-shadow: var(--shadow-lg); }
.auth-foot { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.auth-foot span { display: inline-flex; align-items: center; gap: 6px; }

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--soft);
  border-radius: 14px;
}
.tabs .tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.tabs .tab.active { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(15, 23, 42, .1); }

.hint { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Başlıq ---------- */

.topbar { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.topbar .title { font-weight: 700; font-size: 17px; flex: 1; display: flex; align-items: center; gap: 8px; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--soft); font-size: 14px; font-weight: 650;
  white-space: nowrap;
}
button.pill { color: var(--text); cursor: pointer; }
.pill.gold { background: var(--gold-soft); color: var(--gold); }

.me { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.me .who { min-width: 0; }
.me .who b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.initial {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  font-weight: 700; font-size: 16px; color: #fff;
  background: linear-gradient(145deg, #818cf8, #4338ca);
}
.initial.sm { width: 32px; height: 32px; font-size: 14px; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }

/* ---------- Otağa qoşul ---------- */

.join { display: flex; gap: 10px; }
.join .code-input { flex: 1; min-width: 0; font-size: 24px; letter-spacing: 10px; padding-left: 20px; }
.join .btn { width: auto; padding: 0 22px; }

/* ---------- Qoru (qonaq hesabı) ---------- */

details.card summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
details.card[open] summary .chev { transform: rotate(90deg); }
.notice-icon {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold);
}

/* ---------- Oyun kartları ---------- */

.game { display: flex; flex-direction: column; gap: 16px; }
.game-card { display: flex; gap: 14px; align-items: center; }
.game-card .icon {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 30px;
  background: linear-gradient(145deg, #1e1b4b, #312e81);
  color: #fff;
}
.game-card .icon.alt { background: linear-gradient(145deg, #0f766e, #134e4a); }
.game-card .icon .ic { width: 28px; height: 28px; }
.game-meta { display: flex; gap: 12px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.game-meta span { display: inline-flex; align-items: center; gap: 4px; }
.game-card.soon { opacity: .6; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); }

/* ---------- Otaq kodu ---------- */

.room-hero {
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  background: linear-gradient(160deg, #1e1b4b, #312e81 55%, #4338ca);
  color: #fff;
  text-align: center;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.room-hero .eyebrow { color: rgba(255, 255, 255, .7); }
.room-hero .btn { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .18); }
.room-code { font-size: 52px; font-weight: 800; letter-spacing: 12px; padding-left: 12px; font-variant-numeric: tabular-nums; line-height: 1.1; }

/* ---------- Oyunçular ---------- */

.players { display: flex; flex-direction: column; gap: 8px; }
.player {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 600;
  min-height: 58px;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
}
button.player { cursor: pointer; transition: border-color .15s, background .15s; }
button.player:active { transform: scale(.985); }
.player.selected { border-color: var(--primary-2); background: var(--soft); box-shadow: var(--focus); }
.player.dead { opacity: .45; text-decoration: line-through; }
.player .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--soft); font-size: 17px; flex-shrink: 0;
}
.player .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player .tag { font-size: 13px; color: var(--muted); font-weight: 500; }
.player .crown { color: var(--gold); display: inline-flex; }
.player .votes {
  min-width: 28px; height: 28px; border-radius: 14px; padding: 0 8px;
  background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 14px;
}
.avatar-wrap { position: relative; }
.avatar-wrap .dot { position: absolute; right: -1px; bottom: -1px; border: 2px solid var(--card); width: 12px; height: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); flex-shrink: 0; }
.dot.off { background: var(--line-strong); }

/* ---------- Böyük səhnələr ---------- */

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 12px 0;
}
.emoji-xl {
  font-size: 64px; line-height: 1;
  width: 120px; height: 120px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
body.night .emoji-xl { background: var(--soft); border-color: var(--line); }
.big-number { font-size: 120px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; }

.role-card {
  width: 100%;
  min-height: 300px;
  border-radius: 24px;
  border: 1px solid var(--line);
  font: inherit;
  color: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 24px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  user-select: none;
}
.role-card.hidden { background: linear-gradient(160deg, #1e1b4b, #312e81 60%, #4338ca); color: #fff; border: 0; }
.role-card.hidden .muted { color: rgba(255, 255, 255, .75); }
.role-card.mafia { background: linear-gradient(160deg, #2b0f14, #450a0a); color: #fecaca; border: 0; }
.role-card.doctor { background: linear-gradient(160deg, #ecfdf3, #d1fadf); color: #14532d; border: 0; }
.role-card.detective { background: linear-gradient(160deg, #fffaeb, #fef0c7); color: #5b3a00; border: 0; }
.role-card.citizen { background: linear-gradient(160deg, #eef2ff, #e0e7ff); color: #1e2d6b; border: 0; }
.role-card .emoji-xl { background: rgba(255, 255, 255, .55); border: 0; box-shadow: none; }
.role-card.mafia .emoji-xl, .role-card.hidden .emoji-xl { background: rgba(255, 255, 255, .1); }

.banner {
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
}
.banner.bad { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.banner.good { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.banner.info { background: var(--soft); color: var(--text); }
body.night .banner.bad { background: #3a1318; color: #ffb3b3; border-color: #5c1d24; }
body.night .banner.good { background: #10301d; color: #9fe6b3; border-color: #1b4a2e; }

.earned { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--gold-soft); color: var(--gold); border-color: transparent; font-weight: 700; }

.settings { display: grid; grid-template-columns: 1fr; gap: 12px; }

/* ---------- Bildirişlər ---------- */

#toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(120px);
  background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 14px;
  max-width: calc(100% - 32px);
  font-weight: 600; font-size: 15px; text-align: center;
  box-shadow: 0 12px 32px -12px rgba(15, 23, 42, .5);
  transition: transform .25s;
  z-index: 20;
}
#toast.show { transform: translateX(-50%) translateY(0); }

#flash {
  position: fixed; inset: 0; pointer-events: none; opacity: 0; z-index: 30;
  background: var(--bad);
}
#flash.on { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30%, 60% { opacity: .8; } 15%, 45%, 100% { opacity: 0; } }

#conn {
  position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; text-align: center;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; z-index: 25;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, .5);
}
#conn[hidden] { display: none; }
#conn::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading { flex: 1; display: grid; place-items: center; }

@media (min-width: 720px) {
  #app { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Ana ekran: Reytinq / Mağaza ---------- */

.pill.coin { background: #fef3c7; color: #92400e; }
body.night .pill.coin { background: #2e2410; color: #fbbf24; }

.nav-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  transition: transform .08s;
}
.tile:active { transform: scale(.98); }
.tile b { display: block; font-size: 15px; }
.tile .small { display: block; font-size: 12px; }
.tile-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
}
.tile-icon.violet { background: var(--soft); color: var(--primary); }
.tile-icon.amber { background: #fef3c7; color: #b45309; }

/* ---------- Reytinq ---------- */

.rank-hero { display: flex; align-items: center; gap: 14px; }
.rank-hero b { font-size: 18px; }
.rank-row .rank {
  width: 32px; text-align: center; flex-shrink: 0;
  font-weight: 750; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.rank-row .rank.r1, .rank-row .rank.r2, .rank-row .rank.r3 { font-size: 22px; }
.rank-row .name { display: flex; flex-direction: column; white-space: normal; }
.rank-row .name .sub { font-size: 12px; font-weight: 500; color: var(--muted); }
.rank-row .score { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.rank-row.mine { border-color: var(--primary-2); box-shadow: var(--focus); }

/* ---------- Mağaza ---------- */

.wallet {
  border-radius: var(--radius); padding: 18px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  background: linear-gradient(150deg, #78350f, #b45309 55%, #f59e0b);
  color: #fff; box-shadow: var(--shadow-lg);
}
.wallet .eyebrow { color: rgba(255, 255, 255, .75); }
.wallet p { color: rgba(255, 255, 255, .85); text-align: right; }
.wallet-amount { display: flex; align-items: center; gap: 8px; font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.wallet-amount .ic { width: 28px; height: 28px; }
.wallet-amount span { font-size: 15px; font-weight: 600; opacity: .85; }

.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.shop-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 10px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  font: inherit; color: inherit; cursor: pointer; text-align: center;
  transition: transform .08s, border-color .15s;
}
.shop-item:active { transform: scale(.97); }
.shop-item.on { border-color: var(--good); box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); }
.shop-item.previewing { border-color: var(--primary-2); box-shadow: var(--focus); }
.shop-item b { font-size: 14px; }
.sample { height: 52px; display: grid; place-items: center; }
.sample-name { font-size: 34px; font-weight: 800; }
.sample-badge { font-size: 34px; }
.swatch { width: 84px; height: 44px; border-radius: 12px; border: 1px solid var(--line); display: block; }
.item-status { font-size: 13px; font-weight: 650; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.item-status.on { color: var(--good); }
.item-status.price { color: #b45309; }
.item-status.price.short { color: var(--muted); opacity: .7; }

.earned { gap: 18px; }
.earned span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Mağaza əşyaları: ad rəngləri (.nm-*) ---------- */

.nm { font-weight: inherit; }
.nm-badge { font-size: .95em; }
.nm-emerald { color: #059669; }
.nm-ruby { color: #e11d48; }
body.night .nm-emerald { color: #34d399; }
body.night .nm-ruby { color: #fb7185; }
.nm-ocean, .nm-sunset, .nm-gold, .nm-rainbow {
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nm-ocean { background-image: linear-gradient(90deg, #2563eb, #0891b2); }
.nm-sunset { background-image: linear-gradient(90deg, #f97316, #db2777); }
.nm-gold { background-image: linear-gradient(90deg, #a16207, #eab308, #a16207); font-weight: 800; }
.nm-neon { color: #7c3aed; text-shadow: 0 0 10px rgba(139, 92, 246, .55); font-weight: 800; }
body.night .nm-neon { color: #c4b5fd; text-shadow: 0 0 12px rgba(167, 139, 250, .9); }
.nm-rainbow {
  background-image: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e, #3b82f6, #a855f7, #ef4444);
  background-size: 200% 100%; animation: rainbow 4s linear infinite; font-weight: 800;
}
@keyframes rainbow { to { background-position: 200% 0; } }

/* ---------- Mağaza əşyaları: sətir fonları (.bg-*) ---------- */

.player.bg-mint { background: linear-gradient(120deg, #ecfdf5, #d1fae5); border-color: #a7f3d0; color: #064e3b; }
.player.bg-sky { background: linear-gradient(120deg, #eff6ff, #dbeafe); border-color: #bfdbfe; color: #1e3a8a; }
.player.bg-peach { background: linear-gradient(120deg, #fff7ed, #ffe4e6); border-color: #fecdd3; color: #7c2d12; }
.player.bg-midnight { background: linear-gradient(120deg, #1e1b4b, #312e81); border-color: #312e81; color: #fff; }
.player.bg-aurora { background: linear-gradient(120deg, #0f766e, #4f46e5 55%, #a21caf); border-color: transparent; color: #fff; }
.player.bg-royal { background: linear-gradient(120deg, #78350f, #b45309 45%, #facc15); border-color: #b45309; color: #fff; }
.player.bg-midnight .tag, .player.bg-aurora .tag, .player.bg-royal .tag,
.player.bg-midnight .sub, .player.bg-aurora .sub, .player.bg-royal .sub { color: rgba(255, 255, 255, .75) !important; }
.player.bg-midnight .nm-emerald, .player.bg-aurora .nm-emerald, .player.bg-royal .nm-emerald { color: #6ee7b7; }
.player.bg-midnight .nm-ruby, .player.bg-aurora .nm-ruby, .player.bg-royal .nm-ruby { color: #fda4af; }
.player.bg-midnight .nm-neon, .player.bg-aurora .nm-neon, .player.bg-royal .nm-neon { color: #ddd6fe; }
.player[class*=" bg-"] .dot.off { background: rgba(255, 255, 255, .5); }
.player.bg-midnight .rank, .player.bg-aurora .rank, .player.bg-royal .rank { color: rgba(255, 255, 255, .85); }
.swatch.bg-mint { background: linear-gradient(120deg, #ecfdf5, #a7f3d0); }
.swatch.bg-sky { background: linear-gradient(120deg, #eff6ff, #bfdbfe); }
.swatch.bg-peach { background: linear-gradient(120deg, #fff7ed, #fecdd3); }
.swatch.bg-midnight { background: linear-gradient(120deg, #1e1b4b, #312e81); }
.swatch.bg-aurora { background: linear-gradient(120deg, #0f766e, #4f46e5 55%, #a21caf); }
.swatch.bg-royal { background: linear-gradient(120deg, #78350f, #b45309 45%, #facc15); }

/* ---------- Nickname yoxlaması ---------- */

.nick-status { display: flex; align-items: center; gap: 4px; min-height: 18px; font-size: 13px; font-weight: 550; color: var(--muted); }
.nick-status:empty { min-height: 0; }
.nick-status.ok { color: var(--good); }
.nick-status.bad { color: var(--bad); }

/* ---------- Qeydiyyat pəncərəsi (qonaq üçün) ---------- */

.guest-note { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(15, 23, 42, .45);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .18s ease-out;
}
.sheet {
  width: 100%; max-width: 480px; max-height: 92dvh; overflow-y: auto;
  border-radius: 24px 24px 0 0;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  animation: sheet-up .22s ease-out;
}
@keyframes fade { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } }
