/* ==============================
   BLUE APP — style.css
   Design Inclusivo TEA
============================== */

:root {
  --yellow:  #F5C842;
  --yellow-light: #FFF3C4;
  --purple:  #9B72CF;
  --purple-light: #E8D9F8;
  --blue:    #2F6BD6;
  --blue-mid: #4A90D9;
  --blue-light: #D6EAFF;
  --teal:    #3AAFBD;
  --teal-light: #CCF0F4;
  --green:   #4CAF7D;
  --green-light: #D4F0E3;
  --pink:    #E8609A;
  --pink-light: #FFD6E8;
  --dark:    #1a1a2e;
  --text-dark: #1a1a2e;
  --text-mid:  #444;
  --text-soft: #666;
  --bg:      #F7FBFF;
  --radius-card: 24px;
  --radius-btn:  18px;
  --shadow: 0 4px 20px rgba(47, 107, 214, 0.10);
  --shadow-card: 0 6px 24px rgba(47, 107, 214, 0.12);
  --topbar-h: 64px;
  --font: 'Nunito', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==============================
   TOPBAR
============================== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(47,107,214,0.08);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-back, .topbar-menu {
  background: var(--blue-light);
  border: none;
  border-radius: 14px;
  width: 44px; height: 44px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-weight: 700;
  transition: background 0.2s;
}
.topbar-back:active, .topbar-menu:active { background: var(--blue-mid); color: #fff; }

.topbar-logo {
  display: flex; 
  align-items: center; 
}
.logo-img-top {
  height: 52px; /* Tamanho do logo no cabeçalho */
  width: auto;
  object-fit: contain;
  display: block;
}

/* ==============================
   SIDEBAR
============================== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.35);
  z-index: 200;
}
.sidebar-overlay.open { display: block; }

.sidebar {
  position: fixed;
  top: 0; left: -320px;
  width: 300px;
  height: 100%;
  background: #fff;
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: left 0.3s cubic-bezier(.4,0,.2,1);
  border-radius: 0 32px 32px 0;
  box-shadow: 8px 0 40px rgba(47,107,214,0.15);
  overflow: hidden;
}
.sidebar.open { left: 0; }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  background: var(--blue);
}
.sidebar-logo {
  display: flex; 
  align-items: center; 
}
.logo-img-sidebar {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.sidebar-close {
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 1.1rem;
  width: 36px; height: 36px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 1.5px;
  padding: 14px 10px 4px;
  text-transform: uppercase;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: none;
  background: transparent;
  border-radius: 14px;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.sidebar-item:active,
.sidebar-item.active {
  background: var(--blue-light);
  color: var(--blue);
}
.sidebar-icon { font-size: 1.3rem; }

/* ==============================
   SCREENS
============================== */
.screen {
  display: none;
  padding-top: var(--topbar-h);
  min-height: 100vh;
}
.screen.active { display: block; }

.screen-content {
  padding: 20px 16px 40px;
  max-width: 600px;
  margin: 0 auto;
}
.screen-dark {
  background: #2a2a3e;
  min-height: calc(100vh - var(--topbar-h));
  border-radius: 0;
}

/* ==============================
   HOME E CARDS DA HOME
============================== */
.home-greeting {
  text-align: center;
  padding: 20px 0 28px;
}
.greeting-title {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--purple);
  margin-bottom: 6px;
}
.greeting-sub {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}
.home-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.home-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px;
  border: none;
  border-radius: var(--radius-card);
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-card);
}
.home-card:active { transform: scale(0.98); }
.home-card-text { flex: 1; }
.home-card-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.home-card-desc {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  max-width: 220px;
}
.home-card-icon {
  width: 80px;  /* Tamanho fixo e blindado para imagens da home */
  height: 80px; 
  object-fit: contain;
  margin-left: 12px;
  flex-shrink: 0; 
  display: block;
}

.card-yellow  { background: var(--yellow); }
.card-purple  { background: var(--purple-light); }
.card-blue    { background: var(--blue-light); }
.card-green   { background: var(--green-light); }

