/* Raio-X Window Film — identidade: papel, preto e amarelo, bordas grossas e sombra seca */
:root {
  --paper: #f4f1ea; --paper-2: #ebe6da; --white: #fff; --ink: #111; --muted: #5c5a55; --line: #d9d3c6;
  --yellow: #ffd400; --yellow-soft: #fff7c2; --shadow: 5px 5px 0 var(--ink);
  --display: "Archivo", "Arial Black", sans-serif; --body: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.55; font-size: 17px; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.mark { background: var(--yellow); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hidden { display: none !important; }

/* Topo */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; max-width: 980px; margin: 0 auto; }
.logo { font-family: var(--display); font-weight: 900; font-size: 17px; text-transform: uppercase; background: var(--yellow); border: 2px solid var(--ink); padding: 4px 10px; box-shadow: 3px 3px 0 var(--ink); text-decoration: none; white-space: nowrap; }
.logo span { background: var(--ink); color: var(--yellow); padding: 0 4px; margin-right: 4px; }
.top nav { display: flex; gap: 16px; align-items: center; font-size: 14px; font-weight: 600; }
.top nav a, .top nav button { background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; text-decoration: none; padding: 0; }
.top nav a:hover, .top nav button:hover { text-decoration: underline; }

.tag { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--yellow); padding: 6px 10px; margin-bottom: 16px; }
.tag.y { background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--yellow); color: var(--ink); font-family: var(--display); font-weight: 900; font-size: 18px; padding: 15px 24px; border: 2px solid var(--ink); box-shadow: var(--shadow); text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn.dark { background: var(--ink); color: var(--yellow); }
.btn.small { font-size: 15px; padding: 10px 16px; box-shadow: 3px 3px 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.link { background: none; border: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 8px 0; }

/* Cartões */
.card { background: var(--white); border: 2px solid var(--ink); box-shadow: var(--shadow); padding: 24px; }

/* Formulários */
.form { display: grid; gap: 14px; }
.form label { font-weight: 600; font-size: 15px; display: grid; gap: 6px; }
.form input, .form select { font: inherit; padding: 13px; border: 2px solid var(--ink); background: var(--white); }
.form input:focus, .form select:focus { outline: 3px solid var(--yellow); outline-offset: 0; }
.err { color: #b00020; font-size: 14px; min-height: 20px; }
.ok { color: #1d6b2f; font-size: 14px; min-height: 20px; }

/* Anel da nota */
.ring { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none; border: 2px solid var(--ink); }
.ring::before { content: ""; position: absolute; inset: 14px; background: var(--white); border-radius: 50%; border: 2px solid var(--ink); }
.ring > div { position: relative; text-align: center; }
.ring b { font-family: var(--display); font-weight: 900; font-size: 52px; letter-spacing: -.03em; line-height: 1; display: block; }
.ring small { font-size: 13px; color: var(--muted); font-weight: 600; }
.ring.sm { width: 92px; height: 92px; }
.ring.sm::before { inset: 10px; }
.ring.sm b { font-size: 30px; }
.ring.md { width: 120px; height: 120px; }
.ring.md::before { inset: 12px; }
.ring.md b { font-size: 42px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; font-weight: 600; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-block; }
.level { display: inline-block; font-family: var(--display); font-weight: 900; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: var(--yellow); padding: 4px 10px; margin-bottom: 10px; }

/* Barras */
.bar { height: 20px; border: 2px solid var(--ink); background: var(--white); }
.bar i { display: block; height: 100%; background: var(--ink); }
.bar.weak i { background: var(--yellow); border-right: 2px solid var(--ink); }

@media (max-width: 640px) {
  .btn { width: 100%; }
  .top nav { gap: 12px; font-size: 13px; }
  .card { padding: 18px; }
}
