﻿:root {
  /* Default Green Theme */
  --accent-color: #2ECC71;
  --accent-hover: #27AE60;
  --accent-glow: rgba(46, 204, 113, 0.4);
  --accent-rgb: 46, 204, 113;
}

/* Shared visually-hidden utility for status text and screen-reader instructions. */
.lumnix-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Base Styles - Lumnix Style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Poppins', sans-serif;
  font-variation-settings: 'wght' 400;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  color: #FFFFFF;
  overflow-y: auto;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(var(--accent-rgb), 0.03) 0%, transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(var(--accent-rgb), 0.02) 0%, transparent 25%);
  animation: ambientMove 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes ambientMove {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-5%, -5%); }
}

/* Partículas bioluminescentes estilo Avatar */
@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0) scale(0.8);
        opacity: 0;
    }
    5% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
        transform: translateY(50vh) translateX(30px) scale(1);
    }
    95% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-10vh) translateX(-20px) scale(0.6);
        opacity: 0;
    }
}

@keyframes particle-glow {
    0%, 100% {
        filter: brightness(1) blur(1px);
    }
    50% {
        filter: brightness(1.8) blur(2px);
    }
}

@keyframes drift-horizontal {
    0%, 100% { transform: translateX(0); }
    33% { transform: translateX(15px); }
    66% { transform: translateX(-15px); }
}

body > * {
  position: relative;
  z-index: 1;
}

/* Hide sidebar and main content when a mode is active */
body.mode-active .invix-sidebar,
body.mode-active .invix-main {
  display: none;
}

/* Lumnix Style Sidebar */
.invix-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: 100%;
  background: rgba(12, 16, 22, 0.95);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.8), 1px 0 0 rgba(255, 255, 255, 0.05) inset;
  z-index: 200;
  transition: width 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.invix-sidebar:hover {
    width: 280px;
    box-shadow: 6px 0 60px rgba(0, 0, 0, 0.9), 2px 0 0 rgba(255, 255, 255, 0.08) inset;
    background: rgba(12, 16, 22, 0.98);
}

.user-info {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 15px;
  color: var(--accent-color);
}



.user-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-color);
  margin-right: 8px;
  background-color: rgba(var(--accent-rgb), 0.1);
}



.user-name {
  font-size: 1rem;
  font-variation-settings: 'wght' 500;
  display: none; /* Esconde o nome do usuário por padrão */
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Mostra o nome do usuário ao passar o mouse */
.invix-sidebar:hover .user-name {
    display: inline;
    opacity: 1;
}

.invix-sidebar ul {
  list-style: none;
}

.invix-sidebar ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin: 10px auto;
  cursor: pointer;
  border-radius: 12px;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  width: 52px;
  height: 60px;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.invix-sidebar ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent-color), transparent);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.invix-sidebar:hover ul li,
.invix-sidebar.expanded ul li {
  transform: translateX(0);
}

.invix-sidebar:hover ul li,
.invix-sidebar.expanded ul li {
  width: auto;
  justify-content: flex-start;
  padding: 10px 12px;
  margin: 6px 8px;
}



.invix-sidebar ul li:hover,
.invix-sidebar ul li.active {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.2) 0%, rgba(var(--accent-rgb), 0.08) 100%);
  box-shadow: 0 12px 32px var(--accent-glow), 0 0 40px var(--accent-glow), 0 0 1px rgba(255, 255, 255, 0.2) inset;
  border-color: rgba(var(--accent-rgb), 0.6);
  transform: translateY(-3px);
  margin: 6px 8px;
}

body.professional-mode .invix-sidebar ul li:hover,
body.professional-mode .invix-sidebar ul li.active {
  background: linear-gradient(90deg, rgba(0, 122, 255, 0.24) 0%, rgba(0, 122, 255, 0.10) 100%) !important;
  box-shadow: 0 12px 32px rgba(0, 122, 255, 0.24), 0 0 40px rgba(0, 122, 255, 0.18), 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
  border-color: rgba(0, 122, 255, 0.72) !important;
}

body.professional-mode .invix-sidebar ul li.active .emoji-icon,
body.professional-mode .invix-sidebar ul li.active .label {
  color: #ffffff !important;
}

body.professional-mode .invix-sidebar ul li.active::before {
  background: #007aff !important;
}

.invix-sidebar ul li:hover::before,
.invix-sidebar ul li.active::before {
  width: 4px;
}

.invix-sidebar ul li:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

.invix-sidebar ul li .emoji-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 0;
  color: #ffffff;
  font-size: 1.8rem;
  margin-right: 0;
  filter: drop-shadow(0 4px 12px rgba(var(--accent-rgb), 0.4));
  transition: transform 0.15s ease;
}

.invix-sidebar ul li .emoji-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: currentColor;
  stroke: currentColor;
}

.invix-sidebar ul li:hover .emoji-icon {
  transform: scale(1.4) rotate(12deg);
  filter: drop-shadow(0 0 20px rgba(var(--accent-rgb), 1));
}

.invix-sidebar:hover ul li .emoji-icon {
  margin-right: 12px;
}

.bottom-nav-item svg {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: currentColor;
}






.invix-sidebar ul li .label {
  font-size: 1rem;
  font-weight: 400;
  display: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  color: rgba(255, 255, 255, 0.9);
}

.invix-sidebar:hover ul li .label {
    display: inline;
    opacity: 1;
}

/* Lumnix Style Main Content */
.invix-main {
  margin-left: 80px;
  padding: 20px;
  min-height: 100vh;
  transition: none;
  background: transparent;
}

/* Lumnix Style Expanded Sidebar */
body.sidebar-expanded .invix-main {
    margin-left: 80px;
}

.invix-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  animation: sectionEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 1;
}

