/* FreakForge — tema: consultório de cirurgião antigo. Couro costurado, osso, latão e aço de mesa cirúrgica. */

/* ============================================================ base */
:root {
  --bg: #120d0a; --bg2: #1c1511; --bg3: #241b15;
  --panel: #2a2019; --panel-top: #33271e; --panel2: #3a2d22;
  --line: #4b3a2c; --line2: #6a523d; --stitch: rgba(214, 170, 120, .22);
  --text: #efe4cf; --dim: #ab9a80; --faint: #6f5f4d;
  --accent: #d0894a; --accent-hi: #e7a565; --accent-lo: #9c5a26; --ink: #1d1209;
  --good: #97b26a; --bad: #c4503f; --warn: #dca84d; --gold: #e2b85a; --blood: #b8443d;
  --steel: #2c3134; --steel-hi: #3d4448; --steel-line: #50595e;
  --t1: #8e7c66; --t2: #5f9aa5; --t3: #c99a45; --t4: #c4625a;
  --k-arm: #94553a; --k-eye: #4f7194; --k-heart: #93404c; --k-legs: #7d6a42; --k-spine: #8a8576; --k-organ: #648653; --k-body: #6e5d52;
  --r: 10px; --cs: 56px;
  --f-title: 'Pirata One', 'Alegreya SC', Georgia, serif;
  --f-head: 'Alegreya SC', Georgia, 'Palatino Linotype', serif;
  --f-body: 'Alegreya Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --serif: var(--f-head);
  --shadow: 0 10px 28px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
html, body { margin: 0; color: var(--text); font-family: var(--f-body); font-size: 16px; line-height: 1.35; -webkit-tap-highlight-color: transparent; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 50% -12%, rgba(120, 72, 38, .28), transparent 70%),
    radial-gradient(900px 600px at 50% 120%, rgba(90, 30, 25, .18), transparent 70%),
    var(--bg);
}
/* grão de papel/couro sobre tudo */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; box-shadow: inset 0 0 160px rgba(0, 0, 0, .65); }
body.dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
#app { position: relative; z-index: 1; max-width: 1260px; margin: 0 auto; padding: 14px 18px 48px; }
h1, h2, h3, h4 { margin: 0 0 10px; font-family: var(--f-head); font-weight: 700; letter-spacing: .02em; }
h1 { font-size: 2.6rem; } h2 { font-size: 1.6rem; }
h3 { color: var(--accent-hi); display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; font-size: 1.12rem; letter-spacing: .04em; }
h3 small { color: var(--dim); font-weight: 400; font-family: var(--f-body); font-size: .82rem; letter-spacing: 0; }
h4 { font-size: .95rem; color: var(--dim); margin: 14px 0 6px; letter-spacing: .05em; }
b { font-weight: 700; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px; width: 100%; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35), 0 0 0 3px rgba(208, 137, 74, .2); }
input::placeholder { color: var(--faint); }
.small { color: var(--dim); font-size: .88rem; } .pad { padding: 8px 0 0; margin: 0; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; border: 2px solid var(--bg); } ::-webkit-scrollbar-track { background: transparent; }

/* ============================================================ botões */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(180deg, #45362a, #33281f); border: 1px solid var(--line2); border-radius: var(--r);
  padding: 8px 15px; font-weight: 700; letter-spacing: .01em; color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 230, 200, .08), 0 2px 0 rgba(0, 0, 0, .35);
  transition: transform .08s, filter .15s, box-shadow .15s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 230, 200, .05), 0 1px 0 rgba(0, 0, 0, .35); }
