/* =====================================================================
   ELES ESTÃO ENTRE NÓS — identidade visual
   Papel envelhecido + tinta preta + vermelho de carimbo (estilo serigrafia / dossiê)
   ===================================================================== */
:root {
  --paper: #ebe4d4;
  --paper2: #f4efe3;
  --paper3: #ddd4c0;
  --ink: #141414;
  --ink2: #3a3632;
  --muted: #6b645a;
  --red: #c8102e;
  --red-dark: #8f0b20;
  --green: #2e6e3e;   /* "bom" */
  --green-dim: #2e6e3e;
  --amber: #b8740f;   /* "atenção" */
  --violet: #1f2f5c;  /* presença */
  --era: #c8102e;
  --radius: 4px;
  --shadow: 4px 4px 0 var(--ink);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.25 0 0 0 0 0.2 0 0 0 0 0.12 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--noise), radial-gradient(ellipse at center, var(--paper2) 0%, var(--paper) 60%, var(--paper3) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  min-height: 100vh;
}
.mono { font-family: "Courier Prime", ui-monospace, monospace; }
.type { font-family: "Special Elite", "Courier Prime", monospace; }
.small { font-size: 12px; color: var(--muted); }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h3 { font-family: "Anton", Impact, sans-serif; letter-spacing: .01em; text-transform: uppercase; }
h2 { font-family: "Special Elite", monospace; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.hidden { display: none !important; }

#app { max-width: 1400px; margin: 0 auto; padding: 16px; }

/* ---------- topo ---------- */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 { font-size: 34px; line-height: .95; }
.brand h1 span { color: var(--red); }
.brand .sub { font-size: 12px; color: var(--ink2); letter-spacing: .12em; }
#logo-slot img, #logo-slot .ph { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); }
.top-right { display: flex; align-items: center; gap: 16px; }
.clock { text-align: right; }
.year { font-family: "Anton", Impact, sans-serif; font-size: 52px; color: var(--red); line-height: .9; }
.era { font-family: "Special Elite", monospace; color: var(--ink); font-size: 14px; }
.btn-menu { padding: 8px 12px; font-size: 13px; }

/* ---------- linha do tempo ---------- */
.timeline { position: relative; display: flex; height: 28px; margin: 14px 0 16px; border: 2px solid var(--ink); box-shadow: var(--shadow); background: var(--paper2); }
.timeline .seg { position: relative; display: flex; align-items: center; justify-content: center; font-family: "Special Elite", monospace; font-size: 11px; color: var(--ink); white-space: nowrap; overflow: hidden; border-right: 1px solid var(--ink); background: transparent !important; }
.timeline .seg:last-of-type { border-right: 0; }
.timeline .seg.past { background: repeating-linear-gradient(45deg, #14141418 0 4px, transparent 4px 8px) !important; color: var(--muted); }
.timeline .seg.current { background: var(--ink) !important; color: var(--paper); }
.timeline .marker { position: absolute; top: -6px; bottom: -6px; width: 4px; background: var(--red); transition: left .5s; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 290px 1fr 300px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .layout { grid-template-columns: 1fr 1fr; } .col-main { grid-column: 1 / -1; order: -1; } }
@media (max-width: 700px) { .layout { grid-template-columns: 1fr; } .brand h1 { font-size: 26px; } .year { font-size: 40px; } }
.panel { background: var(--paper2); border: 2px solid var(--ink); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.col-left, .col-main, .col-right { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 10px; }
.panel-head h2 { border: 0; margin: 0; }

/* ---------- stats ---------- */
.stat { margin-bottom: 14px; }
.stat-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; }
.stat-top b { font-family: "Courier Prime", monospace; font-size: 16px; }
.bar { height: 14px; background: var(--paper); border: 2px solid var(--ink); overflow: hidden; margin-top: 5px; position: relative; }
.bar > i { display: block; height: 100%; transition: width .5s, background .5s; }
.bar .ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 2px), var(--ink) calc(20% - 2px) 20%); opacity: .5; }
.tier { font-size: 12px; margin-top: 4px; }
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.counter { background: var(--paper); border: 1px solid var(--ink); padding: 6px 8px; font-size: 12px; color: var(--ink2); }
.counter b { color: var(--ink); font-family: "Courier Prime", monospace; font-size: 15px; }

/* ---------- missões ---------- */
.mission { background: var(--paper); border: 1px solid var(--ink); padding: 10px; margin-bottom: 8px; border-left: 5px solid var(--amber); }
.mission.main { border-left-color: var(--red); }
.mission.done { opacity: .6; border-left-color: var(--green); }
.mission.failed { opacity: .6; border-left-color: var(--ink); text-decoration: line-through; }
.mission h3 { font-size: 16px; }
.mission p { margin: 4px 0; font-size: 13px; color: var(--ink2); }
.mission .meta { font-size: 12px; font-family: "Courier Prime", monospace; color: var(--red-dark); font-weight: 700; }

