/* Visual: painel escuro com rede arcana animada ao fundo, neon nas cores de mana
   e cartas com brilho foil. Ciano = azul, âmbar = ouro/coleções, violeta = precons. */
:root {
  --bg: #070b16;
  --panel: #0c1326;
  --panel-2: #111a32;
  --line: #1e2b48;
  --text: #dbe5f6;
  --soft: #c3cfe6;
  --muted: #8495b6;
  --dim: #56658a;
  --a: #37d3ff;      /* ciano */
  --b: #ffb547;      /* âmbar */
  --main: #a796ff;   /* violeta */
  --ok: #52e3a0;
  --bad: #ff6b81;
  --accent: var(--b);
  --link: var(--a);
  --deep: #060a15;
  --graph-bg: #060a15;
  --graph-edge: rgba(120, 140, 190, .16);
  --f-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --radius: 14px;
  --shadow: 0 24px 60px -28px rgba(55, 211, 255, .35);
  /* aliases usados pelo grafo e pelo JS */
  --surface: var(--panel);
  --surface-2: var(--panel-2);
  --border: var(--line);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--f-body);
  overflow-x: hidden;
}
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .55; }
.scan { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(120, 150, 255, .025) 3px 4px); }
.top, main, .foot { position: relative; z-index: 2; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(30px, 5vw, 50px); letter-spacing: -.01em; }
h2 { font-weight: 700; font-size: clamp(20px, 2.6vw, 26px); }
h3 { font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
main.wrap { flex: 1; padding-top: 26px; padding-bottom: 72px; }
.tag { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .1em; color: var(--a); display: block; margin-bottom: 4px; }

/* ---------- topo */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--a), var(--main), var(--b), transparent); opacity: .5; }
.top-in { display: flex; align-items: center; gap: 14px; min-height: 62px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--b) 35%, transparent)); }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a { color: var(--muted); padding: 6px 11px; border-radius: 8px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .03em; position: relative; }
.nav a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav a.on { color: var(--a); background: color-mix(in srgb, var(--a) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a) 30%, transparent); }
.search { position: relative; margin-left: auto; flex: 0 1 290px; min-width: 170px; }
.search input { width: 100%; }
.gres { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); max-height: 70vh; overflow-y: auto; }
.gres a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; color: var(--text); border-left: 2px solid transparent; }
.gres a small { color: var(--muted); white-space: nowrap; font-family: var(--f-mono); font-size: 11px; }
.gres a:hover, .gres a.on { background: var(--panel-2); border-left-color: var(--a); text-decoration: none; }
.gres .empty { padding: 10px 12px; color: var(--muted); }

input[type=search], select {
  font: inherit; font-size: 14px; color: var(--text); background: var(--deep);
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; min-height: 40px;
  transition: border-color .2s, box-shadow .2s;
}
input[type=search] { font-family: var(--f-mono); }
input[type=search]:focus, select:focus { outline: none; border-color: var(--a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 15%, transparent); }
input[type=checkbox] { accent-color: var(--a); width: 16px; height: 16px; }

.foot { border-top: 1px solid var(--line); color: var(--dim); font-family: var(--f-mono); font-size: 12px; padding: 20px 0 30px; }
.foot a { color: var(--muted); }

