/* BigPool UI refresh — more. Uses the shared design language from app.css (Oct 2026). */

/* The More sheet only exists in the mobile layout (app.css hides it above 720px). */
.more-grabber { display: none; }

@media (max-width: 720px) {
  .mobile-more-backdrop { background: rgba(2,4,3,0.66); animation: more-fade-in .2s ease-out both; }
  .mobile-more-sheet { max-height: min(90dvh, 780px); padding: 8px 14px calc(16px + env(safe-area-inset-bottom)); border: 1px solid rgba(255,255,255,0.08); border-bottom: 0; border-radius: 24px 24px 0 0; background: radial-gradient(120% 40% at 50% 0%, rgba(104,211,145,0.08), transparent 70%), linear-gradient(180deg, #111712, #0b0f0c); box-shadow: 0 -30px 80px rgba(0,0,0,0.6); animation: more-sheet-in .28s cubic-bezier(.2,.8,.2,1) both; }
  .mobile-more-sheet::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, rgba(217,180,93,0.6) 30%, rgba(104,211,145,0.55) 70%, transparent); pointer-events: none; }
  .more-grabber { display: block; width: 40px; height: 4px; margin: 0 auto 8px; border-radius: 2px; background: rgba(255,255,255,0.18); }

  .mobile-more-sheet header { margin-bottom: 12px; }
  .mobile-more-sheet header strong { margin-top: 2px; font: 900 28px/1 BigPoolDisplay, var(--font-heading); letter-spacing: -0.01em; }
  .mobile-more-close { width: 38px; height: 38px; border-color: rgba(255,255,255,0.08); border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)); color: var(--text-soft); font-size: 24px; }

  /* User card */
  .more-user { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid rgba(217,180,93,0.24); border-radius: 18px; background: radial-gradient(120% 140% at 100% 0%, rgba(217,180,93,0.13), transparent 55%), linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)); color: var(--text); transition: border-color .18s, transform .18s; }
  .more-user:active { transform: scale(0.985); }
  .more-user.active { border-color: rgba(217,180,93,0.5); }
  .more-user .avatar { width: 50px; height: 50px; font-size: 16px; box-shadow: 0 0 0 2px rgba(217,180,93,0.55), 0 0 18px rgba(217,180,93,0.2); }
  .more-user-text { min-width: 0; display: grid; gap: 6px; }
  .more-user-text strong { overflow: hidden; font: 800 16px var(--font-heading); text-overflow: ellipsis; white-space: nowrap; }
  .more-user-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .more-user-chips .rank-chip, .more-user-chips .rating-chip { height: 22px; padding: 0 9px; font-size: 10px; letter-spacing: 1px; }
  .more-user-chips .rating-chip b { font-size: 11px; }
  .more-user-cta { display: inline-flex; align-items: center; gap: 3px; color: var(--gold); font: 800 12px var(--font-heading); }
  .more-user-cta i { font-size: 18px; font-style: normal; line-height: 1; }

  .mobile-more-sheet nav { display: block; }

  /* Quick tiles: Messages, Notifications, Wallet */
  .more-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
  .mobile-more-sheet .more-tiles a { position: relative; min-height: 82px; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; padding: 11px 11px 10px; border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)); color: var(--text); font: 800 12px var(--font-heading); transition: border-color .18s, background .18s, transform .18s; }
  .more-tiles .mobile-more-icon { margin-bottom: auto; width: 34px; height: 34px; flex: none; border-radius: 11px; -webkit-mask: none; mask: none; background: rgba(104,211,145,0.12); box-shadow: inset 0 0 0 1px rgba(104,211,145,0.25); position: relative; }
  .more-tiles .mobile-more-icon::after { content: ""; position: absolute; inset: 8px; background: var(--green-bright); -webkit-mask: var(--sidebar-icon) center / contain no-repeat; mask: var(--sidebar-icon) center / contain no-repeat; }
  .more-tiles .sidebar-icon-wallet { background: rgba(217,180,93,0.12); box-shadow: inset 0 0 0 1px rgba(217,180,93,0.28); }
  .more-tiles .sidebar-icon-wallet::after { background: var(--gold); }
  .more-label { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .more-badge { position: absolute; top: 10px; right: 10px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 6px; border-radius: 999px; background: linear-gradient(180deg, #86e6a9, var(--green)); color: #07120b; font: 900 10px var(--font-heading); font-variant-numeric: tabular-nums; box-shadow: 0 0 12px rgba(104,211,145,0.55); }
  .more-badge[hidden] { display: none; }
  .more-value { margin-top: -5px; color: var(--gold); font: 900 13px BigPoolDisplay, var(--font-heading); font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 0 16px rgba(217,180,93,0.35); }

  /* Grouped lists */
  .more-group { margin-top: 14px; }
  .mobile-more-sheet .more-group-label { margin: 0 4px 8px; color: #6b766f; font: 800 10px var(--font-heading); letter-spacing: 1.8px; text-transform: uppercase; }
  .more-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mobile-more-sheet .more-list a { min-height: 50px; gap: 10px; padding: 0 12px; border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)); color: var(--text-soft); font: 700 13px var(--font-heading); transition: border-color .18s, background .18s, transform .18s; }
  .more-list .mobile-more-icon { width: 18px; height: 18px; flex-basis: 18px; color: #9aa59f; }

  /* Active + pressed states */
  .mobile-more-sheet .more-tiles a:active, .mobile-more-sheet .more-list a:active { transform: scale(0.97); }
  .mobile-more-sheet .more-tiles a.active, .mobile-more-sheet .more-list a.active { border-color: rgba(104,211,145,0.42); background: linear-gradient(135deg, rgba(104,211,145,0.16), rgba(104,211,145,0.04) 70%); color: #f2fbf5; box-shadow: 0 0 0 1px rgba(104,211,145,0.08), 0 10px 24px -16px rgba(104,211,145,0.6); }
  .more-list a.active .mobile-more-icon { color: var(--green-bright); filter: drop-shadow(0 0 6px rgba(104,211,145,0.6)); }
  .more-tiles a.active .mobile-more-icon { box-shadow: inset 0 0 0 1px rgba(104,211,145,0.55), 0 0 14px rgba(104,211,145,0.3); }

  .mobile-more-logout { min-height: 46px; margin-top: 16px; border-color: rgba(240,125,115,0.22); border-radius: 14px; background: rgba(240,125,115,0.04); font-family: var(--font-heading); font-size: 13px; transition: background .18s, border-color .18s; }
  .mobile-more-logout:active { background: rgba(240,125,115,0.1); border-color: rgba(240,125,115,0.4); }
}

@keyframes more-sheet-in { from { opacity: 0.4; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes more-fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .mobile-more-sheet, .mobile-more-backdrop { animation: none !important; }
  .more-user, .mobile-more-sheet .more-tiles a, .mobile-more-sheet .more-list a { transition: none; }
}