@keyframes sectionEntrance {
  from { 
    opacity: 0; 
    transform: translateY(40px) scale(0.95);
    filter: blur(10px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.invix-section.fade-out {
  animation: fadeOutSection 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeOutSection {
  from { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
  to { 
    opacity: 0; 
    transform: translateY(-20px) scale(0.98);
  }
}

/* Hero principal da home */
.welcome-banner {
  background:
    radial-gradient(circle at top right, rgba(120, 181, 255, 0.14), transparent 34%),
    radial-gradient(circle at bottom left, rgba(77, 208, 225, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(14, 18, 28, 0.96) 0%, rgba(12, 16, 24, 0.92) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  animation: heroEntrance 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.05);
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 38%);
  pointer-events: none;
}

.welcome-banner::after {
  content: '';
  position: absolute;
  inset: auto 24px 24px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 179, 255, 0.16), transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}

@keyframes heroEntrance {
  0% { opacity: 0; transform: translateY(-40px) scale(0.92); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes mysticPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-user-section {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 18px;
}

.hero-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.24),
    0 0 0 6px rgba(255,255,255,0.03);
  object-fit: cover;
}

/* AppSensorial: avatar + mascote grandes e lado a lado em todas as versões */
body.appsensorial-page .hero-user-section {
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 16px !important;
}

body.appsensorial-page .hero-avatar-frame,
body.appsensorial-page .hero-avatar,
body.appsensorial-page .hero-avatar-video,
body.appsensorial-page .hero-avatar-image {
  width: 150px !important;
  height: 150px !important;
}

body.appsensorial-page .hero-mascot-frame,
body.appsensorial-page .hero-mascot,
body.appsensorial-page .hero-mascot-video,
body.appsensorial-page .hero-mascot-image {
  width: 120px !important;
  height: 120px !important;
}

body.appsensorial-page .hero-mascot-frame {
  margin-left: 0 !important;
}

@media (max-width: 600px) {
  body.appsensorial-page .hero-user-section {
    gap: 26px !important;
  }

  body.appsensorial-page .hero-avatar-frame,
  body.appsensorial-page .hero-avatar,
  body.appsensorial-page .hero-avatar-video,
  body.appsensorial-page .hero-avatar-image {
    width: 72px !important;
    height: 72px !important;
    flex-shrink: 0 !important;
  }

  body.appsensorial-page .hero-mascot-frame,
  body.appsensorial-page .hero-mascot,
  body.appsensorial-page .hero-mascot-video,
  body.appsensorial-page .hero-mascot-image {
    width: 54px !important;
    height: 54px !important;
    flex-shrink: 0 !important;
  }
}

.hero-user-info h2 {
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-shadow: none;
}

.hero-user-info h2 span {
  font-size: inherit;
  color: #eaf2ff;
  background: none;
  -webkit-text-fill-color: #eaf2ff;
  font-weight: inherit;
}

.hero-user-info p {
  font-size: 0.98rem;
  color: rgba(234,242,255,0.72);
  margin: 0;
  line-height: 1.5;
  max-width: 34ch;
}

.hero-stats {
  display: flex;
  gap: 20px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  display: block;
  text-shadow: 0 0 10px var(--accent-glow);
}

.hero-stat-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: visible;
}

.hero-recommended h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(234,242,255,0.52);
  margin: 0 0 12px 0;
  font-weight: 600;
}

.hero-game-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.hero-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  border-color: rgba(120,181,255,0.24);
}

.hero-game-title {
  font-size: 1.15rem;
  font-weight: 650;
  color: #fff;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.hero-game-icon {
  font-size: 1.45rem;
  filter: none;
}

.hero-game-reason {
  font-size: 0.93rem;
  color: rgba(234,242,255,0.72);
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.hero-play-button {
  background: linear-gradient(135deg, #7ab7ff 0%, #4b8dff 100%);
  color: #081120;
  border: 1px solid rgba(255,255,255,0.14);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 12px 28px rgba(64, 132, 255, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.hero-play-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.24), transparent 55%);
  opacity: 0.8;
}

.hero-play-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(64, 132, 255, 0.34);
  filter: brightness(1.02);
}

.hero-play-button:active {
  transform: translateY(0);
}

.welcome-content h1 {
  font-size: 1.25rem;
  font-variation-settings: 'wght' 600;
  color: #dbe7fb;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.welcome-content p {
  font-size: 0.95rem;
  margin: 0;
  color: rgba(234,242,255,0.72);
  line-height: 1.55;
}

/* çYOç ÁRVORE MÍSTICA - SKILLS XP */
.skills-xp {
  overflow: visible;
  background: 
    radial-gradient(ellipse at center, rgba(100,180,255,0.25), transparent 70%),
    linear-gradient(135deg, rgba(0,100,180,0.15), rgba(0,150,220,0.08));
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(100,180,255,0.3);
  box-shadow: 
    0 0 60px rgba(100,180,255,0.4),
    0 0 100px rgba(100,200,255,0.2) inset,
    0 20px 40px rgba(0,0,0,0.3);
  position: relative;
  animation: treeGlow 4s ease-in-out infinite;
}

.skills-xp::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(100,180,255,0.15), transparent 60%);
  animation: treePulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes treeGlow {
  0%, 100% { box-shadow: 0 0 60px rgba(100,180,255,0.4), 0 0 100px rgba(100,200,255,0.2) inset, 0 20px 40px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 0 80px rgba(120,200,255,0.6), 0 0 120px rgba(120,220,255,0.3) inset, 0 20px 40px rgba(0,0,0,0.3); }
}

@keyframes treePulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.skills-xp h3 {
  font-size: 1.3rem;
  color: #b0d8ff;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 300;
  text-shadow: 0 0 20px rgba(100,180,255,0.8), 0 0 40px rgba(100,200,255,0.5);
  position: relative;
  z-index: 1;
}

#overall-level {
  display: inline-block;
  padding: 16px 28px;
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,215,0,0.05));
  border-radius: 16px;
  backdrop-filter: blur(20px);
  margin: 0 auto 12px;
  text-align: center;
  border: 2px solid rgba(255,215,0,0.3);
  box-shadow: 0 8px 24px rgba(255,215,0,0.2), 0 0 40px rgba(255,215,0,0.1) inset;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 700;
  font-size: 1.1rem;
  color: #FFD700;
  text-shadow: 0 0 20px rgba(255,215,0,0.5);
}

.skills-xp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
  overflow: visible;
}

.skill-xp-item {
  position: relative;
  width: 90px;
  height: 120px;
  margin: 10px auto;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.skill-xp-item:hover {
  transform: translateY(-8px) scale(1.08);
}

.skill-hex-shape {
  position: absolute;
  width: 70px;
  height: 80px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,140,0,0.08));
  border: 2px solid rgba(255,215,0,0.5);
  box-shadow: 0 0 25px rgba(255,215,0,0.3), inset 0 0 15px rgba(255,215,0,0.15);
  transition: all 0.4s;
  overflow: hidden;
}

.skill-xp-item:hover .skill-hex-shape {
  border-color: rgba(255,215,0,0.9);
  box-shadow: 0 0 40px rgba(255,215,0,0.6), inset 0 0 25px rgba(255,215,0,0.3);
}

.skill-hex-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70px;
  background: linear-gradient(180deg, rgba(255,215,0,0.6), rgba(255,140,0,0.5));
  filter: blur(1px);
  animation: liquidFlow 3s ease-in-out infinite;
  transition: height 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

@keyframes liquidFlow {
  0%, 100% { transform: translateY(0); filter: blur(1px); }
  50% { transform: translateY(-2px); filter: blur(1.5px); }
}

.skill-icon-center {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.6rem;
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  transition: all 0.4s;
}

.skill-xp-item:hover .skill-icon-center {
  transform: translate(-50%, -50%) scale(1.15);
  filter: drop-shadow(0 4px 12px rgba(255,215,0,0.6));
}

