

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700;800&family=Anek+Bangla:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-bangla: 'Noto Sans Bengali', 'Anek Bangla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-english: 'Outfit', sans-serif;

  
  --sa-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --sa-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  
  
  --bg-gradient: linear-gradient(135deg, #eef2f7 0%, #dfe7f0 50%, #e3f2fd 100%);
  --app-gradient: linear-gradient(180deg, #f0f8ff 0%, #e0f2fe 30%, #ecfdf5 70%, #d1fae5 100%);
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --secondary: #0d9488;
  --accent-gold: #f59e0b;
  --accent-orange: #ea580c;
  --accent-red: #ef4444;
  --accent-green: #10b981;
  
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
  
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --bg-dark: #0f172a;
  --card-dark: #1e293b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-bangla);
  background: var(--bg-gradient);
  min-height: 100vh;
  min-height: 100dvh;   
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}


#phone-container {
  position: relative;
  width: 412px;
  height: 892px; 
  background: #000;
  border-radius: 48px;
  padding: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4),
              0 0 0 4px #262626,
              0 0 0 10px #0a0a0a;
  transition: all 0.3s ease;
}

#phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--app-gradient);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  
  padding-top: var(--sa-top);
}


.dynamic-island {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 30px;
  background: #000;
  border-radius: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dynamic-island::before {
  content: '';
  width: 12px;
  height: 12px;
  background: #111;
  border-radius: 50%;
  box-shadow: inset 0 0 2px rgba(255,255,255,0.4);
}

.dynamic-island::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #1a0033;
  border-radius: 50%;
  box-shadow: 0 0 1px #00e5ff;
}


.status-bar {
  height: 48px;
  padding: 15px 24px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-english);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  z-index: 999;
}

.status-bar .right-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.status-bar svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}


.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  z-index: 1000;
}


.screen {
  display: none;
  overflow-y: auto;
  flex-direction: column;
  flex: 1;
  width: 100%;
  height: calc(100% - 48px); 
  position: relative;
  background: var(--app-gradient);
  
  padding: 10px 20px 92px 20px; 
  
  padding-bottom: calc(92px + var(--sa-bottom));
}

.screen.active {
  display: flex;
}


.screen::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.screen,
.no-scrollbar {
  -ms-overflow-style: none;  
  scrollbar-width: none;  
}

#screen-game-over.active {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 88px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px 22px 10px;
  z-index: 990;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.nav-item svg {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  transition: transform 0.2s ease;
}

.nav-item:hover svg {
  transform: translateY(-2px);
}

.nav-item.active {
  color: var(--primary);
}


.nav-item.center-action {
  position: relative;
  top: -18px;
}

.center-action-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary) 0%, #0f766e 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  box-shadow: 0 8px 16px rgba(13, 148, 136, 0.4),
              0 0 0 4px rgba(255,255,255,0.9);
  transition: all 0.3s ease;
}

.center-action-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(13, 148, 136, 0.5),
              0 0 0 6px rgba(255,255,255,0.9);
}

.center-action-btn svg {
  width: 28px;
  height: 28px;
  margin: 0;
  fill: currentColor;
}



.glass-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  padding: 20px;
  margin-bottom: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


#screen-login {
  padding-bottom: 20px;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #e0f2fe 0%, #d1fae5 100%);
}

.login-logo-container {
  margin-bottom: 40px;
  animation: float 4s ease-in-out infinite;
}

.login-logo {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-dark);
  text-shadow: 0 4px 10px rgba(0,0,0,0.06);
  letter-spacing: -1px;
}

.login-tagline {
  font-family: var(--font-english);
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.login-illustration {
  width: 220px;
  height: 220px;
  margin-bottom: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.login-illustration::after {
  content: '✨';
  position: absolute;
  font-size: 24px;
  animation: spin 8s linear infinite;
}

.login-buttons-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
}

.btn-login {
  width: 100%;
  padding: 14px 20px;
  border-radius: 16px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn-login:active {
  transform: scale(0.98);
}

.btn-fb {
  background: #1877f2;
  color: #fff;
}

.btn-fb:hover {
  background: #166fe5;
}

.btn-google {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}

.btn-google:hover {
  background: #f9fafb;
}

.btn-guest {
  background: rgba(255,255,255,0.72);
  color: var(--text-dark);
  border: 1px solid rgba(255,255,255,0.4);
}


.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 5px 0;
}

.home-title-block {
  display: flex;
  flex-direction: column;
}

.home-app-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
}

.home-app-tagline {
  font-family: var(--font-english);
  font-size: 11px;
  color: var(--text-muted);
}

.profile-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--glass-border);
  padding: 4px 12px 4px 6px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: var(--glass-shadow);
}

.profile-badge img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.profile-badge span {
  font-family: var(--font-english);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}


.people-card {
  width: 100%;
  height: 130px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.people-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.live-challenge-card {
  background: linear-gradient(135deg, rgba(209, 250, 229, 0.8) 0%, rgba(240, 253, 250, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 16px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.08);
}

.live-label {
  display: inline-block;
  background: #10b981;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.live-challenge-title {
  font-size: 18px;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 4px;
}

.live-challenge-desc {
  font-size: 13px;
  color: #047857;
  margin-bottom: 12px;
}


.btn-participate {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  width: 100%;
  padding: 12px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
  position: relative;
}

.btn-participate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.6);
  opacity: 0;
  animation: btnGlowFade 2s ease-in-out infinite;
  
  pointer-events: none;
}

@keyframes btnGlowFade {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1; }
}


@media (prefers-reduced-motion: reduce) {
  .btn-participate::after { animation: none; opacity: 0; }
}

.btn-participate:active {
  transform: scale(0.98);
}


.rickshaw-container {
  position: absolute;
  bottom: 50px;
  right: 15px;
  width: 60px;
  height: 50px;
  animation: rickshawDrive 6s infinite linear;
}

.rickshaw-container svg {
  width: 100%;
  height: 100%;
}


.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

.menu-item {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--glass-shadow);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.menu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.06);
}

.menu-item:active {
  transform: scale(0.95);
}

.menu-icon-container {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--primary);
}

.menu-item:nth-child(1) .menu-icon-container { background: #fee2e2; color: #ef4444; }
.menu-item:nth-child(2) .menu-icon-container { background: #e0f2fe; color: #0284c7; }
.menu-item:nth-child(3) .menu-icon-container { background: #ffedd5; color: #f97316; }
.menu-item:nth-child(4) .menu-icon-container { background: #ecfdf5; color: #10b981; }

.menu-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}


.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.back-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.back-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--text-dark);
  stroke-width: 2.5;
}

.question-card {
  min-height: 130px; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 18px; 
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 12px; 
  position: relative;
  overflow: hidden;
}

.question-card::before {
  content: '“';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 80px;
  font-family: serif;
  color: rgba(2, 132, 199, 0.08);
}

.answer-input-container {
  position: relative;
  width: 100%;
  margin-bottom: 12px; 
  z-index: 30;
}

.answer-input {
  width: 100%;
  padding: 16px 50px 16px 20px;
  border-radius: 18px;
  border: 2px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.8);
  font-family: var(--font-bangla);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  outline: none;
  box-shadow: var(--glass-shadow);
  transition: all 0.2s ease;
}

.answer-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.sparkle-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  
}

.sparkle-btn:active { transform: translateY(-50%) scale(0.92); }


.suggestions-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px; 
  justify-content: center;
}