/* ---------- evento ---------- */
.event { padding: 0; overflow: hidden; }
.event-img { position: relative; height: 220px; background: var(--ink); border-bottom: 2px solid var(--ink); }
.event-img img, .event-img .ph { width: 100%; height: 100%; object-fit: cover; }
.event-img .era-tag { position: absolute; left: 14px; top: 12px; z-index: 1; background: var(--red); color: #fff; padding: 4px 12px; font-family: "Special Elite", monospace; font-size: 13px; transform: rotate(-2deg); box-shadow: 2px 2px 0 var(--ink); }
.event-body { padding: 12px 16px 16px; }
.event-body .kicker { font-family: "Special Elite", monospace; font-size: 13px; color: var(--red); letter-spacing: .1em; }
.event-body h3 { font-size: 28px; margin: 2px 0 6px; line-height: 1.05; }
.event-body p { margin: 0 0 8px; color: var(--ink); font-size: 16px; }
.event-body .era-blurb { font-size: 13px; color: var(--muted); font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 12px; padding: 2px 9px; background: var(--paper); border: 1.5px solid var(--ink); font-family: "Courier Prime", monospace; font-weight: 700; }
.chip.good { color: var(--green); border-color: var(--green); }
.chip.bad { color: var(--red); border-color: var(--red); }
.chip.info { color: var(--amber); border-color: var(--amber); }

/* ---------- ações ---------- */
.plan { display: flex; gap: 8px; flex-wrap: wrap; min-height: 42px; margin-bottom: 12px; }
.slot { flex: 1 1 150px; min-height: 42px; border: 2px dashed var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; font-family: "Special Elite", monospace; font-size: 13px; color: var(--muted); padding: 6px 10px; }
.slot.filled { border: 2px solid var(--ink); color: #fff; background: var(--ink); cursor: pointer; font-family: "Archivo", sans-serif; font-weight: 600; }
.slot.filled:hover { background: var(--red); border-color: var(--red); }
.slot.filled:hover::after { content: "✕"; margin-left: 4px; }
.actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.action { text-align: left; background: var(--paper); border: 2px solid var(--ink); padding: 10px; color: var(--ink); cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 6px; transition: transform .12s, box-shadow .12s, background .12s; }
.action:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--red); background: #fff; }
.action:disabled { opacity: .4; cursor: not-allowed; }
.action .a-top { display: flex; align-items: center; gap: 10px; }
.action .a-icon img, .action .a-icon .ph { width: 46px; height: 46px; object-fit: contain; }
.action .a-name { font-family: "Anton", Impact, sans-serif; font-size: 17px; line-height: 1.1; text-transform: uppercase; }
.action .a-desc { font-size: 12.5px; color: var(--ink2); }
.action .a-meta { display: flex; gap: 6px; font-family: "Courier Prime", monospace; font-size: 12px; font-weight: 700; }
.action .a-meta span { padding: 1px 7px; border: 1px solid currentColor; }
.cost { color: var(--violet); }
.risk-low { color: var(--green); } .risk-mid { color: var(--amber); } .risk-high { color: var(--red); }

.btn { font-family: "Anton", Impact, sans-serif; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; padding: 11px 18px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; box-shadow: 3px 3px 0 var(--red); transition: transform .1s, box-shadow .1s, background .1s; }
.btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--red); }
.btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--red); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.btn.primary:hover:not(:disabled) { box-shadow: 4px 4px 0 var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; }
.end-turn { margin-top: 14px; width: 100%; font-size: 20px; }

