/* V8.4.7 FX847_VOLTAR — painel "Estou pronto para a Torre?" (cores pelo real) */
.t847 h3{margin:0 0 4px}
.t847-tot{display:flex;gap:8px;margin:2px 0 8px}
.t847-tot>div{flex:1;background:rgba(123,92,255,.10);border-radius:14px;padding:6px 8px;text-align:center}
.t847-tot b{display:block;font-size:24px;line-height:1.1;color:#2B1B3D}
.t847-tot span{font-size:12px;opacity:.8}
.t847-h{margin-top:6px!important;font-size:15px}
.t847-m{margin:8px 0 2px}
.t847-r{display:flex;justify-content:space-between;gap:8px;font-size:13px}
.t847-r b small{font-weight:600;opacity:.7}
.t847-r em{font-style:normal;font-size:12px;margin-left:4px}
.t847-bar{position:relative;height:13px;margin-top:4px;border-radius:99px;background:rgba(123,92,255,.16)}
.t847-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:99px;transition:width .6s cubic-bezier(.2,.9,.3,1)}
.t847-bar u{position:absolute;top:-3px;bottom:-3px;width:3px;margin-left:-1.5px;border-radius:2px;background:#2B1B3D;opacity:.55}
.t847-m.low .t847-bar i{background:linear-gradient(90deg,#E5484D,#FF7A59)}
.t847-m.mid .t847-bar i{background:linear-gradient(90deg,#F5A524,#FFC53D)}
.t847-m.ok .t847-bar i{background:linear-gradient(90deg,#19B5A5,#34B56A)}
.t847-m.low .t847-r em{color:#C62B31}.t847-m.mid .t847-r em{color:#B26A00}.t847-m.ok .t847-r em{color:#1B8A4B}
.t847-ul{list-style:none;margin:8px 0 2px;padding:0}
.t847-ul li{display:flex;justify-content:space-between;gap:8px;font-size:12.5px;padding:4px 0;border-top:1px dashed rgba(43,27,61,.14)}
.t847-ul li.ok b{color:#1B8A4B}
.t847-ul li b{font-weight:600;text-align:right}
.t847-eg{background:rgba(245,165,36,.12);border-radius:10px;padding:5px 8px}
.t847-end{font-weight:700}
.co-split{align-items:start}

/* V8.4.7 (FX847_CONVERSA, P7) — o cartão «Você conheceu <lugar>» (e os cartões da apresentação) deslizam no telemóvel e os 2 botões de baixo ficam SEMPRE à vista.
   Causa: no ecrã deitado o painel de conversa (#sheet.talk) é flex com overflow:hidden e max-height:none — quando o cartão passava da altura (4+ palavras, nome comprido,
   mochila cheia, zoom do texto) os botões ficavam cortados e nada deslizava. Agora: o painel .card847 desliza (overflow auto, pan-y) e a linha de botões é «colada» em baixo. */
#sheet .panel.card847{overflow-y:auto!important;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
@media (orientation:portrait){
  #sheet.talk .panel.card847{max-height:88%!important}
}
@media (orientation:landscape){
  #sheet.talk .panel.card847{max-height:calc(100% - 12px)!important;display:block}
}
.card847 .result{display:block}
.card847 .rowbtns{position:sticky;bottom:-2px;z-index:3;margin:10px -4px 0;padding:10px 4px calc(4px + var(--safe-b));background:linear-gradient(to top,var(--cream) 82%,rgba(255,248,236,0))}
.card847 .rowbtns{flex-wrap:wrap}
.card847 .rowbtns .btn{flex:1 1 130px;min-height:50px;font-size:17px;line-height:1.15;white-space:normal;font-weight:800;text-shadow:0 1px 1px rgba(40,10,60,.35)}
.card847 .rowbtns .btn.go{color:#fff}
.card847 .rowbtns #cl,.card847 .rowbtns .btn:not(.go):not(.teal){color:#fff;background:linear-gradient(#8C6BFF,#6B45E6);border:0}
@media (orientation:landscape) and (max-height:560px){
  .card847 .newwords{gap:6px;margin:6px 0}
  .card847 .wc{padding:5px 9px;min-width:78px;border-radius:14px}
  .card847 .wc .e{font-size:22px}
  .card847 .wc b{font-size:16px}
  .card847 .result h2{font-size:20px;margin:2px 0 4px}
  .card847 .result .lead{margin:4px 0;font-size:14px}
  .card847 .result .reward{margin:2px 0}
}

/* o menu do lugar (Conhecer · Conversar · Comprar…) também desliza: no Xiaomi deitado os últimos botões ficavam cortados (nem «Conversar» se via em B1.1) */
@media (orientation:landscape) and (max-height:560px){
  .card847.pmenu .pbtns{gap:6px;margin-top:6px}
  .card847.pmenu .jobcard{padding:8px 12px;min-height:52px}
  .card847.pmenu .jobcard .em{font-size:28px}
  .card847.pmenu .jobcard b{font-size:18px}
  .card847.pmenu .who{margin-bottom:4px}
}
.card847 .jobcard.buy847{border:3px solid #19b852;box-shadow:0 0 0 3px rgba(25,184,82,.22),0 4px 0 #8ADCC3}
.card847 .jobcard.buy847.lock{opacity:1;filter:none;border-color:#9bd9b4}
.shop847 .items847{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:8px 0}
.shop847 .it847{display:flex;align-items:center;gap:10px;background:#fff;border:0;border-radius:18px;padding:8px 12px;box-shadow:0 3px 0 #E8DDF5;text-align:left;font:inherit;color:var(--ink);cursor:pointer;min-height:56px}
.shop847 .it847 .e{font-size:30px}
.shop847 .it847 b{display:block;font:600 17px var(--f1)}
.shop847 .it847 small{display:block;font-weight:800;color:#8A7AA6}
.shop847 .it847 .pr{margin-left:auto;flex:none;font:800 16px var(--f2);color:#B8660A;white-space:nowrap}
.shop847 .it847>span:nth-child(2){min-width:0;flex:1}
.shop847 .it847 b,.shop847 .it847 small,.shop847 .big847 .w,.shop847 .big847 .g{word-break:normal;overflow-wrap:normal;hyphens:none;-webkit-hyphens:none}
@media (max-width:419px){.shop847 .items847{grid-template-columns:1fr}}
/* INT847: montra em 3 colunas (não 4) a partir de ~700px (844 deitado) para os nomes não ficarem pequenos; 2 colunas entre 420 e 699 e nos tablets em retrato (painel estreito) */
@media (min-width:420px){.shop847 .items847{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:700px) and (orientation:landscape){.shop847 .items847{grid-template-columns:repeat(3,minmax(0,1fr))}}
.shop847.panel{background-color:var(--cream)}
.shop847 .big847{text-align:center;margin:6px 0}
.shop847 .big847 .e{font-size:64px;display:block}
.shop847 .big847 .w{font:600 26px var(--f1)}
.shop847 .big847 .g{font-weight:800;color:#8A7AA6}
.shop847 .have847{display:inline-block;background:#E7F8EE;color:#157A3C;font-weight:800;border-radius:99px;padding:3px 10px;font-size:13px;margin-top:4px}