.suggestion-bubble {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--glass-border);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggestion-bubble.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.suggestion-bubble:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}


.timer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px; 
  margin-bottom: 35px; 
}

.circular-timer {
  position: relative;
  width: 90px; 
  height: 90px; 
}

.circular-timer svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.circular-timer circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.circular-timer .bg-ring {
  stroke: rgba(0,0,0,0.05);
}

.circular-timer .progress-ring {
  stroke: var(--accent-green);
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.1s linear, stroke 0.3s ease;
}

.timer-text-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.timer-sec {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-english);
}

.timer-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: -3px;
}


.results-title-header {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-dark);
}


.chart-container {
  height: 220px; 
  display: flex;
  justify-content: flex-start;
  gap: 22px; 
  align-items: flex-end;
  padding: 15px 10px;
  margin-bottom: 6px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 28px;
  border: 1px solid var(--glass-border);
  perspective: 800px;
  transform-style: preserve-3d;
}

.chart-bar-3d-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  max-width: 65px;
  height: 100%;
  justify-content: flex-end;
  transform-style: preserve-3d;
  position: relative;
}

.chart-value-3d {
  flex: 0 0 22px;
  min-height: 22px;
  line-height: 22px;
  font-family: var(--font-english);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-dark);
  
  opacity: 0;
  transform: translateZ(20px);
  transition: opacity 0.3s ease;
}

.bar-3d-container {
  position: relative;
  width: 36px;
  height: 150px; 
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  transform-style: preserve-3d;
}

