/* Fontes servidas daqui, sem internet: só o subconjunto latin, que cobre o português. */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600 800; font-display: swap; src: url(fontes/bricolage-grotesque.woff2) format("woff2") }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400 600; font-display: swap; src: url(fontes/ibm-plex-sans.woff2) format("woff2") }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(fontes/ibm-plex-mono-400.woff2) format("woff2") }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(fontes/ibm-plex-mono-500.woff2) format("woff2") }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-display: swap; src: url(fontes/ibm-plex-mono-600.woff2) format("woff2") }

/* Layout: crachá e decisão à esquerda, "git log" da carreira à direita; no celular tudo empilha em uma coluna. */
:root {
  --fundo: #edf0f4; --papel: #ffffff; --papel-2: #f5f7fa; --tinta: #17202b; --suave: #566273; --linha: #d3d9e2;
  --acento: #1f4fd8; --acento-tinta: #ffffff;
  --bom: #176f42; --bom-fundo: #e1f3e8; --ruim: #b3261e; --ruim-fundo: #fbe6e4; --alerta: #855600; --alerta-fundo: #fbefd3;
  --f0: #5f6b7a; --f1: #1a7f4b; --f2: #1f6fb8; --f3: #6d3fc4; --f4: #a8590b; --f5: #b8123c; --faixa-tinta: #ffffff;
  --emp-s: 58%; --emp-l: 30%; --emp-tinta: #ffffff; --k-luz: 1;
  --mao: "Ink Free", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  --titulo: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --texto: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --dado: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fundo: #0f141b; --papel: #182029; --papel-2: #1e2834; --tinta: #e7ecf3; --suave: #97a4b5; --linha: #2c3848;
    --acento: #7aa2ff; --acento-tinta: #0b1220;
    --bom: #5fd39a; --bom-fundo: #12301f; --ruim: #ff8a80; --ruim-fundo: #3a1614; --alerta: #f0c060; --alerta-fundo: #33270c;
    --f0: #9aa6b6; --f1: #4cc38a; --f2: #6ab3f3; --f3: #b196f7; --f4: #f0a04a; --f5: #ff7a99; --faixa-tinta: #0b1220;
    --emp-s: 60%; --emp-l: 68%; --emp-tinta: #0b1220; --k-luz: .88;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fundo: #0f141b; --papel: #182029; --papel-2: #1e2834; --tinta: #e7ecf3; --suave: #97a4b5; --linha: #2c3848;
  --acento: #7aa2ff; --acento-tinta: #0b1220;
  --bom: #5fd39a; --bom-fundo: #12301f; --ruim: #ff8a80; --ruim-fundo: #3a1614; --alerta: #f0c060; --alerta-fundo: #33270c;
  --f0: #9aa6b6; --f1: #4cc38a; --f2: #6ab3f3; --f3: #b196f7; --f4: #f0a04a; --f5: #ff7a99; --faixa-tinta: #0b1220;
  --emp-s: 60%; --emp-l: 68%; --emp-tinta: #0b1220; --k-luz: .88;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box }
body {
  margin: 0; background: var(--fundo); color: var(--tinta); font: 400 15px/1.5 var(--texto);
  padding-block: 20px 48px; overflow-x: clip; /* faísca do rolo que voa para fora não cria rolagem lateral */
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
#app { max-width: 1080px; margin: 0 auto }
body:has(> #app.tela-inicio) { padding-bottom: 16px } /* a página inicial cabe em 1280×720 sem rolar */
#app.tela-jogo { max-width: 1600px } /* no jogo, a largura vai para as opções lado a lado: a decisão cabe sem rolar */
h1, h2, h3, p, dl, dd, ol, ul, figure, fieldset { margin: 0; padding: 0 }
h1, h2, h3 { font-family: var(--titulo); line-height: 1.1; text-wrap: balance }
ol, ul { list-style: none }
fieldset { border: 0; min-width: 0 }
button, input { font: inherit; color: inherit }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px }
[tabindex="-1"]:focus { outline: none }

.sobre { font: 600 12px/1.3 var(--dado); letter-spacing: .08em; text-transform: uppercase; color: var(--suave) }
.lead { font-size: 17px; color: var(--suave); max-width: 46ch }
.dica { font-size: 13px; color: var(--suave) }
.btn { border: 1px solid var(--linha); background: var(--papel); border-radius: 10px; padding: 12px 20px; font-weight: 600; cursor: pointer }
.btn.primario { background: var(--acento); border-color: var(--acento); color: var(--acento-tinta) }
.btn:hover { filter: brightness(1.08) }
.acoes { display: flex; flex-wrap: wrap; gap: 10px }
.btn.discreto { padding: 8px 14px; font-size: 14px }
.btn.discreto:hover { border-color: var(--ruim); color: var(--ruim) }

/* Letreiro e barra superior (.barra já é a barrinha de estresse do crachá) */
.letreiro { font: 800 1em/1 var(--titulo); letter-spacing: -.035em; white-space: nowrap }
.l-bug { text-decoration: underline wavy var(--ruim); text-decoration-thickness: .06em; text-underline-offset: .2em; text-decoration-skip-ink: none }
.l-cursor { display: inline-block; width: .42em; height: .78em; margin-left: .08em; vertical-align: -.04em; background: var(--acento) }
.topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--linha) }
.topo .letreiro { font-size: 28px }

/* Tela inicial */
.inicio { display: grid; gap: 36px; align-items: center; padding-block: 8px }
.inicio > * { min-width: 0 }
.inicio h1 { font-size: clamp(2.6rem, 8vw, 4.75rem); font-weight: 800; letter-spacing: -.03em; margin: 12px 0 16px }
.ritmo { display: grid; gap: 8px; margin: 24px 0 }
.ritmo legend, .id-bloco legend, .campo { font: 600 12px/1.3 var(--dado); letter-spacing: .08em; text-transform: uppercase; color: var(--suave) }
.ritmo legend { margin-bottom: 8px }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--linha); border-radius: 999px; background: var(--papel); justify-self: start }
.seg label, .escolha, .camada { position: relative; cursor: pointer }
.seg input, .escolha input, .camada input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer }
.seg span { display: block; padding: 8px 16px; border-radius: 999px; font-weight: 500 }
.seg input:checked + span { background: var(--tinta); color: var(--papel) }
input:focus-visible + span { outline: 3px solid var(--acento); outline-offset: 2px }
.exemplo { display: grid; gap: 10px; padding: 14px; border: 1px dashed var(--linha); border-radius: 18px }
.exemplo .commits { background: var(--papel); border: 1px solid var(--linha); border-radius: 14px; padding: 16px 16px 2px }

