 
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      user-select: none;
    }

    body {
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      font-family: 'Press Start 2P', 'Courier New', monospace;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      padding: 20px;
      position: relative;
      overflow-x: hidden;
    }

    /* Fundo com estilo de mundo Mario */
    body.light {
      background: radial-gradient(circle at 20% 30%, #5dade2, #2c7ab1);
      position: relative;
    }

    body.light::before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.15"><path fill="%23ffffff" d="M20,70 Q25,65 30,70 T40,70 T50,70 T60,70 T70,70 T80,70 T90,70" stroke="white" stroke-width="2" fill="none"/><circle cx="25" cy="55" r="3" fill="white"/><circle cx="45" cy="50" r="2.5" fill="white"/><circle cx="65" cy="48" r="3" fill="white"/><circle cx="85" cy="55" r="2" fill="white"/></svg>');
      background-repeat: repeat;
      pointer-events: none;
    }

    body.dark {
      background: radial-gradient(circle at 30% 20%, #1a1a2e, #0f0f1f);
    }

    body.dark::before {
      background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path fill="%23ffcc44" d="M20,70 Q25,65 30,70 T40,70 T50,70 T60,70 T70,70 T80,70 T90,70" stroke="%23ffcc44" stroke-width="2" fill="none"/><circle cx="25" cy="55" r="3" fill="%23ffcc44"/><circle cx="45" cy="50" r="2.5" fill="%23ffcc44"/><circle cx="65" cy="48" r="3" fill="%23ffcc44"/><circle cx="85" cy="55" r="2" fill="%23ffcc44"/></svg>');
    }

    /* Nuvens flutuantes */
    .cloud {
      position: fixed;
      background: rgba(255, 255, 255, 0.85);
      border-radius: 1000px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.1);
      z-index: 1;
      pointer-events: none;
    }

     .cloud::before, .cloud::after {
      content: '';
      position: absolute;
      background: rgba(255, 255, 255, 0.9);
      border-radius: 50%;
    }

  
    .cloud1 { width: 100px; height: 60px; top: 15%; left: -5px; animation: floatCloud 26s linear infinite; }
    .cloud1::before { width: 55px; height: 55px; top: -25px; left: 15px; }
    .cloud1::after { width: 70px; height: 70px; top: -35px; left: 40px; }
    .cloud2 { width: 130px; height: 75px; bottom: 12%; right: -80px; animation: floatCloud 52s linear infinite reverse; }
    .cloud2::before { width: 70px; height: 70px; top: -30px; left: 20px; }
    .cloud2::after { width: 85px; height: 85px; top: -42px; left: 55px; }
    .cloud3 { width: 80px; height: 50px; top: 45%; left: -30px; animation: floatCloud 18s linear infinite 5s; }
    .cloud3::before { width: 60px; height: 60px; top: -28px; left: 18px; }
    .cloud3::after { width: 75px; height: 75px; top: -38px; left: 45px; }
    .cloud4 { width: 110px; height: 65px; top: 60%; left: -60px; animation: floatCloud 26s linear infinite 3s; }
    .cloud4::before { width: 60px; height: 60px; top: -28px; left: 18px; }
    .cloud4::after { width: 75px; height: 75px; top: -38px; left: 45px; }
 
.cloud5 { width: 90px; height: 55px; top: 25%; right: -50px; animation: floatCloud 20s linear infinite reverse 2s; }
.cloud5::before { width: 50px; height: 50px; top: -22px; left: 34px; }
.cloud5::after { width: 65px; height: 65px; top: -32px; left: 35px; }
 
.cloud6 { width: 140px; height: 80px; top: 85%; left: -90px; animation: floatCloud 32s linear infinite 7s; }
.cloud6::before { width: 75px; height: 75px; top: -35px; left: 22px; }
.cloud6::after { width: 90px; height: 90px; top: -45px; left: 55px; }
 
.cloud7 { width: 70px; height: 45px; top: 35%; right: -40px; animation: floatCloud 16s linear infinite 1s; }
.cloud7::before { width: 40px; height: 40px; top: -18px; left: 10px; }
.cloud7::after { width: 50px; height: 50px; top: -25px; left: 8px; }
 