.skill-xp-name {
  position: absolute;
  bottom: 15px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 0.65rem;
  text-align: center;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.skill-xp-value {
  position: absolute;
  bottom: 2px;
  color: #ffd700;
  font-weight: 700;
  font-size: 0.6rem;
  text-align: center;
  z-index: 2;
  text-shadow: 0 0 8px rgba(255,215,0,0.6);
}

.skill-hex-particles {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255,215,0,0.8);
  border-radius: 50%;
  animation: floatParticle 3s ease-in-out infinite;
  pointer-events: none;
  opacity: 0;
}

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  50% { transform: translateY(-25px) translateX(8px); opacity: 1; }
}

.skill-xp-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(255,215,0,0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.skill-xp-item:hover::before {
  opacity: 1;
}

.skill-xp-item:hover {
  transform: translateY(-8px) scale(1.08);
}

.skill-xp-item.recently-used::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 6px;
  border: 2px solid var(--accent-color);
  animation: pulse-border 2s infinite;
  pointer-events: none;
}

@keyframes pulse-border {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.skill-xp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.skill-xp-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.skill-xp-value {
  font-size: 0.75rem;
  color: var(--accent-color);
  font-weight: 700;
  text-shadow: 0 0 10px var(--accent-glow);
  letter-spacing: 0.5px;
}

.skill-xp-bar {
  background: rgba(255, 255, 255, 0.08);
  height: 8px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) inset;
}

.skill-xp-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-hover), var(--accent-color));
  background-size: 200% 100%;
  border-radius: 8px;
  transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  box-shadow: 0 0 20px var(--accent-glow), 0 0 40px var(--accent-glow) inset;
  animation: progressPulse 2s ease-in-out infinite;
}

.skill-xp-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% { box-shadow: 0 0 15px var(--accent-glow), 0 0 30px var(--accent-glow) inset; }
  50% { box-shadow: 0 0 25px var(--accent-glow), 0 0 50px var(--accent-glow) inset; }
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(200%); }
}

#overall-level:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,215,0,0.4), 0 0 60px rgba(255,215,0,0.2) inset;
  border-color: rgba(255,215,0,0.6);
}

@keyframes levelup {
  0% { transform: scale(1); }
  50% { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.level-up-animation {
  animation: levelup 0.6s ease;
}

@keyframes confetti {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  z-index: 9999;
  animation: confetti 3s ease-out forwards;
}



@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}



/* Lumnix Style Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
  justify-items: stretch;
  perspective: 1000px;
}

.settings-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Settings Card Styles */
.settings-card {
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: 10px;
  border-image: linear-gradient(45deg, var(--accent-color), transparent) 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.settings-card-full-width {
    grid-column: 1 / -1;
    max-width: none;
}

.settings-card h3 {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 15px;
  font-variation-settings: 'wght' 600;
}

.settings-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 10px 0;
}

.settings-option label {
  width: 100%;
  font-size: 0.9rem;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.settings-option input[type="text"],
.settings-option input[type="number"],
.settings-option select,
.settings-option textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.settings-option input[type="text"]:focus,
.settings-option input[type="number"]:focus,
.settings-option select:focus,
.settings-option textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 5px var(--accent-glow);
}

.settings-option select option {
  background: #101010;
  color: #FFFFFF;
}

.settings-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 5px;
}

.settings-option input[type="range"] {
  width: 100%;
  margin-top: 5px;
}

/* Lumnix Style Tiles */
.tile {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  padding: 28px;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: tileEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 160px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

@keyframes tileEntrance {
  0% { opacity: 0; transform: translateY(30px) rotateX(10deg); }
  100% { opacity: 1; transform: translateY(0) rotateX(0); }
}

.tile::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.tile:hover::before {
  opacity: 1;
  animation: shine 0.8s ease;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.tile:hover {
  transform: translateY(-8px) scale(1.05) rotateX(2deg);
  box-shadow: 0 20px 80px var(--accent-glow), 0 0 100px var(--accent-glow), 0 0 2px rgba(255, 255, 255, 0.2) inset;
  border-color: rgba(var(--accent-rgb), 0.7);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2) 0%, rgba(var(--accent-rgb), 0.08) 100%);
}

.tile:active {
  transform: perspective(1000px) translateY(-2px) scale(0.98);
  transition: all 0.1s ease;
}

.tile h2 {
  color: var(--accent-color);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.tile p {
  font-size: 0.9rem;
}

.mode-card {
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  width: 100%;
  position: relative;
  aspect-ratio: 16 / 10;
  background: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><text x="10" y="30" font-size="20" opacity="0.03" fill="%23ffd700">sçoçoç</text></svg>'),
    radial-gradient(circle at 50% 50%, rgba(255,215,0,0.2), transparent 70%),
    linear-gradient(135deg, rgba(50,35,20,0.98), rgba(30,20,10,1));
  border: 4px solid rgba(255,215,0,0.8);
  border-radius: 24px;
  backdrop-filter: blur(30px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: visible;
  box-shadow: 
    0 20px 80px rgba(255,140,0,0.8),
    0 0 100px rgba(255,215,0,0.5) inset,
    0 0 40px rgba(255,215,0,0.7),
    0 5px 15px rgba(0,0,0,0.8);
  animation: bookBreath 4s ease-in-out infinite;
}

.mode-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 40px 40px 0;
  border-color: transparent rgba(0,0,0,0.3) transparent transparent;
  border-top-right-radius: 24px;
  filter: drop-shadow(-2px 2px 4px rgba(0,0,0,0.5));
}

@keyframes bookBreath {
  0%, 100% { 
    box-shadow: 0 20px 80px rgba(255,140,0,0.8), 0 0 100px rgba(255,215,0,0.5) inset, 0 0 40px rgba(255,215,0,0.7), 0 5px 15px rgba(0,0,0,0.8);
    border-color: rgba(255,215,0,0.8);
  }
  50% { 
    box-shadow: 0 25px 100px rgba(255,140,0,1), 0 0 150px rgba(255,215,0,0.7) inset, 0 0 60px rgba(255,215,0,1), 0 5px 15px rgba(0,0,0,0.8);
    border-color: rgba(255,255,200,1);
  }
}

.mode-card::before {
  content: 'oç';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12rem;
  opacity: 0.08;
  background: linear-gradient(135deg, rgba(255,215,0,0.6), rgba(255,140,0,0.4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: runeRotate 30s linear infinite, runePulse 3s ease-in-out infinite;
  pointer-events: none;
  filter: drop-shadow(0 0 20px rgba(255,215,0,0.5));
}

@keyframes runeRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes runePulse {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.15; }
}

/* DIVERSçfO - Pergaminho Arcano Azul */
.mood-fun {
  background: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.02) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0,180,255,0.15), transparent 70%),
    linear-gradient(135deg, rgba(20,40,60,0.98), rgba(10,25,40,1)) !important;
  border: 4px solid rgba(0,180,255,0.8) !important;
  border-radius: 24px;
  box-shadow: 
    0 10px 40px rgba(0,150,255,0.4),
    0 0 50px rgba(0,180,255,0.3) inset,
    0 0 20px rgba(0,180,255,0.4) !important;
  animation: bookBreath 4s ease-in-out infinite !important;
  overflow: visible !important;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: box-shadow 0.4s ease;
  position: relative;
}

