:root {
  /* Identidade da República: vinho, papel creme e dourado (como na POC 2.1). */
  --felt: #1f1519;
  --felt-2: #2b1d23;
  --felt-3: #3a272f;
  --line: #533a45;
  --ink: #f2e8d8;
  --ink-dim: #bca99c;
  --paper: #fbf6ea;
  --paper-ink: #24181a;
  --beige: #efe2c6;
  --news: #f3e8cf;
  --wine: #6b1d2c;
  --wine-2: #4a1420;
  --hegemonia: #a8731c;
  --accent: #d9a83c;
  --danger: #c8443a;
  --ok: #2f8a4e;
  /* Cores dos tipos: as das bolinhas oficiais. */
  --estatal: #13a052;
  --sindical: #ec6c14;
  --movimento: #7b3a97;
  --opiniao: #df365a;
  --midia: #8b4a1f;
  --capital: #139fd6;
  --title: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Source Serif 4', Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--felt);
  color: var(--ink);
  font: 15px/1.4 var(--body);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
body.in-game { overflow: hidden; touch-action: manipulation; }
button, input, select { font: inherit; }
h1, h2, h3 { font-family: var(--title); font-weight: 600; letter-spacing: .02em; margin: 0 0 .5em; }
a { color: var(--accent); }
.tiny { font-size: 12px; }

.btn {
  background: var(--accent); color: #1b1404; border: 0; border-radius: 6px;
  padding: 8px 14px; font-family: var(--title); font-weight: 600; letter-spacing: .03em;
  cursor: pointer; text-transform: uppercase; font-size: 14px; touch-action: manipulation;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.small { padding: 4px 9px; font-size: 12px; }
input[type=text], input[type=password], .select {
  background: var(--felt); color: var(--ink); border: 1px solid var(--line);
  border-radius: 6px; padding: 8px 10px; width: 100%;
}
.select { display: block; margin-top: 4px; width: auto; }
input:focus-visible, .btn:focus-visible, .card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label { display: block; font-size: 13px; color: var(--ink-dim); margin: 10px 0 4px; }
.muted { color: var(--ink-dim); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--danger); color: #fff; padding: 10px 18px; border-radius: 8px;
  font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 80; max-width: 90vw;
}
#toast.show { opacity: 1; }
#toast.info { background: var(--felt-3); }

/* ------------------------------------------------ telas simples */
.center-screen { min-height: 100%; display: grid; place-items: center; padding: 16px; }
.panel { background: var(--felt-2); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.panel.practice { border-color: var(--accent); }
.login { width: min(380px, 100%); }
.logo { font-family: var(--title); font-size: 40px; font-weight: 700; letter-spacing: .06em; text-align: center; margin-bottom: 2px; }
.logo small { display: block; font-size: 14px; color: var(--accent); letter-spacing: .3em; }
.page { max-width: 1000px; margin: 0 auto; padding: 16px; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--felt-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.topbar .brand { font-family: var(--title); font-size: 20px; font-weight: 700; letter-spacing: .06em; }
.topbar .brand span { color: var(--accent); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
table.list { width: 100%; border-collapse: collapse; }
table.list td, table.list th { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; }
table.list th { font-family: var(--title); font-weight: 400; color: var(--ink-dim); font-size: 13px; }
.room-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tag { display: inline-block; font-family: var(--title); font-size: 11px; padding: 1px 7px; border-radius: 10px; background: var(--felt-3); color: var(--ink-dim); letter-spacing: .05em; text-transform: uppercase; }
.tag.warn { background: var(--accent); color: #1b1404; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex: none; }
.dot.on { background: var(--ok); }
.zone-title { font-family: var(--title); font-size: 12px; letter-spacing: .14em; color: var(--ink-dim); text-transform: uppercase; margin-bottom: 6px; }
.summary-card { font-size: 14px; color: var(--ink-dim); }
.summary-card ol { padding-left: 18px; margin: 4px 0; }

/* ------------------------------------------------ cartas
   Tamanho fixo em pixels: o texto nunca fica menor que ~10px.
   Cartas pequenas mostram só nome, tipos e números; o texto completo aparece ao segurar/tocar. */
.card {
  --cw: 86px; --ch: 116px;
  position: relative; flex: none;
  width: var(--cw); height: var(--ch);
  font-size: 11px; line-height: 1.15;
  border-radius: 8px; padding: 6px 6px 5px; overflow: hidden;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--paper); color: var(--paper-ink);
  box-shadow: 0 1px 0 rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.25);
  border: 2px solid transparent;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform .12s, box-shadow .12s, border-color .12s, opacity .12s;
  cursor: pointer;
}
.hscroll .card { touch-action: pan-x; }
.c-politico, .c-reputacao, .c-campanha, .c-manobra { background: var(--beige); }
.c-instituicao { border-top: 6px solid var(--tc, var(--line)); }
.c-cargo { border-top: 6px solid var(--hegemonia); }
.c-top { display: none; font-family: var(--title); font-size: 10px; letter-spacing: .12em; opacity: .6; text-transform: uppercase; }
.c-title {
  font-family: var(--title); font-weight: 600; text-transform: uppercase; font-size: 12px; line-height: 1.08;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.c-title i { font-style: normal; opacity: .5; font-weight: 400; }
.c-types { display: flex; gap: 3px; flex-wrap: wrap; }
.chip { color: #fff; font-family: var(--title); font-size: 10px; padding: 0 4px; border-radius: 3px; letter-spacing: .04em; text-transform: uppercase; }
.c-art {
  display: none; flex: 1; min-height: 0; border-radius: 4px; place-items: center;
  background: repeating-linear-gradient(135deg, rgba(0,0,0,.05) 0 4px, rgba(0,0,0,.09) 4px 8px);
  font-family: var(--title); font-size: 11px; letter-spacing: .1em; color: rgba(0,0,0,.35); text-transform: uppercase;
}
.c-text { display: none; font-size: 11.5px; line-height: 1.25; }
.c-text b { font-family: var(--title); font-weight: 600; text-transform: uppercase; }
.c-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 3px; }
.bh { background: var(--hegemonia); color: #fff; font-family: var(--title); border-radius: 50%; min-width: 22px; height: 22px; display: grid; place-items: center; font-weight: 700; font-size: 13px; padding: 0 3px; }
.bh.var { border-radius: 11px; font-size: 11px; }
.bi { font-family: var(--title); font-weight: 700; font-size: 22px; line-height: 1; }
.bi.neg { color: var(--danger); }
.bi.pos { color: #1c7c46; }
.now { font-family: var(--title); font-weight: 700; font-size: 15px; color: #1c7c46; }
.mini-note { font-family: var(--title); font-size: 10px; opacity: .5; text-transform: uppercase; letter-spacing: .1em; }
.ribbon {
  position: absolute; left: 0; right: 0; top: 0; z-index: 1;
  background: var(--hegemonia); color: #fff; font-family: var(--title); font-size: 10.5px;
  padding: 2px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase;
}
.ribbon ~ .c-title { margin-top: 15px; }
.repchip { position: absolute; right: 5px; bottom: 30px; background: var(--paper-ink); color: var(--beige); font-family: var(--title); font-size: 10px; padding: 0 5px; border-radius: 6px; }

/* tamanhos */
.s-hand .c-top { display: block; }
.s-hand  { --cw: 92px;  --ch: 124px; }
.s-table { --cw: 84px;  --ch: 112px; }
.s-mine  { --cw: 80px;  --ch: 108px; }
.s-pick  { --cw: 132px; --ch: 184px; font-size: 12px; }
.s-pick .c-top, .s-pick .c-text { display: block; }
.s-pick .c-title { font-size: 13.5px; }
.s-xl    { --cw: 240px; --ch: 336px; font-size: 15px; padding: 12px 14px; gap: 8px; cursor: default; border-radius: 14px; }
.s-xl .c-top, .s-xl .c-text { display: block; }
.s-xl .c-art { display: grid; }
.s-xl .c-title { font-size: 21px; -webkit-line-clamp: 5; }
.s-xl .c-text { font-size: 15px; }
.s-xl .chip { font-size: 13px; padding: 1px 6px; }
.s-xl .bi { font-size: 38px; }
.s-xl .bh { min-width: 36px; height: 36px; font-size: 20px; }
.s-xl .ribbon { font-size: 14px; padding: 4px 8px; }
.s-xl .ribbon ~ .c-top { margin-top: 22px; }

/* estados */
.card.playable { box-shadow: 0 0 0 2px rgba(224,165,38,.8), 0 4px 12px rgba(0,0,0,.4); }
.g.my-turn .g-hand .card.playable { transform: translateY(-4px); }
.card.valid, .cand.valid { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,165,38,.55), 0 4px 10px rgba(0,0,0,.4); animation: pulse 1.2s infinite; }
.card.dim, .cand.dim { opacity: .35; }
.card.dragging { opacity: .25; }
.card[data-pick], .card[data-pick-extra] { border-color: var(--accent); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(224,165,38,.25), 0 4px 10px rgba(0,0,0,.4); } }
@media (hover: hover) { .card:not(.s-xl):hover { transform: translateY(-3px); } }

.drag-ghost {
  position: fixed !important; z-index: 90; pointer-events: none; margin: 0;
  transform: translate(-50%, -65%) rotate(-4deg) scale(1.08) !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.6) !important; opacity: .95;
}
.drop-ok { outline: 2px dashed var(--accent); outline-offset: 2px; }
.drop-hover { outline: 3px solid var(--accent); outline-offset: 2px; background-color: rgba(224,165,38,.14) !important; }
body.dragging-now, body.dragging-now * { cursor: grabbing !important; }

/* ------------------------------------------------ mesa: tela única */
.g {
  height: 100vh; height: 100dvh;
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
.hscroll { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; align-items: flex-start; scrollbar-width: thin; padding: 4px 2px 6px; }

/* adversários: uma linha de resumo cada */
.g-opps { display: flex; gap: 6px; padding: 5px 6px 2px; overflow-x: auto; }
.opp {
  flex: 1 1 0; min-width: 140px; text-align: left; cursor: pointer;
  background: var(--felt-2); color: var(--ink); border: 1px solid var(--line); border-radius: 9px;
  padding: 4px 9px; display: flex; flex-direction: column; gap: 1px; font: inherit;
}
.opp.turn { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.opp-l1 { display: flex; align-items: center; gap: 6px; font-family: var(--title); font-size: 14px; white-space: nowrap; }
.opp-l1 b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.opp-l2 { font-size: 12px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heg-pill { background: var(--hegemonia); color: #fff; font-family: var(--title); font-size: 13px; padding: 0 7px; border-radius: 9px; flex: none; }
.menu-btn { flex: none; background: var(--felt-2); color: var(--ink); border: 1px solid var(--line); border-radius: 9px; width: 44px; font-size: 20px; cursor: pointer; }

/* faixa de jornal */
.g-ticker {
  all: unset; display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--news); color: var(--paper-ink); padding: 3px 10px; margin: 3px 6px;
  border-radius: 4px; font-size: 13.5px; white-space: nowrap; overflow: hidden; min-width: 0;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.08);
}
.tk-paper { font-family: var(--title); font-weight: 700; letter-spacing: .12em; font-size: 13px; border-right: 1px solid rgba(0,0,0,.25); padding-right: 8px; }
.tk-round { font-family: var(--title); font-size: 12px; background: var(--paper-ink); color: var(--news); padding: 0 6px; border-radius: 3px; text-transform: uppercase; }
.tk-news { flex: 1; overflow: hidden; text-overflow: ellipsis; font-style: italic; }
.tk-news.flash { animation: flash 1.1s ease-out; }
.tk-more { font-family: var(--title); font-size: 12px; opacity: .6; text-transform: uppercase; }
@keyframes flash { 0% { background: #ffd76a; } 100% { background: transparent; } }
.g-pause { position: fixed; left: 50%; top: 6px; transform: translateX(-50%); z-index: 45; background: var(--danger); color: #fff; text-align: center; font-weight: 600; font-size: 14px; padding: 4px 14px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.5); }

/* meio: mesa e seu partido lado a lado, ou a eleição */
.g-mid { min-height: 0; display: flex; gap: 6px; padding: 2px 6px; }
.g-table, .g-mine { min-width: 0; display: flex; flex-direction: column; border-radius: 10px; padding: 3px 6px 0; border: 1px solid var(--line); }
.g-table { flex: 1.15 1 0; background: rgba(0,0,0,.14); }
.g-mine { flex: 1 1 0; background: #27314a; }
/* As cartas da mesa e do partido acompanham a altura que sobrou, sem ficar ilegíveis. */
.g-table, .g-mine { container-type: size; }
.g-table .card, .g-mine .card, .g-mine .slot { --ch: clamp(84px, calc(100cqh - 30px), 250px); --cw: max(90px, calc(var(--ch) * .74)); }
.g-mine .slot { width: 64px; height: var(--ch); }
.g.my-turn .g-mine { border-color: var(--accent); }
.zone-head { display: flex; align-items: center; gap: 8px; font-family: var(--title); font-size: 13px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; }
.zone-head .muted { font-family: var(--body); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.mp-note { background: var(--hegemonia); color: #fff; padding: 0 6px; border-radius: 3px; cursor: pointer; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.slot { flex: none; width: 62px; height: 108px; border: 1px dashed var(--line); border-radius: 8px; display: grid; place-items: center; text-align: center; font-family: var(--title); font-size: 11.5px; color: var(--ink-dim); padding: 4px; }

.elec { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #2a2540; border: 1px solid #5a4f86; border-radius: 10px; padding: 4px 8px 0; }
.elec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 13px; }
.elec-cargo { font-family: var(--title); font-size: 15px; font-weight: 600; cursor: pointer; }
.elec-phase { color: var(--ink-dim); }
.elec-body { flex: 1; align-items: stretch; }
.cand { flex: none; width: 168px; display: flex; flex-direction: column; gap: 2px; background: rgba(0,0,0,.25); border: 2px solid transparent; border-radius: 8px; padding: 5px 8px; cursor: pointer; }
.cand.lead { border-color: rgba(224,165,38,.6); }
.cand-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.cand-party { font-size: 12.5px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cand-total { font-family: var(--title); font-size: 28px; font-weight: 700; line-height: 1; }
.cand.lead .cand-total { color: var(--accent); }
.cand-name { font-family: var(--title); font-size: 14px; font-weight: 600; line-height: 1.1; }
.cand-parts { font-size: 11.5px; color: var(--ink-dim); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* mão e ações */
.g-bottom { display: flex; gap: 8px; padding: 0 6px 4px; min-width: 0; }
.g-hand { flex: 1; min-width: 0; padding-top: 6px; border-radius: 10px; }
@media (hover: none) {
  .hscroll, .g-opps { scrollbar-width: none; }
  .hscroll::-webkit-scrollbar, .g-opps::-webkit-scrollbar { display: none; }
}
.g.my-turn .g-hand { background: linear-gradient(to top, rgba(224,165,38,.14), transparent); }
.g-actions { flex: none; width: clamp(180px, 26vw, 320px); display: flex; flex-direction: column; gap: 6px; justify-content: center; padding: 4px 0; overflow-y: auto; max-height: 150px; }
.prompt { font-size: 14px; line-height: 1.3; }
.prompt.big { font-size: 16px; }
.prompt b { color: var(--accent); }
.g-actions .btn { width: 100%; }

/* janelas */
.sheet-bg { position: fixed; inset: 0; background: rgba(10,12,20,.75); display: grid; place-items: center; z-index: 50; padding: 8px; }
.sheet { background: var(--felt-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; gap: 14px; max-height: 96vh; max-height: 96dvh; max-width: 98vw; overflow: auto; align-items: flex-start; }
.sheet.col { flex-direction: column; gap: 8px; align-items: stretch; }
.sheet-side { display: flex; flex-direction: column; gap: 8px; min-width: 190px; max-width: 320px; font-size: 14px; }
.sheet-side h3 { margin: 0; }
.pick-sheet { width: min(98vw, 920px); }
.pick-group .zone-title { margin: 2px 0 4px; }
.pick-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.col-tight { display: flex; flex-direction: column; gap: 3px; }
.rep-line { background: var(--beige); color: var(--paper-ink); border-radius: 4px; padding: 1px 6px; display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; }
.newspaper { background: var(--news); color: var(--paper-ink); width: min(640px, 96vw); max-height: 92vh; max-height: 92dvh; overflow: auto; padding: 14px 20px; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.np-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px double var(--paper-ink); margin-bottom: 8px; padding-bottom: 4px; }
.np-head span { font-family: var(--title); font-weight: 700; font-size: 26px; letter-spacing: .12em; }
.newspaper p { margin: 0; padding: 6px 0; border-bottom: 1px dotted rgba(0,0,0,.25); font-size: 15px; }
.newspaper p:last-of-type { font-weight: 600; }
.newspaper p.np-turn { font-family: var(--title); font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; border-top: 2px solid var(--paper-ink); border-bottom: 0; margin-top: 8px; padding-top: 6px; }
.newspaper p.np-win { background: var(--hegemonia); color: #fff; padding: 5px 8px; border-radius: 4px; }
.newspaper .btn.ghost { color: var(--paper-ink); border-color: rgba(0,0,0,.35); }
.hover-prev { position: fixed; z-index: 70; pointer-events: none; display: none; filter: drop-shadow(0 10px 24px rgba(0,0,0,.6)); }

/* celular em pé */
.rotate { display: none; }
@media (orientation: portrait) and (max-width: 700px) {
  .rotate { display: flex; position: fixed; inset: 0; z-index: 60; background: var(--felt); flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; font-size: 17px; }
  .rotate div { font-size: 52px; }
}

/* telas muito baixas (celular deitado com barra do navegador) */
@media (max-height: 360px) {
  .s-hand { --cw: 84px; --ch: 112px; }
  .s-table, .s-mine { --cw: 76px; --ch: 100px; }
  .slot { height: 100px; }
  .s-pick { --cw: 120px; --ch: 168px; }
  .s-xl { --cw: 200px; --ch: 280px; font-size: 13.5px; }
  .s-xl .c-art { display: none; }
  .tk-paper { display: none; }
  .opp-l2 { font-size: 11.5px; }
}

/* telas altas (tablet, computador): cartas maiores e com texto */
@media (min-height: 700px) {
  .s-hand  { --cw: 130px; --ch: 182px; font-size: 12px; }
  .s-hand .c-text { display: block; }
  .s-hand .c-title { font-size: 14px; }
  .s-table { --cw: 112px; --ch: 154px; }
  .s-table .c-title { font-size: 13.5px; }
  .s-mine  { --cw: 104px; --ch: 144px; }
  .s-mine .c-title { font-size: 13px; }
  .slot { height: 144px; width: 80px; }
  .opp-l1 { font-size: 16px; }
  .opp-l2 { font-size: 13.5px; }
  .g-ticker { font-size: 15.5px; padding: 5px 12px; }
  .zone-head { font-size: 15px; }
  .prompt { font-size: 16px; }
  .g-actions { max-height: 200px; }
  .g-actions .btn { font-size: 16px; padding: 11px 14px; }
  .cand { width: 200px; }
  .cand-total { font-size: 36px; }
  .cand-name { font-size: 16px; }
  .s-xl { --cw: 270px; --ch: 378px; }
}
@media (min-height: 700px) {
  .g-table .c-text, .g-mine .c-text { display: block; }
  .g-table .c-art, .g-mine .c-art { display: grid; }
}
@media (min-height: 900px) {
  .s-hand { --cw: 150px; --ch: 210px; }
  .s-hand .c-art, .s-table .c-art { display: grid; }
  .s-table { --cw: 124px; --ch: 172px; }
}

/* ================================================================
   Visual 2: ilustrações, bolinhas, selos e mesa vinho.
   Acrescentado por cima do visual anterior; o que não aparece aqui ficou igual.
   ================================================================ */

/* Ilustração no topo de toda carta, com a bolinha do tipo por cima. */
.card { padding: 0; gap: 3px; border-width: 2px; }
.card > .c-top, .card > .c-title, .card > .c-types, .card > .c-text, .card > .c-foot { margin-left: 6px; margin-right: 6px; }
.card > .c-foot { margin-bottom: 5px; }
.card .c-art {
  display: block !important; position: relative; flex: 0 0 34%; min-height: 0; border-radius: 0;
  background-color: #d9ccb0; background-size: cover; background-position: center 30%;
  filter: sepia(.15) contrast(1.02); font-size: 0; margin-bottom: 9px;
}
.card .c-art.no-art { background: linear-gradient(135deg, var(--wine), #8a2a3c); }
.c-icons { position: absolute; left: 5px; bottom: -9px; display: flex; gap: 2px; }
.c-icons img { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.45); background: #fff; }
.s-xl .c-art { flex-basis: 42%; margin-bottom: 14px; }
.s-xl .c-icons { bottom: -14px; left: 10px; }
.s-xl .c-icons img { width: 36px; height: 36px; }
.s-pick .c-icons img { width: 26px; height: 26px; }
.s-pick { --ch: 214px; }
.s-pick .c-art { flex-basis: 30%; }
.ribbon { z-index: 2; }
.ribbon ~ .c-title { margin-top: 0; }

/* Moldura diz o tipo de carta: cargo dourado, instituição na cor do tipo. */
.c-instituicao { border: 2px solid var(--tc); border-top-width: 2px; }
.c-cargo { border: 2px solid #b8862b; border-top-width: 2px; background: linear-gradient(#fbf3df, #f3e4bf); }
.c-cargo .c-title::before { content: 'CARGO · '; color: #9a6c1a; font-weight: 400; font-size: .82em; }

/* Tipos com bolinha (nos tamanhos grandes). */
.chip { display: inline-flex; align-items: center; gap: 3px; background: var(--tc); padding: 0 5px 0 1px; border-radius: 9px; }
.chip img { width: 14px; height: 14px; border-radius: 50%; }
.card .c-types { display: none; }
.s-pick .c-types, .s-xl .c-types { display: flex; }

/* Selos: hegemonia dourada (coroa), influência verde/vermelha. */
.bh { background: radial-gradient(circle at 35% 30%, #e2b453, var(--hegemonia) 70%); box-shadow: 0 0 0 1.5px #f3d58a inset, 0 1px 2px rgba(0,0,0,.35); text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.bi.pos, .bi.neg { color: #fff; font-size: 14px; border-radius: 11px; padding: 2px 6px; min-width: 24px; text-align: center; }
.bi.pos { background: var(--ok); }
.bi.neg { background: var(--danger); }
.bi.plain { background: var(--paper-ink); color: var(--beige); font-size: 15px; border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; }
.s-xl .bi.pos, .s-xl .bi.neg { font-size: 22px; padding: 3px 10px; border-radius: 16px; }
.s-xl .bi.plain { width: 40px; height: 40px; font-size: 24px; }
.heg-pill { background: radial-gradient(circle at 35% 30%, #e2b453, var(--hegemonia) 70%); }

/* Mesa da República: feltro vinho, dividida em cargos e instituições. */
.g-table { background: radial-gradient(ellipse at 50% 0%, #7a2435, var(--wine-2) 75%); border-color: #8a3a49; box-shadow: inset 0 0 30px rgba(0,0,0,.35); }
.g-mine { background: var(--felt-2); flex: 0 1 auto; max-width: 50%; }
.g-table { flex: 1 1 0; }
.g-mine .fit-row { min-width: 150px; }
/* A altura das cartas vem da faixa do meio; assim o partido pode ter a largura do que tem nele. */
.g-mid { container-type: size; }
.g-table, .g-mine { container-type: normal; }
.g-table .card { --ch: clamp(84px, calc(100cqh - 52px), 320px); }
.g-mine .card, .g-mine .slot { --ch: clamp(84px, calc(100cqh - 36px), 320px); }
.zone-head img, .tg-label img { width: 18px; height: 18px; border-radius: 50%; }
.zone-head { font-family: var(--title); }
.tgroups { flex: 1; min-height: 0; display: flex; gap: 10px; }
.tgroup { min-width: 0; flex-basis: 0; display: flex; flex-direction: column; }
.tg-label { display: flex; align-items: center; gap: 5px; font-family: var(--title); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #f3d9b8; }
.t-cargos .tg-label { color: #f0cd84; }
.tgroup + .tgroup { border-left: 1px dashed rgba(255,255,255,.18); padding-left: 10px; }
.g-table .card, .g-mine .card, .g-mine .slot { --ch: clamp(84px, calc(100cqh - 46px), 320px); }
.g-mine .card, .g-mine .slot { --ch: clamp(84px, calc(100cqh - 34px), 320px); }

/* Fileiras sem rolagem (o leque é calculado em fitRows). */
.fit-row { display: flex; gap: 6px; align-items: flex-start; overflow: hidden; padding: 4px 2px 6px; min-width: 0; }
.fit-row > * { flex: none; position: relative; }
.fit-row.overlapped > .card { box-shadow: -3px 0 6px rgba(0,0,0,.35); }
@media (hover: hover) { .fit-row > .card:hover { z-index: 60 !important; transform: translateY(-6px); } }
.fit-row .card { touch-action: none; }

/* Eleição: o político em destaque, o partido em segundo plano. */
.cand { width: 190px; }
.cand-top { align-items: flex-start; }
.cand-name { font-size: 15px; }
.cand-types { display: flex; align-items: center; gap: 4px; }
.cand-types img { width: 16px; height: 16px; border-radius: 50%; }
.elec { background: radial-gradient(ellipse at 50% 0%, #4b2a55, #2a1a33 75%); }

/* Telas baixas (celular deitado): ilustração vira uma faixa fina, o nome ganha espaço. */
@media (max-height: 480px) {
  .card:not(.s-xl):not(.s-pick) .c-art { flex-basis: 20%; margin-bottom: 7px; }
  .card:not(.s-xl):not(.s-pick) .c-icons { bottom: -7px; }
  .card:not(.s-xl):not(.s-pick) .c-icons img { width: 17px; height: 17px; }
  .s-hand .c-top { display: none; }
  .card .c-title { font-size: 11.5px; -webkit-line-clamp: 3; }
  .c-cargo .c-title::before { content: ''; }
  .tg-label { font-size: 11px; letter-spacing: .04em; }
  .tg-label .lbl-long { display: none; }
  .bi.plain { width: 22px; height: 22px; font-size: 13px; }
  .bh { min-width: 20px; height: 20px; font-size: 12px; }
  .bi.pos, .bi.neg { font-size: 12.5px; padding: 1px 5px; }
}

/* Por que posso ou não jogar: faixa no alto da carta. */
.c-status {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3;
  font-family: var(--title); font-size: 10.5px; letter-spacing: .02em; line-height: 1.2;
  padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff;
}
.c-status.ok { background: rgba(31, 110, 60, .92); }
.c-status.no { background: rgba(70, 40, 45, .88); color: #f3d9d2; }
.card.dim .c-status, .s-pick .c-status, .s-xl .c-status { display: none; }
@media (max-height: 480px) {
  .c-status { left: auto; right: 3px; top: 3px; width: 18px; height: 18px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
  .c-status .st-text { display: none; }
}

/* A carta que acabou de chegar brilha. */
.card.fresh { animation: fresh 1.3s ease-out; }
@keyframes fresh {
  0% { transform: scale(.86); box-shadow: 0 0 0 5px rgba(240, 200, 90, .95), 0 0 26px rgba(240, 200, 90, .9); }
  60% { transform: scale(1.03); box-shadow: 0 0 0 3px rgba(240, 200, 90, .6), 0 0 18px rgba(240, 200, 90, .5); }
  100% { transform: none; }
}

/* Manchete no meio da tela. */
.headline {
  position: fixed; left: 50%; top: 38%; z-index: 75; pointer-events: none;
  transform: translate(-50%, -50%) scale(.92); opacity: 0; transition: opacity .35s, transform .35s;
  background: var(--news); color: var(--paper-ink); border-radius: 6px; padding: 10px 22px 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.55); border-top: 5px double var(--paper-ink); text-align: center; max-width: 92vw;
}
.headline.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.headline small { display: block; font-family: var(--title); letter-spacing: .3em; font-size: 12px; text-transform: uppercase; opacity: .7; }
.headline div { font-family: var(--title); font-weight: 700; font-size: clamp(18px, 3.2vw, 32px); text-transform: uppercase; line-height: 1.1; }
.headline.win { border-top-color: var(--hegemonia); }
.headline.turn { background: var(--accent); }

/* Hegemonia: dez marcadores dourados. */
.pips { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; }
.pips i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.pips i.on { background: radial-gradient(circle at 35% 30%, #f0c766, var(--hegemonia) 75%); box-shadow: 0 0 4px rgba(240,200,90,.6); }
.pips b { margin-left: 5px; font-weight: 600; color: #f0cd84; }
@media (max-height: 480px) { .pips i { width: 8px; height: 8px; } }

/* Texto da carta fica dentro da carta (encolhe via fitText; o que sobrar vira "…"). */
.card .c-text { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.card .c-text.clipped { -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.card .c-title.clipped { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }

/* Político: placa do cargo, resumo da conta e selo de bônus nas eleições. */
.c-plate {
  margin: 0 5px; padding: 2px 5px; border-radius: 4px;
  background: linear-gradient(#f5d98f, #d8a845); color: #3a2506; border: 1px solid #a8731c;
  font-family: var(--title); font-size: 10.5px; font-weight: 600; text-transform: uppercase; line-height: 1.15;
  display: flex; align-items: center; gap: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.c-plate img { width: 13px; height: 13px; border-radius: 50%; flex: none; }
.c-plate b { margin-left: auto; color: #1f5e34; }
.s-xl .c-plate { font-size: 15px; padding: 4px 8px; margin: 0 12px; }
.s-xl .c-plate img { width: 20px; height: 20px; }
/* Reputações pelo nome, logo abaixo do nome do político (a graça do jogo está nos nomes). */
.c-reps, .dt-reps { display: flex; flex-wrap: wrap; gap: 2px 3px; }
.c-reps { margin: 0 5px; max-height: 3.9em; overflow: hidden; flex: none; }
.rp { font-family: var(--body); font-size: 10.5px; font-weight: 600; line-height: 1.25; padding: 0 4px; border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rp b { font-family: var(--title); }
.rp.pos { background: #d9efdd; color: #1f5e34; box-shadow: 0 0 0 1px #8cc49b inset; }
.rp.neg { background: #f8d9d6; color: #8b1e1e; box-shadow: 0 0 0 1px #e09a92 inset; }
.s-xl .c-reps { margin: 0 12px; max-height: none; gap: 4px; }
.s-xl .rp { font-size: 14px; padding: 1px 6px; }
.s-pick .rp { font-size: 12px; white-space: normal; }
.s-pick .c-reps { max-height: 5.2em; }
.dt-reps { gap: 5px; }
.dt-reps .rp { font-size: 15px; padding: 2px 8px; border-radius: 5px; white-space: normal; }
.bi.buff { background: #3c2a6b; color: #f6e6ff; font-size: 13px; border-radius: 11px; padding: 2px 6px; box-shadow: 0 0 0 1px #b79cff inset; }
.s-xl .bi.buff { font-size: 20px; padding: 3px 10px; }
.bi.plain { width: 30px; height: 30px; font-size: 18px; }
.s-xl .bi.plain { width: 46px; height: 46px; font-size: 28px; }
@media (max-height: 480px) {
  .rp { font-size: 9.5px; padding: 0 3px; }
  .c-plate { font-size: 9.5px; padding: 1px 4px; }
  .bi.plain { width: 24px; height: 24px; font-size: 14px; }
  .bi.buff { font-size: 11.5px; padding: 1px 4px; }
}

/* Influência na eleição em andamento e prévia depois da campanha. */
.bi.elec { background: #3a2a52; color: #fff; font-size: 16px; border-radius: 12px; padding: 2px 8px; box-shadow: 0 0 0 1px #9f86d8 inset; }
.bi.preview { font-size: 16px; padding: 2px 8px; border-radius: 12px; }
.card.in-elec .c-power, .card.in-elec .c-text { display: none !important; }
.pick-groups { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: flex-start; }
.pick-group + .pick-group { border-left: 1px dashed var(--line); padding-left: 14px; }

/* Poder do cargo: logo abaixo da placa (cartas maiores) e em destaque na janela da carta. */
.c-power { display: none; margin: 0 6px; font-size: 10.5px; line-height: 1.2; color: #4a3410; background: #fbefd2; border-left: 3px solid #d8a845; padding: 2px 5px; border-radius: 0 3px 3px 0; }
.c-power b { font-family: var(--title); font-weight: 600; text-transform: uppercase; }
.s-xl .c-power, .s-pick .c-power { display: block; }
.s-xl .c-power { font-size: 14px; margin: 0 12px; padding: 5px 8px; }
@media (min-height: 700px) { .g-mine .c-power { display: block; } }
.power-box { background: linear-gradient(#3a2a12, #2b1f0e); border: 1px solid #a8731c; border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.power-box .zone-title { color: #f0cd84; display: flex; align-items: center; gap: 6px; }
.power-box img { width: 18px; height: 18px; border-radius: 50%; }

/* No seu partido, o político mostra placa, poder e resumo; a conta completa fica no zoom. */
.g-mine .c-politico .c-text { display: none !important; }
.g-mine { max-width: 58%; }
.tgroup.empty { flex: 0 0 auto !important; }

/* Eleição: o poder do cargo em disputa, sempre à vista. */
.elec-power { font-size: 13px; line-height: 1.3; color: #f3e6c8; background: rgba(0,0,0,.22); border-left: 3px solid #d8a845; padding: 3px 8px; border-radius: 0 4px 4px 0; margin: 2px 0 1px; }
.elec-power b { font-family: var(--title); font-weight: 600; text-transform: uppercase; color: #f0cd84; }
.elec-cargo-card { flex: none; padding-right: 6px; border-right: 1px dashed rgba(255,255,255,.2); margin-right: 4px; }
@media (max-height: 480px) { .elec-power .muted { display: none; } .elec-power { font-size: 12px; } }

/* Eleição na própria mesa vinho: cargo em disputa + cartas dos candidatos. */
.elec { background: radial-gradient(ellipse at 50% 0%, #7a2435, var(--wine-2) 75%) !important; border: 1px solid #8a3a49; box-shadow: inset 0 0 30px rgba(0,0,0,.35); padding: 4px 8px 2px; }
.elec-head { display: flex; align-items: center; gap: 8px; font-family: var(--title); font-size: 14px; white-space: nowrap; overflow: hidden; }
.elec-head img { width: 20px; height: 20px; border-radius: 50%; }
.elec-head .elec-phase { color: #f3d9b8; font-family: var(--body); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.elec-power { display: none; }
.elec-stage { flex: 1; min-height: 0; display: flex; gap: 12px; align-items: flex-start; }
.elec-prize { flex: none; display: flex; flex-direction: column; gap: 3px; padding-right: 12px; border-right: 1px dashed rgba(255,255,255,.22); max-width: 34%; }
.elec-label, .cand-party { font-family: var(--title); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #f0cd84; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.elec-need { font-size: 12.5px; color: #f3e6c8; line-height: 1.25; max-width: 200px; }
.elec-cands { flex: 1; min-width: 0; padding-top: 0; }
.cand { width: auto !important; background: none !important; border: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 3px; }
.cand .card { box-shadow: 0 4px 12px rgba(0,0,0,.45); }
.cand.lead .card { border-color: #f0c766; box-shadow: 0 0 0 2px #f0c766, 0 0 18px rgba(240,199,102,.5); }
.cand.valid .card { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,165,38,.6); animation: pulse 1.2s infinite; }
.cand.drop-hover .card { box-shadow: 0 0 0 3px var(--accent), 0 0 24px rgba(224,165,38,.7); }
.cand-score { display: flex; align-items: center; gap: 6px; max-width: var(--cw, 140px); }
.cand-total { font-family: var(--title); font-size: 30px; font-weight: 700; line-height: 1; color: #fff; background: rgba(0,0,0,.35); border-radius: 8px; padding: 1px 9px; }
.cand.lead .cand-total { color: #1d1408; background: radial-gradient(circle at 35% 30%, #f6d27a, #c58d24 75%); }
.cand-parts { font-size: 11px; color: #e8d7bd; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Altura das cartas da eleição: o que sobra na faixa do meio. */
.elec .card { --ch: clamp(84px, calc(100cqh - 62px), 300px); --cw: max(84px, calc(var(--ch) * .72)); }
/* Candidato: a carta e, ao lado, o placar com cada campanha pelo nome. */
.cand-body { display: flex; gap: 6px; align-items: flex-start; }
.cand-ledger { width: 150px; flex: none; display: flex; flex-direction: column; gap: 4px; color: #f3e6c8; }
.cand-ledger .cand-score { max-width: none; }
.lg-cap { font-size: 11px; color: #e8d7bd; line-height: 1.1; }
.cand-ledger ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cand-ledger li { display: flex; align-items: flex-start; gap: 4px; font-size: 12.5px; line-height: 1.2; background: rgba(0,0,0,.28); border-radius: 4px; padding: 2px 5px; }
.cand-ledger li b { margin-left: auto; font-family: var(--title); font-size: 14px; }
.cand-ledger li.pos b { color: #8fe0a6; }
.cand-ledger li.neg b { color: #ff9a8f; }
.cand-ledger li.lg-base { background: none; color: #e8d7bd; }
.cand-ledger li.lg-base b { color: #fff; }
.lg-name { min-width: 0; overflow-wrap: anywhere; }
.lg-name small { display: block; font-size: 10.5px; opacity: .75; }
.lg-camp { cursor: pointer; border-left: 3px solid #d8a845; }
.lg-camp.neg { border-left-color: #e0574a; }
.lg-camp.fresh-camp { animation: campGlow 1.6s ease-out 2; box-shadow: 0 0 0 1px #f0c766 inset; }
@keyframes campGlow { 0% { background: rgba(240,199,102,.55); } 100% { background: rgba(0,0,0,.28); } }
.lg-empty { font-size: 11.5px; font-style: italic; opacity: .65; }
.cand .card.in-elec .c-foot .bi.elec { display: none; }
.lbl-cargo { display: none; }
@media (max-height: 480px) {
  .elec .card { --ch: clamp(76px, calc(100cqh - 46px), 160px); --cw: max(78px, calc(var(--ch) * .72)); }
  .elec-need, .lg-cap, .cand-ledger .cand-score { display: none; }
  .cand-ledger { width: 118px; }
  .cand-ledger li { font-size: 11px; padding: 1px 4px; }
  .cand-ledger li b { font-size: 12.5px; }
  .lg-name small { display: none; }
  .cand .card.in-elec .c-foot .bi.elec { display: inline-block; font-size: 15px; }
  .cand.lead .card.in-elec .c-foot .bi.elec { background: radial-gradient(circle at 35% 30%, #f6d27a, #c58d24 75%); color: #1d1408; }
  .lbl-cargo { display: inline; text-transform: none; letter-spacing: 0; }
  .elec .cand .card .c-art { display: none !important; }
  .elec .cand .card .c-title { margin-top: 4px; -webkit-line-clamp: 3; }
  .elec-prize { max-width: 40%; }
}

/* Conta da influência na janela da carta. */
table.calc { border-collapse: collapse; width: 100%; font-size: 14px; }
table.calc td { padding: 4px 6px; border-bottom: 1px solid var(--line); }
table.calc td:last-child { text-align: right; font-family: var(--title); font-size: 16px; }
table.calc tr.pos td:last-child { color: #7fd69a; }
table.calc tr.neg td:last-child { color: #ff9a8f; }
table.calc tr.total td { border-top: 2px solid var(--ink-dim); color: var(--accent); }
table.calc tr.buff td { color: #d7c2ff; }

/* Cargos de cada adversário, pelo nome. */
.opp-cargos { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: #f0cd84; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opp-cargos img { width: 13px; height: 13px; border-radius: 50%; flex: none; }

/* ================================================================
   Carta = ilustração em cima (inteira, nada por cima) + faixa limpa embaixo
   com nome e números grandes. Detalhes ficam fora da carta (painel ao lado).
   ================================================================ */
.card { container: card / size; }
.card.has-art:not(.c-cargo) .c-art {
  flex: 1 1 auto !important; min-height: 38%; margin-bottom: 9px;
  background-size: cover; background-position: center 18%; filter: none;
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.card .c-top { display: none !important; }
/* Nas cartas da mesa e da mão: só o essencial. */
.card .c-text, .card .c-power, .card .c-types { display: none !important; }
.card .c-sum { display: none; }
.g-mine .c-politico .c-sum { display: block; }
.card .c-title { -webkit-line-clamp: 2; }
.card .c-foot { margin-top: 2px; }
/* Carta grande o bastante: o poder aparece embaixo do nome. */
@container card (min-height: 215px) {
  .c-instituicao .c-text, .c-manobra .c-text, .c-cargo.has-art .c-text { display: block !important; font-size: 12px; }
  .c-politico .c-power { display: block !important; }
}
/* Carta ampliada (prévia e janela): também só ilustração, nome e números; o resto vai no painel ao lado. */
.s-xl .c-text, .s-xl .c-power, .s-xl .c-types, .s-xl .c-sum, .s-pick .c-text, .s-pick .c-power, .s-pick .c-types { display: none !important; }
.s-xl .c-title { -webkit-line-clamp: 3; }
.s-xl.has-art:not(.c-cargo) .c-art { margin-bottom: 16px; }
.s-xl .c-icons { bottom: -16px; }

/* Cargo: o nome vai gravado na placa dourada do púlpito; os números ficam na madeira. */
.card.has-art.c-cargo { background: #3b2414; border-color: #b8862b; justify-content: flex-start; }
.card.has-art.c-cargo .c-art { position: absolute !important; inset: 0; z-index: 0; margin: 0; flex: none !important; }
.card.has-art.c-cargo .c-icons { top: 5px; bottom: auto; left: 5px; }
.card.has-art.c-cargo .c-status ~ .c-art .c-icons { top: 22px; }
.card.has-art.c-cargo > *:not(.c-art) { z-index: 1; }
.card.has-art.c-cargo .c-art { background-position: center 0; background-size: 100% 100%; }
.card.has-art.c-cargo .c-art::after { background: linear-gradient(to bottom, rgba(0,0,0,0) 72%, rgba(30,15,5,.75) 100%); }
.card.has-art.c-cargo .c-title {
  position: absolute; z-index: 1; left: 19%; right: 19%; top: 57.5%; height: 12.5%; margin: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #3a240a; font-size: 10px; line-height: 1; text-shadow: 0 1px 0 rgba(255,240,200,.6);
  -webkit-line-clamp: unset; overflow: hidden;
}
.card.has-art.c-cargo .c-title::before { content: none; }
.card.has-art.c-cargo .c-foot { position: absolute; left: 6px; right: 6px; bottom: 5px; margin: 0; }
.card.has-art.c-cargo .c-text {
  position: absolute; left: 6px; right: 6px; bottom: 32px; top: auto; z-index: 1; margin: 0;
  background: rgba(30,15,5,.78); color: #f6e7c8; border-radius: 4px; padding: 3px 5px; max-height: 24%;
}
.card.has-art.c-cargo .c-text b { color: #f0cd84; }
.s-xl.has-art.c-cargo .c-title { font-size: 20px; }
.s-pick.has-art.c-cargo .c-title { font-size: 12px; }

/* Painel de leitura ao lado da carta ampliada: letra grande, uma informação por linha. */
.hover-wrap { display: flex; gap: 12px; align-items: flex-start; }
.details { background: var(--felt-2); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  width: 300px; max-width: 46vw; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.35;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.sheet .details { box-shadow: none; border: 0; padding: 0; background: none; width: auto; max-width: 340px; }
.dt-kind { display: flex; align-items: center; gap: 6px; font-family: var(--title); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.dt-kind img { width: 20px; height: 20px; border-radius: 50%; }
.dt-title { font-family: var(--title); font-weight: 700; font-size: 22px; line-height: 1.1; text-transform: uppercase; }
.dt-types { display: flex; gap: 5px; flex-wrap: wrap; }
.dt-types .chip { font-size: 12px; padding: 1px 7px 1px 2px; border-radius: 10px; }
.dt-types .chip img { width: 16px; height: 16px; }
.dt-power { font-size: 15px; }
.dt-power b { font-family: var(--title); font-weight: 600; text-transform: uppercase; color: var(--accent); }
.dt-line b { font-family: var(--title); font-size: 18px; color: var(--accent); }
.dt-note { font-size: 13px; color: var(--ink-dim); }
.dt-elec { background: #3a2a52; border-radius: 6px; padding: 5px 8px; }
.dt-elec b { font-family: var(--title); font-size: 20px; }
.dt-elec span { font-size: 12.5px; color: #d7c2ff; }
.dt-side { font-family: var(--title); font-size: 17px; text-transform: uppercase; display: flex; justify-content: space-between; gap: 8px; }
.dt-side.pos b { color: #7fd69a; } .dt-side.neg b { color: #ff9a8f; }
.dt-or { font-size: 12px; color: var(--ink-dim); text-align: center; }
@media (max-height: 480px) {
  .details { font-size: 13px; gap: 5px; padding: 8px 10px; width: 250px; }
  .dt-title { font-size: 17px; }
  .sheet .details { max-width: 260px; }
}

/* Prévia ao passar o mouse: menor e sem cobrir a mesa toda. */
.hover-prev .card { --cw: 210px; --ch: 294px; }

/* Pergunta de confirmação do jogo (no lugar do aviso do navegador). */
.ask-bg { z-index: 120; }
.sheet.ask { flex-direction: row; align-items: center; gap: 16px; max-width: 520px; border: 1px solid #a8731c; }
.ask h3 { margin: 0 0 6px; font-family: var(--title); font-size: 20px; text-transform: uppercase; color: #f0cd84; }
.ask p { margin: 0 0 12px; }
.ask input { width: 100%; margin-bottom: 12px; }
.ask-side { flex: 1; min-width: 0; }
.ask-card { flex: none; }
@media (max-height: 480px) { .ask-card { display: none; } }

/* Mesa ajustada (fitTable): cartas do tamanho que cabe, em uma ou mais fileiras, sem sobrepor. */
.g-table.fitted .card { --ch: var(--tch); --cw: var(--tcw); }
.g-table.fitted .tgroup .fit-row { flex-wrap: wrap; align-content: flex-start; overflow: visible; }
.g-table.fitted .tgroup .fit-row > .card { margin-left: 0 !important; }

/* Setas para passar pelas cartas na janela da carta. */
.sheet-bg > .nav-arrow { position: fixed; top: 50%; transform: translateY(-50%); z-index: 2; width: 52px; height: 84px; border: 1px solid #a8731c; border-radius: 10px;
  background: rgba(43,31,14,.92); color: #f0cd84; font-size: 46px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.sheet-bg > .nav-arrow:hover { background: #4a3410; }
.sheet-bg > .nav-arrow.prev { left: 10px; }
.sheet-bg > .nav-arrow.next { right: 10px; }
.sheet { position: relative; }
.nav-count { position: absolute; top: 6px; right: 12px; font-family: var(--title); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #f0cd84; }
@media (max-height: 480px) { .sheet-bg > .nav-arrow { width: 40px; height: 64px; font-size: 34px; } .sheet-bg > .nav-arrow.prev { left: 4px; } .sheet-bg > .nav-arrow.next { right: 4px; } }

/* Eleição ajustada (fitElection): sem sobrepor candidatos; placar ao lado ou embaixo da carta. */
.elec-cands.fitted { gap: 10px; }
.elec-cands.fitted .card { --ch: var(--ech); --cw: var(--ecw); }
.elec-cands.fitted .cand { flex: none; }
.elec-cands.below .cand-body { flex-direction: column; align-items: stretch; }
.elec-cands.below .cand-ledger { width: auto; }
.elec-cands.below .cand-ledger .lg-cap { display: none; }
.lg-pol { display: none; }
.elec-cands.compact .cand .card { display: none; }
.elec-cands.compact .cand-body { flex-direction: column; align-items: stretch; }
.elec-cands.compact .cand-ledger { width: auto; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.15); border-radius: 6px; padding: 3px 4px; gap: 2px; }
.elec-cands.compact .cand.lead .cand-ledger { border-color: #f0c766; box-shadow: 0 0 0 1px #f0c766, 0 0 10px rgba(240,199,102,.4); }
.elec-cands.compact .cand.valid .cand-ledger { border-color: var(--accent); animation: pulse 1.2s infinite; }
.elec-cands.compact .cand.drop-hover .cand-ledger { box-shadow: 0 0 0 2px var(--accent); }
.elec-cands.compact .lg-pol { display: flex; align-items: center; gap: 4px; font-family: var(--title); font-size: 12px; line-height: 1.1; text-transform: uppercase; color: #fff; }
.elec-cands.compact .lg-pol span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.elec-cands.compact .lg-pol b { margin-left: auto; font-size: 17px; background: rgba(0,0,0,.35); border-radius: 6px; padding: 0 6px; }
.elec-cands.compact .cand.lead .lg-pol b { color: #1d1408; background: radial-gradient(circle at 35% 30%, #f6d27a, #c58d24 75%); }
.elec-cands.compact .cand-ledger { overflow: hidden; }
.elec-cands.compact .cand-ledger ul { overflow: hidden; }
.elec-cands.compact .cand-ledger li { flex: none; }
.elec-cands.compact .cand-ledger li { font-size: 11px; padding: 1px 4px; }
.elec-cands.compact .cand-ledger li.lg-base { display: none; }
