/* ═══════════ JOGOS DE TREINO (out/2026) — games-common/math/english.js ═══════════
   Complementa arcade.css. Mobile-first: peças e alvos com ≥ 44px de toque. */

/* ── Hub: série recomendada no card ── */
.arc-hub-series {
  display: inline-block; margin-top: 4px; font-size: 0.66rem; font-weight: 700;
  color: var(--arc-accent); border: 1px solid var(--arc-accent); border-radius: 10px;
  padding: 1px 8px; opacity: 0.85;
}

/* ── Desenhos ── */
.gm-svg { display: block; width: 100%; height: auto; max-height: 300px; margin: 0 auto 8px; }
.gm-svg.gm-tl { max-height: 150px; }
.gm-tapwrap { max-width: 340px; margin: 0 auto 8px; }
.gm-tapwrap .gm-svg { max-height: none; background: rgba(255,255,255,0.03); border-radius: 12px; }
.gm-svg.gm-tap { cursor: crosshair; touch-action: none; }

/* ── Equações e enunciados grandes ── */
.gm-eq {
  text-align: center; font-size: 1.5rem; font-weight: 800; color: var(--text);
  margin: 6px 0 10px; line-height: 1.35; word-break: break-word;
}
.gm-eq-sm { font-size: 1.05rem; font-weight: 700; }
.gm-steps {
  margin: 8px auto; max-width: 420px; font-size: 0.82rem; color: var(--muted2);
  background: rgba(255,255,255,0.04); border-radius: 10px; padding: 8px 12px;
}
.gm-steps div + div { margin-top: 3px; }
.gm-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }

/* ── Montar frase com peças ── */
.gm-built {
  min-height: 58px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center;
  padding: 10px; margin: 8px 0; border: 2px dashed rgba(255,255,255,0.18); border-radius: 12px;
}
.gm-built.ok  { border: 2px solid var(--green, #34D399); background: rgba(52,211,153,0.10); }
.gm-built.bad { border: 2px solid var(--red, #F87171); background: rgba(248,113,113,0.10); }
.gm-ph { font-size: 0.8rem; color: var(--muted2); }
.gm-tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0; }
.gm-tile {
  min-height: 44px; padding: 8px 14px; border-radius: 10px; font-size: 1rem; font-weight: 700;
  background: #1B2238; color: var(--text); border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer; transition: transform 0.1s ease, opacity 0.15s ease;
}
.gm-tile:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--arc-accent); }
.gm-tile:disabled { opacity: 0.3; cursor: default; }
.gm-tile.in { background: color-mix(in srgb, var(--arc-accent) 25%, #1B2238); border-color: var(--arc-accent); }
.gm-tile.in:disabled { opacity: 1; }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .gm-tile.in { background: #26304D; } }

/* ── Probabilidade ── */
.gm-prob { text-align: center; margin-bottom: 8px; }
.gm-prob-vis { font-size: 1.7rem; line-height: 1.5; letter-spacing: 2px; word-break: break-word; }
.gm-prob-exp { font-size: 0.9rem; color: var(--muted2); margin-top: 4px; }
.gm-prob-ev  { font-size: 1rem; margin-top: 6px; }

/* ── Textos (referência, conectivos, frases com lacuna) ── */
.gm-text {
  font-size: 1.05rem; line-height: 1.9; background: rgba(255,255,255,0.04);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; text-align: left;
}
.gm-w {
  cursor: pointer; border-radius: 6px; padding: 3px 2px; transition: background 0.15s ease;
  background: none; border: none; color: inherit; font: inherit; line-height: inherit;
}
.gm-w:hover:not(:disabled) { background: rgba(255,255,255,0.10); }
.gm-w:disabled { cursor: default; color: inherit; }
.gm-w.key   { background: rgba(251,191,36,0.25); color: var(--gold, #FBBF24); font-weight: 800; cursor: default; }
.gm-w.right { background: rgba(52,211,153,0.30); font-weight: 700; }
.gm-w.wrong { background: rgba(248,113,113,0.35); text-decoration: line-through; }
.gm-key { color: var(--gold, #FBBF24); }

/* ── False friends ── */
.gm-ffword {
  text-align: center; font-size: 2.2rem; font-weight: 900; color: var(--arc-accent);
  margin: 8px 0 12px; font-family: 'Cinzel', serif;
}

@media (max-width: 600px) {
  .gm-eq { font-size: 1.25rem; }
  .gm-eq-sm { font-size: 0.95rem; }
  .gm-tile { font-size: 0.92rem; padding: 8px 11px; }
  .gm-text { font-size: 0.98rem; }
  .gm-ffword { font-size: 1.8rem; }
}

/* ── Jogos das ferramentas novas (games-math2.js, games-grammar.js) ── */
.gm-reta-wrap{width:100%;max-width:760px;margin:0 auto 8px;}
.gm-reta-wrap .gm-svg{max-height:none;background:rgba(255,255,255,0.03);border-radius:12px;}
.gm-svg.gm-reta{max-height:150px;}
.gg-scene{width:100%;max-width:560px;margin:0 auto 6px;}
.gg-scene .gv-scene{max-height:260px;}
