/* ============================================================
   AULA INTERATIVA — THE FUTURE TENSE
   Visual: divertido e colorido, adequado ao nono ano / EM.
   Foco: TV interativa (touchscreen), botões grandes, alto contraste.
   ============================================================ */

:root {
  --bg: #1b1035;
  --bg-2: #241244;
  --card: rgba(255, 255, 255, 0.07);
  --card-solid: #2a1752;
  --line: rgba(255, 255, 255, 0.14);
  --line-2: rgba(255, 255, 255, 0.28);

  --text: #ffffff;
  --dim: #cdbfe8;
  --pink: #ff5e7d;
  --orange: #ff9f43;
  --yellow: #ffd166;
  --green: #06d6a0;
  --cyan: #00d4ff;
  --blue: #5a8dff;
  --purple: #a06bff;

  --radius: 22px;
  --radius-sm: 14px;

  --font: "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  --font-head: "Bahnschrift", "Arial Narrow", "Trebuchet MS", sans-serif;

  --t-fast: 0.15s ease;
  --t-med: 0.3s ease;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: var(--font);
  font-size: 21px;
  line-height: 1.45;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(255, 94, 125, 0.35), transparent 60%),
    radial-gradient(800px 600px at -10% 110%, rgba(0, 212, 255, 0.28), transparent 55%),
    radial-gradient(700px 500px at 110% 90%, rgba(160, 107, 255, 0.32), transparent 60%),
    var(--bg);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

/* Bolhas coloridas flutuando (decoração) */
#bgfx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(120px 120px at 12% 18%, rgba(255, 209, 102, 0.18), transparent 70%),
    radial-gradient(150px 150px at 88% 12%, rgba(0, 212, 255, 0.16), transparent 70%),
    radial-gradient(130px 130px at 75% 80%, rgba(255, 94, 125, 0.16), transparent 70%),
    radial-gradient(110px 110px at 25% 85%, rgba(6, 214, 160, 0.14), transparent 70%);
}

#app {
  position: relative; z-index: 1;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 16px;
}

.spacer { flex: 1; }

/* ============ TOP BAR ============ */
#topbar {
  display: flex; align-items: center; gap: 10px;
}
#brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-weight: 900; letter-spacing: 0.12em;
  font-size: 1.2rem;
  text-transform: uppercase;
}
#brand-emoji { font-size: 1.7rem; animation: floaty 3s ease-in-out infinite; display: inline-block; }
.top-btn {
  width: 64px; height: 64px;
  font-size: 1.6rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line-2);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  touch-action: manipulation;
}
.top-btn:hover { border-color: var(--cyan); background: rgba(0, 212, 255, 0.12); }
.top-btn:active { transform: scale(0.92); }

/* ============ STAGE ============ */
#stage {
  min-height: 0;
  overflow: hidden;
  display: flex;
}
.slide {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  animation: slideIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  padding: 6px;
}
.slide::-webkit-scrollbar { width: 8px; }
.slide::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }

.slide h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  margin: 0 0 6px;
}
.slide h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  margin: 0;
}
.slide .subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  color: var(--dim);
}

/* Pilares de conteúdo (cards) */
.cols { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  backdrop-filter: blur(3px);
}
.card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  display: flex; align-items: center; gap: 10px;
}
.card p { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }

.card.pink   { border-color: rgba(255, 94, 125, 0.55); }
.card.orange { border-color: rgba(255, 159, 67, 0.55); }
.card.yellow { border-color: rgba(255, 209, 102, 0.55); }
.card.green  { border-color: rgba(6, 214, 160, 0.55); }
.card.cyan   { border-color: rgba(0, 212, 255, 0.55); }
.card.blue   { border-color: rgba(90, 141, 255, 0.55); }
.card.purple { border-color: rgba(160, 107, 255, 0.55); }