.mood-fun::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(90deg, transparent 0px, rgba(255,255,255,0.01) 1px, transparent 2px),
    repeating-linear-gradient(0deg, transparent 0px, rgba(255,255,255,0.01) 1px, transparent 2px);
  pointer-events: none;
  border-radius: 24px;
}

.mood-fun::before {
  content: 'çY"ç';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 8px rgba(0,180,255,0.6));
  z-index: 10;
  animation: sealPulse 3s ease-in-out infinite;
}

.mood-fun::before {
  content: 'oç' !important;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12rem;
  opacity: 0.08;
  background: linear-gradient(135deg, rgba(0,180,255,0.6), rgba(0,120,200,0.4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: runeRotate 30s linear infinite, runePulse 3s ease-in-out infinite !important;
  pointer-events: none;
  filter: drop-shadow(0 0 20px rgba(0,180,255,0.5));
}

/* CRIAR - Pergaminho Dourado */
.mood-create {
  background: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.02) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,215,0,0.15), transparent 70%),
    linear-gradient(135deg, rgba(50,35,20,0.98), rgba(30,20,10,1)) !important;
  border: 4px solid rgba(255,215,0,0.8) !important;
  border-radius: 24px;
  box-shadow: 
    0 10px 40px rgba(255,140,0,0.4),
    0 0 50px rgba(255,215,0,0.3) inset,
    0 0 20px rgba(255,215,0,0.4) !important;
  animation: bookBreath 4s ease-in-out infinite !important;
  overflow: visible !important;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: box-shadow 0.4s ease;
  position: relative;
}

.mood-create::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(90deg, transparent 0px, rgba(255,255,255,0.01) 1px, transparent 2px),
    repeating-linear-gradient(0deg, transparent 0px, rgba(255,255,255,0.01) 1px, transparent 2px);
  pointer-events: none;
  border-radius: 24px;
}

.mood-create::before {
  content: 'çç';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 8px rgba(255,215,0,0.6));
  z-index: 10;
  animation: sealPulse 3s ease-in-out infinite;
}

.mood-create::before {
  content: 'oç' !important;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12rem;
  opacity: 0.08;
  background: linear-gradient(135deg, rgba(255,215,0,0.6), rgba(255,140,0,0.4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: runeRotate 30s linear infinite, runePulse 3s ease-in-out infinite !important;
  pointer-events: none;
  filter: drop-shadow(0 0 20px rgba(255,215,0,0.5));
}

/* RELAXAR - Pergaminho Verde */
.mood-calm {
  background: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.02) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(50,200,150,0.15), transparent 70%),
    linear-gradient(135deg, rgba(15,40,35,0.98), rgba(10,25,20,1)) !important;
  border: 4px solid rgba(50,200,150,0.8) !important;
  border-radius: 24px;
  box-shadow: 
    0 10px 40px rgba(30,180,120,0.4),
    0 0 50px rgba(50,200,150,0.3) inset,
    0 0 20px rgba(50,200,150,0.4) !important;
  animation: bookBreath 4s ease-in-out infinite !important;
  overflow: visible !important;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: box-shadow 0.4s ease;
  position: relative;
}

.mood-calm::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(90deg, transparent 0px, rgba(255,255,255,0.01) 1px, transparent 2px),
    repeating-linear-gradient(0deg, transparent 0px, rgba(255,255,255,0.01) 1px, transparent 2px);
  pointer-events: none;
  border-radius: 24px;
}

.mood-calm::before {
  content: 'çYçf';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 8px rgba(50,200,150,0.6));
  z-index: 10;
  animation: sealPulse 3s ease-in-out infinite;
}

.mood-calm::before {
  content: 'oç' !important;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12rem;
  opacity: 0.08;
  background: linear-gradient(135deg, rgba(50,200,150,0.6), rgba(30,150,100,0.4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: runeRotate 30s linear infinite, runePulse 3s ease-in-out infinite !important;
  pointer-events: none;
  filter: drop-shadow(0 0 20px rgba(50,200,150,0.5));
}

/* APRENDER - Pergaminho Roxo */
.mood-learn {
  background: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.02) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(150,100,255,0.15), transparent 70%),
    linear-gradient(135deg, rgba(35,25,50,0.98), rgba(20,15,35,1)) !important;
  border: 4px solid rgba(150,100,255,0.8) !important;
  border-radius: 24px;
  box-shadow: 
    0 10px 40px rgba(120,80,220,0.4),
    0 0 50px rgba(150,100,255,0.3) inset,
    0 0 20px rgba(150,100,255,0.4) !important;
  animation: bookBreath 4s ease-in-out infinite !important;
  overflow: visible !important;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: box-shadow 0.4s ease;
  position: relative;
}

.mood-learn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(90deg, transparent 0px, rgba(255,255,255,0.01) 1px, transparent 2px),
    repeating-linear-gradient(0deg, transparent 0px, rgba(255,255,255,0.01) 1px, transparent 2px);
  pointer-events: none;
  border-radius: 24px;
}

.mood-learn::before {
  content: 'çY"-';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 8px rgba(150,100,255,0.6));
  z-index: 10;
  animation: sealPulse 3s ease-in-out infinite;
}

@keyframes sealPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.1); opacity: 1; }
}

.mood-learn::before {
  content: 'oç' !important;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12rem;
  opacity: 0.08;
  background: linear-gradient(135deg, rgba(150,100,255,0.6), rgba(100,60,200,0.4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: runeRotate 30s linear infinite, runePulse 3s ease-in-out infinite !important;
  pointer-events: none;
  filter: drop-shadow(0 0 20px rgba(150,100,255,0.5));
}

@keyframes arcane-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

@keyframes creative-glow {
  0%, 100% { opacity: 0.25; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.5; transform: scale(1.15) rotate(5deg); }
}

@keyframes nature-breath {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.1); }
}

@keyframes wisdom-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.25); }
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
  opacity: 0;
}

.mode-card::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(200,50,50,0.8), rgba(150,30,30,0.9));
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5), inset 0 1px 2px rgba(255,100,100,0.4);
  opacity: 0.9;
}

.mode-card.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 10;
}

