/*
 * UI/UX enhancement layer
 *
 * This file owns newer interaction patterns that sit above the legacy game
 * stylesheet. Keeping these components isolated prevents another redesign
 * layer from growing inside style.css and gives each flow a clear owner.
 */

/* Home journey switch */
.home-flow-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  background: rgba(20, 34, 56, 0.82);
}

.home-flow-tab {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--color-mist);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-flow-tab.active {
  color: #ffffff;
  background: var(--color-surface2);
  border-color: rgba(240, 71, 60, 0.5);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
}

.home-flow-tab:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.home-flow-panel {
  width: 100%;
}

#create-game-flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Room capacity picker */
.account-access-panel {
  overflow: visible;
  z-index: 60;
}

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

.capacity-picker {
  position: relative;
  width: 100%;
}

.capacity-picker-trigger {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  color: var(--text-main);
  background: linear-gradient(180deg, var(--color-surface2), #172942);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.capacity-picker-trigger:hover,
.capacity-picker-trigger[aria-expanded="true"] {
  border-color: rgba(240, 71, 60, 0.7);
  box-shadow: 0 0 0 3px rgba(240, 71, 60, 0.12);
}

.capacity-picker-chevron {
  color: var(--color-mist);
  transition: transform 0.2s ease;
}

.capacity-picker-trigger[aria-expanded="true"] .capacity-picker-chevron {
  transform: rotate(180deg);
}

.capacity-options {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline: 0;
  z-index: 90;
  max-height: 190px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  background: rgba(20, 34, 56, 0.98);
  border: 1px solid rgba(240, 71, 60, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55);
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) rgba(255, 255, 255, 0.05);
}

.capacity-options::-webkit-scrollbar {
  width: 4px;
}

.capacity-options::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
}

.capacity-options::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-accent), var(--color-gold));
  border-radius: var(--radius-full);
}

.capacity-option {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-mist);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.capacity-option:hover,
.capacity-option:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.capacity-option[aria-selected="true"] {
  color: #ffffff;
  background: rgba(240, 71, 60, 0.18);
}

.capacity-option[aria-selected="true"]::after {
  content: '\F26E';
  font-family: bootstrap-icons;
  color: var(--color-accent);
}

/* Host invitation shortcuts */
.host-invite-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-invite-tool {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  background: var(--color-surface2);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 750;
  cursor: pointer;
}

.btn-invite-tool:hover,
.btn-invite-tool[aria-expanded="true"] {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.12);
}

.btn-invite-tool:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Persistent host action */
.host-start-sticky {
  position: sticky;
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 40;
  padding: 4px;
  border-radius: var(--radius-xl);
  background: rgba(10, 18, 32, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -8px 24px rgba(10, 18, 32, 0.6);
}

/* ─── Points & Referral System Styles ─────────────────────────────────────── */
.btn-points-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.3));
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: var(--radius-pill);
  color: #fbbf24;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.btn-points-pill:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.45));
  border-color: #fbbf24;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

.points-icon {
  font-size: 1rem;
}

.points-unit {
  font-size: 0.72rem;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

/* Profile Dropdown Points Card */
.profile-points-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-points-title {
  font-size: 0.8rem;
  color: var(--color-mist);
}

.profile-points-val {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fbbf24;
}

.btn-profile-referral, .btn-claim-daily {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-align: right;
  transition: background 0.18s ease;
}

.btn-profile-referral:hover, .btn-claim-daily:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-claim-daily {
  color: #38bdf8;
}

.btn-profile-referral {
  color: #34d399;
}

/* Referral Modal */
.referral-share-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  padding: 6px 8px;
  margin: 12px 0 16px 0;
}

.referral-url-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #38bdf8;
  font-family: monospace;
  font-size: 0.88rem;
  direction: ltr;
  text-align: left;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-ref {
  padding: 6px 14px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 750;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-copy-ref:hover {
  background: #ff5b4f;
}

.referral-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

@media (min-width: 440px) {
  .referral-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.referral-stat-card {
  background: rgba(20, 34, 56, 0.7);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 8px 6px;
  text-align: center;
}

.referral-stat-num {
  font-size: 1.18rem;
  font-weight: 900;
  color: #fff;
}

.referral-stat-lbl {
  font-size: 0.68rem;
  color: var(--color-mist);
  margin-top: 2px;
}

.referral-recent-list {
  max-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 6px;
}

.referral-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(30, 41, 59, 0.6);
  font-size: 0.78rem;
}

.referral-recent-item .user-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  font-weight: 600;
}

.referral-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-registered {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-guest-active {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-clicked {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.empty-state-sm {
  text-align: center;
  color: var(--color-mist);
  font-size: 0.78rem;
  padding: 10px;
}

.referral-perks-list {
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--color-mist);
  line-height: 1.7;
}

.referral-perks-list strong {
  color: var(--text-main);
}

/* Welcome Referral Banner */
.referral-welcome-banner {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.25));
  border-bottom: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  padding: 8px 16px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ─── Player Passport / Profile Modal ─── */
.passport-id-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin: 12px 0;
}

.passport-avatar-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.8);
  flex-shrink: 0;
}

.passport-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.passport-avatar-fallback {
  font-size: 1.8rem;
}