.bar-3d {
  position: relative;
  width: 30px; 
  height: 0%;
  
  transition: height 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.bar-face {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bar-front {
  background: linear-gradient(0deg, var(--bar-dark) 0%, var(--bar-light) 100%);
  transform: translateZ(8px);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.bar-side {
  background: var(--bar-side);
  transform: rotateY(90deg) translateZ(13px);
  width: 16px;
  left: auto;
  right: 0;
  transform-origin: right center;
  border-radius: 4px 4px 0 0;
}

.bar-top {
  height: 16px;
  background: var(--bar-top);
  transform: rotateX(-90deg);
  transform-origin: top;
  top: 0;
  border-radius: 6px 6px 0 0;
}

.chart-label-3d {
  position: absolute;
  top: 100%;
  left: calc(100% + 2px); 
  transform: translateZ(10px) rotate(-90deg);
  transform-origin: left top; 
  width: 145px;
  height: 18px; 
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  line-height: 1.2;
  white-space: nowrap; 
  text-overflow: ellipsis; 
  color: var(--text-muted);
  overflow: hidden;
  display: block;
  
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chart-bar-3d-wrapper.user-bar .chart-label-3d {
  color: var(--primary-dark);
  font-weight: 800;
}

.chart-bar-3d-wrapper.user-bar .chart-value-3d {
  color: var(--primary-dark);
  font-size: 12px;
}


.answers-list-container {
  overflow-y: auto;
  flex: 1;
  margin-bottom: 20px;
  padding-right: 2px;
}

.answers-list-container::-webkit-scrollbar {
  width: 4px;
}

.answers-list-container::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
}

.result-item-row {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin-bottom: 8px;
  gap: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.result-item-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #fff;
}

.result-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.result-item-ans {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.result-item-user {
  font-size: 11px;
  color: var(--text-muted);
}

.result-item-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.result-item-percentage {
  font-family: var(--font-english);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.result-item-pts {
  font-size: 11px;
  color: var(--text-muted);
}


.bottom-sheet {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-radius: 32px 32px 36px 36px;
  padding: 24px 20px 30px 20px;
  box-shadow: 0 -15px 40px rgba(0,0,0,0.12);
  z-index: 1001;
  text-align: center;
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.bottom-sheet.open {
  bottom: 0;
}

.sheet-handle {
  width: 40px;
  height: 5px;
  background: #e2e8f0;
  border-radius: 3px;
  margin: 0 auto 16px auto;
}

.sheet-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.sheet-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.btn-sheet-next {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}


#confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 998;
}


.strike-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(239, 68, 68, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1005;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.strike-overlay.active {
  opacity: 1;
  animation: flashRed 0.5s ease forwards;
}

.strike-cross {
  font-size: 130px;
  color: var(--accent-red);
  font-family: var(--font-english);
  font-weight: 800;
  text-shadow: 0 8px 30px rgba(239, 68, 68, 0.5);
  transform: scale(0.2);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.strike-overlay.active .strike-cross {
  transform: scale(1);
}


.rewards-header-card {
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  color: #fff;
  padding: 24px 20px;
  border-radius: 24px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.15);
}

.rewards-header-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  margin-bottom: 10px;
}

.rewards-pts-title {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 2px;
}

.rewards-pts-value {
  font-family: var(--font-english);
  font-size: 28px;
  font-weight: 800;
}

.rewards-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.rewards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex: 1;
}

.reward-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--glass-shadow);
}

.reward-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.reward-icon-bkash { background: #e2136e; font-family: var(--font-bangla); }
.reward-icon-discount { background: #ff9800; }
.reward-icon-recharge { background: #4caf50; }

.reward-info {
  flex: 1;
}

.reward-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.reward-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-reward-collect {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-reward-collect:hover {
  background: var(--primary-dark);
}

.btn-reward-collect.collected {
  background: #ecfdf5;
  color: #10b981;
  border: 1px solid #d1fae5;
  cursor: default;
}


.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 1010;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 320px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none; 
}
.modal-content::-webkit-scrollbar {
  display: none; 
}

.modal-close-btn {
  margin-top: 16px;
  background: #f1f5f9;
  border: none;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}


.friends-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  text-align: left;
  margin: 14px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.friends-list::-webkit-scrollbar {
  display: none;
}

.friend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}

.friend-pic-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.friend-pic-name img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.friend-row span {
  font-size: 13px;
  font-weight: 600;
}

.btn-friend-invite {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.btn-friend-invite.invited {
  background: #f1f5f9;
  color: var(--text-muted);
}


.lobby-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

.lobby-code-box {
  background: rgba(2, 132, 199, 0.08);
  border: 1px dashed var(--primary);
  padding: 8px 16px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-english);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  cursor: default;
}

#screen-lobby .lobby-code-box { justify-content: center; gap: 6px; min-width: 0; padding: 8px 9px; margin-bottom: 10px; cursor: default; }
#screen-lobby .lobby-code-label { flex: 0 0 auto; white-space: nowrap; font-size: 12px; }
#screen-lobby #lobby-code { min-width: 0; color: var(--primary); font-size: clamp(12px, 3.8vw, 17px); font-weight: 800; white-space: nowrap; letter-spacing: -.02em; }
#screen-lobby .lobby-code-actions { display: flex; align-items: center; gap: 5px; margin-left: auto; flex: 0 0 auto; }
#screen-lobby .lobby-code-actions button { min-height: 34px; border-radius: 10px; cursor: pointer; }
#screen-lobby #lobby-copy-code { width: 34px; padding: 0; border: 1px solid #b6dace; background: #fff; color: #176b61; font-size: 16px; }
#screen-lobby #lobby-invite-friends { padding: 0 8px; border: 1px solid #048c70; background: linear-gradient(135deg,#12ba91,#078d74); color: #fff; font: 750 clamp(10px, 3vw, 12px) var(--font-bangla); white-space: nowrap; }

.lobby-players-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.lobby-player-card {
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
}

.lobby-player-card.ready {
  border-color: var(--accent-green);
}

.lobby-player-card.ready::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 10px;
  background: var(--accent-green);
  color: #fff;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 10px;
  line-height: 16px;
  font-weight: 700;
}

.lobby-player-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-bottom: 8px;
  border: 2px solid #fff;
}

.lobby-player-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
}

.lobby-player-status {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.lobby-player-status.ready-text {
  color: var(--accent-green);
  font-weight: 600;
}

.lobby-player-avatar { object-fit: cover; }
.lobby-player-friend-btn { position: absolute; top: -5px; right: -5px; z-index: 10; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 2px solid var(--primary); border-radius: 50%; background: #fff; box-shadow: 0 2px 5px #0003; cursor: pointer; }
.lobby-player-friend-btn.is-friend { border-color: var(--accent-green); cursor: default; }
.lobby-players-grid.is-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lobby-players-grid.is-compact .lobby-player-card { min-width: 0; padding: 12px 5px 10px; border-radius: 15px; }
.lobby-players-grid.is-compact .lobby-player-card.ready::after { top: 4px; left: 4px; right: auto; width: 14px; height: 14px; line-height: 14px; }
.lobby-players-grid.is-compact .lobby-player-friend-btn { top: -4px; right: -8px; width: 23px; height: 23px; }
.lobby-players-grid.is-compact .lobby-player-friend-btn svg { width: 12px; height: 12px; }
.lobby-players-grid.is-compact .lobby-player-avatar { width: 38px; height: 38px; margin-bottom: 5px; }
.lobby-players-grid.is-compact .lobby-player-name { width: 100%; min-width: 0; min-height: 2.6em; font-size: 10.5px; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lobby-players-grid.is-compact .lobby-player-status { font-size: 9px; line-height: 1.2; }

.settings-couple-role { margin: 0 0 20px; padding: 13px; border: 1px solid #d5c9e3; border-radius: 15px; background: linear-gradient(140deg,#fffaf2,#f5edff); text-align: left; }
.settings-couple-role strong { display: block; color: #594774; font-size: 13px; }
.settings-couple-role p { margin: 5px 0 11px; color: #726b7c; font-size: 11px; line-height: 1.4; }
.settings-couple-role__choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.settings-couple-role__choices button { min-height: 42px; padding: 6px 4px; border: 1px solid #cbb9df; border-radius: 11px; background: #fff; color: #655278; font: 700 11px var(--font-bangla); }
.settings-couple-role__choices button.is-active { border-color: #0b9876; background: #e2f8ee; color: #087659; box-shadow: inset 0 0 0 1px #0b9876; }
.settings-couple-role__confirm { margin-top: 10px; padding: 10px; border-radius: 11px; background: #eef9f2; }
#settings-couple-role-confirm[hidden] { display: none; }
.settings-couple-role__confirm span { display: block; margin-bottom: 8px; font-size: 11px; }
.settings-couple-role__confirm button { min-height: 34px; margin-right: 5px; padding: 4px 9px; border: 0; border-radius: 8px; background: #0da77e; color: #fff; font: 750 11px var(--font-bangla); }
.settings-couple-role__confirm button:last-child { background: #889591; }
#settings-couple-role-status { display: block; min-height: 16px; margin-top: 7px; color: #566c65; font-size: 10px; }

.btn-start-game {
  background: linear-gradient(135deg, var(--accent-green) 0%, #059669 100%);
  color: #fff;
  border: none;
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
  margin-top: auto;
}


.voice-drawer {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: #0f172a;
  color: #fff;
  border-radius: 32px 32px 36px 36px;
  padding: 24px 20px 30px 20px;
  z-index: 1020;
  text-align: center;
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
}

.voice-drawer.open {
  bottom: 0;
}

.voice-drawer-handle {
  width: 40px;
  height: 5px;
  background: #334155;
  border-radius: 3px;
  margin: 0 auto 16px auto;
}

.voice-wave-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: 60px;
  margin: 16px 0;
}

.voice-bar {
  width: 4px;
  height: 8px;
  background: var(--secondary);
  border-radius: 2px;
  transition: height 0.1s ease;
}

.voice-bar.animating {
  animation: voiceWave 1.2s infinite ease-in-out;
}

.voice-bar:nth-child(2) { animation-delay: 0.1s; }
.voice-bar:nth-child(3) { animation-delay: 0.2s; }
.voice-bar:nth-child(4) { animation-delay: 0.3s; }
.voice-bar:nth-child(5) { animation-delay: 0.4s; }
.voice-bar:nth-child(6) { animation-delay: 0.5s; }
.voice-bar:nth-child(7) { animation-delay: 0.6s; }

.voice-status {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 20px;
}

.voice-fallback-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 10px;
}

.voice-option-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 12px;
  border-radius: 12px;
  font-family: var(--font-bangla);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.voice-option-btn:hover {
  background: var(--secondary);
  border-color: var(--secondary);
}

.btn-voice-close {
  background: none;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 10px;
  width: 100%;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}



@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}


@keyframes wave {
  from { transform: translateX(-25%); }
  50%  { transform: translateX(0%); }
  to   { transform: translateX(-25%); }
}


@keyframes popIn {
  from { opacity: 0; transform: scale(.86); }
  60%  { opacity: 1; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: translateY(-50%) scale(1); opacity: 0.8; }
  50% { transform: translateY(-50%) scale(1.15); opacity: 1; }
  100% { transform: translateY(-50%) scale(1); opacity: 0.8; }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3); }
  50% { box-shadow: 0 6px 22px rgba(16, 185, 129, 0.6); }
  100% { box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3); }
}

@keyframes flashRed {
  0%, 100% { background: rgba(239, 68, 68, 0); }
  20%, 80% { background: rgba(239, 68, 68, 0.15); }
}

@keyframes rickshawDrive {
  0% { transform: translateX(5px) rotate(0deg); }
  10% { transform: translateX(5px) rotate(-1deg); }
  20% { transform: translateX(3px) rotate(1deg); }
  30% { transform: translateX(0px) rotate(0deg); }
  45% { transform: translateX(-3px) rotate(-1deg); }
  55% { transform: translateX(-3px) rotate(1deg); }
  70% { transform: translateX(0px) rotate(0deg); }
  85% { transform: translateX(3px) rotate(-1deg); }
  100% { transform: translateX(5px) rotate(0deg); }
}

@keyframes voiceWave {
  0%, 100% { height: 8px; }
  50% { height: 42px; }
}


@media (max-width: 480px) and (orientation: portrait) and (max-aspect-ratio: 2/3) {
  body {
    background: var(--app-gradient);
  }
  
  #phone-container {
    position: relative;
    width: 100%;
    
    height: 100vh;
    height: 100dvh;
    zoom: 1 !important;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }
  
  #phone-screen {
    border-radius: 0;
  }
  
  .bottom-nav {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    height: 70px;
    padding-bottom: 5px;
  }
}


.autocomplete-dropdown {
  display: none; 
  flex-direction: column;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0,0,0,0.05);
  margin-top: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px 0;
  animation: slideDown 0.2s ease;
}

.suggestion-item {
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: rgba(2, 132, 199, 0.08);
  color: var(--primary-dark);
}

.suggestion-icon {
  color: var(--text-muted);
  opacity: 0.6;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.diamond-timeline-wrapper {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 10px 5px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  margin-bottom: 20px;
  -ms-overflow-style: none; 
  scrollbar-width: none; 
}
.diamond-timeline-wrapper::-webkit-scrollbar {
  display: none;
}
.timeline-segment {
  display: flex;
  align-items: center;
}
.diamond-node {
  width: 38px;
  height: 38px;
  background: transparent;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.diamond-node.played {
  background: var(--primary);
  border: none;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.4), inset 2px 2px 5px rgba(255,255,255,0.3);
}
.diamond-node.played.perfect {
  background: var(--accent-green);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}
.diamond-node.current {
  border: 3px solid var(--primary);
  background: #fff;
}
.diamond-content {
  transform: rotate(-45deg);
  font-weight: 800;
  font-size: 13px;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.diamond-node.played .diamond-content {
  color: #fff;
}
.diamond-node.current .diamond-content {
  color: var(--primary-dark);
}
.timeline-line {
  height: 4px;
  width: 25px;
  background: #e2e8f0;
  margin: 0 -8px;
  z-index: 1;
  flex-shrink: 0;
}
.timeline-line.filled {
  background: var(--primary);
}

#game-progress-map-container {
  margin: 2px 15px 8px 15px; 
  padding: 6px 12px; 
  background: rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
}
.map-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 11px;
  align-items: center;
}
.map-total-score {
  background: var(--accent-green);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  box-shadow: 0 2px 5px rgba(16, 185, 129, 0.3);
}
.map-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}
.map-node {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  transform: rotate(45deg);
  background: transparent;
  border: 2px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  transition: all 0.3s;
  opacity: 0.2; 
}
.map-node.played {
  background: var(--primary);
  border: none;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
  opacity: 1; 
}
.map-node.played.perfect {
  background: var(--accent-green);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}
.map-node.current {
  background: #fff;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transform: rotate(45deg) scale(1.1);
  opacity: 1; 
}
.map-content {
  transform: rotate(-45deg);
  font-size: 7px;
  font-weight: 800;
  color: #94a3b8;
  line-height: 1;
}
.map-node.played .map-content { color: #fff; }
.map-node.current .map-content { color: var(--primary-dark); font-size: 8px; }
.map-line {
  flex-grow: 1;
  height: 2px;
  background: #e2e8f0;
  align-self: center;
  margin: 0 -2px;
  z-index: 1;
}
.map-line.filled {
  background: var(--primary);
}
.map-vertical-connector {
  width: 2px;
  height: 12px;
  background: #e2e8f0;
  align-self: flex-end;
  margin-right: 8px;
}
.map-vertical-connector.filled {
  background: var(--primary);
}


.prof-tab-btn {
  flex: 1;
  padding: 10px 4px;
  margin: 0 4px;
  border-radius: 12px;
  border: none;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: var(--font-bangla);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.prof-tab-btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 0 rgba(0,0,0,0.2) !important;
}
.prof-tab-btn.active {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: white !important;
  box-shadow: 0 4px 0 0 #075985, 0 6px 15px rgba(2, 132, 199, 0.4) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.prof-tab-btn:not(.active) {
  background: white !important;
  color: var(--text-muted) !important;
  box-shadow: 0 4px 0 0 #cbd5e1 !important;
  transform: translateY(0);
}

.fee-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 3.5px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .2px;
  white-space: nowrap;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .32);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .14);
}
.fee-pill > .fee-pill-in {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.fee-pill > .fee-pill-in svg { display: block; }
.fee-pill-gold { font-weight: 700; opacity: .85; }

.fee-pill-inline {
  margin-top: 0;
  margin-left: 0;
  padding: 2.5px 8px;
  font-size: 11px;
}


.gkq-opt {
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-dark);
  background: rgba(255, 255, 255, .9);
  border: 2px solid rgba(0, 0, 0, .07);
  border-radius: 14px;
  padding: 13px 15px;
  cursor: pointer;
  transition: transform .18s ease, border-color .22s ease, background .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.gkq-opt:active { transform: scale(.985); }
.gkq-opt:not(:disabled):hover { border-color: rgba(16, 185, 129, .5); }
.gkq-opt:disabled { cursor: default; }


.txt-base700 { font-weight: 700; }


.mp-option-btn {
  font-weight: 700;
}


.txt-w600 { font-weight: 600; }
.txt-w500 { font-weight: 500; }
.gkq-opt.is-right {
  background: #ecfdf5; border-color: #10b981; color: #166534; font-weight: 800;
}
.gkq-opt.is-wrong {
  background: #fef2f2; border-color: #ef4444; color: #991b1b; font-weight: 800;
  position: relative; padding-right: 65px;
}
.gkq-wrong-mark {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #b91c1c;
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
  animation: gkqWrongDissolve 2.4s ease-out forwards;
}
@keyframes gkqWrongDissolve {
  0%, 55% { opacity: 1; }
  100% { opacity: 0; }
}
.gkq-opt.is-dim { opacity: .5; }




.gkq-opts--gentle .gkq-opt { animation: gkqGentleIn .16s ease-out; }
.gkq-enter { animation: gkqCardFlip 2.34s linear both; transform-origin: 50% 45%; backface-visibility: hidden; }
@keyframes gkqCardFlip {
  0% { opacity: 0; transform: perspective(1100px) rotateY(-540deg) scale(.82); animation-timing-function: cubic-bezier(.12,.62,.3,.98); }
  10% { opacity: 1; }
  38% { transform: perspective(1100px) rotateY(-96deg) scale(.95); animation-timing-function: cubic-bezier(.16,.72,.28,1); }
  55% { transform: perspective(1100px) rotateY(-26deg) scale(.99); animation-timing-function: ease-out; }
  68% { transform: perspective(1100px) rotateY(-9deg) scale(1); animation-timing-function: ease-out; }
  76% { transform: perspective(1100px) rotateY(-6.5deg); animation-timing-function: ease-in; }
  86% { transform: perspective(1100px) rotateY(9deg); animation-timing-function: cubic-bezier(.34,1.56,.64,1); }
  93% { transform: perspective(1100px) rotateY(-3.5deg); }
  97% { transform: perspective(1100px) rotateY(1.2deg); }
  100% { opacity: 1; transform: perspective(1100px) rotateY(0deg) scale(1); }
}
@keyframes gkqGentleIn { from { opacity: .85; } to { opacity: 1; } }
.gkq-opt.is-right, .gkq-opt.is-wrong, .gkq-opt.is-dim { animation: none; }

.gkq-fb-in { animation: gkqFbIn .45s cubic-bezier(.22,1,.36,1) both; }
@keyframes gkqFbIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}


.gkq-hot { animation: gkqHot 1.5s ease-in-out infinite; }
@keyframes gkqHot {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.09); }
}



