/* ============ HOME SCREEN OVERRIDES ============ */
.screen-home { display: none !important; }
.screen-home.active { display: flex !important; flex-direction: column; padding: 0; margin: 0; border-radius: 0; box-shadow: none; background: var(--bg); min-height: 100vh; padding-bottom: 70px; }
.screen-home .sidebar { display: none; }
.screen-home .home-main { flex: 1; overflow-y: auto; }

/* ============ MAP SCREEN ============ */
.screen-map { display: none !important; }
.screen-map.active { display: flex !important; flex-direction: column; height: 100vh; padding: 0; margin: 0; border-radius: 0; box-shadow: none; overflow: hidden; position: fixed; top: 0; left: 0; width: 100vw; z-index: 200; }

/* ============ HOME HEADER ============ */
.home-header {
  display: none;
}
.header-left { display: flex; align-items: center; }
.header-logo { height: 28px; width: auto; }
.header-stats { display: flex; align-items: center; gap: 0.4rem; }
.h-stat {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background: rgba(255,255,255,0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
}
.h-stat-icon { font-size: 0.8rem; }
.h-stat-val { font-weight: 700; }
.h-stat-lbl { font-size: 0.55rem; opacity: 0.7; }
.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ============ GREETING SECTION ============ */
.home-greeting-section { padding: 0.8rem; }
.greeting-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.gc-text { flex: 1; min-width: 0; }
.gc-hello { font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-sub { font-size: 0.7rem; color: var(--text-light); margin: 0.15rem 0 0.3rem; }
.gc-grade-badge { display: inline-block; background: linear-gradient(135deg, var(--purple), var(--turquoise)); color: white; padding: 0.25rem 0.7rem; border-radius: 10px; font-size: 0.8rem; font-weight: 700; }
.gc-level { display: flex; align-items: center; gap: 0.4rem; }
.gc-xp-bar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.gc-xp-fill { height: 100%; background: linear-gradient(90deg, var(--turquoise), var(--purple)); border-radius: 3px; transition: width 0.5s; }
.gc-xp-text { font-size: 0.6rem; color: var(--text-light); white-space: nowrap; }
.gc-dragon-area {
  position: relative;
  flex-shrink: 0;
}
.gc-dragon-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(124, 58, 237, 0.3));
}
.gc-hello-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gc-avatar-badge {
  width: 30px;
  height: 30px;
  background: var(--card);
  border: 2px solid var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.gc-stats-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}
.gc-stat-item {
  font-size: 0.7rem;
  color: var(--purple);
  font-weight: 600;
}
.gc-stat-item strong {
  font-weight: 800;
}