.cloud8 { width: 120px; height: 70px; top: 5%; left: -80px; animation: floatCloud 30s linear infinite 10s; }
.cloud8::before { width: 65px; height: 65px; top: -30px; left: 20px; }
.cloud8::after { width: 80px; height: 80px; top: -40px; left: 50px; }







    @keyframes floatCloud {
      0% { transform: translateX(0); }
      100% { transform: translateX(calc(100vw + 200px)); }
    }

    /* CARD PRINCIPAL - ESTILO BLOCKY MARIO */
    .card {
      background: #fef9e8;
      border-radius: 48px 48px 40px 40px;
      padding: 30px 28px 40px;
      max-width: 550px;
      width: 100%;
      text-align: center;
      box-shadow: 0 20px 0 #b85c1a, 0 30px 30px rgba(0,0,0,0.3);
      border: 4px solid #e3a56d;
      transition: all 0.2s ease;
      z-index: 10;
      position: relative;
      backdrop-filter: blur(1px);
    }

    body.dark .card {
      background: #2b2b2b;
      box-shadow: 0 20px 0 #1f1f2e, 0 30px 30px rgba(0,0,0,0.6);
      border-color: #ffb347;
    }

    /* título estilizado */
    .card h1 {
      font-size: 2rem;
      background: linear-gradient(135deg, #e52525, #f9a825);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      text-shadow: 3px 3px 0 #ffdd99;
      margin-bottom: 12px;
      letter-spacing: 2px;
      font-family: 'Press Start 2P', monospace;
    }

    body.dark .card h1 {
      text-shadow: 3px 3px 0 #cc8800;
    }

    .subtitle {
      background: #ffe0a3;
      display: inline-block;
      padding: 10px 16px;
      border-radius: 40px;
      font-size: 0.7rem;
      font-weight: bold;
      color: #b64926;
      margin-bottom: 20px;
      border: 2px solid #d48c3b;
      font-family: monospace;
    }

    body.dark .subtitle {
      background: #3a2c1f;
      color: #ffcf7a;
    }

    /* container do MARIO + COGUMELOS */
    .mario-arena {
      background: #6f9e3f;
      border-radius: 60px;
      padding: 20px 15px;
      margin: 15px 0;
      position: relative;
      border: 3px solid #4a6e2c;
      box-shadow: inset 0 -5px 0 #3c5622, 0 10px 15px rgba(0,0,0,0.2);
      cursor: pointer;
    }

    .mario-wrapper {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 20px;
      flex-wrap: wrap;
    }

    /* Mario jump animation */
    .mario-sprite {
      width: 110px;
      transition: all 0.15s cubic-bezier(0.5, 1.2, 0.8, 1.2);
      filter: drop-shadow(5px 8px 0 rgba(0,0,0,0.2));
      cursor: pointer;
    }

    .mario-jump {
      transform: translateY(-28px) scale(1.05);
    }

    /* cogumelos estilosos */
    .mushroom-icon {
      font-size: 3.5rem;
      display: inline-block;
      filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.3));
      transition: transform 0.2s ease;
      cursor: pointer;
    }
    .mushroom-icon:hover {
      transform: scale(1.2) rotate(5deg);
    }

    /* animação de piscar moeda */
    @keyframes coinBlink {
      0% { text-shadow: 0 0 0 gold; opacity: 1; transform: scale(1);}
      50% { text-shadow: 0 0 12px #ffd966; opacity: 0.9; transform: scale(1.2);}
      100% { text-shadow: 0 0 0 gold; opacity: 1; transform: scale(1);}
    }

    .coin-effect {
      animation: coinBlink 0.3s ease-out;
    }

    /* Barra XP */
    .xp-container {
      margin: 20px 0 10px;
    }
    .xp-header {
      display: flex;
      justify-content: space-between;
      font-size: 0.75rem;
      font-weight: bold;
      margin-bottom: 8px;
      font-family: 'Press Start 2P', monospace;
    }
    .xp-bar-bg {
      background: #3c2a1f;
      border-radius: 20px;
      height: 24px;
      overflow: hidden;
      border: 3px solid #d48c3b;
      box-shadow: inset 0 2px 3px rgba(0,0,0,0.3);
    }
    .xp-fill {
      background: linear-gradient(90deg, #f5d742, #ffaa33);
      width: 0%;
      height: 100%;
      border-radius: 20px;
      transition: width 0.3s cubic-bezier(0.2, 1.2, 0.6, 1);
      box-shadow: 0 0 8px #ffdd77;
    }
    body.dark .xp-fill {
      background: linear-gradient(90deg, #fdbb4c, #ff9f2e);
    }
    .level-tag {
      background: #e25822;
      padding: 5px 12px;
      border-radius: 30px;
      color: white;
      font-size: 0.65rem;
      font-weight: bold;
    }

    /* skills - blocos como tijolos? */
    .skills {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
      margin: 25px 0;
    }
    .skill {
      background: #f4a261;
      color: #2d1b0c;
      font-family: 'Press Start 2P', monospace;
      font-size: 0.6rem;
      padding: 8px 14px;
      border-radius: 30px;
      font-weight: bold;
      border-bottom: 4px solid #a8541a;
      transition: all 0.12s linear;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    .skill:hover {
      transform: translateY(-4px);
      background: #ffb347;
      border-bottom-width: 2px;
    }
    body.dark .skill {
      background: #7f5539;
      color: #ffd7a0;
      border-bottom-color: #432818;
    }

    /* Links estilo canos verdes */
    .links {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin: 20px 0 18px;
      flex-wrap: wrap;
    }
    .links a {
      background: #2c6e2f;
      padding: 10px 20px;
      border-radius: 40px;
      text-decoration: none;
      font-weight: bold;
      font-size: 0.7rem;
      font-family: monospace;
      color: #f9e45b;
      border-bottom: 4px solid #1e4f1a;
      transition: 0.1s linear;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .links a:hover {
      transform: translateY(-3px);
      background: #3e9642;
      color: #ffff99;
    }
    body.dark .links a {
      background: #1e4620;
      color: #ffde8a;
    }

    /* Botão toggle tema (estilo bloco de interrogação) */
    .theme-btn {
      background: #b05e2b;
      border: none;
      font-family: 'Press Start 2P', monospace;
      padding: 10px 18px;
      border-radius: 40px;
      color: #ffec9e;
      font-weight: bold;
      cursor: pointer;
      font-size: 0.7rem;
      transition: 0.1s linear;
      margin-top: 12px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      box-shadow: 0 5px 0 #6e3b1a;
    }
    .theme-btn:active {
      transform: translateY(3px);
      box-shadow: 0 2px 0 #6e3b1a;
    }

    /* cogumelos extras decorativos */
    .deco-mush {
      position: absolute;
      font-size: 2rem;
      pointer-events: none;
      z-index: 2;
      opacity: 0.7;
    }
    .spin-mush {
      animation: spinSlow 8s infinite linear;
    }
    @keyframes spinSlow {
      0% { transform: rotate(0deg);}
      100% { transform: rotate(360deg);}
    }

    /* popup de ponto */
    .floating-point {
      position: absolute;
      font-size: 1.3rem;
      font-weight: bold;
      font-family: monospace;
      pointer-events: none;
      animation: floatUp 0.6s ease-out forwards;
      color: gold;
      text-shadow: 0 0 5px red;
      z-index: 200;
    }
    @keyframes floatUp {
      0% { opacity: 1; transform: translateY(0px) scale(0.8);}
      100% { opacity: 0; transform: translateY(-50px) scale(1.5);}
    } 

    .star {
  position: fixed;
  color: #ffd700;
  font-size: 1.2rem;
  animation: twinkle 2s infinite ease-in-out alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes twinkle {
  0% { opacity: 0.3; transform: scale(0.8);}
  100% { opacity: 1; transform: scale(1.3);}
}

/* ===== GAME FEEL ===== */
.mario-arena {
  overflow: hidden;
}

/* chão animado */
.mario-arena::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 20px;
  background: repeating-linear-gradient(
    90deg,
    #5c3b1e 0px,
    #5c3b1e 20px,
    #7a4a25 20px,
    #7a4a25 40px
  );
  animation: groundMove 2s linear infinite;
}

@keyframes groundMove {
  from { transform: translateX(0); }
  to { transform: translateX(-200px); }
}

/* mario correndo */
.mario-run {
  animation: runBounce 0.4s infinite alternate;
}

@keyframes runBounce {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}

/* Obstáculos estilo jogo do dinossauro */
.obstacle {
  position: absolute;
  bottom: 15px;
  animation: none;
  user-select: none;
}

.mario-jump {
  animation: jumpAnimation 0.25s ease-out !important;
}

@keyframes jumpAnimation {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
  100% { transform: translateY(0px); }
}

/* Indicador de score */
.score-container {
  margin-top: 10px;
  padding: 8px;
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
}

.score-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffd700;
}

/* Game over overlay */
.gameover-overlay {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Animações para cogumelos power-up */
@keyframes mushroomGlow {
  from { 
    filter: drop-shadow(0 0 5px gold);
    transform: scale(1);
  }
  to { 
    filter: drop-shadow(0 0 15px #ffaa00);
    transform: scale(1.05);
  }
}

@keyframes collectMushroom {
  0% { 
    transform: scale(1);
    opacity: 1;
  }
  100% { 
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateX(-50%) scale(0.8); }
  20% { opacity: 1; transform: translateX(-50%) scale(1.1); }
  80% { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) scale(0.9); }
}

/* Obstáculo mais lento e com estilo */
.obstacle {
  animation: none;
  user-select: none;
}

/* Power-up mushroom */
.powerup-mushroom {
  cursor: pointer;
  transition: all 0.1s linear;
}

/* Ajuste da área de jogo */
.mario-arena {
  overflow: hidden;
  min-height: 200px;
}

/* Melhorias visuais */
.mario-sprite {
  position: relative;
  z-index: 15;
}

.mario-jump {
  animation: jumpAnimation 0.25s ease-out !important;
}

@keyframes jumpAnimation {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-35px); }
  100% { transform: translateY(0px); }
}

@keyframes explodeStar {
  0% { 
    opacity: 1; 
    transform: translate(0, 0) scale(0.5) rotate(0deg);
  }
  100% { 
    opacity: 0; 
    transform: translate(calc(-50px + 100px * var(--x, 0)), calc(-50px + 100px * var(--y, 0))) scale(1.5) rotate(360deg);
  }
}

@keyframes trophyPop {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.2); }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.powerup-mushroom {
  animation: mushroomGlow 0.5s infinite alternate;
}

.mario-sprite {
  position: relative;
  z-index: 15;
  bottom: -10px;
}

.mario-jump {
  animation: jumpAnimation 0.3s ease-out !important;
}

@keyframes jumpAnimation {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-45px); }
  100% { transform: translateY(0px); }
}
 