 /* Variáveis de tema e reset */
    :root {
      /* Fundo em 4K */
      --desktop-bg: url('https://picsum.photos/3840/2160?blur=2');
      --desktop-bg-size: cover;
      --window-header-bg: #007acc;
      --window-header-text: #fff;
      --body-bg: #008080;
      --download-overlay-bg: rgba(0,0,0,0.7);
      --download-progress-bg: var(--window-header-bg);
    }
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    body {
      font-family: sans-serif;
      background: var(--body-bg);
      overflow: hidden;
    }
    /* Desktop e ícones */
    .desktop {
      position: relative;
      width: 100vw;
      height: 100vh;
      background: var(--desktop-bg) no-repeat center center;
      background-size: var(--desktop-bg-size);
      padding: 10px;
    }
    .icons-container {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
    }
    .icon {
      width: 80px;
      text-align: center;
      cursor: pointer;
      color: #fff;
    }
    .icon img {
      width: 64px;
      height: 64px;
      display: block;
      margin: 0 auto 5px;
    }
    /* Ícones instalados via loja (inicialmente ocultos) */
    #mlAssistenteIcon, #guessNumberIcon {
      display: none;
    }
    /* Janelas dos aplicativos */
    .window {
      position: absolute;
      width: 400px;
      height: 300px;
      background: #fff;
      border: 1px solid #000;
      box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
      overflow: hidden;
    }
    .window-header {
      background: var(--window-header-bg);
      color: var(--window-header-text);
      padding: 8px;
      cursor: move;
      user-select: none;
      position: relative;
      font-weight: bold;
    }
    .close-btn {
      position: absolute;
      right: 8px;
      top: 8px;
      cursor: pointer;
    }
    .window-content {
      padding: 10px;
      height: calc(100% - 40px);
      overflow: auto;
      position: relative;
    }
    /* Calculadora */
    .calc-input {
      width: 100%;
      padding: 5px;
      font-size: 16px;
      margin-bottom: 5px;
    }
    .calc-buttons button {
      margin: 3px;
      padding: 8px 12px;
      font-size: 16px;
    }
    /* Navegador */
    .browser-url-container {
      margin-bottom: 5px;
    }
    .browser-url-container input {
      width: calc(100% - 60px);
      padding: 5px;
      font-size: 14px;
    }
    .browser-url-container button {
      width: 50px;
      padding: 5px;
      font-size: 14px;
    }
    .browser-iframe {
      width: 100%;
      height: calc(100% - 40px);
      border: none;
    }
    /* Temas */
    .theme-buttons {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .theme-buttons button {
      padding: 8px;
      font-size: 16px;
      cursor: pointer;
    }
    /* Loja */
    .loja-container {
      display: flex;
      flex-direction: column;
      gap: 15px;
      align-items: center;
      text-align: center;
    }
    .loja-container button {
      padding: 10px;
      font-size: 16px;
      cursor: pointer;
      margin-top: 10px;
    }
    /* Download Overlay */
    .download-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--download-overlay-bg);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--window-header-text);
      flex-direction: column;
      z-index: 10;
    }
    .progress-bar {
      width: 80%;
      height: 20px;
      background: #555;
      border-radius: 5px;
      overflow: hidden;
      margin-top: 10px;
    }
    .progress-fill {
      width: 0%;
      height: 100%;
      background: var(--download-progress-bg);
    }
    /* Jogos */
    canvas.snake {
      display: block;
      margin: 0 auto;
      background: #000;
    }
    .ttt-board {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 5px;
      width: 300px;
      margin: 0 auto;
    }
    .ttt-cell {
      width: 90px;
      height: 90px;
      background: #eee;
      font-size: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }
    .ttt-message {
      text-align: center;
      margin: 10px 0;
      font-size: 18px;
    }
    .ttt-restart {
      display: block;
      margin: 0 auto;
      padding: 8px 12px;
      font-size: 16px;
      cursor: pointer;
    }
    /* Terminal */
    #terminal-container {
      background: #000;
      color: #0f0;
      height: 100%;
      padding: 10px;
      font-family: monospace;
      cursor: text;
    }
    #terminal-output {
      overflow-y: auto;
      height: 80%;
      margin-bottom: 10px;
    }
    #terminal-input {
      width: 90%;
      background: #000;
      color: #0f0;
      border: none;
      outline: none;
    }
    /* Galeria */
    #gallery-container {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
    }
    #gallery-container img {
      max-width: 100px;
      max-height: 100px;
      border: 1px solid #ccc;
      padding: 2px;
    }
    /* Calendário */
    #calendar-container {
      text-align: center;
    }
    #calendar-container table {
      margin: 0 auto;
      border-collapse: collapse;
    }
    #calendar-container th, #calendar-container td {
      border: 1px solid #ccc;
      padding: 5px;
      width: 40px;
      height: 40px;
    }
    #calendar-container th {
      background: #007acc;
      color: #fff;
    }
    .today {
      background: yellow;
      font-weight: bold;
    }
    /* Explorador de Arquivos */
    #file-explorer {
      font-family: monospace;
      background: #f8f8f8;
      padding: 10px;
    }
    #file-explorer h4 {
      margin-top: 10px;
    }
    #file-explorer ul {
      list-style: none;
      padding-left: 20px;
    }
    #file-explorer li {
      margin: 4px 0;
    }
    /* Chat */
    #chat-container {
      display: flex;
      flex-direction: column;
      height: 100%;
    }
    #chat-output {
      flex: 1;
      overflow-y: auto;
      border: 1px solid #ccc;
      padding: 5px;
      margin-bottom: 5px;
    }
    #chat-input {
      width: 100%;
      padding: 5px;
    }