/* ============ BOTÕES ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 34px;
  min-height: 68px;
  font-size: 1.25rem; font-weight: 800;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line-2);
  color: var(--text);
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.95); }
.btn-pink   { background: linear-gradient(180deg, #ff5e7d, #d6295a); border-color: #ffa0b6; }
.btn-orange { background: linear-gradient(180deg, #ff9f43, #e06f0a); border-color: #ffc694; }
.btn-yellow { background: linear-gradient(180deg, #ffd166, #e0a400); border-color: #ffebad; color: #3a2a00; }
.btn-green  { background: linear-gradient(180deg, #06d6a0, #039e76); border-color: #8df2d8; color: #003326; }
.btn-cyan   { background: linear-gradient(180deg, #00d4ff, #0093b8); border-color: #a3efff; color: #00313d; }
.btn-blue   { background: linear-gradient(180deg, #5a8dff, #2a55d6); border-color: #b3c9ff; }
.btn-purple { background: linear-gradient(180deg, #a06bff, #6d2fd6); border-color: #d4bbff; }
.btn-ghost  { background: rgba(255, 255, 255, 0.08); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--cyan); background: rgba(0, 212, 255, 0.12); }
.hud-num { font-family: var(--font-head); font-weight: 900; letter-spacing: 0.04em; }
.btn-lg { padding: 26px 48px; min-height: 92px; font-size: 1.6rem; border-radius: 20px; }
.btn-xl { padding: 34px 70px; min-height: 116px; font-size: 2rem; border-radius: 24px; }
.btn-center { display: flex; justify-content: center; }

/* ============ PALAVRAS INTERATIVAS ============ */
.text-block {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  max-width: 1000px;
}
.hotword {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 800;
  color: #1b1035;
  background: linear-gradient(180deg, #ffd166, #ffb020);
  border-bottom: 3px solid #d68a00;
  cursor: pointer;
  margin: 0 2px;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  touch-action: manipulation;
}
.hotword:hover { box-shadow: 0 0 18px rgba(255, 209, 102, 0.7); }
.hotword:active { transform: scale(0.92); }
.hotword.pink   { background: linear-gradient(180deg, #ff5e7d, #e23a68); border-color: #8f1033; color: #fff; }
.hotword.cyan   { background: linear-gradient(180deg, #00d4ff, #00a8cc); border-color: #00596d; color: #fff; }
.hotword.green  { background: linear-gradient(180deg, #06d6a0, #05b183); border-color: #015c46; color: #fff; }
.hotword.purple { background: linear-gradient(180deg, #a06bff, #8340e6); border-color: #4a1794; color: #fff; }
.hotword.orange { background: linear-gradient(180deg, #ff9f43, #f57e12); border-color: #8f4100; color: #fff; }
.hotword.blue   { background: linear-gradient(180deg, #5a8dff, #3a63e0); border-color: #12286b; color: #fff; }

/* ============ EXEMPLOS ============ */
.example {
  display: flex; align-items: center; gap: 18px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 14px;
}
.example .ex-en {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 800;
}
.example .ex-pt {
  font-size: clamp(1rem, 1.9vw, 1.25rem);
  color: var(--dim);
}
.example .ex-tag {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ============ QUIZ ============ */
.quiz-q {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
}
.quiz-opts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quiz-opt {
  width: 100%;
  min-height: 88px;
  font-size: 1.4rem; font-weight: 800;
  padding: 20px;
  border-radius: var(--radius);
  border: 3px solid var(--line-2);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  touch-action: manipulation;
}
.quiz-opt:hover { border-color: var(--cyan); }
.quiz-opt:active { transform: scale(0.97); }
.quiz-opt.correct {
  background: linear-gradient(180deg, #06d6a0, #039e76);
  border-color: #8df2d8; color: #003326;
  animation: pop .4s ease;
}
.quiz-opt.wrong {
  background: linear-gradient(180deg, #ff5e7d, #d6295a);
  border-color: #ffb0c0; color: #fff;
  animation: shake .4s ease;
}
.quiz-opt:disabled { cursor: default; }
.quiz-feedback {
  min-height: 60px;
  text-align: center;
  font-size: 1.35rem; font-weight: 800;
  margin-top: 16px;
}
.quiz-feedback.ok { color: #7cf2d0; }
.quiz-feedback.err { color: #ffb0c0; }

/* ============ IMAGENS ============ */
.slide-image {
  max-width: min(94%, 1400px);
  max-height: 72vh;
  border-radius: var(--radius);
  border: 3px solid var(--line-2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  margin: 0 auto;
}

/* ============ CENTRO / ALINHAMENTO ============ */
.center { text-align: center; }
.left { text-align: left; }
.slide-inner { max-width: 1100px; margin: 0 auto; width: 100%; }

/* ============ BOTTOM BAR ============ */
#bottombar {
  display: flex; align-items: center; gap: 18px;
}
.nav-btn {
  width: 92px; height: 92px;
  font-size: 2rem;
  border-radius: 50%;
  border: 3px solid var(--line-2);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  touch-action: manipulation;
  flex-shrink: 0;
}
.nav-btn:hover { border-color: var(--cyan); background: rgba(0, 212, 255, 0.14); }
.nav-btn:active { transform: scale(0.9); }
.nav-btn:disabled { opacity: 0.35; pointer-events: none; }

#dots {
  flex: 1;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  touch-action: manipulation;
}
.dot:hover { border-color: var(--cyan); }
.dot:active { transform: scale(1.3); }
.dot.active {
  width: 40px; border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  border-color: transparent;
}

/* ============ MODAL (glossário) ============ */
#modal-overlay, #index-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 6, 34, 0.82);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  animation: fadeIn 0.25s ease;
}
#modal-overlay.hidden, #index-overlay.hidden { display: none; }
#modal-card, #index-card {
  position: relative;
  width: min(760px, calc(100% - 60px));
  max-height: calc(100% - 80px);
  overflow: auto;
  padding: 44px;
  border-radius: 28px;
  background: linear-gradient(180deg, #2a1752, #1b1035);
  border: 3px solid var(--line-2);
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
  animation: popIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
#modal-card h2, #index-card h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  margin: 0 0 8px;
}
#modal-body { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--dim); }
#modal-body p { margin: 0 0 10px; }
#modal-body p:last-child { margin-bottom: 0; }
#modal-body .modal-en {
  color: var(--text); font-weight: 800; font-size: 1.1em;
}
#modal-emoji { font-size: 3rem; margin-bottom: 8px; }
#modal-close, #index-close {
  position: absolute; top: 18px; right: 18px;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  background: var(--card);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  touch-action: manipulation;
}
#modal-close:hover, #index-close:hover { border-color: var(--pink); background: rgba(255, 94, 125, 0.15); }
#modal-close:active, #index-close:active { transform: scale(0.9); }

/* ============ ÍNDICE / MAPA ============ */
#index-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 16px; }
.index-item {
  display: flex; flex-direction: column; gap: 4px;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 1.05rem; font-weight: 800;
  cursor: pointer;
  min-height: 70px;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  touch-action: manipulation;
}
.index-item:hover { border-color: var(--cyan); background: rgba(0, 212, 255, 0.1); }
.index-item:active { transform: scale(0.96); }
.index-item .index-emoji { font-size: 1.5rem; }

/* ============ ANIMAÇÕES ============ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { transform: scale(0.75); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes slideIn { from { transform: translateX(46px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes pop { 0% { transform: scale(0.8); } 55% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-10px); } 40% { transform: translateX(10px); } 60% { transform: translateX(-7px); } 80% { transform: translateX(7px); } }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }

/* ============ COVER ============ */
.cover-emoji { font-size: clamp(3.5rem, 8vw, 6rem); display: inline-block; animation: floaty 3.5s ease-in-out infinite; }
.cover-tip { color: var(--dim); font-size: 1.05rem; margin-top: 18px; }

/* ============ LISTAS (bullets) ============ */
.big-list { list-style: none; padding: 0; margin: 0; max-width: 1000px; }
.big-list li {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  margin-bottom: 12px;
  font-size: clamp(1.1rem, 2.1vw, 1.4rem);
}
.big-list li::before { content: "→ "; color: var(--cyan); font-weight: 900; }

/* ============ CHIPS (palavras interativas extras) ============ */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; }
.chips .hotword { font-size: 1.1rem; padding: 12px 20px; border-radius: 999px; }

/* ============ REVEAL (toque para revelar) ============ */
.reveal-list { display: flex; flex-direction: column; gap: 14px; max-width: 1050px; margin: 0 auto; width: 100%; }
.reveal-card {
  border: 3px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--card);
  padding: 24px 28px;
  cursor: pointer;
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  touch-action: manipulation;
}
.reveal-card:hover { border-color: var(--cyan); }
.reveal-card:active { transform: scale(0.99); }
.reveal-card .reveal-text { font-size: clamp(1.1rem, 2.2vw, 1.45rem); font-weight: 700; margin: 0; }
.reveal-card .reveal-hint { color: var(--dim); font-size: 0.95rem; margin-top: 10px; }
.reveal-card .reveal-answer { display: none; margin-top: 14px; padding-top: 14px; border-top: 2px dashed var(--line-2); }
.reveal-card.open { border-color: var(--yellow); }
.reveal-card.open .reveal-answer { display: block; animation: fadeIn 0.3s ease; }
.reveal-chip { display: inline-block; padding: 6px 18px; border-radius: 999px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.reveal-note { color: var(--dim); margin-top: 10px; font-size: 1.05rem; }

/* ============ SITUAÇÃO (imagem de contexto) ============ */
.situation { text-align: center; margin-bottom: 16px; }
.situation-image {
  max-width: min(100%, 620px);
  max-height: 42vh;
  border-radius: var(--radius);
  border: 3px solid var(--line-2);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
  margin: 0 auto;
  display: block;
}
.situation-caption { color: var(--dim); font-size: 1.05rem; margin-top: 10px; }

/* ============ EXEMPLOS / COMENTÁRIOS ============ */
.example .ex-main { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 700; line-height: 1.4; }
.example .ex-author { font-size: 1rem; font-weight: 800; color: var(--cyan); margin-bottom: 6px; }
.example .ex-pt { font-size: clamp(0.98rem, 1.9vw, 1.15rem); color: var(--dim); margin-top: 8px; }
.example .ex-tag { margin-left: auto; }
.example.ex-image-card { flex-direction: column; align-items: stretch; }
.example .ex-image {
  max-width: min(100%, 520px);
  max-height: 44vh;
  border-radius: var(--radius-sm);
  border: 3px solid var(--line-2);
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
  margin: 0 auto;
  display: block;
}


/* ============ LIGHTBOX (zoom de imagem) ============ */
#lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 4, 24, 0.94);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  animation: fadeIn 0.25s ease;
  padding: 30px;
}
#lightbox.hidden { display: none; }
#lightbox-frame {
  max-width: min(92vw, 1600px);
  max-height: 92vh;
  text-align: center;
}
#lightbox-img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: var(--radius);
  border: 3px solid var(--line-2);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  animation: popIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
#lightbox-caption {
  color: var(--dim);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  margin-top: 18px;
}
#lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  touch-action: manipulation;
}
#lightbox-close:hover { border-color: var(--pink); background: rgba(255, 94, 125, 0.2); }
#lightbox-close:active { transform: scale(0.9); }

/* ============ CARDS FRENTE E VERSO (comentários) ============ */
.flip-slide .slide-inner { max-width: 920px; }
.flip-stage { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 8px; }
.flip-stage .btn { min-height: 64px; width: 64px; padding: 0; font-size: 1.4rem; flex-shrink: 0; }
.flip-wrap { perspective: 1400px; flex: 1; max-width: 720px; }
.flip-card {
  width: 100%;
  height: clamp(440px, 60vh, 560px);
  cursor: pointer;
  touch-action: manipulation;
}
.flip-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  color: #2b2740;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  padding: 30px 32px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.flip-front { align-items: center; justify-content: center; text-align: center; gap: 14px; }
.flip-avatar { font-size: clamp(4rem, 8vw, 6rem); }
.flip-author { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; }
.flip-hint { color: #7a7391; font-size: 1.05rem; }
.flip-back { transform: rotateY(180deg); gap: 14px; border-top: 10px solid #ffd166; }
.flip-author-mini { font-size: 1.15rem; font-weight: 900; color: #5a5a75; }
.flip-main { font-size: clamp(1.1rem, 2.2vw, 1.35rem); font-weight: 700; line-height: 1.55; }
.flip-tag { align-self: flex-start; border-radius: 999px; padding: 4px 14px; font-size: 0.85rem; font-weight: 800; }
.flip-note { font-size: 1rem; color: #4a4460; background: #f4f1fb; border: 2px solid #e3dcf3; border-radius: 12px; padding: 12px 14px; }
.flip-counter { text-align: center; margin-top: 16px; font-weight: 900; font-size: 1.2rem; }

/* ============ ANÁLISE DO MEME (explicação) ============ */
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.analysis-grid .card p { margin: 0; }
.analysis-grid .card.tribunal-question {
  grid-column: 1 / -1;
  border-color: rgba(255, 94, 125, 0.6);
  background: rgba(255, 94, 125, 0.09);
}
.analysis-grid .card.tribunal-question p { font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* ============ JOGO DE ARRASTAR (Fato x Opinião) ============ */
.sort-slide .slide-inner { max-width: 1500px; }
.sort-hud {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 6px 0 10px;
}
#sort-remaining { font-weight: 900; font-size: 1.25rem; color: var(--yellow); }
.sort-layout {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 1.2fr minmax(220px, 1fr);
  gap: 16px;
  align-items: stretch;
}
.sort-zone {
  border: 4px solid;
  border-radius: var(--radius);
  padding: 12px;
  display: flex; flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  min-height: 0;
  transition: box-shadow 0.3s ease;
}
.sort-zone.fato { border-color: #5a8dff; }
.sort-zone.opiniao { border-color: #ff5e7d; }
.sort-zone.flash-ok { box-shadow: 0 0 0 6px rgba(6, 214, 160, 0.65); }
.sort-zone.flash-err { box-shadow: 0 0 0 6px rgba(255, 94, 125, 0.65); animation: shake 0.4s ease; }
.sort-zone-head { text-align: center; font-weight: 900; font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
.sort-zone-count { text-align: center; font-family: var(--font-head); font-weight: 900; font-size: 2.2rem; color: var(--dim); }
.sort-zone-list {
  flex: 1; min-height: 0;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 6px;
}
.sort-chip {
  background: #ffffff;
  color: #2b2740;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.sort-chip.fato { border-left: 6px solid #5a8dff; }
.sort-chip.opiniao { border-left: 6px solid #ff5e7d; }
.sort-pool { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.sort-pool-grid {
  flex: 1; min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-content: start;
}
.sort-pool-empty { grid-column: 1 / -1; text-align: center; font-size: 3rem; }
.sort-card {
  background: #ffffff;
  color: #2b2740;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: grab;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  user-select: none;
  touch-action: none;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}
.sort-card:active { cursor: grabbing; }
.sort-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }
.sort-card.drag-src { opacity: 0.35; transform: scale(0.96); }
.sort-card.drag-clone {
  position: fixed;
  z-index: 400;
  width: 300px;
  pointer-events: none;
  opacity: 0.95;
  transform: rotate(2.5deg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  margin: 0;
}
.sort-card.shake { animation: shake 0.4s ease; }
.sort-pool-nav { display: flex; align-items: center; justify-content: center; gap: 16px; }
.sort-pool-nav .btn { min-height: 54px; padding: 10px 22px; font-size: 1.05rem; }
.sort-pool-nav .btn:disabled { opacity: 0.35; pointer-events: none; }
#sort-page { font-weight: 900; font-size: 1.1rem; min-width: 60px; text-align: center; }
.sort-done {
  margin-top: 14px;
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: #7cf2d0;
  text-shadow: 0 0 20px rgba(6, 214, 160, 0.5);
}

/* ============ MODAL (texto do glossário) ============ */
#modal-body ul, #modal-body ol { padding-left: 24px; margin: 8px 0; }
#modal-body li { margin-bottom: 6px; }
#modal-body .modal-en {
  display: block;
  color: var(--text); font-weight: 800;
  background: rgba(255,255,255,0.06);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 8px 0;
}

/* ============ ESQUADRÃO CURIOSO (Fato ou Fake) ============ */
.hidden { display: none !important; }
.sq-slide .slide-inner { max-width: 1000px; }
.sq-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd166, #e0a400);
  color: #3a2a00;
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.sq-heroes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.sq-hero {
  text-align: center;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 12px;
}
.sq-hero-avatar { font-size: clamp(2.4rem, 5vw, 3.6rem); animation: floaty 3.5s ease-in-out infinite; display: inline-block; }
.sq-hero-name { font-family: var(--font-head); font-weight: 900; font-size: 1.2rem; margin-top: 8px; }
.sq-hero-skill { font-size: 0.9rem; color: var(--dim); margin-top: 4px; }
.sq-villain { border-color: rgba(255, 94, 125, 0.55); background: rgba(255, 94, 125, 0.1); }
.sq-villain .sq-hero-name { color: #ff8fa6; }
.sq-villain .sq-hero-avatar { animation: none; }

.sq-hud { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.sq-counter { font-family: var(--font-head); font-weight: 900; font-size: 1.3rem; letter-spacing: 0.03em; white-space: nowrap; }
.sq-progress {
  flex: 1;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
  overflow: hidden;
}
.sq-progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00d4ff, #a06bff);
  transition: width 0.5s ease;
}

.sq-card-outer { perspective: 1400px; height: clamp(440px, 62vh, 640px); }
.sq-card-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.sq-card-inner.flipped { transform: rotateY(180deg); }
.sq-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  color: #2b2740;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  padding: 30px 36px;
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 22px;
  overflow-y: auto;
}
.sq-front { border-top: 10px solid #5a8dff; }
.sq-news {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-weight: 800;
  line-height: 1.5;
}
.sq-answers { display: flex; gap: 20px; }
.sq-answers .btn { flex: 1; min-height: 96px; font-size: clamp(1.2rem, 2.6vw, 1.7rem); }
.sq-answers .btn:disabled { opacity: 0.45; }
.sq-answers .btn.sq-correct { box-shadow: 0 0 0 6px rgba(6, 214, 160, 0.55); animation: pop 0.4s ease; }
.sq-answers .btn.sq-wrong { box-shadow: 0 0 0 6px rgba(255, 94, 125, 0.55); animation: shake 0.4s ease; }
.sq-hint { color: #8a83a3; font-size: 0.95rem; text-align: center; }

.sq-back { transform: rotateY(180deg); border-top: 10px solid #a06bff; }
.sq-verdict { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; text-align: center; }
.sq-verdict.ok { color: #039e76; }
.sq-verdict.err { color: #d6295a; }
.sq-explain {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #3a3350;
  max-width: 780px;
  margin: 0 auto;
  background: #f4f1fb;
  border: 2px solid #e3dcf3;
  border-radius: 14px;
  padding: 16px 20px;
  line-height: 1.55;
}

.sq-end-score {
  display: flex; align-items: center; gap: 26px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 30px;
  margin-bottom: 16px;
}
.sq-score-ring {
  flex-shrink: 0;
  width: 134px; height: 134px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2.6rem;
  background: linear-gradient(180deg, #a06bff, #6d2fd6);
  border: 4px solid #d4bbff;
  box-shadow: 0 0 34px rgba(160, 107, 255, 0.6);
}
.sq-score-ring span { font-size: 1.1rem; color: #d9c9ff; margin-left: 4px; }
.sq-score-msg { font-size: clamp(1.05rem, 2.1vw, 1.4rem); font-weight: 700; line-height: 1.5; }

.sq-end-thanks {
  display: flex; align-items: center; gap: 22px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 30px;
}
.sq-thanks-emoji { font-size: clamp(2.5rem, 5vw, 4rem); animation: floaty 3.5s ease-in-out infinite; }
.sq-thanks-text { font-size: clamp(1.05rem, 2.1vw, 1.4rem); font-weight: 700; line-height: 1.5; }

/* ============ RESPONSIVO ============ */
@media (max-width: 800px) {
  body { font-size: 18px; }
  .nav-btn { width: 78px; height: 78px; font-size: 1.6rem; }
  #modal-card { padding: 32px 24px; }
  .sq-answers { flex-direction: column; }
  .sq-card-outer { height: 62vh; }
  .sq-end-score { flex-direction: column; text-align: center; }
  .sq-face { padding: 22px 20px; }
}