/* ---------- log ---------- */
.log ol { list-style: none; margin: 0; padding: 0; max-height: 75vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.log li { font-size: 13px; padding: 6px 8px; background: var(--paper); border: 1px solid #14141433; border-left: 4px solid var(--muted); }
.log li .y { font-family: "Courier Prime", monospace; font-weight: 700; color: var(--red); font-size: 12px; margin-right: 6px; }
.log li.bad { border-left-color: var(--red); }
.log li.good { border-left-color: var(--green); }
.log li.info { border-left-color: var(--ink); }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: #141414cc; display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 40; }
.modal { background: var(--noise), var(--paper2); border: 2px solid var(--ink); max-width: 580px; width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: 8px 8px 0 var(--red); animation: pop .25s ease-out; }
@keyframes pop { from { transform: scale(.95) rotate(-1deg); opacity: 0; } to { transform: none; opacity: 1; } }
.modal .m-img { height: 240px; background: var(--ink); overflow: hidden; border-bottom: 2px solid var(--ink); }
.modal .m-img img, .modal .m-img .ph { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.modal .m-body { padding: 18px 20px 20px; }
.modal .kicker { font-family: "Special Elite", monospace; font-size: 13px; letter-spacing: .12em; color: var(--red); }
.modal .kicker.good { color: var(--green); }
.modal h3 { font-size: 32px; margin: 2px 0 8px; line-height: 1.05; }
.modal p { color: var(--ink); margin: 0 0 12px; font-size: 15.5px; }
.modal .choices { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.modal .choice { text-align: left; text-transform: none; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0; }
.modal .choice small { display: block; font-weight: 400; opacity: .8; font-family: "Courier Prime", monospace; font-size: 12px; margin-top: 3px; }
.modal ul { color: var(--ink); padding-left: 18px; margin: 0 0 14px; }
.modal ul li { margin-bottom: 4px; }
.stamp { display: inline-block; font-family: "Special Elite", monospace; color: var(--red); border: 3px solid var(--red); padding: 2px 10px; transform: rotate(-4deg); font-size: 15px; letter-spacing: .1em; opacity: .85; }

/* ---------- menu principal ---------- */
.menu-screen { position: fixed; inset: 0; z-index: 30; background: var(--noise), radial-gradient(ellipse at center, var(--paper2) 0%, var(--paper) 65%, var(--paper3) 100%); display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 24px; padding: 32px 48px; overflow-y: auto; }
.menu-art { display: flex; justify-content: center; align-items: center; min-width: 0; }
.menu-art img, .menu-art .ph { width: 100%; max-width: 760px; max-height: 88vh; object-fit: contain; }
.menu-art img { mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(circle at center, #000 62%, transparent 72%); mask-image: radial-gradient(circle at center, #000 62%, transparent 72%); }
.menu-side { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.menu-title { position: relative; padding: 18px 22px; margin-bottom: 18px; }
.menu-title::before, .menu-title::after { content: ""; position: absolute; width: 34px; height: 34px; border: 3px solid var(--red); }
.menu-title::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.menu-title::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.menu-title h1 { font-size: clamp(54px, 7.5vw, 112px); line-height: .9; }
.menu-title h1 span { color: var(--red); display: block; }
.menu-title .tagline { font-family: "Special Elite", monospace; font-size: 17px; margin-top: 12px; color: var(--ink2); }
.menu-btn { display: flex; align-items: center; gap: 16px; text-align: left; font-size: 24px; padding: 14px 22px; width: 100%; }
.menu-btn .ico { width: 26px; text-align: center; font-family: "Archivo", sans-serif; }
.menu-btn small { font-family: "Archivo", sans-serif; font-size: 13px; text-transform: none; letter-spacing: 0; opacity: .75; margin-left: auto; }
.menu-foot { font-family: "Special Elite", monospace; font-size: 12px; color: var(--muted); margin-top: 6px; }
@media (max-width: 900px) {
  .menu-screen { grid-template-columns: 1fr; padding: 20px 16px; align-content: start; }
  .menu-art img { max-height: 46vh; }
  .menu-side { max-width: none; }
  .menu-btn { font-size: 20px; }
}

/* ---------- placeholder de imagem ---------- */
.ph { display: flex; align-items: center; justify-content: center; flex-direction: column; background: repeating-linear-gradient(45deg, #1f1f1f 0 10px, #141414 10px 20px); color: var(--paper3); font-size: 28px; text-align: center; }
.ph small { font-size: 10px; font-family: "Courier Prime", monospace; opacity: .7; margin-top: 4px; }
.action .a-icon .ph { background: var(--paper3); color: var(--ink); font-size: 24px; border: 1px solid var(--ink); }
.action .a-icon .ph small { display: none; }
.event-img .ph, .modal .m-img .ph { font-size: 64px; }

.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

/* =====================================================================
   v0.3 — mapa, jornal, inventores, caçador
   ===================================================================== */
.layout { grid-template-columns: 280px minmax(0, 1fr) 340px; }
.event-img { height: 210px; }

/* ---------- mapa ---------- */
.map-panel { padding-bottom: 10px; }
.map-legend { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.map-legend span { display: inline-flex; align-items: center; gap: 4px; }
.lg { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; font-style: normal; font-size: 9px; font-weight: 700; }
.lg.heat { background: linear-gradient(90deg, #f4efe3, #c8102e); border: 1px solid var(--ink); }
.lg.glyph { border: 2px solid var(--red); border-radius: 50%; }
.lg.agent { background: var(--ink); color: var(--paper); }
.lg.ally { color: var(--ink); font-size: 14px; }
.map-wrap { position: relative; background: var(--paper); border: 2px solid var(--ink); min-height: 120px; }
.world { display: block; width: 100%; height: auto; }
.world .sphere { fill: #dcd3bf; }
.world .graticule { fill: none; stroke: #14141418; stroke-width: .6; }
.world .land { fill: #cfc5ae; stroke: #14141455; stroke-width: .4; }
.world .region { stroke: var(--ink); stroke-width: .9; cursor: pointer; transition: fill .4s, stroke-width .15s; }
.world .region:hover { stroke-width: 2.2; }
.world .region.selectable { stroke: var(--red); stroke-width: 1.6; animation: blink 1.2s infinite; }
@keyframes blink { 50% { stroke-opacity: .35; } }
.world .glyph-ring { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.world .glyph-dot { fill: var(--ink); }
.world .agent-badge { fill: var(--ink); }
.world .agent-num { fill: var(--paper); font: 700 12px "Courier Prime", monospace; }
.world .ally-star { fill: var(--ink); font-size: 15px; }
.world .heat-pulse { fill: none; stroke: var(--red); stroke-width: 2; animation: pulse 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.world .markers { pointer-events: none; }
.select-banner { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--red); color: #fff; padding: 8px 12px; margin-bottom: 8px; font-size: 14px; }
.select-banner .btn { color: #fff; border-color: #fff; padding: 4px 10px; font-size: 13px; }
.region-info { font-size: 13px; padding: 8px 2px 0; min-height: 40px; color: var(--ink2); }
.region-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; padding: 8px; }
.region-btn { text-align: left; border: 2px solid var(--ink); padding: 6px 8px; font: inherit; cursor: pointer; display: flex; flex-direction: column; }
.region-btn.selectable { border-color: var(--red); }
.tooltip { position: fixed; z-index: 50; width: 270px; background: var(--paper2); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--red); padding: 8px 10px; font-size: 13px; pointer-events: none; }
.tt-name { font-family: "Anton", sans-serif; font-weight: 400; font-size: 17px; text-transform: uppercase; }
.tt-risk { background: var(--ink); color: var(--paper); padding: 3px 6px; margin: 4px 0; }
.tt-trait { margin-top: 4px; font-style: italic; color: var(--red-dark); }

/* ---------- plano de ações ---------- */
.slot-risk { font-family: "Courier Prime", monospace; font-size: 12px; background: var(--red); color: #fff; padding: 0 5px; margin-left: 4px; }
.slot.waiting { border-color: var(--red); color: var(--red); animation: blink 1.2s infinite; }
.action.active { background: var(--ink); color: var(--paper); }
.action.active .a-desc { color: var(--paper3); }
.action.urgent { border-color: var(--red); box-shadow: 3px 3px 0 var(--red); }

/* ---------- barras ---------- */
.bar .cap { position: absolute; top: -3px; bottom: -3px; width: 3px; background: var(--red); z-index: 1; }
.alert { margin-top: 6px; background: var(--red); color: #fff; font-size: 12px; padding: 5px 8px; font-weight: 600; }

/* ---------- caçador ---------- */
.hunter-panel { border-color: var(--red); }
.hunter-name { font-family: "Anton", sans-serif; font-size: 18px; text-transform: uppercase; }
.hunter-panel p { margin: 4px 0 8px; }
.hunter-intro { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.dossier-photo { width: 84px; height: 100px; flex: none; background: var(--paper3); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 40px; transform: rotate(-3deg); box-shadow: 3px 3px 0 var(--red); }

/* ---------- inventores ---------- */
.modal.wide { max-width: 860px; }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 10px 0 14px; }
.inv-grid.three { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.inv-card { display: flex; flex-direction: column; text-align: left; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); padding: 0; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.inv-card:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--red); }
.inv-card:disabled { opacity: .45; cursor: not-allowed; }
.inv-photo { border-bottom: 2px solid var(--ink); background: var(--ink); }
.inv-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.inv-body p { font-size: 13px; margin: 2px 0; }
.inv-name { font-family: "Anton", sans-serif; font-size: 20px; text-transform: uppercase; line-height: 1.05; }
.inv-name small { font-family: "Archivo", sans-serif; font-size: 11px; text-transform: none; color: var(--muted); }
.inv-what { font-family: "Special Elite", monospace; font-size: 13px; color: var(--red-dark); }
.inv-type { font-size: 13px; }
.inv-note { font-size: 12px; font-style: italic; color: var(--ink2); border-left: 3px solid var(--red); padding-left: 6px; }
.portrait { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--ink); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(1) contrast(1.35) brightness(1.05); mix-blend-mode: normal; }
.portrait::after { content: ""; position: absolute; inset: 0; background: radial-gradient(#14141455 1px, transparent 1.4px) 0 0 / 4px 4px, linear-gradient(transparent 60%, #c8102e55); pointer-events: none; }
.portrait .initials { font-family: "Anton", sans-serif; font-size: 48px; color: var(--paper); letter-spacing: .04em; }

/* ---------- jornal ---------- */
.paper-panel { padding: 12px; }
.paper { background: #f7f2e6; border: 1px solid var(--ink); padding: 10px 12px; font-family: "Old Standard TT", Georgia, serif; color: #1b1915; box-shadow: inset 0 0 40px #b9a98422; }
.paper.flash { animation: paperflash .6s; }
@keyframes paperflash { 0% { background: #fff6d6; } 100% { background: #f7f2e6; } }
.paper-mast { text-align: center; border-bottom: 3px double var(--ink); padding-bottom: 4px; margin-bottom: 8px; }
.paper-name { font-family: "UnifrakturMaguntia", "Old Standard TT", serif; font-size: 30px; line-height: 1.1; }
.paper.era-4 .paper-name, .paper.era-3 .paper-name { font-family: "Anton", sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.paper.era-5 .paper-name, .paper.era-6 .paper-name { font-family: "Archivo", sans-serif; font-weight: 700; letter-spacing: -.02em; }
.paper.era-5 .paper-name::before { content: "● "; color: var(--red); }
.paper.era-6 .paper-name::before { content: "◈ "; color: var(--red); }
.paper-line { display: flex; justify-content: space-between; border-top: 1px solid var(--ink); margin-top: 3px; padding-top: 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.paper-extra { display: inline-block; background: var(--red); color: #fff; font-family: "Anton", sans-serif; letter-spacing: .1em; padding: 1px 8px; font-size: 13px; }
.paper-lead { font-family: "Old Standard TT", Georgia, serif; font-weight: 700; text-transform: none; font-size: 22px; line-height: 1.12; margin: 4px 0 6px; }
.paper-lead-text { font-size: 14px; margin: 0 0 6px; font-style: italic; }
.paper-also { font-size: 12px; border-top: 1px solid #14141444; padding-top: 4px; margin-bottom: 6px; }
.paper-cols { column-count: 1; column-gap: 14px; column-rule: 1px solid #14141433; border-top: 1px solid var(--ink); padding-top: 6px; }
.paper-item { break-inside: avoid; margin-bottom: 8px; font-size: 13px; line-height: 1.3; }
.paper-item b { display: block; font-size: 14px; }
.paper-item span { display: block; color: #3b3630; }
.paper-item.bad b { color: var(--red-dark); }
.paper-item.hunter b::before { content: "🔎 "; }
.paper-item.muted span { font-style: italic; color: var(--muted); }
.paper-ad { margin-top: 6px; border: 1px dashed var(--ink); padding: 5px 8px; font-size: 12px; font-style: italic; }
.paper-ad small { display: block; font-style: normal; font-family: "Courier Prime", monospace; letter-spacing: .1em; font-size: 10px; }
.paper.big { padding: 18px 22px; }
.paper.big .paper-name { font-size: 46px; }
.paper.big .paper-lead { font-size: 32px; }
.paper.big .paper-lead-text { font-size: 16px; }
.paper.big .paper-cols { column-count: 2; }
@media (max-width: 640px) { .paper.big .paper-cols { column-count: 1; } .paper.big .paper-name { font-size: 32px; } .paper.big .paper-lead { font-size: 24px; } }
.paper-modal .btn { margin-top: 14px; }
.archive { margin-top: 14px; }
.archive-list { display: flex; flex-direction: column; gap: 4px; max-height: 40vh; overflow-y: auto; }
.archive-btn { text-align: left; font: inherit; font-size: 12.5px; background: var(--paper); border: 1px solid #14141444; border-left: 4px solid var(--ink); padding: 5px 8px; cursor: pointer; color: var(--ink); }
.archive-btn:hover { background: #fff; }
.archive-btn.extra { border-left-color: var(--red); }
.archive-btn .mono { font-weight: 700; color: var(--red); margin-right: 4px; }

@media (max-width: 1100px) { .layout { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .layout { grid-template-columns: 1fr; } .tooltip { display: none; } }
.inv-photo { height: 180px; flex: none; }
.inv-photo .portrait { height: 100%; aspect-ratio: auto; }
.legacy .inv-photo { height: 200px; }

/* =====================================================================
   v0.4 — animações e controles de som
   ===================================================================== */

/* ---------- botões ---------- */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, #ffffff40 50%, transparent 70%); transform: translateX(-120%); transition: transform .5s; pointer-events: none; }
.btn:hover:not(:disabled)::after { transform: translateX(120%); }
.btn-sound { font-size: 18px; min-width: 44px; }
.btn-sound.muted { color: var(--muted); text-decoration: line-through; }
.menu-sound { align-self: flex-start; font-size: 14px; padding: 6px 12px; }
.end-turn.ready { animation: ready 1.6s ease-in-out infinite; }
@keyframes ready { 0%, 100% { box-shadow: 3px 3px 0 var(--ink); } 50% { box-shadow: 3px 3px 0 var(--ink), 0 0 0 6px #c8102e33; } }

/* ---------- cartas de ação distribuídas a cada década ---------- */
.action.deal { animation: deal .45s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes deal { from { opacity: 0; transform: translateY(18px) rotate(-3deg) scale(.96); } to { opacity: 1; transform: none; } }
.action .a-icon img { transition: transform .25s; }
.action:hover:not(:disabled) .a-icon img { transform: rotate(-8deg) scale(1.12); }

/* ---------- carimbo no plano ---------- */
.slot.stamped { animation: stamp .35s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.6) rotate(-8deg); } 70% { opacity: 1; transform: scale(.95) rotate(1deg); } 100% { transform: none; } }

/* ---------- ano rolando ---------- */
.year.roll { animation: yearflip .7s ease-out; }
@keyframes yearflip { 0% { transform: translateY(-6px); color: var(--ink); } 60% { transform: translateY(2px); } 100% { transform: none; } }

/* ---------- barras: mudança de valor ---------- */
.stat { position: relative; }
.stat.bump-bad .bar { animation: bumpbad .6s; }
.stat.bump-good .bar { animation: bumpgood .6s; }
@keyframes bumpbad { 0%, 100% { transform: none; } 20% { transform: translateX(-4px); box-shadow: 0 0 0 3px #c8102e66; } 40% { transform: translateX(4px); } 60% { transform: translateX(-2px); } }
@keyframes bumpgood { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 3px #2e6e3e55; } }
.delta { position: absolute; right: 0; top: -14px; font-family: "Courier Prime", monospace; font-weight: 700; font-size: 14px; animation: floatup 1.6s ease-out forwards; pointer-events: none; }
.delta.up { color: var(--red); }
.delta.down { color: var(--green); }
@keyframes floatup { 0% { opacity: 0; transform: translateY(8px); } 15% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }

/* ---------- mapa: ondas onde a ação acontece ---------- */
.world .ping { fill: none; stroke-width: 2.5; transform-box: fill-box; transform-origin: center; animation: ping 1.1s ease-out both; pointer-events: none; }
.world .ping.ok { stroke: var(--ink); }
.world .ping.select { stroke: var(--ink); stroke-width: 3; }
.world .ping.bad { stroke: var(--red); stroke-width: 3.5; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(5); opacity: 0; } }
.world .region { transition: fill .6s, stroke-width .15s, filter .2s; }
.world .region:hover { filter: brightness(.93); }

/* ---------- imagem do evento: zoom lento ---------- */
.event-img img { animation: kenburns 24s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }

/* ---------- jornal girando (como nos filmes antigos) ---------- */
.modal.spin { animation: spinpaper .9s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes spinpaper { 0% { transform: rotate(-720deg) scale(.05); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
.paper.flash { animation: paperflash .6s; }

/* ---------- carimbo CONFIDENCIAL nos dilemas ---------- */
.stamped-img { position: relative; }
.confidential { position: absolute; z-index: 2; right: 18px; top: 18px; font-family: "Special Elite", monospace; font-size: 26px; letter-spacing: .14em; color: var(--red); border: 4px solid var(--red); padding: 2px 12px; background: #f4efe3cc; transform: rotate(-9deg); animation: confstamp .5s .35s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes confstamp { from { opacity: 0; transform: rotate(-9deg) scale(2.4); } to { opacity: 1; transform: rotate(-9deg) scale(1); } }

/* ---------- modais ---------- */
.modal-bg { animation: fadein .2s ease-out; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal .choice { transition: transform .12s, box-shadow .12s, background .12s; }
.modal .choice:hover:not(:disabled) { transform: translateX(4px); }

/* ---------- menu ---------- */
.menu-art img { animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1) rotate(0); } to { transform: scale(1.035) rotate(1.2deg); } }
.menu-side > * { animation: slidein .6s cubic-bezier(.2, .9, .3, 1) both; }
.menu-side > *:nth-child(2) { animation-delay: .15s; }
.menu-side > *:nth-child(3) { animation-delay: .22s; }
.menu-side > *:nth-child(4) { animation-delay: .29s; }
.menu-side > *:nth-child(5) { animation-delay: .36s; }
.menu-side > *:nth-child(6) { animation-delay: .43s; }
.menu-side > *:nth-child(7) { animation-delay: .5s; }
@keyframes slidein { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.menu-title h1 span { animation: flicker 6s infinite; }
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .3; } 94% { opacity: 1; } 96% { opacity: .5; } 97% { opacity: 1; } }

/* ---------- caçador em perigo ---------- */
.hunter-panel .bar > i { transition: width .8s; }
.action.urgent { animation: urgent 1.2s ease-in-out infinite; }
@keyframes urgent { 50% { box-shadow: 3px 3px 0 var(--red), 0 0 0 4px #c8102e33; } }

/* ---------- ajustes de som ---------- */
.range { display: flex; align-items: center; gap: 12px; margin: 10px 0; font-weight: 600; }
.range span { width: 70px; }
.range input { flex: 1; accent-color: var(--red); }
.check { display: flex; align-items: center; gap: 8px; margin: 10px 0 14px; }
.check input { accent-color: var(--red); width: 18px; height: 18px; }

/* ---------- quem prefere menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   v0.5 — laboratório, agentes, base, conquistas, avisos
   ===================================================================== */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details > summary h2 { display: flex; justify-content: space-between; align-items: center; }
details > summary h2::after { content: "▾"; font-size: 14px; transition: transform .2s; }
details:not([open]) > summary h2::after { transform: rotate(-90deg); }
details:not([open]) > summary h2 { margin-bottom: 0; }

/* laboratório */
.tech { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px dashed #14141433; }
.tech-ico { font-size: 22px; width: 28px; text-align: center; }
.tech-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tech-body b { font-size: 13.5px; }
.tech-body small { font-size: 12px; color: var(--ink2); line-height: 1.3; }
.tech-body .tech-why { color: var(--red-dark); font-family: "Courier Prime", monospace; }
.tech.locked-year, .tech.locked-know { opacity: .55; }
.tech.done .tech-body b { color: var(--green); }
.tech-done { color: var(--green); font-size: 20px; font-weight: 700; padding: 0 8px; }
.tech-buy { padding: 5px 9px; font-size: 13px; box-shadow: 2px 2px 0 var(--red); }

/* agentes */
.agent { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px dashed #14141433; }
.agent > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.agent small { font-size: 12px; color: var(--ink2); }
.agent-avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-family: "Anton", sans-serif; font-size: 15px; border: 2px solid var(--ink); }
.agent.suspect .agent-avatar { background: var(--red); animation: urgent 1.2s infinite; }
.agent-level { font-family: "Courier Prime", monospace; color: var(--amber) !important; }
.agent .bad { color: var(--red); }

/* base */
.base-line { margin-top: 8px; border-top: 1px dashed #14141444; padding-top: 6px; }
.base-photo { height: 150px !important; display: flex; align-items: center; justify-content: center; }
.base-photo img, .base-photo .ph { width: 100%; height: 100%; object-fit: cover; }
.base-photo .ph { font-size: 64px; background: var(--ink); }
.world .base-marker polygon { fill: var(--red); stroke: var(--ink); stroke-width: 1.5; }
.world .base-marker text { font: 700 9px "Courier Prime", monospace; fill: var(--ink); letter-spacing: .1em; }
.world .base-marker { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.world .vet-star { fill: var(--amber); font-size: 13px; stroke: var(--ink); stroke-width: .6; }

/* avisos rápidos */
#toasts { position: fixed; z-index: 60; right: 16px; top: 16px; display: flex; flex-direction: column; gap: 8px; max-width: 320px; pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: center; background: var(--paper2); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--red); padding: 9px 12px; animation: toastin .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.toast.out { animation: toastout .5s ease-in forwards; }
.toast-ico { font-size: 26px; }
.toast b { display: block; font-size: 14px; }
.toast small { display: block; font-size: 12px; color: var(--ink2); }
@keyframes toastin { from { opacity: 0; transform: translateX(60px) rotate(3deg); } to { opacity: 1; transform: none; } }
@keyframes toastout { to { opacity: 0; transform: translateX(60px); } }

/* conquistas */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 10px 0 16px; }
.ach { display: flex; gap: 10px; align-items: center; border: 2px solid #14141444; padding: 8px 10px; opacity: .55; background: var(--paper); }
.ach.got { opacity: 1; border-color: var(--ink); box-shadow: 3px 3px 0 var(--red); }
.ach-ico { font-size: 26px; }
.ach b { display: block; font-size: 14px; }
.ach small { display: block; font-size: 12px; color: var(--ink2); }
.ach .ach-date { font-family: "Courier Prime", monospace; color: var(--muted); }

/* =====================================================================
   v0.6 — o jogo cabe em qualquer tela
   Computador: tudo na janela, cada coluna rola sozinha.
   Celular/tablet: abas embaixo (Década, Mapa, Situação, Jornal).
   ===================================================================== */
html, body { height: 100%; }
.btn-icon { min-width: 42px; padding: 8px 10px; font-size: 17px; }
.ministats, .tabbar { display: none; }

/* barras de rolagem discretas, no estilo do jogo */
* { scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--ink2); border: 2px solid var(--paper); border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

/* lista de países para escolher (útil no toque e para países pequenos) */
.region-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 8px; }
.region-pick button { display: flex; justify-content: space-between; align-items: center; gap: 6px; font: inherit; font-size: 13px; text-align: left; padding: 7px 9px; border: 2px solid var(--ink); cursor: pointer; color: var(--ink); }
.region-pick button b { font-weight: 600; }
.region-pick button span { font-family: "Courier Prime", monospace; font-weight: 700; font-size: 12px; background: var(--ink); color: var(--paper); padding: 0 5px; }
.region-pick button:hover { box-shadow: 3px 3px 0 var(--red); transform: translate(-1px, -1px); }
.region-pick-title { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }

@media (hover: none) { .tooltip { display: none !important; } }

/* ---------- computador ---------- */
@media (min-width: 1100px) {
  body { overflow: hidden; }
  #app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; max-width: none; padding: 10px 14px 0; }
  .topbar { flex: none; }
  .brand h1 { font-size: 28px; }
  .year { font-size: 44px; }
  #logo-slot img, #logo-slot .ph { width: 48px; height: 48px; }
  .timeline { flex: none; margin: 8px 0 10px; height: 24px; }
  .layout { flex: 1; min-height: 0; grid-template-columns: 270px minmax(0, 1fr) 320px; gap: 14px; align-items: stretch; }
  .col-left, .col-main, .col-right { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 0 8px 16px 0; gap: 14px; }
  .event-img { height: 150px; }
  .archive-list { max-height: none; }
}
@media (min-width: 1100px) and (max-height: 760px) {
  .event-img { height: 110px; }
  .event-body h3 { font-size: 22px; }
}

/* ---------- celular e tablet ---------- */
@media (max-width: 1099px) {
  #app { padding: 8px 10px 90px; }
  .topbar { gap: 8px; flex-wrap: nowrap; }
  .brand { gap: 8px; min-width: 0; }
  .brand h1 { font-size: 19px; line-height: 1; }
  .brand .sub { display: none; }
  #logo-slot img, #logo-slot .ph { width: 38px; height: 38px; }
  .top-right { gap: 6px; }
  .year { font-size: 32px; }
  .era { font-size: 11px; }
  .btn-menu { padding: 6px 8px; font-size: 12px; }
  .btn-icon { min-width: 34px; font-size: 15px; }
  .timeline { height: 20px; margin: 8px 0; }
  .timeline .seg { font-size: 0; }
  .timeline .seg.current { font-size: 10px; }

  .ministats { display: flex; position: sticky; top: 0; z-index: 12; gap: 6px; margin: 0 -10px 8px; padding: 6px 10px; background: var(--paper2); border-bottom: 2px solid var(--ink); font-family: "Courier Prime", monospace; font-size: 13px; font-weight: 700; flex-wrap: wrap; }
  .ministats span { padding: 1px 6px; border: 1.5px solid var(--ink); background: var(--paper); }
  .ministats .warn { background: var(--red); color: #fff; border-color: var(--red); }

  .layout { display: flex; flex-direction: column; gap: 12px; }
  .col-left, .col-main, .col-right { gap: 12px; }
  .tab-decada, .tab-mapa, .tab-situacao, .tab-jornal { display: none !important; }
  body[data-tab="decada"] .tab-decada, body[data-tab="mapa"] .tab-mapa, body[data-tab="jornal"] .tab-jornal { display: block !important; }
  body[data-tab="situacao"] .tab-situacao, body[data-tab="jornal"] .col-right.tab-jornal { display: flex !important; }
  .actions-panel .end-turn { display: none; }
  .event-img { height: 140px; }
  .actions { grid-template-columns: 1fr 1fr; }
  .action .a-desc { display: none; }
  .action .a-name { font-size: 15px; }
  .map-legend { display: none; }

  .tabbar { display: flex; position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; background: var(--ink); border-top: 3px solid var(--red); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; color: var(--paper3); font: 600 11px "Archivo", sans-serif; padding: 4px 2px; cursor: pointer; }
  .tabbar button span { font-size: 19px; line-height: 1; }
  .tabbar button.active { color: #fff; }
  .tabbar button.active span { transform: scale(1.15); }
  .tabbar .tab-end { background: var(--red); color: #fff; margin: -16px 4px 0; border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--red); font-family: "Anton", sans-serif; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
  .tabbar .tab-end:disabled { opacity: .5; }
  .tabbar .tab-end.ready { animation: ready 1.6s ease-in-out infinite; }
  .tabbar .badge { position: absolute; }

  .modal .m-img { height: 170px; }
  .modal h3 { font-size: 24px; }
  .modal .m-body { padding: 14px 14px 16px; }
  .inv-grid { grid-template-columns: 1fr; }
  .inv-photo { height: 150px; }
  .paper.big { padding: 12px; }
  #toasts { left: 10px; right: 10px; top: 10px; max-width: none; }
}
@media (max-width: 420px) {
  .brand h1 { font-size: 16px; }
  .year { font-size: 28px; }
  .actions { grid-template-columns: 1fr; }
}

/* os painéis não encolhem dentro das colunas que rolam */
.col-left > *, .col-main > *, .col-right > * { flex-shrink: 0; }
.world .region { fill: #f4efe3; }
@media (max-width: 1099px) {
  .clock .era { display: none; }
  .select-banner { flex-wrap: wrap; font-size: 13px; }
  .select-banner .btn { margin-left: auto; }
  .ministats { margin-top: 6px; }
}

/* =====================================================================
   v0.8 — conta, login e ranking
   ===================================================================== */
.menu-account { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border: 2px dashed var(--ink); padding: 8px 10px; font-size: 13px; background: var(--paper2); }
.menu-account .btn { padding: 6px 12px; font-size: 14px; }
.menu-foot a, .auth a, .m-body a { color: var(--red-dark); }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; margin: 10px 0; }
.field input { font: 15px "Archivo", sans-serif; padding: 10px 12px; border: 2px solid var(--ink); background: #fff; color: var(--ink); }
.field input:focus { outline: none; box-shadow: 3px 3px 0 var(--red); }
.auth .btn.primary { width: 100%; margin-top: 6px; }
.auth .google { width: 100%; }
.auth .or { text-align: center; font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.auth-msg { margin-top: 10px; padding: 8px 10px; font-size: 13px; border: 2px solid var(--ink); }
.auth-msg.err { background: #fbe3e5; border-color: var(--red); color: var(--red-dark); }
.auth-msg.ok { background: #e3f2e6; border-color: var(--green); color: var(--green); }
.close-x { margin-top: 12px; }
.btn.danger { color: var(--red); border-color: var(--red); }
.rank-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.rank-tabs .btn { padding: 6px 12px; font-size: 13px; }
table.rank { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.rank th { text-align: left; font-family: "Special Elite", monospace; font-weight: 400; color: var(--red); border-bottom: 2px solid var(--ink); padding: 4px 6px; }
table.rank td { border-bottom: 1px dashed #14141433; padding: 6px; }
table.rank tr.me td { background: #c8102e18; font-weight: 700; }
table.rank td:first-child { font-family: "Courier Prime", monospace; font-weight: 700; }
@media (max-width: 600px) { table.rank th:nth-child(4), table.rank td:nth-child(4), table.rank th:nth-child(5), table.rank td:nth-child(5) { display: none; } }

/* v0.9 — condição do mundo */
.condition-card { display: flex; gap: 14px; align-items: flex-start; border: 2px solid var(--ink); background: var(--paper); box-shadow: 4px 4px 0 var(--red); padding: 12px 14px; margin: 10px 0 14px; animation: stamp .4s cubic-bezier(.3, 1.6, .5, 1) both; }
.condition-card .cond-ico { font-size: 40px; line-height: 1; }
.condition-card b { font-family: "Anton", sans-serif; font-weight: 400; font-size: 20px; text-transform: uppercase; }
.condition-card p { margin: 4px 0 0; font-size: 14px; }

/* v1.0 — compartilhar e apoiar */
.share-preview { display: block; width: 100%; max-width: 380px; margin: 8px auto 14px; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--red); }
.choices a.btn { text-align: center; text-decoration: none; }
.pix-box { display: flex; flex-direction: column; gap: 6px; border: 2px dashed var(--ink); padding: 10px 12px; margin: 10px 0; background: var(--paper); }
.pix-box small { font-family: "Courier Prime", monospace; letter-spacing: .1em; color: var(--red); }
.pix-box code { font: 700 15px "Courier Prime", monospace; word-break: break-all; }
.support h3 { margin-bottom: 12px; }
.qr-box { width: 240px; max-width: 70vw; aspect-ratio: 1; margin: 6px auto 8px; background: #fff; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--red); display: flex; align-items: center; justify-content: center; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.support .small { text-align: center; }

/* =====================================================================
   v1.1 — barras de rolagem visíveis e aviso "role para ver mais"
   ===================================================================== */
* { scrollbar-width: auto; scrollbar-color: var(--red) var(--paper3); }
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--paper3); border-left: 2px solid var(--ink); }
::-webkit-scrollbar-thumb { background: var(--red); border: 3px solid var(--paper3); border-radius: 8px; min-height: 48px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-dark); }
.modal::-webkit-scrollbar-track { border-left: 0; }

.scroll-hint { position: sticky; bottom: 6px; z-index: 3; display: flex; justify-content: center; pointer-events: none; height: 0; overflow: visible; }
.scroll-hint span { transform: translateY(-34px); background: var(--red); color: #fff; font: 700 12px "Archivo", sans-serif; letter-spacing: .04em; padding: 5px 12px; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); pointer-events: auto; cursor: pointer; animation: hintbob 1.4s ease-in-out infinite; }
@keyframes hintbob { 50% { transform: translateY(-28px); } }
.scroll-hint.off { display: none; }
@media (max-width: 1099px) { .scroll-hint { display: none; } }

/* ---------- tutorial guiado ---------- */
#tour { position: fixed; inset: 0; z-index: 45; pointer-events: auto; }
.tour-hole { position: fixed; border: 3px solid var(--red); border-radius: 6px; box-shadow: 0 0 0 9999px rgba(20, 20, 20, .72), 0 0 24px 4px #c8102e88; transition: top .3s, left .3s, width .3s, height .3s; pointer-events: none; animation: tourpulse 1.6s ease-in-out infinite; }
.tour-hole.none { top: 50% !important; left: 50% !important; width: 0 !important; height: 0 !important; border: 0; animation: none; }
@keyframes tourpulse { 50% { box-shadow: 0 0 0 9999px rgba(20, 20, 20, .72), 0 0 34px 10px #c8102eaa; } }
.tour-card { position: fixed; width: min(380px, calc(100vw - 16px)); background: var(--noise), var(--paper2); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--red); padding: 14px 16px 16px; animation: pop .25s ease-out; transition: top .3s, left .3s; }
.tour-card h3 { font-size: 24px; margin: 2px 0 6px; }
.tour-card p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.45; }
.tour-btns { display: flex; justify-content: space-between; gap: 8px; }
.tour-btns .btn { padding: 8px 14px; font-size: 15px; }
.help-btn { font-weight: 700; color: var(--red); border-color: var(--red); }
.slot.hint { border-color: var(--red); color: var(--red); font-weight: 700; animation: blink 1.4s infinite; }
.howto ol { padding-left: 20px; margin: 6px 0 12px; }
.howto li { margin-bottom: 8px; }

/* v1.2 — energia */
.cap-note { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 2px; }
