html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #060012;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
body {
  background: #060012;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ============================================================
   SAFE AREA — notch / punch-hole / gesture bar
   ------------------------------------------------------------
   index.html me viewport-fit=cover hai, matlab page notch ke
   neeche tak chala jata hai. Isliye notch wale phones (iPhone,
   Samsung S23/S24, Pixel, OnePlus, Redmi...) par top bar kat
   jata tha, aur gesture-bar wale phones par niche ke button
   overlap kar jate the.
   Ye padding har device par UI ko safe area ke andar rakhti hai.
   env() support na hone par fallback 0px hai (purane browsers).
   ============================================================ */
#gameWrap {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  box-sizing: border-box;
}
.auth-screen {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  box-sizing: border-box;
}
/* Modal overlays bhi safe area ke andar rahein */
.ov {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}

/* Main container */
#app {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #060012;
  box-shadow: none;
}

@media (min-width: 600px) and (min-height: 400px) {
  #app {
    max-width: 450px;
    height: 80vh;
    max-height: 800px;
    border-radius: 24px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    margin: auto;
  }
}

@media (min-aspect-ratio: 16/9) and (min-width: 800px) {
  #app {
    max-width: 450px;
    height: 85vh;
  }
}

/* ===== LOGIN SCREEN ===== */
.auth-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0A001E 0%, #1A0040 50%, #0D0030 100%);
  z-index: 100;
  padding: 30px 24px;
}
.auth-logo { font-size: 56px; margin-bottom: 8px; filter: drop-shadow(0 0 20px #FF4DA6); }
.auth-title { font-size: 28px; font-weight: 700; color: #FFD700; text-align: center; }
.auth-sub { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 24px; text-align: center; }
.auth-card { width: 100%; background: rgba(255,255,255,0.05); border-radius: 20px; padding: 24px 20px; backdrop-filter: blur(10px); }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0; color: rgba(255,255,255,0.3); }
.auth-divider hr { flex: 1; border: none; border-top: 1px solid rgba(255,255,255,0.1); }
.guest-btn { width: 100%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,215,0,0.3); border-radius: 60px; padding: 12px; font-size: 16px; font-weight: 600; color: #FFD700; cursor: pointer; }
.studio-credit { font-size: 10px; color: rgba(255,255,255,0.2); margin-top: 20px; text-align: center; }
/* Content pages ke links — login screen par (Google crawl + player ke liye) */
.credit-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 4px 10px; margin-top: 7px;
}
.credit-links a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 10px;
  padding: 2px 0;
}
.credit-links a:hover { color: rgba(255,215,0,0.9); text-decoration: underline; }

/* ===== GAME WRAP ===== */
#gameWrap { 
  width: 100%; 
  display: none; 
  flex-direction: column; 
  height: 100%;           
  background: #060012;
}
#topBar { 
  background: linear-gradient(90deg, #0A001E, #1A0040); 
  padding: 8px 10px; 
  border-radius: 0 0 14px 14px;
}
#userRow { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 2px;
}
#userName { font-size: 11px; color: #FFFFFF; background: rgba(0,0,0,0.3); padding: 2px 8px; border-radius: 20px; font-weight: 500; }
#themeTag { font-size: 11px; font-weight: bold; color: #FFD700; background: rgba(0,0,0,0.4); padding: 2px 8px; border-radius: 20px; }
.top-icons { display: flex; gap: 5px; }
.top-icons button { background: rgba(0,0,0,0.3); border: none; border-radius: 50%; width: 30px; height: 30px; font-size: 16px; color: #FFD700; cursor: pointer; }
#hudRow { 
  display: flex; 
  justify-content: space-between; 
  margin: 0 0 2px 0;
}
.hb { text-align: center; background: rgba(255,255,255,0.07); border-radius: 10px; padding: 3px 8px; }
.hl { font-size: 9px; color: #FFB8D0; }
.hv { font-size: 18px; font-weight: 800; color: #FFD700; line-height: 1.2; }
#li { font-size: 14px; letter-spacing: 2px; }
#taskHud { 
  display: flex; 
  align-items: center; 
  gap: 5px; 
  font-size: 9px; 
  color: #FFD700; 
  background: rgba(0,0,0,0.3); 
  padding: 2px 6px; 
  border-radius: 20px; 
  margin-top: 0;
}
#taskHudBar { flex: 1; height: 5px; background: rgba(255,255,255,0.2); border-radius: 4px; }
#taskHudFill { height: 100%; background: linear-gradient(90deg, #FFD700, #FF8C00); width: 0%; }
#modeTag { font-size: 8px; background: rgba(255,80,0,0.4); padding: 2px 5px; border-radius: 12px; }
#cw { 
  position: relative; 
  width: 100%; 
  background: #060012;
  flex: 1;                 
  display: flex;
  align-items: center;
  justify-content: center;
}
#canvas { 
  display: block; 
  width: 100%; 
  height: 100%;        
  touch-action: none; 
}