.passport-info {
  flex: 1;
  min-width: 0;
}

.passport-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.passport-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.passport-badge-verified {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.passport-email {
  font-size: 0.78rem;
  color: var(--color-mist);
  margin-top: 2px;
  direction: ltr;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.passport-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 4px;
}

.passport-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

@media (max-width: 440px) {
  .passport-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.passport-stat-item {
  background: rgba(20, 34, 56, 0.7);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 10px 6px;
  text-align: center;
}

.passport-stat-icon {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.passport-stat-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
}

.passport-stat-lbl {
  font-size: 0.68rem;
  color: var(--color-mist);
  margin-top: 2px;
}

.passport-badges-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.passport-section-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 8px;
}

.passport-badges-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.passport-achieve-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  transition: transform 0.2s;
}

.passport-achieve-badge.active {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.passport-achieve-badge.locked {
  background: rgba(30, 41, 59, 0.4);
  border: 1px dashed rgba(148, 163, 184, 0.25);
  color: #64748b;
  opacity: 0.6;
}

.achieve-icon {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.achieve-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.passport-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GAMING SIDE DRAWER (PLAYER & CONTROL HUB)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Body locking when drawer is open */
body.drawer-open {
  overflow: hidden !important;
}

/* Dark Frosted Glass Backdrop */
.game-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 20, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.game-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Side Drawer Panel */
.game-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(88vw, 360px);
  max-width: 100vw;
  background: linear-gradient(175deg, #0d182b 0%, #080e1a 100%);
  border-left: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.85), inset 1px 0 0 rgba(255, 255, 255, 0.05);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  user-select: none;
}

.game-drawer.open {
  transform: translateX(0);
}

/* Drawer Header */
.game-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  background: rgba(13, 24, 43, 0.6);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.game-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-drawer-logo {
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.game-drawer-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.game-drawer-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.game-drawer-close-btn:hover {
  background: rgba(255, 77, 109, 0.2);
  border-color: rgba(255, 77, 109, 0.4);
  color: #ff4d6d;
  transform: rotate(90deg);
}

/* Drawer Scrollable Content */
.game-drawer-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.game-drawer-content::-webkit-scrollbar {
  width: 5px;
}
.game-drawer-content::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 4px;
}

/* Authenticated User Card */
.game-drawer-user-card {
  min-height: 100px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-xl);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.game-drawer-user-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.drawer-user-header {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.drawer-avatar-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  background: #0f172a;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.drawer-user-avatar {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.drawer-avatar-fallback {
  font-size: 1.8rem;
  line-height: 1;
}

.drawer-user-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.drawer-user-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  word-break: break-word;
  line-height: 1.35;
  margin: 0;
}

.drawer-user-email {
  font-size: 0.76rem;
  color: #94a3b8;
  word-break: break-all;
  direction: ltr;
  text-align: right;
  margin: 0;
}

.drawer-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
  padding: 2px 8px;
  font-size: 0.68rem;
  color: #7dd3fc;
  font-weight: 700;
  width: fit-content;
  margin-top: 3px;
}

/* Guest User Card */
.game-drawer-guest-card {
  min-height: 100px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-xl);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
}

.drawer-guest-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-guest-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.drawer-guest-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.drawer-guest-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.4;
}

.btn-drawer-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.2), rgba(66, 133, 244, 0.35));
  border: 1px solid rgba(66, 133, 244, 0.5);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.btn-drawer-google:hover {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.3), rgba(66, 133, 244, 0.5));
  border-color: #60a5fa;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(66, 133, 244, 0.3);
}

/* Points & Rewards Section */
.drawer-points-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-points-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.18));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-points-head {
  display: flex;
  flex-direction: column;
}

.drawer-points-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fcd34d;
}

.drawer-points-total {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 2px;
}

.drawer-points-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* Navigation Section */
.drawer-nav-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-section-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
  padding: 0 6px 4px 6px;
  text-transform: uppercase;
}

.game-drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20, 32, 54, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: right;
  width: 100%;
  box-sizing: border-box;
}

.game-drawer-nav-item:hover {
  background: rgba(30, 48, 80, 0.75);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateX(-3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.game-drawer-nav-item:active {
  transform: scale(0.98);
}

.nav-item-icon-box {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.passport-icon-box {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.leaderboard-icon-box {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.referral-icon-box {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.history-icon-box {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.sound-icon-box {
  background: rgba(236, 72, 153, 0.18);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.nav-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.nav-item-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
}

.nav-item-desc {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 1px;
}

.nav-item-chevron {
  font-size: 0.8rem;
  color: #64748b;
  transition: transform 0.2s ease;
}

.game-drawer-nav-item:hover .nav-item-chevron {
  color: #38bdf8;
  transform: translateX(-2px);
}

.drawer-switch-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.drawer-switch-badge.on {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.drawer-switch-badge.off {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* Drawer Footer */
.game-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 18, 32, 0.7);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.btn-drawer-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: var(--radius-lg);
  padding: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-drawer-logout:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #ffffff;
  transform: translateY(-1px);
}

.game-drawer-copyright {
  text-align: center;
  font-size: 0.68rem;
  color: #64748b;
}