/* Desktop: brilho/sombra permanente nos 4 cards */
@media (min-width: 769px) {
  .mood-fun {
    box-shadow:
      0 14px 45px rgba(0, 150, 255, 0.5),
      0 0 0 1px rgba(0, 180, 255, 0.3) inset,
      0 10px 28px rgba(0, 0, 0, 0.5) !important;
  }
  
  .mood-create {
    box-shadow:
      0 14px 45px rgba(255, 140, 0, 0.5),
      0 0 0 1px rgba(255, 215, 0, 0.3) inset,
      0 10px 28px rgba(0, 0, 0, 0.5) !important;
  }
  
  .mood-calm {
    box-shadow:
      0 14px 45px rgba(30, 180, 120, 0.5),
      0 0 0 1px rgba(50, 200, 150, 0.3) inset,
      0 10px 28px rgba(0, 0, 0, 0.5) !important;
  }
  
  .mood-learn {
    box-shadow:
      0 14px 45px rgba(120, 80, 220, 0.5),
      0 0 0 1px rgba(150, 100, 255, 0.3) inset,
      0 10px 28px rgba(0, 0, 0, 0.5) !important;
  }
}

.mood-fun:hover {
  box-shadow:
    0 18px 55px rgba(0, 150, 255, 0.38),
    0 0 0 1px rgba(0, 180, 255, 0.22) inset,
    0 10px 30px rgba(0, 0, 0, 0.55) !important;
}

.mood-fun:hover::before {
  animation: runeRotate 10s linear infinite, runePulse 1.5s ease-in-out infinite !important;
  opacity: 0.2;
}

.mood-create:hover {
  box-shadow:
    0 18px 55px rgba(255, 140, 0, 0.38),
    0 0 0 1px rgba(255, 215, 0, 0.22) inset,
    0 10px 30px rgba(0, 0, 0, 0.55) !important;
}

.mood-create:hover::before {
  animation: runeRotate 10s linear infinite, runePulse 1.5s ease-in-out infinite !important;
  opacity: 0.2;
}

.mood-calm:hover {
  box-shadow:
    0 18px 55px rgba(30, 180, 120, 0.38),
    0 0 0 1px rgba(50, 200, 150, 0.22) inset,
    0 10px 30px rgba(0, 0, 0, 0.55) !important;
}

.mood-calm:hover::before {
  animation: runeRotate 10s linear infinite, runePulse 1.5s ease-in-out infinite !important;
  opacity: 0.2;
}

.mood-learn:hover {
  box-shadow:
    0 18px 55px rgba(120, 80, 220, 0.38),
    0 0 0 1px rgba(150, 100, 255, 0.22) inset,
    0 10px 30px rgba(0, 0, 0, 0.55) !important;
}

/* AppSensorial experience cards: restore lightweight glow without heavy blurs */
@media (hover: hover) and (pointer: fine) {
  .Lumnix-tile {
    transition: transform 180ms ease, box-shadow 220ms ease, filter 220ms ease;
    will-change: transform;
  }

  .Lumnix-tile:hover {
    transform: translateY(-6px);
    filter: brightness(1.04) saturate(1.05);
  }
}

.Lumnix-tile:active {
  transform: translateY(-2px) scale(0.99);
}

.Lumnix-tile:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

.mood-learn:hover::before {
  animation: runeRotate 10s linear infinite, runePulse 1.5s ease-in-out infinite !important;
  opacity: 0.2;
}

.mode-card:hover {
  transform: translateY(-15px) scale(1.05);
  animation: bookBreath 2s ease-in-out infinite, magicPulse 0.8s ease;
  box-shadow: 
    0 30px 120px rgba(255,140,0,1),
    0 0 180px rgba(255,215,0,0.9) inset,
    0 0 80px rgba(255,215,0,1),
    0 10px 30px rgba(0,0,0,0.9);
}

@keyframes magicPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.4) saturate(1.3); }
}

.mode-card:hover::before {
  animation: runeRotate 10s linear infinite, runePulse 1.5s ease-in-out infinite;
  opacity: 0.2;
}

.mode-card:active {
  transform: translateY(-4px) scale(1.04);
  transition: all 0.1s ease;
}

.mode-card .emoji-icon {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: clamp(8px, 2vh, 14px);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5)) drop-shadow(0 0 20px currentColor);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mode-card:hover .emoji-icon {
  transform: scale(1.3) translateY(-8px);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6)) drop-shadow(0 0 40px currentColor);
}

/* Brilho intenso para cards de experiência */
@media (hover: hover) and (pointer: fine) {
  .Lumnix-tile:hover {
    filter: brightness(1.15) saturate(1.15);
    box-shadow: 0 20px 60px var(--accent-glow), 0 0 40px var(--accent-glow), 0 0 80px var(--accent-glow) !important;
  }
}

/* Call to Action Buttons */
.cta-button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: var(--accent-color);
  color: #FFFFFF;
  font-variation-settings: 'wght' 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto;
  margin-top: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 12px var(--accent-glow);
  transform: translateY(-2px);
}

#mode-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
  overscroll-behavior: none;
  touch-action: pan-y;
}

#mode-container.active-mode {
  display: block;
  pointer-events: auto;
}

#mode-container.active-mode #canvas {
    z-index: 1;
}
#mode-container.active-mode.iwant-mode-gradient-bg #canvas {
    display: none;
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ESTILOS PARA RELATç"RIOS */
.report-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    background: rgba(30, 30, 30, 0.8);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.report-controls .settings-option {
    margin: 0;
}

.report-controls .cta-button {
    margin-top: 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.summary-grid .tile h4 {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-variation-settings: 'wght' 500;
}

.summary-grid .tile p {
    font-size: 1.5rem;
    font-variation-settings: 'wght' 600;
}

.report-card {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.report-card h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.report-description {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.report-insight {
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15), rgba(var(--accent-rgb), 0.05));
    border-left: 4px solid var(--accent-color);
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 8px;
    line-height: 1.8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    word-spacing: 0.1em;
}

.report-insight strong {
    margin: 0 0.15em;
}

.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
    overflow: hidden;
}

.chart-container canvas {
    background: transparent !important;
}

#focus-pattern-card {
    overflow: visible;
}

#focus-pattern-card .chart-container {
    height: 300px;
    margin: 10px 0;
}

#focus-pattern-chart {
    max-width: 100%;
    height: auto;
}

/* Activity-specific elements */
.shape, .learning-item, .breath-circle, .breath-text, .form-shape, .tactile-pattern, .number-item, .mascot, .portal-shape {
  position: absolute;
  pointer-events: auto;
  z-index: 102;
}

.learning-item, .number-item {
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 0 8px rgba(255,255,200, 0.8);
}

.learning-item .emoji-icon, .number-item .emoji-icon {
  font-size: 1em;
}

.learning-item .letter, .number-item .number {
  font-size: 0.5em;
  font-weight: 600;
}

/* Back and Pause Buttons in Mode */
#back-button {
  position: fixed;
  top: clamp(15px, 3vh, 25px);
  right: clamp(15px, 3vw, 25px);
  padding: clamp(8px, 2vw, 12px) clamp(15px, 3vw, 20px);
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  z-index: 103;
  border-radius: clamp(6px, 1.5vw, 8px);
  background: #27AE60;
  color: white;
  border: none;
}

