/* conta do jogador (04/11): folha cheia sobre o jogo, visual dos cartões (borda grossa, botão amarelo). Prefixo .fco */
.fco{position:fixed;inset:0;z-index:80;overflow-y:auto;overscroll-behavior:contain;background:linear-gradient(#b3d1ee,#e6ebea 55%,#cfe3c4);color:var(--ink,#1e2430);padding:calc(14px + env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch}
.fco-card{max-width:460px;margin:0 auto;display:grid;gap:14px}
.fco-top{display:flex;justify-content:flex-start}
.fco-t{margin:0;font-size:28px;line-height:1.05;font-weight:900;text-align:center}
.fco-f{display:grid;gap:12px;background:#fff;border:3.5px solid var(--ink,#1e2430);border-radius:22px;padding:16px;box-shadow:0 5px 0 rgba(30,36,48,.3)}
.fco-campo{display:flex;align-items:center;gap:6px;height:54px;border:3.5px solid var(--ink,#1e2430);border-radius:999px;padding:0 8px 0 16px;background:#fff}
.fco-campo input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;font:inherit;font-size:17px;color:var(--ink,#1e2430)}
.fco-campo:focus-within{box-shadow:0 0 0 3px var(--y,#ffd23f)}
.fco-ver{border:0;background:#eef1f4;border-radius:999px;height:36px;padding:0 12px;font:inherit;font-size:14px;font-weight:900;color:var(--ink,#1e2430);cursor:pointer}
.fco-ck{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:800;min-height:44px}
.fco-ck input{width:24px;height:24px;accent-color:var(--ink,#1e2430);flex:none}
.fco-go{width:100%;min-height:56px;font-size:19px;font-weight:900}
.fco-go[disabled]{opacity:.6}
.fco-erro{margin:0;font-size:15px;font-weight:800;color:#a3261c;text-align:center}
.fco-lado{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.fco-lado .btn{background:#fff;min-height:44px}
.fco-cod{margin:0;text-align:center;white-space:nowrap;font-size:clamp(20px,6.6vw,34px);font-weight:900;letter-spacing:.06em;background:#fff;border:3.5px dashed var(--ink,#1e2430);border-radius:22px;padding:18px 8px;user-select:all;-webkit-user-select:all}
.fco-est{margin:0;text-align:center;font-size:15px;font-weight:800;color:var(--muted,#5d6b7e)}
.fco-sub{margin:0;text-align:center;font-size:17px;font-weight:800}
.fco-local{display:grid;gap:8px;border:3px dashed #a3261c;border-radius:18px;padding:12px;background:#fff6f4}
.fco-local b{font-size:13px;color:#a3261c;text-transform:uppercase}
.fco-entrar{margin-top:10px;width:100%;background:#fff}
.fca-pe .fco-guardar{background:var(--y,#ffd23f)}
.fco-cod.ok{border-style:solid;opacity:.55}

/* convite (05/11): cartão acima das abas, não trava o jogo */
.fco-convite{position:fixed;left:12px;right:12px;bottom:calc(96px + env(safe-area-inset-bottom));z-index:70;max-width:360px;margin:0 auto;display:grid;gap:8px;background:#fff;color:var(--ink,#1e2430);border:3.5px solid var(--ink,#1e2430);border-radius:22px;padding:14px;box-shadow:0 5px 0 rgba(30,36,48,.3)}
.fco-convite b{font-size:20px;font-weight:900;line-height:1.1}
.fco-convite p{margin:0;font-size:15px;font-weight:700}
.fco-convite-b{display:grid;grid-template-columns:auto 1fr;gap:8px;margin-top:2px}
.fco-convite-b .btn{min-height:44px}
.fco-convite-b .btn:not(.prim){background:#fff}
/* Postais leva A: o convite não cobre o diálogo do @ nem o aviso de "não achei" (375x667) */
body:has(#minha-casa:not([hidden])) .fco-convite, body:has(#cartao .cart.nao) .fco-convite{display:none}
/* leva A (item 19): o convite não aparece por cima de folha, minijogo ou resultado de rodada abertos; volta sozinho quando a pessoa volta ao mapa */
body:has(#missoes:not([hidden])) .fco-convite, body:has(.fun-folha:not([hidden])) .fco-convite, body:has([role="dialog"]:not([hidden])) .fco-convite, body.evo-aberto .fco-convite, body.fco-aberto .fco-convite, body.dados-on .fco-convite{display:none}

.fcr{gap:6px;background:#fff7d6}
.fcr-k{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:#7a5a00}
.fcr-t{margin:0;font-size:24px;line-height:1.05;font-weight:900}
.fcr-s,.fcr-f{margin:0;font-size:14px;font-weight:800;color:#3b4552}
.fcr-top{margin:6px 0 0;padding:0;list-style:none;display:grid;gap:4px;counter-reset:fcr}
.fcr-top li{display:flex;align-items:center;gap:8px;background:#fff;border-radius:12px;padding:7px 10px;font-size:14px;counter-increment:fcr}
.fcr-top li::before{content:counter(fcr);font-weight:900;color:#7a5a00}
.fcr-top li b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fcr-top li span,.fcr-eu span{font-weight:800}
.fcr-top li.eu{outline:3px solid var(--ink,#1e2430)}
.fcr-eu{display:flex;justify-content:space-between;gap:10px;margin:6px 0 2px;font-size:14px}

/* site-fun · FRENTE JOGO (02/11/2026): bandeira da casa, cartão da casa em uma tela, aba Jogar. 375 px primeiro.
   Regras do João: botão sempre claro, nunca palavra sublinhada, sem emoji, pouco texto. Entra no build sozinho (src/fun-*.css). */

/* ---------- bandeira (canvas 12×8 escalado, pixelado) ---------- */
canvas.fun-fl, .fb-big, .fj-cv, .fj-rc { image-rendering: pixelated; image-rendering: crisp-edges; display: block; background: #fff; }
canvas.fun-fl { display: inline-block; vertical-align: -3px; border: 1.5px solid var(--ink); border-radius: 3px; margin-right: 5px; }
.fb-mastro { position: relative; display: inline-block; padding: 0 0 0 7px; }
.fb-pole { position: absolute; left: 0; top: -6px; bottom: -14px; width: 5px; border-radius: 3px; background: var(--ink); }
.fb-pole::before { content: ""; position: absolute; left: -2px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--y); border: 2.5px solid var(--ink); }
.fb-big { border: 3px solid var(--ink); border-radius: 4px; box-shadow: 0 4px 0 rgba(30, 36, 48, .25); transform-origin: left center; animation: fbOnda 3.2s ease-in-out infinite; }
@keyframes fbOnda { 0%, 100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(-1.2deg) scaleX(.985); } }
@media (prefers-reduced-motion: reduce) { .fb-big { animation: none; } }

/* ---------- folhas (editor) ---------- */
.fun-folha { position: absolute; inset: 0; z-index: 22; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; background: linear-gradient(#b3d1ee, #e6ebea 55%, #cfe3c4); color: var(--ink); -webkit-overflow-scrolling: touch; }
.fun-hd { position: sticky; top: 0; z-index: 4; display: flex; justify-content: center; align-items: center; padding: calc(12px + env(safe-area-inset-top)) 64px 10px; background: linear-gradient(#b3d1ee 75%, rgba(179, 209, 238, 0)); }
.fun-hd h1 { font-size: clamp(24px, 7.4vw, 32px); margin: 0; }
.fun-hd .fechar { position: absolute; right: 12px; top: calc(10px + env(safe-area-inset-top)); width: 44px; height: 44px; }
.fun-corpo { max-width: 520px; margin: 0 auto; padding: 6px 16px calc(28px + env(safe-area-inset-bottom)); display: grid; gap: 14px; align-content: start; }
.fun-sub { margin: 0; font-size: 14px; font-weight: 800; line-height: 1.3; color: var(--mudo, #4d5a6c); text-align: center; }
.fun-nota { margin: 0; font-size: 13px; font-weight: 800; line-height: 1.3; color: var(--mudo, #4d5a6c); text-align: center; }
.fun-lead { margin: 0 0 10px; font-size: 16px; line-height: 1.3; text-align: center; }
.fun-eu { display: grid; gap: 8px; background: #fff; border: 3.5px solid var(--ink); border-radius: 22px; padding: 14px; box-shadow: var(--card-sh); }
.fun-eu form { display: grid; gap: 10px; }
.fun-eu-campo { display: flex; align-items: center; gap: 6px; height: 50px; border: 3.5px solid var(--ink); border-radius: 999px; padding: 0 14px; background: #fff; }
.fun-eu-campo span { font-size: 18px; }
.fun-eu-campo input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); }
.fun-eu-erro { margin: 0; font-size: 14px; color: #a3261c; text-align: center; }
.fun-convite { width: 100%; }

/* ---------- editor da bandeira ---------- */
.fb-prev { display: flex; align-items: center; justify-content: center; gap: 18px; background: #fff; border: 3.5px solid var(--ink); border-radius: 24px; padding: 16px 14px 16px 18px; box-shadow: var(--card-sh); }
.fb-lado { display: grid; gap: 3px; min-width: 0; }
.fb-r { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mudo, #4d5a6c); }
.fb-hh { font-size: 19px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-c { font-size: 13.5px; color: var(--mudo, #4d5a6c); }
.fb-chat { margin-top: 6px; display: flex; align-items: center; gap: 4px; font-size: 14px; background: #f4f7fa; border: 2.5px solid #d5dde6; border-radius: 12px; padding: 4px 8px; }
.fb-chat canvas.fun-fl { margin-right: 4px; }
.fb-grid { display: block; width: 100%; aspect-ratio: 3 / 2; touch-action: none; border: 3.5px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: var(--card-sh); cursor: crosshair; user-select: none; -webkit-user-select: none; }
.fb-pal { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; }
.fb-cor { aspect-ratio: 1; min-height: 38px; border-radius: 12px; border: 3px solid var(--ink); cursor: pointer; padding: 0; box-shadow: 0 3px 0 rgba(30, 36, 48, .3); }
.fb-cor.on { outline: 4px solid #fff; outline-offset: -1px; box-shadow: 0 0 0 3px var(--ink), 0 3px 0 3px rgba(30, 36, 48, .3); transform: translateY(-2px); }
.fb-cor:focus-visible { outline: 3px solid #1d6fd8; outline-offset: 2px; }
.fb-ferr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fb-f { display: grid; justify-items: center; gap: 2px; padding: 7px 2px 6px; min-height: 56px; border: 3.5px solid var(--ink); border-radius: 16px; background: #fff; font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; box-shadow: 0 3px 0 rgba(30, 36, 48, .3); }
.fb-f svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.fb-f.on { background: var(--y); }
.fb-f:disabled { opacity: .45; box-shadow: none; cursor: default; }
.fb-f:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 rgba(30, 36, 48, .3); }
.fb-acoes { display: grid; gap: 10px; }
.fb-ok { display: grid; justify-items: center; gap: 10px; background: #fff; border: 3.5px solid var(--ink); border-radius: 24px; padding: 20px 14px 18px; box-shadow: var(--card-sh); text-align: center; }
.fb-ok-t { margin: 0; font-size: 22px; }

/* ---------- cartão da casa em uma tela ---------- */
.fun-casa { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.fc-topo { display: flex; align-items: center; gap: 14px; min-width: 0; }
.fc-fl { flex: none; }
.fc-mastro { padding-left: 7px; }
.fc-vazia { width: 96px; height: 64px; border: 3px dashed #9fb0c2; border-radius: 6px; display: grid; place-items: center; font-size: 30px; color: #9fb0c2; background: #f4f7fa; }
.fc-fl.fc-sem { display: none; }
.fc-id { display: grid; gap: 4px; min-width: 0; justify-items: start; flex: 1 1 auto; }
.fc-nome { margin: 0; white-space: nowrap; max-width: calc(100% - 46px); overflow: hidden; text-overflow: ellipsis; }
.fc-onde { margin: 0; }
.fc-repintar { margin-top: 2px; }
.fc-conv-t { margin: 0; font-size: 14.5px; color: var(--mudo, #4d5a6c); }
.fc-frase { background: #fff8d6; border: 3px solid var(--ink); border-radius: 16px; padding: 9px 12px; }
.fc-frase q { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; line-height: 1.25; quotes: "\201C" "\201D"; }
.fc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-chip { display: inline-flex; align-items: center; padding: 3px 11px; border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; font-size: 13.5px; line-height: 1.25; }
.fc-chip.cg { background: var(--ink); color: var(--y); }
.fc-acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fc-acoes .btn { width: 100%; }
.btn.fc-tudo { justify-self: center; background: #fff; box-shadow: none; border-width: 3px; height: 34px; }
.btn.fc-repintar { background: #fff; }

/* ---------- aba Jogar ---------- */
#jogar { bottom: var(--tabb); }
.fj-corpo { gap: 16px; }
.fj-hoje { background: #fff; border: 3.5px solid var(--ink); border-radius: 26px; padding: 14px 16px 16px; box-shadow: var(--card-sh); display: grid; gap: 10px; }
.fj-hoje.dourada { background: #fff8d6; box-shadow: 0 0 0 4px var(--y), var(--card-sh); }
.fj-hh { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.fj-hh b { font-size: 24px; line-height: 1; margin-right: auto; }
.fj-serie { font-size: 13.5px; padding: 3px 11px; border: 2.5px solid var(--ink); border-radius: 999px; background: #e8eef4; }
.fj-serie.on { background: #d7f2c8; }
.fj-dourada { font-size: 13.5px; padding: 3px 11px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--y); }
.fj-obj { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fj-obj li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 16px; }
.fj-obj li em { font-style: normal; font-size: 14px; color: var(--mudo, #4d5a6c); }
.fj-obj li.ok .fj-ot { color: #1b7a3f; }
.fj-chk { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; display: grid; place-items: center; }
.fj-chk svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.fj-obj li.ok .fj-chk { background: #2a9d4b; }
.fj-obj li.ok .fj-chk svg { opacity: 1; }
.fj-bau { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mudo, #4d5a6c); border-top: 2.5px dashed #c9d3de; padding-top: 10px; }
.fj-bau.aberto { color: #1b7a3f; }
.fj-bi { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fj-bbtn { width: 100%; }
.fj-card { background: #fff; border: 3.5px solid var(--ink); border-radius: 26px; padding: 14px 14px 16px; box-shadow: var(--card-sh); display: grid; gap: 12px; align-content: start; }
.fj-ch { display: flex; align-items: center; gap: 12px; }
.fj-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 3.5px solid var(--ink); background: var(--y); display: grid; place-items: center; }
.fj-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fj-ct { min-width: 0; }
.fj-ct h2 { margin: 0; font-size: 24px; line-height: 1.05; }
.fj-ct p { margin: 2px 0 0; font-size: 14px; line-height: 1.25; color: var(--mudo, #4d5a6c); }
.fj-card .btn { width: 100%; }
.fj-card .btn.mini { width: auto; flex: 1 1 auto; }
.fj-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fj-area { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: "i n" "i e"; align-items: center; column-gap: 8px; padding: 6px 10px; border: 3px solid var(--ink); border-radius: 16px; background: #f4f7fa; }
.fj-area .mi-svg { grid-area: i; }
.fj-area .mi-svg svg { width: 26px; height: 26px; }
.fj-area b { grid-area: n; font-size: 14.5px; line-height: 1.1; }
.fj-area em { grid-area: e; font-style: normal; font-size: 12.5px; color: var(--mudo, #4d5a6c); }
.fj-area.livre { background: #fff; }
.fj-area.livre em { color: #1b7a3f; }
.fj-vitrine { display: grid; }
.fj-par { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fj-op { display: grid; gap: 4px; min-width: 0; align-content: start; transition: opacity .25s, transform .25s; }
.fj-fl { padding: 0; border: 4px solid var(--ink); border-radius: 10px; background: #fff; cursor: pointer; display: block; overflow: hidden; box-shadow: 0 4px 0 rgba(30, 36, 48, .3); }
.fj-fl:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(30, 36, 48, .3); }
.fj-fl:focus-visible { outline: 4px solid #1d6fd8; outline-offset: 2px; }
.fj-cv { width: 100% !important; height: auto !important; aspect-ratio: 3 / 2; border: 0; }
.fj-nm { font-size: 14px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 6px; }
.fj-on { font-size: 12.5px; line-height: 1.1; color: var(--mudo, #4d5a6c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.fj-ver { width: 100% !important; margin-top: 3px; background: #fff; box-shadow: none; height: 34px; }
.fj-op.ganhou .fj-fl { border-color: #2a9d4b; box-shadow: 0 0 0 4px #bfe9c9; }
.fj-op.perdeu { opacity: .35; transform: scale(.96); }
.fj-linha { display: flex; gap: 8px; flex-wrap: wrap; }
.fj-linha .btn.mini { background: #fff; flex: 1 1 0; min-width: 0; }
.fj-dica { margin-top: -4px; }
.fj-rank { display: grid; gap: 10px; border-top: 2.5px dashed #c9d3de; padding-top: 12px; }
.fj-rk-top { display: grid; gap: 8px; }
.fj-seg { display: flex; gap: 6px; }
.fj-s { flex: 1 1 0; min-width: 0; height: 38px; padding: 0 8px; border: 3px solid var(--ink); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fj-s.on { background: var(--y); }
.fj-rk-l { display: grid; gap: 6px; }
.fj-rk { display: grid; grid-template-columns: 26px auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 6px 10px 6px 8px; border: 3px solid var(--ink); border-radius: 16px; background: #fff; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.fj-rk.eu { background: #fff8d6; }
.fj-rk:focus-visible { outline: 3px solid #1d6fd8; outline-offset: 2px; }
.fj-rp { font-size: 17px; text-align: center; }
.fj-rc { width: 48px !important; height: 32px !important; border: 2px solid var(--ink); border-radius: 3px; }
.fj-rt { display: grid; min-width: 0; }
.fj-rt b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fj-rt i { font-style: normal; font-size: 12.5px; color: var(--mudo, #4d5a6c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fj-rr { font-size: 14px; color: var(--mudo, #4d5a6c); }
.fj-pass { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fj-st { display: grid; justify-items: center; gap: 0; padding: 8px 4px; border: 3px solid var(--ink); border-radius: 16px; background: #f4f7fa; }
.fj-st b { font-size: 24px; line-height: 1.1; }
.fj-st span { font-size: 12.5px; color: var(--mudo, #4d5a6c); }
.fj-fatos { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14.5px; line-height: 1.3; }
.fj-carimbos { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.fj-carimbo { display: grid; justify-items: center; align-content: center; gap: 0; min-height: 62px; padding: 6px 4px; border: 3px solid var(--ink); border-radius: 14px; background: var(--cor, #FFD23F); transform: rotate(var(--rot, 0deg)); font: inherit; color: var(--ink); cursor: pointer; }
.fj-carimbo b { font-size: 20px; line-height: 1; }
.fj-carimbo i { font-style: normal; font-size: 11.5px; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fj-carimbo.ouro { background: linear-gradient(#ffe27a, #f5b82a); cursor: default; }
.fj-carimbo:focus-visible { outline: 3px solid #1d6fd8; outline-offset: 2px; }

/* ---------- barra de baixo com a aba Jogar (6 abas em 375 px) ---------- */
#tabbar:has(#abrirJogar:not([hidden])) { padding-left: 2px; padding-right: 2px; gap: 0; }
#tabbar:has(#abrirJogar:not([hidden])) .tab { flex: 1 1 auto; max-width: none; padding: 0 2px; }
#tabbar:has(#abrirJogar:not([hidden])) .tab span { font-size: 10.5px; letter-spacing: -.025em; }

/* toque sem o retângulo azul do navegador */
.fb-f, .fb-cor, .fj-fl, .fj-s, .fj-rk, .fj-carimbo, #abrirJogar, .fun-casa .btn, .fj-card .btn { -webkit-tap-highlight-color: transparent; }

/* enxugada 03/11: bandeira no alto da aba Minha Casa; blocos do jogo real dentro da aba Jogar */
.mc-bandeira { background: #fff; border: 3.5px solid var(--ink, #1e2430); border-radius: 24px; padding: 14px; display: flex; align-items: center; gap: 14px; box-shadow: 0 5px 0 rgba(30, 36, 48, .2); }
.mc-bandeira > .fun-convite, .mc-bandeira > .btn { width: 100%; }
.mc-band-t { display: grid; gap: 8px; justify-items: start; }
.mc-band-t b { font-size: 15px; }
.fj-corpo .mi-hoje, .fj-corpo .gv-card, .fj-corpo .gv-obra { margin: 0; }

/* 03/11 · aba Minha Casa: lugar único da casa, tudo centrado */
#minha-casa .el-corpo.fca { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: stretch; }
#minha-casa .el-corpo.fca > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
.fca-ed > *, .fca-pn > * { min-width: 0; max-width: 100%; }
.fca-pn .fb-pal { max-width: 100%; }
.fca-cena { position: sticky; top: 62px; z-index: 3; height: 212px; border: 3.5px solid var(--ink, #1e2430); border-radius: 26px; background: linear-gradient(#cfeaff, #eef8e8 72%); box-shadow: 0 5px 0 rgba(30, 36, 48, .2); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fca-gl { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.fca-bolha { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 2; max-width: 88%; width: max-content; margin: 0; padding: 7px 13px; background: #fff; border: 3px solid var(--ink, #1e2430); border-radius: 16px; font-weight: 800; font-size: 14px; line-height: 1.2; text-align: center; pointer-events: none; overflow-wrap: anywhere; }
.fca-bolha[hidden] { display: none; }
.fca-2d { transform: scale(1); }
.fca-ficha { display: grid; justify-items: center; text-align: center; gap: 6px; }
.fca-nome { margin: 0; font-size: 24px; font-weight: 900; line-height: 1.1; overflow-wrap: anywhere; }
.fca-onde { margin: 0; font-weight: 800; color: #5d6b7e; font-size: 15px; }
.fca-ficha .fc-chips { justify-content: center; }
.fca-ficha > :last-child:not(.fc-chips) { width: 100%; text-align: left; }
.fca-ed { background: #fff; border: 3.5px solid var(--ink, #1e2430); border-radius: 24px; padding: 12px; display: grid; gap: 12px; box-shadow: 0 5px 0 rgba(30, 36, 48, .2); }
.fca-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 3px solid var(--ink, #1e2430); border-radius: 999px; }
.fca-sb { border: 0; background: none; border-radius: 999px; height: 40px; font: inherit; font-weight: 900; font-size: 15px; color: var(--ink, #1e2430); cursor: pointer; }
.fca-sb.on { background: var(--ink, #1e2430); color: var(--y, #FFD23F); }
.fca-pn { display: grid; gap: 12px; }
.fca-pn[hidden] { display: none; }
.fca-pn .fr-ver.ok span { display: none; }
.fca-pn .fb-grid { width: 100%; }
.fca-ac { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.fca-ac .btn { min-width: 0; padding-left: 4px; padding-right: 4px; }
.fca-ac .btn:nth-child(4) { grid-column: 1 / -1; }
.fca-det { background: #fff; border: 3.5px solid var(--ink, #1e2430); border-radius: 24px; padding: 12px 14px; }
.fca-det summary { font-weight: 900; text-align: center; cursor: pointer; list-style: none; }
.fca-det summary::-webkit-details-marker { display: none; }
.fca-det summary::after { content: ' +'; }
.fca-det[open] summary::after { content: ' −'; }
.fca-det-in { display: grid; gap: 12px; margin-top: 12px; }
.fca-pe { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding-bottom: 72px; }
.lj-sua { width: 100%; margin-top: 10px; }

.fca-ed-t { margin: 0; text-align: center; font-size: 17px; font-weight: 900; }
.fca-pn .fb-acoes, .fca-fr .fr-acoes, .fca-fr .fr-ed-t b, .fca-fr .fr-dica { display: none; }
.fca-fr .fr-bloco { display: flex; flex-direction: column; gap: 10px; }
.fca-fr .fr-ver { order: 3; }
.fca-fr .fr-ed { border: 0; padding: 0; box-shadow: none; background: none; }
.fca-salvar { width: 100%; }

.fca-bolha.pop { animation: fca-pop .22s cubic-bezier(.3,1.6,.5,1); }
@keyframes fca-pop { from { transform: translateX(-50%) scale(.9); } to { transform: translateX(-50%) scale(1); } }

/* vitrine dos modelos (?vitrine=1) */
.fca-pn .fb-pal { grid-template-columns: repeat(8, minmax(0, 1fr)); width: 100%; box-sizing: border-box; }
.fca-pn .fb-cor { min-width: 0; width: 100%; }
.fca-pn .fb-ferr { width: 100%; box-sizing: border-box; }
.fca-fr .fr-acoes, .fca-pn .fb-acoes { display: none !important; }
.fca-fr .fr-ed-t { justify-content: flex-end; min-height: 0; }
.fca-fr .fr-ed input { width: 100%; box-sizing: border-box; }

/* canvas da bandeira (03/11) */
.fb-pal32 { gap: 5px; }
.fb-pal32 .fb-cor { min-height: 30px; border-radius: 9px; border-width: 2.5px; box-shadow: none; }
.fb-ferr8, .fb-ac2 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.fb-ac2 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.fb-ferr8 .fb-f { min-height: 50px; padding: 5px 1px 4px; font-size: 11.5px; border-width: 3px; border-radius: 13px; }
.fb-a { min-height: 44px !important; padding: 4px 0 !important; font-size: 10px !important; border-width: 2.5px !important; border-radius: 11px !important; box-shadow: none !important; }
.fb-a svg { width: 18px; height: 18px; }
.fb-op { display: grid; gap: 8px; }
.fb-op[hidden] { display: none; }
.fb-tams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fb-tam { height: 38px; display: flex; align-items: center; justify-content: center; border: 3px solid var(--ink); border-radius: 11px; background: #fff; cursor: pointer; }
.fb-tam i { display: block; background: var(--ink); }
.fb-tam.on { background: var(--y); }
.fb-carim { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.fb-cm { padding: 6px; border: 3px solid var(--ink); border-radius: 11px; background: #fff; cursor: pointer; display: flex; justify-content: center; }
.fb-cm canvas { width: 33px; height: 33px; image-rendering: pixelated; }
.fb-cm.on { background: var(--y); }
.fb-tx { width: 100%; box-sizing: border-box; height: 44px; padding: 0 14px; border: 3px solid var(--ink); border-radius: 13px; font: inherit; font-size: 16px; font-weight: 800; }
.fb-rot { margin: 2px 0 -4px; font-size: 13px; font-weight: 900; color: #5d6b7e; text-align: center; }
.fb-moldes { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.fb-moldes::-webkit-scrollbar { display: none; }
.fb-ml { flex: 0 0 72px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 800; color: var(--ink); display: grid; gap: 3px; justify-items: center; }
.fb-ml canvas { width: 72px; height: 48px; border: 3px solid var(--ink); border-radius: 9px; image-rendering: pixelated; box-sizing: border-box; }
.fb-grid { image-rendering: pixelated; }
.fv { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: #f3f5f2; color: var(--ink, #1e2430); font-weight: 900; }
.fv-top { display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 14px 6px; }
.fv-tit { margin: 0; font-size: 22px; line-height: 1.1; }
.fv-n { margin: 0 auto 0 0; font-size: 13px; color: #5d6b7e; white-space: nowrap; }
.fv-chips { display: flex; gap: 6px; overflow-x: auto; padding: 6px 14px 10px; scrollbar-width: none; flex: none; }
.fv-chips::-webkit-scrollbar { display: none; }
.fv-chip { flex: none; border: 3px solid var(--ink, #1e2430); border-radius: 999px; background: #fff; padding: 6px 12px; font: inherit; font-size: 14px; color: inherit; }
.fv-chip.on { background: #ffd23f; }
.fv-grade { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 2px 14px calc(18px + env(safe-area-inset-bottom)); align-content: start; }
.fv-card { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; border: 3px solid var(--ink, #1e2430); border-radius: 16px; background: #fff; font: inherit; color: inherit; text-align: left; }
.fv-card img { width: 100%; height: auto; aspect-ratio: 1; display: block; background: linear-gradient(#dfeaf3, #eef1e6); border-radius: 10px; }
.fv-nm { font-size: 14px; line-height: 1.15; }
.fv-t { font-size: 11px; color: #7a8796; min-height: 13px; font-weight: 800; }
.fv-sem { opacity: 0.45; }
.fv-um { position: absolute; inset: 0; display: flex; flex-direction: column; background: linear-gradient(#a9c8e6, #eef1e6); }
.fv-um[hidden] { display: none; }
.fv-cena { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.fv-nome { margin: 4px 12px 0; text-align: center; font-size: 19px; }
.fv-pos { margin: 0 0 8px; text-align: center; font-size: 13px; color: #5d6b7e; }
.fv-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px 10px calc(14px + env(safe-area-inset-bottom)); }
.fv-b { min-width: 0; padding-left: 6px; padding-right: 6px; font-size: 14px; flex: none; }
#totais, #ctrl { transition: opacity .18s; }
body.fun-mexendo #totais { opacity: 0; pointer-events: none; }
.fb-curtir { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 62px; height: 40px; padding: 0 10px; border: 3px solid var(--ink, #1e2430); border-radius: 999px; background: #fff; color: var(--ink, #1e2430); font: inherit; font-weight: 900; font-size: 14px; cursor: pointer; flex: none; }
.fb-curtir svg { width: 18px; height: 18px; fill: #fff; stroke: var(--ink, #1e2430); stroke-width: 2.4; }
.fb-curtir.on { background: #ffe1e6; }
.fb-curtir.on svg { fill: #e8344e; stroke: #b81f37; }
.fb-curtir.pulo svg { animation: fb-pulo .32s ease-out; }
@keyframes fb-pulo { 0% { transform: scale(.7); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }
.fj-rk { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 3px solid var(--ink, #1e2430); border-radius: 14px; background: #fff; }
.fj-rk-ab { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: 26px auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.fj-pod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; }
.fj-pod-k { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.fj-pod-k .fj-cv { width: 100%; height: auto; aspect-ratio: 3 / 2; border: 3px solid var(--ink, #1e2430); border-radius: 8px; }
.fj-pod-k.um .fj-cv { border-color: #d4a93a; box-shadow: 0 0 0 3px #ffd23f; }
.fj-pod-p { font-weight: 900; font-size: 15px; }
.fj-pod-k .fj-nm, .fj-pod-k .fj-on { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.fj-pod-k .fj-fl { width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.fj-rank .btn.mini { margin-top: 8px; width: 100%; }
.fc-curtir { display: flex; align-items: center; gap: 8px; }
.fc-band-cid{display:flex;align-items:center;gap:10px;margin:8px 0;flex-wrap:wrap}.fc-band-cid-t{width:72px;height:48px;image-rendering:pixelated;border:2px solid #1e2430;border-radius:4px}
#carrega{z-index:80}

/* ===== 04/11 · pintar como joguinho: tela cheia, poucos botões grandes, a tela de pintar sempre visível ===== */
#fun-bandeira .fun-hd{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;padding:calc(10px + env(safe-area-inset-top)) 12px 8px}
#fun-bandeira .fun-hd h1{font-size:22px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#fun-bandeira .fun-hd .fechar{display:none}
.pin-voltar{display:flex;align-items:center;gap:2px;height:46px;padding:0 14px 0 8px;border:3.5px solid var(--ink,#1e2430);border-radius:999px;background:#fff;color:var(--ink,#1e2430);font:inherit;font-weight:900;font-size:15px;box-shadow:0 3px 0 rgba(30,36,48,.3);cursor:pointer}
.pin-voltar svg{width:22px;height:22px}
#fun-bandeira .fun-hd .fb-salvar{width:auto;min-width:92px;height:46px;min-height:0;padding:0 16px;font-size:16px}
.fun-corpo.pin{display:grid;gap:10px;padding:0 12px calc(16px + env(safe-area-inset-bottom));max-width:520px;margin:0 auto}
.pin .fb-grid{border-radius:12px;box-shadow:0 4px 0 rgba(30,36,48,.28)}
.pin-ferr{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.pin-ferr .fb-f{min-height:58px;padding:7px 0 5px;font-size:11.500px;font-weight:800;border-width:3px;border-radius:15px}
.pin-ferr .fb-f svg{width:24px;height:24px}
.pin-ferr .fb-a{background:#fff}
.pin .fb-op{display:flex;justify-content:center}
.pin .fb-op[hidden]{display:none}
.pin .fb-tams{display:flex;gap:8px;justify-content:center}
.pin-cores{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:7px!important}
.pin-cores .fb-cor{min-height:44px;aspect-ratio:auto;height:44px;border-radius:14px;border-width:3px;box-shadow:0 3px 0 rgba(30,36,48,.25)}
.pin-cores .fb-cor.on{transform:translateY(-3px) scale(1.06)}
.pin-cores:not(.todas) .fb-cor:nth-child(n+14){display:none}
.pin-corm{height:44px;border:3px dashed var(--ink,#1e2430);border-radius:14px;background:#fff;font:inherit;font-weight:900;font-size:22px;line-height:1;color:var(--ink,#1e2430);cursor:pointer}
.pin-mais{display:grid;gap:10px;padding:12px;background:#fff;border:3px solid var(--ink,#1e2430);border-radius:18px}
.pin-mais[hidden]{display:none}
.pin-mais .fb-rot{margin:0;font-weight:800;font-size:14px;text-align:left}
.pin-mais .fb-ac2{grid-template-columns:repeat(5,minmax(0,1fr))}

/* ===== 04/11 · aba Casa: a casa é o herói ===== */
.fca-cena{position:relative!important;top:auto!important;height:min(42vh,330px)!important}
.fca-nv{display:grid;grid-template-columns:52px 1fr 52px;gap:8px;align-items:center;margin-top:-4px}
.fca-seta{height:48px;border:3.5px solid var(--ink,#1e2430);border-radius:16px;background:#fff;box-shadow:0 3px 0 rgba(30,36,48,.3);cursor:pointer;display:grid;place-items:center}
.fca-seta svg{width:24px;height:24px;fill:none;stroke:var(--ink,#1e2430);stroke-width:3.400;stroke-linecap:round;stroke-linejoin:round}
.fca-seta:disabled{opacity:.35;box-shadow:none}
.fca-seta:active:not(:disabled),.pin-voltar:active{transform:translateY(2px);box-shadow:0 1px 0 rgba(30,36,48,.3)}
.fca-nvrot{height:48px;border:0;background:none;font:inherit;font-weight:900;font-size:15px;color:var(--ink,#1e2430);cursor:pointer}
.fca-nvrot.outra{color:#a15c00}
.fca-ed{display:grid;gap:10px;background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
.fca-pintar{display:flex;align-items:center;justify-content:center;gap:12px;min-height:64px;font-size:20px;font-weight:900}
.fca-th{width:48px;height:32px;border:2.500px solid var(--ink,#1e2430);border-radius:4px}
.fca-bfr{min-height:50px}
.fca-fr{padding:12px;background:#fff;border:3.500px solid var(--ink,#1e2430);border-radius:20px}
.fca-ac{grid-template-columns:1fr 1fr!important}
.fca-ac .btn{min-height:50px;font-size:15px}
#minha-casa .fc-chips{display:none}

/* ===== 04/11 · Governo: o chefe em destaque e o resto em lista que abre com um toque ===== */
#governo .gv-card:not(.chefe)>.gv-rot:first-child{position:relative;cursor:pointer;font-size:16px;color:var(--ink,#1e2430);padding:2px 30px 2px 0;font-weight:900}
#governo .gv-card:not(.chefe)>.gv-rot:first-child::after{content:"";position:absolute;right:6px;top:50%;width:10px;height:10px;margin-top:-8px;border-right:3.500px solid var(--ink,#1e2430);border-bottom:3.500px solid var(--ink,#1e2430);transform:rotate(45deg);transition:transform .15s}
#governo .gv-card.aberto>.gv-rot:first-child::after{transform:rotate(225deg);margin-top:-2px}
#governo .gv-card:not(.chefe):not(.aberto):has(>.gv-rot:first-child)>:not(.gv-rot:first-child){display:none}
#governo .gv-card{padding:13px 15px;gap:9px;border-radius:20px}
#governo .gv-card.chefe{gap:10px}
#governo .gv-btn{background:#fff;color:var(--ink,#1e2430);min-height:52px;border-radius:16px;box-shadow:0 3px 0 rgba(30,36,48,.3)}
#governo .gv-card.chefe .gv-btn{background:#fff}
#governo .gv-btn small,#governo .gv-btn .gv-bsub{font-weight:700;opacity:.7}

/* ===== 04/11 · Lojas: o botão da sua loja em destaque, menos texto ===== */
#lojas .lj-hero .lj-sua{min-height:58px;font-size:18px;font-weight:900}
#lojas-corpo>.fonte{display:none}

/* ===== 04/11 · cartão da cidade ===== */
.fc-band-cid .btn{min-height:44px;font-size:14px;padding:0 14px}

/* ===== 04/11 (João: fantasia de dono da cidade; nada descritivo, tudo se entende sozinho): número, imagem e uma palavra ===== */
#governo .gv-btn:not(:disabled) small,#governo .gv-btn2:not(:disabled) small{display:none}
#governo .gv-card>.gv-sub{display:none}
#lojas .lj-desc,#lojas .lj-fim,#lojas .lj-cont-s{display:none}
#lojas .lj-cont-t b{font-size:26px}
.fj-corpo .fj-dica{display:none}
.cp-hero2{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.cp-hero2 .cp-mor{font-size:44px;line-height:1}
.cp-hero2 b:not(.cp-mor){font-size:20px;margin-left:10px}
.fc-band-cid{margin:6px 0 2px}
#lojas .lj-hero{padding:14px}
.fj-corpo .gv-btn:not(:disabled) small{display:none}

/* ===== 04/11: compartilhar e pop do prefeito ===== */
.fca-comp{position:fixed;inset:0;z-index:90;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:10px;padding:calc(10px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom));background:rgba(24,30,42,.95);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);overscroll-behavior:contain}
.fca-comp-t{display:flex;justify-content:flex-start}
.fca-comp-p{min-height:0;min-width:0;display:flex;align-items:center;justify-content:center}
.fca-comp-im{display:block;flex:none;max-width:100%;max-height:100%;border:3.5px solid #fff;border-radius:18px;box-shadow:0 8px 0 rgba(0,0,0,.28);background:#cfe3c4;animation:compPop .4s cubic-bezier(.3,1.5,.5,1) both}
.fca-comp-im.esp{animation:compEsp 1s ease-in-out infinite alternate}
@keyframes compEsp{from{opacity:.45}to{opacity:.8}}
.fca-comp-b{display:grid;grid-template-columns:1fr;max-width:520px;width:100%;justify-self:center}
.fca-comp-b .btn{min-height:58px;font-size:20px;font-weight:900}
.fca-comp .pin-voltar{height:50px}
@keyframes compPop{from{transform:scale(.7) rotate(-3deg);opacity:0}to{transform:none;opacity:1}}
.fr-pop{animation:frPop .42s cubic-bezier(.3,1.7,.5,1)}
@keyframes frPop{0%{scale:.3}70%{scale:1.12}100%{scale:1}}
.fr-bm{position:absolute;left:50%;top:50%;width:9px;height:9px;pointer-events:none;animation:frBm .62s ease-out both}
@keyframes frBm{from{transform:rotate(var(--a)) translateY(0) scale(1);opacity:1}to{transform:rotate(var(--a)) translateY(-62px) scale(.3);opacity:0}}
@media (prefers-reduced-motion: reduce){.fr-pop,.fr-bm,.fca-comp img{animation:none}}

/* ===== 04/11 · abertura: a casa sobe com o carregamento, em cima da ilha, e a barra enche junto ===== */
#carrega{gap:22px;background:linear-gradient(#8fc9f2,#c9e6f5 58%,#e8f3e4);overflow:hidden}
.pronto #carrega:not(.fim){opacity:1;pointer-events:auto}
#carrega.fim{opacity:0;transition:opacity .42s ease-out .08s;pointer-events:none}
#carrega.fim #carrega-casa{animation:cb-pula .5s cubic-bezier(.3,1.6,.5,1) both}
#carrega-casa{position:relative;filter:drop-shadow(0 10px 0 rgba(30,36,48,.12))}
#carrega-casa i.cb{position:absolute;box-shadow:inset -3px -3px 0 rgba(30,36,48,.16),inset 3px 3px 0 rgba(255,255,255,.3);animation:cb-cai .26s cubic-bezier(.55,0,.9,.5) both;will-change:transform}
#carrega-casa i.cb.ok{animation:cb-enc .2s ease-out both}
#carrega-casa i.cb.solto{animation:cb-solta 1.6s linear both}
@keyframes cb-cai{from{transform:translateY(-62vh)}to{transform:none}}
@keyframes cb-enc{0%{transform:scale(1.16,.78) translateY(3px)}60%{transform:scale(.96,1.05)}100%{transform:none}}
@keyframes cb-solta{0%{transform:translateY(-62vh);opacity:1}15%{transform:none;opacity:1}18%{transform:scale(1.2,.75)}24%,70%{transform:none;opacity:1}100%{transform:translateY(120px);opacity:0}}
@keyframes cb-pula{0%{transform:none}35%{transform:translateY(-34px) scale(.94,1.08)}70%{transform:scale(1.5);}100%{transform:scale(3.2)}}
#carrega-barra{display:grid;grid-template-columns:repeat(16,1fr);gap:3px;width:min(72vw,300px);padding:5px;background:#1e2430;border-radius:8px}
#carrega-barra i{display:block;height:14px;background:#39414f;border-radius:2px}
#carrega-barra i.on{background:#ffd23f;animation:cb-enc .18s ease-out}

/* 04/11: a mensagem da cidade em cima do chat */
.vivo-bolha{align-self:flex-start;max-width:calc(100vw - 96px);margin-left:2px;margin-bottom:6px;padding:7px 13px 8px;border:3px solid var(--ink,#1e2430);border-radius:16px 16px 16px 4px;background:#fff;color:var(--ink,#1e2430);font:inherit;font-size:13.5px;font-weight:800;line-height:1.2;text-align:left;box-shadow:0 3px 0 rgba(30,36,48,.3);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;pointer-events:auto}
.vivo-bolha[hidden]{display:none}
.vivo-bolha b{color:#0f8a3c}

/* 04/11: acabamento para a conversa com o Chris */
@media (hover:none){#zmais,#zmenos{display:none!important}}
#cartao .cart.cidade,#cartao>.cart{max-height:58dvh}
.cp-hero2{flex-wrap:nowrap!important;align-items:baseline}
.cp-hero2 b:not(.cp-mor){font-size:20px!important;line-height:1;margin-left:12px}
.gv-card.chefe .gv-acoes{grid-template-columns:1fr 1fr}
.gv-card.chefe .gv-acoes>:not(.gv-btn){grid-column:1/-1}
.gv-card.chefe .gv-acoes>.gv-btn:last-child:nth-child(odd){grid-column:1/-1}
.gv-chip.vago{display:none}

.fca-bolha{top:auto;bottom:10px}
.fun-corpo.pin{display:flex;flex-direction:column;min-height:calc(100dvh - 74px)}
.fun-corpo.pin>:first-child{margin-top:auto;margin-bottom:auto}
/* 04/11: gerador de cidades na vitrine */
.fv-grade.fv-gerador{display:flex;flex-direction:column;gap:10px;padding:2px 14px calc(18px + env(safe-area-inset-bottom))}
.fg-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.fg-n{font-size:38px;line-height:1;font-weight:900;color:var(--ink,#1e2430)}
.fg-r{margin-left:6px;font-weight:800;color:#5b6577}
.fg-play{min-width:112px}
.fg-sl{width:100%;height:32px;accent-color:#ffc21a}
.fg-cv{width:100%;flex:none;height:min(58dvh,560px);border:3.5px solid var(--ink,#1e2430);border-radius:22px;background:#8fce6b;image-rendering:pixelated}
.fg-ms,.fg-leg,.fg-tr{display:flex;flex-wrap:wrap;gap:6px}
.fg-m,.fg-b,.fg-t{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border:3px solid var(--ink,#1e2430);border-radius:999px;background:#fff;color:var(--ink,#1e2430);font:inherit;font-weight:800;font-size:13px}
.fg-m{opacity:.45}.fg-m.on{opacity:1;background:#ffd23f}
.fg-b i{width:14px;height:14px;border-radius:4px;border:2px solid var(--ink,#1e2430)}
.fg-b.on,.fg-t.on{background:var(--ink,#1e2430);color:#ffd23f}
.fg-cv{height:auto;aspect-ratio:1/.72}
/* 04/11: a casa de outra pessoa */
#fun-perfil[hidden]{display:none}
.fpf{gap:12px}
.fpf-cena{position:relative;top:auto;height:min(50dvh,440px)}
.fpf-band{display:flex;align-items:center;justify-content:center;gap:12px}
.fpf-band canvas{width:150px;height:100px;border:3.5px solid var(--ink,#1e2430);border-radius:10px;image-rendering:pixelated;box-shadow:0 4px 0 rgba(30,36,48,.25)}
.fpf-id{display:flex;justify-content:center}
.fpf-onde{display:flex;flex-direction:column;align-items:center;gap:2px;border:0;background:none;padding:2px 10px;font:inherit;color:var(--ink,#1e2430);cursor:pointer}
.fpf-onde b{font-size:18px;font-weight:900}
.fpf-onde span{font-size:14px;font-weight:800;color:#5b6577}
.fpf-g{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:8px}
.fpf-t{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:124px;padding:8px 4px;background:#fff;border:3.5px solid var(--ink,#1e2430);border-radius:20px;box-shadow:0 4px 0 rgba(30,36,48,.2);text-align:center}
.fpf-t b{font-size:30px;line-height:1.05;font-weight:900;color:var(--ink,#1e2430)}
.fpf-t b.lg{font-size:21px}
.fpf-t span{font-size:13px;font-weight:800;color:#47505f}
.fpf-t i{font-size:11.5px;font-style:normal;font-weight:800;color:#7a8494}
.fpf-t.nv{background:linear-gradient(#fff8d8,#ffe89a)}
.fpf-t.nv svg{width:96px;height:96px;overflow:visible}
.fpf-t.fogo svg{width:34px;height:34px;filter:grayscale(1);opacity:.55}
.fpf-t.fogo.on svg{filter:none;opacity:1}
.fpf-pc{margin:0;text-align:center;font-size:14px;font-weight:800;color:#47505f}

/* ===== 04/11: zoom da bandeira ===== */
.fb-area{display:grid;gap:8px;min-width:0}
.fb-zoom{display:flex;gap:8px;justify-content:flex-end;align-items:center}
.fb-zb{min-width:48px;height:44px;padding:0 12px;border:3px solid var(--ink,#1e2430);border-radius:14px;background:#fff;color:var(--ink,#1e2430);font:inherit;font-weight:900;font-size:14px;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 3px 0 rgba(30,36,48,.28);cursor:pointer}
.fb-zb svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.fb-zb:disabled{opacity:.4;box-shadow:none;cursor:default}
.fb-zb:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 rgba(30,36,48,.3)}
.fb-ztudo{min-width:84px}

/* GERADO por docs/design/publicar-no-jogo.mjs a partir da folha de design do patch Postais. Não edite aqui. */
/* Patch "Postais do Brasil" · SÓ o CSS novo. Usa as variáveis do jogo (--ink, --y, --muted, --mudo, --card-sh, --area-*).
   Prefixos: pt- postais · cq- conquistas · sc- socorro · cg- cargo · rk- rankings · nv- novidades e explicações · mp27- mapa · em- emblemas.
   ATENÇÃO: o jogo já usa rk- (ranking de pontos: rk-pos, rk-seg, rk-vazio, rk-lista, rk-nm, rk-r, rk-pt, rk-sub...) e cg- (cg-tx, cg-ic, cg-fund).
   Nenhuma classe daqui repete um nome que já existe (conferido contra base/index.html e fonte/*.css em 09/11). Ao criar classe nova, confira de novo.
   Regras da casa: Nunito 900/800, borda em tinta de 3 a 3,5 px (2,5 nos miúdos), sombra de bloco, botão pílula, tracejado = vazio.
   Sem !important, sem animação em laço. As três animações que existem tocam uma vez e marcam um ganho. Celular primeiro (375 e 390 px). */

/* ---------- 0. um visual só, claro (regra 8). Em celular no modo escuro nada muda: campos, rolagem e fundo seguem claros. ---------- */
:root { color-scheme: light; color-scheme: only light; }

/* ---------- 1. pt- · o postal (objeto de correio: foto = bandeira, selo = ajudei, carimbo de data = visitei) ---------- */
.pt-postal { --rot: 0deg; position: relative; margin: 0; display: grid; background: #fffdf2; color: var(--ink, #1e2430); border: 3.5px solid var(--ink, #1e2430); border-radius: 14px; box-shadow: var(--card-sh, 0 5px 0 rgba(30, 36, 48, .22)); transform: rotate(var(--rot)); }
.pt-foto { grid-area: foto; aspect-ratio: 3 / 2; border: 3px solid var(--ink, #1e2430); border-radius: 6px; overflow: hidden; background: #fff; line-height: 0; }
.pt-band { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.pt-foto.pt-vazia { border: 3px dashed #9aa5b3; background: #f3efe0; }
.pt-franquia { grid-area: franquia; position: relative; min-width: 0; }
.pt-leg { grid-area: leg; display: grid; min-width: 0; align-content: start; }
.pt-nome { font-weight: 900; overflow-wrap: anywhere; }
.pt-onde { font-weight: 800; color: var(--mudo, #4d5a6c); }
.pt-carimbo { display: block; color: var(--ink, #1e2430); overflow: visible; font-family: inherit; }
/* grande (ao ganhar): 320 px de largura no máximo */
.pt-g { width: 100%; max-width: 320px; grid-template-columns: minmax(0, 1fr) 100px; grid-template-areas: "foto franquia" "leg franquia"; gap: 7px 10px; padding: 11px 11px 10px 12px; }
.pt-g .pt-nome { font-size: 23px; line-height: 1.05; }
.pt-g .pt-onde { font-size: 13px; line-height: 1.3; margin-top: 1px; }
.pt-g .pt-selo { position: absolute; top: 0; right: 0; width: 52px; height: auto; transform: rotate(3deg); }
.pt-g .pt-carimbo { position: absolute; left: 0; top: 52px; width: 112px; opacity: .88; transform: rotate(-9deg); transform-origin: 34% 50%; }
.pt-g .pt-carimbo-vazio, .pt-g .pt-selo-vazio { opacity: 1; }
.pt-linhas { position: absolute; left: 6px; right: 0; bottom: 3px; height: 21px; background: repeating-linear-gradient(to bottom, transparent 0 7px, #d6cfba 7px 9px, transparent 9px 10px); }
/* miniatura (álbum): o mesmo postal em pequeno. Foto à esquerda, selo (ajudei) e carimbo (visitei) à direita, nome INTEIRO embaixo (quebra em 2 linhas, nunca corta) */
.pt-p { width: 100%; grid-template-columns: minmax(0, 1fr) 22px; grid-template-areas: "foto franquia" "leg leg"; align-items: start; gap: 4px 4px; padding: 5px; border-width: 2.5px; border-radius: 9px; box-shadow: 0 3px 0 rgba(30, 36, 48, .22); }
.pt-p .pt-foto { border-width: 2px; border-radius: 4px; }
.pt-p .pt-foto.pt-vazia { border-width: 2px; }
.pt-p .pt-franquia { display: grid; justify-items: center; align-content: start; gap: 3px; padding-top: 1px; }
.pt-p .pt-selo { width: 16px; height: auto; transform: rotate(3deg); }
.pt-p .pt-carimbo { width: 22px; height: auto; transform: rotate(-9deg); }
.pt-p .pt-nome { font-size: 11.5px; line-height: 1.12; overflow-wrap: break-word; }
/* chegada do postal (aviso de ganho): o postal pousa e o carimbo bate. Uma vez. */
.pt-chega { animation: pt-chega .5s cubic-bezier(.2, 1.3, .4, 1) both; }
.pt-chega .pt-carimbo { animation: pt-bate .32s cubic-bezier(.2, 1.5, .4, 1) .5s both; }
@keyframes pt-chega { 0% { opacity: 0; transform: translateY(26px) rotate(calc(var(--rot) - 5deg)) scale(.94); } 100% { opacity: 1; transform: rotate(var(--rot)); } }
@keyframes pt-bate { 0% { opacity: 0; transform: rotate(-9deg) scale(1.5); } 100% { opacity: .88; transform: rotate(-9deg) scale(1); } }
/* bandeira pequena em lista (48×32, a mesma medida de .fj-rc) e a versão maior da linha que manda */
.pt-bandeira { display: block; flex: none; width: 48px; height: 32px; border: 2px solid var(--ink, #1e2430); border-radius: 3px; image-rendering: pixelated; background: #fff; }
.pt-bandeira.g { width: 72px; height: 48px; border-width: 3px; border-radius: 4px; }
/* marca "de fora": etiqueta de carimbo, usada na obra, no ranking da cidade e no socorro atendido. Caixa alta de propósito: é texto de carimbo. */
.pt-tag { display: inline-block; padding: 1px 6px 2px; border: 2px solid currentColor; border-radius: 4px; font-size: 10.5px; font-weight: 900; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-3deg); white-space: nowrap; }
/* faixa "de fora" dentro do cartão da obra (.gv-obra) */
.pt-fora { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 12px; padding-top: 10px; border-top: 2.5px dashed #c9d3de; }
.pt-fora-n { grid-row: span 2; font-size: 40px; line-height: .95; font-variant-numeric: tabular-nums; }
.pt-fora-t { margin: 0; font-size: 14px; line-height: 1.2; }
.pt-fora-o { margin: 0; font-size: 13px; line-height: 1.25; font-weight: 800; color: var(--muted, #5d6b7e); }
/* a barra de 10 blocos diz UMA coisa: o que ainda resta do teto do dia (cheio = resta). Bate com o número grande e leva o rótulo ao lado. */
.pt-fora-b { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 2px; font-size: 12px; font-weight: 800; color: var(--muted, #5d6b7e); white-space: nowrap; }
.pt-fora-m { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; height: 10px; }
.pt-fora-m i { border: 2px solid var(--ink, #1e2430); border-radius: 2px; background: #fff; }
.pt-fora-m i.on { background: #49d96f; }
.pt-fora.zerou .pt-fora-n { color: var(--muted, #5d6b7e); }
/* a mesma faixa dentro do cartão escuro da árvore de obras (.evo-cartao, tela que já é escura no jogo) */
.evo-cartao .pt-fora { border-top-color: #3b4f66; color: #e9eef5; }
.evo-cartao .pt-fora-o, .evo-cartao .pt-rumo, .evo-cartao .pt-fora-b { color: #9fb0c3; }
.evo-cartao .pt-rumo b { color: #fff; }
.evo-cartao .pt-fora-m i { border-color: #e9eef5; background: transparent; }
.evo-cartao .pt-fora-m i.on { background: #72dca0; }
.evo-cartao .pt-tag { color: #ffd23f; }
.evo-cartao .pt-carimbo { color: #e9eef5; }
/* carimbos da tramitação e placa no cartão escuro: são papel e placa, seguem claros. Só o respiro muda. */
.evo-cartao .cg-tram, .evo-cartao .rk-placa { margin-top: 2px; }
/* linha "rumo ao postal" no cartão da obra */
.pt-rumo { display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: center; gap: 8px; margin: 0; font-size: 13px; line-height: 1.25; font-weight: 800; color: var(--mudo, #4d5a6c); }
.pt-rumo svg { width: 14px; height: auto; }
.pt-rumo b { color: var(--ink, #1e2430); }
/* álbum no perfil */
.pt-album { display: grid; gap: 16px; }
.pt-al-topo { display: grid; grid-template-columns: minmax(0, 1fr) 58%; align-items: end; gap: 6px; padding: 14px 12px 12px 16px; background: #fff; border: 3.5px solid var(--ink, #1e2430); border-radius: 26px; box-shadow: var(--card-sh, 0 5px 0 rgba(30, 36, 48, .22)); }
.pt-al-conta { display: grid; align-content: end; padding-bottom: 4px; min-width: 0; }
.pt-al-conta b { font-size: 76px; line-height: .86; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pt-al-conta span { margin-top: 6px; font-size: 16px; line-height: 1.1; }
.pt-al-conta em { margin-top: 8px; font-style: normal; font-size: 12.5px; line-height: 1.3; font-weight: 800; color: var(--mudo, #4d5a6c); }
/* a contagem é também a legenda: selo + carimbo = postal · só carimbo = visitei */
.pt-al-leg { display: grid; gap: 5px; margin-top: 10px; }
.pt-al-leg span { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 12.5px; line-height: 1.1; font-weight: 800; color: var(--mudo, #4d5a6c); }
.pt-al-leg svg { flex: none; width: 13px; height: auto; } .pt-al-leg .pt-carimbo { width: 19px; margin-right: 2px; } .pt-al-leg .so { margin-left: 17px; }
.pt-al-falta { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 4px 14px; padding: 12px 14px 12px 12px; background: var(--y, #FFD23F); border: 3.5px solid var(--ink, #1e2430); border-radius: 22px; box-shadow: var(--card-sh, 0 5px 0 rgba(30, 36, 48, .22)); }
.pt-al-falta .pt-postal { grid-row: span 2; }
.pt-al-falta b { font-size: 18px; line-height: 1.1; align-self: end; }
.pt-al-falta .gv-btn { align-self: start; justify-self: start; padding: 0 20px 2px; }
/* cada estado começa na sua linha. Com 3 ou mais postais: título em cima e grade de 3. Com 1 ou 2: o título ocupa a primeira casa da grade (como legenda de página de álbum) e os postais vêm ao lado. */
.pt-al-ufs { display: grid; gap: 18px; }
.pt-al-uf { display: grid; gap: 9px; min-width: 0; }
.pt-al-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0; font-size: 18px; line-height: 1.1; }
.pt-al-h span { font-size: 12.5px; font-weight: 800; color: var(--mudo, #4d5a6c); white-space: nowrap; }
.pt-al-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 12px 10px; }
.pt-al-uf.lado { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 10px; }
.pt-al-uf.lado .pt-al-h { display: grid; gap: 4px; justify-content: start; padding-top: 6px; font-size: 16.5px; overflow-wrap: break-word; }
.pt-al-uf.lado .pt-al-h span { white-space: normal; }
.pt-al-uf.lado .pt-al-grade { grid-column: 2 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pt-al-vazio { display: grid; gap: 12px; justify-items: start; }
.pt-al-vazio p { margin: 0; font-size: 17px; line-height: 1.25; }
.pt-al-raro { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 2px 12px; padding: 10px 14px 10px 10px; background: var(--ink, #1e2430); color: #fff; border: 3.5px solid var(--ink, #1e2430); border-radius: 22px; box-shadow: 0 5px 0 rgba(30, 36, 48, .3); }
.pt-al-raro svg { grid-row: span 2; width: 84px; height: 84px; }
.pt-al-raro b { align-self: end; font-size: 20px; line-height: 1.1; color: var(--y, #FFD23F); }
.pt-al-raro span { align-self: start; font-size: 13.5px; line-height: 1.25; font-weight: 800; }
/* aviso de postal ganho: a faixa do jogo (.evo-faixa) no alto + o postal grande numa folha */
.pt-ganhou { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 14px; justify-items: start; padding: 26px 20px 18px; background: #fff9e8; border: 3.5px solid var(--ink, #1e2430); border-bottom: 0; border-radius: 26px 26px 0 0; box-shadow: 0 -5px 0 rgba(30, 36, 48, .25); }
.pt-ganhou .pt-postal { justify-self: center; margin: 2px 0 8px; }
.pt-ganhou-t { margin: 0; font-size: 17px; line-height: 1.25; color: var(--mudo, #4d5a6c); }
.pt-ganhou-t b { color: var(--ink, #1e2430); }
.pt-ganhou .btn { width: 100%; }
.pt-ganhou-m { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; }
.pt-ganhou-m.raro { grid-template-columns: 112px minmax(0, 1fr); }
.pt-ganhou-m.raro svg.pt-selo-brasil { width: 112px; height: 112px; }
.pt-ganhou-m b.gde { display: block; font-size: 26px; line-height: 1.05; }

/* ---------- 2. mp27- · mapa dos 27 estados em blocos (mapa27.js) ---------- */
.mp27 { display: block; width: 100%; height: auto; overflow: visible; }
.mp27-sombra { fill: rgba(30, 36, 48, .22); stroke: rgba(30, 36, 48, .22); stroke-width: .9; stroke-linejoin: round; }
.mp27-fora { fill: var(--ink, #1e2430); stroke: var(--ink, #1e2430); stroke-width: .9; stroke-linejoin: round; }
.mp27-uf { fill: #f3efe0; }
.mp27-uf.on { fill: var(--y, #FFD23F); }
.mp27-junta { fill: none; stroke: rgba(30, 36, 48, .12); stroke-width: .08; }
.mp27-aro { fill: none; stroke: var(--ink, #1e2430); stroke-width: .7; }
.mp27-divisa { fill: none; stroke: var(--ink, #1e2430); stroke-width: .26; stroke-linecap: round; }

/* ---------- 3. em- / cq- · emblemas e página de conquistas ---------- */
.em { display: block; flex: none; overflow: visible; font-family: inherit; }
.em-mini { display: inline-flex; flex: none; width: 16px; height: 16px; vertical-align: -3px; }
.em-mini svg { width: 16px; height: 16px; }
/* no balão amarelo da própria mensagem o ouro some: um disco branco por trás segura o contorno em tinta */
.avc-m.eu .em-mini { border-radius: 50%; background: #fff; box-shadow: 0 0 0 2.5px #fff; }
.cq-pag { display: grid; gap: 16px; }
/* o próximo a ganhar: manda na página */
.cq-prox { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 4px 14px; padding: 14px 16px 14px 12px; background: #fff; border: 3.5px solid var(--ink, #1e2430); border-radius: 26px; box-shadow: var(--card-sh, 0 5px 0 rgba(30, 36, 48, .22)); }
.cq-prox .em { grid-row: 1 / span 4; width: 104px; height: auto; }
.cq-rot { font-size: 13px; font-weight: 800; color: var(--muted, #5d6b7e); }
.cq-prox b { font-size: 26px; line-height: 1.02; }
.cq-prox .gv-barra { margin-top: 6px; }
.cq-prox .gv-sub b { font-size: inherit; color: var(--ink, #1e2430); }
.cq-prox .cq-premio b { font-size: inherit; }
.cq-premio { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 10px; border-top: 2.5px dashed #c9d3de; font-size: 14px; line-height: 1.25; }
/* a linha do bônus */
.cq-bonus { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 12px; padding: 12px 16px 14px; background: var(--ink, #1e2430); color: #fff; border: 3.5px solid var(--ink, #1e2430); border-radius: 22px; box-shadow: 0 5px 0 rgba(30, 36, 48, .3); }
.cq-bonus b { font-size: 38px; line-height: 1; color: var(--y, #FFD23F); font-variant-numeric: tabular-nums; }
.cq-bonus span { font-size: 14.5px; line-height: 1.2; }
.cq-teto { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; color: #c3cbd6; }
.cq-teto span { height: 10px; border: 2.5px solid #fff; border-radius: 999px; overflow: hidden; }
.cq-teto span i { display: block; height: 100%; background: var(--y, #FFD23F); }
/* as três trilhas: uma lista num cartão só (não três cartões) */
.cq-trilhas { display: grid; padding: 4px 14px; background: #fff; border: 3.5px solid var(--ink, #1e2430); border-radius: 26px; box-shadow: var(--card-sh, 0 5px 0 rgba(30, 36, 48, .22)); }
.cq-trilha { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 12px 0; }
.cq-trilha + .cq-trilha { border-top: 2.5px dashed #c9d3de; }
.cq-trilha > b { font-size: 18px; line-height: 1.1; }
.cq-trilha > i { font-style: normal; font-size: 13px; line-height: 1.25; font-weight: 800; color: var(--mudo, #4d5a6c); }
.cq-niveis { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: flex-end; gap: 2px; }
/* cada nível: o emblema e o numeral embaixo, em texto de 11,5 px (dentro do desenho pequeno ele ficaria com 5 px) */
.cq-nv { display: grid; justify-items: center; gap: 1px; }
.cq-nv .em { width: 48px; height: auto; }
.cq-nv b { font-size: 11.5px; line-height: 1; letter-spacing: .08em; color: #8793a3; }
.cq-nv.tem b { color: var(--ink, #1e2430); }
/* bônus ainda em zero: a linha aparece desde o começo e diz como ganhar */
.cq-bonus.zero b { color: #fff; }
/* selos que já existem: só nome, uma frase de progresso e a barra. Na página entram os 3 mais perto de ganhar; o resto abre na folha "todos os selos" */
.cq-h { margin: 6px 2px -6px; font-size: 18px; line-height: 1.1; }
.cq-selos { display: grid; gap: 6px; }
.cq-selo { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 5px 10px; padding: 9px 12px 10px; background: #fff; border: 2.5px solid var(--ink, #1e2430); border-radius: 14px; }
.cq-selo b { font-size: 15.5px; line-height: 1.15; }
.cq-selo i { font-style: normal; font-size: 12.5px; line-height: 1.2; font-weight: 800; color: var(--mudo, #4d5a6c); text-align: right; }
.cq-selo .gv-barra { grid-column: 1 / -1; height: 9px; border-width: 2.5px; }
.cq-selo.tem { background: #fff8d6; } .cq-selo.tem i { color: #1b7a3f; }
.cq-selo.raro b::after { content: " · raro"; font-size: 12.5px; font-weight: 800; color: #7a4a00; }
.cq-antigas { display: grid; gap: 6px; padding-top: 12px; border-top: 2.5px dashed #b9c3cf; }
.cq-antigas .cq-h { margin: 0 2px; font-size: 14px; font-weight: 800; color: var(--muted, #5d6b7e); }
.cq-antigas .cq-selo { background: #f3efe0; border-color: #9aa5b3; } .cq-antigas .cq-selo i { color: var(--mudo, #4d5a6c); }
/* ganho retroativo (dia do patch): vários emblemas de uma vez e o prêmio somado */
.cq-retro-ems { display: flex; align-items: flex-end; justify-content: flex-start; gap: 2px; margin-left: -6px; }
.cq-retro-n { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 0 10px; margin: 0; font-size: 15px; line-height: 1.25; }
.cq-retro-n b { font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
/* faixa de ganho com emblema: mesma .evo-faixa, o círculo dá lugar ao emblema médio */
.evo-f-ic.cq-f-ic { width: 50px; height: 50px; border: 0; background: none; border-radius: 0; }
.evo-f-ic.cq-f-ic svg { width: 50px; height: 50px; fill: initial; stroke: initial; stroke-width: initial; }

/* ---------- 4. sc- · socorro à cidade ---------- */
.sc-lista { display: grid; gap: 8px; }
.sc-lin { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; width: 100%; min-height: 56px; padding: 8px 12px 9px 8px; background: #fff; color: var(--ink, #1e2430); border: 3px solid var(--ink, #1e2430); border-radius: 16px; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sc-lin:active { transform: translateY(2px); }
.sc-lin:focus-visible { outline: 3px solid #1d6fd8; outline-offset: 2px; }
.sc-tx { display: grid; min-width: 0; }
.sc-tx b { font-size: 15.5px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-tx i { font-style: normal; font-size: 12.5px; line-height: 1.2; font-weight: 800; color: var(--mudo, #4d5a6c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-tempo { display: grid; justify-items: end; font-size: 15px; line-height: 1.1; white-space: nowrap; }
.sc-tempo i { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--mudo, #4d5a6c); }
.sc-lin .gv-barra { grid-column: 1 / -1; height: 9px; border-width: 2.5px; }
/* a que termina antes vem maior e amarela: uma manda na lista */
.sc-lin.sc-1 { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 14px 14px 12px; background: var(--y, #FFD23F); border-width: 3.5px; border-radius: 22px; box-shadow: var(--card-sh, 0 5px 0 rgba(30, 36, 48, .22)); cursor: default; }
.sc-1 .sc-tx b { font-size: 22px; white-space: normal; }
.sc-1 .sc-tx i { font-size: 13.5px; color: #4d3d00; white-space: normal; }
.sc-1 .sc-falta { grid-column: 1 / -1; margin: 0; font-size: 14px; line-height: 1.2; }
.sc-1 .sc-falta b { font-size: 24px; }
.sc-1 .sc-tempo { font-size: 19px; }
.sc-1 .sc-tempo i { color: #4d3d00; }
.sc-1 .gv-barra { height: 14px; border-width: 3px; background: #fff; }
.sc-1 .gv-btn, .sc-lin .gv-btn2 { grid-column: 1 / -1; }
.sc-lin .gv-btn2 { min-height: 44px; }
.sc-at { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; font-size: 12.5px; line-height: 1.2; font-weight: 800; color: #1b5a33; }
.sc-at .pt-tag { color: #1b7a3f; }
.sc-vazio { display: grid; gap: 4px; padding: 18px 16px; border: 3px dashed #9aa5b3; border-radius: 22px; background: rgba(255, 255, 255, .55); }
.sc-vazio b { font-size: 18px; line-height: 1.15; }
.sc-vazio span { font-size: 14px; line-height: 1.3; font-weight: 800; color: var(--mudo, #4d5a6c); }
.sc-pedido { display: grid; gap: 2px; padding: 10px 12px 11px; background: #e6fbe9; border: 2.5px solid var(--ink, #1e2430); border-radius: 14px; }
.sc-pedido b { font-size: 16px; line-height: 1.15; }
.sc-pedido span { font-size: 13px; line-height: 1.25; font-weight: 800; color: #1b5a33; }
.sc-meu { margin: 0; padding: 9px 12px 10px; background: #fff; border: 2.5px solid var(--ink, #1e2430); border-radius: 4px 14px 14px 14px; font-size: 14px; line-height: 1.25; }

/* ---------- 5. cg- · cargo que trabalha ---------- */
/* os emblemas de cargo do jogo (nivel-selo.js) brilham em laço; nas telas novas eles ficam parados: nada se mexe sem função */
.cg-em .ns-luz, .cg-em .ns-aura, .cg-em .ns-pisca, .cg-cv-ems .ns-luz, .cg-cv-ems .ns-aura, .cg-cv-ems .ns-pisca, .rk-ic .ns-luz, .rk-ic .ns-aura, .rk-ic .ns-pisca { animation: none; }
/* linha "meu cargo" (Casa e Governo) */
.cg-linha { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 8px 12px; padding: 12px 14px 14px 10px; background: #fff; border: 3.5px solid var(--ink, #1e2430); border-radius: 22px; box-shadow: var(--card-sh, 0 5px 0 rgba(30, 36, 48, .22)); }
.cg-em { width: 58px; height: 58px; }
.cg-em .ns-em, .cg-em svg { width: 58px; height: 58px; }
.cg-txt { display: grid; min-width: 0; }
.cg-txt b { font-size: 18px; line-height: 1.12; }
.cg-txt span { margin-top: 2px; font-size: 13.5px; line-height: 1.25; font-weight: 800; color: var(--mudo, #4d5a6c); }
.cg-linha .gv-btn, .cg-linha .gv-btn2, .cg-linha .gv-aviso, .cg-prazo, .cg-feito { grid-column: 1 / -1; }
.cg-prazo { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; line-height: 1.25; font-weight: 800; color: #7a4a00; }
.cg-dias { flex: none; display: inline-flex; gap: 3px; }
.cg-dias i { width: 11px; height: 11px; border: 2px solid var(--ink, #1e2430); border-radius: 2px; background: #ffb347; }
.cg-dias i.foi { background: #fff; }
.cg-feito { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; line-height: 1.25; color: #1b7a3f; }
.cg-linha.cg-sem { border-style: dashed; border-color: #7f8b9a; box-shadow: none; background: rgba(255, 255, 255, .7); }
.cg-vaga { width: 52px; height: 52px; justify-self: center; border: 3.5px dashed #7f8b9a; border-radius: 50%; background: #f3efe0; }
/* carimbos da tramitação (cartão da obra prioritária): quatro repartições, cada uma com o seu carimbo */
.cg-tram { color: var(--ink, #1e2430); display: grid; gap: 8px; padding: 10px 10px 11px; background: #fffdf2; border: 2.5px solid var(--ink, #1e2430); border-radius: 14px; }
.cg-tram-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 800; color: var(--muted, #5d6b7e); }
.cg-sts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.cg-st { display: grid; justify-items: center; gap: 3px; min-width: 0; }
.cg-st svg { width: 100%; max-width: 70px; height: auto; overflow: visible; font-family: inherit; color: #9aa5b3; transform: rotate(var(--rot, 0deg)); }
.cg-st span { font-size: 11.5px; line-height: 1.1; font-weight: 800; color: var(--muted, #5d6b7e); }
.cg-st.on span { color: var(--ink, #1e2430); font-weight: 900; }
.cg-st-camara { --rot: -5deg; } .cg-st-prefeito { --rot: 3deg; } .cg-st-congresso { --rot: -2deg; } .cg-st-presidente { --rot: 6deg; }
.cg-st-camara.on svg { color: #1f7a2c; } .cg-st-prefeito.on svg { color: #0a6c7a; } .cg-st-congresso.on svg { color: #4f22a0; } .cg-st-presidente.on svg { color: #b3261e; }
.cg-soma { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; margin: 0; padding-top: 8px; border-top: 2.5px dashed #d6cfba; font-size: 13px; font-weight: 800; color: var(--mudo, #4d5a6c); }
.cg-soma b { font-size: 21px; line-height: 1.1; color: var(--ink, #1e2430); }
.cg-bate svg { animation: cg-bate .3s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes cg-bate { 0% { opacity: 0; transform: rotate(var(--rot, 0deg)) scale(1.5); } 100% { opacity: 1; transform: rotate(var(--rot, 0deg)) scale(1); } }
/* convite de cargo: tela de escolha */
.cg-convite { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 18px; background: #fff9e8; }
.cg-cv-ems { position: relative; height: 128px; margin: 10px 0 2px; }
.cg-cv-ems .cg-novo { position: absolute; left: -6px; top: 0; width: 128px; height: 128px; }
.cg-cv-ems .cg-deixa { position: absolute; left: 108px; top: 64px; width: 60px; height: 60px; opacity: .5; }
.cg-cv-ems svg { width: 100%; height: 100%; }
.cg-cv-t { margin: 0; font-size: 29px; line-height: 1.05; }
.cg-cv-p { margin: 0; font-size: 18px; line-height: 1.2; font-weight: 800; color: var(--mudo, #4d5a6c); }
.cg-cv-ops { margin-top: auto; display: grid; gap: 14px; }
.cg-cv-op { display: grid; gap: 6px; }
.cg-cv-op .btn { width: 100%; height: 54px; }
.cg-cv-op p { margin: 0 6px; font-size: 13.5px; line-height: 1.25; font-weight: 800; color: var(--mudo, #4d5a6c); }
.cg-cv-prazo { align-self: flex-start; }
/* cargo vago */
.gv-card.cg-vago { border-style: dashed; border-color: #7f8b9a; background: #fff; box-shadow: none; }
.cg-vago > .gv-top > .gv-av, .gv-pes.cg-vago-l .gv-av { border-style: dashed; border-color: #7f8b9a; background: #f3efe0; color: transparent; }
.gv-pes.cg-vago-l { border-style: dashed; border-color: #7f8b9a; }
.cg-vago-t { margin: 0; font-size: 22px; line-height: 1.08; }
/* sanção e "obras do Brasil" */
.cg-brasil { display: grid; gap: 10px; padding: 12px 14px 14px; background: var(--ink, #1e2430); color: #fff; border: 3.5px solid var(--ink, #1e2430); border-radius: 22px; box-shadow: 0 5px 0 rgba(30, 36, 48, .3); }
.cg-brasil-t { margin: 0; font-size: 13px; color: var(--y, #FFD23F); }
.cg-ob { display: grid; grid-template-columns: minmax(0, 1fr) 64px; align-items: center; gap: 2px 10px; width: 100%; min-height: 56px; padding: 9px 8px 10px 12px; background: #fff; color: var(--ink, #1e2430); border: 0; border-radius: 14px; font: inherit; text-align: left; cursor: pointer; }
.cg-ob b { font-size: 17px; line-height: 1.12; }
.cg-ob i { font-style: normal; font-size: 12.5px; line-height: 1.2; font-weight: 800; color: var(--mudo, #4d5a6c); }
.cg-ob svg { grid-column: 2; grid-row: 1 / span 3; width: 64px; height: auto; color: #b3261e; transform: rotate(8deg); overflow: visible; font-family: inherit; }
.cg-ob .gv-barra { height: 9px; border-width: 2.5px; margin-top: 4px; }

/* ---------- 6. rk- · quem faz o Brasil andar ---------- */
.rk-pag { display: grid; gap: 12px; }
.rk-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 2px -2px; }
.rk-cab > span { display: grid; min-width: 0; }
.rk-cab b { font-size: 19px; line-height: 1.1; }
.rk-cab i { font-style: normal; font-size: 12.5px; line-height: 1.25; font-weight: 800; color: var(--mudo, #4d5a6c); }
.rk-cab .gv-btn2 { min-height: 44px; padding: 0 14px 2px; font-size: 13.5px; }
.rk-lin { display: grid; grid-template-columns: 24px auto minmax(0, 1fr) auto; align-items: center; gap: 4px 9px; width: 100%; min-height: 56px; padding: 7px 12px 8px 8px; background: #fff; color: var(--ink, #1e2430); border: 3px solid var(--ink, #1e2430); border-radius: 16px; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rk-lin:focus-visible { outline: 3px solid #1d6fd8; outline-offset: 2px; }
.rk-ord { font-size: 17px; text-align: center; font-variant-numeric: tabular-nums; }
.rk-ic { width: 38px; height: 38px; display: grid; place-items: center; }
.rk-ic svg { width: 38px; height: 38px; }
.rk-ic .ns-mini .ns-em { width: 36px; height: 36px; }
.rk-tx { display: grid; min-width: 0; }
.rk-tx b { font-size: 15px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-tx i { font-style: normal; font-size: 12.5px; line-height: 1.2; font-weight: 800; color: var(--mudo, #4d5a6c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-n { display: grid; justify-items: end; font-size: 19px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rk-n i { margin-top: 3px; max-width: 84px; font-style: normal; font-size: 11px; line-height: 1.15; font-weight: 800; color: var(--mudo, #4d5a6c); text-align: right; white-space: normal; }
.rk-n i.sem { color: var(--muted, #5d6b7e); }
.rk-fez { grid-column: 2 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 12.5px; line-height: 1.2; font-weight: 800; color: var(--mudo, #4d5a6c); }
.rk-dias { flex: none; display: inline-flex; gap: 2px; }
.rk-dias i { width: 9px; height: 9px; border: 1.5px solid var(--ink, #1e2430); border-radius: 2px; background: #fff; }
.rk-dias i.on { background: #49d96f; }
/* o primeiro manda */
.rk-lin.rk-1 { grid-template-columns: 24px auto minmax(0, 1fr) auto; padding: 12px 14px 12px 10px; background: var(--y, #FFD23F); border-width: 3.5px; border-radius: 22px; box-shadow: var(--card-sh, 0 5px 0 rgba(30, 36, 48, .22)); }
.rk-1 .rk-ord { font-size: 24px; }
.rk-1 .rk-ic, .rk-1 .rk-ic svg { width: 52px; height: 52px; }
.rk-1 .rk-ic .ns-mini .ns-em { width: 48px; height: 48px; }
.rk-1 .rk-tx b { font-size: 19px; }
.rk-1 .rk-tx i, .rk-1 .rk-fez, .rk-1 .rk-n i { color: #4d3d00; }
.rk-1 .rk-n { font-size: 30px; }
.rk-1 .rk-fez { grid-column: 1 / -1; padding-top: 8px; border-top: 2.5px dashed rgba(30, 36, 48, .35); font-size: 13px; }
.rk-lin .pt-tag { justify-self: start; margin-top: 2px; color: #7a4a00; }
/* filtros: o que (seletor escuro do jogo, com alvo de 44 px) e uma linha só de campos com seta (onde, cargo). Campo é retângulo, não pílula: lê como escolha, não como enfeite. */
.rk-tipo button { min-height: 44px; }
.rk-onde .fj-s { height: 44px; }
.rk-filtros { display: flex; gap: 8px; }
.rk-sel { flex: 1 1 0; min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 1px 14px; background: #fff; color: var(--ink, #1e2430); border: 3px solid var(--ink, #1e2430); border-radius: 14px; font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; box-shadow: 0 3px 0 rgba(30, 36, 48, .2); -webkit-tap-highlight-color: transparent; }
.rk-sel:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(30, 36, 48, .2); }
.rk-sel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-sel svg { flex: none; width: 14px; height: 14px; fill: none; stroke: var(--ink, #1e2430); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
/* destaque por área (cidades): uma linha por área, bloco na cor da área */
.rk-areas { display: grid; gap: 0; padding: 4px 14px; background: #fff; border: 3px solid var(--ink, #1e2430); border-radius: 18px; }
.rk-area { display: grid; grid-template-columns: 16px 104px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; }
.rk-area + .rk-area { border-top: 2.5px dashed #c9d3de; }
.rk-area i { width: 16px; height: 16px; border: 2.5px solid var(--ink, #1e2430); border-radius: 3px; background: var(--c, #FFD23F); }
.rk-area span { font-weight: 800; color: var(--mudo, #4d5a6c); }
.rk-area b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-area em { font-style: normal; font-variant-numeric: tabular-nums; }
/* "você" fixo no pé (no jogo: position: sticky; bottom: var(--tabb)) */
.rk-voce { position: sticky; bottom: 0; z-index: 2; margin: 0 -16px; padding: 10px 16px 12px; background: #fff; border-top: 3.5px solid var(--ink, #1e2430); box-shadow: 0 -5px 0 rgba(30, 36, 48, .1); }
.rk-voce .rk-lin { background: #fff8d6; cursor: default; }
.rk-nada { display: grid; gap: 4px; padding: 20px 16px; border: 3px dashed #9aa5b3; border-radius: 22px; background: rgba(255, 255, 255, .55); }
.rk-nada b { font-size: 19px; line-height: 1.15; }
.rk-nada span { font-size: 14px; line-height: 1.3; font-weight: 800; color: var(--mudo, #4d5a6c); }
/* nome na obra pronta: a placa de inauguração */
.rk-placa { position: relative; color: var(--ink, #1e2430); display: grid; gap: 1px; justify-items: center; padding: 11px 26px 12px; background: #f1e3c6; border: 3px solid var(--ink, #1e2430); border-radius: 8px; box-shadow: 0 3px 0 rgba(30, 36, 48, .3); text-align: center; }
.rk-placa::before, .rk-placa::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border: 2px solid var(--ink, #1e2430); border-radius: 50%; background: #c9a227; }
.rk-placa::before { left: 8px; } .rk-placa::after { right: 8px; }
.rk-placa span { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #5a3a22; } /* caixa alta de propósito: inscrição de placa */
/* obra pronta: a barra cheia não leva o risco escuro no fim */
.gv-obra.pronta .gv-barra u { border-right-width: 0; }
.rk-placa b { font-size: 17px; line-height: 1.15; overflow-wrap: anywhere; }

/* ---------- 7. nv- · novidades do patch e linhas de explicação ---------- */
/* folha de baixo que abraça o conteúdo (mesmo desenho de .evo-folha): novidades, escolha de filtro, todos os selos, ganho retroativo. Sem altura fixa: não sobra vazio. */
.nv-folha, .nv { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - 24px); overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 12px; align-content: start; padding: 16px 18px 18px; background: #fff9e8; color: var(--ink, #1e2430); border: 3.5px solid var(--ink, #1e2430); border-bottom: 0; border-radius: 26px 26px 0 0; box-shadow: 0 -5px 0 rgba(30, 36, 48, .25); }
.nv-folha > .btn, .nv > .btn { width: 100%; }
.nv-folha-t { margin: 0; font-size: 22px; line-height: 1.1; }
.nv-folha .gv-op { min-height: 46px; }
.nv-passo { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 800; color: var(--mudo, #4d5a6c); }
.nv-passo span { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; height: 8px; }
.nv-passo span i { border: 2px solid var(--ink, #1e2430); border-radius: 2px; background: #fff; }
.nv-passo span i.on { background: var(--ink, #1e2430); }
.nv-t { margin: 0; font-size: 28px; line-height: 1.04; }
.nv-p { margin: -6px 0 0; font-size: 16.5px; line-height: 1.28; }
.nv-credito { margin: -4px 0 0; font-size: 12.5px; line-height: 1.2; font-weight: 800; color: var(--mudo, #4d5a6c); }
/* o palco de cada tela é a peça de verdade, em uso. Nada ali é clicável na tela de novidades. */
.nv-obj { display: grid; gap: 8px; pointer-events: none; }
.nv-obj.postal { justify-items: center; padding: 6px 0 4px; }
.nv-lista { list-style: none; margin: 0; padding: 0; display: grid; }
.nv-lista li { padding: 11px 2px 12px; font-size: 17px; line-height: 1.2; }
.nv-lista li + li { border-top: 2.5px dashed #d6cfba; }
/* pé de botões que nunca fica atrás da barra de abas (resultado da rodada: "Voltar" e "Fechar").
   No jogo: o painel termina em bottom: var(--tabb) (como #jogar já faz) e o pé gruda no fim da área visível. */
.nv-pe { position: sticky; bottom: 0; z-index: 2; margin: 14px 0 0; padding: 10px 16px 12px; background: linear-gradient(rgba(207, 227, 196, 0), #cfe3c4 30%); }
/* explicação que nasce no primeiro toque (E2): balão preso ao que foi tocado */
.nv-dica { position: relative; margin: 0; padding: 9px 13px 10px; background: var(--ink, #1e2430); color: #fff; border-radius: 14px; font-size: 14.5px; line-height: 1.25; max-width: 290px; }
.nv-dica::before { content: ""; position: absolute; left: 22px; bottom: -8px; width: 16px; height: 16px; background: var(--ink, #1e2430); transform: rotate(45deg); border-radius: 3px; }
.nv-dica b { color: var(--y, #FFD23F); }
/* linha de explicação dentro de cartão claro (E1, E4, E6, E8) */
.nv-linha { margin: 0; font-size: 13.5px; line-height: 1.3; font-weight: 800; color: var(--mudo, #4d5a6c); }
.nv-linha b { color: var(--ink, #1e2430); font-weight: 900; }
/* "ponha o jogo na tela inicial" (E5) */
.nv-app { display: grid; gap: 10px; padding: 14px; background: #fff; border: 3.5px solid var(--ink, #1e2430); border-radius: 22px; box-shadow: var(--card-sh, 0 5px 0 rgba(30, 36, 48, .22)); }
.nv-app-t { margin: 0; font-size: 20px; line-height: 1.1; }
.nv-passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: p; }
.nv-passos li { counter-increment: p; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 10px; font-size: 15px; line-height: 1.2; }
.nv-passos li::before { content: counter(p); width: 28px; height: 28px; display: grid; place-items: center; border: 3px solid var(--ink, #1e2430); border-radius: 50%; background: var(--y, #FFD23F); font-size: 14px; }
.nv-passos svg { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: var(--ink, #1e2430); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 380px) { .pt-al-conta b { font-size: 70px; } .cg-cv-t { font-size: 27px; } .nv-t { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .pt-chega, .pt-chega .pt-carimbo, .cg-bate svg { animation: none; } .sc-lin:active, .rk-sel:active { transform: none; } }

/* Patch Postais · peça 1: só o que os componentes do patch (fun-p0-patch.css) não cobrem: a folha do álbum, o véu dos avisos, a miniatura tocável, o resumo e a carcaça do bloco "de fora". */
#postais { bottom: var(--tabb); }
#postais .el-corpo { padding-top: 4px; }
.fp-nada { margin: 0; padding: 18px 4px; font-size: 15px; font-weight: 800; color: var(--mudo, #4d5a6c); }
.fp-pm { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 10px; }
.fp-pm:active { transform: translateY(2px); }
.fp-pm:focus-visible { outline: 3px solid var(--ink, #1e2430); outline-offset: 3px; }
.fp-mais { justify-self: start; margin-top: 2px; }
.pt-al-uf.lado .fp-mais { grid-column: 2 / -1; }
.fp-veu { position: fixed; inset: 0; z-index: 128; background: rgba(30, 36, 48, .42); overflow: hidden; }
.fp-veu .pt-ganhou { max-width: 560px; margin: 0 auto; max-height: 100dvh; overflow-y: auto; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.fp-fora { display: grid; gap: 10px; min-width: 0; }
.fp-fora[hidden], .fp-host[hidden] { display: none; }
.fp-host { display: contents; }
.fp-fora > .gv-btn, .fp-fora > .gv-btn2 { width: 100%; }
.fp-fora .gv-aviso { margin: 0; }
.fp-resumo { display: grid; grid-template-columns: minmax(0, 1fr) 40%; grid-template-areas: "t m" "c m"; align-items: end; gap: 2px 10px; width: 100%; min-height: 72px; padding: 10px 12px 10px 14px; border: 3px solid var(--ink, #1e2430); border-radius: 20px; background: #fff; box-shadow: var(--card-sh, 0 5px 0 rgba(30, 36, 48, .22)); font: inherit; color: var(--ink, #1e2430); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fp-resumo:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(30, 36, 48, .22); }
.fp-resumo:focus-visible { outline: 3px solid var(--ink, #1e2430); outline-offset: 2px; }
.fp-res-t { grid-area: t; align-self: start; font-size: 13px; font-weight: 900; color: var(--mudo, #4d5a6c); }
.fp-res-c { grid-area: c; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.fp-res-c b { font-size: 34px; line-height: .9; font-variant-numeric: tabular-nums; }
.fp-res-c span { font-size: 14px; font-weight: 900; line-height: 1.1; }
.fp-res-m { grid-area: m; align-self: center; min-width: 0; }
@media (prefers-reduced-motion: reduce) { .fp-pm:active, .fp-resumo:active { transform: none; } }
/* faixa de ganho com nome longo de cidade: quebra em vez de cortar com reticências */
#fpFaixa .evo-f-tx b { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
#fpFaixa .evo-f-tx em { white-space: normal; overflow: visible; text-overflow: clip; }

/* patch Postais · peça 2 (socorro): só o que NÃO é componente da folha de design: encaixe da folha e quebra de nomes longos.
   Os componentes sc-, rk-, gv-, pt-, cg- vêm de fun-p0-patch.css e governo.css. Claro e escuro iguais (sem tema). */
#socorro { bottom: var(--tabb); } /* a folha termina em cima da barra de baixo, como o #governo */
#socorro .el-corpo.sc-pag { display: grid; align-content: start; gap: 12px; }
#socorro .sc-esp { text-align: center; padding: 24px 0; }
#socorro .gv-btn2, .sc-resumo .gv-btn2, .sc-pedir .gv-btn2 { min-height: 44px; }
.sc-resumo[hidden], .sc-pedir[hidden] { display: none; }
.sc-resumo { display: grid; gap: 10px; }
.sc-pedir { display: grid; gap: 10px; }
.sc-pedir .gv-acoes { display: grid; gap: 8px; }
/* o nome da cidade nunca é cortado: quebra em vez de reticências */
.sc-lin .sc-tx b, .sc-lin .sc-tx i { white-space: normal; overflow-wrap: anywhere; }
.sc-lin { -webkit-appearance: none; appearance: none; }

/* patch Postais · peça 3 (cargo que trabalha): só o que NÃO é componente da folha de design: a camada que segura a folha por cima do mapa e três ajustes de encaixe.
   Os componentes (cg-linha, cg-tram, cg-convite, cg-vago, cg-brasil, nv-folha) vêm de fun-p0-patch.css. Claro e escuro iguais (sem tema). */
.cg-sobre { position: fixed; inset: 0; z-index: 80; }
.cg-sobre-fundo { position: absolute; inset: 0; background: rgba(30, 36, 48, .42); }
.cg-sobre .cg-convite { overflow-y: auto; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.cg-sobre .nv-folha { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.cg-sobre .cg-fecha { z-index: 3; width: 44px; height: 44px; }
.cg-chip-e { justify-self: start; }
.cg-cv-ems-p { height: 104px; margin: 0; }
.cg-cv-ems-p .cg-novo { width: 104px; height: 104px; left: 0; }
.cg-linha .cg-outro { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.25; font-weight: 800; color: var(--mudo, #4d5a6c); }
.cg-linha-host[hidden], .cg-vago-host[hidden], .cg-acao[hidden], .cg-brasil[hidden] { display: none; }
.cg-brasil .gv-sub { margin: 0; font-size: 15px; color: #fff; }
.cg-acao { display: grid; gap: 8px; }
.cg-feita { display: grid; gap: 8px; }
.cg-erro { display: grid; gap: 8px; margin: 0; }
.cg-teste-corpo { display: grid; gap: 12px; }

/* peça 4 · conquistas: só o que não é componente da folha (a camada da folha do retroativo, o bloco-resumo da Minha Casa e o marcador do chat). Os cq-, nv- e em- vêm de fun-p0-patch.css. */
.cq-ov { position: fixed; inset: 0; z-index: 140; }
.cq-ov-escuro { position: absolute; inset: 0; background: rgba(30, 36, 48, .42); }
.cq-retro-ems.mais { flex-wrap: wrap; row-gap: 6px; }
#conquistas { bottom: var(--tabb); z-index: 15; } /* termina acima da barra de abas, como #governo e #rankings */
#conquistas .el-corpo.cq-pag { display: grid; align-content: start; gap: 16px; }
#conquistas .el-corpo.cq-todos { gap: 14px; }
#conquistas .cq-todos .cq-h-g { margin: 2px 2px -6px; }
#conquistas .cq-esp { text-align: center; padding: 24px 0; }
#conquistas .gv-btn2 { min-height: 48px; }
.cq-em-pend[hidden] { display: none; }
.cq-resumo { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 16px 10px 12px; text-align: left; font: inherit; color: var(--ink, #1e2430); background: #fff; border: 3.5px solid var(--ink, #1e2430); border-radius: 22px; box-shadow: var(--card-sh, 0 5px 0 rgba(30, 36, 48, .22)); cursor: pointer; }
.cq-resumo[hidden] { display: none; }
.cq-resumo-ic { display: grid; place-items: center; width: 46px; height: 46px; }
.cq-resumo-tx { display: grid; gap: 1px; min-width: 0; }
.cq-resumo-tx b { font-size: 18px; line-height: 1.1; }
.cq-resumo-tx em { font-style: normal; font-size: 13px; font-weight: 800; color: var(--mudo, #4d5a6c); }
.cq-resumo-b { font-size: 26px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; }
.cq-resumo:active { transform: translateY(2px); box-shadow: 0 3px 0 rgba(30, 36, 48, .22); }
@media (prefers-reduced-motion: reduce) { .cq-resumo:active { transform: none; } }

/* patch Postais · peça 5 (rankings): só o que NÃO é componente da folha de design: a camada da folha de escolha e ajustes de encaixe.
   Os componentes rk-, nv-, gv-, pt-, cq-, sc- vêm de fun-p0-patch.css e governo.css. Claro e escuro iguais (sem tema). */
.rk-sobre { position: fixed; inset: 0; z-index: 160; }
.rk-sobre-fundo { position: absolute; inset: 0; background: rgba(30, 36, 48, .42); }
.rk-sobre .nv-folha { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
#rankings { bottom: var(--tabb); z-index: 15; } /* termina acima da barra, como #governo; fica por cima dos outros painéis (.el = 14), abaixo das folhas */
#rankings .rk-tipo button { min-height: 44px; }
#rankings .el-corpo.rk-pag { display: grid; align-content: start; gap: 12px; }
#rankings .rk-esp { text-align: center; padding: 24px 0; }
#rankings .gv-btn2 { min-height: 44px; }
#rankings .rk-mais { justify-self: center; min-width: 160px; }
.rk-quadro[hidden], .rk-resumo[hidden] { display: none; }
.rk-quadro, .rk-resumo { display: grid; gap: 10px; }
.rk-quadro .cq-h { margin-bottom: 0; }
/* o @ nunca é cortado: quebra em vez de reticências */
.rk-pag .rk-tx b, .rk-quadro .rk-tx b, .rk-resumo .rk-tx b { white-space: normal; overflow-wrap: anywhere; }
/* 1º colocado: o @ de ~15 letras cabe numa linha a 375 px (letra menor em vez de quebrar no meio da palavra) */
.rk-pag .rk-1 .rk-tx b, .rk-quadro .rk-1 .rk-tx b, .rk-resumo .rk-1 .rk-tx b { font-size: min(19px, 4.3vw); }
.rk-lin .rk-tx .pt-tag { max-width: 100%; white-space: normal; }
.rk-placa-escura { color: var(--ink, #1e2430); }

/* peça 6 · novidades: só o que não é componente da folha (a camada por cima do mapa e o X). Os nv-, cq-, cg-, sc- e rk- vêm de fun-p0-patch.css. */
.nv-ov { position: fixed; inset: 0; z-index: 140; }
.nv-ov-escuro { position: absolute; inset: 0; background: rgba(30, 36, 48, .42); }
.nv-ov .nv-folha { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.nv-ov .nv-passo { margin-top: -6px; }
.nv-x { flex: none; width: 44px; height: 44px; margin: -8px -10px -8px 0; display: grid; place-items: center; padding: 0; background: none; border: 0; border-radius: 12px; cursor: pointer; color: inherit; }
.nv-x:focus-visible { outline: 3px solid #1d6fd8; outline-offset: -2px; }
.nv-passo-t { flex: 1; }
.nv-lista-todos { max-height: none; }
.nv-botao { min-height: 44px; min-width: 44px; }
.nv-ov .nv-lista li { padding: 8px 2px 9px; font-size: 16px; }
/* 17/11 (vitrine): as 8 missões novas, 2 por frente, com o bloco da cor da frente */
.nv-mis { gap: 0; }
.nv-mis-l { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 0 9px; font-size: 15px; line-height: 1.15; }
.nv-mis-l + .nv-mis-l { border-top: 2.5px dashed #d6cfba; }
.nv-mis-f { display: flex; align-items: center; gap: 7px; font-weight: 900; }
.nv-mis-f::before { content: ""; flex: none; width: 13px; height: 13px; background: var(--ac); border: 2.5px solid var(--ink, #1e2430); border-radius: 2px; box-shadow: inset 0 -3px 0 rgba(30, 36, 48, .22); }
.nv-mis-n { font-weight: 800; }
@media (max-width: 380px) { .nv-mis-l { grid-template-columns: 86px minmax(0, 1fr) minmax(0, 1fr); font-size: 14px; } }

/* 17/11 (vitrine): o passo que aponta um lugar da tela. A folha sobe para o alto; o furo em volta do alvo escurece o resto; a seta em blocos aponta */
.nv-ov.apontar .nv-ov-escuro { background: transparent; }
.nv-ov.apontar .nv-folha.nv-alto { z-index: 2; top: calc(env(safe-area-inset-top, 0px) + 10px); bottom: auto; left: 10px; right: 10px; max-width: 460px; margin: 0 auto; border-bottom: 3.5px solid var(--ink, #1e2430); border-radius: 22px; box-shadow: 0 6px 0 rgba(30, 36, 48, .3); padding-bottom: 16px; }
.nv-furo { position: absolute; z-index: 1; margin: 0; padding: 0; box-sizing: border-box; background: transparent; border: 4px solid #FFD23F; border-radius: 24px; box-shadow: 0 0 0 4px var(--ink, #1e2430), 0 0 0 9999px rgba(30, 36, 48, .6); cursor: pointer; -webkit-tap-highlight-color: transparent; animation: nvFuro 1.4s steps(2, end) infinite; }
.nv-furo:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes nvFuro { 50% { border-color: #fff; } }
.nv-seta { position: absolute; z-index: 1; width: 36px; height: 44px; pointer-events: none; filter: drop-shadow(0 3px 0 rgba(30, 36, 48, .5)); animation: nvSeta .9s steps(2, end) infinite; }
.nv-seta svg { display: block; }
@keyframes nvSeta { 50% { transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) { .nv-furo, .nv-seta { animation: none; } }

/* FESTA DA CIDADE · 17/11: a festa cresce (níveis 1 a 5) e os cartões de apoio. Referência: out/festa-design-16nov (telas 1, 2 e 3), levada adiante.
   Noite de festa em blocos: céu azul-escuro em pixel, amarelo do jogo, contorno escuro, placar e fogos em pixel, a mesma fonte do jogo (herdada).
   Sem emoji, sem texto sublinhado, sem pílula, botão com cara de botão, alvo de toque de 44 px ou mais. Claro e escuro iguais (é noite de festa). */
.ff-bloco, .ff-faixa, .ff-ganhou, #festa { --ff-ink: #1e2430; --ff-y: #FFD23F; --ff-y2: #b88f00; --ff-n0: #0d1526; --ff-n1: #16264a; --ff-n2: #22406e; --ff-mudo: #a9bcd6; --ff-rosa: #ff5d8f; --ff-verde: #3ecf6e; }
.ff-bloco[hidden], .ff-faixa[hidden] { display: none; }

/* ---------- pixel ---------- */
.ff-placar, .ff-ceu, .ff-bandeirinhas, .ff-med-fogo { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.ff-placar { width: 100%; height: auto; }
.ff-ceu { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.ff-in { position: relative; z-index: 1; display: grid; gap: 10px; min-width: 0; }
.ff-rel { width: 96px; max-width: 100%; }
.ff-bandeirinhas { width: 780px; height: 36px; max-width: none; }

/* ---------- texto comum ---------- */
.ff-sobre { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--ff-y); text-shadow: 0 2px 0 var(--ff-ink); }
.ff-led { display: inline-block; width: 10px; height: 10px; flex: none; background: #ff5d5d; border: 2px solid var(--ff-ink); box-shadow: 0 0 0 2px #fff3, 0 0 9px 2px rgba(255, 93, 93, .85); animation: ffLed 1.2s steps(2, end) infinite; }
@keyframes ffLed { 50% { background: #ffb3b3; } }
.ff-tit { margin: 0; font-size: 23px; line-height: 1.08; font-weight: 900; color: #fff; overflow-wrap: anywhere; text-shadow: -2px 0 0 var(--ff-ink), 2px 0 0 var(--ff-ink), 0 -2px 0 var(--ff-ink), 0 3px 0 var(--ff-ink); }
.ff-sub { margin: 0; font-size: 13.5px; line-height: 1.3; font-weight: 800; color: #dce7f7; text-shadow: 0 2px 0 var(--ff-ink); }
.ff-n { color: var(--ff-y); font-size: 13px; font-weight: 900; white-space: nowrap; }
.ff-quem { margin: 0; font-size: 14px; line-height: 1.3; font-weight: 900; color: #fff; text-shadow: 0 2px 0 var(--ff-ink); overflow-wrap: anywhere; }
.ff-voce { color: var(--ff-y); }

/* ---------- botão: sempre com cara de botão ---------- */
.ff-btn { display: block; width: 100%; min-height: 54px; padding: 0 16px 3px; border: 4px solid var(--ff-ink); border-radius: 16px; background: var(--ff-y); color: var(--ff-ink); font: inherit; font-size: 19px; font-weight: 900; text-align: center; cursor: pointer; box-shadow: 0 5px 0 var(--ff-ink); -webkit-tap-highlight-color: transparent; -webkit-appearance: none; appearance: none; text-decoration: none; }
.ff-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--ff-ink); }
.ff-btn:disabled { background: #c7ced8; color: #6d7889; border-color: #8b95a3; box-shadow: 0 5px 0 #8b95a3; cursor: default; }
.ff-btn.ff-2 { background: #fff; min-height: 48px; font-size: 17px; }
.ff-btn.ff-entrar, .ff-btn.dupla { display: grid; align-content: center; gap: 0; padding: 5px 12px 7px; line-height: 1.1; background: linear-gradient(180deg, #ffe066 0 50%, var(--ff-y) 50%); }
.ff-btn.ff-entrar b, .ff-btn.dupla b { font-size: 19px; }
.ff-btn.ff-entrar small, .ff-btn.dupla small { font-size: 14px; font-weight: 900; color: #6a4a00; }
.ff-btn:focus-visible, .ff-jan:focus-visible, .ff-chave:focus-visible, .ff-x:focus-visible, .ff-fecha:focus-visible, .ff-torre:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- o número grande e o medidor de 5 níveis ---------- */
.ff-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ff-cab-t { min-width: 0; display: grid; gap: 4px; }
.ff-mult { flex: none; display: grid; justify-items: end; gap: 3px; }
.ff-mult-d { max-width: 118px; filter: drop-shadow(0 0 10px rgba(255, 210, 63, .55)); }
.ff-mult-l { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--ff-mudo); text-shadow: 0 2px 0 var(--ff-ink); }
.ff-med { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 5px; padding-top: 14px; }
.ff-med-c { position: relative; display: grid; justify-items: stretch; gap: 4px; min-width: 0; }
.ff-med-t { position: relative; display: block; height: calc(8px + var(--i) * 9px); background: rgba(8, 14, 30, .55); border: 3px dashed rgba(169, 188, 214, .35); border-bottom-style: solid; border-radius: 3px 3px 0 0; box-sizing: border-box; }
.ff-med-c.on .ff-med-t { border: 3px solid var(--ff-ink); }
.ff-med-c.on .ff-med-t { background-color: var(--cor); background-image: repeating-linear-gradient(180deg, transparent 0 6px, rgba(30, 36, 48, .22) 6px 8px), repeating-linear-gradient(90deg, transparent 0 6px, rgba(255, 255, 255, .35) 6px 9px, transparent 9px 14px); box-shadow: 0 0 12px 1px color-mix(in srgb, var(--cor) 55%, transparent); }
.ff-med-c.ff-prox .ff-med-t { border-style: dashed; border-color: var(--ff-y); background: rgba(255, 210, 63, .12); animation: ffProx 1.1s steps(2, end) infinite; }
@keyframes ffProx { 50% { background: rgba(255, 210, 63, .32); } }
.ff-med-fogo { position: absolute; left: 50%; bottom: calc(100% + 1px); width: 26px; height: 26px; transform: translateX(-50%); }
.ff-med-r { font-size: 11px; font-weight: 900; text-align: center; color: var(--ff-mudo); white-space: nowrap; text-shadow: 0 2px 0 var(--ff-ink); }
.ff-med-c.on .ff-med-r { color: #fff; }
.ff-med-c.topo .ff-med-r { color: var(--ff-y); }
.ff-med-c.sobe .ff-med-t { animation: ffSobe .7s cubic-bezier(.2, 1.5, .4, 1) .35s both; transform-origin: bottom; }
.ff-med-c.sobe .ff-med-fogo { animation: ffPop .5s steps(3, end) .9s both; }
@keyframes ffSobe { from { transform: scaleY(.1); filter: brightness(.4); } to { transform: none; filter: none; } }
@keyframes ffPop { from { opacity: 0; transform: translateX(-50%) scale(.3); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
.ff-acaba { display: flex; align-items: center; gap: 10px; }
.ff-falta { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--ff-mudo); white-space: nowrap; text-shadow: 0 2px 0 var(--ff-ink); }
.ff-acaba .ff-rel { width: 74px; flex: none; padding: 5px 7px; background: var(--ff-n0); border: 3px solid var(--ff-ink); border-radius: 6px; box-sizing: content-box; }

/* ---------- o bloco do painel Jogar: um pedaço de céu de festa ---------- */
.ff-bloco { position: relative; overflow: hidden; display: grid; padding: 14px 14px 16px; background: linear-gradient(180deg, #0b1222 0%, #132546 55%, #1f3d68 100%); color: #fff; border: 4px solid var(--ff-ink); border-radius: 22px; box-shadow: 0 0 0 3px var(--ff-y), 0 9px 0 3px rgba(30, 36, 48, .35); margin: 3px 3px 10px; }
.ff-bloco::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; z-index: 1; background: repeating-linear-gradient(90deg, var(--ff-y) 0 14px, var(--ff-ink) 14px 28px); }
.ff-bloco.acesa { box-shadow: 0 0 0 3px var(--ff-y), 0 0 26px 6px rgba(255, 210, 63, .45), 0 9px 0 3px rgba(30, 36, 48, .35); }
.ff-bloco .ff-btn { margin-top: 2px; }
.ff-bloco.progresso .ff-tit { font-size: 21px; }
.ff-seg-l { display: flex; align-items: center; gap: 10px; }
.ff-seg { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.ff-seg i { display: block; height: 18px; background: var(--ff-n0); border: 3px solid var(--ff-ink); border-radius: 3px; }
.ff-seg i.on { background: var(--ff-y); box-shadow: inset 0 -4px 0 var(--ff-y2); }

/* a entrada de apoio no bloco: as caixas de rojão da loja em fila (mesmas caixas, mesmas cores) e o botão amarelo de preço */
.ff-caixas { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 6px; width: 100%; min-height: 56px; margin: 6px 0 4px; padding: 10px 6px 9px; box-sizing: border-box; border: 4px solid var(--ff-ink); border-radius: 16px; background: #0e1a35; box-shadow: 0 0 0 3px var(--ff-y), 0 6px 0 var(--ff-ink); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-appearance: none; appearance: none; transition: transform .07s ease-out; }
.ff-caixas:active { transform: translateY(3px); }
.ff-caixas:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ff-caixas .ff-o-chao { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: #0b1222; box-shadow: 0 -3px 0 rgba(255, 255, 255, .06); }
.ff-cx-i { position: relative; z-index: 1; display: block; flex: none; line-height: 0; margin-bottom: 2px; }
.ff-btn.ff-btn-loja { box-shadow: inset 0 -5px 0 var(--ff-y2), 0 5px 0 var(--ff-ink); }
.ff-btn.ff-btn-loja:active:not(:disabled) { box-shadow: inset 0 -3px 0 var(--ff-y2), 0 2px 0 var(--ff-ink); }

/* ---------- a faixa da cidade acesa ---------- */
.ff-faixa { position: relative; overflow: hidden; display: grid; padding: 12px 14px 14px; margin: 0 0 10px; background: linear-gradient(180deg, #0b1222 0%, #15284c 70%, #1c3963 100%); color: #fff; border: 4px solid var(--ff-ink); border-radius: 18px; box-shadow: 0 0 0 3px var(--ff-y), 0 6px 0 3px rgba(30, 36, 48, .3); }
.ff-faixa .ff-in { gap: 9px; }
.ff-faixa .ff-tit { font-size: 25px; }
.ff-faixa.marcada { box-shadow: 0 0 0 3px #4fb3ff, 0 6px 0 3px rgba(30, 36, 48, .3); }
.ff-barra { flex: 1; min-width: 40px; height: 12px; background: var(--ff-n1); border: 3px solid var(--ff-ink); border-radius: 3px; overflow: hidden; }
.ff-barra i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--ff-y) 0 8px, #ffe27a 8px 10px); transition: width 1s linear; }

/* ---------- as folhas ---------- */
#festa { bottom: var(--tabb); z-index: 15; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, #0b1222 0%, #132546 40%, #1f3d68 100%); color: #fff; }
#festa .ff-fundo { position: absolute; left: 0; right: 0; top: 0; height: 300px; pointer-events: none; z-index: 0; }
#festa .ff-pag { position: relative; z-index: 1; flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 16px 18px; max-width: 520px; width: 100%; margin: 0 auto; box-sizing: border-box; display: grid; gap: 12px; align-content: start; grid-auto-rows: max-content; }
#festa .ff-rodape { position: relative; z-index: 2; flex: 0 0 auto; padding: 12px 16px 26px; background: linear-gradient(#e6ebea, #cfe3c4); border-top: 4px solid var(--ff-ink); border-radius: 20px 20px 0 0; box-shadow: 0 -6px 0 rgba(0, 0, 0, .25); display: grid; gap: 6px; justify-items: stretch; }
#festa .ff-rodape[hidden] { display: none; }
#festa .ff-rodape .ff-usa { margin: 0; text-align: center; font-size: 13px; font-weight: 800; color: #4d5a6c; min-height: 1em; }
.ff-topo { margin: 0 -16px; padding: 0 16px; display: grid; gap: 8px; }
.ff-fio { height: 36px; margin: 0 -16px; overflow: hidden; }
.ff-topo-l { display: flex; align-items: center; gap: 10px; }
.ff-x { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border: 4px solid var(--ff-ink); border-radius: 50%; background: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .45); cursor: pointer; padding: 0; -webkit-appearance: none; appearance: none; }
.ff-x svg { width: 18px; height: 18px; }
.ff-selo { margin: 0; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 6px 9px; background: var(--ff-ink); color: var(--ff-y); border: 3px solid var(--ff-y); border-radius: 6px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ff-selo i { width: 9px; height: 9px; background: var(--ff-y); box-shadow: 0 0 0 2px var(--ff-ink), 0 0 10px 2px rgba(255, 210, 63, .9); }
.ff-titulo { margin: 4px 0 0; font-size: clamp(27px, 8.4vw, 33px); line-height: 1.04; font-weight: 900; color: #fff; overflow-wrap: anywhere; text-shadow: -3px 0 0 var(--ff-ink), 3px 0 0 var(--ff-ink), 0 -3px 0 var(--ff-ink), 0 4px 0 var(--ff-ink), -2px -2px 0 var(--ff-ink), 2px -2px 0 var(--ff-ink), -2px 3px 0 var(--ff-ink), 2px 3px 0 var(--ff-ink); }
.ff-titulo em { font-style: normal; color: var(--ff-y); }
.ff-relogio { display: grid; justify-items: center; gap: 6px; padding: 12px 14px 12px; background: var(--ff-ink); border: 4px solid #000; border-radius: 16px; box-shadow: 0 0 0 3px var(--ff-y), 0 6px 0 3px rgba(0, 0, 0, .45); margin: 6px 3px 3px; }
.ff-relogio.festa { box-shadow: 0 0 0 3px var(--ff-rosa), 0 0 24px 4px rgba(255, 93, 143, .4), 0 6px 0 3px rgba(0, 0, 0, .45); }
.ff-relogio .ff-med, .ff-relogio-m { width: 100%; }
.ff-dig { width: min(100%, 236px); }
.ff-dig-mult { filter: drop-shadow(0 0 14px rgba(255, 210, 63, .6)); }
.ff-ate { margin: 0; font-size: 12.5px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--ff-mudo); text-align: center; }
.ff-ate b { color: var(--ff-y); }
.ff-predio { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px 10px 12px; background: #21375e; border: 4px solid var(--ff-ink); border-radius: 8px; }
.ff-dia { grid-column: 1 / -1; margin: 2px 0 0; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--ff-mudo); }
.ff-dia::after { content: ""; flex: 1; height: 3px; background: #2f4a78; }
.ff-jan { position: relative; min-height: 60px; padding: 4px 2px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 3px solid var(--ff-ink); border-radius: 8px; background: #0f1b33; color: #aebfd9; font: inherit; font-size: 19px; font-weight: 900; line-height: 1; cursor: pointer; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .35); -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
.ff-jan small { font-size: 10px; font-weight: 900; letter-spacing: .02em; line-height: 1.05; text-align: center; opacity: .95; }
.ff-jan.festa { background: #3b1f3f; color: #fff; border-color: var(--ff-ink); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .35), 0 0 0 2px var(--ff-rosa); }
.ff-jan.festa::before { content: ""; position: absolute; left: 3px; right: 3px; top: 3px; height: 4px; background: repeating-linear-gradient(90deg, #ff5d8f 0 5px, #FFD23F 5px 10px, #4fb3ff 10px 15px, #3ecf6e 15px 20px); }
.ff-jan.festa small { color: var(--ff-y); font-size: 11px; }
.ff-pips { display: flex; gap: 2px; }
.ff-pips i { width: 6px; height: 6px; background: #5a3a5e; }
.ff-pips i.on { background: var(--ff-y); }
.ff-jan.sel { background: var(--ff-y); color: var(--ff-ink); box-shadow: inset 0 -6px 0 var(--ff-y2), 0 0 0 3px #fff, 0 0 20px 5px rgba(255, 210, 63, .6); z-index: 1; }
.ff-jan.sel.festa small { color: var(--ff-ink); }
.ff-jan.sel .ff-pips i { background: rgba(30, 36, 48, .25); }
.ff-jan.sel .ff-pips i.on { background: var(--ff-ink); }
.ff-jan.ocupada { background: repeating-linear-gradient(135deg, #3a2230 0 6px, #2a1824 6px 12px); color: #f0b1c2; cursor: not-allowed; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .35); }
.ff-jan.ocupada::before { display: none; }
.ff-motivo { margin: 0; font-size: 14px; font-weight: 800; line-height: 1.3; color: #ffd0dc; }
.ff-motivo:empty { display: none; }
.ff-chave { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 0 6px 0 14px; border: 3px solid rgba(255, 255, 255, .28); border-radius: 14px; background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: 15px; font-weight: 900; text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none; }
.ff-chave-t { min-width: 0; overflow-wrap: anywhere; }
.ff-chave-t b { color: var(--ff-y); }
.ff-k { position: relative; flex: none; width: 58px; height: 34px; border-radius: 10px; background: #5d6b7e; border: 3px solid var(--ff-ink); transition: background .2s; }
.ff-k::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 6px; background: #fff; border: 3px solid var(--ff-ink); transition: left .2s; box-sizing: border-box; }
.ff-chave[aria-checked="true"] .ff-k { background: var(--ff-verde); }
.ff-chave[aria-checked="true"] .ff-k::after { left: 26px; }
.ff-nota { margin: 0; padding: 10px 12px; display: grid; gap: 2px; background: #132240; border: 3px solid var(--ff-y); border-radius: 12px; font-size: 14.5px; line-height: 1.2; font-weight: 900; }
.ff-nota[hidden] { display: none; }
.ff-nota b { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ff-y); }
.ff-saldo { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 var(--ff-ink); }
.ff-saldo-f { display: flex; gap: 2px; flex-wrap: wrap; max-width: 120px; }
.ff-saldo-f:empty { display: none; }
.ff-saldo-f svg { display: block; }
.ff-msg { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 800; color: #dce7f7; text-shadow: 0 2px 0 var(--ff-ink); }
.ff-msg.ff-grande { font-size: 19px; color: #fff; font-weight: 900; }
.ff-eu { color: var(--ff-y); }
.ff-erro { margin: 0; padding: 9px 12px; background: #fff3c4; color: var(--ff-ink); border: 3px solid var(--ff-ink); border-radius: 12px; font-size: 14px; line-height: 1.3; font-weight: 900; text-shadow: none; }
.ff-erro[hidden] { display: none; }
.ff-relogio.ok { box-shadow: 0 0 0 3px var(--ff-verde), 0 6px 0 3px rgba(0, 0, 0, .45); }
.ff-relogio.ok.festa { box-shadow: 0 0 0 3px var(--ff-y), 0 0 30px 8px rgba(255, 210, 63, .45), 0 6px 0 3px rgba(0, 0, 0, .45); }

/* a cidade em festa no pé da confirmação */
.ff-cena { position: relative; height: 170px; margin: 4px -16px -18px; }
@media (max-height: 700px) { .ff-cena { height: 120px; } }

/* ---------- o caminho de graça (sempre junto dos cartões) ---------- */
.ff-gratis { display: grid; gap: 7px; padding: 12px 14px 13px; background: #132240; border: 3px solid var(--ff-verde); border-radius: 14px; box-shadow: 0 5px 0 rgba(0, 0, 0, .35); }
.ff-gratis .ff-sobre { color: var(--ff-verde); }
.ff-gratis-t { margin: 0; font-size: 17px; line-height: 1.2; font-weight: 900; color: #fff; }
.ff-gratis .ff-seg i.on { background: var(--ff-verde); box-shadow: inset 0 -4px 0 #23924b; }
.ff-gratis .ff-n { color: var(--ff-verde); }

/* ---------- "Apoie o jogo": a LOJA DA FESTA (17/11). Estrutura de loja de jogo; arte nossa: caixas de rojão em blocos, noite de festa, amarelo e contorno do jogo ---------- */
#festa .ff-lojabar { position: relative; z-index: 6; flex: 0 0 auto; padding: 0 16px 8px; max-width: 520px; width: 100%; margin: 0 auto; box-sizing: border-box; }
#festa .ff-lojabar[hidden] { display: none; }
.ff-lojabar .ff-fio { height: 24px; margin: 0 -16px 6px; }
.ff-lojabar .ff-bandeirinhas { width: 520px; height: 24px; }
.ff-lojabar-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ff-lojabar .ff-titulo { flex: 1 1 auto; min-width: 0; margin: 0; font-size: clamp(22px, 6.6vw, 28px); white-space: nowrap; }
.ff-saldo-loja { flex: none; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px 0 8px; box-sizing: border-box; background: #0b1222; border: 3px solid #3b5a8c; border-radius: 12px; box-shadow: inset 0 3px 0 rgba(0, 0, 0, .55), 0 3px 0 var(--ff-ink); }
.ff-saldo-ico svg { display: block; }
.ff-saldo-n .ff-placar { width: auto; height: 20px; }
.ff-saldo-r { font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--ff-mudo); }
.ff-saldo-loja.bump { animation: ffBump .22s steps(3, end); }
@keyframes ffBump { 40% { transform: scale(1.16); border-color: var(--ff-y); } }

#festa[data-fase="apoio"] .ff-pag { gap: 12px; padding-top: 2px; padding-bottom: 22px; }
.ff-conv { margin: 0; font-size: 14px; line-height: 1.32; font-weight: 800; color: #dce7f7; text-shadow: 0 2px 0 var(--ff-ink); }
.ff-conv b { color: #fff; }

/* faixa de seção: um pano de festa preso no fio */
.ff-secao { margin: 4px 0 -2px; display: flex; align-items: center; gap: 8px; }
.ff-secao b { flex: none; padding: 4px 18px 5px 10px; background: var(--ff-y); color: var(--ff-ink); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 50%, 100% 100%, 0 100%); box-shadow: inset 0 -3px 0 var(--ff-y2); }
.ff-secao::after { content: ''; flex: 1 1 auto; height: 4px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .28) 0 6px, transparent 6px 11px); }

/* o cartão de oferta */
.ff-loja-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; padding-top: 6px; }
.ff-oferta { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; align-content: start; min-width: 0; margin: 0; padding: 8px 8px 10px; border: 4px solid var(--ff-ink); border-radius: 16px; background: var(--o-bg, #182a4d); color: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: var(--o-aro, 0 0 0 0 transparent), 0 6px 0 var(--ff-ink); -webkit-tap-highlight-color: transparent; -webkit-appearance: none; appearance: none; transition: transform .07s ease-out; }
.ff-oferta:active { transform: translateY(3px) scale(.975); }
.ff-oferta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ff-o-ceu { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; pointer-events: none; }
.ff-o-nome { position: relative; z-index: 1; display: block; margin: 0; padding-right: 48px; font-size: 15px; line-height: 1.02; font-weight: 900; color: #fff; text-shadow: -2px 0 0 var(--ff-ink), 2px 0 0 var(--ff-ink), 0 -2px 0 var(--ff-ink), 0 2px 0 var(--ff-ink); overflow-wrap: normal; }
.ff-oferta.o-1 .ff-o-nome { padding-right: 0; }
.ff-oferta.o-3 .ff-o-nome, .ff-oferta.o-5 .ff-o-nome { padding-right: 40px; }
.ff-o-palco { position: relative; z-index: 1; height: 68px; display: flex; align-items: flex-end; justify-content: center; }
.ff-o-chao { position: absolute; left: -8px; right: -8px; bottom: 0; height: 7px; background: #0b1222; box-shadow: 0 -3px 0 rgba(255, 255, 255, .06); }
.ff-o-palco .ff-obj { margin-bottom: 2px; transition: transform .12s cubic-bezier(.2, 1.6, .4, 1); transform-origin: 50% 100%; }
.ff-oferta:active .ff-obj { transform: scale(1.06, .94); }
.ff-o-base { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.ff-o-qtd { flex: none; display: grid; justify-items: center; min-width: 34px; line-height: .92; }
.ff-qtd { font-size: 31px; font-weight: 900; color: #fff; text-shadow: -2px 0 0 var(--ff-ink), 2px 0 0 var(--ff-ink), 0 -2px 0 var(--ff-ink), 0 3px 0 var(--ff-ink); }
.ff-rot { font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #cfe0f7; text-shadow: 0 1px 0 var(--ff-ink); }
.ff-preco { flex: 1 1 auto; min-width: 0; min-height: 44px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 2px; padding: 0 6px 2px; background: var(--ff-y); color: var(--ff-ink); border: 3px solid var(--ff-ink); border-radius: 12px; box-shadow: inset 0 -4px 0 var(--ff-y2), 0 4px 0 var(--ff-ink); font-size: 21px; font-weight: 900; white-space: nowrap; transition: transform .07s, box-shadow .07s; }
.ff-preco small { font-size: 12px; margin-right: 1px; }
.ff-oferta:active .ff-preco { transform: translateY(3px); box-shadow: inset 0 -2px 0 var(--ff-y2), 0 1px 0 var(--ff-ink); }

/* a fita de valor: uma bandeirola pendurada na borda do cartão (só conta verdadeira) */
.ff-fitas { position: absolute; z-index: 3; top: -10px; right: 4px; display: flex; gap: 6px; pointer-events: none; }
.ff-fita { position: relative; display: block; transform-origin: 50% 0; transition: transform .25s cubic-bezier(.2, 1.8, .4, 1); filter: drop-shadow(2px 0 0 var(--ff-ink)) drop-shadow(-2px 0 0 var(--ff-ink)) drop-shadow(0 -2px 0 var(--ff-ink)) drop-shadow(0 3px 0 var(--ff-ink)); }
.ff-fita i { display: grid; justify-items: center; min-width: 34px; padding: 4px 5px 12px; background: var(--fita, #ff5d8f); color: var(--ff-ink); font-style: normal; line-height: 1; font-weight: 900; white-space: nowrap; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 7px), 0 100%); }
.ff-fita b { font-size: 15px; letter-spacing: -.02em; }
.ff-fita small { font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.ff-oferta:active .ff-fita { transform: rotate(7deg); }
.ff-oferta:active .ff-fita + .ff-fita { transform: rotate(-6deg); }
.o-2 { --fita: #ff7aa3; }
.o-3 { --fita: #6cc3ff; }
.o-5 { --fita: #4fd884; }
.ff-fita.f-metade i { background: #ff5d8f; color: #fff; text-shadow: 0 1px 0 var(--ff-ink); }
.ff-destaque .ff-fita.f-cada i, .ff-det-card.o-10 .ff-fita.f-cada i { background: var(--ff-y); }

/* cada cartão sobe de categoria: fundo, aro e enfeite */
.ff-oferta.o-1 { --o-bg: #172744; }
.ff-oferta.o-2 { --o-bg: #1a2d52; --o-aro: inset 0 0 0 2px rgba(255, 122, 163, .35); }
.ff-oferta.o-3 { --o-bg: #1c3360; --o-aro: inset 0 0 0 2px rgba(108, 195, 255, .4); }
.ff-oferta.o-3::before { content: ''; position: absolute; z-index: 2; left: 10px; right: 10px; top: -4px; height: 4px; background: repeating-linear-gradient(90deg, #ff5d8f 0 8px, var(--ff-y) 8px 16px, #4fb3ff 16px 24px, #3ecf6e 24px 32px); }
.ff-oferta.o-5 { --o-bg: #213a6a; --o-aro: 0 0 0 3px #4fd884; }
.ff-oferta.o-5::before, .ff-oferta.o-5::after { content: ''; position: absolute; z-index: 2; width: 14px; height: 14px; border: 0 solid var(--ff-y); pointer-events: none; }
.ff-oferta.o-5::before { left: 3px; bottom: 3px; border-left-width: 4px; border-bottom-width: 4px; }
.ff-oferta.o-5::after { right: 3px; bottom: 3px; border-right-width: 4px; border-bottom-width: 4px; }

/* a oferta em destaque: a bateria da cidade */
.ff-destaque { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "palco palco" "base base"; padding: 10px 10px 12px; gap: 6px; background: #0e1a35; box-shadow: 0 0 0 3px var(--ff-y), 0 0 28px 6px rgba(255, 210, 63, .32), 0 7px 0 3px var(--ff-ink); }
.ff-destaque .ff-o-nome { position: absolute; top: 9px; left: 12px; padding: 0; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ff-y); text-shadow: 0 2px 0 var(--ff-ink); }
.ff-destaque .ff-o-palco { grid-area: palco; height: 86px; margin-top: 4px; }
.ff-destaque .ff-o-chao { left: -10px; right: -10px; background: #0b1222; }
.ff-destaque .ff-o-base { grid-area: base; gap: 12px; }
.ff-destaque .ff-o-qtd { justify-items: start; }
.ff-destaque .ff-qtd { font-size: 40px; }
.ff-destaque .ff-preco { flex: 0 1 150px; margin-left: auto; min-height: 50px; font-size: 26px; }
.ff-destaque .ff-preco small { font-size: 14px; }
.ff-destaque .ff-fitas { right: 10px; }
.ff-destaque .ff-fog { animation: ffArma 1.4s steps(1, end) infinite; animation-delay: calc(var(--k) * -.14s); }
@keyframes ffArma { 50% { transform: translateY(calc(var(--px) * -1)); } }
.ff-faisca { position: absolute; width: calc(var(--px) * 2); height: calc(var(--px) * 2); margin: calc(var(--px) * -1) 0 0 calc(var(--px) * -1); background: var(--ff-y); box-shadow: 0 0 0 var(--px) rgba(255, 154, 60, .8), 0 0 8px 2px rgba(255, 210, 63, .8); animation: ffFaisca .36s steps(2, end) infinite; }
@keyframes ffFaisca { 50% { background: #fff; transform: translate(calc(var(--px) * .5), calc(var(--px) * -.5)); } }

/* o caminho de graça, como oferta da própria loja */
.ff-oferta-gratis { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 10px 14px 12px; border-radius: 16px; border-width: 4px; border-color: var(--ff-verde); box-shadow: 0 0 0 0 transparent, 0 6px 0 var(--ff-ink); }
.ff-oferta-gratis > .ff-gr-obj { grid-row: 1 / span 3; display: grid; place-items: center; width: 44px; height: 64px; background: #0b1222; border: 3px solid #23924b; border-radius: 10px; }
.ff-oferta-gratis > .ff-gr-obj svg { display: block; }
.ff-oferta-gratis .ff-gratis-t { font-size: 16px; }

/* o objeto: caixa em camadas */
.ff-obj { position: relative; display: block; flex: none; }
.ff-obj > svg { position: absolute; left: 0; top: 0; display: block; }
.ff-obj .ff-fog { position: absolute; }
.ff-obj > svg.ff-tampa { display: none; }
.ff-obj.fechada > svg.ff-tampa { display: block; }
.ff-obj.fechada .ff-fog { opacity: 0; }
.ff-obj.fechada .ff-faisca { display: none; }

/* o detalhe do pacote */
.ff-det { position: absolute; inset: 0; z-index: 5; display: grid; align-items: center; justify-items: center; padding: 0 14px 16px; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; }
.ff-det-fundo { position: fixed; inset: 0; background: rgba(6, 10, 22, .8); animation: ffFundo .18s ease-out both; }
@keyframes ffFundo { from { opacity: 0; } }
.ff-det-card { position: relative; z-index: 1; width: 100%; max-width: 380px; box-sizing: border-box; background: #fff; color: var(--ff-ink); border: 4px solid var(--ff-ink); border-radius: 20px; box-shadow: 0 0 0 3px var(--ff-y), 0 8px 0 3px var(--ff-ink); animation: ffDetEntra .34s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes ffDetEntra { from { transform: translateY(46px) scale(.92); opacity: 0; } }
.ff-det-x { position: absolute; z-index: 4; top: -16px; left: -12px; }
.ff-det-papel .ff-fitas { top: -8px; right: 14px; }
.ff-det-card .ff-fita i { min-width: 46px; padding: 5px 7px 14px; }
.ff-det-card .ff-fita b { font-size: 18px; }
.ff-det-card .ff-fita small { font-size: 10px; }
.ff-det-palco { position: relative; height: 120px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; border-bottom: 4px solid var(--ff-ink); border-radius: 16px 16px 0 0; }
.ff-det-ceu { position: absolute; inset: 0; border-radius: 16px 16px 0 0; overflow: hidden; background: linear-gradient(180deg, #0b1222 0%, #1a3359 100%); }
.ff-det-palco .ff-o-chao { left: 0; right: 0; height: 10px; border-radius: 0; }
.ff-det-palco .ff-obj { z-index: 1; }
.ff-det-n { position: absolute; z-index: 2; right: 14px; top: 14px; }
.ff-det-card.entrega .ff-fitas { display: none; }
.ff-det-n .ff-placar { width: auto; height: 34px; }
.ff-det-papel { position: relative; display: grid; gap: 8px; padding: 12px 16px 16px; }
.ff-det-papel .ff-o-nome { padding: 0; color: #8a6400; text-shadow: none; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; }
.ff-det-qtd { margin: -4px 0 0; font-size: 22px; line-height: 1.05; font-weight: 900; color: var(--ff-ink); }
.ff-det-qtd b { font-size: 40px; }
.ff-det-abrindo { font-size: 26px; }
.ff-det-lista { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ff-det-lista li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.3; font-weight: 800; color: #3a475b; }
.ff-det-lista li::before { content: ''; position: absolute; left: 1px; top: 6px; width: 8px; height: 8px; background: var(--ff-y); box-shadow: 0 0 0 2px var(--ff-ink); }
.ff-det-lista li b { color: var(--ff-ink); }
.ff-det-lista .ff-det-rojoes { display: grid; gap: 4px; padding-left: 0; }
.ff-det-lista .ff-det-rojoes::before { display: none; }
.ff-det-fs { display: flex; flex-wrap: wrap; gap: 3px; padding: 6px 8px; background: #0e1a35; border: 3px solid var(--ff-ink); border-radius: 10px; justify-self: start; }
.ff-det-fs svg { display: block; }
.ff-det-conta { margin: 0; padding: 7px 10px; background: #ffe3ec; border: 3px solid var(--ff-ink); border-radius: 10px; font-size: 13.5px; line-height: 1.25; font-weight: 900; color: var(--ff-ink); }
.ff-det-ok { margin: 0; font-size: 14.5px; line-height: 1.3; font-weight: 800; color: #3a475b; }
.ff-det-papel .ff-btn { margin-top: 4px; }
.ff-det-papel .ff-btn.ff-2 { margin-top: 2px; }
.ff-det-papel .ff-usa { margin: 0; min-height: 1em; text-align: center; font-size: 13px; font-weight: 800; color: #4d5a6c; }
.ff-det-papel .ff-usa:empty { display: none; }
.ff-det-card.fechado { background: #fff6d6; }

/* a entrega: a caixa treme, abre, os rojões saem contados e voam para o saldo */
.ff-obj.ff-pula { animation: ffPula .42s cubic-bezier(.2, 1.7, .4, 1) .06s both; transform-origin: 50% 100%; }
@keyframes ffPula { from { transform: scale(.45) translateY(18px); opacity: 0; } 60% { transform: scale(1.07, .95); opacity: 1; } }
.ff-obj.desce .ff-tampa { animation: ffTampaCai .3s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes ffTampaCai { from { transform: translateY(-40%); opacity: 0; } }
.ff-obj.treme { animation: ffTreme .38s steps(6, end) 2; transform-origin: 50% 100%; }
@keyframes ffTreme { 17% { transform: rotate(-4deg); } 34% { transform: rotate(4deg) translateY(-2px); } 51% { transform: rotate(-3deg); } 68% { transform: rotate(3deg) translateY(-2px); } 85% { transform: rotate(-1deg); } }
.ff-obj.abre .ff-tampa { animation: ffTampaVoa .5s cubic-bezier(.3, 0, .6, 1) both; transform-origin: 20% 50%; }
@keyframes ffTampaVoa { 30% { transform: translateY(-30%) rotate(-6deg); opacity: 1; } to { transform: translate(-35%, -160%) rotate(-28deg); opacity: 0; } }
.ff-obj.fechada .ff-fog.sai { opacity: 1; animation: ffSai .34s cubic-bezier(.2, 1.7, .4, 1) both; }
@keyframes ffSai { from { transform: translateY(calc(var(--px) * 7)); opacity: 0; } 55% { transform: translateY(calc(var(--px) * -3)); opacity: 1; } }
.ff-det[data-entrega="abrindo"] .ff-det-n, .ff-det[data-entrega="voando"] .ff-det-n { animation: ffBump .2s steps(2, end); }
.ff-voo { display: block; filter: drop-shadow(0 0 6px rgba(255, 210, 63, .9)); }
.ff-det[data-entrega] .ff-det-x { visibility: hidden; }
.ff-det[data-entrega="fim"] .ff-det-x { visibility: visible; }

/* "o apoio ainda não está aberto" (dentro do detalhe; a caixa fica fechada) */
.ff-fechado { display: grid; gap: 6px; padding: 2px 0 4px; }
.ff-fechado .ff-sobre { color: #8a6400; text-shadow: none; }
.ff-fechado .ff-tit { color: var(--ff-ink); text-shadow: none; font-size: 24px; }
.ff-fechado .ff-sub { color: #4d5a6c; text-shadow: none; font-size: 14.5px; }
.ff-obra { display: block; height: 14px; margin: -12px -16px 6px; background: repeating-linear-gradient(135deg, var(--ff-ink) 0 12px, var(--ff-y) 12px 24px); border-bottom: 3px solid var(--ff-ink); }

/* 17/11 · o passo de confirmação antes de pagar, a volta do checkout (conferindo) e o botão "quase" desligado */
.ff-btn[aria-disabled="true"] { background: #c7ced8; color: #5b6676; border-color: #8b95a3; box-shadow: 0 5px 0 #8b95a3; }
.ff-total { margin: 2px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px 9px; background: #fff3c4; border: 3px solid var(--ff-ink); border-radius: 12px; }
.ff-total span { font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #6a4a00; }
.ff-total b { font-size: 32px; line-height: 1; font-weight: 900; color: var(--ff-ink); }
.ff-decl { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 12px; min-height: 56px; box-sizing: border-box; padding: 9px 12px; background: #fff; border: 3px solid var(--ff-ink); border-radius: 12px; font-size: 15.5px; line-height: 1.3; font-weight: 900; color: var(--ff-ink); cursor: pointer; }
.ff-chk { -webkit-appearance: none; appearance: none; position: relative; width: 30px; height: 30px; margin: 0; background: #fff; border: 4px solid var(--ff-ink); border-radius: 6px; cursor: pointer; flex: none; }
.ff-chk:checked { background: var(--ff-y); }
.ff-chk:checked::after { content: ''; position: absolute; left: 6px; top: 1px; width: 8px; height: 14px; border: solid var(--ff-ink); border-width: 0 4px 4px 0; transform: rotate(45deg); }
.ff-chk:focus-visible { outline: 3px solid var(--ff-rosa); outline-offset: 2px; }
.ff-decl:has(.ff-chk:checked) { background: #fffbe0; }
.ff-linha-pag { margin: 0; font-size: 13.5px; line-height: 1.3; font-weight: 800; color: #3a475b; }
.ff-det-card.confirma .ff-det-palco { height: 76px !important; }
.ff-det-card.confirma .ff-det-palco .ff-obj { transform: scale(.5); transform-origin: 50% 100%; }
.ff-det-card.confirma .ff-det-papel { gap: 7px; padding-top: 10px; }
.ff-det-card.confirma .ff-det-qtd { margin-top: -2px; }
.ff-det-card.confirma .ff-det-qtd b { font-size: 34px; }
.ff-det-card.confirma .ff-total { padding: 5px 14px 6px; }
.ff-det-card.confirma .ff-total b { font-size: 28px; }
.ff-det-card.confirma .ff-btn { min-height: 52px; }
.ff-det-card.confirma .ff-btn.ff-2 { min-height: 46px; margin-top: 0; }
.ff-det-papel .ff-pag-aviso:not(:empty) { padding: 8px 10px; background: #ffe3ec; border: 3px solid var(--ff-ink); border-radius: 10px; font-size: 14px; line-height: 1.3; font-weight: 900; color: var(--ff-ink); }
.ff-det-card.confirma .ff-fitas { display: none; }
.ff-pontos::after { content: '…'; display: inline-block; width: 1.2em; text-align: left; animation: ffPontos 1.2s steps(1, end) infinite; }
@keyframes ffPontos { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.ff-volta-msg { display: grid; gap: 12px; padding: 18px 16px 8px; }
.ff-volta-msg .ff-btn { margin-top: 2px; }

/* ---------- o aviso de festa ganha ---------- */
.ff-ganhou { position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(var(--tabb, 72px) + 22px); max-width: 460px; margin: 0 auto; overflow: hidden; display: grid; padding: 0 14px 14px; background: linear-gradient(180deg, #0b1222 0%, #15284c 60%, #1f3d68 100%); color: #fff; border: 4px solid var(--ff-ink); border-radius: 20px; box-shadow: 0 0 0 3px var(--ff-y), 0 0 30px 6px rgba(255, 210, 63, .35), 0 9px 0 3px rgba(30, 36, 48, .35); animation: ffChega .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes ffChega { from { transform: translateY(30px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.ff-ganhou .ff-fio { position: relative; z-index: 1; margin: 0 -14px 4px; height: 30px; }
.ff-ganhou .ff-in { gap: 12px; }
.ff-ganhou-l { display: flex; align-items: flex-end; gap: 12px; }
.ff-ganhou-l > div { display: grid; gap: 4px; min-width: 0; }
.ff-ganhou-f { flex: none; }
.ff-ganhou-f svg { display: block; filter: drop-shadow(0 0 8px rgba(255, 93, 143, .7)); }
.ff-ganhou-a { display: flex; gap: 10px; align-items: stretch; }
.ff-ganhou-a .ff-btn { flex: 1; min-height: 52px; font-size: 18px; box-shadow: 0 4px 0 var(--ff-ink); }
.ff-fecha { flex: none; min-height: 52px; min-width: 88px; padding: 0 14px 2px; border: 3px solid rgba(255, 255, 255, .45); border-radius: 14px; background: rgba(255, 255, 255, .08); color: #e6eefb; font: inherit; font-size: 15px; font-weight: 900; cursor: pointer; text-decoration: none; -webkit-appearance: none; appearance: none; }

@media (max-height: 700px) { .ff-relogio { padding: 8px 12px 9px; } .ff-dig { width: min(100%, 190px); } .ff-dig.ff-dig-mult { max-width: 150px; } .ff-relogio .ff-med-t { height: calc(6px + var(--i) * 6px); } .ff-relogio .ff-med { padding-top: 10px; } .ff-med-fogo { width: 20px; height: 20px; } .ff-conv { font-size: 13.5px; } }
@media (max-width: 370px) { .ff-tit { font-size: 21px; } .ff-med-r { font-size: 10px; } .ff-jan { font-size: 17px; } .ff-preco { font-size: 19px; } .ff-o-nome { font-size: 14px; } .ff-oferta.o-2 .ff-o-nome { padding-right: 44px; } }
@media (prefers-reduced-motion: reduce) {
  .ff-barra i, .ff-k, .ff-k::after, .ff-oferta, .ff-obj, .ff-preco, .ff-fita { transition: none; }
  .ff-led, .ff-med-c.ff-prox .ff-med-t, .ff-ganhou, .ff-med-c.sobe .ff-med-t, .ff-med-c.sobe .ff-med-fogo { animation: none; }
  .ff-pontos::after, .ff-destaque .ff-fog, .ff-faisca, .ff-saldo-loja.bump, .ff-det-fundo, .ff-det-card, .ff-obj.ff-pula, .ff-obj.desce .ff-tampa, .ff-obj.treme, .ff-obj.abre .ff-tampa, .ff-obj.fechada .ff-fog.sai, .ff-det-n { animation: none !important; }
  .ff-obj.abre .ff-tampa { display: none; }
  .ff-oferta:active, .ff-oferta:active .ff-obj, .ff-oferta:active .ff-fita { transform: none; }
}

/* ==================== 17/11 (vitrine) · a festa à vista ====================
   João: "tá MUITO ESCONDIDO, TEM QUE SER VISÍVEL IGUAL É NO CLASH ROYALE". O botão fixo do mapa (canto de baixo à esquerda, no espelho da pilha de zoom),
   o aviso antes da missão, o convite de 1 vez por dia, a linha "agora" da loja e os palcos de noite da folha de novidades. Mesmo céu, mesmas caixas, mesma fonte. */
.ff-hud, .ff-avmi, .ff-convmi, .ff-nv, .nv-ov .ff-gratis { --ff-ink: #1e2430; --ff-y: #FFD23F; --ff-y2: #b88f00; --ff-n0: #0d1526; --ff-n1: #16264a; --ff-n2: #22406e; --ff-mudo: #a9bcd6; --ff-rosa: #ff5d8f; --ff-verde: #3ecf6e; }

/* o botão do mapa: um pedaço de céu de festa com a caixa pintada e a placa amarela */
.ff-hud { position: absolute; z-index: 5; left: calc(var(--pad, 14px) + env(safe-area-inset-left)); top: 60%; width: 80px; height: 90px; margin: 0; padding: 0; box-sizing: border-box; border: 4px solid var(--ff-ink); border-radius: 18px; background: #0b1222; box-shadow: 0 0 0 3px var(--ff-y), 0 6px 0 3px rgba(30, 36, 48, .4); color: var(--ff-ink); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-appearance: none; appearance: none; transition: opacity .18s, transform .07s ease-out; }
.ff-hud[hidden] { display: none; }
.ff-hud:active { transform: translateY(3px); box-shadow: 0 0 0 3px var(--ff-y), 0 2px 0 3px rgba(30, 36, 48, .4); }
.ff-hud:focus-visible { outline: 3px solid #1d6fd8; outline-offset: 5px; }
.ff-hud.acesa { box-shadow: 0 0 0 3px var(--ff-y), 0 0 18px 5px rgba(255, 210, 63, .6), 0 6px 0 3px rgba(30, 36, 48, .4); }
.ff-hud-ceu { position: absolute; left: 0; right: 0; top: 0; bottom: 24px; overflow: hidden; border-radius: 14px 14px 0 0; background: linear-gradient(180deg, #0b1222 0%, #15284c 60%, #1f3d68 100%); pointer-events: none; }
.ff-hud-cx { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); line-height: 0; pointer-events: none; }
.ff-hud-cx .ff-obj { filter: drop-shadow(0 0 6px rgba(79, 179, 255, .45)); }
.ff-hud-fogo { position: absolute; width: 24px; height: 24px; pointer-events: none; opacity: 0; }
.ff-hud-fogo .ff-med-fogo { position: static; width: 100%; height: 100%; transform: none; }
.ff-hud-fogo.f1 { left: 2px; top: 3px; opacity: .9; }
.ff-hud-fogo.f2 { right: 2px; top: 1px; }
.ff-hud-fogo.f3 { left: 26px; top: -2px; }
.ff-hud.vivo .ff-hud-fogo { animation: ffHudPop 3.6s steps(6, end) infinite; }
.ff-hud.vivo .ff-hud-fogo.f2 { animation-delay: -1.2s; }
.ff-hud.vivo .ff-hud-fogo.f3 { animation-delay: -2.4s; }
@keyframes ffHudPop { 0% { opacity: 0; transform: scale(.2); } 8% { opacity: 1; transform: scale(.7); } 20% { opacity: 1; transform: scale(1.1); } 36% { opacity: 0; transform: scale(1.3); } 100% { opacity: 0; transform: scale(1.3); } }
.ff-hud.vivo .ff-fog { animation: ffArma 1.2s steps(1, end) infinite; animation-delay: calc(var(--k) * -.4s); }
.ff-hud-p { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; display: flex; align-items: center; justify-content: center; gap: 5px; box-sizing: border-box; padding-bottom: 1px; background: var(--ff-y); border-top: 3px solid var(--ff-ink); border-radius: 0 0 14px 14px; box-shadow: inset 0 -3px 0 var(--ff-y2); pointer-events: none; }
.ff-hud-p b { font-size: 14px; line-height: 1; font-weight: 900; color: var(--ff-ink); letter-spacing: .01em; }
.ff-hud.acesa .ff-hud-p { background: #0b1222; box-shadow: none; }
.ff-hud-p .ff-placar { width: auto; height: 14px; }
.ff-hud-p .ff-led { width: 8px; height: 8px; }
.ff-hud-b { position: absolute; top: -11px; right: -11px; min-width: 25px; height: 25px; padding: 0 5px; box-sizing: border-box; display: grid; place-items: center; background: #ff5d5d; border: 3px solid var(--ff-ink); border-radius: 13px; color: #fff; pointer-events: none; }
.ff-hud-b[hidden] { display: none; }
.ff-hud-b b { font-size: 13px; line-height: 1; font-weight: 900; }
.ff-hud[data-sinal="acesa"] .ff-hud-b, .ff-hud[data-sinal="marcada"] .ff-hud-b { min-width: 20px; height: 20px; top: -8px; right: -8px; }
.ff-hud[data-sinal="acesa"] .ff-hud-b { animation: ffLed 1.2s steps(2, end) infinite; }
.ff-hud.parado, .ff-hud.parado * { animation-play-state: paused !important; }
@media (max-width: 640px) { body:has(#cartao:not([hidden])) .ff-hud { opacity: 0; pointer-events: none; } } /* sai da frente do cartão da cidade, como a pilha de zoom */
body.dados-on .ff-hud { z-index: 1; }

/* o aviso de festa acesa por cima da missão (sem toque: os toques passam para o jogo) */
.ff-avmi { position: fixed; z-index: 60; left: 10px; right: 10px; top: calc(env(safe-area-inset-top, 0px) + 10px); max-width: 440px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 14px 11px; box-sizing: border-box; background: linear-gradient(180deg, #0b1222 0%, #15284c 60%, #1f3d68 100%); color: #fff; border: 4px solid var(--ff-ink); border-radius: 18px; box-shadow: 0 0 0 3px var(--ff-y), 0 0 22px 4px rgba(255, 210, 63, .38), 0 6px 0 3px rgba(30, 36, 48, .35); pointer-events: none; animation: ffAvmi .4s cubic-bezier(.2, 1.4, .4, 1) both; }
.ff-avmi.sai { animation: ffAvmiSai .3s ease-in both; }
@keyframes ffAvmi { from { transform: translateY(-24px); opacity: 0; } }
@keyframes ffAvmiSai { to { transform: translateY(-24px); opacity: 0; } }
.ff-avmi-m { flex: none; width: 72px; filter: drop-shadow(0 0 8px rgba(255, 210, 63, .55)); }
.ff-avmi-t { display: grid; gap: 3px; min-width: 0; }
.ff-avmi-p { margin: 0; font-size: 14.5px; line-height: 1.22; font-weight: 900; color: #fff; text-shadow: 0 2px 0 var(--ff-ink); }

/* o convite antes da rodada (1 vez por dia): marcar ou entrar na festa, ou jogar agora */
.ff-convmi { position: fixed; inset: 0; z-index: 45; }
.ff-convmi-fundo { position: absolute; inset: 0; background: rgba(30, 36, 48, .45); }
.ff-convmi-card { position: absolute; left: 10px; right: 10px; bottom: calc(var(--tabb, 72px) + 14px); max-width: 460px; margin: 0 auto; overflow: hidden; padding: 16px 14px 16px; box-sizing: border-box; background: linear-gradient(180deg, #0b1222 0%, #15284c 60%, #1f3d68 100%); color: #fff; border: 4px solid var(--ff-ink); border-radius: 20px; box-shadow: 0 0 0 3px var(--ff-y), 0 0 30px 6px rgba(255, 210, 63, .3), 0 9px 0 3px rgba(30, 36, 48, .35); animation: ffChega .4s cubic-bezier(.2, 1.4, .4, 1) both; }
.ff-convmi .ff-in { gap: 8px; }
.ff-convmi-card:focus { outline: none; }
.ff-convmi-a { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px; margin-top: 6px; }
.ff-convmi-a .ff-btn { min-height: 52px; padding: 0 8px 3px; font-size: 17px; line-height: 1.1; }
@media (max-width: 370px) { .ff-convmi-a .ff-btn { font-size: 16px; } }

/* a linha "agora" no alto da loja: festa guardada (acender) ou cidade em festa */
.ff-agora { display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 14px; background: #132240; border: 3px solid var(--ff-y); border-radius: 14px; box-shadow: 0 5px 0 rgba(0, 0, 0, .35); }
.ff-agora.acesa { border-color: #ff7a7a; padding-top: 12px; padding-bottom: 12px; }
.ff-agora-t { flex: 1 1 auto; min-width: 0; margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15.5px; line-height: 1.2; font-weight: 900; color: #fff; text-shadow: 0 2px 0 var(--ff-ink); }
.ff-agora .ff-btn { flex: none; width: auto; min-height: 46px; padding: 0 18px 3px; font-size: 17px; box-shadow: 0 4px 0 var(--ff-ink); }

/* os palcos de noite dentro da folha de novidades (nada clicável) */
.ff-nv { position: relative; overflow: hidden; display: grid; align-content: end; min-height: 118px; padding: 14px 14px 16px; background: linear-gradient(180deg, #0b1222 0%, #132546 55%, #1f3d68 100%); color: #fff; border: 3.5px solid var(--ff-ink); border-radius: 18px; pointer-events: none; }
.ff-nv .ff-ceu { border-radius: 14px; }
.ff-nv.nv-festa .ff-med { padding-top: 40px; }
.ff-nv .ff-nv-caixas { margin: 2px 0 4px; cursor: default; }
.ff-nv .ff-gratis { margin-top: 8px; padding: 9px 12px 10px; }
.ff-nv .ff-gratis-t { font-size: 15.5px; }
@media (max-height: 700px) { .ff-nv { min-height: 0; padding: 10px 12px 12px; } .ff-nv.nv-festa .ff-med { padding-top: 26px; } .ff-nv .ff-med-t { height: calc(6px + var(--i) * 6px); } }

@media (prefers-reduced-motion: reduce) {
  .ff-hud, .ff-hud-fogo, .ff-hud .ff-fog, .ff-hud-b, .ff-avmi, .ff-avmi.sai, .ff-convmi-card { animation: none !important; transition: none; }
  .ff-hud.vivo .ff-hud-fogo.f3 { opacity: .9; }
}

/* 05/11 (João: "tire todo movimento que é desnecessário"): nada se mexe sozinho sem motivo. Ficam: carregamento, retorno de toque e o que foi pago (lojas especiais) ou é prêmio (drones da cidade do futuro). */
.fb-big,#selring,#ajuda.novo::after,.alta-ic,.selo-pts::after,.abas .selo-pt,.avc-ponto,.fca-comp-im.esp,.rw-emo,.rw-dica,.rw-casa,.ofe .ofe-svg,.ofe .f1,.ofe .f2,.ofe .f3,.ofe .ofe-b,.ofe-pop-fogo .f1,.ofe-pop-fogo .f2,.ofe-pop-fogo .f3,.pf-q.pf-fogo.on .pf-v svg{animation:none!important}
.ofe-pop-fogo .ofe-svg{animation:ofePopFogo 1.1s cubic-bezier(.2,.9,.3,1.15) both!important}