/* ---------- blocos */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 18px 0; position: relative; }
.page-head { margin: 8px 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head p { margin: 0; max-width: 72ch; }
.page-head::after, .sec-head::after { content: ""; position: absolute; left: -30%; bottom: -1px; width: 30%; height: 2px; background: linear-gradient(90deg, transparent, var(--a), transparent); }
.page-head.rv.in::after, .rv.in .sec-head::after { animation: line 1.4s ease-out forwards; }
@keyframes line { to { left: 110%; } }
.crumbs { font-family: var(--f-mono); font-size: 12.5px; color: var(--dim); margin-bottom: 16px; letter-spacing: .03em; }
.crumbs a { color: var(--muted); }
.crumbs::before { content: "~/"; color: var(--a); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 44px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.panel .sec-head { margin-top: 0; }
.sec-head h2 { margin: 0; }
.sec-head > a { font-family: var(--f-mono); font-size: 12.5px; white-space: nowrap; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 20px; margin-top: 26px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: .03em;
  padding: 9px 16px; border-radius: 9px; cursor: pointer; color: #04101c; border: 0;
  background: linear-gradient(90deg, var(--a), var(--main)); position: relative; overflow: hidden;
  transition: transform .15s, box-shadow .3s;
}
.btn:hover { box-shadow: 0 0 28px -4px var(--a); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.run::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -50%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-20deg); animation: shine 3.5s infinite; }
@keyframes shine { 0%, 60% { left: -50%; } 100% { left: 130%; } }
.btn.ghost { background: color-mix(in srgb, var(--panel) 70%, transparent); color: var(--soft); border: 1px solid var(--line); font-family: var(--f-mono); font-size: 13px; font-weight: 400; }
.btn.ghost:hover { border-color: var(--a); color: var(--a); box-shadow: none; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.badges:empty { display: none; }
.badge { font-family: var(--f-mono); font-size: 11.5px; padding: 3px 9px; border-radius: 6px; background: color-mix(in srgb, var(--panel) 70%, transparent); border: 1px solid var(--line); color: var(--muted); }
.badge.gold { color: var(--b); border-color: color-mix(in srgb, var(--b) 50%, transparent); }
.badge.warn { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.badge.tiny { font-size: 10px; padding: 0 5px; vertical-align: middle; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--f-mono); font-size: 12.5px; padding: 6px 11px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 70%, transparent); border-radius: 6px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chip b { color: var(--text); font-weight: 600; }
.chip:hover { text-decoration: none; border-color: var(--a); color: var(--text); }
.chip.a { border-color: color-mix(in srgb, var(--a) 50%, transparent); color: var(--a); }
.chip.b { border-color: color-mix(in srgb, var(--b) 50%, transparent); color: var(--b); }
.chip.m { border-color: color-mix(in srgb, var(--main) 50%, transparent); color: var(--main); }
.chip.ok { border-color: color-mix(in srgb, var(--ok) 50%, transparent); color: var(--ok); }

/* ---------- símbolos de mana */
.ms { width: 1.05em; height: 1.05em; vertical-align: -.16em; margin: 0 1px; }
.pips { display: inline-flex; gap: 2px; white-space: nowrap; }
.pips .ms { width: 17px; height: 17px; margin: 0; border-radius: 50%; box-shadow: 0 0 8px color-mix(in srgb, var(--main) 35%, transparent); }
.cost { white-space: nowrap; }

/* ---------- início */
.home-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 34px 0 10px; }
.home-hero > * { min-width: 0; }
.eyebrow { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.blip { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blip 1.6s infinite; }
@keyframes blip { 50% { opacity: .25; } }
.home-hero h1 { font-size: clamp(40px, 6.5vw, 74px); line-height: .98; margin: 14px 0 18px; }
.g { position: relative; display: inline-block; }
.g::before, .g::after { content: attr(data-t); position: absolute; inset: 0; pointer-events: none; }
.g::before { color: var(--a); mix-blend-mode: screen; animation: glitchA 6s infinite steps(1); }
.g::after { color: var(--b); mix-blend-mode: screen; animation: glitchB 6s infinite steps(1); }
@keyframes glitchA { 0%, 93%, 100% { transform: none; clip-path: inset(0 0 100% 0); } 94% { transform: translate(-4px, 1px); clip-path: inset(10% 0 55% 0); } 96% { transform: translate(3px, -2px); clip-path: inset(60% 0 8% 0); } 98% { transform: translate(-2px, 0); clip-path: inset(35% 0 40% 0); } }
@keyframes glitchB { 0%, 93%, 100% { transform: none; clip-path: inset(0 0 100% 0); } 95% { transform: translate(4px, -1px); clip-path: inset(45% 0 30% 0); } 97% { transform: translate(-3px, 2px); clip-path: inset(5% 0 70% 0); } }
.grad { background: linear-gradient(90deg, var(--a), var(--main), var(--b), var(--a)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shift 6s linear infinite; }
@keyframes shift { to { background-position: 300% 0; } }
.lead { font-size: 18px; color: var(--soft); max-width: 54ch; margin: 0 0 22px; }
.lead b { color: var(--text); }
/* o leque mede a própria coluna (container query): as três cartas, giradas, ocupam ~2,4× a largura de uma */
.hand { position: relative; height: 430px; perspective: 1200px; container-type: inline-size; }
.hand .hand-card { position: absolute; top: 30px; --w: min(230px, 38cqi); width: var(--w); left: calc(50% - var(--w) / 2); }
.hand-card.h0 { transform: translateX(-46%) rotate(-12deg); z-index: 1; }
.hand-card.h1 { transform: translateY(-14px); z-index: 3; }
.hand-card.h2 { transform: translateX(46%) rotate(12deg); z-index: 2; }
.hand-card:hover { z-index: 5; }
.graph-teaser { position: relative; display: block; height: 240px; margin-top: 28px; border-radius: var(--radius); overflow: hidden; background: var(--graph-bg); border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow); }
.graph-teaser canvas { width: 100%; height: 100%; display: block; transition: transform .8s ease; }
.graph-teaser:hover canvas { transform: scale(1.05); }
.graph-teaser:hover { text-decoration: none; border-color: color-mix(in srgb, var(--a) 60%, transparent); }
.graph-teaser > span { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 22px 18px; display: flex; flex-direction: column; background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 95%, transparent)); }
.graph-teaser b { font-family: var(--f-display); font-size: 1.5rem; }
.graph-teaser::after { content: ""; position: absolute; left: 0; right: 0; height: 60px; top: -60px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--a) 8%, transparent), transparent); animation: sweep 4.5s linear infinite; pointer-events: none; }
@keyframes sweep { to { top: 110%; } }

/* ---------- foil: brilho holográfico e inclinação */
.foil { position: relative; display: inline-block; border-radius: 4.75% / 3.5%; transition: transform .35s, box-shadow .35s; transform-style: preserve-3d; line-height: 0; }
.foil img { width: 100%; border-radius: inherit; display: block; }
.holo { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: color-dodge; opacity: .5;
  background: linear-gradient(115deg, transparent 25%, color-mix(in srgb, var(--main) 35%, transparent) 42%, color-mix(in srgb, var(--a) 30%, transparent) 50%, color-mix(in srgb, var(--b) 25%, transparent) 58%, transparent 75%);
  background-size: 250% 100%; animation: holo 6s linear infinite; }
@keyframes holo { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.foil:hover { box-shadow: 0 30px 70px -25px var(--main), 0 0 0 1px color-mix(in srgb, var(--main) 35%, transparent); }
.foil:hover .holo { opacity: .85; }

/* ---------- mosaicos de precon */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: transform .35s, border-color .35s, box-shadow .35s; transform-style: preserve-3d; }
.tile:hover { border-color: color-mix(in srgb, var(--main) 60%, transparent); box-shadow: 0 20px 60px -25px var(--main); text-decoration: none; }
.tile[hidden] { display: none; }
.tile-img { aspect-ratio: 16 / 10; background: var(--panel-2); overflow: hidden; position: relative; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.tile:hover .tile-img img { transform: scale(1.06); }
.tile-img .holo { border-radius: 0; opacity: 0; transition: opacity .3s; }
.tile:hover .tile-img .holo { opacity: .7; }
.tile-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, var(--panel)); }
.tile-body { padding: 10px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.tile-body h3 { font-size: 1.12rem; margin: 6px 0 2px; }
.tile-body p { margin: 0 0 10px; font-size: .86rem; }
.tile-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tile-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; font-family: var(--f-mono); font-size: 13px; }
.code { font: 600 11px/1 var(--f-mono); padding: 4px 7px; border-radius: 5px; background: color-mix(in srgb, var(--main) 10%, transparent); color: var(--main); border: 1px solid color-mix(in srgb, var(--main) 35%, transparent); letter-spacing: .06em; }
.price { color: var(--b); font-family: var(--f-mono); font-weight: 600; font-variant-numeric: tabular-nums; text-shadow: 0 0 14px color-mix(in srgb, var(--b) 35%, transparent); }
.price.big { font-size: 1.25rem; }

