/* Sadie Village V8.7.3 (VIAGEM873): selo do «i», cartão da história do lugar, pílula de áudio (✕), menu do motorista (autocarro e metro). */
:root{--v873-a:#2f6df0;--v873-b:#7b5cff;--v873-ok:#16a394}

/* ---- selo no «i» (só nos mapas com história) ---- */
.host-btn.v873-has{overflow:visible}
.host-btn.v873-has::after{content:'📖';position:absolute;right:-9px;bottom:-9px;width:22px;height:22px;border-radius:50%;background:#fff7d6;border:2px solid #f2b705;font-size:12px;line-height:18px;text-align:center;box-shadow:0 2px 0 rgba(43,27,61,.3)}
.host-btn.v873-new{animation:v873glow 1.8s ease-in-out infinite;border-color:#f2b705}
@keyframes v873glow{0%,100%{box-shadow:0 4px 0 rgba(43,27,61,.3),0 0 0 0 rgba(242,183,5,.0)}50%{box-shadow:0 4px 0 rgba(43,27,61,.3),0 0 14px 5px rgba(242,183,5,.75)}}
.btn.v873-sbtn{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;background:linear-gradient(135deg,#ffb300,#ff7a1a);color:#fff;border:3px solid #fff;box-shadow:0 4px 0 rgba(120,60,0,.35),0 0 14px rgba(255,179,0,.55)}
.btn.v873-sbtn .v873-seal{font-size:.8em;background:#fff;color:#b45f00;border-radius:99px;padding:1px 8px;font-weight:800}
.btn.v873-sbtn small{display:block;font-size:12px;font-weight:600;opacity:.95}

/* ---- cartão da história ---- */
.v873-story{max-height:86vh;overflow:auto}
.v873-story h2{margin:0 0 4px}
.v873-story .v873-sub{margin:0 0 8px;color:#6b5a85;font-size:14px}
.v873-story .v873-txt{background:#fff8e6;border:2px solid #f2d27a;border-radius:16px;padding:12px 14px;font:600 17px/1.5 var(--f2,inherit);max-height:42vh;overflow:auto}
.v873-story .v873-ctl{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.v873-story .v873-ctl .btn{flex:1 1 140px}
.v873-story .v873-note{font-size:13px;color:#8a7aa6;margin:8px 0 0}
@media (max-height:420px){.v873-story .v873-txt{max-height:30vh;font-size:15px}}

/* ---- pílula de áudio ---- */
#aud873{position:absolute;left:50%;top:calc(104px + var(--safe-t,0px));transform:translateX(-50%);z-index:31;display:flex;align-items:center;gap:8px;max-width:88%;padding:5px 6px 5px 14px;border-radius:99px;background:#fff;border:3px solid var(--v873-b);box-shadow:0 4px 0 rgba(43,27,61,.28);font:800 15px/1 var(--f1,inherit);color:#3a2a63}
#aud873 .a873-eq{display:inline-flex;gap:2px;align-items:flex-end;height:14px}
#aud873 .a873-eq i{width:3px;background:var(--v873-b);border-radius:2px;animation:a873eq .8s infinite ease-in-out}
#aud873 .a873-eq i:nth-child(2){animation-delay:.2s}#aud873 .a873-eq i:nth-child(3){animation-delay:.4s}
@keyframes a873eq{0%,100%{height:4px}50%{height:14px}}
#aud873 button{min-width:34px;height:34px;border-radius:50%;border:0;background:#e8374f;color:#fff;font-size:16px;font-weight:800;cursor:pointer}
@media (prefers-reduced-motion:reduce){.host-btn.v873-new,#aud873 .a873-eq i{animation:none}}

/* ---- menu do motorista ---- */
.b873{max-height:90vh;overflow:auto}
.b873 .b873-who{display:flex;gap:12px;align-items:center;margin-bottom:8px}
.b873 .b873-who img{width:56px;height:56px;border-radius:50%;border:3px solid #fff;box-shadow:0 3px 0 rgba(43,27,61,.25);background:#dfe8ff}
.b873 .b873-who h2{margin:0;font-size:20px}
.b873 .b873-who small{color:#6b5a85}
.b873 .b873-bubble{display:flex;gap:8px;align-items:center;background:#eef3ff;border-radius:16px;padding:8px 12px;margin:6px 0 10px;font-weight:700}
.b873 .b873-bubble button{margin-left:auto;border:0;background:#fff;border-radius:50%;width:34px;height:34px;box-shadow:0 2px 0 rgba(43,27,61,.2)}
.b873 .b873-home{width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:10px 12px;margin-bottom:8px;border:3px solid #fff;border-radius:18px;background:linear-gradient(135deg,#16a394,#2fc7a3);color:#fff;font:800 17px var(--f1,inherit);box-shadow:0 4px 0 rgba(0,70,60,.3)}
.b873 .b873-home i{font-style:normal;font-size:26px}
.b873 .b873-tabs{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 8px;-webkit-overflow-scrolling:touch}
.b873 .b873-chip{flex:0 0 auto;display:flex;align-items:center;gap:6px;padding:7px 12px;border-radius:99px;border:3px solid #fff;background:var(--c,#8a8296);color:#fff;font:800 14px var(--f1,inherit);opacity:.78;box-shadow:0 3px 0 rgba(43,27,61,.22)}
.b873 .b873-chip.on{opacity:1;transform:translateY(-1px);box-shadow:0 4px 0 rgba(43,27,61,.3),0 0 0 3px rgba(255,255,255,.7)}
.b873 .b873-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.b873 .b873-card{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:16px;background:#fff;border:3px solid var(--c,#ddd);box-shadow:0 3px 0 rgba(43,27,61,.14)}
.b873 .b873-card .e{font-size:28px;width:38px;text-align:center}
.b873 .b873-card .t{flex:1;min-width:0}.b873 .b873-card .t b{display:block;font-size:15px}.b873 .b873-card .t small{display:block;color:#6b5a85;font-size:12px;line-height:1.25}
.b873 .b873-card button.go{border:0;border-radius:99px;padding:8px 12px;background:var(--c,#2f6df0);color:#fff;font:800 14px var(--f1,inherit);box-shadow:0 3px 0 rgba(43,27,61,.25)}
.b873 .b873-card.locked,.b873 .b873-card.soon{filter:grayscale(1);opacity:.62;border-color:#c9c4d3}
.b873 .b873-card.locked button.go,.b873 .b873-card.soon button.go{background:#9b95a8}
.b873 .b873-card.here{border-style:dashed}
.b873 .b873-lead{font-size:13px;color:#6b5a85;margin:6px 0}

/* ---- TRANSPORTES (03/11/2026): menu único do ônibus e do metro (preço, selecionar → confirmar) ---- */
.b873 .b873-wallet{margin:0 0 6px;font-size:13px;font-weight:700;color:#4b3a6a}
.b873 .b873-tariff{background:#eef3ff;border-radius:12px;padding:6px 10px;font-weight:700;color:#2b3d7a}
.b873 .b873-card{cursor:pointer;transition:transform .12s,box-shadow .12s}
.b873 .b873-card.sel{transform:translateY(-1px);box-shadow:0 0 0 3px var(--c,#2f6df0),0 4px 0 rgba(43,27,61,.25);background:#f6f9ff}
.b873 .b873-card button.go.pr{min-width:66px;white-space:nowrap}
.b873 .b873-card button.go.pr i{font-style:normal}
.b873 .b873-card.here button.go{background:#c9c4d3;color:#fff}
.b873 .b873-confirm{position:sticky;bottom:-2px;display:flex;align-items:center;gap:10px;margin:10px -4px -4px;padding:10px 12px;border-radius:18px 18px 12px 12px;background:#fff;border:3px solid #2f6df0;box-shadow:0 -6px 14px rgba(43,27,61,.18),0 3px 0 rgba(43,27,61,.2);z-index:2}
.b873 .b873-confirm[hidden]{display:none}
.b873 .b873-confirm .e{font-size:30px}
.b873 .b873-confirm .t{flex:1;min-width:0}.b873 .b873-confirm .t b{display:block;font-size:15px}.b873 .b873-confirm .t small{display:block;color:#6b5a85;font-size:12px}
.b873 .b873-confirm button.go{border:0;border-radius:99px;padding:10px 14px;background:#16a34a;color:#fff;font:800 15px var(--f1,inherit);box-shadow:0 3px 0 rgba(43,27,61,.25);white-space:nowrap}
@media (max-height:480px){.b873 .b873-bubble,.b873 .b873-home{display:none}.b873 .b873-who img{width:44px;height:44px}.b873 .b873-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}}
/* MIS-QA-A11: a pílula «A Sadie está falando» (top:104px) tapava o cartão «DIA 1 · PRIMEIROS PASSOS» (#cam87: 100–148 px em ecrã estreito, 64–108 px em paisagem); passa para logo abaixo do cartão. Mantém o --t87aud do tutorial */
#game #aud873{top:var(--t87aud,calc(112px + var(--safe-t,0px)))}
body.m89-narrow #game #aud873{top:var(--t87aud,calc(162px + var(--safe-t,0px)))}
/* MIS-QA-A11 (D6): em ecrã estreito o aviso (#toast, top:162px) e a pílula ficavam empilhados no mesmo sítio logo a seguir ao tutorial (cartão do Caminho + pílula + «✅ … +1»); com um aviso à vista a pílula desce para baixo dele */
body:has(#toast.on) #game #aud873{top:var(--t87aud,calc(156px + var(--safe-t,0px)))}   /* paisagem / Fold aberto: o aviso fica em 114–149 px */
body.m89-narrow:has(#toast.on) #game #aud873{top:var(--t87aud,calc(236px + var(--safe-t,0px)))}
@media (max-width:340px){body.m89-narrow:has(#toast.on) #game #aud873{top:var(--t87aud,calc(262px + var(--safe-t,0px)))}}   /* Fold fechado: o aviso ocupa 3 linhas (162–255 px) */