/* Crachá */
.nivel { width: 66px; height: 72px; border-radius: 12px; display: grid; place-content: center; text-align: center; gap: 4px; background: var(--fx); color: var(--faixa-tinta) }
.f0 { --fx: var(--f0) } .f1 { --fx: var(--f1) } .f2 { --fx: var(--f2) } .f3 { --fx: var(--f3) } .f4 { --fx: var(--f4) } .f5 { --fx: var(--f5) }
.cr-area { display: inline-flex; align-items: center; gap: 4px; vertical-align: bottom; white-space: nowrap; color: var(--tinta) }
.cr-area .ico-area { width: 16px; height: 16px }
.marcas { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px }
.marcas i, .tag { font: 600 11px/1 var(--dado); font-style: normal; padding: 3px 6px; border-radius: 5px; border: 1px solid var(--linha); color: var(--suave) }
dt { font: 600 10px/1.3 var(--dado); letter-spacing: .08em; text-transform: uppercase; color: var(--suave) }
dd { font: 600 15px/1.3 var(--dado); font-variant-numeric: tabular-nums; margin-top: 3px; overflow-wrap: anywhere }
.estresse { position: relative; display: flex; align-items: center; gap: 8px }
.st-n { display: inline-block; min-width: 2ch; text-align: right }
.st-delta { position: absolute; z-index: 4; right: 0; top: -20px; font: 800 14px var(--dado); white-space: nowrap; pointer-events: none; animation: ganho-sobe 1.5s ease-out forwards }
.st-delta.sobe { color: var(--ruim) } .st-delta.desce { color: var(--bom) }
.estresse .barra { overflow: visible }
.estresse .barra i { position: relative; background: hsl(var(--h, 150) 80% 55%); box-shadow: 0 0 calc(var(--fogo, 0) * 12px) calc(var(--fogo, 0) * 3px) rgb(255 90 30 / .6) }
.estresse .barra i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: var(--fogo, 0); background: linear-gradient(90deg, #ff3d1a, #ffb13a, #ff6a1a, #ffd35a, #ff3d1a) 0 0 / 200% 100%; animation: st-fogo var(--vel, 1.2s) linear infinite } /* a brasa: fogo correndo por dentro da barra */
@keyframes st-fogo { to { background-position: -200% 0 } }
.estresse[data-cheio] .barra i { animation: st-lateja .55s ease-in-out infinite }
@keyframes st-lateja { 50% { filter: brightness(1.5); box-shadow: 0 0 18px 5px rgb(255 90 30 / .8) } }
.st-brasa, .st-cinza, .st-fumo { position: absolute; z-index: 3; border-radius: 50%; pointer-events: none }
.st-brasa { width: 3px; height: 3px; background: #ffcf5a; box-shadow: 0 0 5px 1px #ff7a1a }
.st-fumo { width: 6px; height: 6px; background: rgb(170 176 186 / .5); filter: blur(1.5px) }
@media (prefers-reduced-motion: reduce) { .estresse .barra i::after, .estresse[data-cheio] .barra i { animation: none } }
.barra { position: relative; flex: 1; min-width: 20px; height: 8px; border-radius: 99px; background: var(--linha); overflow: hidden }
.barra i { display: block; height: 100%; border-radius: 99px; background: var(--bom) }
.estresse.alto { color: var(--ruim) }
/* Crachá por porte: k0 etiqueta (sem empresa), k1 cupom, k2 plastificado, k3 PVC, k4 premium. O cartão é objeto físico: cores fixas, só escurece um pouco no tema escuro. */
.k { position: relative; display: grid }
.k-peca { position: relative; display: grid }
/* Na troca, o crachá velho fica por cima como fantasma enquanto anima e depois sai do DOM. */
.k-fantasma { position: absolute; inset: 0 0 auto; z-index: 3; pointer-events: none }
.k-cartao { position: relative; display: grid; filter: brightness(var(--k-luz)); color: var(--tinta);
  --tinta: #17202b; --suave: #566273; --linha: #d3d9e2; --f0: #5f6b7a; --f1: #1a7f4b; --f2: #1f6fb8; --f3: #6d3fc4; --f4: #a8590b; --f5: #b8123c; --alerta: #855600; --acento: #1f4fd8; --emp-s: 58%; --emp-l: 30%; --emp-tinta: #ffffff }
.k-cartao p { margin: 0 }
.k-nome { display: block; font: 800 21px/1.1 var(--titulo); text-transform: uppercase; overflow-wrap: anywhere }
.k-mao { font-family: var(--mao); font-weight: 400; text-transform: none }
.k-cargo { font-size: 14px; color: var(--suave) }
.k-mao .cr-area { color: inherit }
.k-logo { flex: none; display: grid }
.k-logo svg { display: block }
.k-foto { flex: none; display: grid; align-items: end; overflow: hidden; width: 58px; height: 70px; border-radius: 6px }
.k-foto svg { display: block; width: 100%; height: auto; fill: currentColor }
.k-dupla { display: grid; min-width: 0; line-height: 1.15 }

/* Sem empresa, antes do primeiro emprego: cartaz de poste colado com fita, nome a caneta e tirinhas de telefone.
   Tem que parecer mais pobre que o cupom de papel do primeiro emprego (porte 1). */
.k0-cartaz > .k-peca .k-cartao { padding: 12px 14px 0; background: #f6f3ea; color: #1d1d1f; rotate: -1.2deg; box-shadow: 0 8px 18px -10px rgb(0 0 0 / .6) }
.k0-cartaz > .k-peca .k-cartao::before, .k0-cartaz > .k-peca .k-cartao::after { content: ""; position: absolute; top: -9px; width: 64px; height: 20px; background: rgb(240 225 160 / .7) }
.k0-cartaz > .k-peca .k-cartao::before { left: 10px; rotate: -8deg }
.k0-cartaz > .k-peca .k-cartao::after { right: 10px; rotate: 6deg }
.k0-titulo { text-align: center; font: 800 23px/1 var(--titulo); text-transform: uppercase }
.k0-linha { display: grid; justify-items: center; padding: 10px 0 8px; text-align: center }
.k0-cartaz > .k-peca .k-nome { font-size: 28px; color: #1f3fae; rotate: -2deg }
.k0-cartaz > .k-peca .k-cargo { font-size: 15px; color: #1f3fae }
.k0-tiras { display: flex; margin: 0 -14px; border-top: 2px dashed #9a9586 }
.k0-tiras span { flex: 1; height: 54px; padding: 3px 0; writing-mode: vertical-rl; rotate: 180deg; font: 600 8.5px var(--dado); color: #444; border-left: 1px dashed #b9b4a4; text-align: center; overflow: hidden }
.k0-tiras span.foi { visibility: hidden } /* tirinha já arrancada */

/* Sem empresa, depois de demitido: perfil de rede profissional com o anel "open to work" */
.k0-perfil > .k-peca .k-cartao { overflow: hidden; border-radius: 14px; background: #fff; color: #1d2228; border: 1px solid #d3d9e2; box-shadow: 0 10px 20px -14px rgb(0 0 0 / .55) }
.k0-capa { height: 40px; background: linear-gradient(120deg, #1e6b3a, #3fae5c 60%, #9ee07a) }
.k0-corpo { display: grid; gap: 2px; padding: 0 14px 12px }
.k0-perfil > .k-peca .ow { --t: 78px; margin: -36px 0 4px; border-radius: 50%; box-shadow: 0 0 0 3px #fff }
.k0-perfil > .k-peca .k-nome { font: 800 19px/1.15 var(--titulo); text-transform: none; color: #1d2228 }
.k0-perfil > .k-peca .k-cargo { color: #4a5563 }
.k0-status { margin-top: 8px; padding: 7px 10px; border-radius: 9px; background: #edf7ef; color: #1e6b3a; font: 600 12px/1.3 var(--dado) }
.k0-status b { display: block; font-weight: 800 }
/* Anel "open to work": faixa verde grossa da esquerda até embaixo, sumindo nas pontas, com o texto em arco */
.ow { position: relative; display: block; flex: none; width: var(--t, 84px); aspect-ratio: 1 }
.ow-foto { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: grid; align-items: end; justify-items: center; background: linear-gradient(#e6ebf1, #cbd4df); color: #8390a2 }
.ow-foto svg { width: 70%; height: auto; fill: currentColor; display: block }
.ow-faixa { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(transparent 0 112deg, #2f7d32 150deg 268deg, transparent 300deg); -webkit-mask: radial-gradient(closest-side, transparent 72%, #000 73%); mask: radial-gradient(closest-side, transparent 72%, #000 73%) }
.ow-txt { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible }
.ow-txt text { font: 800 9.6px var(--titulo); letter-spacing: .03em; fill: #fff }

/* Porte 1: verso de cupom fiscal colado com fita, nome a caneta azul */
.k1 > .k-peca .k-cordao { position: relative; z-index: 1; justify-self: center; width: 86px; height: 24px; margin-bottom: -13px; background: rgb(246 230 160 / .78); rotate: -5deg; box-shadow: 0 1px 2px rgb(0 0 0 / .18) }
.k1 > .k-peca .k-cartao { padding: 16px 16px 24px; background: #fbf9f1; color: #2a2a2a; font-family: var(--dado); border: 1px solid #ddd8c6; rotate: 1.2deg;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 10px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 10px 100% }
.k1-cab { display: flex; gap: 10px; align-items: center; padding-bottom: 8px; border-bottom: 1px dashed #9a978c }
.k1-cab .k-logo { filter: grayscale(1) contrast(1.8) brightness(1.15); opacity: .8 }
.k1-cab b { font: 700 13px/1.2 var(--dado); letter-spacing: .03em; text-transform: uppercase; overflow-wrap: anywhere }
.k1-cab small { font-size: 11px; color: #6b6a63 }
.k1-linha { padding: 6px 0 0; font-size: 10.5px; letter-spacing: .22em; text-align: center; color: #6b6a63 }
.k1 > .k-peca .k-nome { margin-top: 2px; font-size: 32px; color: #1f3fae; rotate: -3deg; transform-origin: left }
.k1 > .k-peca .k-cargo { font-size: 16px; color: #1f3fae; rotate: -1.5deg; transform-origin: left }
.k1-total { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 6px; border-top: 1px dashed #9a978c; font-size: 12px; font-weight: 600 }

/* Porte 2: papel plastificado com bolha, impressão desbotada e nome errado corrigido à mão */
.k2 > .k-peca .k-cordao { position: relative; z-index: 1; justify-self: center; width: 38px; height: 22px; margin-bottom: -9px; border-radius: 5px 5px 2px 2px; background: linear-gradient(#eef1f5, #9aa3ad); box-shadow: inset 0 -4px 0 #7d8691, 0 2px 3px rgb(0 0 0 / .3) }
.k2 > .k-peca .k-cartao { padding: 7px; border-radius: 16px; background: linear-gradient(135deg, rgb(255 255 255 / .9), rgb(214 226 238 / .75)); border: 1px solid rgb(140 158 178 / .7); rotate: -.8deg; box-shadow: 0 10px 22px -16px rgb(0 0 0 / .65), inset 0 0 0 1px rgb(255 255 255 / .8) }
.k2 > .k-peca .k-cartao::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 80% 58%, rgb(255 255 255 / .95) 0 3px, #0000 4.5px), radial-gradient(circle at 84% 66%, rgb(255 255 255 / .85) 0 2px, #0000 3px), radial-gradient(ellipse 26px 13px at 16% 86%, rgb(255 255 255 / .6), #0000), linear-gradient(115deg, #0000 38%, rgb(255 255 255 / .38) 45%, #0000 53%) }
.k2-papel { overflow: hidden; border-radius: 9px; background: #fff; filter: saturate(.45) }
.k2-faixa { display: flex; gap: 9px; align-items: center; padding: 8px 10px; color: #fff; background: repeating-linear-gradient(0deg, rgb(255 255 255 / .14) 0 1px, #0000 1px 4px), hsl(var(--h) 45% 50%) }
.k2-faixa b { font: 700 15px/1.15 var(--titulo); overflow-wrap: anywhere; text-shadow: 1.5px 0 rgb(0 190 255 / .55), -1px 0 rgb(255 0 140 / .45) }
.k2-faixa small { font-size: 11px; opacity: .9 }
.k2-corpo { display: flex; gap: 10px; align-items: center; padding: 10px }
.k2 > .k-peca .k-foto { background: #c6d3e0; color: #5b6f86 }
.k2 > .k-peca .k-foto svg { shape-rendering: crispEdges }
.k2-errado { font: 700 14px/1.2 var(--dado); text-transform: uppercase; color: #6b7480; text-decoration: line-through 2px #c0392b; overflow-wrap: anywhere }
.k2 > .k-peca .k-nome { margin: -2px 0 2px; font-size: 26px; color: #1f3fae; rotate: -2deg; transform-origin: left }

/* Porte 3: PVC com faixa da marca, foto, matrícula e código de barras */
.k3 > .k-peca .k-cordao, .k4 > .k-peca .k-cordao { position: relative; z-index: 1; justify-self: center; width: 20px; height: 30px; margin-bottom: -5px; background: hsl(var(--h) 58% 34%) }
.k3 > .k-peca .k-cordao::after, .k4 > .k-peca .k-cordao::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 28px; height: 12px; translate: -50% 0; border-radius: 4px; background: linear-gradient(#f4f6f8, #a5adb7); box-shadow: 0 1px 2px rgb(0 0 0 / .35) }
.k3 > .k-peca .k-cartao { overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid #d3d9e2; box-shadow: 0 14px 28px -20px rgb(0 0 0 / .6) }
.k3-faixa { display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: hsl(var(--h) var(--emp-s) var(--emp-l)); color: var(--emp-tinta) }
.k3-faixa .k-logo { padding: 2px; border-radius: 9px; background: #fff }
.k3-faixa b { font: 700 17px/1.15 var(--titulo); overflow-wrap: anywhere }
.k3-faixa small { font-size: 12px; opacity: .9 }
.k3-corpo { display: flex; gap: 12px; align-items: center; padding: 12px 14px 8px }
.k3 > .k-peca .k-foto { background: linear-gradient(#e6ebf1, #cbd4df); color: #8390a2 }
.k3-mat { margin-top: 3px; font: 600 11px/1.3 var(--dado); color: var(--suave) }
.k3-pe { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 6px 14px 16px; border-top: 1px solid #e6eaf0 }
.k3-pe small { font: 600 10px/1.3 var(--dado); letter-spacing: .08em; text-transform: uppercase; color: var(--suave); text-align: right }
.k-barras { display: block; width: 128px; height: 26px; fill: #17202b }

/* Porte 4: premium escuro, cordão estampado com a logo, holograma girando, chip e QR */
.k4 > .k-peca .k-cordao { width: 24px; height: 40px; display: grid; justify-items: center; align-content: space-evenly; background: hsl(var(--h) 55% 26%); border-inline: 2px solid hsl(var(--h) 70% 60%) }
.k4 > .k-peca .k-cordao::after { background: linear-gradient(#ffe9a8, #b88a2e) }
.k4 > .k-peca .k-cartao { overflow: hidden; border-radius: 16px; border: 1px solid hsl(var(--h) 40% 38%); box-shadow: 0 18px 30px -18px hsl(var(--h) 60% 18% / .95);
  background: radial-gradient(120% 90% at 100% 0, hsl(var(--h) 55% 30%), #0000 60%), linear-gradient(160deg, hsl(var(--h) 30% 17%), hsl(var(--h) 25% 7%));
  --tinta: #f3f5f9; --suave: #b6c0ce; --f0: #9aa6b6; --f1: #4cc38a; --f2: #6ab3f3; --f3: #b196f7; --f4: #f0a04a; --f5: #ff7a99; --alerta: #f0c060; --acento: #7aa2ff; --emp-s: 60%; --emp-l: 68%; --emp-tinta: #0b1220 }
.k4 > .k-peca .k-cartao::after { content: ""; position: absolute; inset: 0; pointer-events: none; translate: -100% 0; background: linear-gradient(105deg, #0000 35%, rgb(255 255 255 / .13) 45%, rgb(190 220 255 / .2) 50%, #0000 60%) }
.k4-topo { display: flex; gap: 10px; align-items: center; padding: 12px 14px 2px }
.k4-topo b { font: 700 16px/1.15 var(--titulo); overflow-wrap: anywhere }
.k4-topo small { font: 600 10px/1.4 var(--dado); letter-spacing: .1em; text-transform: uppercase; color: var(--suave) }
.k4-holo { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-left: auto; border-radius: 50%; color: #fff; font-size: 17px; background: conic-gradient(#ff7ac6, #ffd36e, #7dffc4, #6ec8ff, #b98cff, #ff7ac6); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .55), 0 0 14px rgb(170 200 255 / .45) }
.k4-corpo { display: flex; gap: 12px; align-items: center; padding: 10px 14px }
.k4 > .k-peca .k-foto { width: 62px; height: 62px; border-radius: 50%; color: #141b26; background: radial-gradient(circle at 35% 30%, hsl(var(--h) 50% 78%), hsl(var(--h) 45% 42%)); box-shadow: 0 0 0 2px hsl(var(--h) 70% 65%) }
.k4 > .k-peca .k-nome { font-size: 20px; letter-spacing: .02em }
.k4-pe { display: flex; gap: 10px; align-items: center; padding: 2px 14px 16px }
.k4-chip { flex: none; width: 34px; height: 26px; border-radius: 5px; background: linear-gradient(90deg, #0000 32%, rgb(110 78 18 / .55) 32% 35%, #0000 35% 65%, rgb(110 78 18 / .55) 65% 68%, #0000 68%), linear-gradient(#0000 45%, rgb(110 78 18 / .55) 45% 55%, #0000 55%), linear-gradient(135deg, #fbe7a6, #d2a443 55%, #a57b25) }
.k4-pe code { font: 600 11px/1.3 var(--dado); letter-spacing: .12em; color: var(--suave) }
.k-qr { display: block; flex: none; width: 46px; height: 46px; margin-left: auto; padding: 3px; border-radius: 4px; background: #fff; fill: #0b1220 }
@media (prefers-reduced-motion: no-preference) {
  .k4-holo { animation: k-giro 2.4s linear infinite }
  .k4 > .k-peca .k-cartao::after { animation: k-brilho 4.5s ease-in-out infinite }
}
@keyframes k-giro { to { rotate: 1turn } }
@keyframes k-brilho { 0%, 55% { translate: -100% 0 } 100% { translate: 100% 0 } }

/* Conquistas: broches presos na borda de baixo do crachá (adesivo no papel, botton no plastificado, pin no PVC e no premium) */
.k-broches { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; margin: -9px 10px 0; padding: 0; list-style: none }
.k-broches li { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 16px; line-height: 1; background: #fff; box-shadow: 0 2px 4px rgb(0 0 0 / .28) }
.k-broches li:nth-child(odd) { rotate: -8deg } .k-broches li:nth-child(even) { rotate: 6deg }
.k-broches small { position: absolute; right: -6px; bottom: -4px; padding: 2px 3px; border-radius: 6px; font: 700 10px/1 var(--dado); background: #17202b; color: #fff }
.k0 > .k-peca .k-broches li, .k1 > .k-peca .k-broches li { border-radius: 7px; background: #fffdf4; box-shadow: 0 1px 2px rgb(0 0 0 / .35) }
.k2 > .k-peca .k-broches li { background: radial-gradient(circle at 35% 30%, #fff, hsl(var(--h) 45% 86%)); box-shadow: inset 0 0 0 3px hsl(var(--h) 40% 55%), 0 2px 4px rgb(0 0 0 / .3) }
.k3 > .k-peca .k-broches li { box-shadow: inset 0 0 0 3px #b8c0ca, 0 0 0 1px #8a939e, 0 2px 4px rgb(0 0 0 / .3) }
.k4 > .k-peca .k-broches li { box-shadow: inset 0 0 0 3px #d4a843, 0 0 0 1px #8a6a1f, 0 2px 6px rgb(0 0 0 / .4) }

/* Ficha: os números do jogo, fora do crachá */
.ficha { display: grid; grid-template-columns: 66px minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; margin: 12px 0 0; padding: 12px; border: 1px solid var(--linha); border-radius: 14px; background: var(--papel) }
.ficha > div { min-width: 0 }
.ficha .nivel { grid-row: span 2; width: auto; height: auto; min-height: 72px }
.nivel dt { color: inherit; letter-spacing: .1em }
.nivel dd { margin: 0; font: 800 32px/1 var(--titulo) }
/* Selo do nível: escada de metais nas faixas do motor (M.faixa), forma e enfeite crescem a cada metal */
/* Metais: --hi brilho, --base cor, --esc sombra, --txt número gravado */
.ficha .fi-nivel { grid-row: span 2 }
.fi-nivel dd { margin: 0; position: relative } /* a forja solta onda e faíscas em volta do selo */
.nv-palco { position: relative; isolation: isolate; display: grid; width: 66px; height: 80px }
.nv-palco[data-m="0"] { --hi: #a9a59f; --base: #6f6b66; --esc: #45413c; --txt: #1b1510 }
.nv-palco[data-m="1"] { --hi: #f6c08c; --base: #c27a3a; --esc: #7c4519; --txt: #3a1d07 }
.nv-palco[data-m="2"] { --hi: #ffffff; --base: #e4e9ef; --esc: #8d97a3; --txt: #1f2731 }
.nv-palco[data-m="3"] { --hi: #fff3b0; --base: #f2c94c; --esc: #a8730c; --txt: #4a3200 }
.nv-palco[data-m="4"] { --hi: #f2fffd; --base: #9fe0d8; --esc: #4f9c94; --txt: #0d3a36 }
.nv-palco[data-m="5"] { --hi: #ffffff; --base: #bfe6ff; --esc: #7fa8ff; --txt: #13234a }
.nv { position: relative; z-index: 1; display: grid; place-content: center; gap: 3px; text-align: center; color: var(--txt); background: linear-gradient(150deg, var(--hi) 0%, var(--base) 30%, var(--esc) 58%, var(--base) 78%, var(--hi) 100%) }
.nv small { font: 700 9px/1 var(--dado); letter-spacing: .1em; text-transform: uppercase; opacity: .7 }
.nv b { font: 800 30px/1 var(--titulo); text-shadow: 0 1px 0 rgb(255 255 255 / .5), 0 -1px 0 rgb(0 0 0 / .25) } /* número gravado no metal */
/* Ferro enferrujado: manchas de ferrugem sobre o metal escuro, para não confundir com a prata */
.nv-palco[data-m="0"] .nv { background: radial-gradient(circle at 22% 18%, rgb(168 84 38 / .9) 0 5px, transparent 9px), radial-gradient(circle at 80% 30%, rgb(140 62 24 / .75) 0 7px, transparent 12px), radial-gradient(ellipse 60% 30% at 70% 88%, rgb(158 74 30 / .85), transparent 70%), radial-gradient(circle at 12% 72%, rgb(120 52 20 / .7) 0 4px, transparent 8px), radial-gradient(circle at 48% 55%, rgb(176 96 44 / .35) 0 10px, transparent 18px), linear-gradient(150deg, var(--hi) 0%, var(--base) 35%, var(--esc) 65%, var(--base) 100%) }
/* Prata espelhada: faixas de luz duras, como metal polido */
.nv-palco[data-m="2"] .nv { background: linear-gradient(150deg, #fff 0%, #eef2f6 18%, #b9c2cc 34%, #fff 44%, #fff 47%, #a7b1bd 60%, #dfe5ec 78%, #fff 100%) }
.nv-palco[data-m="5"] .nv { background: linear-gradient(150deg, #fff, #bfefff 22%, #ffc8f5 42%, #fff6b8 62%, #b8ffd9 82%, #fff); background-size: 300% 300%; animation: nv-holo 4s ease-in-out infinite alternate }
@keyframes nv-holo { from { background-position: 0% 0% } to { background-position: 100% 100% } } /* vai e volta: dar a volta no ladrilho mostrava a costura em quadrados */

/* Recortes em path() com cantos levemente arredondados, em px: valem para o selo de 66×80 e para o tamanho de cada enfeite */
/* o contorno vem de drop-shadow porque o recorte cortaria borda e box-shadow; a aura pulsa no mesmo filtro */
.nv-palco { filter: drop-shadow(0 0 0 rgb(0 0 0 / .6)) drop-shadow(0 3px 4px rgb(0 0 0 / .45)) }
.nv-palco[data-m="0"] .nv { border-radius: 8px }
.nv-palco[data-m="1"] .nv { clip-path: path('M0 3 Q0 0 3 0 L63 0 Q66 0 66 3 L66 51.4 Q66 54.4 63.6 56.2 L35.4 78.2 Q33 80 30.6 78.2 L2.4 56.2 Q0 54.4 0 51.4 Z') }
.nv-palco[data-m="2"] .nv { clip-path: path('M0 10.2 Q0 7.2 2.9 6.6 L30.1 0.6 Q33 0 35.9 0.6 L63.1 6.6 Q66 7.2 66 10.2 L66 51.4 Q66 54.4 63.6 56.2 L35.4 78.2 Q33 80 30.6 78.2 L2.4 56.2 Q0 54.4 0 51.4 Z') }
.nv-palco[data-m="3"] .nv { clip-path: path('M0 10.2 Q0 7.2 2.9 6.6 L30.1 0.6 Q33 0 35.9 0.6 L63.1 6.6 Q66 7.2 66 10.2 L66 51.4 Q66 54.4 63.6 56.2 L35.4 78.2 Q33 80 30.6 78.2 L2.4 56.2 Q0 54.4 0 51.4 Z') }
.nv-palco[data-m="3"]::before, .nv-palco[data-m="3"]::after { content: ""; position: absolute; top: 14%; width: 14px; height: 40%; background: linear-gradient(var(--hi), var(--esc)); z-index: 0 }
.nv-palco[data-m="3"]::before { left: -9px; clip-path: path('M14 1.5 Q14 0 12.8 0.8 L1.2 8.8 Q0 9.6 1 10.7 L4.6 14.9 Q5.6 16 4.7 17.2 L0.9 22.8 Q0 24 1.3 24.7 L12.7 31.3 Q14 32 14 30.5 Z') }
.nv-palco[data-m="3"]::after { right: -9px; clip-path: path('M0 1.5 Q0 0 1.2 0.8 L12.8 8.8 Q14 9.6 13 10.7 L9.4 14.9 Q8.4 16 9.3 17.2 L13.1 22.8 Q14 24 12.7 24.7 L1.3 31.3 Q0 32 0 30.5 Z') }
.nv-palco[data-m="4"] .nv { clip-path: path('M30.4 1.4 Q33 0 35.6 1.4 L63.4 16.2 Q66 17.6 66 20.6 L66 59.4 Q66 62.4 63.4 63.8 L35.6 78.6 Q33 80 30.4 78.6 L2.6 63.8 Q0 62.4 0 59.4 L0 20.6 Q0 17.6 2.6 16.2 Z') }
/* Platina: hexágono com coroa e asas de 4 penas numa peça só atrás do selo; o miolo fica escondido pelo hexágono */
.nv-palco[data-m="4"]::before { content: ""; position: absolute; z-index: 0; top: -11px; bottom: 20px; left: -12px; right: -12px; background: linear-gradient(90deg, var(--esc), var(--hi) 22%, var(--base) 50%, var(--hi) 78%, var(--esc)); clip-path: path('M20 71 Q18 71 16.1 70.3 L5.5 66.1 Q3.6 65.3 5 63.9 L9.4 59.6 Q10.8 58.2 9.1 57.1 L1.7 52.2 Q0 51.1 1.6 49.9 L7.4 45.3 Q9 44 7.7 42.5 L1.3 35.6 Q0 34.1 1.9 33.3 L8.9 30.6 Q10.8 29.8 9.7 28.1 L6.5 23 Q5.4 21.3 7.3 21.8 L19.7 25.1 Q21.6 25.6 23.4 24.7 L28.8 22.2 Q30.6 21.3 30.8 19.3 L32.2 4.8 Q32.4 2.8 33.5 4.5 L37.6 11.1 Q38.7 12.8 39.6 11 L44.1 1.8 Q45 0 45.9 1.8 L50.4 11 Q51.3 12.8 52.4 11.1 L56.5 4.5 Q57.6 2.8 57.8 4.8 L59.2 19.3 Q59.4 21.3 61.2 22.2 L66.6 24.7 Q68.4 25.6 70.3 25.1 L82.7 21.8 Q84.6 21.3 83.5 23 L80.3 28.1 Q79.2 29.8 81.1 30.6 L88.1 33.3 Q90 34.1 88.7 35.6 L82.3 42.5 Q81 44 82.6 45.3 L88.4 49.9 Q90 51.1 88.3 52.2 L80.9 57.1 Q79.2 58.2 80.6 59.6 L85 63.9 Q86.4 65.3 84.5 66.1 L73.9 70.3 Q72 71 70 71 Z') }
/* Diamante: asas de 6 penas viradas para cima (maiores que as da platina) e coroa de 5 pontas com joia, em furta-cor */
.nv-palco[data-m="5"]::before { content: ""; position: absolute; z-index: 0; top: -8px; bottom: 20px; left: -13px; right: -13px; background: linear-gradient(90deg, #6f86e8, #c9d8ff 14%, #ffc4f2 30%, #fff6c8 50%, #ffc4f2 70%, #c9d8ff 86%, #6f86e8); clip-path: path('M38.8 68 Q36.8 68 34.9 67.3 L29.5 65.3 Q27.6 64.6 25.7 64 L14.8 60.5 Q12.9 59.8 11.5 58.4 L5.1 51.8 Q3.7 50.3 5.6 50 L9.1 49.3 Q11 49 9.6 47.6 L1.4 39.5 Q0 38.1 2 37.8 L7.2 37 Q9.2 36.7 8.2 35 L2.9 26.2 Q1.8 24.5 3.8 24.5 L9 24.5 Q11 24.5 10.3 22.6 L6.3 12.7 Q5.5 10.9 7.3 11.7 L12.9 14.1 Q14.7 15 14.5 13 L13.1 2 Q12.9 0 14.3 1.4 L20.7 8.1 Q22.1 9.5 23.9 10.3 L44.2 19.6 Q46 20.4 47.8 19.6 L68.1 10.3 Q69.9 9.5 71.3 8.1 L77.7 1.4 Q79.1 0 78.9 2 L77.5 13 Q77.3 15 79.1 14.1 L84.7 11.7 Q86.5 10.9 85.7 12.7 L81.7 22.6 Q81 24.5 83 24.5 L88.2 24.5 Q90.2 24.5 89.1 26.2 L83.8 35 Q82.8 36.7 84.8 37 L90 37.8 Q92 38.1 90.6 39.5 L82.4 47.6 Q81 49 82.9 49.3 L86.4 50 Q88.3 50.3 86.9 51.8 L80.5 58.4 Q79.1 59.8 77.2 60.5 L66.3 64 Q64.4 64.6 62.5 65.3 L57.1 67.3 Q55.2 68 53.2 68 Z') }
.nv-palco[data-m="5"]::after { content: ""; position: absolute; z-index: 0; top: -15px; height: 17px; left: 11px; right: 11px; background: radial-gradient(circle at 50% 72%, #ff8fe9 0 2.5px, transparent 3.5px), radial-gradient(circle at 25% 80%, #8fd8ff 0 1.8px, transparent 2.8px), radial-gradient(circle at 75% 80%, #8fd8ff 0 1.8px, transparent 2.8px), linear-gradient(#fff, #d9ecff 50%, #a9bfff); clip-path: path('M1.5 17 Q0 17 0 15.5 L0 8 Q0 6.5 1.2 7.4 L5 10.6 Q6.2 11.6 6.8 10.2 L10.4 2.7 Q11 1.4 11.8 2.6 L15.9 8.6 Q16.7 9.9 17.4 8.5 L21.3 1.3 Q22 0 22.7 1.3 L26.6 8.5 Q27.3 9.9 28.1 8.6 L32.2 2.6 Q33 1.4 33.6 2.7 L37.2 10.2 Q37.8 11.6 39 10.6 L42.8 7.4 Q44 6.5 44 8 L44 15.5 Q44 17 42.5 17 Z') }
.nv-palco[data-m="5"] .nv { clip-path: path('M12.9 2.5 Q14.5 0 17.5 0 L48.5 0 Q51.5 0 53.1 2.5 L64.4 19.9 Q66 22.4 64.5 25 L34.5 77.4 Q33 80 31.5 77.4 L1.5 25 Q0 22.4 1.6 19.9 Z'); padding-bottom: 14px }
.nv-palco[data-m="5"] .nv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 48%, rgb(255 255 255 / .55) 50%, transparent 52%), linear-gradient(80deg, transparent 48%, rgb(120 150 255 / .3) 50%, transparent 52%), linear-gradient(transparent 27%, rgb(255 255 255 / .6) 28%, transparent 29%) }
.nv-palco[data-m="4"] .nv small, .nv-palco[data-m="5"] .nv small { display: none }

.nv-reflexo { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none }
.nv-reflexo::before { content: ""; position: absolute; top: -30%; bottom: -30%; left: -80%; width: 50%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / .7), transparent); transform: skewX(-20deg); animation: nv-reflexo var(--t) ease-in-out infinite }
.nv-palco[data-m="3"] .nv-reflexo { --t: 3.6s } .nv-palco[data-m="4"] .nv-reflexo { --t: 2.6s } .nv-palco[data-m="5"] .nv-reflexo { --t: 1.8s }
@keyframes nv-reflexo { 0%, 55% { left: -80% } 100% { left: 140% } }
.nv-palco[data-m="4"] { --aura: rgb(140 230 220 / .9) } .nv-palco[data-m="5"] { --aura: rgb(205 190 255 / .95) }
.nv-palco:is([data-m="4"], [data-m="5"]) { animation: nv-aura 2.2s ease-in-out infinite }
@keyframes nv-aura { 50% { filter: drop-shadow(0 0 0 rgb(0 0 0 / .6)) drop-shadow(0 3px 4px rgb(0 0 0 / .45)) drop-shadow(0 0 9px var(--aura)) } }
@property --nv-giro { syntax: '<angle>'; inherits: false; initial-value: 0deg }
.nv-raios { position: absolute; z-index: 0; inset: -16px; pointer-events: none; background: repeating-conic-gradient(from var(--nv-giro), rgb(200 240 255 / .45) 0 8deg, transparent 8deg 24deg); -webkit-mask: radial-gradient(closest-side, #000 40%, transparent 100%); mask: radial-gradient(closest-side, #000 40%, transparent 100%); animation: nv-gira 9s linear infinite, nv-arco 9s linear infinite }
@keyframes nv-gira { to { --nv-giro: 360deg } }
@keyframes nv-arco { to { filter: hue-rotate(360deg) } }
.nv-faisca { position: absolute; z-index: 2; left: var(--x); top: var(--y); font-style: normal; font-size: var(--t, 12px); line-height: 1; color: #fff; text-shadow: 0 0 8px var(--c, #bfefff); pointer-events: none; animation: nv-cintila var(--d, 1.2s) var(--a, 0s) ease-in-out infinite }
@keyframes nv-cintila { 50% { transform: scale(.3) rotate(45deg); opacity: .3 } }

@media (prefers-reduced-motion: reduce) { .nv-palco, .nv-palco *, .nv-palco::before, .nv-palco::after { animation: none !important } }
.fi-regiao { grid-column: span 2 }
.fi-largo { grid-column: 1 / -1 }
.ficha .marcas { margin-top: 4px }
.k-carimbo { position: absolute; z-index: 5; left: 50%; top: 42%; translate: -50% -50%; rotate: -12deg; padding: 6px 12px; border: 4px solid var(--carimbo); border-radius: 8px; color: var(--carimbo); background: rgb(255 255 255 / .82); font: 800 22px/1 var(--titulo); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap }
/* Troca de crachá: carimbo e desliza. A ficha velha segura os números antigos até o crachá novo entrar.
   O velho sai aninhado no novo: por isso as regras de tipo usam ".kN > .k-peca", senão o estilo do novo vaza no velho. */
@media (prefers-reduced-motion: no-preference) {
  .k-carimbo { animation: kb-carimbo .3s cubic-bezier(.3, 1.6, .5, 1) both }
  .k-fantasma .k-peca { animation: kb-sai 1.15s ease-in forwards }
  .k-fantasma > .ficha { animation: kb-some 0s .7s forwards }
  .k-entrando > .k-peca { animation: kb-entra .5s .7s cubic-bezier(.2, 1.3, .5, 1) both }
  .k-entrando > .ficha { animation: kb-aparece .25s .7s both }
}
@keyframes kb-carimbo { from { scale: 2.4; opacity: 0 } }
@keyframes kb-sai { 0%, 55% { translate: 0 0; rotate: 0deg; opacity: 1 } 100% { translate: -130% 10px; rotate: -10deg; opacity: 0 } }
@keyframes kb-entra { from { translate: 130% 0; rotate: 8deg; opacity: 0 } }
@keyframes kb-some { to { visibility: hidden } }
@keyframes kb-aparece { from { opacity: 0 } }

/* Monte seu crachá */
.identidade { display: grid; gap: 24px }
.identidade h1, .fim h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800; letter-spacing: -.02em }
.id-grade { display: grid; gap: 24px }
.id-grade > * { min-width: 0 }
.id-previa, .id-bloco { display: grid; gap: 10px; align-content: start }
.id-coluna { display: grid; gap: 24px; align-content: start }
.id-bloco legend { margin-bottom: 10px }
.campo { display: grid; gap: 6px }
.campo input { font: 500 16px var(--texto); letter-spacing: 0; text-transform: none; color: var(--tinta); padding: 11px 12px; border: 1px solid var(--suave); border-radius: 10px; background: var(--papel); width: 100% }
.escolha span { display: grid; gap: 2px; padding: 11px 12px 11px 38px; border: 1px solid var(--linha); border-radius: 12px; background: var(--papel) }
.escolha span::before { content: ""; position: absolute; left: 13px; top: 15px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--suave) }
.escolha input:checked + span { border-color: var(--acento); box-shadow: inset 0 0 0 1px var(--acento) }
.escolha input:checked + span::before { border: 5px solid var(--acento) }
.escolha small { color: var(--suave); font-size: 13px }
.escolha em { font: 500 12px/1.4 var(--dado); font-style: normal; color: var(--bom) }
.pilha { display: grid; grid-template-columns: 1fr 1fr; gap: 6px }
.camada.larga { grid-column: 1 / -1 }
.camada span { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 11px 8px; border: 1px solid var(--linha); border-radius: 8px; background: var(--papel); font: 500 13px var(--dado) }
.ico-area { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--cor); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.camada input:checked + span .ico-area { stroke: currentColor }
.camada input:checked + span { background: var(--tinta); border-color: var(--tinta); color: var(--papel) }

/* Jogo */
.jogo { display: grid; gap: 16px 20px; grid-template-columns: minmax(0, 1fr); align-items: start; grid-template-areas: "cracha" "decisao" "log" }
.jogo > .cracha { grid-area: cracha; margin-top: 0 }
.jogo > .decisao { grid-area: decisao }
.jogo > .log { grid-area: log }
.decisao, .log { background: var(--papel); border: 1px solid var(--linha); border-radius: 14px; padding: 16px; min-width: 0 }
.decisao { display: grid; gap: 10px }
.decisao h2 { font-size: 23px; font-weight: 800 }
.decisao > p:not(.sobre) { color: var(--suave) }
.avisos { display: grid; gap: 4px; padding: 10px 12px; border-radius: 8px; background: var(--papel-2); font: 12.5px/1.5 var(--dado) }
/* Progresso da carreira: um segmento por decisão; as feitas preenchidas, a atual maior e acesa */
.etapas { display: grid; gap: 7px }
.etapas ol { display: flex; align-items: center; gap: 3px }
.etapas li { flex: 1; height: 6px; border-radius: 99px; background: var(--linha) }
.etapas li.feita { background: var(--acento); opacity: .55 }
.etapas li.agora { height: 10px; background: var(--acento); box-shadow: 0 0 10px var(--acento) }
.ops { display: grid; gap: 10px; margin-top: 4px }
.op { --h: 220; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; width: 100%; text-align: left; padding: 12px; border: 1px solid var(--linha); border-radius: 12px; background: var(--papel-2); cursor: pointer }
.op.evento { grid-template-columns: minmax(0, 1fr) }
.op:hover { border-color: var(--acento) }
.logo { width: 42px; height: 42px; flex: none } /* a SVG do logos.js já desenha a placa, a cor e a forma pelo porte */
.logo svg { display: block }
.op-corpo { display: grid; gap: 3px; min-width: 0; align-content: start } /* cartão esticado pelo vizinho mais alto: o conteúdo fica junto em cima */
.op-corpo > strong { font: 700 17px/1.2 var(--titulo); overflow-wrap: anywhere }
.op-sobre { font: 600 11px/1.3 var(--dado); letter-spacing: .06em; text-transform: uppercase; color: var(--suave) }
.op-meta, .op-desc { font-size: 13px; color: var(--suave) }
.op-desc { color: var(--tinta) }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px }
.efeitos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px }
.chip.efeito { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; font-size: 13px; font-weight: 600 }
.chip.efeito .ico { width: 16px; height: 16px }
.piada { flex-basis: 100%; font-size: 13px; font-style: italic; color: var(--suave) }
.chip { font: 500 12px/1.4 var(--dado); padding: 3px 7px; border-radius: 6px; background: var(--papel); border: 1px solid var(--linha) }
/* Saída da aposta: a cor do "deu certo / deu errado" fica só na borda e no título; cada efeito tem a sua */
.saida { display: grid; gap: 6px; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--papel); border: 1px solid var(--linha) }
.saida.bom, .saida.ruim { color: inherit; background: var(--papel); border-color: var(--linha) }
.saida.bom { border-left: 4px solid var(--bom) } .saida.ruim { border-left: 4px solid var(--ruim) }
.saida-cab { font: 600 12px/1.2 var(--dado) }
.saida.bom .saida-cab { color: var(--bom) } .saida.ruim .saida-cab { color: var(--ruim) }
/* Efeitos em barras: verde é bom para o jogador, vermelho é ruim, cinza é igual */
.efx { display: grid; gap: 5px; margin-top: 6px }
.saida .efx { margin-top: 0 }
.efx-linha { display: grid; grid-template-columns: 16px minmax(0, 1fr) 36px auto; align-items: center; gap: 6px; font: 500 12px/1.2 var(--dado) }
.efx-linha .ico { width: 16px; height: 16px }
.efx-emoji { width: 16px; text-align: center; font-size: 14px; line-height: 1 }
.ganha { color: var(--bom) } .perde { color: var(--ruim) } .igual { color: var(--suave) }
.efx-rot { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tinta) }
.efx-rot.largo { grid-column: span 2 }
.efx-val { min-width: 28px; text-align: right; font-weight: 600; white-space: nowrap }
.medidor { position: relative; height: 8px; border-radius: 99px; background: var(--papel-2) }
.medidor::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--suave) }
.medidor i { position: absolute; top: 0; bottom: 0; border-radius: 99px }
.medidor i.ganha { left: 50%; background: var(--bom) } .medidor i.perde { right: 50%; background: var(--ruim) } .medidor i.igual { display: none }
.efx-nada { margin-top: 6px; font: 500 12px var(--dado); color: var(--suave) }
/* Aposta: barra com a chance antes de escolher; depois as saídas viram um rolo com catraca e a mira trava na sorteada (--res é a cor dela) */
.chance { display: flex; height: 6px; margin-top: 6px; border-radius: 99px; background: var(--ruim); overflow: hidden }
.chance i { background: var(--bom) }
.op.rodando .saida, .op.parou .saida { display: none }
.op.parou { border-color: var(--res); box-shadow: 0 0 0 2px var(--res), 0 14px 30px -14px var(--res) }
.rolo { position: relative; display: block; height: 120px; margin-top: 6px; overflow: hidden; border-radius: 10px; border: 1px solid var(--linha); background: var(--papel);
  -webkit-mask-image: linear-gradient(transparent, #000 26%, #000 74%, transparent); mask-image: linear-gradient(transparent, #000 26%, #000 74%, transparent) }
.rolo-fita { display: block }
.rolo-linha { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 22px; white-space: nowrap; overflow: hidden; border-radius: 0; font: 500 12.5px/1 var(--dado) }
.rolo-linha b { font-weight: 600 }
.rolo-efx { display: inline-flex; align-items: center; gap: 3px; font-weight: 600 }
.rolo-efx .ico { width: 14px; height: 14px }
.rolo-tile { display: grid; place-content: center; width: 26px; height: 26px; flex: none; border-radius: 7px; color: var(--papel); font-size: 14px }
.rolo-linha.bom .rolo-tile { background: var(--bom) } .rolo-linha.ruim .rolo-tile { background: var(--ruim) }
.rolo-tile .ico { width: 16px; height: 16px }
.rolo-linha.vence { animation: vence .45s ease-out 2 }
.rolo-faixa { position: absolute; inset: 40px 0; border-block: 2px solid var(--tinta); pointer-events: none; transition: border-color .15s, box-shadow .15s }
.op.parou .rolo-faixa { border-color: var(--res); box-shadow: 0 0 16px var(--res), inset 0 0 12px var(--res) }
.lingueta { position: absolute; top: 50%; width: 14px; height: 18px; margin-top: -9px; background: var(--tinta) }
.lingueta.e { left: 0; clip-path: polygon(0 0, 100% 50%, 0 100%); transform-origin: 0 50% }
.lingueta.d { right: 0; clip-path: polygon(100% 0, 0 50%, 100% 100%); transform-origin: 100% 50% }
.op.parou .lingueta { background: var(--res); filter: drop-shadow(0 0 5px var(--res)) }
.mira { position: absolute; inset: 34px 14px; opacity: 0; pointer-events: none }
.mira i { position: absolute; width: 18px; height: 14px; border: 3px solid var(--res); filter: drop-shadow(0 0 5px var(--res)) }
.mira i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0 }
.mira i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0 }
.mira i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 6px }
.mira i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 6px 0 }
.particula { position: absolute; border-radius: 50%; pointer-events: none; z-index: 2 }
.particula.faisca { border-radius: 1px; box-shadow: 0 0 6px currentColor }
.onda { position: absolute; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; border: 3px solid; pointer-events: none; z-index: 2 }
@keyframes vence { 50% { filter: brightness(1.4) } }
/* Escolha: a marcada sobe com borda e carimbo, as outras apagam; depois a decisão sai pela esquerda */
.op { position: relative; transition: transform .25s ease, opacity .25s ease, filter .25s ease, box-shadow .25s ease, border-color .25s ease }
.ops.escolhendo .op { cursor: default }
.ops.escolhendo .op:not(.marcada) { opacity: .35; filter: grayscale(1); transform: scale(.97) }
.op.marcada { border-color: var(--acento); box-shadow: 0 0 0 2px var(--acento), 0 14px 30px -14px var(--acento); transform: translateY(-4px) }
.carimbo { position: absolute; top: -11px; right: 14px; padding: 5px 8px; border-radius: 6px; font: 600 11px/1 var(--dado); letter-spacing: .06em; text-transform: uppercase; rotate: -5deg; pointer-events: none }
.carimbo.bom { background: var(--bom); color: var(--papel) }
.carimbo.ruim { background: var(--ruim); color: var(--papel) }
.decisao.saindo, .decisao.entrando { overflow: hidden }
.decisao.saindo > * { transform: translateX(-70px); opacity: 0; transition: transform .38s ease-in, opacity .38s ease-in }
.bom { color: var(--bom); background: var(--bom-fundo); border-color: transparent }
.ruim { color: var(--ruim); background: var(--ruim-fundo); border-color: transparent }
.alerta { color: var(--alerta); background: var(--alerta-fundo); border-color: transparent }

/* git log da carreira */
.log header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 16px }
.log h2 { font: 600 14px/1.3 var(--dado) }
.log header p { font: 12.5px/1.3 var(--dado); color: var(--suave) }
.log header .placar { font-weight: 600 }

/* Números da carreira: dinheiro verde, entrega na cor de commit, bug vermelho */
.placar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px }
.num { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; white-space: nowrap }
.ico { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round }
.num.dinheiro { color: var(--bom) }
.num.entrega { color: var(--acento) }
.num.bug { color: var(--ruim) }
.commit { --h: 220; position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 0 12px; align-items: start; padding-bottom: 14px }
.commit::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: -4px; width: 2px; background: hsl(var(--h) var(--emp-s) var(--emp-l)); opacity: .4 }
.commit:last-child::before { display: none }
.ponto { width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; background: hsl(var(--h) var(--emp-s) var(--emp-l)) }
.commit.head .ponto { background: var(--papel); border: 3px solid var(--suave) }
.commit.head::before { background: var(--suave) }
.c-corpo { display: grid; gap: 2px; min-width: 0 }
.c-titulo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px }
.c-titulo strong { overflow-wrap: anywhere }
.c-idade, .c-stat, .c-conq { font: 12.5px/1.5 var(--dado); color: var(--suave) }
.c-conq { color: var(--tinta) }
.c-nivel { font: 600 13px/1 var(--dado); font-variant-numeric: tabular-nums; padding: 5px 7px; border-radius: 6px; background: var(--fx); color: var(--faixa-tinta); white-space: nowrap }
.c-nivel small { font-size: 11px; margin-left: 5px }
.tag { border-color: transparent }

/* Fim de carreira */
.fim { display: grid; gap: 28px }
.fim > * { min-width: 0 }
.fim > header { display: grid; gap: 10px }
.fim section > h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px }
.fim-grade { display: grid; gap: 20px; align-items: start }
.fim-grade > * { min-width: 0 }
.numeros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--linha); border: 1px solid var(--linha); border-radius: 14px; overflow: hidden }
.numeros > div { background: var(--papel); padding: 12px 14px }
.numeros dd { font-size: 19px }
.passagens { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px }
.passagem { --h: 220; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px; background: var(--papel); border: 1px solid var(--linha); border-radius: 12px }
.passagem h3 { font-size: 16px; font-weight: 700; overflow-wrap: anywhere }
.passagem p:not([class]) { font-size: 13px; color: var(--suave) }
.conq-lista { display: flex; flex-wrap: wrap; gap: 8px }
.conq-lista li { padding: 6px 10px; border-radius: 8px; background: var(--papel); border: 1px solid var(--linha); font-size: 14px }
.conq-lista small { font: 600 12px var(--dado); color: var(--suave); margin-left: 4px }

@media (min-width: 720px) {
  .numeros { grid-template-columns: repeat(4, minmax(0, 1fr)) }
}
@media (min-width: 900px) {
  .inicio { grid-template-columns: 1.1fr .9fr; padding-block: 8px }
  .id-grade { grid-template-columns: 320px 1fr 1fr }
  /* crachá e git log empilhados à esquerda; a decisão ocupa o resto, com as opções lado a lado */
  .jogo { grid-template-columns: 320px minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "cracha decisao" "log decisao" }
  .ops { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) }
  .fim-grade { grid-template-columns: minmax(0, 400px) minmax(0, 1fr) }
  .fim-grade .numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 26px }
}
@media (min-width: 1400px) {
  .jogo { grid-template-columns: 320px minmax(0, 1fr) 380px; grid-template-rows: auto; grid-template-areas: "cracha decisao log" }
}
@media (forced-colors: active) {
  /* no alto contraste o fundo some: a opção marcada precisa das cores do sistema para aparecer */
  .seg input:checked + span, .camada input:checked + span { forced-color-adjust: none; background: Highlight; color: HighlightText }
}
@media (prefers-reduced-motion: no-preference) {
  .avisos { animation: entra .3s ease-out }
  .l-cursor { animation: pisca 1.1s steps(1) infinite }
  .carimbo { animation: carimbo .3s cubic-bezier(.3, 1.6, .5, 1) }
  .decisao.entrando > * { animation: da-direita .45s ease-out }
  @keyframes carimbo { from { transform: scale(2.4); opacity: 0 } }
  @keyframes da-direita { from { transform: translateX(70px); opacity: 0 } }
  @keyframes pisca { 50% { opacity: 0 } }
  @keyframes entra { from { transform: translateY(-6px) } }
}

/* Modal do jogo (abandonar carreira): fundo desfocado; clicar fora, Esc ou salvar nos rascunhos cancela */
dialog.modal { padding: 0; border: 1px solid var(--linha); border-radius: 18px; background: var(--papel); color: var(--tinta); width: min(420px, calc(100% - 32px)); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .6) }
dialog.modal::backdrop { background: rgb(8 12 18 / .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px) }
.modal-caixa { display: grid; gap: 12px; padding: 24px }
.btn.perigo { background: var(--ruim-fundo); border-color: var(--ruim); color: var(--ruim) }
.modal-perda { display: flex; flex-wrap: wrap; gap: 6px }
.modal-perda li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; background: var(--papel-2); border: 1px solid var(--linha); font: 500 13px var(--dado) }
.modal-perda .dinheiro { color: var(--bom) }
/* O modal é o rascunho do pedido de demissão */
.m-email { gap: 0; padding: 0; overflow: hidden }
.m-email .m-barra { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--papel-2); border-bottom: 1px solid var(--linha); font: 600 12px var(--dado); color: var(--suave) }
.m-email .m-barra i { width: 10px; height: 10px; border-radius: 50% }
.m-email dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; padding: 14px 18px; border-bottom: 1px solid var(--linha); font: 13px var(--dado) }
.m-email dt { color: var(--suave) }
.m-email .m-corpo { display: grid; gap: 10px; padding: 16px 18px 20px; font-size: 15px }
.m-email .m-corpo p:last-child { color: var(--suave); font-style: italic }
.m-email .acoes { padding: 0 18px 20px }
@media (prefers-reduced-motion: no-preference) {
  dialog.modal[open] { animation: modal-entra .22s ease-out }
  dialog.modal[open]::backdrop { animation: fundo-entra .22s ease-out }
  @keyframes modal-entra { from { transform: translateY(14px) scale(.97); opacity: 0 } }
  @keyframes fundo-entra { from { opacity: 0 } }
}

/* Salário: card com placar de 7 casas (zeros à esquerda apagados, largura fixa) que muda de material, cor dos dígitos e
   enfeite conforme a faixa. Sem barra: mostraria ao jogador que existe um teto, e não existe. Cores fixas: é um painel. */
.ficha .fi-idade { grid-column: span 2 }
.sal { position: relative; display: inline-flex; align-items: center; gap: 9px; justify-self: start; transform-origin: left center }
.sal small { font: 500 12px var(--dado) }
.sal-c { --dig: #5fd39a; --brilho: rgb(95 211 154 / .6); padding: 7px 10px; border-radius: 9px; background: #0b0f14; border: 1px solid #2c3848; font: 700 20px/1 var(--dado); box-shadow: inset 0 2px 6px rgb(0 0 0 / .6) }
.sal-c .sal-rs { font-size: 12px; color: #8b98a9; margin-right: 2px }
.sal-c .sal-dig { display: inline-flex; gap: 2px }
.sal-c .sal-dig b { display: inline-block; min-width: .75em; padding: 3px 2px; border-radius: 3px; background: #121a23; text-align: center; overflow: hidden }
.sal-c .sal-dig b > span { color: var(--dig); text-shadow: 0 0 8px var(--brilho) }
.sal-c .sal-dig i { font-style: normal; align-self: end; color: var(--dig) }
.sal-c .sal-dig b.zero > span { opacity: .2; text-shadow: none; filter: none; animation: none }
.sal-c .sal-dig i.zero { opacity: .2 }
.sal-c small { color: #8b98a9; margin-left: 2px }
.sal-vazio .sal-dig b > span { color: #8b98a9; text-shadow: none }
.sal-palco { position: relative; isolation: isolate; width: max-content; max-width: 100%; margin-top: 4px }
/* --b é a espessura da borda da faixa; o acolchoamento desconta ela, então o card tem o mesmo tamanho em todas as faixas */
.sal-card { --b: 1px; position: relative; z-index: 1; display: grid; padding: calc(12px - var(--b)) calc(13px - var(--b)) calc(11px - var(--b)); border-radius: 12px; border: 1px solid #2c3848; background: #121820 }
.sal-palco[data-f="3"] > .sal-card, .sal-palco[data-f="5"] > .sal-card { --b: 2px }
.sal-palco[data-f="4"] > .sal-card { --b: 3px }
/* Material por faixa: plástico, verde, verde aceso, bronze, ouro com rebites, diamante holográfico */
.sal-palco[data-f="0"] > .sal-card { background: #272c33; border-color: #3a414b }
.sal-palco[data-f="0"] .sal-c { --dig: #8b98a9; --brilho: transparent }
.sal-palco[data-f="2"] > .sal-card { border-color: #2f6b4d; background: linear-gradient(#14211b, #101820); box-shadow: 0 0 14px rgb(95 211 154 / .18) }
.sal-palco[data-f="2"] .sal-c { --dig: #8dffc4; --brilho: rgb(120 255 190 / .95) }
.sal-palco[data-f="3"] > .sal-card { border: 2px solid #b8873a; background: linear-gradient(#2a2216, #17120b); box-shadow: inset 0 1px 0 rgb(255 220 160 / .25), 0 0 16px rgb(200 140 60 / .25) }
.sal-palco[data-f="3"] .sal-c { --dig: #f3b766; --brilho: rgb(240 170 80 / .85); border-color: #6b4a1e }
.sal-palco[data-f="3"] .sal-dig b { background: #1d160d }
.sal-palco[data-f="4"] > .sal-card { border: 3px double #f2c94c; box-shadow: 0 0 22px rgb(242 201 76 / .35), inset 0 0 18px rgb(242 201 76 / .12);
  background: radial-gradient(circle at 8px 8px, #f2c94c 0 2.5px, transparent 3.5px), radial-gradient(circle at calc(100% - 8px) 8px, #f2c94c 0 2.5px, transparent 3.5px), radial-gradient(circle at 8px calc(100% - 8px), #f2c94c 0 2.5px, transparent 3.5px), radial-gradient(circle at calc(100% - 8px) calc(100% - 8px), #f2c94c 0 2.5px, transparent 3.5px), linear-gradient(#2b2310, #15110a) }
.sal-palco[data-f="4"] .sal-c { --dig: #ffe27a; --brilho: rgb(255 205 70); border-color: #b9800f }
.sal-palco[data-f="4"] .sal-dig b { background: #1f1a0b }
.sal-palco[data-f="5"] > .sal-card { border: 2px solid transparent; background: linear-gradient(#141b26, #101622) padding-box, linear-gradient(110deg, #9ff3ff, #ff9ff3, #fff59f, #9fffb4, #9ff3ff) border-box; background-size: auto, 300% 100%; animation: holo 3s linear infinite; box-shadow: 0 0 26px rgb(170 230 255 / .35) }
.sal-palco[data-f="5"] .sal-c { border-color: #9ff3ff }
.sal-palco[data-f="5"] .sal-dig b > span { background: linear-gradient(100deg, #9ff3ff, #ff9ff3, #fff59f, #9fffb4, #9ff3ff) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 4px rgb(200 240 255 / .8)); animation: holo-txt 2.5s linear infinite }
.sal-palco[data-f="5"] .sal-dig i { color: #bfefff }
@keyframes holo { to { background-position: 0 0, 300% 0 } }
@keyframes holo-txt { to { background-position: 300% 0 } }
/* Enfeites das faixas altas: reflexo de luz atravessando, aura no bronze, raios girando atrás no ouro e no diamante */
.sal-reflexo { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none }
.sal-reflexo::before { content: ""; position: absolute; top: -30%; bottom: -30%; left: -60%; width: 38%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / .38), transparent); transform: skewX(-20deg); animation: reflexo var(--t) ease-in-out infinite }
.sal-palco[data-f="3"] .sal-reflexo { --t: 4.5s } .sal-palco[data-f="4"] .sal-reflexo { --t: 2.8s } .sal-palco[data-f="5"] .sal-reflexo { --t: 1.9s }
@keyframes reflexo { 0%, 55% { left: -60% } 100% { left: 130% } }
.sal-palco[data-f="3"] > .sal-card { animation: aura 2.2s ease-in-out infinite }
@keyframes aura { 50% { box-shadow: inset 0 1px 0 rgb(255 220 160 / .25), 0 0 30px rgb(220 150 60 / .55) } }
/* gira o desenho, não a caixa: girar a caixa faria as quinas varrerem muito além do card */
@property --giro { syntax: '<angle>'; inherits: false; initial-value: 0deg }
.sal-raios { position: absolute; z-index: 0; inset: -22px -16px; pointer-events: none; background: repeating-conic-gradient(from var(--giro), var(--r) 0 7deg, transparent 7deg 22deg); -webkit-mask: radial-gradient(closest-side, #000 35%, transparent 100%); mask: radial-gradient(closest-side, #000 35%, transparent 100%); animation: gira-raios 14s linear infinite; opacity: .8 }
.sal-palco[data-f="4"] .sal-raios { --r: rgb(255 215 94 / .38) }
.sal-palco[data-f="5"] .sal-raios { --r: rgb(200 240 255 / .4); animation: gira-raios 9s linear infinite, arco 9s linear infinite }
@keyframes gira-raios { to { --giro: 360deg } }
@keyframes arco { to { filter: hue-rotate(360deg) } }
/* sal-faisca, não faisca: .faisca já é a partícula de atrito da roleta */
.sal-faisca { position: absolute; z-index: 2; left: var(--x); top: var(--y); font-style: normal; font-size: var(--t, 13px); line-height: 1; color: #fff; text-shadow: 0 0 8px var(--c, #ffe27a); pointer-events: none; animation: cintila-f var(--d, 1.2s) var(--a, 0s) ease-in-out infinite }
@keyframes cintila-f { 50% { transform: scale(.3) rotate(45deg); opacity: .3 } }
.sal-joia { position: absolute; z-index: 3; top: -14px; right: -8px; font-size: 22px; filter: drop-shadow(0 0 8px rgb(190 240 255 / .9)); animation: flutua 1.8s ease-in-out infinite }
@keyframes flutua { 50% { transform: translateY(-4px) rotate(8deg) } }
@media (prefers-reduced-motion: reduce) { .sal-palco, .sal-palco * { animation: none !important } }
/* Absorção: cada moeda que entra infla o chip como bolha e acende o brilho; o dígito que mudou rola como odômetro */
@keyframes sal-bolha { 0% { transform: scale(1) } 35% { transform: scale(1.13) } 65% { transform: scale(.97) } 100% { transform: scale(1) } }
@keyframes sal-brilho { 0% { box-shadow: inset 0 2px 6px rgb(0 0 0 / .6), 0 0 0 0 rgb(95 211 154 / 0) } 35% { box-shadow: inset 0 2px 6px rgb(0 0 0 / .6), 0 0 18px 4px rgb(95 211 154 / .75) } 100% { box-shadow: inset 0 2px 6px rgb(0 0 0 / .6), 0 0 0 0 rgb(95 211 154 / 0) } }
.sal.pulso { animation: sal-bolha .28s ease-out, sal-brilho .28s ease-out }
@keyframes dig-rola { from { transform: translateY(-75%); opacity: .2 } }
.sal-dig b.gira { animation: dig-rola .22s ease-out }
@keyframes dig-desce { from { transform: translateY(75%); opacity: .2 } } /* caindo, a casa entra por baixo */
.sal-dig.desce b.gira { animation-name: dig-desce }
.sal-perda { position: absolute; z-index: 4; right: 8px; bottom: -24px; white-space: nowrap; font: 800 15px var(--dado); color: var(--ruim); animation: perda-cai 1.6s ease-out forwards; pointer-events: none }
@keyframes perda-cai { 0% { transform: translateY(-14px); opacity: 0 } 20% { transform: translateY(2px); opacity: 1 } 75% { transform: translateY(0); opacity: 1 } 100% { transform: translateY(14px); opacity: 0 } }
.sal-ganho { position: absolute; z-index: 4; right: 8px; top: -22px; white-space: nowrap; font: 800 15px var(--dado); color: var(--bom); animation: ganho-sobe 1.4s ease-out forwards; pointer-events: none }
@keyframes ganho-sobe { 0% { transform: translateY(8px); opacity: 0 } 15% { transform: translateY(0); opacity: 1 } 70% { opacity: 1 } 100% { transform: translateY(-18px); opacity: 0 } }

/* Moedas do salário: camada fixa fora do #app; cada moeda fica invisível até a vez dela e nasce já voando */
.moedas { position: fixed; inset: 0; z-index: 60; pointer-events: none }
.clarao-ruim { position: fixed; inset: 0; z-index: 70; pointer-events: none; background: rgb(200 40 30 / .35) } /* impacto da demissão */
.bo-azul { position: absolute; inset: 0; z-index: 8; display: grid; align-content: center; gap: 10px; padding: 26px; border-radius: inherit; background: #1f5fbf; color: #fff; font: 500 13px/1.35 var(--texto, system-ui) } /* tela azul do burnout */
.bo-azul big { font: 300 64px/1 var(--texto, system-ui) }
.bo-azul p { margin: 0 }
.bo-azul small { font: 500 11px/1.3 var(--dado); opacity: .85 }
.moeda { --m: 18px; position: absolute; left: 0; top: 0; width: var(--m); height: var(--m); margin: calc(var(--m) / -2) 0 0 calc(var(--m) / -2); opacity: 0; perspective: calc(var(--m) * 5) }
/* Voxel: o span gira em Y e as 12 camadas mantêm a profundidade; a fita de borda fecha a lateral de perfil */
.moeda > span { position: relative; display: block; width: 100%; height: 100%; font-size: var(--m); transform-style: preserve-3d; animation: moeda-gira-3d .9s linear infinite }
.moeda > span > i { position: absolute; inset: 0 }
.moeda svg { display: block; width: 100%; height: 100%; shape-rendering: crispEdges }
.moeda .m-borda { inset: 0 auto 0 50%; width: .25em; margin-left: -.125em; transform: rotateY(90deg); background: repeating-linear-gradient(#a8740f 0 .0625em, #7a4c00 .0625em .125em) }
@keyframes moeda-gira-3d { to { transform: rotateY(360deg) } }

/* Páginas de texto (Como jogar, Sobre, Privacidade): coluna de leitura com a tipografia do jogo. */
.pagina { max-width: 68ch; margin: 0 auto; padding-bottom: 32px }
.pagina h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; letter-spacing: -.02em; margin: 8px 0 14px }
.pagina h2 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 10px }
.pagina p, .pagina li { font-size: 16px; line-height: 1.65 }
.pagina p + p, .pagina ul + p { margin-top: 12px }
.pagina .lead { font-size: 18px; max-width: none }
.pagina ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; margin-top: 10px }
.pagina a:not(.btn) { color: var(--acento) }
.pagina code { font: 500 .9em var(--dado) }
.pagina .btn { display: inline-block; text-decoration: none; color: inherit }
.pagina .btn.primario { color: var(--acento-tinta) }
.pg-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 28px; font: 500 14px var(--dado) }
.pg-nav a { color: var(--suave); text-decoration: none }
.pg-nav a:hover, .pg-nav a[aria-current] { color: var(--tinta); text-decoration: underline }
.pg-fim { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px }
.rodape { display: flex; justify-content: center; gap: 10px; margin-top: 16px; font: 500 13px/1 var(--dado); color: var(--suave) }
.rodape a { color: inherit; text-decoration: none }
.rodape a:hover { color: var(--tinta); text-decoration: underline }
@media (min-width: 900px) { .rodape { position: fixed; left: 0; right: 0; bottom: 12px; margin: 0 } } /* preso ao pé da janela: a página inicial continua cabendo em 1280×720 */