/* ==============================
   PAGE HEADER
============================== */
.page-header {
  text-align: center;
  padding: 18px 0 22px;
}
.page-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 6px;
}
.page-title.purple     { color: var(--purple); }
.page-title.teal       { color: var(--teal); }
.page-title.yellow-text{ color: #c9a000; }
.page-title.blue-text  { color: var(--blue); }
.page-title.green-text { color: var(--green); }
.page-sub {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-mid);
}
.instruction-text {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 20px;
  background: var(--blue-light);
  padding: 10px 16px;
  border-radius: 14px;
}

/* ==============================
   SUB CARDS (MEU ESPAÇO, APRENDER, JOGOS)
============================== */
.sub-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sub-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px;
  border: none;
  border-radius: var(--radius-card);
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: transform 0.15s;
  box-shadow: var(--shadow-card);
}
.sub-card:active { transform: scale(0.98); }
.sub-card-text {
  flex: 1; /* Faz o texto ocupar o espaço disponível */
}
.sub-card-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: 0.4px;
}
.sub-card-desc {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 10px;
}
.sub-card-icon {
  width: 90px;  /* Tamanho fixo e blindado para evitar estouro */
  height: 90px;
  object-fit: contain;
  margin-left: 16px;
  flex-shrink: 0;
  display: block;
}

.card-teal       { background: var(--teal-light); }
.card-dark       { background: #1a1a2e; }
.card-pink       { background: var(--pink-light); }
.card-blue-solid { background: var(--blue); }

/* ==============================
   EMOTION / NEEDS / ROUTINE GRID
============================== */
.emotion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.emotion-card {
  background: #fff;
  border-radius: 20px;
  padding: 18px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.15s;
  font-family: var(--font);
}
.emotion-card:active { transform: scale(0.95); }
.emotion-card.speaking {
  border-color: var(--teal);
  background: var(--teal-light);
}
.emotion-img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  margin-bottom: 8px;
}
.emotion-label {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: 0.5px;
  text-align: center;
}
.emotion-label-en {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-soft);
}

/* ==============================
   SISTEMA SOLAR
============================== */
/* Bloco completo e corrigido para as cartas do Sistema Solar */
.solar-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,0.22);
  cursor: pointer;
  transition: transform 0.15s;

  /* Nova trava estrutural para alinhar imagem e texto verticalmente */
  display: flex;
  flex-direction: column; /* Força os filhos (imagem e texto) a se empilharem */
  align-items: stretch; /* Garante que os filhos preencham toda a largura */
}

.solar-planet-img {
  width: 100%;
  height: 200px; /* Mantém a altura do espaço escuro */
  background: #000; /* Fundo escuro (escondido pelo cover, mas bom para loading) */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Trava para clipar a imagem se ela transbordar */
}

.solar-planet-img img {
  width: 100%; /* Toma 100% da largura do contêiner-pai (div) */
  height: 100%; /* Toma 100% da altura do contêiner-pai (div) */
  object-fit: cover; /* Preenche todo o espaço, sem deformar a imagem */
  display: block;
}

.solar-card-body {
  padding: 18px 20px 20px;
  background: #fff;
  text-align: center; /* Centraliza o texto */
}