.gkq-map {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px 8px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gkq-map::-webkit-scrollbar { display: none; }
.gkq-row { display: flex; align-items: center; }
.gkq-node {
  width: 24px; height: 24px; flex: 0 0 24px;
  border-radius: 6px;
  transform: rotate(45deg);
  border: 2px dashed #cbd5e1;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
  transition: background .3s ease, border-color .3s ease;
}
.gkq-node span {
  transform: rotate(-45deg);
  font-size: 10px; font-weight: 900; line-height: 1; color: #94a3b8;
}
.gkq-node.is-current {
  background: #fff; border: 2px solid var(--primary);
  box-shadow: 0 2px 8px rgba(2,132,199,.28);
  animation: gkqNodePulse 2.25s ease-in-out infinite;
}
.gkq-node.is-current span { color: var(--primary-dark); }
@keyframes gkqNodePulse {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50%      { transform: rotate(45deg) scale(1.14); }
}
.gkq-node.is-right {
  background: var(--accent-green); border: 2px solid var(--accent-green);
  box-shadow: 0 2px 8px rgba(16,185,129,.45);
  animation: gkqStamp .6s cubic-bezier(.34,1.56,.64,1) both;
}
.gkq-node.is-wrong {
  background: var(--accent-red); border: 2px solid var(--accent-red);
  box-shadow: 0 2px 8px rgba(239,68,68,.45);
  animation: gkqStamp .6s cubic-bezier(.34,1.56,.64,1) both;
}
.gkq-node.is-right span, .gkq-node.is-wrong span { color: #fff; font-size: 12px; }

@keyframes gkqStamp {
  0%   { transform: rotate(45deg) scale(1.5); }
  60%  { transform: rotate(45deg) scale(.92); }
  100% { transform: rotate(45deg) scale(1); }
}
.gkq-link {
  flex: 1 1 auto; height: 3px; background: #e2e8f0;
  align-self: center; margin: 0 -1px; z-index: 1; border-radius: 2px;
  transition: background .45s ease;
}
.gkq-link.is-done { background: var(--primary); }
.gkq-link { min-width: 16px; }


#modal-gk-result.active .modal-content {
  animation: none;
  transform: none;
}
@keyframes gkqResultIn {
  from { opacity: 0; transform: translateY(22px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
#gkr-face { animation: none; transform: none; filter: none; }
@keyframes gkqFaceIn {
  from { opacity: 0; transform: scale(.3) rotate(-18deg); }
  to   { opacity: 1; transform: none; }
}

@keyframes scoreStampPop {
  0%   { transform: scale(1); filter: brightness(1); }
  28%  { transform: scale(1.32); filter: brightness(1.28); color: #10b981; }
  52%  { transform: scale(0.92); }
  76%  { transform: scale(1.12); }
  100% { transform: scale(1); filter: brightness(1); }
}
.score-stamp-pop {
  animation: scoreStampPop 0.58s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
  transform-origin: center center;
}


.flying-point-badge {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-bangla, inherit);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5), 0 0 10px rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .gkq-enter, .gkq-opt, .gkq-fb-in, .gkq-node, .gkq-ptc, .gkq-label, #gkr-face,
  #modal-gk-result.active .modal-content, .score-stamp-pop, .flying-point-badge { animation: none !important; }
  .gkq-hot { animation: none; }
}


.gkq-opt,
.gkq-opt *,
.mp-option-btn,
#gkq-question,
#gkq-title,
#gkq-sub,
#gkq-count,
#gkq-tally,
.gkq-node,
.suggestion-bubble {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;   
}




.hdr-orb {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform .14s ease, box-shadow .14s ease;
}
.hdr-orb:active { transform: scale(.94); }


.hdr-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.05) 45%, rgba(0,0,0,.10) 100%);
  pointer-events: none;
}