/* Temas */
.theme-green { --accent-color: #2ECC71; --accent-hover: #27AE60; --accent-glow: rgba(46, 204, 113, 0.4); --accent-rgb: 46, 204, 113; }
.theme-blue { --accent-color: #3498DB; --accent-hover: #2980B9; --accent-glow: rgba(52, 152, 219, 0.4); --accent-rgb: 52, 152, 219; }
.theme-purple { --accent-color: #9B59B6; --accent-hover: #8E44AD; --accent-glow: rgba(155, 89, 182, 0.4); --accent-rgb: 155, 89, 182; }
.theme-yellow { --accent-color: #F1C40F; --accent-hover: #F39C12; --accent-glow: rgba(241, 196, 15, 0.4); --accent-rgb: 241, 196, 15; }
.theme-cyan { --accent-color: #1ABC9C; --accent-hover: #16A085; --accent-glow: rgba(26, 188, 156, 0.4); --accent-rgb: 26, 188, 156; }
.theme-orange { --accent-color: #E67E22; --accent-hover: #D35400; --accent-glow: rgba(230, 126, 34, 0.4); --accent-rgb: 230, 126, 34; }
.theme-pink { --accent-color: #FFC0CB; --accent-hover: #FFB6C1; --accent-glow: rgba(255, 192, 203, 0.4); --accent-rgb: 255, 192, 203; }
.theme-magenta { --accent-color: #FF00FF; --accent-hover: #EE00EE; --accent-glow: rgba(255, 0, 255, 0.4); --accent-rgb: 255, 0, 255; }
.theme-white { --accent-color: #FFFFFF; --accent-hover: #E0E0E0; --accent-glow: rgba(255, 255, 255, 0.4); --accent-rgb: 255, 255, 255; }
.theme-teal { --accent-color: #008080; --accent-hover: #006666; --accent-glow: rgba(0, 128, 128, 0.4); --accent-rgb: 0, 128, 128; }

/* High Contrast */
.high-contrast {
  background: #000000;
  color: #FFFF00;
}
.high-contrast .invix-sidebar, .high-contrast .tile, .high-contrast .welcome-banner, .high-contrast .settings-option, .high-contrast .report-card {
  background: #000000;
  color: #FFFF00;
  border: 2px solid #FFFF00;
  backdrop-filter: none;
}
.high-contrast .cta-button, .high-contrast .settings-option button {
  background: #FFFF00;
  color: #000000;
  border: 2px solid #FFFF00;
}

/* === ESTILOS GLOBAIS PARA MODAIS === */
.lumnix-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  padding: 20px;
  box-sizing: border-box;
  animation: fadeIn 0.3s ease;
}

.lumnix-modal-content {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  border: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 25px;
  box-sizing: border-box;
  position: relative;
  color: white;
}

.lumnix-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.lumnix-modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

.LumnixApp-modal-close, .lumnix-modal-close {
  background: none !important;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  outline: none;
  box-shadow: none !important;
  transform: none !important;
  font-family: Arial, sans-serif !important;
  font-weight: bold !important;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.LumnixApp-modal-close:hover, .lumnix-modal-close:hover {
  opacity: 1;
  background: none !important;
  transform: none !important;
}

.lumnix-modal-close:active {
  transform: scale(0.95) !important;
}

@media (max-width: 768px) {
  .lumnix-modal-content {
    width: 96%;
    padding: 20px;
    max-height: 92vh;
  }
  
  .lumnix-modal-header h2 {
    font-size: 1.5rem;
  }
  
  .lumnix-modal-close {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .lumnix-modal-content {
    width: 98%;
    padding: 16px;
  }
  
  .lumnix-modal-header {
    margin-bottom: 20px;
  }
  
  .lumnix-modal-header h2 {
    font-size: 1.3rem;
  }
}

/* ESTILOS PARA MODO "EU QUERO" */
#mode-container.iwant-mode-gradient-bg {
  display: flex;
  justify-content: center;
  align-items: center;
}

.iwant-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
  overflow-y: auto;
  z-index: 101;
  place-items: center;
  max-width: 700px;
  margin: auto;
}

.iwant-button {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  cursor: pointer;
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.iwant-button:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px var(--accent-glow);
  filter: brightness(1.1);
}

.iwant-button .emoji-icon {
  font-size: 5rem;
  margin-bottom: 5px;
  line-height: 1;
}

.iwant-button .button-text {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  padding: 0 5px;
}

.iwant-display-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.7);
  padding: 20px 30px;
  border-radius: 15px;
  z-index: 104;
  opacity: 0;
  animation: fadeAndPop 2s ease-out forwards;
  pointer-events: none;
  text-align: center;
  max-width: 90%;
  box-sizing: border-box;
}

@keyframes movingGradient {
  0% { background-position: 0% 0%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 0%; }
}

.iwant-mode-gradient-bg {
  background: linear-gradient(45deg, #2c3e50, #3498db, #2ecc71, #f1c40f);
  background-size: 400% 400%;
  animation: movingGradient 30s ease infinite;
}

.iwant-button.red { background-color: #e74c3c; }
.iwant-button.blue { background-color: #3498db; }
.iwant-button.green { background-color: #2ecc71; }
.iwant-button.yellow { background-color: #f1c40f; }
.iwant-button.orange { background-color: #e67e22; }
.iwant-button.purple { background-color: #9b59b6; }
.iwant-button.pink { background-color: #FF69B4; }
.iwant-button.teal { background-color: #008080; }
.iwant-button.brown { background-color: #8B4513; }
.iwant-button.gray { background-color: #7f8c8d; }

@keyframes fadeAndPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  10% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  90% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* ESTILOS PARA MODO "MOVIMENTA, NOAH!" */
#movement-mode-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #FF6F61, #FED766);
    overflow: hidden;
    padding: 20px;
}

#movement-command {
    text-align: center;
    margin-bottom: 30px;
    z-index: 10;
}

#movement-emoji {
    font-size: 8rem;
    display: block;
    margin-bottom: 10px;
    animation: bounceIn 1s ease-out;
}

#movement-text {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    animation: fadeInScale 1.2s ease-out;
}

#movement-mascot {
    font-size: 10rem;
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    animation: mascotDance 2s infinite ease-in-out;
}

#next-movement-button, #next-movement {
    position: absolute;
    bottom: 20px;
    padding: 15px 30px;
    font-size: 1.5rem;
    z-index: 10;
    background-color: #4CAF50;
    color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#next-movement-button:hover, #next-movement:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

@keyframes mascotDance {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-20px); }
}

@keyframes mascotArmsUp {
    0%, 100% { transform: translateX(-50%) scaleY(1); }
    50% { transform: translateX(-50%) scaleY(1.1); }
}

@keyframes mascotJump {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    25%, 75% { transform: translateX(-50%) translateY(-50px); }
}

@keyframes mascotClap {
    0%, 100% { transform: translateX(-50%) scaleX(1); }
    25% { transform: translateX(-50%) scaleX(1.1); }
    50% { transform: translateX(-50%) scaleX(0.9); }
    75% { transform: translateX(-50%) scaleX(1.1); }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

#movement-congratulations, #congratulations {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    font-size: 2rem;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    z-index: 20;
    animation: popOut 0.8s ease-out;
}

@keyframes popOut {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    80% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Animations */
@keyframes pop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-15px); }
}
@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes wave {
  0% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.5); }
}
@keyframes fadeOut {
  to { opacity: 0; transform: scale(0.3); }
}
@keyframes ripple {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

/* ESTILOS PARA JOGOS EM DESTAQUE */
.featured-games-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.featured-size {
    min-height: 160px;
    max-width: none;
}

.categories-section {
    margin-bottom: 20px;
}

.categories-section h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin: 15px 0 10px 0;
    font-weight: 500;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: clamp(15px, 3vw, 20px);
    margin-bottom: 15px;
}

.featured-title {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin: 30px 0 20px 0;
    text-align: center;
    font-weight: 600;
}

/* ESTILOS PARA SELEç?çfO DE AVATAR */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.avatar-option {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    object-fit: cover;
    overflow: hidden;
    justify-self: center;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

.avatar-option:hover {
    transform: scale(1.1);
    border-color: var(--accent-color);
}

.avatar-option.selected {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-glow);
    background: rgba(var(--accent-rgb), 0.2);
}



/* RESPONSIVIDADE (MEDIA QUERIES) */

@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }
  .featured-games-section {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
  .settings-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .featured-games-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .welcome-banner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
    margin-top: 0;
    border-radius: 18px;
  }
}

@media (max-width: 768px) {
  .invix-sidebar {
    width: 60px !important;
    cursor: pointer;
    z-index: 300;
  }
  .invix-sidebar.expanded {
    width: 200px !important;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.6);
  }
  .invix-sidebar .user-name,
  .invix-sidebar ul li .label {
    display: none !important;
    opacity: 0 !important;
  }
  .invix-sidebar.expanded .user-name,
  .invix-sidebar.expanded ul li .label {
    display: inline !important;
    opacity: 1 !important;
  }
  .invix-sidebar ul li .emoji-icon {
    margin-right: 0 !important;
    width: auto !important;
  }
  .invix-sidebar.expanded ul li .emoji-icon {
    margin-right: 8px !important;
  }
  .invix-sidebar ul li {
    justify-content: center !important;
    margin: 8px auto !important;
    width: 48px !important;
  }
  .invix-sidebar.expanded ul li {
    justify-content: flex-start !important;
    margin: 6px 8px !important;
    width: auto !important;
  }
  .invix-main {
    margin-left: 60px !important;
    padding: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .invix-main.sidebar-expanded {
    margin-left: 200px !important;
  }
  
  /* Grid responsivo */
  .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
  }
  .settings-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
  }
  .featured-games-section {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .featured-size {
    min-height: 140px;
    max-width: none;
  }
  
  /* Botões e controles */
  #back-button, #pause-button, #clear-drawing-button, #clear-button {
    font-size: 0.8rem;
    padding: 8px 15px;
    border-radius: 6px;
    top: 15px;
    right: 15px;
  }
  
  /* Relatórios */
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .chart-container {
    height: 250px;
    overflow: hidden;
  }
  .report-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  /* Modo "Eu Quero" */
  .iwant-mode-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 15px;
    max-width: 90%;
  }
  .iwant-button {
    min-width: 100px;
    min-height: 100px;
    padding: 10px;
  }
  .iwant-button .emoji-icon {
    font-size: 3rem;
  }
  .iwant-button .button-text {
    font-size: 0.9rem;
  }
  .iwant-display-text {
    font-size: 2.5rem;
    padding: 15px 20px;
    max-width: 85%;
  }
  
  /* Cards de modo */
  .mode-card {
    aspect-ratio: 16 / 9;
    padding: 8px;
  }
  .mode-card .emoji-icon {
    font-size: 2.2rem;
  }
  .mode-card p {
    font-size: 0.8rem;
    line-height: 1.2;
  }
  
  /* Gamificação */
  .welcome-banner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
    margin-top: 0;
  }
  .skills-xp-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  /* Movimento */
  #movement-emoji { font-size: 5rem; }
  #movement-text { font-size: 1.8rem; }
  #movement-mascot { font-size: 7rem; }
  #next-movement-button, #next-movement {
    font-size: 1.1rem;
    padding: 12px 20px;
  }
  #movement-congratulations, #congratulations {
    font-size: 1.4rem;
    padding: 25px;
  }
}