/* ============ PROGRESS CARDS ============ */
.progress-cards {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.p-card {
  flex: 1;
  text-align: center;
  padding: 0.6rem 0.3rem;
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.p-card-icon { font-size: 1.1rem; margin-bottom: 0.1rem; }
.p-card-val { font-size: 1rem; font-weight: 800; color: var(--purple); display: block; }
.p-card-lbl { font-size: 0.6rem; color: var(--text-light); }

/* ============ MASCOT SECTION ============ */
.home-mascot-section { padding: 0 0.8rem; margin-bottom: 0.5rem; }
.mascot-card { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; background: linear-gradient(135deg, #f5f0ff, #ede9fe); border-radius: 12px; border: 1px solid #e0d4fc; }
.mascot-card-char { font-size: 1.8rem; flex-shrink: 0; }
.mascot-card-msg { font-size: 0.78rem; color: var(--purple); font-weight: 600; line-height: 1.3; }

/* ============ SECTION HEADS ============ */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.section-head h2 { font-size: 0.9rem; margin: 0; text-align: left; }

/* ============ WORLDS SECTION ============ */
.home-worlds-section { padding: 0.7rem 0.8rem; }

/* Adventure grid - 2 columns */
.worlds-grid-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.wcard-home {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.wcard-home:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--purple); }
#wcard-math { background: linear-gradient(135deg, #f0f4ff, #e8ecff); border-color: #c7d2fe; }
#wcard-comunicacion { background: linear-gradient(135deg, #fef2f8, #fce7f3); border-color: #f9a8d4; }
.wcard-home-icon { font-size: 2.5rem; margin-bottom: 0.3rem; }
.wcard-home-name { font-size: 0.85rem; font-weight: 800; color: var(--text); }
.wcard-home-sub { font-size: 0.65rem; color: var(--text-light); margin-bottom: 0.3rem; }
.wcard-home-bar { width: 100%; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.wcard-home-bar-fill { height: 100%; background: linear-gradient(90deg, var(--turquoise), var(--purple)); border-radius: 3px; transition: width 0.5s; }
.wcard-home-pct { font-size: 0.7rem; font-weight: 700; color: var(--purple); }
.wcard-home-btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: linear-gradient(135deg, var(--purple), var(--turquoise));
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  pointer-events: none;
}
.wcard-home-btn:hover { transform: scale(1.05); box-shadow: 0 3px 10px rgba(124,58,237,0.3); }

@media (max-width: 360px) {
  .worlds-grid-home { grid-template-columns: 1fr; }
  .wcard-home { padding: 1rem 0.8rem; }
}

/* Dragon inside wcard */
.wcard-dragon { display: flex; flex-direction: column; align-items: center; margin-bottom: 0.2rem; }
.wcard-dragon-img { width: 50px; height: 50px; object-fit: contain; }
.wcard-dragon-name { font-size: 0.5rem; font-weight: 700; color: var(--purple); margin-top: 0.1rem; }

/* Active area card - stands out */
.wcard-active {
  min-width: 180px;
  padding: 0.9rem;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe, #e0ecff) !important;
  border: 3px solid var(--purple) !important;
  box-shadow: 0 4px 20px rgba(124,58,237,0.25);
  position: relative;
  text-align: center;
}
.wcard-active-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.wcard-active-dragon { text-align: center; }
.wcard-active-dragon .wcard-dragon-img { width: 180px; height: 180px; }
.wcard-active-dragon .wcard-dragon-name { font-size: 0.6rem; font-weight: 700; color: var(--purple); margin-top: 0.1rem; }
.wcard-active-info { text-align: center; width: 100%; }
.wcard-active-info .wcard-name { font-size: 0.75rem; font-weight: 800; margin-bottom: 0.3rem; }
.wcard-active-info .wcard-bar { height: 6px; }
.wcard-active-info .wcard-pct { font-size: 0.7rem; margin-top: 0.2rem; }
.wcard-badge-active { background: var(--purple) !important; color: white !important; font-size: 0.55rem; padding: 0.15rem 0.5rem; }

.worlds-scroll {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.3rem 0 0.6rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.worlds-scroll::-webkit-scrollbar { height: 3px; }
.worlds-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.wcard {
  min-width: 130px;
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 0.8rem 0.6rem;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid var(--border);
  position: relative;
}
.wcard:hover:not(.locked) { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.wcard.locked { opacity: 0.9; cursor: not-allowed; border-style: dashed; border-color: #c4b5fd; }
.wcard-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.5rem;
  font-weight: 700;
  background: rgba(124,58,237,0.1);
  color: var(--purple);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}
.wcard.locked .wcard-badge { background: rgba(0,0,0,0.05); color: var(--text-light); }
.wcard-lock { font-size: 3.5rem; margin-bottom: 0.2rem; }
.wcard-icon { font-size: 1.8rem; margin-bottom: 0.2rem; }
.wcard-name { font-size: 0.7rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.wcard-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 0.3rem; }
.wcard-bar-fill { height: 100%; background: linear-gradient(90deg, var(--turquoise), var(--purple)); border-radius: 2px; transition: width 0.5s; }
.wcard-pct { font-size: 0.6rem; font-weight: 700; color: var(--purple); margin-top: 0.2rem; }

/* ============ CONTINUE SECTION ============ */
.home-continue-section { padding: 0.7rem 0.8rem; }
.continue-list { display: flex; flex-direction: column; gap: 0.4rem; }
.cont-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s;
}
.cont-item:hover { border-color: var(--purple); transform: translateY(-1px); }
.cont-icon { font-size: 1.3rem; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: #f0f0ff; border-radius: 10px; flex-shrink: 0; }
.cont-info { flex: 1; min-width: 0; }
.cont-name { font-weight: 600; font-size: 0.8rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cont-detail { font-size: 0.65rem; color: var(--text-light); }
.cont-btn { background: linear-gradient(135deg, var(--purple), var(--turquoise)); color: white; border: none; padding: 0.4rem 0.8rem; border-radius: 8px; font-size: 0.7rem; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.cont-btn:hover { transform: scale(1.05); }

/* ============ ACTIVITY SECTION ============ */
.home-activity-section { padding: 0.7rem 0.8rem; }
.activity-list { display: flex; flex-direction: column; gap: 0.3rem; }
.activity-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.6rem; background: var(--card); border-radius: 8px; border: 1px solid var(--border); font-size: 0.7rem; color: var(--text-light); }
.activity-item-icon { font-size: 0.9rem; }

/* ============ NEXT MISSION SECTION ============ */
.next-mission-item.mission-comunicacion { border-left: 3px solid #8b5cf6; }
.next-mission-item.mission-math { border-left: 3px solid var(--turquoise); }
.mission-subject-label { font-size: 0.6rem; font-weight: 600; padding: 0.1rem 0.3rem; border-radius: 4px; background: #f0f0ff; color: var(--purple); }
.activity-item-text { flex: 1; }

/* ============ DRAGON COMPANION CARD ============ */
.dragon-companion-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe, #c4b5fd);
  border-radius: 16px;
  border: 2px solid var(--purple);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
  position: relative;
  overflow: hidden;
}
.dragon-companion-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  border-radius: 50%;
}
.dragon-companion-img-wrap {
  flex-shrink: 0;
}
.dragon-companion-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(124, 58, 237, 0.3));
}
.dragon-companion-info {
  flex: 1;
  min-width: 0;
}
.dragon-companion-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 0.1rem;
}
.dragon-companion-stage {
  font-size: 0.7rem;
  color: #5b21b6;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.dragon-companion-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}
.dragon-companion-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--turquoise));
  border-radius: 4px;
  transition: width 0.5s ease;
}
.dragon-companion-msg {
  font-size: 0.7rem;
  color: #6d28d9;
  font-weight: 600;
  font-style: italic;
}

@media (max-width: 360px) {
  .dragon-companion-img { width: 70px; height: 70px; }
  .dragon-companion-name { font-size: 0.95rem; }
  .dragon-companion-card { padding: 0.8rem; gap: 0.7rem; }
}

/* ============ EXPLORE SECTION ============ */
.explore-subject-label { font-size: 0.6rem; font-weight: 600; padding: 0.1rem 0.3rem; border-radius: 4px; }
.explore-subject-math { background: #e0f7fa; color: #00796b; }
.explore-subject-comunicacion { background: #f3e5f5; color: #7b1fa2; }
.explore-grade-item[data-subject="comunicacion"] { border-left: 3px solid #8b5cf6; }
.explore-grade-item[data-subject="math"] { border-left: 3px solid var(--turquoise); }

/* ============ HISTORY SECTION ============ */
.history-subject-label { font-size: 0.6rem; font-weight: 600; padding: 0.1rem 0.3rem; border-radius: 4px; }
.history-subject-math { background: #e0f7fa; color: #00796b; }
.history-subject-comunicacion { background: #f3e5f5; color: #7b1fa2; }

/* ============ CHALLENGES SECTION ============ */
.home-challenges-section { padding: 0.7rem 0.8rem; }
.challenges-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.ch-card { text-align: center; padding: 0.7rem; background: var(--card); border-radius: 12px; border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; }
.ch-card:hover { border-color: var(--purple); transform: translateY(-2px); box-shadow: var(--shadow); }
.ch-icon { font-size: 1.3rem; margin-bottom: 0.2rem; }
.ch-name { font-size: 0.7rem; font-weight: 600; color: var(--text); }
.ch-reward { font-size: 0.6rem; color: var(--purple); font-weight: 600; }

/* ============ BOTTOM NAV (HOME) ============ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  transform: none;
  display: flex;
  justify-content: space-around;
  background: var(--card);
  padding: 0.5rem 0 0.6rem;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
  z-index: 100;
}
.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  color: var(--text-light);
  transition: color 0.2s;
  font-size: inherit;
}
.bnav-item.active { color: var(--purple); }
.bnav-icon { font-size: 1.1rem; }
.bnav-label { font-size: 0.55rem; font-weight: 600; margin-top: 0.1rem; }

/* ============ PLAY NOW BUTTON ============ */
.btn-play-now { display: block; width: 100%; margin-top: 0.6rem; padding: 0.8rem; background: linear-gradient(135deg, var(--purple), var(--turquoise)); color: white; border: none; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 12px rgba(124,58,237,0.3); }
.btn-play-now:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(124,58,237,0.4); }

/* ============ DESKTOP SIDEBAR (≥1024px) ============ */
@media (min-width: 1024px) {
  .screen-home.active { flex-direction: row; padding-bottom: 0; }
  .screen-home .sidebar {
    display: flex;
    flex-direction: column;
    width: 220px;
    flex-shrink: 0;
    background: var(--card);
    border-right: 1px solid var(--border);
    padding: 1rem 0.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }
  .screen-home .bottom-nav { display: none; }
  .screen-home .home-header .header-left { display: none; }
  .sidebar-logo { text-align: center; margin-bottom: 1.5rem; }
  .sidebar-logo-img { width: 120px; height: auto; }
  .sidebar-nav { display: flex; flex-direction: column; gap: 0.3rem; }
  .sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.2s;
    width: 100%;
    text-align: left;
  }
  .sidebar-item:hover { background: var(--bg); color: var(--text); }
  .sidebar-item.active { background: #f5f0ff; color: var(--purple); }
  .si-icon { font-size: 1.1rem; }

  /* Desktop home main content gets more space */
  .home-greeting-section { padding: 1rem 1.5rem; }
  .greeting-card { padding: 1.2rem; }
  .home-worlds-section { padding: 1rem 1.5rem; }
  .home-continue-section { padding: 1rem 1.5rem; }
  .home-activity-section { padding: 1rem 1.5rem; }
  .home-mascot-section { padding: 0 1.5rem; margin-bottom: 0.7rem; }
}

/* ============ SMALL PHONES ============ */
@media (max-width: 360px) {
  .greeting-card { flex-wrap: wrap; gap: 0.5rem; padding: 0.7rem; }
  .gc-dragon-img { width: 100px; height: 100px; }
  .gc-avatar-badge { width: 24px; height: 24px; font-size: 0.8rem; }
  .progress-cards { flex-wrap: wrap; }
  .p-card { min-width: 80px; }
  .wcard { min-width: 110px; }
}

/* ============ NIVI MASCOT ============ */

/* Base Nivi image */
.nivi-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* Nivi sizes per context */
.nivi-welcome { width: 120px; height: 120px; margin: 0.5rem auto; display: block; }
.nivi-game { width: 44px; height: 44px; }
.nivi-map { width: 50px; height: 50px; }
.nivi-results { width: 80px; height: 80px; margin: 0 auto 0.5rem; display: block; }
.nivi-reward { width: 80px; height: 80px; margin: 0 auto 0.5rem; display: block; }
.nivi-inline { width: 24px; height: 24px; vertical-align: middle; margin-right: 0.3rem; }

/* Nivi idle animation - gentle floating */
.nivi-idle {
  animation: niviFloat 3s ease-in-out infinite;
}

@keyframes niviFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(1deg); }
  50% { transform: translateY(-6px) rotate(0deg); }
  75% { transform: translateY(-3px) rotate(-1deg); }
}

/* Nivi celebrate animation - bounce + scale */
.nivi-celebrate {
  animation: niviCelebrate 0.8s ease-in-out infinite;
}

@keyframes niviCelebrate {
  0%, 100% { transform: scale(1) rotate(0deg) translateY(0); }
  20% { transform: scale(1.1) rotate(-5deg) translateY(-5px); }
  40% { transform: scale(1.15) rotate(5deg) translateY(-8px); }
  60% { transform: scale(1.1) rotate(-3deg) translateY(-5px); }
  80% { transform: scale(1.05) rotate(2deg) translateY(-2px); }
}

/* Nivi thinking animation - for wrong answers */
.nivi-think {
  animation: niviThink 1.5s ease-in-out infinite;
}

@keyframes niviThink {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-2px) rotate(-8deg); }
  60% { transform: translateY(0) rotate(5deg); }
}

/* Nivi wave animation - for greetings */
.nivi-wave {
  animation: niviWave 1s ease-in-out;
}

@keyframes niviWave {
  0% { transform: rotate(0deg); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-8deg); }
  45% { transform: rotate(14deg); }
  60% { transform: rotate(-4deg); }
  75% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}