.hdr-orb--board {
  background: linear-gradient(150deg, #fbbf24, #d97706);
  box-shadow: 0 6px 16px rgba(217, 119, 6, .45);
}
.hdr-orb--poll {
  background: linear-gradient(150deg, #10b981, #059669);
  box-shadow: 0 6px 16px rgba(16, 185, 129, .45);
}

.hdr-orb svg { position: relative; z-index: 1; }




.mp-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform .14s ease, box-shadow .14s ease;
}
.mp-action:active { transform: scale(.985); }

.mp-action__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.25;
}
.mp-action__label small {
  font-size: 13.5px;
  font-weight: 800;
  opacity: .9;
}

.mp-action--create {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .38);
}
.mp-action--random {
  background: linear-gradient(135deg, #9333ea, #a855f7);
  box-shadow: 0 8px 20px rgba(147, 51, 234, .38);
}


.mp-action .fee-pill-inline { margin: 0; flex: 0 0 auto; }



.mp-join-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--accent-green);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 7px 14px 11px;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  align-self: stretch;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 185, 129, .30);
  transition: transform .14s ease;
}
.mp-join-btn:active { transform: scale(.97); }
.mp-join-btn .fee-pill-inline { margin: 0; }


.fee-emboss {
  position: absolute;
  right: -30px;
  bottom: 14px;
  transform: rotate(-45deg);
  transform-origin: 50% 50%;
  width: 132px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .45), 0 -1px 0 rgba(0, 0, 0, .40);
  background: rgba(0, 0, 0, .13);
  padding: 3px 0;
  pointer-events: none;
  white-space: nowrap;
}


.mp-action {
  position: relative;
  overflow: hidden;          
  padding: 20px 18px;
  min-height: 76px;
}
.mp-action__label { font-size: 17px; }
.mp-action__label small { font-size: 15.5px; }







.mp-join-btn .fee-emboss {
  right: -28px;
  bottom: 7px;
  width: 104px;
  font-size: 10px;
  padding: 2px 0;
}


.hdr-orb--board::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  border: 2px solid rgba(253, 230, 138, 0.85);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
  pointer-events: none;
  z-index: 0;
}

.hdr-orb--board::after { z-index: 1; }
.hdr-orb--board svg { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .hdr-orb--board::before { animation: none; }
}


.home-wordmark {
  padding: clamp(12px, 2.5vh, 30px) 0 6px;
  text-align: center;
  pointer-events: none;
  user-select: none;
}
.home-wordmark h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  color: rgba(2, 132, 199, .30);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .65), 0 -1px 0 rgba(0, 0, 0, .10);
}
.home-wordmark p {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(71, 85, 105, .30);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 -1px 0 rgba(0, 0, 0, .08);
}







.res-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 18px;
}

.res {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 5px 0 6px;
  border-radius: 17px;
  color: #fff;
  font-weight: 800;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38),
              inset 0 -2px 0 rgba(0, 0, 0, .16),
              0 3px 9px rgba(0, 0, 0, .16);
}