.btn.primary {
  background: linear-gradient(180deg, var(--accent-hi), var(--accent) 45%, var(--accent-lo)); color: var(--ink); border-color: #f0b77a;
  box-shadow: inset 0 1px 0 rgba(255, 245, 220, .45), 0 2px 0 #5c3414, 0 6px 16px rgba(208, 137, 74, .25); text-shadow: 0 1px 0 rgba(255, 220, 170, .35);
}
.btn.big { padding: 13px 24px; font-size: 1.12rem; }
.btn.small { padding: 4px 11px; font-size: .85rem; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.disabled, .btn:disabled { opacity: .42; cursor: not-allowed; filter: none; }

/* ============================================================ painéis de couro costurado */
.panel {
  position: relative; background: linear-gradient(180deg, var(--panel-top), var(--panel) 120px);
  border: 1px solid var(--line); border-radius: var(--r); padding: 15px 16px; margin-bottom: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 230, 200, .06), var(--shadow);
}
.panel::before { content: ''; position: absolute; inset: 5px; border: 1px dashed var(--stitch); border-radius: calc(var(--r) - 4px); pointer-events: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; font-size: .8rem; color: var(--dim); white-space: nowrap; font-family: var(--f-body); letter-spacing: 0; font-weight: 500; }
.plist { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.plist li { display: flex; align-items: center; gap: 8px; padding: 8px 11px; background: rgba(0, 0, 0, .22); border-radius: 8px; border: 1px solid rgba(255, 255, 255, .03); }
.plist li.me { border-color: var(--accent-lo); background: rgba(208, 137, 74, .08); } .plist li.dead { opacity: .45; }
.pname { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd { color: var(--good); font-weight: 800; min-width: 14px; text-align: center; }
.heart { color: var(--blood); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); } .heart.lost { color: #3f3128; text-shadow: none; }
.lives.sm { font-size: .82rem; letter-spacing: 1px; }

/* ============================================================ tela inicial */
.home, .center { text-align: center; max-width: 460px; margin: 26px auto; display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.center { max-width: 680px; }
.hero { display: flex; justify-content: center; margin-bottom: -6px; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .6)); }
.hero .board { --cs: 30px; animation: breathe 4.5s ease-in-out infinite; transform-origin: 50% 70%; }
.hero .board .bcell.void { border-color: transparent; }
@keyframes breathe { 50% { transform: scale(1.03) translateY(-2px); } }
.logo-title { font-family: var(--f-title); font-weight: 400; font-size: 4.6rem; line-height: .95; margin: 4px 0 0; letter-spacing: .02em;
  color: #eadbc0; text-shadow: 0 2px 0 #5a2219, 0 4px 0 #2a120d, 0 10px 26px rgba(0, 0, 0, .7), 0 0 40px rgba(184, 68, 61, .25); }
.tagline { color: var(--dim); margin: 0 0 4px; font-size: 1.08rem; font-style: italic; }
.home-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; background: linear-gradient(180deg, var(--panel-top), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.home-card::before { content: ''; position: absolute; inset: 5px; border: 1px dashed var(--stitch); border-radius: calc(var(--r) - 4px); pointer-events: none; }
.home label { text-align: left; display: flex; flex-direction: column; gap: 6px; color: var(--dim); font-size: .9rem; font-family: var(--f-head); letter-spacing: .04em; }
.home-row { display: flex; gap: 10px; flex-wrap: wrap; } .home-row .btn { flex: 1; }
.codein { text-align: center; text-transform: uppercase; letter-spacing: 8px; font-weight: 800; font-size: 1.25rem; max-width: 170px; font-family: var(--f-head); }
.or { color: var(--faint); font-size: .85rem; display: flex; align-items: center; gap: 10px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line2), transparent); }
.notice { background: rgba(196, 80, 63, .14); border: 1px solid var(--bad); border-radius: var(--r); padding: 10px; }
.logo { font-size: 4.2rem; line-height: 1; } .logo.spin { animation: wob 1.2s ease-in-out infinite; }
@keyframes wob { 50% { transform: rotate(12deg); } }

/* ============================================================ sala */
.room-code { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 6px 0 18px; flex-wrap: wrap; }
.room-code span { color: var(--dim); font-family: var(--f-head); letter-spacing: .06em; }
.room-code b { font-family: var(--f-head); font-size: 2.5rem; letter-spacing: 12px; color: var(--accent-hi); padding: 2px 8px 2px 20px; border: 1px dashed var(--stitch); border-radius: 8px; background: rgba(0, 0, 0, .25); text-shadow: 0 2px 0 #3d200c; }
.surgeons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.surgeon { position: relative; text-align: left; background: linear-gradient(180deg, #2e241c, #241b15); border: 2px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 5px; transition: border-color .15s, transform .12s, box-shadow .15s; }
.surgeon:hover { transform: translateY(-2px); border-color: var(--line2); }
.surgeon b { font-family: var(--f-head); font-size: 1.1rem; }
.surgeon > span:last-child { color: var(--dim); font-size: .84rem; line-height: 1.3; }
.surgeon.on { border-color: var(--accent); background: linear-gradient(180deg, #3a2a1c, #2a1e15); box-shadow: 0 0 0 3px rgba(208, 137, 74, .18), var(--shadow); }
.s-ic { font-size: 1.7rem; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #4d3a2a, #241a12); border: 2px solid var(--line2); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5); }
.surgeon.on .s-ic { border-color: var(--accent); }
.s-top { display: flex; justify-content: space-between; align-items: center; }
.s-start { font-size: .78rem; color: var(--accent-hi); background: rgba(0, 0, 0, .25); border: 1px solid var(--line2); border-radius: 999px; padding: 2px 9px; }
.howto ol { margin: 0; padding-left: 22px; display: grid; gap: 7px; color: var(--dim); } .howto b { color: var(--text); }

/* ============================================================ barra do topo */
.top {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; position: sticky; top: 8px; z-index: 6;
  background: linear-gradient(180deg, #3a2c21, #2a2019); border: 1px solid var(--line2); border-radius: var(--r);
  padding: 9px 14px; margin-bottom: 14px; box-shadow: inset 0 1px 0 rgba(255, 230, 200, .08), 0 8px 22px rgba(0, 0, 0, .5);
}
.top .spacer { flex: 1; }
.top .round { font-family: var(--f-head); font-size: 1.1rem; } .top .round b { color: var(--accent-hi); font-size: 1.3rem; }
.top .lives { font-size: 1.25rem; letter-spacing: 1px; }
.gold { display: inline-flex; align-items: center; gap: 5px; font-size: 1.15rem; padding: 2px 12px 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid #6b5326; }
.gold b { color: var(--gold); font-size: 1.2rem; text-shadow: 0 1px 0 #4a3510; }
.timer { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; padding: 3px 12px; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.timer.urgent { color: #ffb0a2; border-color: var(--bad); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .5; } }
.speed { display: flex; gap: 6px; }
body.in-tutorial .timer { display: none; }

/* ============================================================ loja / corpo */
.shop { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(300px, 410px); gap: 14px; align-items: start; }
.col-left, .col-right { min-width: 0; }
.hint { color: var(--dim); font-size: .84rem; margin: 10px 0 0; text-align: center; } .hint b { color: var(--text); }
.boardwrap { display: flex; justify-content: center; padding: 10px 4px; overflow-x: auto; border-radius: 8px;
  background: radial-gradient(ellipse 60% 60% at 50% 45%, rgba(255, 210, 150, .07), transparent 70%); }

/* grade do corpo */
.board { position: relative; display: grid; grid-template-columns: repeat(var(--cols), var(--cs)); grid-template-rows: repeat(var(--rows), var(--cs)); width: max-content; }
.board.mini { --cs: 34px; }
.bcell { border: 1px solid transparent; }
.bcell.void { border: 1px dotted rgba(170, 130, 95, .09); }
.board.mini .bcell.void { border-color: transparent; }
.bcell.open {
  background: radial-gradient(circle at 50% 38%, #4c372b, #38281f 75%); border: 1px solid rgba(0, 0, 0, .45);
  box-shadow: inset 0 1px 0 rgba(255, 210, 170, .07), inset 0 -2px 4px rgba(0, 0, 0, .3);
}
.bcell.locked { background: repeating-linear-gradient(45deg, #1c1511, #1c1511 5px, #231b16 5px, #231b16 10px); border: 1px dashed #3d3027; display: flex; align-items: center; justify-content: center; font-size: .62rem; color: #6d5a49; }
.board.mini .bcell.locked { background: none; border-color: transparent; } .board.mini .bcell.locked span { display: none; }

/* peças */
.gpart { position: absolute; pointer-events: none; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .55)); transition: filter .15s; }
.gpart.lifted, .epart.lifted { opacity: .22; }
.shp { position: relative; }
.pcell {
  position: absolute; width: var(--cs); height: var(--cs); pointer-events: auto; cursor: grab; touch-action: none;
  display: flex; align-items: center; justify-content: center; border: 2px solid rgba(0, 0, 0, .45); border-radius: 8px;
  background: radial-gradient(circle at 35% 25%, rgba(255, 240, 220, .22), transparent 55%), linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .22)), var(--kc, #666);
  box-shadow: inset 0 1px 0 rgba(255, 240, 220, .25), inset 0 -3px 6px rgba(0, 0, 0, .25);
}
.pcell.jr { border-right-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.pcell.jl { border-left-width: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.pcell.jb { border-bottom-width: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.pcell.jt { border-top-width: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
/* costura onde as células da mesma peça se juntam */
.pcell.jr::after { content: ''; position: absolute; right: -1px; top: 18%; bottom: 18%; border-right: 2px dashed rgba(250, 225, 190, .38); z-index: 1; }
.pcell.jb::before { content: ''; position: absolute; bottom: -1px; left: 18%; right: 18%; border-bottom: 2px dashed rgba(250, 225, 190, .38); z-index: 1; }
.board.mini .pcell.jr::after, .board.mini .pcell.jb::before, .o-shape .pcell::after, .o-shape .pcell::before, .cx-shape .pcell::after, .cx-shape .pcell::before, .cx-mini-shape .pcell::after, .cx-mini-shape .pcell::before { border-width: 1px; }
.pic { font-weight: 400; font-size: calc(var(--cs) * .52); line-height: 1; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .6)); position: relative; z-index: 2; }
.pcell .stars { position: absolute; top: 1px; right: 4px; font-size: calc(var(--cs) * .24); text-shadow: 0 1px 2px #000; z-index: 2; }
.k-arm { --kc: var(--k-arm); } .k-eye { --kc: var(--k-eye); } .k-heart { --kc: var(--k-heart); } .k-legs { --kc: var(--k-legs); } .k-spine { --kc: var(--k-spine); } .k-organ { --kc: var(--k-organ); } .k-body { --kc: var(--k-body); }
.shp.tier2 .pcell { border-color: var(--t2); }
.shp.tier3 .pcell { border-color: var(--t3); box-shadow: inset 0 1px 0 rgba(255, 240, 220, .25), inset 0 0 10px rgba(226, 184, 90, .28); }
.shp.tier4 .pcell { border-color: var(--t4); box-shadow: inset 0 1px 0 rgba(255, 240, 220, .25), inset 0 0 12px rgba(196, 98, 90, .4); }
.gpart.nb-give .pcell, .epart.nb-give .pcell { filter: brightness(1.25); border-color: var(--good); }
.gpart.nb-recv .pcell, .epart.nb-recv .pcell { filter: brightness(1.25); border-color: var(--gold); }
.gpart.conflict .pcell { border-color: var(--bad); animation: warnp 1s infinite alternate; }
@keyframes warnp { to { border-color: var(--warn); filter: brightness(1.18); } }

/* expansões: “pele extra” costurada sob as peças */
.epart { position: absolute; pointer-events: none; }
.epart .pcell {
  background: repeating-linear-gradient(45deg, rgba(150, 110, 90, .30) 0 6px, rgba(120, 88, 72, .30) 6px 12px), radial-gradient(circle at 50% 40%, #5a4033, #44302a);
  border: 2px dashed #b4957c; box-shadow: inset 0 0 10px rgba(0, 0, 0, .35); cursor: grab;
}
.epart .pcell.jr, .epart .pcell.jl, .epart .pcell.jb, .epart .pcell.jt { border-style: dashed; }
.epart .pcell::after, .epart .pcell::before { display: none; }
.epart .pic { font-size: calc(var(--cs) * .32); opacity: .9; position: absolute; top: 3px; left: 4px; }
.epart .stars { right: 3px; }

/* prévia de encaixe / peça arrastada */
.pv { position: absolute; width: var(--cs); height: var(--cs); pointer-events: none; border-radius: 8px; z-index: 3; }
.pv.ok { background: rgba(151, 178, 106, .42); box-shadow: inset 0 0 0 2px var(--good); }
.pv.bad { background: rgba(196, 80, 63, .38); box-shadow: inset 0 0 0 2px var(--bad); }
.dragghost { position: fixed; z-index: 100; pointer-events: none; opacity: .92; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .6)); transform: rotate(-2deg) scale(1.04); }
.dragghost .pcell { pointer-events: none; }

/* estrela de fusão opcional */
.fuse-btn { position: absolute; z-index: 5; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 2px solid var(--gold); background: radial-gradient(circle at 40% 35%, #6b5124, #3a2a10); font-size: .9rem; line-height: 1; cursor: pointer; box-shadow: 0 0 10px rgba(226, 184, 90, .6); animation: pulse 1.4s ease-in-out infinite; }
.fuse-btn:hover { filter: brightness(1.2); }
@keyframes pulse { 50% { box-shadow: 0 0 18px rgba(226, 184, 90, .95); transform: scale(1.12); } }

/* ============================================================ loja */
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 9px; }
.offer {
  position: relative; display: flex; flex-direction: column; gap: 3px; padding: 8px 8px 9px; cursor: grab; touch-action: none; user-select: none;
  background: linear-gradient(180deg, #2f251d, #221a14); border: 1px solid var(--line); border-top: 3px solid var(--t1); border-radius: var(--r);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35); transition: transform .12s, box-shadow .15s, border-color .15s;
}
.offer:hover { transform: translateY(-3px); box-shadow: 0 10px 18px rgba(0, 0, 0, .5); }
.offer.tier2 { border-top-color: var(--t2); } .offer.tier3 { border-top-color: var(--t3); box-shadow: 0 3px 8px rgba(0, 0, 0, .35), 0 0 14px rgba(201, 154, 69, .12); }
.offer.poor { opacity: .48; } .offer.poor:hover { transform: none; }
.offer.selected { outline: 2px solid var(--accent); outline-offset: 1px; }
.offer .o-top { display: flex; justify-content: space-between; align-items: center; }
.o-ic { font-size: 1.45rem; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(255, 230, 200, .12), rgba(0, 0, 0, .25)); border: 1px solid var(--line2); }
.o-cost { font-size: .9rem; color: var(--gold); font-weight: 800; padding: 1px 7px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid #5f4920; }
.o-name { font-size: .86rem; font-weight: 700; line-height: 1.12; min-height: 2.3em; margin-top: 2px; }
.o-shape { display: flex; align-items: center; justify-content: center; min-height: 30px; padding: 3px 0; pointer-events: none; }
.o-shape .pcell { pointer-events: none; } .o-shape .pic, .o-shape .stars { display: none; }
.o-tags { font-size: .8rem; min-height: 1.2em; }
.offer.sold { display: flex; align-items: center; justify-content: center; border: 2px dashed var(--line); border-top-width: 2px; background: rgba(0, 0, 0, .15); color: var(--faint); min-height: 128px; font-size: .85rem; cursor: default; box-shadow: none; font-style: italic; }
.offer.sold:hover { transform: none; }
.o-lock { position: absolute; right: 6px; bottom: 6px; width: 27px; height: 27px; padding: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); border: 1px solid var(--line2); font-size: .8rem; line-height: 1; cursor: pointer; }
.o-lock:hover { border-color: var(--accent); }
.offer.held { background: linear-gradient(180deg, #3d2c1c, #2a1e14); box-shadow: inset 0 0 0 2px var(--accent), 0 6px 14px rgba(0, 0, 0, .4); }
.offer.held .o-lock { border-color: var(--accent); background: var(--accent-lo); }
.zone { margin-top: 12px; padding: 14px; border: 2px dashed var(--line2); border-radius: var(--r); text-align: center; color: var(--dim); font-size: .9rem; transition: all .15s; background: rgba(0, 0, 0, .12); }
.zone.hover, .bench.hover { border-color: var(--accent); background: rgba(208, 137, 74, .12); color: var(--text); }
body.dragging .zone.sell { border-color: var(--bad); color: #f0b8ac; background: rgba(196, 80, 63, .1); }

/* ============================================================ mesa cirúrgica (aço) */
.bench {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 10px; border-radius: 8px; border: 2px dashed transparent;
  background: linear-gradient(180deg, var(--steel-hi), var(--steel)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -2px 6px rgba(0, 0, 0, .4), 0 4px 10px rgba(0, 0, 0, .35);
}
.bslot {
  position: relative; aspect-ratio: 1; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3px; cursor: grab; touch-action: none; user-select: none;
  background: linear-gradient(180deg, #23272a, #1b1e20); border: 2px solid var(--t1); border-radius: 8px; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .5);
  transition: transform .12s;
}
.bslot:not(.empty):hover { transform: translateY(-2px); }
.bslot.tier2 { border-color: var(--t2); } .bslot.tier3 { border-color: var(--t3); } .bslot.tier4 { border-color: var(--t4); }
.bslot.empty { border: 1px dashed var(--steel-line); background: rgba(0, 0, 0, .18); cursor: default; }
.bslot .ic { font-size: 1.75rem; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .5)); }
.bslot .bn { font-size: .64rem; color: #b9c0c4; text-align: center; line-height: 1.1; }
.bslot .stars { position: absolute; top: 1px; right: 4px; }
.bslot.selected { outline: 2px solid var(--accent); outline-offset: 1px; }
.stars { color: var(--gold); font-size: .82rem; }

/* ============================================================ cartões de parte, dicas e detalhe */
.pcard { position: relative; background: linear-gradient(180deg, #2a2019, #1e1712); border: 1px solid var(--line); border-top: 3px solid var(--t1); border-radius: var(--r); padding: 11px 12px; display: flex; flex-direction: column; gap: 6px; }
.pcard.tier0 { border-top-color: #5c4e40; } .pcard.tier2 { border-top-color: var(--t2); } .pcard.tier3 { border-top-color: var(--t3); } .pcard.tier4 { border-top-color: var(--t4); }
.pc-head { display: flex; gap: 10px; align-items: center; }
.pc-icon { font-size: 1.9rem; width: 46px; height: 46px; display: grid; place-items: center; flex: none; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(255, 230, 200, .14), rgba(0, 0, 0, .3)); border: 1px solid var(--line2); }
.pc-name { font-weight: 700; font-family: var(--f-head); font-size: 1.08rem; line-height: 1.1; }
.pc-slot { color: var(--dim); font-size: .8rem; }
.lines { list-style: none; margin: 0; padding: 0; font-size: .88rem; display: flex; flex-direction: column; gap: 2px; }
.lines .adj { color: #e0c58e; }
.warn { color: var(--warn); font-size: .82rem; } .recipe { font-size: .82rem; color: #e3a49b; }
.flavor { color: var(--dim); font-size: .8rem; font-style: italic; border-top: 1px dashed var(--line); padding-top: 5px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: .74rem; padding: 1px 8px; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); } .tag.dim { opacity: .6; }
.t-inseto { border-color: #a0ac4c; } .t-fera { border-color: #d0904f; } .t-morto { border-color: #9199aa; } .t-gosma { border-color: #62a067; } .t-demonio { border-color: #bd4d54; } .t-fragil { border-color: var(--warn); }
#tip { position: fixed; z-index: 90; display: none; flex-direction: column; width: 280px; pointer-events: none; border-radius: var(--r); box-shadow: 0 18px 40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 220, 180, .06); }
.links { margin-top: 6px; padding: 8px 11px; background: linear-gradient(180deg, #2a2019, #1e1712); border: 1px solid var(--line); border-radius: var(--r); font-size: .84rem; display: flex; flex-direction: column; gap: 3px; }
.links-t { font-family: var(--f-head); font-weight: 700; color: var(--accent-hi); margin-bottom: 2px; }
.lk.give { color: var(--good); } .lk.recv { color: var(--gold); } .lk.none { color: var(--dim); font-style: italic; }
.detail { margin-top: 12px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.d-right { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 160px; }
.d-shape { --cs: 26px; padding: 6px 2px; } .d-shape .pcell { pointer-events: none; }
.actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; width: 100%; }

/* atributos */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: .9rem; }
.stats div { display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(255, 220, 180, .1); padding: 3px 0; gap: 8px; }
.stats span { color: var(--dim); } .stats b { font-variant-numeric: tabular-nums; }
.sets { list-style: none; padding: 0; margin: 0; font-size: .85rem; display: flex; flex-direction: column; gap: 4px; color: var(--dim); }
.sets li b { color: var(--text); } .sets .warn { color: var(--warn); }

/* ============================================================ batalha */
.stage { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; margin-bottom: 8px; }
.vs { align-self: center; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; font-family: var(--f-title); font-size: 1.7rem; color: #f2d9c0;
  background: radial-gradient(circle at 40% 35%, #a33b33, #4a1512); border: 2px solid #d0894a; box-shadow: 0 0 22px rgba(184, 68, 61, .45), inset 0 2px 4px rgba(255, 200, 170, .25); text-shadow: 0 2px 0 #2a0b08; }
.fighter {
  position: relative; overflow: hidden; padding: 14px 14px 10px; border-radius: var(--r); border: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 55% at 50% 62%, rgba(255, 205, 140, .10), transparent 70%), linear-gradient(180deg, var(--panel-top), #1e1712);
  box-shadow: inset 0 1px 0 rgba(255, 230, 200, .06), var(--shadow);
}
.fighter .pcell { cursor: default; pointer-events: auto; }
.f-name { font-weight: 700; margin-bottom: 8px; font-family: var(--f-head); font-size: 1.2rem; }
.hpbar { position: relative; height: 24px; background: #0e0a08; border-radius: 7px; overflow: hidden; border: 1px solid #000; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 220, 180, .06); }
.hpbar::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(0, 0, 0, .35) calc(10% - 1px) 10%); }
.hp-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #b6d27f, #7d9b47 55%, #5b7533); transition: width .3s ease-out; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.sh-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, rgba(150, 210, 225, .8), rgba(80, 140, 160, .7)); z-index: 1; transition: width .3s; }
.hp-txt { position: absolute; inset: 0; z-index: 3; text-align: center; font-size: .82rem; line-height: 24px; font-weight: 800; text-shadow: 0 1px 2px #000, 0 0 4px #000; font-variant-numeric: tabular-nums; }
.enbar { position: relative; height: 7px; background: #0e0a08; border-radius: 6px; margin: 7px 0 8px; border: 1px solid #000; }
.en-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #a87b2a, var(--gold)); border-radius: 6px; transition: width .25s; box-shadow: 0 0 6px rgba(226, 184, 90, .45); }
.enbar span { position: absolute; right: 2px; top: -15px; font-size: .7rem; }
.fighter .gpart.fire .pcell { animation: fire .35s; }
@keyframes fire { 40% { transform: scale(1.18); filter: brightness(1.6); z-index: 4; } }
.fighter.shake { animation: shake .3s; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.fighter.shake-big { animation: shakebig .42s; }
@keyframes shakebig { 15% { transform: translate(-10px, 3px) rotate(-1deg); } 35% { transform: translate(10px, -3px) rotate(1deg); } 55% { transform: translate(-7px, 2px); } 75% { transform: translate(5px, -1px); } }
.fighter.hitflash::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(196, 80, 63, .45), rgba(196, 80, 63, .15)); pointer-events: none; animation: hitfade .3s forwards; border-radius: var(--r); }
@keyframes hitfade { to { opacity: 0; } }
.fighter.loser .board { filter: grayscale(.85) brightness(.6); transition: filter 1s; }
.floats { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.float { position: absolute; top: 45%; font-weight: 800; font-size: 1.4rem; text-shadow: 0 2px 0 #000, 0 0 8px rgba(0, 0, 0, .8); animation: rise 1.1s ease-out forwards; white-space: nowrap; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.float.dmg { color: #ff8a7a; } .float.crit { color: var(--gold); font-size: 2rem; font-family: var(--f-head); } .float.heal { color: #b9dc86; }
.float.poison { color: #c4dd68; } .float.burn { color: #f39d52; } .float.miss { color: #dcd2bd; font-size: 1.05rem; font-style: italic; } .float.skill { color: #9ccfda; font-size: 1.05rem; }
.float.ko { font-family: var(--f-title); font-weight: 400; font-size: 3.6rem; color: #ff6d5e; letter-spacing: 3px; text-shadow: 0 3px 0 #3d0c08, 0 0 24px rgba(0, 0, 0, .9); animation-duration: 1.6s; top: 30%; left: 50% !important; }
@keyframes rise { 0% { transform: translate(-50%, 6px) scale(.8); opacity: 0; } 15% { transform: translate(-50%, 0) scale(1.1); opacity: 1; } 100% { top: 5%; opacity: 0; transform: translate(-50%, 0) scale(1); } }
.stage.ko { animation: kozoom 1.4s ease-out; }
@keyframes kozoom { 0% { filter: none; } 15% { filter: brightness(1.5) saturate(1.3); transform: scale(1.015); } 100% { filter: none; transform: none; } }
.banner { text-align: center; font-family: var(--f-title); font-weight: 400; font-size: 2.6rem; height: 0; overflow: hidden; opacity: 0; transition: all .35s; letter-spacing: .03em; }
.banner.show { height: 70px; line-height: 70px; opacity: 1; margin: 2px 0; animation: bannerpop .5s ease-out; }
.banner.win { color: var(--gold); text-shadow: 0 2px 0 #4a3510, 0 0 26px rgba(226, 184, 90, .45); }
.banner.lose { color: #e36a5b; text-shadow: 0 2px 0 #3d0c08, 0 0 22px rgba(184, 68, 61, .45); }
@keyframes bannerpop { 0% { transform: scale(.7); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.log { background: rgba(0, 0, 0, .28); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; height: 150px; overflow-y: auto; font-size: .86rem; color: var(--dim); display: flex; flex-direction: column; gap: 3px; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .35); }
.log b { color: var(--text); } .log em { color: var(--gold); font-style: normal; }
.matches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; color: var(--dim); font-size: .88rem; }

/* resumo da luta */
.summary { margin: 8px 0 12px; animation: rise-in .4s ease-out; }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } }
.sum-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sum-name { font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.sum-name small { color: var(--dim); font-weight: 400; font-family: var(--f-body); font-size: .88rem; }
.sum-row { display: grid; grid-template-columns: minmax(120px, 40%) 1fr 44px; gap: 8px; align-items: center; font-size: .88rem; padding: 2px 0; }
.sum-lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sum-bar { height: 10px; background: #0e0a08; border-radius: 6px; overflow: hidden; border: 1px solid #000; }
.sum-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-lo), var(--accent-hi)); border-radius: 6px; animation: grow .7s ease-out; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.sum-row b { text-align: right; font-variant-numeric: tabular-nums; }
.sum-notes { list-style: none; margin: 10px 0 0; padding: 0; font-size: .85rem; color: var(--dim); display: flex; flex-direction: column; gap: 3px; }
.sum-notes b { color: var(--text); }

/* ============================================================ resultados e fim */
.results h2, .over h1 { font-family: var(--f-title); font-weight: 400; font-size: 2.4rem; }
.over h1 { font-size: 3rem; color: var(--gold); text-shadow: 0 3px 0 #4a3510, 0 0 30px rgba(226, 184, 90, .35); }
.rlist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rlist li { background: linear-gradient(180deg, var(--panel-top), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: 11px; }
.rlist .w { color: var(--good); } .lost { color: #e69a90; margin-left: 8px; }
.stand { width: 100%; border-collapse: collapse; background: linear-gradient(180deg, var(--panel-top), var(--panel)); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.stand th, .stand td { padding: 9px 11px; text-align: left; border-bottom: 1px solid var(--line); }
.stand th { color: var(--dim); font-weight: 700; font-size: .85rem; font-family: var(--f-head); letter-spacing: .05em; }
.stand tr:nth-child(2) td:first-child { color: var(--gold); font-weight: 800; }
.stand tr.me td { background: rgba(208, 137, 74, .1); } .stand tr.dead { opacity: .5; }
.report { min-height: 160px; font-size: .82rem; }

/* ============================================================ avisos, catálogo e tutorial */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: linear-gradient(180deg, #3a2c21, #241b15); border: 1px solid var(--line2); padding: 10px 20px; border-radius: 999px; opacity: 0; transition: all .25s; pointer-events: none; z-index: 120; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); font-weight: 600; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.modal { position: fixed; inset: 0; z-index: 80; background: rgba(8, 5, 3, .72); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-box { position: relative; background: linear-gradient(180deg, #221a14, var(--bg)); border: 1px solid var(--line2); border-radius: var(--r); width: min(1180px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0, 0, 0, .7); }
.modal-head { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px dashed var(--stitch); flex-wrap: wrap; }
.modal-head h2 { margin: 0; font-size: 1.5rem; } .cx-tabs { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.modal-body { padding: 14px 16px 18px; overflow-y: auto; }
.cx-filters { padding: 10px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.cx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 999px; padding: 3px 13px; font-size: .85rem; color: var(--dim); transition: all .12s; }
.chip-btn:hover { color: var(--text); border-color: var(--line2); }
.chip-btn.on { background: linear-gradient(180deg, var(--accent-hi), var(--accent)); color: var(--ink); border-color: #f0b77a; font-weight: 800; }
.chip-btn.big { font-size: .95rem; padding: 6px 16px; font-family: var(--f-head); }
.cx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 10px; }
.cx-item { display: flex; flex-direction: column; gap: 6px; } .cx-item .pcard { flex: 1; }
.cx-shape { display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 5px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: var(--r); }
.modal .pcell { pointer-events: none; cursor: default; }
.cx-shape .pic { display: block; font-size: 11px; } .cx-mini-shape .pic, .cx-shape .stars { display: none; }
.cx-note { background: rgba(0, 0, 0, .22); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin-bottom: 10px; font-size: .92rem; color: var(--dim); }
.cx-note b { color: var(--text); }
.cx-recipes { display: flex; flex-direction: column; gap: 12px; }
.cx-recipe { display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr) auto minmax(240px, 1.3fr); gap: 10px; align-items: center; padding: 10px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); border-radius: var(--r); }
.cx-op { font-size: 1.9rem; color: var(--accent-hi); font-family: var(--f-title); text-align: center; }
.cx-mini { display: flex; align-items: center; gap: 8px; background: linear-gradient(180deg, #2a2019, #1e1712); border: 1px solid var(--line); border-left: 3px solid var(--t1); border-radius: var(--r); padding: 8px; }
.cx-mini.tier2 { border-left-color: var(--t2); } .cx-mini.tier3 { border-left-color: var(--t3); }
.cx-mini-ic { font-size: 1.7rem; } .cx-mini b { display: block; font-size: .92rem; } .cx-mini small { color: var(--dim); font-size: .76rem; }
.cx-mini-shape { margin-left: auto; } .cx-out .pcard { border-top-color: var(--t4); }

.tut { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(570px, calc(100vw - 24px)); z-index: 110; display: none;
  background: linear-gradient(180deg, #3a2b1f, #261c15); border: 2px solid var(--accent); border-radius: var(--r); padding: 13px 15px; box-shadow: 0 16px 40px rgba(0, 0, 0, .7), 0 0 0 4px rgba(208, 137, 74, .12); }
.tut-top { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--accent-hi); font-family: var(--f-head); letter-spacing: .06em; margin-bottom: 6px; }
.tut-x { background: none; border: none; color: var(--dim); font-size: 1rem; padding: 0 4px; } .tut-x:hover { color: var(--text); }
.tut-text { font-size: 1rem; line-height: 1.45; } .tut-text b { color: var(--accent-hi); }
.tut-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
.tut-hl { outline: 3px solid var(--accent) !important; outline-offset: 3px; animation: tutpulse 1.2s ease-in-out infinite; position: relative; z-index: 4; }
@keyframes tutpulse { 50% { outline-color: #ffd08a; } }

/* ============================================================ telas menores */
@media (max-width: 960px) {
  .shop, .two { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 1fr; } .vs { display: none; }
  .detail { grid-template-columns: 1fr; } .room-code b { font-size: 2rem; }
  .sum-cols { grid-template-columns: 1fr; }
  .cx-recipe { grid-template-columns: 1fr; }
  :root { --cs: 46px; } #app { padding: 10px 12px 40px; }
}
@media (max-width: 600px) {
  :root { --cs: 30px; } .board.mini { --cs: 24px; }
  .logo-title { font-size: 3.4rem; } .hero .board { --cs: 24px; }
  .top { gap: 8px; } .tut { bottom: 8px; }
  .bench { gap: 4px; padding: 6px; } .bslot { min-height: 0; } .bslot .ic { font-size: 1.25rem; } .bslot .bn { display: none; }
  .offers { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); }
  .panel { padding: 11px; } .stage { gap: 8px; } .sum-row { grid-template-columns: minmax(90px, 40%) 1fr 36px; }
  .surgeons { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ajustes finos */
.home label input { font-family: var(--f-body); letter-spacing: 0; font-size: 1rem; }
.home-row [data-act=mute] { flex: 0 0 54px; }
.vs { font-family: var(--f-head); font-weight: 800; font-size: 1.35rem; }
.fighter .board.mini { --cs: 42px; }
.cx-op { font-family: var(--f-head); font-weight: 800; font-size: 1.6rem; }
@media (max-width: 960px) { .fighter .board.mini { --cs: 34px; } }
@media (max-width: 600px) { .fighter .board.mini { --cs: 26px; } }

/* desenhos das pecas */
.art { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -.28em; line-height: 0; }
.art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pic .art { width: 1.55em; height: 1.55em; vertical-align: middle; }
.pic { filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .45)); }
.epart .pic .art { width: 1.25em; height: 1.25em; }
.o-ic .art, .pc-icon .art, .cx-mini-ic .art { width: 1.2em; height: 1.2em; vertical-align: middle; }
.bslot .ic .art { width: 1.45em; height: 1.45em; vertical-align: middle; }
.sum-lab .art, .sets .art, .recipe .art, .btn .art, .s-start .art { width: 1.3em; height: 1.3em; }
.hero .board { --cs: 22px; }
.hero { margin-bottom: -2px; }
@media (max-width: 600px) { .hero .board { --cs: 17px; } }

/* costura no tabuleiro e botao de continuar */
.fuse-btn.craft { border-color: #e3a49b; background: radial-gradient(circle at 40% 35%, #6b2e3a, #351319); box-shadow: 0 0 10px rgba(227, 164, 155, .6); }
.sum-continue { display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 4px 0 12px; }
.sum-continue small { opacity: .75; font-weight: 700; margin-left: 4px; }
.results .summary { text-align: left; margin-top: 16px; }

/* desenho proporcional ao tamanho da peca */
.pic.big { position: absolute; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 3; font-size: inherit; }
.pic.big .art { width: 100%; height: 100%; }
.pcell.anc { z-index: 2; }
.pic.lg .art { width: 1.95em; height: 1.95em; }

/* camadas: expansoes sempre abaixo das pecas */
.epart { z-index: 0; }
.gpart { z-index: 1; }
.o-shape .pic.big, .cx-mini-shape .pic.big { display: none; }

/* economia */
.bank-badge { position: absolute; z-index: 4; font-size: .72rem; font-weight: 800; color: var(--gold); background: rgba(20, 12, 6, .85); border: 1px solid #8a6a2a; border-radius: 999px; padding: 0 6px; pointer-events: none; white-space: nowrap; }
.bank-b { position: absolute; left: 3px; bottom: 2px; font-size: .62rem; font-weight: 800; color: var(--gold); }
.bank-note { font-size: .86rem; color: var(--gold); background: rgba(0, 0, 0, .25); border: 1px dashed #8a6a2a; border-radius: 8px; padding: 6px 8px; }
.float.revive { color: #f5e08a; font-size: 1.5rem; font-family: var(--f-head); }

/* conjuntos */
.setlist { display: flex; flex-direction: column; gap: 6px; }
.setrow { padding: 6px 8px; border-radius: 8px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); border-left: 3px solid var(--line2); }
.setrow.zero { opacity: .55; }
.setrow.t-inseto { border-left-color: #a0ac4c; } .setrow.t-fera { border-left-color: #d0904f; } .setrow.t-morto { border-left-color: #9199aa; } .setrow.t-gosma { border-left-color: #62a067; } .setrow.t-demonio { border-left-color: #bd4d54; }
.st-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-name { font-weight: 700; font-family: var(--f-head); min-width: 90px; }
.pips { display: inline-flex; gap: 3px; } .pips i { width: 12px; height: 12px; border-radius: 3px; background: #120d0a; border: 1px solid var(--line2); }
.pips i.mark { border-color: var(--gold); } .pips i.on { background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo)); }
.st-need { color: var(--dim); font-size: .78rem; margin-left: auto; }
.st-tiers { display: flex; flex-direction: column; gap: 1px; margin-top: 3px; }
.st-tier { font-size: .8rem; color: var(--faint); } .st-tier.act { color: var(--good); font-weight: 600; }
.tag-hint { width: 100%; font-size: .76rem; color: var(--dim); margin-top: 2px; line-height: 1.3; }
.cx-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; margin-bottom: 10px; }
.cx-set { padding: 10px 12px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); border-top: 3px solid var(--line2); border-radius: var(--r); }
.cx-set.t-inseto { border-top-color: #a0ac4c; } .cx-set.t-fera { border-top-color: #d0904f; } .cx-set.t-morto { border-top-color: #9199aa; } .cx-set.t-gosma { border-top-color: #62a067; } .cx-set.t-demonio { border-top-color: #bd4d54; }
.cx-set h3 { margin-bottom: 6px; } .cx-set .st-tier { font-size: .88rem; }
.cx-set-parts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.cx-sp { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; padding: 2px 8px 2px 4px; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.cx-sp.tier2 { border-color: var(--t2); } .cx-sp.tier3 { border-color: var(--t3); } .cx-sp.tier4 { border-color: var(--t4); }
.cx-sp .art { width: 1.5em; height: 1.5em; }