/* ---------- arquétipos */
.tile-arq { font-family: var(--f-mono); font-size: 11.5px; color: var(--main); margin: -4px 0 10px !important; letter-spacing: .02em; }
.tile-arq .vel { color: var(--b); white-space: nowrap; }
.chips.arq { margin: 10px 0 4px; gap: 8px; }
.chips.arq .chip { font-size: 12px; padding: 4px 10px; }
.arq-vel { margin: 10px 0 6px; }
.arq-vel .chip { white-space: normal; }
.arq-why { margin-top: 8px; font-size: 14px; color: var(--soft); max-width: 680px; }
.arq-why summary { cursor: pointer; font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); list-style: none; }
.arq-why summary::before { content: "▸ "; color: var(--a); }
.arq-why[open] summary::before { content: "▾ "; }
.arq-why ul { margin: 8px 0; padding-left: 18px; }
.arq-why b { color: var(--text); }

/* ---------- ranking */
.nota-mini { font-family: var(--f-mono); font-size: 11.5px; color: var(--b); margin-left: auto; margin-right: 8px; text-shadow: 0 0 10px color-mix(in srgb, var(--b) 40%, transparent); }
.nota-deck { scroll-margin-top: 80px; }
.nota-deck .nota-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 24px; align-items: start; }
.nota-deck .nota-grid > * { min-width: 0; }
.nota-big { font-family: var(--f-display); line-height: 1; margin-bottom: 10px; }
.nota-big b { font-size: 64px; background: linear-gradient(90deg, var(--a), var(--main), var(--b)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nota-big span { font-family: var(--f-mono); color: var(--muted); font-size: 16px; margin-left: 4px; }
.nota-big.small-big b { font-size: 34px; }
.nota-resumo p { margin: 8px 0 0; }
.up { color: var(--ok); font-family: var(--f-mono); font-size: 12px; }
.down { color: var(--bad); font-family: var(--f-mono); font-size: 12px; }
.radar { width: 100%; max-width: 380px; display: block; margin: 10px auto 0; overflow: visible; }
.radar-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-axis { stroke: var(--line); stroke-width: 1; }
.radar-area { fill: color-mix(in srgb, var(--a) 18%, transparent); stroke: var(--a); stroke-width: 2; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--a) 50%, transparent)); }
.radar-media { fill: none; stroke: var(--b); stroke-width: 1.3; stroke-dasharray: 4 4; opacity: .8; }
.radar-dot { fill: var(--a); }
.radar-label { fill: var(--muted); font-family: var(--f-mono); font-size: 10.5px; }
.legenda-radar { text-align: center; }
.lg-deck, .lg-med { display: inline-block; width: 16px; height: 3px; vertical-align: middle; margin: 0 4px 0 10px; background: var(--a); }
.lg-med { background: var(--b); }
table.topicos td { padding: 7px 8px; }
.tp-bar { width: 34%; position: relative; }
.tp-bar .bar { width: 0; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.tp-med { position: absolute; top: 50%; height: 14px; width: 0; margin-top: -7px; border-right: 2px solid var(--b); pointer-events: none; }
.tp.neg .bar, tr.neg .num { background: linear-gradient(90deg, var(--bad), #ff9aa9); color: var(--bad); }
tr.neg td.num { background: none; }
.podios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 6px 0 22px; }
.podio { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-align: center; }
.podio:hover { text-decoration: none; border-color: color-mix(in srgb, var(--b) 55%, transparent); }
.podio .foil { width: min(170px, 80%); }
.podio-pos { font-family: var(--f-display); font-size: 28px; font-weight: 700; color: var(--b); text-shadow: 0 0 18px color-mix(in srgb, var(--b) 50%, transparent); }
.podio.p0 { border-color: color-mix(in srgb, var(--b) 45%, transparent); box-shadow: 0 20px 60px -30px var(--b); }
.list.rk td.pos { font-size: 14px; color: var(--b); }
.list.rk tr.hl td { background: color-mix(in srgb, var(--b) 8%, transparent); }
.list.rk .bar { width: 0; transition: width .5s; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps3 .panel { margin: 0; }
.steps3 p { margin: 0; color: var(--soft); }
.regras { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.regra { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.regra h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 19px; }
.regra ul { margin: 6px 0 0; padding-left: 18px; color: var(--soft); font-size: 14.5px; }
@media (max-width: 860px) {
  .nota-deck .nota-grid, .steps3, .podios { grid-template-columns: 1fr; }
}

/* ---------- deck ainda sem preço na LigaMagic */
.sem-preco { font-family: var(--f-mono); font-size: .8em; color: var(--muted); text-shadow: none; font-weight: 400; }
.aviso-preco { margin: 10px 0 4px; padding: 9px 12px; border: 1px dashed color-mix(in srgb, var(--b) 50%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--b) 6%, transparent); color: var(--soft); max-width: 680px; }

/* ---------- resultados reais */
.real-box { margin: 12px 0 4px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--ok) 5%, transparent); }
.real-box p { margin: 2px 0 0; }
.real-box .tag { color: var(--ok); }
.real-l { margin-top: 10px !important; }
.dupla-real { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 18px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--ok) 5%, transparent); }
.dupla-real .tag { color: var(--ok); margin: 0 6px 0 0; }
.rchip { font-family: var(--f-mono); font-size: 12.5px; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--deep); color: var(--soft); white-space: nowrap; }
.rchip b { font-family: var(--f-body); color: var(--text); margin-right: 4px; }
.rchip.forte { border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
.rchip .v { color: var(--ok); } .rchip .e { color: var(--b); } .rchip .d { color: var(--bad); }
.rchip i { color: var(--muted); font-style: normal; }

/* ---------- qual precon é pra mim? */
.qz-card { max-width: 860px; margin: 10px auto 24px; padding: 26px 28px; }
.qz-card h2 { font-size: clamp(22px, 3vw, 30px); margin: 6px 0 4px; }
.qz-prog { height: 6px; border-radius: 6px; background: var(--panel-2); overflow: hidden; margin-bottom: 18px; }
.qz-prog span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--a), var(--main), var(--b)); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.qz-ops { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 18px 0 8px; }
.qz-ops.cores { grid-template-columns: repeat(5, 1fr); }
.qz-op { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--deep); transition: border-color .2s, transform .2s, box-shadow .2s; }
.qz-op:hover, .qz-op:focus-visible { border-color: var(--a); transform: translateY(-2px); }
.qz-op.on { border-color: var(--a); box-shadow: 0 0 0 1px var(--a), 0 10px 30px -14px var(--a); background: color-mix(in srgb, var(--a) 8%, var(--deep)); }
.qz-op b { font-family: var(--f-display); font-size: 17px; color: var(--text); }
.qz-op small { color: var(--muted); font-size: 13px; }
.qz-ops.cores .qz-op { align-items: center; text-align: center; }
.qz-ops.cores .ms { width: 42px; height: 42px; }
.qz-top { display: grid; gap: 16px; }
.qz-res { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qz-res.top { border-color: color-mix(in srgb, var(--b) 55%, transparent); box-shadow: 0 24px 60px -30px var(--b); }
.qz-img { position: relative; display: block; min-height: 180px; }
.qz-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qz-pos { position: absolute; left: 12px; top: 10px; font-family: var(--f-display); font-weight: 700; font-size: 30px; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.qz-body { padding: 16px 20px; }
.qz-body h3 { font-size: 22px; margin: 0 0 4px; }
.qz-body h3 a { color: var(--text); }
.qz-body p { margin: 2px 0; }
.qz-mot { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 3px; font-size: 14.5px; color: var(--soft); }
.qz-mot li.contra { color: var(--b); }
.qz-mais { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.qz-mini { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); }
.qz-mini:hover { border-color: var(--a); text-decoration: none; }
.qz-mini img { width: 70px; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 6px; }
.qz-mini span { display: flex; flex-direction: column; font-size: 14px; }
.qz-mini small { color: var(--muted); font-size: 12px; }
.pv-quiz { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pq { font-family: var(--f-mono); font-size: 12px; padding: 5px 10px; border-radius: 20px; border: 1px solid var(--line); color: var(--muted); }
.pq.on { border-color: var(--main); color: var(--main); }
@media (max-width: 700px) { .qz-res { grid-template-columns: 1fr; } .qz-ops.cores { grid-template-columns: repeat(5, 1fr); gap: 6px; } .qz-ops.cores .qz-op { padding: 10px 4px; } .qz-ops.cores .ms { width: 30px; height: 30px; } }

/* ---------- simulador de mulligan */
.mull-sel select { flex: 1 1 280px; }
.mtopo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 4px 0 10px; }
.mcmd { color: var(--text); }
.mcartas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 6px 0 14px; }
.mcard { all: unset; box-sizing: border-box; cursor: default; width: clamp(92px, 12.5vw, 146px); aspect-ratio: 488 / 680; border-radius: 4.75% / 3.5%; overflow: hidden; position: relative; transition: transform .25s, box-shadow .25s, opacity .25s; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .8); animation: compra .45s cubic-bezier(.2, .8, .2, 1) backwards; }
.mcard:nth-child(2) { animation-delay: .05s; } .mcard:nth-child(3) { animation-delay: .1s; } .mcard:nth-child(4) { animation-delay: .15s; }
.mcard:nth-child(5) { animation-delay: .2s; } .mcard:nth-child(6) { animation-delay: .25s; } .mcard:nth-child(7) { animation-delay: .3s; }
@keyframes compra { from { opacity: 0; transform: translateY(18px) rotate(-3deg); } }
.mcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mcard:hover { transform: translateY(-6px); box-shadow: 0 18px 34px -14px color-mix(in srgb, var(--a) 60%, transparent); }
.mcard.basico { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(160deg, var(--panel-2), var(--deep)); border: 1px solid var(--line); font-family: var(--f-display); font-size: 13px; color: var(--soft); text-align: center; }
.mcard.basico .ms { width: 46px; height: 46px; }
.mmao .mcard { cursor: pointer; }
.mcard.fundo { opacity: .45; transform: translateY(10px) scale(.96); box-shadow: 0 0 0 2px var(--bad); }
.mcard.fundo::after { content: "↓ fundo"; position: absolute; inset: auto 0 8px; text-align: center; font-family: var(--f-mono); font-size: 11px; color: #fff; background: color-mix(in srgb, var(--bad) 80%, transparent); padding: 2px 0; }
.mresumo { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mresumo .ms { width: 14px; height: 14px; }
.chip.bad { border-color: color-mix(in srgb, var(--bad) 50%, transparent); color: var(--bad); }
.mmao .actions { justify-content: center; }
.mfeed { border-left: 3px solid var(--ok); }
.mfeed.errado { border-left-color: var(--bad); }
.mfeed h2 { margin: 4px 0 6px; }
.mfeed.certo h2 { color: var(--ok); } .mfeed.errado h2 { color: var(--bad); }
.mfeed-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.mfeed-top > div:first-child { flex: 1 1 320px; }
.mprob { display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 8px; align-content: start; }
.mprob span { background: var(--deep); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; color: var(--muted); }
.mprob b { display: block; font-family: var(--f-display); font-size: 20px; color: var(--text); }
.mmotivos { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.mmotivos li { display: flex; gap: 10px; font-size: 14.5px; color: var(--soft); }
.mmotivos li span { flex: none; width: 1.2em; text-align: center; }
.mmotivos li.ok span { color: var(--ok); } .mmotivos li.aviso span { color: var(--b); } .mmotivos li.ruim span { color: var(--bad); }
.mfundo { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.pv-mao { display: flex; justify-content: center; height: 70px; align-items: flex-end; }
.pv-carta { width: 34px; height: 48px; margin: 0 -6px; border-radius: 4px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--panel-2), color-mix(in srgb, var(--c) 30%, var(--deep))); box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .7); }
.pv-carta.c0 { transform: rotate(-18deg) translateY(10px); } .pv-carta.c1 { transform: rotate(-12deg) translateY(4px); } .pv-carta.c2 { transform: rotate(-6deg); }
.pv-carta.c3 { transform: translateY(-3px); } .pv-carta.c4 { transform: rotate(6deg); } .pv-carta.c5 { transform: rotate(12deg) translateY(4px); } .pv-carta.c6 { transform: rotate(18deg) translateY(10px); }

/* ---------- 2x2 */
.dupla-sel select { flex: 1 1 260px; }
.dupla-sel .btn { padding: 8px 12px; }
.dupla-top { display: grid; grid-template-columns: 1fr minmax(260px, 340px) 1fr; gap: 18px; align-items: stretch; margin: 6px 0 18px; }
.dupla-top > * { min-width: 0; }
.dcard { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: border-color .3s, box-shadow .3s; }
.dcard:hover { text-decoration: none; }
.dcard.da { border-color: color-mix(in srgb, var(--a) 50%, transparent); box-shadow: 0 20px 60px -30px var(--a); }
.dcard.db { border-color: color-mix(in srgb, var(--b) 50%, transparent); box-shadow: 0 20px 60px -30px var(--b); }
.dcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.dcard > span { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.dcard b { font-family: var(--f-display); font-size: 20px; }
.dscore { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid color-mix(in srgb, var(--main) 45%, transparent); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 0 60px -30px var(--main); }
.dscore .chip { align-self: flex-start; }
.chip.bad { border-color: color-mix(in srgb, var(--bad) 50%, transparent); color: var(--bad); }
.dbar { display: grid; grid-template-columns: 110px 1fr 30px; gap: 8px; align-items: center; font-size: 13px; }
.dbar span:first-child { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.dbar .mb { height: 7px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.dbar .bar { height: 7px; width: 0; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.dbar b { font-family: var(--f-mono); font-size: 12.5px; text-align: right; }
.dmult { font-family: var(--f-mono); font-size: 12px; color: var(--muted); padding: 4px 0 2px; border-top: 1px dashed var(--line); margin-top: 2px; }
.dmult b { color: var(--main); }
.dpenal { font-family: var(--f-mono); font-size: 12px; color: var(--bad); }
.dupla-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; }
.dupla-grid > * { min-width: 0; margin: 0; }
.radar-a { fill: color-mix(in srgb, var(--a) 14%, transparent); stroke: var(--a); stroke-width: 1.6; }
.radar-b { fill: color-mix(in srgb, var(--b) 12%, transparent); stroke: var(--b); stroke-width: 1.6; }
.radar-dupla { fill: color-mix(in srgb, var(--main) 10%, transparent); stroke: var(--main); stroke-width: 2.4; stroke-dasharray: 5 4; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--main) 60%, transparent)); }
.lg-a, .lg-b, .lg-d { display: inline-block; width: 16px; height: 3px; vertical-align: middle; margin: 0 4px 0 10px; background: var(--a); }
.lg-b { background: var(--b); } .lg-d { background: var(--main); }
.dlist { margin: 10px 0; padding-left: 18px; font-size: 14px; }
.dsyn { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dsyn li { background: var(--deep); border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: 8px; padding: 10px 14px; }
.dsyn li.bad-l { border-left-color: var(--bad); }
.dsyn li.bad-l b { color: var(--bad); }
.dsyn p { margin: 4px 0 0; font-size: 14px; color: var(--soft); }
.dforca { float: right; font-size: 11px; letter-spacing: 2px; color: var(--ok); }
.dsub { font-size: 17px; margin: 18px 0 8px; }
.etq { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.dsug { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.dsug-b, .dtop button { all: unset; cursor: pointer; box-sizing: border-box; }
.dsug-b { display: flex; flex-direction: column; background: var(--deep); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: border-color .2s, transform .2s; }
.dsug-b:hover, .dsug-b:focus-visible { border-color: var(--main); transform: translateY(-2px); }
.dsug-b img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dsug-b span { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: 13.5px; }
.dtop { list-style: none; margin: 0; padding: 0; counter-reset: d; display: grid; gap: 8px; }
.dtop li { counter-increment: d; }
.dtop button { display: grid; grid-template-columns: 2.2em 64px auto 64px 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--deep); transition: border-color .2s; }
.dtop button::before { content: counter(d, decimal-leading-zero); font-family: var(--f-mono); color: var(--b); font-size: 13px; }
.dtop button:hover, .dtop button:focus-visible { border-color: var(--main); }
.dtop img { width: 64px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }
.dtop-n { font-size: 14px; }
.como-dupla summary { cursor: pointer; list-style: none; }
.como-dupla summary::-webkit-details-marker { display: none; }
.como-dupla ul { color: var(--soft); font-size: 14.5px; }
@media (max-width: 900px) {
  .dupla-top, .dupla-grid { grid-template-columns: 1fr; }
  .dtop button { grid-template-columns: 2em 48px auto 48px; }
  .dtop img { width: 48px; }
  .dtop-n { grid-column: 1 / -2; } .dtop .price { grid-column: -2; }
}

/* ---------- filtros */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; padding: 12px; background: color-mix(in srgb, var(--panel) 70%, transparent); border: 1px solid var(--line); border-radius: 12px; }
.filters input[type=search] { flex: 1 1 240px; }
.cbtns { display: flex; gap: 5px; }
.cbtn { padding: 5px; border-radius: 50%; background: var(--deep); border: 1px solid var(--line); cursor: pointer; line-height: 0; opacity: .5; transition: opacity .15s, transform .15s, box-shadow .2s; }
.cbtn .ms { width: 22px; height: 22px; margin: 0; }
.cbtn:hover { opacity: .85; }
.cbtn.on { opacity: 1; border-color: var(--a); transform: scale(1.08); box-shadow: 0 0 14px color-mix(in srgb, var(--a) 45%, transparent); }
.chk { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font-size: 14px; cursor: pointer; }
.vs { color: var(--main); font-family: var(--f-display); font-size: 1.4rem; }
.more { text-align: center; margin-top: 16px; }
#f-count, #c-count, #tx-count { font-family: var(--f-mono); font-size: 12.5px; }

/* ---------- tabelas e listas */
table.list { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.list th { text-align: left; font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 9px 10px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.list td { padding: 6px 10px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); vertical-align: middle; }
.list tr:last-child td { border-bottom: 0; }
.list tr:hover td { background: color-mix(in srgb, var(--a) 4%, transparent); }
.list .num { text-align: right; white-space: nowrap; font-family: var(--f-mono); font-size: 13.5px; }
.list .q { color: var(--dim); width: 2.6em; font-family: var(--f-mono); font-size: 12.5px; }
.list tr.sub td { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--main); padding-top: 14px; background: none; }
.big-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.barcell { width: 26%; }
.bar { display: block; height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--a), var(--main), var(--b)); box-shadow: 0 0 12px color-mix(in srgb, var(--a) 45%, transparent); }
ul.rows, ol.rows { list-style: none; margin: 0; padding: 0; }
ol.rows { counter-reset: r; }
.rows li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.rows li:last-child { border-bottom: 0; }
ol.rows li::before { counter-increment: r; content: counter(r, decimal-leading-zero); color: var(--dim); width: 2em; font-family: var(--f-mono); font-size: 12px; }
.right { margin-left: auto; white-space: nowrap; }

