/* 
   2048: Покорение Эвереста (Himalayan Expedition Aesthetic)
*/

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --wood-dark: #2A1A10;
  --wood-mid: #4E3423;
  --wood-light: #7B5438;
  --wood-border: #3A2315;
  --gold-accent: #E5B242;
  --cream-bg: #F7F3E9;
  --dark-bg: #141115;
  --text-main: #FFFFFF;
  --text-muted: #E2D7CC;
  --accent-blue: #1E6FA8;
  --accent-red: #CD2E48;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  font-family: 'Rubik', 'Outfit', sans-serif;
  background-color: #0E1620;
  background-image: 
    radial-gradient(ellipse at 50% 10%, rgba(30, 111, 168, 0.35) 0%, transparent 65%),
    linear-gradient(180deg, #0B131E 0%, #161D27 50%, #0D1219 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
}

/* Background mountain landscape silhouette */
body::before {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 280px;
  background: 
    linear-gradient(to top, rgba(11, 19, 30, 0.95), transparent),
    radial-gradient(circle at 50% 100%, rgba(133, 193, 233, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Prayer Flags Garland (Full Width, Same as Tetris) ── */
.prayer-flags {
  display: flex;
  width: 100%;
  height: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1000;
  flex-shrink: 0;
}

.flag {
  flex: 1;
  height: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
  animation: flagWave 3s ease-in-out infinite alternate;
}

.flag.blue   { background-color: #1e6fa8; animation-delay: 0s; }
.flag.white  { background-color: #f8fafc; animation-delay: 0.3s; }
.flag.red    { background-color: #cd2e48; animation-delay: 0.6s; }
.flag.green  { background-color: #43a047; animation-delay: 0.9s; }
.flag.yellow { background-color: #f5a425; animation-delay: 1.2s; }

@keyframes flagWave {
  0%   { transform: translateY(0) skewY(0deg); }
  100% { transform: translateY(2px) skewY(3deg); }
}

/* Main App Wrapper */
.game-container {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 14px 12px 24px;
}

/* Header Area */
.game-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.title-box {
  display: flex;
  flex-direction: column;
}

.title-box h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #FFE29F 0%, #FFAE34 40%, #ED7E24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(255, 174, 52, 0.25);
  line-height: 1.05;
}

.subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: #B5C5D8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.altitude-tag {
  background: rgba(30, 111, 168, 0.35);
  border: 1px solid rgba(133, 193, 233, 0.4);
  color: #85C1E9;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Score Display Boxes */
.scores-wrapper {
  display: flex;
  gap: 8px;
}

.score-box {
  background: linear-gradient(180deg, #382519 0%, #24160E 100%);
  border: 1.5px solid #5C3A24;
  box-shadow: inset 0 1px 1px rgba(255, 230, 200, 0.2), 0 4px 10px rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 6px 14px;
  min-width: 78px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.score-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
}

.score-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #CCA585;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.score-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  margin-top: 1px;
}

/* Controls Toolbar */
.toolbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
  flex-wrap: nowrap;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  font-family: 'Rubik', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  border: none;
  outline: none;
}

.btn:active {
  transform: translateY(2px);
}

.btn-primary {
  background: linear-gradient(180deg, #E2933C 0%, #C46D1E 100%);
  border: 1px solid #FFA852;
  box-shadow: 0 4px 8px rgba(196, 109, 30, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #F0A045 0%, #D47926 100%);
  box-shadow: 0 5px 12px rgba(196, 109, 30, 0.5);
}

.btn-secondary {
  background: linear-gradient(180deg, #2D3A4B 0%, #1A2430 100%);
  border: 1px solid #41556B;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #E2ECF7;
}

.btn-secondary:hover {
  background: linear-gradient(180deg, #37465A 0%, #222E3D 100%);
  color: #FFFFFF;
}

.btn-icon-only {
  padding: 8px 12px;
  font-size: 1rem;
}

/* Board Size Selector in Toolbar */
.board-size-group {
  display: inline-flex;
  align-items: center;
  background: rgba(22, 14, 10, 0.75);
  border: 1px solid #4A3322;
  border-radius: 9px;
  padding: 3px;
  gap: 3px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.btn-board-size {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 4px 10px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 52px;
  transition: all 0.15s ease;
  color: #B5A292;
  text-decoration: none;
  user-select: none;
  outline: none;
}

.btn-board-size:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.btn-board-size .board-dim {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  color: #DDD2C7;
}

.btn-board-size .board-sub {
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1;
  color: #9E8978;
}

.btn-board-size.active {
  background: linear-gradient(180deg, #E2933C 0%, #C46D1E 100%);
  border-color: #FFA852;
  box-shadow: 0 2px 6px rgba(196, 109, 30, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-board-size.active .board-dim {
  color: #FFFFFF;
}

.btn-board-size.active .board-sub {
  color: #FFF2DF;
  font-weight: 600;
}

@media (max-width: 520px) {
  .btn-board-size {
    padding: 6px 8px;
    min-width: 42px;
  }
  .btn-board-size .board-sub {
    display: none;
  }
}

/* Canvas Area */
#canvasContainer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  touch-action: none;
  border-radius: 20px;
}

#gameCanvas {
  display: block;
  border-radius: 18px;
  max-width: 100%;
  height: auto;
  cursor: grab;
}

#gameCanvas:active {
  cursor: grabbing;
}

/* Instructions & Footnote */
.game-info {
  width: 100%;
  margin-top: 14px;
  background: rgba(20, 30, 42, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(80, 110, 140, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #A0B4C8;
}

.game-info-desktop {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 6px;
}

.info-keys {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.key-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #172433;
  border: 1px solid #364C63;
  color: #E0ECF8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  min-height: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 0 #0E1620;
  line-height: 1;
}

.game-info-mobile {
  white-space: nowrap;
  font-size: 0.78rem;
}

/* Modals & Overlays */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(14, 20, 28, 0.88);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 10;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.overlay-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  animation: bounce 1.2s infinite alternate ease-in-out;
}

@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.overlay-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.overlay-desc {
  font-size: 0.95rem;
  color: #CBDCEB;
  max-width: 320px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.overlay-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Guide Modal */
.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-wrapper.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: linear-gradient(180deg, #241A13 0%, #17110C 100%);
  border: 2px solid #5A3C28;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #3F291B;
}

.modal-header h2 {
  font-size: 1.25rem;
  color: var(--gold-accent);
}

.modal-close {
  background: none;
  border: none;
  color: #BA9D88;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.modal-close:hover {
  color: #FFFFFF;
}

.modal-body {
  padding: 16px 20px;
  overflow-y: auto;
}

.guide-intro {
  background: rgba(245, 164, 37, 0.08);
  border: 1px solid rgba(245, 164, 37, 0.28);
  border-radius: 12px;
  padding: 11px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.guide-intro strong {
  color: #facc15;
}

.guide-intro span {
  color: #60a5fa;
  font-weight: 800;
}

.guide-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.guide-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
}

.guide-chip {
  min-width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.guide-info {
  display: flex;
  flex-direction: column;
}

.guide-val {
  font-size: 0.75rem;
  color: #BA9D88;
  font-weight: 600;
}

.guide-name {
  font-size: 0.82rem;
  color: #FFFFFF;
  font-weight: 600;
}

/* Loading Overlay */
#loadingOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #141A22;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: opacity 0.4s ease;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: #E2933C;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  font-size: 0.95rem;
  color: #B5C5D8;
  letter-spacing: 0.5px;
}

/* User Profile Badge Bar */
.user-profile-bar {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.user-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(36, 26, 19, 0.85);
  border: 1.5px solid #5C3A24;
  border-radius: 20px;
  padding: 4px 12px 4px 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.user-profile-badge:hover {
  background: rgba(60, 42, 29, 0.95);
  border-color: #FFA852;
  transform: translateY(-1px);
}

.user-avatar-icon {
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}

.user-name-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #F5EEDB;
  letter-spacing: 0.3px;
}

.user-edit-hint {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-left: 2px;
}

/* Settings Form & Modals */
.modal-settings, .modal-leaderboard {
  max-width: 460px;
}

.settings-section {
  margin-bottom: 18px;
}

.settings-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.settings-hint {
  font-size: 0.75rem;
  color: #A0B4C8;
  margin-top: 2px;
}

.settings-input {
  width: 100%;
  background: #15110E;
  border: 1.5px solid #4D3220;
  border-radius: 8px;
  padding: 10px 14px;
  color: #FFFFFF;
  font-family: 'Rubik', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s;
}

.settings-input:focus {
  border-color: #FFA852;
  box-shadow: 0 0 0 2px rgba(255, 168, 82, 0.25);
}

/* 4 Avatar Presets */
.avatar-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.avatar-option {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid #3E291B;
  border-radius: 12px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.avatar-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #7B5438;
  transform: translateY(-2px);
}

.avatar-option.active {
  background: linear-gradient(180deg, rgba(226, 147, 60, 0.22) 0%, rgba(196, 109, 30, 0.12) 100%);
  border-color: #FFA852;
  box-shadow: 0 0 10px rgba(255, 168, 82, 0.35);
}

.avatar-box {
  width: 44px;
  height: 44px;
  background: #1D140F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.avatar-option span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #D6C3B2;
  text-align: center;
}

.avatar-option.active span {
  color: #FFA852;
}

/* Grid Size Picker (4x4, 5x5, 6x6) */
.grid-size-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.grid-size-option {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid #3E291B;
  border-radius: 12px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.grid-size-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #7B5438;
  transform: translateY(-2px);
}

.grid-size-option.active {
  background: linear-gradient(180deg, rgba(226, 147, 60, 0.22) 0%, rgba(196, 109, 30, 0.12) 100%);
  border-color: #FFA852;
  box-shadow: 0 0 10px rgba(255, 168, 82, 0.35);
}

.grid-size-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
}

.grid-size-option.active .grid-size-name {
  color: #FFA852;
}

.grid-size-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: #B5A292;
}

.grid-size-option.active .grid-size-sub {
  color: #FFD29D;
}

/* Settings Sound Toggle Row */
.settings-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
}

/* Custom Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2D231C;
  border: 1px solid #4D3220;
  transition: 0.25s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #B5A292;
  transition: 0.25s;
}

input:checked + .slider {
  background-color: #C46D1E;
  border-color: #FFA852;
}

input:checked + .slider:before {
  transform: translateX(22px);
  background-color: #FFFFFF;
}

.slider.round {
  border-radius: 26px;
}

.slider.round:before {
  border-radius: 50%;
}

.btn-save {
  padding: 11px;
  font-size: 0.95rem;
}

/* Leaderboard Modal Styling */
.modal-subtitle {
  font-size: 0.78rem;
  color: #A0B4C8;
  font-weight: 400;
  margin-top: 2px;
}

.leaderboard-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 10px 12px;
  transition: all 0.15s ease;
}

.leaderboard-row:hover {
  background: rgba(255, 255, 255, 0.07);
}

.leaderboard-row.is-user-row {
  background: linear-gradient(90deg, rgba(226, 147, 60, 0.18) 0%, rgba(30, 111, 168, 0.15) 100%);
  border: 1.5px solid #FFA852;
  box-shadow: 0 0 10px rgba(255, 168, 82, 0.25);
}

.lb-rank {
  font-size: 1.1rem;
  font-weight: 800;
  width: 28px;
  text-align: center;
  color: #BA9D88;
  flex-shrink: 0;
}

.lb-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #17110C;
  border: 1px solid #4D3220;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.lb-player {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lb-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.lb-you-badge {
  background: #E2933C;
  color: #1A110B;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.lb-item {
  font-size: 0.72rem;
  color: #A0B4C8;
  margin-top: 1px;
}

.lb-score {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-accent);
  text-align: right;
  flex-shrink: 0;
}

.lb-divider {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-accent);
  letter-spacing: 0.5px;
  margin-top: 14px;
  margin-bottom: 4px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 440px) {
  .title-box h1 {
    font-size: 1.8rem;
  }
  .score-box {
    padding: 4px 10px;
    min-width: 68px;
  }
  .score-value {
    font-size: 1.15rem;
  }
  .btn {
    padding: 7px 10px;
    font-size: 0.8rem;
  }
  .guide-list {
    grid-template-columns: 1fr;
  }
  .avatar-picker {
    gap: 6px;
  }
  .avatar-box {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }
}

/* Board size tabs inside leaderboard modal */
.lb-board-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid #3E291B;
}

.lb-tab-btn {
  background: #1A130E;
  border: 1px solid #4D3220;
  border-radius: 8px;
  padding: 6px 12px;
  color: #BBA595;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.lb-tab-btn:hover {
  color: #FFF;
  border-color: #FFA852;
}

.lb-tab-btn.active {
  background: linear-gradient(180deg, #DF6A27 0%, #B8470E 100%);
  color: #FFF;
  border-color: #FFA852;
  box-shadow: 0 0 10px rgba(223, 106, 39, 0.4);
}