/* ==============================
   JOGO DA MEMÓRIA
============================== */
.mem-info {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 20px;
}
.mem-stat {
  background: #fff;
  border-radius: 14px;
  padding: 10px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: var(--shadow);
  min-width: 100px;
}
.mem-stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-soft);
}
.mem-stat-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--blue);
}
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.mem-card {
  aspect-ratio: 1;
  border-radius: 16px;
  background: var(--blue);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  box-shadow: var(--shadow);
  font-family: var(--font);
  position: relative;
  overflow: hidden;
}
.mem-card:active { transform: scale(0.94); }
.mem-card .card-front {
  display: none;
}
.mem-card .card-back {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.5);
  font-weight: 900;
}
.mem-card img {
  width: 85%;   /* A imagem vai ocupar 85% do espaço da carta */
  height: 85%;  /* Acompanha a altura proporcionalmente */
  object-fit: contain;
}
.mem-card.flipped {
  background: #fff;
  box-shadow: 0 4px 16px rgba(47,107,214,0.15);
}
.mem-card.flipped .card-front { display: flex; align-items: center; justify-content: center; }
.mem-card.flipped .card-back { display: none; }
.mem-card.matched {
  background: var(--green-light);
  border: 3px solid var(--green);
  cursor: default;
}
.mem-card.wrong {
  background: #FFECEC;
  border: 3px solid #ff9999;
}
.btn-restart {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 14px;
  background: var(--blue-light);
  color: var(--blue);
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-restart:active { background: var(--blue); color: #fff; }

/* ==============================
   QUIZ
============================== */
.quiz-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.quiz-question-box {
  background: #6d9cf3;
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.quiz-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 12px;
}
.quiz-question {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
}
.quiz-progress {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-soft);
  margin-top: 8px;
}
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quiz-opt {
  padding: 18px 12px;
  background: #fff;
  border: 3px solid var(--blue-light);
  border-radius: 18px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.quiz-opt:active { background: var(--blue-light); }
.quiz-opt.correct { background: var(--green-light); border-color: var(--green); color: #1a6640; }
.quiz-opt.wrong   { background: #FFECEC; border-color: #ff9999; color: #c00; }
.quiz-score-box {
  text-align: center;
  background: #fff;
  border-radius: 20px;
  padding: 40px 20px;
  box-shadow: var(--shadow);
}
.quiz-score-emoji { font-size: 4rem; }
.quiz-score-title { font-size: 1.6rem; font-weight: 900; margin: 12px 0 8px; }
.quiz-score-val   { font-size: 2.5rem; font-weight: 900; color: var(--blue); }

/* ==============================
   SEQUÊNCIA (DESIGN DE REFERÊNCIA)
============================== */
.seq-wrap { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
}

/* Fundo branco e título */
.seq-question {
  background: #fff;
  border-radius: 20px;
  padding: 24px 16px;
  box-shadow: var(--shadow);
  text-align: center;
}
.seq-q-label {
  font-size: 1.6rem;
  font-weight: 900;
  color: #000;
  margin-bottom: 24px;
}

/* Linha de itens do topo (Lado a Lado) */
.seq-items {
  display: flex;
  gap: 12px;
  justify-content: flex-start; /* Alinha no começo */
  align-items: center;
  flex-wrap: nowrap; /* PROIBIDO QUEBRAR LINHA */
  overflow-x: auto; /* Adiciona rolagem horizontal se não couber no celular */
  padding-bottom: 12px; /* Espaço para a barrinha de rolagem não cortar a caixa */
}

/* O tracinho (-) separador */
.seq-dash {
  font-size: 4rem;
  font-weight: 900;
  color: #000;
  line-height: 0.5;
  margin-top: -10px;
}

/* Quadros de Cima (Borda Azul Grossa) */
.seq-item {
  background: #fff;
  border-radius: 12px;
  border: 4px solid var(--blue-mid);
  padding: 0;
  width: 85px; 
  height: 85px;
  flex-shrink: 0; /* IMPEDE que o quadro seja espremido */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Quadro da Interrogação (?) */
.seq-item.blank {
  background: #fff;
  border: 4px solid var(--blue-mid);
  width: 85px;
  height: 85px;
  font-size: 4rem;
  font-weight: 900;
  color: #000;
}

/* Quadros de Baixo (Escolhas) */
.seq-choices-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #000;
  margin-top: 16px;
  text-align: left;
}

.seq-choices {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap; /* Os de baixo podem quebrar linha se tiver muitos */
  padding: 10px 0;
}

.seq-choice {
  background: #fff;
  border: 4px solid var(--yellow);
  border-radius: 12px;
  padding: 0;
  width: 75px; /* Um pouquinho menor que os de cima */
  height: 75px;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seq-choice:active { transform: scale(0.92); }

/* Mágica da imagem ocupando tudo */
.seq-item img, .seq-choice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.seq-result {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  padding: 16px;
  border-radius: 16px;
  display: none;
  margin-top: 10px;
}
.seq-result.correct { background: var(--green-light); color: #1a6640; display: block; }
.seq-result.wrong   { background: #FFECEC; color: #c00; display: block; }

/* ==============================
   FÓRUM
============================== */
.forum-form-card {
  background: #fff;
  border-radius: 22px;
  padding: 22px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.forum-form-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--blue);
}
.forum-input, .forum-textarea {
  width: 100%;
  border: 2px solid var(--blue-light);
  border-radius: 14px;
  padding: 13px 14px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg);
  outline: none;
  resize: none;
  transition: border-color 0.2s;
}
.forum-input:focus, .forum-textarea:focus {
  border-color: var(--blue);
}
.forum-media-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.forum-media-btn {
  flex: 1;
  min-width: 80px;
  background: var(--blue-light);
  color: var(--blue);
  border: none;
  border-radius: 12px;
  padding: 11px 10px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}
.forum-media-btn:active { background: var(--blue); color: #fff; }
.media-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.media-preview-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.media-preview-item img {
  width: 90px; height: 90px;
  object-fit: cover;
  display: block;
}
.media-preview-item video {
  width: 140px; height: 90px;
  object-fit: cover;
  display: block;
}
.media-preview-item audio {
  width: 200px;
  height: 40px;
}
.media-remove {
  position: absolute;
  top: 4px; right: 4px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px; height: 22px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
}
.btn-post {
  width: 100%;
  padding: 15px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.4px;
}
.btn-post:active { background: #1a4da8; }
.forum-posts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.forum-post {
  background: #fff;
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
}
.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.post-avatar {
  width: 42px; height: 42px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--blue);
  flex-shrink: 0;
}
.post-author {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-dark);
}
.post-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
}
.post-text {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 12px;
}
.post-media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.post-media img {
  max-width: 150px;
  border-radius: 12px;
  object-fit: cover;
}
.post-media video {
  max-width: 200px;
  border-radius: 12px;
}
.post-media audio { width: 100%; }
.post-reactions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.post-react-btn {
  background: var(--bg);
  border: 2px solid var(--blue-light);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--text-mid);
  transition: background 0.2s;
}
.post-react-btn:active, .post-react-btn.reacted {
  background: var(--blue-light);
  border-color: var(--blue);
  color: var(--blue);
}
.forum-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-soft);
  font-size: 1rem;
  font-weight: 700;
}

/* ==============================
   VICTORY OVERLAY
============================== */
.victory-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.5);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.victory-box {
  background: #fff;
  border-radius: 28px;
  padding: 40px 32px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.victory-emoji { font-size: 4rem; margin-bottom: 12px; }
.victory-title { font-size: 2rem; font-weight: 900; color: var(--blue); margin-bottom: 8px; }
.victory-sub   { font-size: 1.05rem; font-weight: 700; color: var(--text-mid); margin-bottom: 24px; }

/* ==============================
   LIVRO DO SISTEMA SOLAR (WIREFRAME)
============================== */
.book-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 16px;
}