/* ===== OVERLAYS ===== */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.92);
  z-index: 50;
}
.ov-card {
  background: linear-gradient(145deg, #0e0a1f, #1a1030);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 28px;
  padding: 20px 18px;
  width: 90%;
  max-width: 300px;
  text-align: center;
}
.ov-sub { color: #FFD700; font-size: 13px; line-height: 1.3; padding: 6px 10px; }
.ov-stat { color: #00FFB0; font-size: 16px; }
.ov-title { color: #FFD700; font-size: 22px; }
.gbtn {
  border: none;
  border-radius: 40px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
}
.gbtn-gold { background: linear-gradient(135deg, #FFD700, #FF8C00); color: #2A1000; }
.gbtn-purple { background: linear-gradient(135deg, #845EF7, #5C3DCF); color: #fff; }
.gbtn-blue { background: linear-gradient(135deg, #00E0FF, #0088CC); color: #fff; }
/* Reward-ad button — hari, "muft inaam" wali feel */
.gbtn-ad {
  background: linear-gradient(135deg, #00B050, #00FFB0);
  color: #05261a;
  font-weight: 800;
  border: none;
  animation: adPulse 2.2s ease-in-out infinite;
}
@keyframes adPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,176,0.45); }
  50% { box-shadow: 0 0 0 8px rgba(0,255,176,0); }
}
/* Reward ad ke baad button disable dikhe */
.gbtn-ad[data-used="1"] { display: none !important; }
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.icon-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 40px;
  padding: 6px;
  font-size: 12px;
  cursor: pointer;
  color: #fff;
}
.version { font-size: 8px; color: rgba(255,255,255,0.2); margin-top: 12px; }
.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #fff;
  font-size: 13px;
}
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2c2c3a;
  border-radius: 34px;
  transition: 0.2s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #ccc;
  border-radius: 50%;
  transition: 0.2s;
}
input:checked + .slider { background-color: #FFD700; }
input:checked + .slider:before { transform: translateX(22px); background-color: #1e1a2f; }
.faq-item {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 8px;
  text-align: left;
  color: #fff;
  font-size: 12px;
}

/* Help/FAQ list scroll kare — warna 9 items screen se bahar nikal jate the */
.faq-scroll {
  max-height: 52vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  margin-bottom: 10px;
  text-align: left;
}
/* patli scrollbar (mobile-friendly) */
.faq-scroll::-webkit-scrollbar { width: 4px; }
.faq-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.06); border-radius: 4px; }
.faq-scroll::-webkit-scrollbar-thumb { background: rgba(255,215,0,0.55); border-radius: 4px; }
/* Help card thoda chaudi, taaki text 2-3 lines me fit ho */
#helpOv .ov-card { max-width: 340px; padding: 14px 12px; }
#helpOv .faq-item { font-size: 11.5px; padding: 7px 8px; margin-bottom: 6px; line-height: 1.35; }
#helpOv .ov-title { font-size: 17px; margin-bottom: 8px; }
#helpOv .gbtn { margin-top: 2px; }
#lbContent {
  background: rgba(0,0,0,0.85);
  border-radius: 16px;
  padding: 10px;
  max-height: 320px;
  overflow-y: auto;
}
.lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.12);
  padding: 6px 10px;
  margin: 6px 0;
  border-radius: 30px;
  border-left: 3px solid #FFD700;
}
.lb-rank { font-size: 16px; font-weight: bold; min-width: 35px; color: #FFD700; }
.lb-name { flex: 1; font-size: 13px; font-weight: bold; color: #FFFFFF; margin-left: 8px; }
.lb-score { font-size: 13px; font-weight: bold; color: #00FFB0; min-width: 70px; text-align: right; }
.lb-lv { font-size: 11px; color: #FFB8D0; min-width: 45px; text-align: right; }
#roadmapContent { max-height: 320px; overflow-y: auto; padding: 4px; }
.roadmap-world { background: rgba(0,0,0,0.6); border-radius: 14px; padding: 10px; margin-bottom: 8px; border-left: 3px solid #FFD700; }
.roadmap-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.roadmap-emoji { font-size: 24px; }
.roadmap-name { font-size: 14px; font-weight: bold; color: #FFD700; }
.roadmap-range { font-size: 10px; color: #ccc; margin-left: auto; }
.roadmap-current { font-size: 10px; color: #FFD700; text-align: center; margin-top: 6px; }
.streak-dot {
  width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; border: 2px solid rgba(255,255,255,0.1); margin: 0 4px;
}
.streak-dot.done { background: linear-gradient(135deg,#FFD700,#FF8C00); border-color:#FFD700; }
.streak-dot.today { background: linear-gradient(135deg,#FF4DA6,#845EF7); border-color:#FF4DA6; }
.streak-dot.future { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.2); }

@media (max-width: 400px) {
  .gbtn { padding: 8px 14px; font-size: 13px; }
  .icon-btn { padding: 5px; font-size: 11px; }
  .ov-card { padding: 16px 14px; }
  .ov-title { font-size: 20px; }
  .game-title { font-size: 24px; }
}

body.game-active {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* ============================================================
   ===== HOME PAGE OVERLAY =====
   ============================================================ */
#homePageOv {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.92);
  z-index: 60;
}
.home-card {
  background: linear-gradient(145deg, #0e0a1f, #1a1030);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 28px;
  padding: 24px 20px 30px;
  width: 92%;
  max-width: 340px;
  text-align: center;
  position: relative;
}
.home-top-bar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}
.home-top-bar button {
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
  color: rgba(255,255,255,0.7);
}
.home-top-bar button:active { background: rgba(255,215,0,0.2); transform: scale(0.92); }
.home-hero { margin-bottom: 20px; }
.home-hero .candy-icon {
  font-size: 56px;
  display: inline-block;
  animation: homeBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px #FF4DA6);
}
@keyframes homeBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.home-hero .game-title {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #FFD700, #FF4DA6, #845EF7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 6px 0 2px;
}
.home-hero .sub {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.primary-btn {
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  border: none;
  border-radius: 60px;
  padding: 14px;
  width: 100%;
  font-size: 18px;
  font-weight: bold;
  color: #2A1000;
  cursor: pointer;
  margin-bottom: 10px;
  box-shadow: 0 6px 0 #b16200;
  transition: all 0.15s;
}
.primary-btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #b16200; }
.secondary-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 60px;
  padding: 12px;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  color: #FFD700;
  cursor: pointer;
  margin-bottom: 10px;
  transition: 0.2s;
}
.secondary-btn:active { background: rgba(255,215,0,0.15); }
#homePageOv .icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 8px;
}
#homePageOv .icon-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 40px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}
#homePageOv .icon-btn:active { background: rgba(255,215,0,0.2); transform: scale(0.94); }
#homePageOv .version {
  font-size: 8px;
  color: rgba(255,255,255,0.25);
  margin-top: 10px;
}

@media (hover: hover) {
  .primary-btn:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 7px 0 #b16200; }
  .secondary-btn:hover { background: rgba(255,215,0,0.15); }
  #homePageOv .icon-btn:hover { background: rgba(255,215,0,0.1); }
}

/* ============================================================
   ===== UI CANDY STYLES (for Home / Skin / Daily) =====
   ============================================================ */
.candy {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 5px;
    display: inline-block;
    transition: transform 0.2s;
    cursor: pointer;
}

/* Base Colors */
.c-red    { background: #FF4D4D; }
.c-blue   { background: #4D79FF; }
.c-green  { background: #4DFF88; }
.c-yellow { background: #FFFF4D; }
.c-purple { background: #994DFF; }
.c-orange { background: #FF8C00; }

/* Shapes */
.shape-round { border-radius: 50%; }
.shape-square { border-radius: 10px; }
.shape-jelly { border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; }
.shape-star { 
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); 
}
.shape-diamond { 
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); 
}

/* Sizes */
.size-small { width: 36px; height: 36px; }
.size-medium { width: 50px; height: 50px; }
.size-large { width: 64px; height: 64px; }

/* Hover / Active effects */
.candy:hover { transform: scale(1.1); }
.candy:active { transform: scale(0.9); }

/* Glow variant */
.candy.glow-on { box-shadow: 0 0 20px currentColor, inset -5px -5px 10px rgba(0,0,0,0.2); }

/* ============================================================
   ===== v4.2 : WHEEL, BASKET SHOP, COINS =====================
   ============================================================ */

/* ---- Daily reward wheel ---- */
#wheelCanvas {
  width: 250px;
  height: 250px;
  max-width: 100%;
  margin: 6px auto 0;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(255, 215, 0, 0.28));
}
#spinArrow {
  text-align: center;
  color: #FF3B6B;
  font-size: 20px;
  line-height: 12px;
  margin-top: -6px;
  text-shadow: 0 0 10px #FF3B6B;
  animation: spinArrowPulse 1.2s ease-in-out infinite;
}
@keyframes spinArrowPulse {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(3px); opacity: 1; }
}

#spinBtnEl { letter-spacing: 0.6px; }
#spinBtnEl:disabled { filter: grayscale(0.35); }

#spinCooldown {
  display: none;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #FFD700;
  background: rgba(255, 215, 0, 0.10);
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 30px;
  padding: 6px 12px;
  margin-top: 8px;
}
#spinCooldown::before { content: "⏳ Agla spin: "; color: #FFB8D0; font-weight: 600; }

#rewardResult {
  display: none;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,215,0,0.16), rgba(255,140,0,0.10));
  border: 1px solid rgba(255, 215, 0, 0.45);
  color: #FFD700;
  font-size: 14px;
  font-weight: 700;
}
#rewardResult #rewardText { display: block; margin-top: 2px; }
#rewardResult.pop { animation: rewardPop 0.55s cubic-bezier(0.2, 1.5, 0.4, 1); }
@keyframes rewardPop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ---- Basket shop ---- */
.shop-coin-row {
  font-size: 13px;
  color: #FFB8D0;
  text-align: center;
  margin: 2px 0 6px;
}
.shop-coin-row b { color: #FFD700; font-size: 15px; }
.shop-hint {
  font-size: 10.5px;
  color: rgba(255,255,255,0.5);
  line-height: 1.45;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 7px 9px;
  margin-bottom: 8px;
}
#basketGrid {
  max-height: 46vh;
  overflow-y: auto;
  padding: 2px;
  -webkit-overflow-scrolling: touch;
}
.basket-theme-head {
  font-size: 11px;
  font-weight: 800;
  color: #00FFB0;
  letter-spacing: 0.4px;
  margin: 10px 2px 6px;
  border-bottom: 1px solid rgba(0, 255, 176, 0.25);
  padding-bottom: 3px;
}
.basket-theme-head:first-child { margin-top: 2px; }

.basket-item {
  display: inline-block;
  vertical-align: top;
  width: calc(50% - 8px);
  margin: 4px;
  padding: 8px 4px 7px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.2s, background 0.2s;
}
.basket-item:active { transform: scale(0.95); }
.basket-item canvas { display: block; margin: 0 auto; }
.basket-item.equipped {
  border-color: #00FFB0;
  background: rgba(0, 255, 176, 0.10);
  box-shadow: 0 0 14px rgba(0, 255, 176, 0.30);
}
.basket-item.locked { opacity: 0.72; }
.bk-name {
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 3px;
}
.bk-status {
  font-size: 9.5px;
  line-height: 1.35;
  margin-top: 2px;
  min-height: 20px;
}

/* chhote phone par HUD thoda compact */
@media (max-width: 380px) {
  #wheelCanvas { width: 210px; height: 210px; }
  .basket-item { width: calc(50% - 7px); margin: 3px; }
  .hv { font-size: 15px; }
  #coinHud { font-size: 12px !important; }
}


/* ============================================================
   ===== v4.6 : TOAST, MISSIONS, PAUSE MENU, ROTATE ===========
   ============================================================ */

/* ---- toast (native alert ki jagah) ---- */
#toast {
  position: fixed;
  left: 50%;
  top: 14px;
  transform: translateX(-50%) translateY(-18px);
  z-index: 9999;
  display: none;
  max-width: 88%;
  padding: 10px 18px;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(20, 10, 40, 0.97), rgba(40, 15, 60, 0.97));
  border: 1.5px solid rgba(255, 215, 0, 0.55);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
  color: #FFD700;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.45;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- rotate prompt (portrait lock) ---- */
#rotateMsg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #060012;
  color: #FFD700;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  padding-top: 30vh;
  line-height: 1.7;
}
#rotateMsg span { font-size: 14px; color: rgba(255,255,255,0.6); font-weight: 500; }
@media (orientation: landscape) and (max-height: 520px) {
  #rotateMsg { display: block; }
}

/* ---- best score line ---- */
.best-line {
  font-size: 12px;
  font-weight: 700;
  color: #FFD700;
  background: rgba(255, 215, 0, 0.10);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 20px;
  padding: 6px 10px;
  margin-bottom: 10px;
}
.best-line b { color: #00FFB0; }

/* ---- pause menu ---- */
.pause-stats {
  font-size: 13px;
  color: #FFB8D0;
  margin: 6px 0 12px;
}
.pause-stats b { color: #FFD700; }
.pause-row { display: flex; gap: 8px; margin-top: 8px; }
.pause-mini {
  flex: 1;
  margin-top: 0 !important;
  font-size: 12px !important;
  padding: 10px 6px !important;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}
.pause-mini:active { background: rgba(255, 215, 0, 0.2); }

/* ---- missions ---- */
#missionList {
  max-height: 46vh;
  overflow-y: auto;
  padding: 2px;
  -webkit-overflow-scrolling: touch;
}
.mission {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 8px 10px;
  margin-bottom: 7px;
  text-align: left;
}
.mission.done {
  border-color: rgba(0, 255, 176, 0.55);
  background: rgba(0, 255, 176, 0.08);
}
.ms-top { display: flex; align-items: center; gap: 6px; }
.ms-icon { font-size: 16px; }
.ms-name { flex: 1; font-size: 12.5px; font-weight: 800; color: #fff; }
.ms-reward { font-size: 11px; font-weight: 800; color: #FFD700; }
.mission.done .ms-reward { color: #00FFB0; }
.ms-text { font-size: 10.5px; color: rgba(255, 255, 255, 0.55); margin: 2px 0 5px; }
.ms-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
}
.ms-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #FFD700, #FF8C00);
  transition: width 0.3s;
}
.mission.done .ms-fill { background: linear-gradient(90deg, #00FFB0, #10D4AA); }
.ms-prog { font-size: 9.5px; color: rgba(255, 255, 255, 0.45); margin-top: 3px; text-align: right; }