@media (max-width: 480px) {
  /* Sidebar mobile */
  .invix-sidebar {
    width: 50px;
    padding: 8px;
    z-index: 400;
  }
  .invix-sidebar.expanded {
    width: 180px;
  }
  .invix-sidebar .user-info {
    margin-bottom: 10px;
  }
  .invix-sidebar .user-icon {
    width: 35px;
    height: 35px;
  }
  .invix-sidebar ul li {
    padding: 8px 6px;
    margin: 3px 0;
  }
  .invix-sidebar ul li .emoji-icon {
    font-size: 1.3rem;
  }
  
  /* Main content */
  .invix-main {
    margin-left: 50px;
    padding: 8px;
    overflow-x: hidden;
  }
  .invix-main.sidebar-expanded {
    margin-left: 180px;
  }
  
  /* Welcome banner */
  .welcome-banner {
    padding: 12px;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 0;
  }
  .welcome-banner h1 {
    font-size: 1.3rem;
  }
  .welcome-content p {
    font-size: 0.85rem;
  }
  
  /* Grids */
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .featured-games-section {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .featured-size {
    min-height: 110px;
  }
  
  /* Mode cards */
  .mode-card {
    aspect-ratio: 16 / 9;
    padding: 6px;
  }
  .mode-card .emoji-icon {
    font-size: 1.8rem;
  }
  .mode-card p {
    font-size: 0.7rem;
    line-height: 1.1;
  }
  
  /* Botões */
  #back-button, #pause-button, #clear-drawing-button, #clear-button {
    top: 8px;
    right: 8px;
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  .cta-button {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  /* Modo "Eu Quero" */
  .iwant-mode-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
    max-width: 95%;
  }
  .iwant-button {
    min-width: 80px;
    min-height: 80px;
    padding: 6px;
  }
  .iwant-button .emoji-icon {
    font-size: 2.2rem;
  }
  .iwant-button .button-text {
    font-size: 0.7rem;
  }
  .iwant-display-text {
    font-size: 1.6rem;
    padding: 12px 15px;
    max-width: 90%;
  }
  
  /* Gamificação */
  .skills-xp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
  .skill-xp-item {
    padding: 5px;
  }
  .skill-xp-name {
    font-size: 0.6rem;
  }
  .skill-xp-value {
    font-size: 0.55rem;
  }
  
  /* Movimento */
  #movement-emoji { font-size: 4rem; }
  #movement-text { font-size: 1.3rem; }
  #movement-mascot { font-size: 5rem; }
  #next-movement-button, #next-movement {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
  #movement-congratulations, #congratulations {
    font-size: 1.1rem;
    padding: 15px;
  }
  
  /* Settings */
  .settings-card {
    padding: 15px;
  }
  .settings-option {
    margin: 8px 0;
  }
  .settings-option label {
    font-size: 0.85rem;
  }
  .settings-option input,
  .settings-option select {
    padding: 8px;
    font-size: 0.85rem;
  }
  
  /* Avatar grid */
  .avatar-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
  .avatar-option {
    width: 35px;
    height: 35px;
  }
  
  /* Reports */
  .chart-container {
    height: 200px;
  }
  .report-controls {
    padding: 10px;
  }
  .report-controls .settings-option {
    margin: 5px 0;
  }
}