/* Mascot card updated for Nivi image */
.mascot-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(135deg, #f5f0ff, #ede9fe);
  border-radius: 14px;
  border: 1px solid #e0d4fc;
  box-shadow: 0 2px 8px rgba(124,58,237,0.08);
  cursor: pointer;
  transition: all 0.2s;
}
.mascot-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(124,58,237,0.15); }
.mascot-card:active .nivi-img { animation: niviWave 1s ease-in-out; }
.mascot-card-text { flex: 1; min-width: 0; }
.mascot-card-name { font-size: 0.65rem; font-weight: 800; color: var(--purple); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.1rem; }
.mascot-card-msg { font-size: 0.78rem; color: var(--text); font-weight: 600; line-height: 1.3; }

/* Nivi floating in game screen */
.nivi-game-float {
  position: fixed;
  bottom: 12px;
  left: 12px;
  z-index: 50;
  pointer-events: none;
}

/* Nivi in AI messages (inline) */
.gm-ai-message { display: flex; align-items: center; }
.gm-ai-message .nivi-inline { flex-shrink: 0; }

/* Map mascot float updated */
.map-mascot-float { display: none !important; }
@media (min-width: 768px) {
  .map-mascot-float {
    display: flex !important;
    position: absolute;
    bottom: 10px;
    left: 1rem;
    align-items: flex-end;
    gap: 0.5rem;
    z-index: 20;
  }
  .map-mascot-bubble {
    display: block;
    background: rgba(255,255,255,0.95);
    border-radius: 12px 12px 12px 2px;
    padding: 0.5rem 0.7rem;
    font-size: 0.65rem;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 200px;
    font-weight: 600;
  }
  .nivi-map { width: 55px; height: 55px; }
}

/* Desktop: Nivi game float bigger */
@media (min-width: 769px) {
  .nivi-game { width: 52px; height: 52px; }
}

/* Mobile: smaller Nivi in game */
@media (max-width: 480px) {
  .nivi-game-float { bottom: 8px; left: 8px; }
  .nivi-game { width: 36px; height: 36px; }
  .nivi-welcome { width: 90px; height: 90px; }
}
