/* =========================================================================
   Cartografia da Convivência · versão para computador
   Usa os tokens de shared/viali.css. Tipografia grande para projeção.
   ========================================================================= */
html { font-size: 17px; }
@media (min-width: 1360px) { html { font-size: 18px; } }
@media (min-width: 1700px) { html { font-size: 20px; } }
@media (min-width: 1900px) { html { font-size: 22px; } }
.tela { background: var(--mapa-papel); font-size: 1rem; overflow-x: hidden; }
.tela button { font-family: inherit; }
#app { min-height: 100vh; position: relative; }
.fundo-topo { position: fixed; inset: 0; pointer-events: none; opacity: .55; z-index: 0; }
.fundo-topo svg { width: 100%; height: 100%; }
.pagina { position: relative; z-index: 1; padding: 0 clamp(16px, 3vw, 48px) 48px; max-width: 1680px; margin: 0 auto; }
.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- barra superior ---------- */
.barra { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px clamp(16px, 3vw, 48px); background: rgba(251, 247, 236, .88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--mapa-linha); min-height: 68px; }
.barra h1 { font-size: 1.35rem; display: flex; align-items: center; gap: .5em; }
.barra .esp { flex: 1; }
.btn-ic { appearance: none; border: 0; background: #fff; width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; color: var(--tinta); box-shadow: inset 0 0 0 2px var(--linha), 0 2px 0 rgba(28, 33, 71, .08); transition: transform .12s; flex: none; }
.btn-ic:hover { transform: translateY(-1px); }
.btn-ic:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 2px; }
.btn-ic svg { width: 24px; height: 24px; }
.btn { min-height: 48px; }
.btn.claro { background: #fff; color: var(--tinta); box-shadow: inset 0 0 0 2px var(--linha), 0 3px 0 rgba(28, 33, 71, .1); }
.btn.tinta { background: var(--tinta); }
.btn.moeda { background: var(--moeda); color: var(--tinta); box-shadow: 0 3px 0 var(--moeda-2); }
.btn.enorme { font-size: 1.5rem; padding: .9em 1.6em; border-radius: 22px; }
.btn.bloco { width: 100%; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn .sub { font-family: var(--f-texto); font-weight: 500; font-size: .75em; opacity: .85; }
.chip { display: inline-flex; align-items: center; gap: .4em; font-family: var(--f-display); font-weight: 600; font-size: .9rem; padding: .35em .85em; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px var(--linha); white-space: nowrap; }
.chip svg { width: 1.15em; height: 1.15em; }
.chip.t { background: var(--t); color: #fff; box-shadow: none; }
.chip.eq { background: var(--eq-c); box-shadow: inset 0 0 0 2px var(--eq); }
.rotulo { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; color: var(--tinta-2); }
.cartao { background: #fff; border-radius: var(--r-l); box-shadow: var(--sombra); padding: clamp(18px, 2vw, 28px); }
.grade-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.grade-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
h2.sec { font-size: 1.6rem; margin: 28px 0 14px; display: flex; align-items: center; gap: .5em; }
h2.sec svg { width: 1.1em; height: 1.1em; }
.lead { font-size: 1.15rem; color: var(--tinta-2); max-width: 60ch; }
input[type=text], input[type=number], textarea, select { font: inherit; color: var(--tinta); background: #fff; border: 2px solid var(--linha); border-radius: 14px; padding: .6em .8em; min-height: 48px; width: 100%; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--viali); box-shadow: 0 0 0 4px rgba(59, 63, 216, .15); }
label.campo { display: grid; gap: 6px; font-family: var(--f-display); font-weight: 600; }
.tabela-tela { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 1rem; }
.tabela-tela th { text-align: left; font-family: var(--f-display); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--tinta-2); padding: 10px 12px; border-bottom: 2px solid var(--tinta); }
.tabela-tela td { padding: 12px; border-bottom: 1px solid var(--linha); vertical-align: middle; }
.tabela-tela td.num, .tabela-tela th.num { text-align: center; font-variant-numeric: tabular-nums; }
.tabela-tela tr.lider td { background: var(--amarelo-c); }
.vazio { color: var(--tinta-3); }

/* ---------- tela inicial ---------- */
.inicio { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: center; padding: clamp(20px, 4vw, 64px); position: relative; z-index: 1; max-width: 1760px; margin: 0 auto; }
.mapa-vivo { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(1200px 700px at 20% 30%, #fffdf6 0%, var(--mapa-papel) 55%, #f3ecd8 100%); }
.mapa-vivo svg.curvas { position: absolute; inset: -6%; width: 112%; height: 112%; }
.mapa-vivo .camada { transform-origin: 50% 50%; animation: deriva 46s ease-in-out infinite alternate; }
.mapa-vivo .camada.b { animation-duration: 63s; animation-direction: alternate-reverse; }
.mapa-vivo path.cn { stroke-dasharray: 3200; stroke-dashoffset: 3200; animation: desenha 5s ease-out forwards; }
.mapa-vivo .trilha { stroke-dasharray: 2 9; animation: anda 30s linear infinite; }
.mapa-vivo .regiao { animation: respira 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.mapa-vivo .regiao:nth-child(2) { animation-delay: -2.3s; } .mapa-vivo .regiao:nth-child(3) { animation-delay: -4.6s; }
.mapa-vivo .rosa { position: absolute; right: 4vw; bottom: 5vh; width: clamp(110px, 12vw, 200px); opacity: .55; animation: gira 120s linear infinite; }
@keyframes deriva { from { transform: translate(-1.2%, -.8%) rotate(-.6deg) scale(1.02); } to { transform: translate(1.2%, .9%) rotate(.6deg) scale(1.05); } }
@keyframes desenha { to { stroke-dashoffset: 0; } }
@keyframes anda { to { stroke-dashoffset: -440; } }
@keyframes respira { 0%, 100% { transform: scale(1); opacity: .16; } 50% { transform: scale(1.06); opacity: .26; } }
@keyframes gira { to { transform: rotate(360deg); } }
.marca { display: grid; gap: 18px; }
.marca .selo { display: flex; align-items: center; gap: 14px; }
.marca .ano { font-family: var(--f-display); font-weight: 600; background: var(--tinta); color: #fff; border-radius: 999px; padding: .35em 1em; font-size: 1rem; letter-spacing: .04em; }
.marca h1 { font-size: clamp(2.8rem, 5.6vw, 5.6rem); line-height: .95; letter-spacing: -.025em; }
.marca h1 em { font-style: normal; display: block; color: var(--viali); }
.marca .sub { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 2.2rem); color: var(--tinta-2); display: flex; align-items: center; gap: .5em; }
.marca .sub::before { content: ""; width: 48px; height: 4px; border-radius: 4px; background: var(--escolhas); }
.marca .terrs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.marca p.lead { margin: 6px 0 0; }
.menu-ini { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tile { appearance: none; border: 0; cursor: pointer; text-align: left; background: rgba(255, 255, 255, .94); border-radius: 26px; padding: 22px 22px 20px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; color: var(--tinta); box-shadow: 0 1px 0 rgba(28, 33, 71, .06), 0 10px 28px rgba(28, 33, 71, .1); transition: transform .18s ease, box-shadow .18s ease; position: relative; overflow: hidden; min-height: 112px; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(28, 33, 71, .06), 0 18px 40px rgba(28, 33, 71, .16); }
.tile:focus-visible { outline: 4px solid var(--amarelo); outline-offset: 3px; }
.tile .ti { grid-row: span 2; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--tc, var(--viali)); color: #fff; }
.tile .ti svg { width: 36px; height: 36px; }
.tile b { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.tile span.d { font-size: .92rem; color: var(--tinta-2); line-height: 1.35; }
.tile.largo { grid-column: span 2; min-height: 96px; }
.tile.destaque { grid-column: span 2; background: var(--tinta); color: #fff; min-height: 128px; }
.tile.destaque span.d { color: rgba(255, 255, 255, .78); }
.tile.destaque .ti { background: var(--moeda); color: var(--tinta); }
.tile::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; border: 2px dashed var(--tc, var(--viali)); opacity: .18; }
.retomar { grid-column: span 2; display: flex; align-items: center; gap: 14px; background: var(--f-missao-c); border-radius: 20px; padding: 14px 18px; box-shadow: inset 0 0 0 2px var(--f-missao); }
.retomar .esp { flex: 1; }

/* ---------- peão / avatar ---------- */
.peao-svg { display: block; overflow: visible; }

/* ---------- partida ---------- */
.jogo { height: 100vh; display: grid; grid-template-rows: auto 1fr; position: relative; z-index: 1; overflow: hidden; }
.jogo .barra { position: relative; }
.relogio { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 1.7rem; font-variant-numeric: tabular-nums; background: #fff; border-radius: 999px; padding: 4px 6px 4px 16px; box-shadow: inset 0 0 0 2px var(--linha); }
.relogio.alerta { color: var(--erro); box-shadow: inset 0 0 0 3px var(--erro); animation: pulsa 1s ease-in-out infinite; }
.relogio .btn-ic { width: 40px; height: 40px; box-shadow: none; background: var(--nevoa); }
@keyframes pulsa { 50% { transform: scale(1.04); } }
.mesa { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 25vw, 420px); gap: clamp(12px, 1.4vw, 24px); padding: clamp(10px, 1.2vw, 20px); min-height: 0; }
.tab-area { min-width: 0; min-height: 0; display: grid; place-items: center; }
.tab-wrap { position: relative; width: 100%; max-height: 100%; aspect-ratio: 420 / 297; border-radius: 22px; overflow: hidden; box-shadow: 0 2px 0 rgba(28, 33, 71, .06), 0 20px 50px rgba(28, 33, 71, .16); background: var(--mapa-papel); }
.tab-wrap > svg { display: block; width: 100%; height: 100%; }
.peoes { position: absolute; inset: 0; pointer-events: none; }
.peao-tab { position: absolute; width: 4.2%; transform: translate(-50%, -88%); transition: left .24s cubic-bezier(.3, .7, .4, 1), top .24s cubic-bezier(.3, .7, .4, 1); filter: drop-shadow(0 3px 2px rgba(28, 33, 71, .25)); z-index: 2; }
.peao-tab.vez { z-index: 5; }
.peao-tab.vez::after { content: ""; position: absolute; left: 50%; bottom: -6%; width: 120%; height: 24%; transform: translateX(-50%); border-radius: 50%; border: 3px solid var(--tinta); animation: anel 1.4s ease-out infinite; }
@keyframes anel { from { opacity: .9; transform: translateX(-50%) scale(.6); } to { opacity: 0; transform: translateX(-50%) scale(1.6); } }
.peao-tab.pula > .peao-svg { animation: pulo .24s ease-out; }
@keyframes pulo { 40% { transform: translateY(-38%) scaleY(1.04); } 100% { transform: none; } }
.peao-tab.guia { opacity: .95; }
.alvo-casa { position: absolute; width: 6.5%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 4px solid var(--amarelo); box-shadow: 0 0 0 6px rgba(255, 193, 46, .35); pointer-events: none; animation: alvo 1s ease-in-out infinite alternate; z-index: 1; }
@keyframes alvo { to { transform: translate(-50%, -50%) scale(1.15); } }
.flutua { position: absolute; font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; pointer-events: none; z-index: 30; animation: sobe 1.3s ease-out forwards; text-shadow: 0 2px 0 #fff, 0 0 8px #fff; white-space: nowrap; }
@keyframes sobe { from { transform: translate(-50%, 0); opacity: 0; } 15% { opacity: 1; } to { transform: translate(-50%, -70px); opacity: 0; } }

.lado { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 12px; min-height: 0; }
.vez-card { background: #fff; border-radius: 24px; box-shadow: var(--sombra); padding: 14px 16px; display: grid; gap: 10px; position: relative; overflow: hidden; }
.vez-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--jc, var(--viali)); }
.vez-top { display: flex; align-items: center; gap: 12px; }
.vez-top .quem { flex: 1; min-width: 0; }
.vez-top .quem small { display: block; font-family: var(--f-display); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-2); }
.vez-top .quem b { display: block; font-family: var(--f-display); font-size: 1.6rem; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dado-zona { display: flex; align-items: center; gap: 14px; }
.dado-zona .acoes { flex: 1; display: grid; gap: 8px; }
.escolhe-dado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* dado 3D (faces 1·1·2·2·3·3) */
.dado3d { width: 86px; height: 86px; perspective: 500px; flex: none; }
.dado3d .cubo { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(32deg); transition: transform .9s cubic-bezier(.2, .9, .25, 1.05); }
.dado3d .face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 4px var(--tinta), inset 0 -6px 0 rgba(28, 33, 71, .08); display: grid; place-items: center; }
.dado3d .face svg { width: 100%; height: 100%; }
.dado3d .f0 { transform: translateZ(43px); } .dado3d .f1 { transform: rotateY(180deg) translateZ(43px); }
.dado3d .f2 { transform: rotateY(90deg) translateZ(43px); } .dado3d .f3 { transform: rotateY(-90deg) translateZ(43px); }
.dado3d .f4 { transform: rotateX(90deg) translateZ(43px); } .dado3d .f5 { transform: rotateX(-90deg) translateZ(43px); }
.dado3d.grande { width: 150px; height: 150px; }
.dado3d.grande .f0 { transform: translateZ(75px); } .dado3d.grande .f1 { transform: rotateY(180deg) translateZ(75px); }
.dado3d.grande .f2 { transform: rotateY(90deg) translateZ(75px); } .dado3d.grande .f3 { transform: rotateY(-90deg) translateZ(75px); }
.dado3d.grande .f4 { transform: rotateX(90deg) translateZ(75px); } .dado3d.grande .f5 { transform: rotateX(-90deg) translateZ(75px); }
.dado3d.grande .face { border-radius: 30px; box-shadow: inset 0 0 0 6px var(--tinta), inset 0 -10px 0 rgba(28, 33, 71, .08); }

.cofre { background: #fff; border-radius: 24px; box-shadow: var(--sombra); padding: 12px 16px; display: flex; align-items: center; gap: 14px; position: relative; }
.cofre .pilha { position: relative; width: 70px; height: 56px; flex: none; }
.cofre .pilha svg { position: absolute; width: 40px; height: 40px; transition: transform .3s; }
.cofre .num { font-family: var(--f-display); font-weight: 700; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.cofre .num small { font-size: .9rem; font-weight: 600; color: var(--tinta-2); display: block; letter-spacing: .06em; text-transform: uppercase; }
.cofre .flags { margin-left: auto; display: grid; gap: 4px; justify-items: end; }
.cofre.bate { animation: bate .5s ease; }
@keyframes bate { 30% { transform: scale(1.06); } 60% { transform: scale(.98); } }
.flag { font-family: var(--f-display); font-weight: 600; font-size: .72rem; padding: .25em .7em; border-radius: 999px; background: var(--nevoa); white-space: nowrap; }
.flag.neg { background: var(--erro); color: #fff; } .flag.pos { background: var(--ok); color: #fff; }

.jogadores { background: #fff; border-radius: 24px; box-shadow: var(--sombra); padding: 8px; overflow: auto; min-height: 0; }
.jog { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 4px 10px; border-radius: 16px; position: relative; }
.jog.vez { background: var(--nevoa); box-shadow: inset 4px 0 0 var(--jc); }
.jog .n { font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; line-height: 1.1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jog .n small { display: block; font-family: var(--f-texto); font-weight: 400; font-size: .76rem; color: var(--tinta-2); }
.jog .co { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; color: var(--coord); font-variant-numeric: tabular-nums; }
.jog .co svg { width: 22px; height: 22px; }
.jog .co.sobe { animation: bate .6s ease; }
.badge { font-family: var(--f-display); font-weight: 600; font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; padding: .15em .55em; border-radius: 999px; background: var(--tinta); color: #fff; margin-left: 4px; vertical-align: 2px; }
.badge.perde { background: var(--erro); } .badge.leitor { background: var(--f-rumo); } .badge.mod { background: var(--f-missao); }
.log { background: rgba(255, 255, 255, .7); border-radius: 18px; padding: 8px 12px; font-size: .84rem; max-height: 13vh; overflow: auto; color: var(--tinta-2); }
.log p { margin: 3px 0; line-height: 1.35; }
.log p.l-bom { color: #0d7a50; } .log p.l-custo { color: #b4232a; } .log p.l-coord { color: #136d99; } .log p.l-carta, .log p.l-marco, .log p.l-fim, .log p.l-decisao { color: var(--tinta); font-weight: 600; }

/* ---------- palco (sobreposições) ---------- */
#camada { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.palco { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: clamp(10px, 2vh, 24px); background: rgba(20, 24, 54, .55); backdrop-filter: blur(3px); pointer-events: auto; animation: aparece .25s ease; overflow: auto; }
@keyframes aparece { from { opacity: 0; } }
.palco.claro { background: rgba(251, 247, 236, .96); }
.palco-in { display: grid; gap: 16px; justify-items: center; width: min(1500px, 100%); max-height: 100%; min-height: 0; }
.palco-acoes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.palco-acoes .btn { font-size: 1.15rem; }
.painel-dec { background: #fff; border-radius: 28px; box-shadow: var(--sombra-forte); padding: clamp(20px, 3vw, 36px); width: min(820px, 100%); display: grid; gap: 18px; text-align: center; justify-items: center; position: relative; overflow: hidden; }
.painel-dec h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.painel-dec p.txt { font-size: 1.3rem; max-width: 40ch; margin: 0; }
.painel-dec .faixa { position: absolute; inset: 0 0 auto 0; height: 10px; background: var(--pc, var(--viali)); }
.painel-dec .ic-g { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; background: var(--pc, var(--viali)); color: #fff; }
.painel-dec .ic-g svg { width: 50px; height: 50px; }

/* ---------- cartas ---------- */
.carta-palco { display: grid; grid-template-columns: minmax(0, auto) minmax(250px, 380px); gap: clamp(14px, 2vw, 28px); align-items: start; justify-content: center; width: 100%; min-height: 0; }
.carta-palco.so { grid-template-columns: minmax(0, auto); }
.carta-3d { perspective: 1800px; width: min(1000px, 62vw); position: relative; }
.carta-palco.so .carta-3d { width: min(900px, 92vw); }
.carta-gira { position: relative; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, .8, .3, 1); }
.carta-gira.virada { transform: rotateY(180deg); }
.carta-gira > .lado-f, .carta-gira > .lado-v { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.carta-gira > .lado-v { position: absolute; inset: 0; transform: rotateY(180deg); }
.carta { --cs: 1; background: #fff; border-radius: 30px; box-shadow: 0 2px 0 rgba(0, 0, 0, .05), 0 30px 70px rgba(10, 14, 40, .35); overflow: hidden; display: flex; flex-direction: column; font-size: calc(1rem * var(--cs)); max-height: calc(100vh - 150px); position: relative; border: 3px solid var(--fam, var(--tinta)); }
.carta-cab { display: flex; align-items: center; gap: .8em; padding: .9em 1.2em; background: var(--fam, var(--tinta)); color: #fff; flex: none; }
.carta-cab.mt { background: var(--t, var(--tinta)); }
.carta-mt { border-color: var(--t, var(--tinta)); }
.carta-ic { width: 2.6em; height: 2.6em; border-radius: .8em; background: rgba(255, 255, 255, .2); display: grid; place-items: center; flex: none; }
.carta-ic svg { width: 1.7em; height: 1.7em; }
.carta-fam b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.7em; line-height: 1; letter-spacing: .01em; }
.carta-fam small { display: block; font-family: var(--f-display); font-weight: 500; font-size: .95em; opacity: .9; margin-top: .15em; }
.carta-tags { margin-left: auto; display: flex; gap: .5em; flex-wrap: wrap; justify-content: flex-end; }
.carta-tags .tag { display: inline-flex; align-items: center; gap: .35em; background: rgba(255, 255, 255, .22); border-radius: 999px; padding: .3em .8em; font-family: var(--f-display); font-weight: 600; font-size: .95em; }
.carta-tags .tag svg { width: 1.1em; height: 1.1em; }
.carta-corpo { padding: 1.2em 1.5em 1em; overflow: hidden; display: grid; gap: .8em; align-content: start; background: linear-gradient(var(--fam-c, #fff), #fff 5em); }
.carta-mt .carta-corpo { background: linear-gradient(var(--t-c, #fff), #fff 5em); }
.carta-tit { font-size: 2em; line-height: 1.12; margin: 0; }
.carta-tit.menor { font-size: 1.6em; font-family: var(--f-texto); font-weight: 500; line-height: 1.3; letter-spacing: 0; }
.carta-ins { font-size: 1.22em; line-height: 1.45; margin: 0; }
.carta-txt { font-size: 1.5em; line-height: 1.4; margin: 0; }
.carta-rodape { font-size: .95em; color: var(--tinta-2); margin: .2em 0 0; }
.carta-id { position: absolute; right: 1.1em; bottom: .5em; font-family: var(--f-display); font-weight: 600; font-size: .72em; color: var(--tinta-3); letter-spacing: .06em; }
.carta-cont { display: grid; gap: .7em; }
.carta-opcoes { display: grid; gap: .6em; }
.carta-opcoes.rumo { grid-template-columns: 1fr 1fr; }
.opc { appearance: none; border: 0; cursor: pointer; text-align: left; display: flex; align-items: center; gap: .75em; padding: .8em 1em; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 3px var(--fam-c), 0 2px 0 rgba(28, 33, 71, .06); font-family: var(--f-texto); font-size: 1.2em; line-height: 1.3; color: var(--tinta); transition: transform .12s, box-shadow .12s, background .15s; flex-wrap: wrap; }
.opc:hover:not([disabled]) { transform: translateY(-2px); box-shadow: inset 0 0 0 3px var(--fam), 0 6px 14px rgba(28, 33, 71, .12); }
.opc.sel { background: var(--fam-c); box-shadow: inset 0 0 0 4px var(--fam); }
.opc[disabled] { opacity: .45; cursor: not-allowed; }
.opc > span:nth-child(2) { flex: 1; min-width: 60%; }
.opc-l { width: 1.9em; height: 1.9em; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--fam); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 1.05em; }
.ab-opc { padding: 1em 1.1em; }
.ab-opc .opc-l { width: 2.2em; height: 2.2em; font-size: 1.3em; }
.efs { display: flex; flex-wrap: wrap; gap: .4em; width: 100%; padding-left: 3.1em; }
.carta-corpo > .efs { padding-left: 0; }
.ef { font-family: var(--f-display); font-weight: 600; font-size: .78em; padding: .25em .7em; border-radius: 999px; background: var(--nevoa); display: inline-flex; align-items: center; gap: .3em; }
.ef svg { width: 1.1em; height: 1.1em; }
.ef.ef-moedas { background: #fff3cc; color: #8a5f00; } .ef.neg { background: #fde3e4; color: #b4232a; }
.ef.ef-coordenadas { background: var(--sinais-c); color: #0f6f9e; }
.verso { display: grid; gap: 1em; padding: 1.4em 1.6em; font-size: 1.15em; }
.verso-tit { display: flex; align-items: center; gap: .4em; font-family: var(--f-display); font-weight: 700; font-size: 1.1em; color: var(--fam, var(--tinta)); }
.verso-tit svg { width: 1.2em; height: 1.2em; }
.verso p { margin: .3em 0 0; line-height: 1.45; }
.lado-v .carta { height: 100%; }
.carta-costas { background: var(--fam); border-radius: 30px; height: 100%; display: grid; place-items: center; color: #fff; position: relative; overflow: hidden; border: 3px solid var(--fam); }
.carta-costas::before { content: ""; position: absolute; inset: 14px; border: 2px dashed rgba(255, 255, 255, .5); border-radius: 20px; }
.carta-costas svg { width: 34%; height: auto; }

/* conteúdo das Missões */
.c-lista { margin: 0; padding: 0; list-style: none; display: grid; gap: .35em; font-size: 1.1em; }
.c-lista li { background: var(--nevoa); border-radius: 12px; padding: .45em .8em; line-height: 1.35; display: block; }
.c-lista li > .c-letra { margin-right: .5em; vertical-align: .05em; }
ol.c-lista { counter-reset: n; }
ol.c-lista:not(.c-pistas) > li::before { counter-increment: n; content: counter(n); font-family: var(--f-display); font-weight: 700; color: var(--fam, var(--tinta)); display: inline-block; min-width: 1.4em; }
.c-lista-dados { grid-template-columns: repeat(auto-fill, minmax(11em, 1fr)); }
.c-letras li { align-items: baseline; }
.c-letra { display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 .3em; border-radius: .6em; background: var(--fam, var(--tinta)); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: .9em; flex: none; }
.c-meta { color: var(--tinta-2); font-size: .92em; }
.c-chips { display: flex; flex-wrap: wrap; gap: .4em; }
.c-chip { font-family: var(--f-display); font-weight: 600; background: var(--nevoa); border-radius: 999px; padding: .3em .85em; font-size: 1em; }
.c-chip.forte { background: var(--moeda); color: var(--tinta); }
.c-grandes .c-chip { font-size: 1.3em; padding: .3em 1em; }
.c-bloco { display: grid; gap: .4em; }
.c-bloco-tit { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .78em; color: var(--tinta-2); }
.c-pergunta { display: flex; gap: .6em; align-items: center; background: var(--fam-c, var(--nevoa)); border-radius: 14px; padding: .6em .9em; font-family: var(--f-display); font-weight: 600; font-size: 1.25em; }
.c-pergunta svg { width: 1.3em; height: 1.3em; flex: none; color: var(--fam); }
.c-post { border: 2px solid var(--linha); border-radius: 16px; padding: .8em 1em; background: #fff; }
.c-post-tit { font-family: var(--f-display); font-weight: 700; font-size: 1.35em; text-transform: uppercase; color: var(--erro); }
.c-post p { margin: .35em 0 0; font-size: 1.1em; line-height: 1.45; }
.c-texto { margin: 0; font-size: 1.3em; line-height: 1.45; border-left: .3em solid var(--fam, var(--tinta)); padding: .3em .9em; background: var(--nevoa); border-radius: 0 14px 14px 0; font-family: var(--f-display); font-weight: 500; }
.c-nota { margin: 0; font-size: 1.05em; } .c-nota.forte { font-family: var(--f-display); font-weight: 600; }
.c-tab { border-collapse: collapse; width: 100%; font-size: 1.05em; }
.c-tab th { text-align: left; font-family: var(--f-display); font-weight: 600; font-size: .8em; text-transform: uppercase; letter-spacing: .06em; color: var(--tinta-2); padding: .3em .5em; border-bottom: 2px solid var(--linha); }
.c-tab td { padding: .35em .5em; border-bottom: 1px solid var(--linha); }
.c-dias { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; }
.c-dia { background: var(--nevoa); border-radius: 14px; padding: .5em; display: grid; gap: .35em; }
.c-dia-n { font-family: var(--f-display); font-weight: 700; }
.c-video { background: #fff; border-radius: 10px; padding: .35em .5em; display: grid; font-size: .95em; }
.c-video span { color: var(--tinta-2); font-size: .9em; }
.c-video.esc { box-shadow: inset 0 0 0 3px var(--fam); }
.c-video em { font-style: normal; font-family: var(--f-display); font-weight: 600; color: var(--fam); font-size: .85em; }
.c-seq { display: flex; flex-wrap: wrap; align-items: center; gap: .4em; font-family: var(--f-display); font-weight: 700; font-size: 1.4em; }
.c-seq span { background: var(--nevoa); border-radius: 12px; padding: .2em .6em; } .c-seq span.q { background: var(--fam); color: #fff; } .c-seq i { font-style: normal; color: var(--tinta-3); }
.c-grade { display: grid; grid-template-columns: repeat(3, 5.2em); grid-template-rows: repeat(3, 5.2em); gap: 4px; background: var(--tinta); padding: 4px; border-radius: 14px; width: max-content; }
.c-cel { background: #fff; border-radius: 9px; display: grid; place-items: center; align-content: center; }
.c-cel svg { width: 2.8em; height: 2.8em; } .c-cel small { font-size: .7em; color: var(--tinta-2); }
.c-resps { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.c-resp { background: var(--nevoa); border-radius: 14px; padding: .6em .8em; } .c-resp p { margin: .2em 0 0; }
.c-grupos { display: grid; grid-template-columns: repeat(auto-fit, minmax(9em, 1fr)); gap: .5em; }
.c-grupo { background: var(--nevoa); border-radius: 14px; padding: .5em .7em; display: grid; gap: .25em; }
.c-preco { display: flex; justify-content: space-between; gap: .5em; font-size: 1.05em; }
.c-segredo { display: flex; gap: .8em; align-items: center; background: var(--tinta); color: #fff; border-radius: 16px; padding: .8em 1em; }
.c-segredo svg { width: 1.8em; height: 1.8em; flex: none; } .c-segredo b { display: block; font-family: var(--f-display); font-size: 1.1em; } .c-segredo span { font-size: .95em; opacity: .85; }
.c-revelar-btn { appearance: none; border: 2px dashed var(--fam, var(--tinta)); background: #fff; border-radius: 14px; padding: .6em 1em; font-family: var(--f-display); font-weight: 600; font-size: 1em; cursor: pointer; display: inline-flex; gap: .4em; align-items: center; color: var(--tinta); }
.c-revelar-btn svg { width: 1.2em; height: 1.2em; }
.c-revelar .c-revelar-cont { display: none; } .c-revelar.aberto .c-revelar-cont { display: block; } .c-revelar.aberto .c-revelar-btn { display: none; }
.c-alerta { margin: 0; background: var(--f-agora-c); border-left: .35em solid var(--f-agora); border-radius: 0 14px 14px 0; padding: .6em .9em; font-size: 1.15em; font-family: var(--f-display); font-weight: 500; }
.c-pistas li { background: #fff; box-shadow: inset 0 0 0 2px var(--linha); }

/* painel lateral da Missão */
.missao-lado { display: grid; gap: 12px; align-content: start; }
.cronometro-g { background: #fff; border-radius: 26px; box-shadow: var(--sombra-forte); padding: 16px; display: grid; justify-items: center; gap: 8px; }
.cronometro-g .anel { position: relative; width: 190px; height: 190px; }
.cronometro-g .anel svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cronometro-g .anel .t { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 3rem; font-variant-numeric: tabular-nums; }
.cronometro-g.fim .anel .t { color: var(--erro); }
.cronometro-g .ctl { display: flex; gap: 8px; }
.mods { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.mods .flag { font-size: .85rem; padding: .35em .85em; }
.res-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.res-btns .btn { font-size: 1.15rem; padding: .9em .6em; }
.ganho { text-align: center; font-family: var(--f-display); font-weight: 600; color: var(--tinta); font-size: 1rem; background: #fff; border-radius: 14px; padding: .5em .8em; }
.conferir { background: #fff; border-radius: 22px; box-shadow: var(--sombra); padding: 14px; display: grid; gap: 10px; }
.conferir .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.conferir .opts button { appearance: none; border: 0; cursor: pointer; min-width: 52px; min-height: 48px; border-radius: 14px; background: var(--nevoa); font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; color: var(--tinta); box-shadow: inset 0 0 0 2px var(--linha); padding: 0 .6em; }
.conferir .opts button.sel { background: var(--f-missao); color: #fff; box-shadow: none; }
.conferir .seq { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; min-height: 1.6em; letter-spacing: .08em; }
.conferir .res { font-family: var(--f-display); font-weight: 600; padding: .5em .8em; border-radius: 12px; }
.conferir .res.ok { background: var(--f-missao-c); color: #0d7a50; } .conferir .res.nao { background: #fde3e4; color: #b4232a; }

/* privacidade / Leitor */
.privado { position: fixed; inset: 0; z-index: 60; background: var(--tinta); color: #fff; display: grid; place-items: center; padding: 24px; text-align: center; pointer-events: auto; animation: aparece .2s ease; }
.privado .caixa-p { display: grid; gap: 22px; justify-items: center; max-width: 980px; width: 100%; }
.privado h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.privado p { font-size: 1.3rem; opacity: .85; margin: 0; max-width: 46ch; }
.privado .olho { width: 120px; height: 120px; border-radius: 40px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.privado .olho svg { width: 70px; height: 70px; }
.pista-g { background: #fff; color: var(--tinta); border-radius: 30px; padding: clamp(24px, 4vw, 48px); width: 100%; display: grid; gap: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.pista-g .para { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; color: var(--tinta-2); display: flex; align-items: center; justify-content: center; gap: 10px; }
.pista-g .txt { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.2; }
.pista-g .cont-leitor { text-align: left; font-size: 1.1rem; }
.passos-p { display: flex; gap: 8px; justify-content: center; }
.passos-p i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .25); } .passos-p i.on { background: var(--amarelo); }

/* resultado */
.resultado { width: min(1100px, 100%); display: grid; gap: 18px; }
.resultado .topo-r { display: flex; align-items: center; gap: 18px; }
.nota-g { background: var(--tinta); color: #fff; border-radius: 30px; padding: 22px 30px; text-align: center; min-width: 230px; }
.nota-g b { display: block; font-family: var(--f-display); font-size: 5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.nota-g small { font-family: var(--f-display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.calc { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; }
.calc .p { background: #fff; border-radius: 16px; padding: 10px 16px; box-shadow: var(--sombra); text-align: center; }
.calc .p small { display: block; font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--tinta-2); }
.pergunta-final { background: var(--f-rumo-c); border-radius: 26px; padding: 22px 26px; display: flex; gap: 18px; align-items: center; box-shadow: inset 0 0 0 3px var(--f-rumo); }
.pergunta-final svg { width: 54px; height: 54px; color: var(--f-rumo); flex: none; }
.pergunta-final b { display: block; font-family: var(--f-display); font-size: 1.6rem; line-height: 1.2; }
.confete { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confete i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: cai 2.6s cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes cai { to { transform: translate(var(--dx), 110vh) rotate(var(--r)); } }

/* configuração da partida */
.passo-cfg { display: grid; gap: 18px; }
.opcoes-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.opt-g { appearance: none; border: 0; cursor: pointer; background: #fff; border-radius: 22px; padding: 16px; text-align: left; box-shadow: inset 0 0 0 3px var(--linha); display: grid; gap: 6px; color: var(--tinta); transition: box-shadow .15s, transform .15s; font-family: var(--f-texto); }
.opt-g:hover { transform: translateY(-2px); }
.opt-g.sel { box-shadow: inset 0 0 0 4px var(--sc, var(--viali)), 0 10px 24px rgba(28, 33, 71, .12); background: var(--scc, #fff); }
.opt-g b { font-family: var(--f-display); font-size: 1.2rem; }
.opt-g small { color: var(--tinta-2); font-size: .9rem; }
.opt-g .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--sc, var(--viali)); color: #fff; display: grid; place-items: center; }
.opt-g .ico svg { width: 30px; height: 30px; }
.jog-cfg { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.jog-cfg .jc { background: #fff; border-radius: 22px; padding: 14px; box-shadow: var(--sombra); display: grid; gap: 10px; justify-items: center; position: relative; }
.jog-cfg .jc .rm { position: absolute; right: 8px; top: 8px; width: 38px; height: 38px; }
.jog-cfg .jc input { text-align: center; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; }
.cores { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.cores button { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7); }
.cores button.sel { outline: 3px solid var(--tinta); outline-offset: 2px; }
.acess { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.acess button { appearance: none; border: 0; cursor: pointer; border-radius: 12px; padding: 4px 8px; background: var(--nevoa); font-family: var(--f-display); font-weight: 600; font-size: .8rem; color: var(--tinta); min-height: 34px; }
.acess button.sel { background: var(--tinta); color: #fff; }

/* campanha */
.abas { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.aba { appearance: none; border: 0; cursor: pointer; background: #fff; border-radius: 999px; padding: .6em 1.2em; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; color: var(--tinta); box-shadow: inset 0 0 0 2px var(--linha); display: inline-flex; gap: .4em; align-items: center; min-height: 48px; }
.aba svg { width: 1.2em; height: 1.2em; }
.aba.sel { background: var(--tinta); color: #fff; box-shadow: none; }
.eq-card { background: #fff; border-radius: 22px; box-shadow: var(--sombra); padding: 16px; display: grid; gap: 10px; border-top: 8px solid var(--eq); }
.eq-card h3 { display: flex; align-items: center; gap: .5em; font-size: 1.3rem; }
.letra-eq { width: 40px; height: 40px; border-radius: 12px; background: var(--eq); color: #fff; display: inline-grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; flex: none; }
.rot-grade { display: grid; gap: 10px; }
.rot-linha { display: grid; grid-template-columns: 110px repeat(3, 1fr); gap: 10px; align-items: stretch; }
.rot-linha .a { font-family: var(--f-display); font-weight: 600; display: grid; align-content: center; background: #fff; border-radius: 16px; padding: 8px 12px; box-shadow: var(--sombra); }
.rot-linha .a small { font-weight: 500; color: var(--tinta-2); font-size: .8rem; }
.rot-cel { background: var(--t-c); border-radius: 16px; padding: 8px 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 54px; }
.rot-cel.cab { background: var(--t); color: #fff; font-family: var(--f-display); font-weight: 600; gap: 8px; }
.rot-cel.cab svg { width: 1.3em; height: 1.3em; }
.rot-linha.atual .a { background: var(--tinta); color: #fff; } .rot-linha.atual .a small { color: rgba(255, 255, 255, .7); }
.rot-linha.fora { opacity: .35; }
textarea.backup { min-height: 140px; font-family: ui-monospace, Menlo, monospace; font-size: .8rem; }

/* regras */
.regras-l { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.regras-nav { position: sticky; top: 90px; display: grid; gap: 6px; }
.regras-nav button { appearance: none; border: 0; cursor: pointer; text-align: left; background: transparent; border-radius: 14px; padding: .6em .9em; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; color: var(--tinta); display: flex; gap: .55em; align-items: center; min-height: 48px; }
.regras-nav button svg { width: 1.3em; height: 1.3em; }
.regras-nav button.sel { background: #fff; box-shadow: var(--sombra); }
.fluxo { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: p; }
.fluxo .fp { background: #fff; border-radius: 22px; padding: 16px 14px; box-shadow: var(--sombra); display: grid; gap: 8px; justify-items: center; text-align: center; position: relative; }
.fluxo .fp .ic { width: 56px; height: 56px; border-radius: 18px; background: var(--viali); color: #fff; display: grid; place-items: center; }
.fluxo .fp .ic svg { width: 32px; height: 32px; }
.fluxo .fp b { font-family: var(--f-display); font-size: 1.1rem; line-height: 1.15; }
.fluxo .fp small { font-size: .82rem; color: var(--tinta-2); }
.fluxo .fp::before { counter-increment: p; content: counter(p); position: absolute; left: 10px; top: 8px; font-family: var(--f-display); font-weight: 700; color: var(--tinta-3); }
.fluxo .fp:not(:last-child)::after { content: ""; position: absolute; right: -11px; top: 50%; width: 10px; height: 10px; border-top: 3px solid var(--tinta-3); border-right: 3px solid var(--tinta-3); transform: translateY(-50%) rotate(45deg); }
.casa-item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; background: #fff; border-radius: 20px; padding: 12px 16px; box-shadow: var(--sombra); }
.casa-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--cc); background: var(--cc); }
.casa-ic svg { width: 32px; height: 32px; }
.casa-ic.neutra { background: #fff; color: var(--tinta); box-shadow: 0 0 0 3px #c9c2ad; }
.casa-item b { font-family: var(--f-display); font-size: 1.15rem; display: block; }
.casa-item span { color: var(--tinta-2); font-size: .95rem; }
.fam-item { border-radius: 24px; padding: 18px; background: #fff; box-shadow: var(--sombra); display: grid; gap: 8px; border-top: 10px solid var(--fam); }
.fam-item h3 { display: flex; gap: .5em; align-items: center; font-size: 1.4rem; color: var(--fam); }
.fam-item h3 svg { width: 1.3em; height: 1.3em; }

/* professor */
.prof-l { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.crono-proj { background: var(--tinta); color: #fff; border-radius: 32px; padding: clamp(20px, 3vw, 40px); display: grid; gap: 18px; justify-items: center; text-align: center; }
.crono-proj .t { font-family: var(--f-display); font-weight: 700; font-size: clamp(5rem, 13vw, 12rem); line-height: .9; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.crono-proj.alerta .t { color: var(--amarelo); } .crono-proj.fim .t { color: #ff8a8e; animation: pulsa 1s infinite; }
.crono-proj .barra-t { width: 100%; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.crono-proj .barra-t i { display: block; height: 100%; background: var(--moeda); border-radius: 999px; transition: width 1s linear; }
.crono-proj .presets { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.crono-proj .presets button { appearance: none; border: 0; cursor: pointer; border-radius: 999px; padding: .5em 1em; background: rgba(255, 255, 255, .12); color: #fff; font-family: var(--f-display); font-weight: 600; font-size: 1rem; min-height: 44px; }
.crono-proj .presets button.sel { background: #fff; color: var(--tinta); }
.imprev { display: grid; gap: 10px; }
.imprev details { background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--sombra); }
.imprev summary { cursor: pointer; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; }
.imprev p { margin: 8px 0 0; color: var(--tinta-2); }
.pdfs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pdf-l { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 14px; box-shadow: var(--sombra); color: var(--tinta); text-decoration: none; }
.pdf-l:hover { box-shadow: var(--sombra-forte); }
.pdf-l .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--erro); color: #fff; display: grid; place-items: center; flex: none; }
.pdf-l .ic svg { width: 26px; height: 26px; }
.pdf-l b { font-family: var(--f-display); display: block; } .pdf-l small { color: var(--tinta-2); }
.roteiro-l { display: grid; gap: 10px; }
.rt-item { display: grid; grid-template-columns: 74px 1fr; gap: 14px; background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--sombra); }
.rt-item .min { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; color: var(--viali); line-height: 1; }
.rt-item .min small { display: block; font-size: .75rem; color: var(--tinta-2); font-weight: 600; }
.rt-item b { font-family: var(--f-display); font-size: 1.15rem; }
.rt-item q { display: block; font-style: italic; margin: 4px 0; color: var(--tinta); }
.rt-item ul { margin: 4px 0 0; padding-left: 1.1em; color: var(--tinta-2); font-size: .95rem; }

/* Aula 1 */
.ilhas-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.ilha-col { background: #fff; border-radius: 24px; box-shadow: var(--sombra); padding: 14px; display: grid; gap: 8px; align-content: start; border-top: 10px solid var(--eq); min-height: 220px; }
.ilha-col header { display: flex; gap: 10px; align-items: center; }
.ilha-col header .simb { width: 52px; height: 52px; border-radius: 16px; background: var(--eq-c); display: grid; place-items: center; flex: none; }
.ilha-col header .simb svg { width: 38px; height: 38px; }
.ilha-col header b { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.1; }
.ilha-col header small { display: block; color: var(--tinta-2); font-size: .82rem; }
.aluno-chip { background: var(--eq-c); border-radius: 12px; padding: .45em .8em; font-family: var(--f-display); font-weight: 600; animation: entra .45s cubic-bezier(.3, .8, .3, 1.2) both; }
@keyframes entra { from { opacity: 0; transform: translateY(-30px) scale(.7) rotate(-6deg); } }
.cena { position: relative; width: min(1200px, 100%, calc((100vh - 330px) * 1.9)); aspect-ratio: 16 / 8.4; border-radius: 30px; overflow: hidden; background: #f4ead2; box-shadow: var(--sombra-forte); }
.cena svg.vis { position: absolute; inset: 0; width: 100%; height: 100%; }
.narra { width: min(1200px, 100%); background: rgba(255, 250, 238, .96); color: var(--tinta); border-radius: 22px; padding: 18px 26px; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.2rem, 2vw, 1.9rem); line-height: 1.3; }
.narra-t { display: block; animation: narra .9s ease both .2s; }
@keyframes narra { from { opacity: 0; transform: translateY(16px); } }
.cena .seg { position: absolute; left: 22px; top: 18px; font-family: var(--f-display); font-weight: 600; background: rgba(255, 255, 255, .85); border-radius: 999px; padding: .3em .9em; }
.cena .anim-pena { animation: pena 6s ease-in-out infinite; }
@keyframes pena { 50% { transform: translate(40px, 20px) rotate(8deg); } }
.cena .desenhar path { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: desenha 5s ease-out forwards; }
.cena .acende { animation: acende 1s ease both; } .cena .acende.d2 { animation-delay: 1.4s; } .cena .acende.d3 { animation-delay: 2.8s; }
@keyframes acende { from { opacity: 0; transform: scale(.85); } }
.cena .rola { animation: rola 2.4s cubic-bezier(.3, .7, .3, 1) both; }
@keyframes rola { from { transform: translate(-300px, -80px) rotate(-540deg); } }
.cena .ilha-s { animation: acende .8s ease both; }
.cena .pulso { animation: pulsoluz 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulsoluz { 50% { transform: scale(1.4); opacity: .5; } }
.carta-cartografo { background: #fffaf0; border-radius: 10px; box-shadow: var(--sombra-forte); padding: clamp(24px, 4vw, 56px); width: min(900px, 100%); font-family: var(--f-display); font-weight: 500; font-size: clamp(1.15rem, 1.7vw, 1.55rem); line-height: 1.55; white-space: pre-line; position: relative; background-image: repeating-linear-gradient(transparent 0 calc(1.55em - 1px), rgba(28, 33, 71, .06) calc(1.55em - 1px) 1.55em); }

/* Grande Missão Final */
.dossie { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
.etapas-nav { display: grid; gap: 10px; position: sticky; top: 90px; }
.etapa-b { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; background: #fff; border-radius: 18px; padding: 10px 12px; box-shadow: var(--sombra); font-family: var(--f-display); }
.etapa-b .n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--nevoa); font-weight: 700; font-size: 1.2rem; }
.etapa-b.aberta .n { background: var(--viali); color: #fff; } .etapa-b.feita .n { background: var(--ok); color: #fff; } .etapa-b.bloq { opacity: .5; }
.etapa-b b { display: block; font-size: 1.05rem; } .etapa-b small { color: var(--tinta-2); font-family: var(--f-texto); font-size: .8rem; }
.etapa-b .pts { font-weight: 700; font-size: 1.3rem; color: var(--ok); }
.etapa-b svg { width: 22px; height: 22px; }
.cadeado { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }
.cadeado .digito { width: 86px; height: 150px; border-radius: 22px; background: var(--tinta); color: #fff; display: grid; grid-template-rows: 44px 1fr 44px; place-items: stretch; text-align: center; font-family: var(--f-display); font-weight: 700; font-size: 3rem; overflow: hidden; }
.cadeado .digito span { display: grid; place-items: center; line-height: 1; }
.cadeado .digito button { appearance: none; border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; font-size: 1.3rem; width: 100%; height: 100%; }
.cadeado .digito button:hover { color: #fff; }
.cadeado-ic { width: 96px; height: 96px; transition: transform .4s; }
.cadeado-ic.abre { animation: abre .8s ease forwards; } .cadeado-ic.treme { animation: treme .45s ease; }
@keyframes abre { 40% { transform: translateY(-10px) rotate(-8deg); } to { transform: translateY(0) rotate(0); } }
@keyframes treme { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.lugares { display: flex; flex-wrap: wrap; gap: 10px; }
.lugar { background: #fff; border-radius: 16px; box-shadow: var(--sombra); padding: 10px 16px; font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; }
.chaves { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.chave { appearance: none; border: 0; cursor: pointer; text-align: left; background: #fff; border-radius: 20px; padding: 14px; box-shadow: inset 0 0 0 3px var(--linha); display: grid; gap: 8px; color: var(--tinta); font-family: var(--f-texto); transition: transform .15s, box-shadow .15s; }
.chave:hover { transform: translateY(-2px); }
.chave.sel { box-shadow: inset 0 0 0 4px var(--escolhas), 0 10px 22px rgba(28, 33, 71, .12); background: var(--escolhas-c); }
.chave b { font-family: var(--f-display); font-size: 1.15rem; }
.chave .preco { display: flex; align-items: center; gap: 6px; font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; }
.chave .preco svg { width: 28px; height: 28px; }
.simbolos { display: flex; gap: 6px; flex-wrap: wrap; }
.simb-f { display: inline-flex; align-items: center; gap: 4px; background: var(--nevoa); border-radius: 999px; padding: .2em .7em .2em .3em; font-family: var(--f-display); font-weight: 600; font-size: .9rem; }
.simb-f svg { width: 22px; height: 22px; }
.fechaduras { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.fechadura { width: 120px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 3px var(--linha); padding: 12px; display: grid; justify-items: center; gap: 6px; font-family: var(--f-display); font-weight: 600; transition: all .3s; }
.fechadura svg { width: 46px; height: 46px; }
.fechadura.aberta { background: var(--f-missao-c); box-shadow: inset 0 0 0 4px var(--ok); }
.moedas-linha { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.moedas-linha svg { width: 40px; height: 40px; transition: opacity .3s, transform .3s; }
.moedas-linha svg.gasta { opacity: .18; transform: scale(.8); }
.cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cartao-s { appearance: none; border: 0; cursor: pointer; text-align: left; background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: var(--sombra); display: grid; gap: 4px; color: var(--tinta); font-family: var(--f-texto); font-size: .98rem; position: relative; }
.cartao-s .fonte { font-family: var(--f-display); font-weight: 600; font-size: .82rem; color: var(--tinta-2); padding-right: 1.4em; }
.cartao-s .nn { position: absolute; right: 10px; top: 8px; font-family: var(--f-display); font-weight: 700; color: var(--tinta-3); }
.cartao-s.riscado { opacity: .45; } .cartao-s.riscado p { text-decoration: line-through; }
.cartao-s p { margin: 0; line-height: 1.35; }
.mapa66 { display: grid; grid-template-columns: 40px repeat(6, 1fr); gap: 4px; width: min(620px, 100%); }
.mapa66 .ch { display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; color: var(--tinta-2); }
.mapa66 button { appearance: none; border: 0; cursor: pointer; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; align-content: center; gap: 2px; font-family: var(--f-display); font-weight: 600; font-size: .68rem; color: var(--tinta); transition: transform .15s, box-shadow .15s; position: relative; }
.mapa66 button svg { width: clamp(18px, 3vw, 44px); height: clamp(18px, 3vw, 44px); }
.mapa66 button:hover { transform: scale(1.05); z-index: 2; }
.mapa66 button.sel { box-shadow: 0 0 0 4px var(--tinta), 0 0 0 8px var(--amarelo); z-index: 3; }
.mapa66 button.marcado::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 3px solid var(--erro); }
.mapa66 .selo-eq { position: absolute; inset: 6%; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); animation: pousa .8s cubic-bezier(.3, .8, .3, 1.3) both; }
@keyframes pousa { from { transform: translateY(-180px) scale(2.2); opacity: 0; } }
.placar-final { display: grid; gap: 10px; }
.ajuda-box { background: var(--amarelo-c); border-left: 8px solid var(--amarelo); border-radius: 0 16px 16px 0; padding: 12px 16px; font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; }

/* toasts */
#toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; pointer-events: none; }
.toast { background: var(--tinta); color: #fff; border-radius: 16px; padding: 12px 18px; font-family: var(--f-display); font-weight: 600; box-shadow: var(--sombra-forte); animation: aparece .2s ease; }

/* tablets e telas menores */
@media (max-width: 1180px) {
  .inicio { grid-template-columns: 1fr; padding-top: 32px; }
  .regras-l, .prof-l, .dossie { grid-template-columns: 1fr; }
  .regras-nav, .etapas-nav { position: static; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .fluxo { grid-template-columns: repeat(3, 1fr); }
  .fluxo .fp::after { display: none; }
}
@media (max-width: 900px) {
  .carta-palco { grid-template-columns: 1fr; justify-items: center; }
  .carta-3d { width: min(760px, 94vw); }
  .missao-lado { width: min(760px, 94vw); }
  .mesa { grid-template-columns: 1fr; overflow: auto; }
  .jogo { height: auto; min-height: 100vh; overflow: visible; }
  .menu-ini { grid-template-columns: 1fr; } .tile.destaque, .tile.largo, .retomar { grid-column: auto; }
  .carta-opcoes.rumo { grid-template-columns: 1fr; }
  .rot-linha { grid-template-columns: 80px repeat(3, 1fr); }
  .missao-lado { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .mapa-vivo .camada, .mapa-vivo .rosa, .mapa-vivo .regiao, .mapa-vivo .trilha { animation: none !important; }
  .mapa-vivo path.cn { stroke-dashoffset: 0; animation: none; }
  .peao-tab { transition: none; }
}
.peao-tab .peao-svg { width: 100%; height: auto; }
.grade-2 .carta { max-height: none; }
.grade-2 .carta .carta-corpo { overflow: visible; }
.carta-corpo { flex: 1 1 auto; min-height: 0; }
/* listas longas em duas colunas para caber na carta */
.carta .c-lista:has(> li:nth-child(6)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.carta .c-lista.c-lista-dados:has(> li:nth-child(6)) { grid-template-columns: repeat(auto-fill, minmax(9em, 1fr)); }
.res-btns .btn { font-size: 1.05rem; padding: .85em .5em; white-space: nowrap; }