/* Orientação landscape em mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .invix-main {
    padding: 5px;
  }
  .welcome-banner {
    margin-top: 0;
    padding: 10px;
  }
  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  }
  .mode-card {
    aspect-ratio: 16 / 9;
    padding: 5px;
  }
  .mode-card .emoji-icon {
    font-size: 1.5rem;
  }
  .mode-card p {
    font-size: 0.65rem;
  }
}

/* Telas muito pequenas */
@media (max-width: 320px) {
  .invix-sidebar {
    width: 45px;
  }
  .invix-sidebar.expanded {
    width: 160px;
  }
  .invix-main {
    margin-left: 45px;
  }
  .invix-main.sidebar-expanded {
    margin-left: 160px;
  }
  .dashboard-grid,
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .mode-card {
    aspect-ratio: 16 / 9;
    padding: 4px;
  }
  .mode-card .emoji-icon {
    font-size: 1.5rem;
  }
  .mode-card p {
    font-size: 0.65rem;
  }
  .welcome-banner h1 {
    font-size: 1.1rem;
  }
  .iwant-mode-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
/* Aviso de orientação portrait - DESATIVADO */
.portrait-warning {
  display: none !important; /* Sempre escondido */
}

.landscape-only {
  display: block !important; /* Sempre visível */
}

/* Responsividade para orientação portrait */
@media (max-width: 768px) and (orientation: portrait) {
  .invix-main {
    padding: 10px 5px;
  }
  
  .welcome-banner {
    padding: 16px 12px;
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .featured-games-section {
    grid-template-columns: 1fr;
  }
}


/* === ANIMAç?ç.ES ESCALONADAS PARA CARDS === */
.dashboard-grid .tile:nth-child(1) { animation-delay: 0.1s; }
.dashboard-grid .tile:nth-child(2) { animation-delay: 0.15s; }
.dashboard-grid .tile:nth-child(3) { animation-delay: 0.2s; }
.dashboard-grid .tile:nth-child(4) { animation-delay: 0.25s; }
.dashboard-grid .tile:nth-child(5) { animation-delay: 0.3s; }
.dashboard-grid .tile:nth-child(6) { animation-delay: 0.35s; }
.dashboard-grid .tile:nth-child(7) { animation-delay: 0.4s; }
.dashboard-grid .tile:nth-child(8) { animation-delay: 0.45s; }

.dashboard-grid .mode-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-grid .mode-card:nth-child(2) { animation-delay: 0.15s; }
.dashboard-grid .mode-card:nth-child(3) { animation-delay: 0.2s; }
.dashboard-grid .mode-card:nth-child(4) { animation-delay: 0.25s; }

.category-grid .mode-card:nth-child(1) { animation-delay: 0.05s; }
.category-grid .mode-card:nth-child(2) { animation-delay: 0.1s; }
.category-grid .mode-card:nth-child(3) { animation-delay: 0.15s; }
.category-grid .mode-card:nth-child(4) { animation-delay: 0.2s; }
.category-grid .mode-card:nth-child(5) { animation-delay: 0.25s; }
.category-grid .mode-card:nth-child(6) { animation-delay: 0.3s; }

.skills-xp-grid .skill-xp-item:nth-child(1) { animation-delay: 0.05s; }
.skills-xp-grid .skill-xp-item:nth-child(2) { animation-delay: 0.1s; }
.skills-xp-grid .skill-xp-item:nth-child(3) { animation-delay: 0.15s; }
.skills-xp-grid .skill-xp-item:nth-child(4) { animation-delay: 0.2s; }
.skills-xp-grid .skill-xp-item:nth-child(5) { animation-delay: 0.25s; }
.skills-xp-grid .skill-xp-item:nth-child(6) { animation-delay: 0.3s; }

.skill-xp-item {
  animation: skillItemEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@keyframes skillItemEntrance {
  from {
    opacity: 0;
    transform: translateX(-20px) scale(0.9);
  }
  to {
    opacity: 1;

/* Centralização para cards de resumo */
.Lumnix-tile-text {
  text-align: center;
  width: 100%;
}

.Lumnix-tile-text h3,
.Lumnix-tile-text p {
  text-align: center !important;
  width: 100%;
}


/* Centralização específica para cards de relatórios */
#reports .Lumnix-tiles-grid .Lumnix-tile .Lumnix-tile-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

#reports .Lumnix-tiles-grid .Lumnix-tile .Lumnix-tile-text h3,
#reports .Lumnix-tiles-grid .Lumnix-tile .Lumnix-tile-text p {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Moldura interna decorativa nos cards */
.Lumnix-tile-content {
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.02), transparent);
  box-shadow: inset 0 0 15px rgba(255,255,255,0.03);
}

.Lumnix-tile-content::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.Lumnix-tile-content::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* High-visibility overrides for Settings and Reports */
.settings-card label,
.settings-card p,
.settings-card .settings-note,
.report-card,
.report-card p,
.report-card li,
.report-card span,
.report-card small,
.report-controls,
.report-controls label,
.report-controls p,
.report-summary,
.report-summary p,
.report-summary span {
  color: rgba(255,255,255,0.96) !important;
}

@media (max-width: 768px) {
  .settings-card label,
  .settings-card input,
  .settings-card select,
  .settings-card textarea,
  .settings-card .settings-note,
  .report-card,
  .report-card p,
  .report-card li,
  .report-card span,
  .report-card small,
  .report-controls label,
  .report-controls p,
  .report-summary p,
  .report-summary span {
    color: rgba(255,255,255,0.99) !important;
    opacity: 1 !important;
  }
}