/* ---------- cartas de duas faces */
.hero-imgs.col { flex-direction: column; align-items: center; }
.flip { width: 340px; max-width: 100%; }
.flip-in { position: relative; }
.flip .face { display: block; width: 100%; }
.flip .verso { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.flip.virada .frente { opacity: 0; pointer-events: none; }
.flip.virada .verso { opacity: 1; pointer-events: auto; }
.flip.girando .flip-in { animation: vira .5s ease-in-out; }
@keyframes vira { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(0); } }
.flip .cardimg.lg { width: 100%; }
.virar { margin-top: 12px; }
.oracle.faces { display: grid; gap: 14px; }
.face-txt + .face-txt { padding-top: 12px; border-top: 1px dashed var(--line); }
.face-txt h3 { font-size: 18px; margin: 2px 0; }
.face-txt .typeline { margin: 0 0 6px; font-size: 13px; }

/* ---------- página de precon / carta */
.hero { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: start; }
.hero-imgs { display: flex; gap: 12px; }
.cardimg { width: 260px; max-width: 100%; border-radius: 4.75% / 3.5%; display: block; }
.hero-imgs .foil { width: 260px; }
.hero-imgs .foil:not(:first-child) { width: 200px; }
.hero-imgs .foil .cardimg { width: 100%; }
.cardimg.lg { width: 340px; }
.card-hero .hero-imgs .foil { width: 340px; }
.hero-info { min-width: 0; }
.hero-info h1 { margin-top: 6px; }
.typeline { font-family: var(--f-mono); font-size: 14px; color: var(--a); margin: 0 0 12px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; margin: 18px 0 0; }
.facts div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; position: relative; overflow: hidden; }
.facts div::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--a), var(--main)); opacity: .7; }
.facts dt { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.facts dd { margin: 3px 0 0; font-weight: 500; }
.oracle { background: var(--deep); border: 1px solid var(--line); border-left: 2px solid var(--main); border-radius: 10px; padding: 12px 18px; max-width: 660px; }
.oracle p { margin: .4em 0; color: var(--soft); }
.oracle i { color: var(--muted); }
.oracle:empty { display: none; }
.deck { columns: 2 390px; column-gap: 20px; margin-top: 14px; }
.deck-sec { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 20px; }
.deck-sec h2 { display: flex; align-items: baseline; gap: 6px; font-size: 20px; }
.sec-val { margin-left: auto; font-family: var(--f-mono); font-size: 13px; color: var(--b); font-weight: 600; }
a.cl { color: var(--text); }
a.cl:hover { color: var(--a); text-decoration: none; }
.notas p { margin: .4em 0; }
.hovercard { position: fixed; left: 0; top: 0; width: 244px; border-radius: 12px; pointer-events: none; z-index: 100; box-shadow: 0 0 0 1px color-mix(in srgb, var(--main) 40%, transparent), 0 20px 60px rgba(0, 0, 0, .6), 0 0 40px -10px var(--main); }

/* ---------- painéis */
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pcard { --c: var(--a); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; color: var(--text); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; transition: border-color .3s, transform .3s, box-shadow .3s; }
.pcard.c-a { --c: var(--a); } .pcard.c-b { --c: var(--b); } .pcard.c-m { --c: var(--main); } .pcard.c-ok { --c: var(--ok); }
.pcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c) 16%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.pcard::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--c), transparent); opacity: .7; }
.pcard:hover::before { opacity: 1; }
.pcard:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); transform: translateY(-4px); box-shadow: 0 24px 60px -30px var(--c); text-decoration: none; }
.pcard > * { position: relative; }
.pcard.big { grid-column: span 2; grid-row: span 2; }
.pc-top { display: flex; justify-content: space-between; align-items: center; }
.pc-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); box-shadow: 0 0 18px -6px var(--c); }
.pc-n { font-family: var(--f-display); font-weight: 700; font-size: 34px; line-height: 1; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--c) 70%, transparent); }
.pc-prev { min-height: 112px; margin: 10px 0 6px; padding: 12px; background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; justify-content: center; }
.pcard.big .pc-prev { min-height: 260px; }
.pcard h3 { font-size: 21px; margin: 4px 0 0; }
.pcard.big h3 { font-size: 30px; }
.pcard p { margin: 0; font-size: 14.5px; }
.pc-go { font-family: var(--f-mono); font-size: 12.5px; color: var(--c); margin-top: auto; padding-top: 10px; }
.pcard:hover .pc-go { letter-spacing: .04em; }
/* prévias */
.pv-podio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; }
.pv-podio li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13.5px; }
.pv-podio li:nth-child(1) { order: 2; } .pv-podio li:nth-child(2) { order: 1; } .pv-podio li:nth-child(3) { order: 3; }
.pv-podio .foil { width: 100%; border-radius: 10px; aspect-ratio: 16 / 11; overflow: hidden; }
.pv-podio .foil img { height: 100%; object-fit: cover; }
.pv-podio li:nth-child(1) .foil { aspect-ratio: 16 / 13; box-shadow: 0 0 40px -12px var(--b); }
.pv-podio .pp { font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--b); text-shadow: 0 0 14px color-mix(in srgb, var(--b) 50%, transparent); }
.pv-podio .price { font-size: 20px; }
.pv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-chips .chip { font-size: 11.5px; padding: 3px 8px; }
.pv-search { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.pv-input { font-family: var(--f-mono); padding: 6px 10px; border: 1px solid var(--a); border-radius: 7px; color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 12%, transparent); }
.pv-input .caret { display: inline-block; width: 7px; height: 14px; background: var(--a); vertical-align: -2px; margin-left: 2px; animation: blip 1s steps(1) infinite; }
.pv-res { color: var(--muted); font-family: var(--f-mono); font-size: 12px; }
.pv-res b { color: var(--text); font-family: var(--f-body); font-size: 13px; }
.pv-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.pv-bars li { display: grid; grid-template-columns: 1fr 70px auto; gap: 8px; align-items: center; }
.pv-bars .nm { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-bars .mb { height: 6px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.pv-bars .bar { height: 6px; width: 0; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.pv-bars .mv { font-family: var(--f-mono); font-size: 11.5px; color: var(--b); text-align: right; }
.pv-card { display: flex; gap: 12px; align-items: center; }
.pv-card .foil { width: 74px; flex: none; }
.pv-card div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.pv-card .price { font-size: 18px; }
.pv-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.pv-vs img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.vsx { font-family: var(--f-display); font-size: 22px; color: var(--main); text-shadow: 0 0 12px var(--main); }
.pv-cap { margin: 8px 0 0 !important; font-size: 12.5px !important; color: var(--muted); }
.pv-cap b { color: var(--text); }
.pv-pips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-pips > span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; }
.pv-pips b { font-family: var(--f-mono); font-size: 12px; color: var(--ok); }
.pv-ok { display: flex; gap: 14px; align-items: center; }
.pv-ok .okc { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: var(--ok); border: 2px solid var(--ok); box-shadow: 0 0 22px -4px var(--ok); }
.pv-ok div { display: flex; flex-direction: column; }
.pv-ok b { font-family: var(--f-display); font-size: 26px; }
@media (max-width: 980px) { .pcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pcards { grid-template-columns: 1fr; } .pcard.big { grid-column: auto; grid-row: auto; } .pcard.big .pc-prev { min-height: 0; } }
.idgroup { margin-top: 30px; scroll-margin-top: 90px; }
.idgroup h2 { display: flex; align-items: center; gap: 8px; }
.big-stat { font-size: 1.1rem; }
.big-stat b { font-size: 2rem; color: var(--b); font-family: var(--f-display); text-shadow: 0 0 20px color-mix(in srgb, var(--b) 40%, transparent); }
.cmp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cmp-grid .panel { margin: 0; }
.cmp-grid .common { border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: color-mix(in srgb, var(--ok) 4%, transparent); }

/* ---------- busca no texto */
#tx-sug { margin: 0 0 12px; }
#tx-sug .chip { cursor: pointer; font-size: 12.5px; }
.tx-list { padding: 6px 14px; }
.tx-row { border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.tx-row:last-child { border-bottom: 0; }
.tx-row summary { display: flex; align-items: center; gap: 8px; padding: 9px 4px; cursor: pointer; list-style: none; }
.tx-row summary::-webkit-details-marker { display: none; }
.tx-row summary::before { content: "▸"; color: var(--a); width: 1em; transition: transform .15s; }
.tx-row[open] summary::before { transform: rotate(90deg); }
.tx-row .q { color: var(--dim); width: 2em; font-family: var(--f-mono); font-size: 12.5px; }
.tx-bar { flex: 1; min-width: 40px; margin: 0 8px; }
.tx-bar .bar { width: 0; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.tx-row .num { white-space: nowrap; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.tx-row .num b { color: var(--b); }
.tx-cards { list-style: none; margin: 0 0 12px 2.4em; padding: 0; display: grid; gap: 8px; }
.tx-cards li { background: var(--deep); border: 1px solid var(--line); border-radius: 8px; padding: 9px 13px; }
.tx-ch { display: flex; justify-content: space-between; gap: 8px; }
.tx-txt { color: var(--muted); margin-top: 4px; }
mark { background: color-mix(in srgb, var(--b) 20%, transparent); color: var(--b); border-radius: 3px; padding: 0 2px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--b) 35%, transparent); }

/* ---------- grafo */
body.is-graph #fx, body.is-graph .scan { display: none; }
body:has(.graph-page) main.wrap { max-width: none; padding: 0; display: flex; flex-direction: column; }
body:has(.graph-page) .foot { display: none; }
.graph-page { flex: 1; display: flex; flex-direction: column; min-height: calc(100vh - 63px); }
.graph-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--panel); }
.graph-bar input[type=search] { flex: 0 1 280px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-left: auto; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.graph-wrap { position: relative; flex: 1; min-height: 480px; background: var(--graph-bg); }
#graph { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; display: block; }
.ghint { position: absolute; left: 16px; bottom: 12px; pointer-events: none; font-family: var(--f-mono); font-size: 12px; }
.gpanel { position: absolute; top: 14px; right: 14px; bottom: 14px; width: 310px; overflow-y: auto; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 0 1px color-mix(in srgb, var(--main) 12%, transparent); }
.gpanel[hidden] { display: none; }
.gpanel h3 { margin: 10px 0 4px; font-size: 20px; }
.gpanel p { margin: 4px 0; }
.gtype { display: flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.gimg { width: 100%; border-radius: 4.75% / 3.5%; margin-top: 10px; }
.gart { width: 100%; border-radius: 8px; margin-top: 10px; aspect-ratio: 16/10; object-fit: cover; }
.gclose { position: absolute; top: 8px; right: 10px; border: 0; background: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.gclose:hover { color: var(--a); }
.glist { list-style: none; padding: 0; margin: 6px 0 14px; font-size: .9rem; }
.glist a { display: flex; align-items: center; gap: 8px; padding: 3px 0; color: var(--text); }
.glist a:hover { color: var(--a); text-decoration: none; }

/* ---------- entrada das seções */
.rv { transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js-fx .rv:not(.in) { opacity: 0; transform: translateY(14px); }

/* ---------- telas menores */
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; }
  .hand { height: 380px; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-imgs { justify-content: center; }
  .hero-imgs .foil, .card-hero .hero-imgs .foil { width: min(300px, 80vw); }
  .hero-imgs .foil:not(:first-child) { width: min(200px, 40vw); }
  .hide-sm { display: none; }
  .cmp-grid { grid-template-columns: 1fr; }
  .search { flex: 1 1 100%; margin-left: 0; }
  .top { position: relative; }
  .panel { padding: 14px; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .gpanel { top: auto; left: 10px; right: 10px; width: auto; max-height: 55%; }
  .legend { margin-left: 0; }
  .graph-page { min-height: calc(100vh - 120px); }
  .tx-bar { display: none; }
  .tx-cards { margin-left: 0; }
  .hand { height: 300px; }
  .hand .hand-card { top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-fx .rv:not(.in) { opacity: 1; transform: none; }
}

/* ---- combos (Commander Spellbook) */
.combos h3 { margin: 18px 0 8px; font-size: 15px; }
.combo { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.cb-cartas { display: flex; gap: 8px; flex-wrap: wrap; }
.cb-carta { margin: 0; width: 118px; display: flex; flex-direction: column; gap: 4px; }
.cb-carta img { width: 100%; border-radius: 5.5%; display: block; }
.cb-carta figcaption { font-size: 11.5px; line-height: 1.3; }
.cb-carta.falta img { outline: 2px dashed var(--b); outline-offset: 3px; }
.cb-falta { display: block; font-family: var(--f-mono); color: var(--b); font-size: 11px; }
.cb-semimg { display: grid; place-items: center; text-align: center; aspect-ratio: 63 / 88; border: 1px dashed var(--line); border-radius: 6px; font-size: 11px; padding: 6px; color: var(--muted); }
.cb-info { min-width: 0; }
.cb-res { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip.ok { border-color: color-mix(in srgb, var(--ok) 50%, transparent); color: var(--ok); white-space: normal; }
.combo details summary { cursor: pointer; color: var(--a); font-size: 13px; }
.combo details ol { padding-left: 20px; }
.combo-tag { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.rank-combos .mb { display: block; min-width: 80px; height: 6px; background: color-mix(in srgb, var(--line) 60%, transparent); border-radius: 3px; overflow: hidden; }
.rank-combos .mb .bar { display: block; height: 100%; }
@media (max-width: 640px) {
  .combo { grid-template-columns: 1fr; }
  .cb-carta { width: calc(33% - 6px); }
}
.cb-quase > summary { cursor: pointer; list-style: none; }
.cb-quase > summary::-webkit-details-marker { display: none; }
.cb-quase > summary h3 { display: inline; }
.cb-quase > summary h3::before { content: "▸ "; color: var(--a); }
.cb-quase[open] > summary h3::before { content: "▾ "; }
.cb-quase > summary { margin: 18px 0 8px; }

/* ---- estratégia parecida */
.par { display: flex; flex-direction: column; gap: 6px; }
.par .tile { flex: 1; }
.par-why { margin: 0; color: var(--muted); }

/* ---- linha do tempo */
.lt-svg { width: 100%; height: auto; display: block; }
.lt-svg .gd { stroke: var(--line); stroke-width: 1; }
.lt-svg .gd.v { stroke-dasharray: 2 4; opacity: .6; }
.lt-svg .eixo { fill: var(--muted); font-family: var(--f-mono); font-size: 12px; }
.lt-svg .pt { fill: var(--a); fill-opacity: .55; stroke: var(--a); stroke-width: 1; transition: r .15s; }
.lt-svg a:hover .pt { fill-opacity: 1; r: 8; }
.lt-svg .media { fill: none; stroke: var(--b); stroke-width: 2.5; stroke-linejoin: round; }
.lt-svg .bar-v { fill: var(--b); fill-opacity: .75; }
.lt-svg .bar-v:hover { fill-opacity: 1; }
.lt-anos { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0; }
.lt-ano { margin: 30px 0; }
.lt-cab { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; border-left: 3px solid var(--a); padding-left: 14px; }
.lt-num { font-family: var(--f-display, inherit); font-size: 44px; font-weight: 700; line-height: 1; color: var(--a); }
.lt-cab p { margin: 2px 0; }
.lt-ano { scroll-margin-top: 80px; }
.pv-lt { display: flex; align-items: flex-end; gap: 3px; height: 70px; }
.pv-lt .lt-b { flex: 1; background: linear-gradient(to top, var(--main), var(--a)); border-radius: 2px 2px 0 0; min-height: 3px; }

/* ---- preparar partida */
.pt-sel { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.pt-sel label { display: flex; flex-direction: column; gap: 4px; }
.pt-sel input { width: 100%; }
.pt-sel input.ok { border-color: var(--ok); }
.pt-sel label:first-child input { border-style: dashed; }
.pt-sel label:first-child input.ok { border-style: solid; border-color: var(--a); }
.pt-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pt-vazio { padding: 30px 0; text-align: center; }
.pt-mesa ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.pt-advs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 16px; align-items: start; }
.pt-adv { padding: 0; overflow: hidden; }
.pt-topo { display: block; position: relative; color: inherit; }
.pt-topo:hover { text-decoration: none; }
.pt-topo img { width: 100%; height: 130px; object-fit: cover; display: block; opacity: .55; }
.pt-topo > div { padding: 12px 16px 6px; }
.pt-topo img + div { position: relative; margin-top: -60px; background: linear-gradient(to bottom, transparent, var(--panel) 45%); }
.pt-topo h2 { margin: 2px 0; font-size: 21px; }
.pt-topo p { margin: 2px 0; }
.pt-bloco { padding: 4px 16px 12px; border-top: 1px solid var(--line); }
.pt-bloco h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--a); margin: 10px 0 6px; }
.pt-bloco h4 { font-size: 13px; margin: 10px 0 4px; }
.pt-bloco.resp { background: color-mix(in srgb, var(--a) 6%, transparent); }
.pt-cs { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.pt-c { font-size: 12.5px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: color-mix(in srgb, var(--panel-2) 80%, transparent); display: inline-flex; gap: 5px; align-items: center; color: var(--text); }
.pt-c:hover { border-color: var(--a); text-decoration: none; }
.pt-c.sem { color: var(--muted); }
.pt-c .ms { width: 13px; height: 13px; }
.pt-combo { margin: 4px 0 8px; }
.pt-combo .mais { color: var(--muted); }
.pt-dicas, .pt-resp { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; }
.pt-dicas .forte::marker { content: "▲ "; color: var(--bad); }
.pt-dicas .fraco::marker { content: "▼ "; color: var(--ok); }
.aviso-falta { color: var(--bad); margin: 2px 0; }
.pt-prev { position: fixed; width: 240px; border-radius: 12px; pointer-events: none; z-index: 50; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
@media (hover: none) { .pt-prev { display: none; } }