.book-arrow {
  background: transparent;
  border: none;
  font-size: 2.5rem; /* Setas grandes */
  color: var(--teal);
  cursor: pointer;
  padding: 10px;
  transition: transform 0.2s;
}
.book-arrow:active { transform: scale(0.8); }

.book-page-indicator {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
}

/* O corpo principal do livro (A folha) */
.book-page-container {
  background: #fff;
  border: 4px solid var(--text-dark); /* Borda grossa como no desenho */
  border-radius: 12px;
  padding: 24px 20px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 6px 6px 0px rgba(0,0,0,0.2); /* Sombra mais dura de caderno */
}

/* A caixa onde a foto fica */
.book-image-box {
  width: 100%;
  border: 4px solid var(--text-dark); /* Borda interna para a foto */
  border-radius: 12px;
  padding: 20px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  cursor: pointer;
  background: #f8f9fa;
}

.book-image-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.book-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.book-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-mid);
  line-height: 1.5;
}

.swipe-hint {
  text-align: center;
  margin-top: 20px;
  color: #bbb;
  font-size: 0.95rem;
  font-weight: 800;
}

/* Animações de folhear a página */
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==============================
   RESPONSIVE (Tablet)
============================== */
@media (min-width: 480px) {
  .memory-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .emotion-grid { gap: 18px; }
}
@media (min-width: 600px) {
  .screen-content { padding: 24px 24px 50px; }
  .emotion-grid { grid-template-columns: repeat(3, 1fr); }
}

img.sidebar-icon { 
  width: 36px;  /* Aumente este número para deixar mais largo */
  height: 36px; /* Aumente na mesma proporção para a altura */
  object-fit: contain; 
  flex-shrink: 0;
  display: block;
}