.res--xp   { flex: 0 1 40%; min-width: 96px; background: linear-gradient(180deg, #3b82f6, #1d4ed8); }
.res--gold { flex: 0 0 auto; background: linear-gradient(180deg, #fbbf24, #d97706); }
.res--pass { flex: 0 0 auto; background: linear-gradient(180deg, #818cf8, #4338ca); }



.res__star {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.res__star svg { position: absolute; inset: 0; width: 34px; height: 34px; filter: drop-shadow(0 2px 5px rgba(59,130,246,.5)); }
.res__star span {
  position: relative;
  
  font-size: 12.5px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 6px rgba(0, 0, 0, .35);
}


.res__track {
  flex: 1 1 auto;
  min-width: 24px;
  height: 9px;
  border-radius: 5px;
  background: rgba(0, 0, 0, .28);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35);
}
.res__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(180deg, #a5f3fc, #22d3ee);
  transition: width .5s ease;
}

.res__icon { width: 15px; height: 15px; flex: 0 0 15px; }

.res__add {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: background .15s ease, transform .12s ease;
}
.res__add:hover  { background: rgba(255, 255, 255, .44); }
.res__add:active { transform: scale(.88); }
.res__add:disabled { opacity: .45; cursor: default; transform: none; }



.hdr-row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  
  
  margin-bottom: clamp(26px, 7vh, 78px);
}

.ident {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  cursor: pointer;
}

.ident__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.ident__name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.18;
  color: var(--text-dark);
  
  max-width: 118px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ident__league {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.ident__league b { color: #b45309; font-weight: 800; }

.hdr-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }




.app-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: none;                     
  align-items: stretch;
  justify-content: space-around;
  gap: 4px;
  padding: 8px 10px calc(8px + var(--sa-bottom));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .07);
}
.app-nav.is-on { display: flex; }

.app-nav__btn {
  flex: 1 1 0;
  min-width: 0;
  border: none;
  background: transparent;
  border-radius: 16px;
  padding: 7px 2px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-muted);
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.app-nav__btn:active { transform: scale(.93); }


.app-nav__tile {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f1f5f9, #dbe3ec);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9),
              inset 0 -2px 0 rgba(0, 0, 0, .10),
              0 3px 8px rgba(0, 0, 0, .10);
  color: #475569;
}
.app-nav__label {
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}


.app-nav__btn--home .app-nav__tile {
  background: linear-gradient(180deg, #10b981, #059669);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45),
              inset 0 -2px 0 rgba(0, 0, 0, .18),
              0 4px 12px rgba(16, 185, 129, .40);
}
.app-nav__btn--home .app-nav__label { color: var(--primary-dark); }



.app-nav__btn[disabled] { opacity: 1; cursor: default; }
.app-nav__btn[disabled]:active { transform: none; }


#screen-home .btn-back-premium,
#screen-gk .btn-back-premium,
#screen-gk-categories .btn-back-premium,
#screen-gk-league .btn-back-premium,
#screen-leaderboard .btn-back-premium { display: none; }


.app-nav-pad { padding-bottom: calc(104px + var(--sa-bottom)) !important; }


.store-sheet { max-width: 360px; padding: 0; overflow: hidden; }

.store-head {
  padding: 16px 18px 13px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
}
.store-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.store-head p  { margin: 3px 0 0; font-size: 11.5px; opacity: .85; font-weight: 600; }

.store-body { padding: 14px; max-height: 62vh; overflow-y: auto; }

.store-free {
  border-radius: 15px;
  padding: 12px 13px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fb923c, #f97316);
  box-shadow: 0 6px 16px rgba(249, 115, 22, .32);
}
.store-free__title {
  color: #fff; font-size: 14px; font-weight: 900; margin-bottom: 9px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .18);
}
.store-free__row { display: flex; gap: 8px; }

.store-free__btn {
  flex: 1 1 0;
  border: none;
  border-radius: 11px;
  padding: 9px 6px;
  background: rgba(255, 255, 255, .95);
  color: #9a3412;
  font-family: inherit;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
  transition: transform .12s ease;
}
.store-free__btn:active { transform: scale(.95); }
.store-free__btn:disabled { opacity: .55; cursor: default; transform: none; }

.store-group-title {
  font-size: 12px; font-weight: 800; color: var(--text-muted);
  margin: 0 2px 8px; letter-spacing: .02em;
}

.store-pack {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 11px 12px;
  margin-bottom: 9px;
  background: #fff;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
  transition: transform .12s ease, box-shadow .12s ease;
}
.store-pack:active { transform: scale(.985); }

.store-pack__icon {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .14);
}
.store-pack--gold .store-pack__icon { background: linear-gradient(180deg, #fbbf24, #d97706); }
.store-pack--pass .store-pack__icon { background: linear-gradient(180deg, #818cf8, #4338ca); }

.store-pack__text { flex: 1 1 auto; min-width: 0; }
.store-pack__amt  { font-size: 15px; font-weight: 900; color: var(--text-dark); }
.store-pack__sub  { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-top: 1px; }

.store-pack__price {
  flex: 0 0 auto;
  border-radius: 11px;
  padding: 7px 12px;
  background: linear-gradient(180deg, #10b981, #059669);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 3px 9px rgba(16, 185, 129, .35);
}


.store-pack__tag {
  position: absolute;
  top: -7px; left: 12px;
  background: #ef4444;
  color: #fff;
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, .4);
}


.ach-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 18px; margin-bottom: 14px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
  box-shadow: 0 8px 22px rgba(29, 78, 216, .32);
}
.ach-head__lvl {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18);
  font-size: 19px; font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.ach-head__body { flex: 1 1 auto; min-width: 0; }
.ach-head__title { font-size: 14px; font-weight: 800; }
.ach-head__sub { font-size: 11.5px; opacity: .85; font-weight: 600; margin-top: 2px; }
.ach-head__track {
  height: 8px; border-radius: 5px; margin-top: 7px;
  background: rgba(0,0,0,.25); overflow: hidden;
}
.ach-head__fill {
  display: block; height: 100%; border-radius: 5px;
  background: linear-gradient(180deg, #a5f3fc, #22d3ee);
  transition: width .5s ease;
}

.ach-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.ach-tab {
  flex: 1 1 0; border: 1px solid var(--glass-border); background: var(--glass-bg);
  border-radius: 13px; padding: 10px 6px; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 13px; color: var(--text-muted);
  transition: background .15s ease, color .15s ease, transform .12s ease;
}
.ach-tab.is-on { background: linear-gradient(135deg,#0284c7,#0369a1); color: #fff; border-color: transparent; }
.ach-tab:active { transform: scale(.97); }

.ach-card {
  display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--glass-border);
  border-radius: 15px; padding: 12px; margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,.05);
}
.ach-card__medal {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #fff;
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.12);
}

.ach-card--t1 .ach-card__medal { background: linear-gradient(180deg,#d6a97a,#a16207); }
.ach-card--t2 .ach-card__medal { background: linear-gradient(180deg,#e2e8f0,#94a3b8); }
.ach-card--t3 .ach-card__medal { background: linear-gradient(180deg,#fcd34d,#d97706); }
.ach-card--t4 .ach-card__medal { background: linear-gradient(180deg,#c4b5fd,#7c3aed); }
.ach-card--t5 .ach-card__medal { background: linear-gradient(180deg,#fca5a5,#dc2626); }

.ach-card__body { flex: 1 1 auto; min-width: 0; }
.ach-card__name { font-size: 13.5px; font-weight: 800; color: var(--text-dark); }
.ach-card__next { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-top: 2px; }
.ach-card__track {
  height: 7px; border-radius: 4px; margin-top: 7px;
  background: rgba(2,132,199,.13); overflow: hidden;
}
.ach-card__fill {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg,#10b981,#34d399);
  transition: width .5s ease;
}
.ach-card__pips { display: flex; gap: 3px; margin-top: 6px; }
.ach-card__pip {
  width: 100%; height: 3px; border-radius: 2px; background: rgba(0,0,0,.10);
}
.ach-card__pip.is-on { background: #10b981; }

.ach-card__gold {
  flex: 0 0 auto; font-size: 11.5px; font-weight: 900; color: #b45309;
  background: rgba(245,158,11,.14); border-radius: 9px; padding: 5px 8px;
  white-space: nowrap;
}


.troph-hero {
  text-align: center; padding: 20px 16px; border-radius: 18px; margin-bottom: 14px;
  background: linear-gradient(135deg,#b45309,#f59e0b); color: #fff;
  box-shadow: 0 8px 22px rgba(180,83,9,.32);
}
.troph-hero__count { font-size: 34px; font-weight: 900; line-height: 1; }
.troph-hero__league { font-size: 14px; font-weight: 800; margin-top: 6px; }
.troph-hero__sub { font-size: 11.5px; opacity: .88; margin-top: 3px; font-weight: 600; }

.troph-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border: 1px solid var(--glass-border); border-radius: 13px;
  padding: 11px 13px; margin-bottom: 8px;
}
.troph-row__name { font-size: 13px; font-weight: 800; }
.troph-row__count { font-size: 13px; font-weight: 900; color: var(--text-muted); }


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

.help-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; border-radius: 12px; padding: 8px 12px;
  font-family: inherit; font-weight: 800; font-size: 12.5px;
  color: #fff; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 3px 9px rgba(0,0,0,.16);
  transition: transform .12s ease, opacity .12s ease;
}
.help-btn:active { transform: scale(.94); }
.help-btn:disabled { opacity: .45; cursor: default; transform: none; }

.help-btn--pass { background: linear-gradient(180deg,#818cf8,#4338ca); }
.help-btn--ad   { background: linear-gradient(180deg,#fb923c,#ea580c); }

.help-btn__cost {
  background: rgba(255,255,255,.24); border-radius: 8px;
  padding: 1px 6px; font-size: 12px; font-weight: 900;
  font-variant-numeric: tabular-nums;
}


#solo-help-row .help-btn { font-size: 9px; }
#solo-help-row .help-btn__cost { font-size: 8.7px; }


.hdr-orb--league {
  background: linear-gradient(150deg, #93c5fd, #1e40af);
  box-shadow: 0 6px 16px rgba(30, 64, 175, .45);
}


.gk-mode-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 95%;
  margin: 0 auto;
  border: none;
  border-radius: 20px;
  padding: 22.8px 19px;
  color: #fff;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: transform .14s ease;
}
.gk-mode-btn:active { transform: scale(.985); }


.app-nav__btn--back .app-nav__tile {
  background: linear-gradient(180deg, #93c5fd, #3b82f6);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45),
              inset 0 -2px 0 rgba(0,0,0,.14),
              0 3px 9px rgba(59,130,246,.32);
}
.app-nav__btn--back .app-nav__label { color: #1d4ed8; }

.app-nav__btn--store .app-nav__tile {
  background: linear-gradient(180deg, #fbbf24, #ea580c);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45),
              inset 0 -2px 0 rgba(0,0,0,.14),
              0 3px 9px rgba(234,88,12,.34);
}
.app-nav__btn--store .app-nav__label { color: #c2410c; }

.app-nav__btn--settings .app-nav__tile {
  background: linear-gradient(180deg, #c4b5fd, #7c3aed);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45),
              inset 0 -2px 0 rgba(0,0,0,.14),
              0 3px 9px rgba(124,58,237,.30);
}
.app-nav__btn--settings .app-nav__label { color: #6d28d9; }


.gkq-opt--gone {
  animation: none !important;
  opacity: .3 !important;
  filter: grayscale(1);
  pointer-events: none;
  text-decoration: line-through;
  text-decoration-color: rgba(0, 0, 0, .35);
}


.store-free__row--single .store-free__btn { flex: 1 1 100%; }


.troph-case {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}

.troph-case__slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 6px 10px;
  border-radius: 14px;
  background: rgba(148, 163, 184, .09);
  border: 1px solid var(--glass-border);
  text-align: center;
}


.troph-case__slot img { filter: grayscale(1); opacity: .32; transition: filter .2s ease, opacity .2s ease; }
.troph-case__slot.is-won img { filter: none; opacity: 1; }

.troph-case__slot.is-won {
  background: linear-gradient(180deg, rgba(245, 158, 11, .12), rgba(245, 158, 11, .04));
  border-color: rgba(245, 158, 11, .35);
  box-shadow: 0 3px 10px rgba(245, 158, 11, .14);
}

.troph-case__name {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-muted);
  line-height: 1.25;
}
.troph-case__slot.is-won .troph-case__name { color: var(--text-dark); }


.troph-case__count {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbbf24, #d97706);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 19px;
  box-shadow: 0 2px 6px rgba(217, 119, 6, .4);
}


.mp-join-btn--wide {
  width: 100%;
  align-self: auto;
  padding: 14px 16px 18px;
}
.mp-join-btn--wide .fee-emboss {
  right: -30px;
  bottom: 12px;
  width: 132px;
  font-size: 11.5px;
  padding: 3px 0;
}


.ach-head__lvl {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  box-shadow: none;
}
.ach-head__lvl svg {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .28));
}
.ach-head__lvl span {
  position: relative;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;   
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}


.room-code-input {
  width: 100%;
  min-width: 0;
  border: 2px solid rgba(2, 132, 199, .38);
  border-radius: 12px;
  background: rgba(2, 132, 199, .06);
  padding: 11px 10px;
  font-family: var(--font-english);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
  color: var(--text-dark);
  outline: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.room-code-input::placeholder {
  color: rgba(2, 132, 199, .45);
  font-weight: 700;
  letter-spacing: .1em;
}
.room-code-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, .14);
}


.mp-join-btn--wide { padding: 10px 16px 14px; }
.mp-join-btn--wide .fee-emboss { bottom: 9px; }



#emoji-fx {
  position: fixed;
  inset: 0;
  z-index: 99998;          
  pointer-events: none;
  overflow: hidden;
}

.emoji-fly {
  position: absolute;
  bottom: -50px;
  line-height: 1;
  user-select: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .18));
  animation-name: emojiFly;
  animation-timing-function: cubic-bezier(.22, .61, .36, 1);
  animation-fill-mode: both;
}


@keyframes emojiFly {
  0% {
    transform: translate3d(0, 0, 0) scale(.5) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translate3d(calc(var(--dx, 0px) * .12), -10vh, 0) scale(1) rotate(calc(var(--rot, 0deg) * .18));
  }
  55% {
    transform: translate3d(calc(var(--dx, 0px) * .62), -55vh, 0) scale(1.06) rotate(calc(var(--rot, 0deg) * .6));
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--dx, 0px), -108vh, 0) scale(.85) rotate(var(--rot, 0deg));
    opacity: 0;
  }
}


.reaction-bubble--new { animation: reactionPop .45s cubic-bezier(.34, 1.56, .64, 1) both; }

@keyframes reactionPop {
  0%   { transform: scale(.3); opacity: 0; }
  60%  { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}


@media (prefers-reduced-motion: reduce) {
  .emoji-fly { display: none; }
  .reaction-bubble--new { animation: none; }
}



#gkq-pass-pill, #play-pass-pill { flex: 0 0 auto; }


.digit-roll { animation: digitRoll .5s cubic-bezier(.34, 1.56, .64, 1); }

@keyframes digitRoll {
  0%   { transform: translateY(-40%) scale(.8); opacity: 0; }
  60%  { transform: translateY(0) scale(1.12); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .digit-roll { animation: none; }
}



.suggestion-bubble { position: relative; }

.sugg-flag {
  margin-left: 7px;
  padding: 0 2px;
  border: none;
  background: none;
  color: inherit;
  opacity: .38;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.sugg-flag:hover, .sugg-flag:focus-visible { opacity: 1; color: #dc2626; }

.suggestion-bubble.selected .sugg-flag { color: #fff; opacity: .75; }




.lb-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 0 14px;
  margin-bottom: 6px;
}


.lb-family {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 7px;
  overflow: hidden;
  background: var(--card-bg, #fff);
}
.lb-fam {
  flex: 1 1 0;
  min-width: 0;
  padding: 9px 6px;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, .028);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.lb-fam + .lb-fam { border-left: 1px solid rgba(0, 0, 0, .1); }

.lb-fam.active {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  font-weight: 800;
}


.lb-head-title {
  margin: 0 0 0 auto;
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dark);
  white-space: nowrap;
}


.lb-tabrow {
  display: flex;
  gap: 4px;
  margin: 0 14px;
  border-radius: 14px;
}
.lb-tabrow--top {
  margin-top: 10px;
  padding: 5px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.lb-tabrow--sub {
  margin-top: 7px;
  margin-bottom: 8px;
  padding: 4px;
  background: rgba(0, 0, 0, .04);
  border-radius: 12px;
}

.lb-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 9px 4px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.lb-tabrow--top .lb-tab { font-size: 13px; }
.lb-tabrow--sub .lb-tab { font-size: 11.5px; padding: 8px 3px; border-radius: 10px; }

.lb-tabrow--top .lb-tab.active {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(16, 185, 129, .35);
}
.lb-tabrow--sub .lb-tab.active {
  background: #fff;
  color: var(--primary-dark);
  font-weight: 800;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .06);
}

.lb-tab:focus-visible, .lb-fam:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}


@media (max-width: 360px) {
  
  .lb-head { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .lb-fam { padding: 8px 4px; font-size: 11.5px; }
  .lb-tabrow { margin-left: 10px; margin-right: 10px; }
}
@media (max-height: 700px) {
  .lb-head { padding-top: 8px; margin-bottom: 2px; }
  .lb-tabrow--top { margin-top: 7px; padding: 4px; }
  .lb-tabrow--sub { margin-top: 5px; margin-bottom: 6px; }
  .lb-tabrow--top .lb-tab { padding: 7px 4px; font-size: 12.5px; }
  .lb-tabrow--sub .lb-tab { padding: 6px 3px; font-size: 11px; }
  #lb-tab-hint { margin-bottom: 5px !important; font-size: 10.5px !important; }
}



@keyframes gkrFacePop {
  0%   { transform: scale(.55) rotate(-14deg); opacity: 0; }
  55%  { transform: scale(1.22) rotate(6deg);  opacity: 1; }
  75%  { transform: scale(.94) rotate(-3deg); }
  100% { transform: scale(1) rotate(0); }
}
.gkr-face-pop { animation: none; transform: none; }


@keyframes gkrShake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-7px) rotate(-2deg); }
  30% { transform: translateX(6px)  rotate(2deg); }
  45% { transform: translateX(-5px) rotate(-1.5deg); }
  60% { transform: translateX(4px)  rotate(1deg); }
  80% { transform: translateX(-2px); }
}
.gkr-face-shake { animation: none; transform: none; }

@keyframes gkrCardShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
.gkr-card-shake { animation: none; transform: none; }


@media (prefers-reduced-motion: reduce) {
  .gkr-face-pop, .gkr-face-shake, .gkr-card-shake { animation: none !important; }
}



#build-chip, .build-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 6px auto 2px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  line-height: 1.2;
  color: var(--primary-dark, #0369a1);
  background: rgba(255, 255, 255, 0.82);
  border: 1.2px solid rgba(2, 132, 199, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  pointer-events: auto !important;
  cursor: default;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, background 0.15s ease;
}
.sv-diagnostics-enabled #build-chip,
.sv-diagnostics-enabled .build-chip { cursor: pointer; }
.sv-diagnostics-enabled #build-chip:active,
.sv-diagnostics-enabled .build-chip:active {
  transform: scale(0.92);
  background: rgba(224, 242, 254, 0.95);
}


#err-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100002;
  max-height: 62vh; overflow-y: auto;
  background: #1e293b; color: #e2e8f0;
  font: 11px/1.5 ui-monospace, Menlo, Consolas, monospace;
  padding: 10px 12px calc(12px + var(--sa-bottom, 0px)) 12px;
  box-shadow: 0 -6px 20px rgba(0,0,0,.35);
  white-space: pre-wrap; word-break: break-word;
}
#err-panel h4 {
  margin: 0 0 6px; font-size: 12px; color: #fca5a5;
  font-family: inherit; font-weight: 800;
}
#err-panel .err-row { border-top: 1px solid rgba(255,255,255,.12); padding: 6px 0; }
#err-panel .err-btns { display: flex; gap: 8px; margin-top: 8px; position: sticky; bottom: 0; }
#err-panel button {
  flex: 1; border: none; border-radius: 8px; padding: 9px;
  font-size: 12px; font-weight: 800; font-family: inherit; cursor: pointer;
}
#err-panel .err-copy { background: #38bdf8; color: #082f49; }
#err-panel .err-close { background: rgba(255,255,255,.15); color: #e2e8f0; }


#sv-watchdog-pill {
  animation: svPillSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes svPillSlideDown {
  from { transform: translateY(-40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


@keyframes clashEmotePopIn {
  0% {
    transform: scale(0.15) rotate(-14deg);
    opacity: 0;
  }
  38% {
    transform: scale(1.36) rotate(6deg);
    opacity: 1;
  }
  58% {
    transform: scale(0.92) rotate(-3deg);
  }
  76% {
    transform: scale(1.06) rotate(2deg);
  }
  100% {
    transform: scale(1.0) rotate(0deg);
    opacity: 1;
  }
}

@keyframes clashEmoteDissolve {
  0% {
    transform: scale(1.0) translateY(0);
    opacity: 1;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5));
  }
  40% {
    opacity: 0.7;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25)) blur(1px);
  }
  100% {
    transform: scale(1.16) translateY(-20px);
    opacity: 0;
    filter: blur(10px) drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }
}

@keyframes clashRaysRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes clashParticleSpray {
  0% {
    transform: translate(0, 0) scale(0.4);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  80% {
    opacity: 0.9;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(1.2);
    opacity: 0;
  }
}

.clash-burst-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.clash-burst-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: clashEmotePopIn 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.clash-burst-card.closing {
  animation: clashEmoteDissolve 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.clash-burst-rays {
  position: absolute;
  width: 270px;
  height: 270px;
  pointer-events: none;
  animation: clashRaysRotate 9s linear infinite;
  z-index: 1;
  opacity: 0.85;
}

.clash-burst-img {
  width: 155px;
  height: 155px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5));
}

.clash-burst-badge {
  position: relative;
  z-index: 2;
  margin-top: 6px;
  padding: 4px 14px;
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  text-align: center;
  font-family: var(--font-bangla, sans-serif);
}

.clash-burst-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 20px;
  pointer-events: none;
  z-index: 3;
  animation: clashParticleSpray 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.lobby-access-control { margin: 0 16px 14px; padding: 12px; border: 1px solid #b9dfd4; border-radius: 16px; background: #f4fff9; color: #285b4f; text-align: center; box-shadow: 0 4px 12px #207d6320; }
.lobby-access-control[hidden] { display: none !important; }
.lobby-access-control > span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 750; }
.lobby-access-control__choices { display: flex; gap: 5px; }
.lobby-access-control__choices button { flex: 1; min-width: 0; border: 1px solid #abd6c8; border-radius: 10px; padding: 8px 4px; background: #fff; color: #315c52; font: 700 12px var(--font-bangla); cursor: pointer; }
.lobby-access-control__choices button.is-active { border-color: #008f72; background: linear-gradient(135deg,#0bb78b,#078f75); color: #fff; box-shadow: 0 3px 8px #118c6950; }
.lobby-access-control small { display: block; margin-top: 7px; font-size: 10px; }
