/* ============ Batalha por turnos, Expedição e opções da carta ============ */

/* ---------- seletor Duelo / Expedição / Caçada ---------- */
.mode-tabs { display: flex; gap: 4px; background: var(--panel2); border-radius: 999px; padding: 4px; margin-bottom: 12px; }
.mode-tabs button { flex: 1; min-width: 0; border-radius: 999px; padding: 9px 6px; font-weight: 800; font-size: 13px; color: var(--muted); background: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mode-tabs button.on { background: var(--panel); color: var(--teal); box-shadow: var(--shadow-sm); }
@media (max-width: 400px) { .mode-tabs button { font-size: 12px; padding: 9px 3px; } }

/* ---------- expedição ---------- */
.energy-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-soft); color: var(--teal); font-weight: 800; padding: 7px 12px; border-radius: 999px; font-size: 13px; }
.farm-team { display: flex; gap: 8px; }
.farm-team .ft { flex: 1; min-width: 0; }
.farm-team .ft .tcard { width: 100%; font-size: 9px; }
.farm-team .ft .mini { width: 100%; margin: 6px 0 0; text-align: center; }
.stats-mini { display: flex; flex-wrap: wrap; gap: 2px 4px; justify-content: center; margin-top: 5px; font-size: 9px; font-weight: 800; color: var(--muted); }
.stats-mini span { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 4px; white-space: nowrap; }
.stats-mini.full { justify-content: flex-start; font-size: 11px; }
.stats-mini.full span { display: inline-flex; gap: 3px; align-items: baseline; }
.farm-team .ft .abs { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; margin-top: 5px; }
.farm-team .ft .abs span { font-size: 12px; line-height: 1; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 4px; }
.farm-team .ft .abs span.sig { background: linear-gradient(135deg, var(--gold2), var(--gold)); border-color: var(--gold); }
.stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stage-node { background: var(--panel2); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 6px; text-align: center; position: relative; }
.stage-node.on { border-color: var(--teal); box-shadow: var(--glow-teal); background: #fff; }
.stage-node.done { background: #eefbf2; border-color: #b7e9c9; }
.stage-node.lock { opacity: .5; }
.stage-node .n { font-size: 15px; font-weight: 900; }
.stage-node .p { font-size: 10px; color: var(--muted); }
.stage-node .st { font-size: 11px; height: 14px; }
.chapter-h { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin: 14px 0 6px; }

/* ---------- caçada + runas ---------- */
.hunt-en { font-size: 15px; font-weight: 900; color: var(--teal); white-space: nowrap; }
.hunt-en small { font-size: 12px; color: var(--muted); font-weight: 800; }
.hunt-pips { display: flex; gap: 3px; margin: 8px 0 2px; }
.hunt-pips i { flex: 1; height: 10px; border-radius: 4px; background: #ece8f8; }
.hunt-pips i.on { background: linear-gradient(180deg, var(--teal2), var(--teal)); box-shadow: 0 2px 6px rgba(124, 58, 237, .25); }
.bar.hunt-bar { height: 10px; overflow: hidden; margin: 8px 0 2px; }
.hunt-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-bottom: 14px; }
.hunt-cards span { min-width: 0; text-align: center; background: var(--panel2); border: 1px solid var(--line); border-top: 3px solid var(--rc, #9aa5b8); border-radius: 10px; padding: 5px 2px 4px; }
.hunt-cards i { display: block; font-style: normal; font-size: 17px; line-height: 1.15; }
.hunt-cards b { display: block; font-size: 9px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.hunt-cards small { display: block; font-size: 9px; font-weight: 800; color: var(--teal); white-space: nowrap; }
.btn.hunt-ad { margin-bottom: 0; }

.hz-list { display: flex; flex-direction: column; gap: 8px; }
.hz { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--panel2); border: 1.5px solid var(--line); border-radius: 14px; padding: 9px 10px; }
.hz.on { border-color: var(--teal); background: var(--blue-soft); box-shadow: var(--glow-teal); }
.hz.lock { opacity: .55; }
.hz:active { transform: scale(.99); }
.hz-ico { font-size: 26px; width: 34px; text-align: center; flex-shrink: 0; }
.hz-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hz-mid b { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hz-mid small { font-size: 11px; color: var(--muted); font-weight: 700; }
.hz-odds { display: flex; flex-wrap: wrap; gap: 3px 6px; margin-top: 3px; }
.hz-odds i { font-style: normal; font-size: 10px; font-weight: 800; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.hz-odds i::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--rc, #9aa5b8); }
.hz-side { flex-shrink: 0; text-align: right; min-width: 46px; }
.hz-side b { display: block; font-size: 15px; font-weight: 900; color: var(--teal); }
.hz-side small { display: block; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 800; white-space: nowrap; }
.hz.lock .hz-side b { color: var(--muted); }

.hd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.hd-grid button { background: #fff; border: 1.5px solid #ddd6f0; border-radius: 12px; padding: 8px 4px; text-align: center; color: var(--text); min-width: 0; }
.hd-grid button b { display: block; font-size: 13px; font-weight: 800; white-space: nowrap; }
.hd-grid button small { display: block; font-size: 9.5px; color: var(--muted); font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-grid button.on { border-color: var(--teal); background: var(--blue-soft); }
.hd-grid button.on b { color: var(--teal); }
.hd-grid button.poor small { color: var(--red); }

.hunt-active .ha-head { display: flex; align-items: center; gap: 12px; }
.hunt-active .ha-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--blue-soft); display: grid; place-items: center; font-size: 30px; flex-shrink: 0; }
.hunt-active .ha-t { flex: 1; min-width: 0; }
.hunt-active .ha-t b { display: block; font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hunt-active .ha-t small { font-size: 12px; color: var(--muted); font-weight: 700; }
.hunt-active .ha-clock { text-align: center; margin: 14px 0 0; }
.hunt-active .ha-clock b { display: block; font-size: 32px; font-weight: 900; letter-spacing: .04em; line-height: 1.1; color: var(--navy); }
.hunt-active .ha-clock small { font-size: 11px; color: var(--muted); font-weight: 700; }
.bar.ha-bar { height: 10px; overflow: hidden; margin: 10px 0 14px; }
.bar.ha-bar > i { transition: width .9s linear; }
.hunt-active.done { border-color: #f7d58a; background: linear-gradient(135deg, #fff8e6, #fff); }
.hunt-active.done .bar.ha-bar > i { background: linear-gradient(90deg, var(--gold), var(--gold2)); }

.rune-total { font-size: 15px; font-weight: 900; color: var(--green); white-space: nowrap; }
.rune-total small { font-size: 11px; color: var(--muted); font-weight: 800; }
.rune-total.cap { color: var(--gold); }
.rune-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
/* color-mix fica por cima de um fallback simples (WebView antigo do Telegram ignora a linha) */
.rune { min-width: 0; border-radius: 12px; padding: 7px 2px 6px; text-align: center; background: #fff; border: 1.5px solid var(--rc); }
.rune:not(.empty) { background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 16%, #fff), #fff); border-color: color-mix(in srgb, var(--rc) 55%, #fff); }
.rune .ri { display: block; font-size: 18px; line-height: 1.1; }
.rune b { display: block; font-size: 13px; font-weight: 900; margin-top: 2px; }
.rune small { display: block; font-size: 9.5px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.rune.empty { background: #fff; border: 2px dashed #ddd6f0; display: grid; place-items: center; min-height: 64px; }
.rune.empty span { color: #cfc6ea; font-size: 20px; font-weight: 300; }
.hunt-fund .gold { white-space: nowrap; font-size: 14px; }
.hunt-warn { background: #fff4dc; border: 1px solid #f7d58a; color: #8a5a00; border-radius: 12px; padding: 8px 10px; font-size: 12px; font-weight: 700; line-height: 1.4; }

/* resumo da coleta (tela cheia) */
.hs {
  position: fixed; inset: 0; z-index: 70; display: flex; overflow-y: auto; overscroll-behavior: contain; color: #fff;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  background: radial-gradient(1100px 620px at 50% -12%, #43299a 0%, #23155a 42%, #140c31 78%, #0d0722 100%);
  animation: fade .2s;
}
.hs-box { margin: auto; width: 100%; max-width: 420px; text-align: center; }
.hs-zone { font-size: 12px; font-weight: 800; color: #cdc3f5; letter-spacing: .04em; }
.hs h2 { margin: 4px 0 8px; font-size: 22px; }
.hs-score { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 12px; }
.hs-score b { font-size: 44px; font-weight: 900; line-height: 1; color: #86efac; font-variant-numeric: tabular-nums; }
.hs-score span { font-size: 20px; font-weight: 800; color: #cdc3f5; }
.hs-score small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #9c8fd8; }
.hs-log { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; max-height: 34vh; overflow-y: auto; padding: 8px; background: rgba(10, 5, 30, .42); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; scrollbar-width: thin; }
.hs-e { position: relative; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; border: 1.5px solid; }
.hs-e i { font-style: normal; line-height: 1; }
.hs-e.w { background: rgba(34, 197, 94, .2); border-color: rgba(134, 239, 172, .7); }
.hs-e.l { background: rgba(229, 72, 77, .16); border-color: rgba(248, 113, 113, .5); }
.hs-e.l i { filter: grayscale(.7); opacity: .7; }
.hs-e em { position: absolute; right: -5px; top: -6px; font-style: normal; font-size: 11px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7)); }
.hs-more { font-size: 11px; color: #9c8fd8; margin-top: 6px; }
.hs-sec { margin-top: 14px; }
.hs-sec .label { color: #9c8fd8; margin-bottom: 6px; }
.hs-none { font-size: 12px; color: #a89bdd; }
.hs-skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hs-skills span { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-skills span b { color: #ffd166; }
.hs-runes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hs-rune { width: 76px; border-radius: 14px; padding: 8px 4px; background: rgba(255, 255, 255, .08); border: 1.5px solid var(--rc); box-shadow: 0 0 14px rgba(255, 255, 255, .12); }
.hs-rune { background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 35%, transparent), rgba(255, 255, 255, .04)); box-shadow: 0 0 16px color-mix(in srgb, var(--rc) 45%, transparent); }
.hs-rune i { display: block; font-style: normal; font-size: 22px; line-height: 1.1; }
.hs-rune b { display: block; font-size: 15px; font-weight: 900; margin-top: 2px; }
.hs-rune small { display: block; font-size: 9.5px; font-weight: 800; color: #e8e2ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-note { font-size: 11px; color: #a89bdd; margin-top: 8px; }
.hs .btn { margin-top: 18px; }
/* entrada animada: cada item aparece quando ganha .in */
.hs.anim .hs-e, .hs.anim .hs-rune { opacity: 0; transform: scale(.4); transition: opacity .18s ease, transform .3s cubic-bezier(.3, 1.5, .5, 1); }
.hs.anim .hs-sec { opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease; }
.hs.anim .hs-e.in, .hs.anim .hs-rune.in, .hs.anim .hs-sec.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hs { animation: none; }
  .hs.anim .hs-e, .hs.anim .hs-rune, .hs.anim .hs-sec, .bar.ha-bar > i { transition: none; }
}

/* ---------- escolha de habilidades ---------- */
.ab-list { display: flex; flex-direction: column; gap: 8px; max-height: 56vh; overflow: auto; }
.ab-item { display: flex; gap: 10px; align-items: center; background: var(--panel2); border: 1.5px solid var(--line); border-radius: 14px; padding: 9px 11px; text-align: left; width: 100%; }
.ab-item.on { border-color: var(--teal); background: var(--blue-soft); }
.ab-item.sig { border-color: var(--gold); background: linear-gradient(120deg, #fff8e6, #fff); }
.ab-item .ico { font-size: 22px; width: 30px; text-align: center; flex-shrink: 0; }
.ab-item .mid { flex: 1; min-width: 0; }
.ab-item .nm { font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ab-item .nm .tag { font-size: 9px; font-weight: 900; letter-spacing: .06em; background: var(--gold); color: #3a2a00; padding: 2px 6px; border-radius: 999px; }
.ab-item .ds { font-size: 11px; color: var(--muted); }
.ab-item .cost { font-weight: 900; color: var(--teal); font-size: 13px; white-space: nowrap; }

/* =================== TELA DE BATALHA =================== */
.bt {
  position: fixed; inset: 0; z-index: 70; color: #fff; display: flex; justify-content: center;
  background:
    radial-gradient(1100px 620px at 50% -12%, #43299a 0%, #23155a 42%, #140c31 78%, #0d0722 100%);
  font-variant-numeric: tabular-nums;
}
.bt::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 26% at 50% 58%, rgba(167, 139, 250, .28), transparent 72%),
    radial-gradient(90% 60% at 50% 120%, rgba(0, 0, 0, .55), transparent 60%);
}
.bt-wrap {
  position: relative; z-index: 1; width: 100%; max-width: 540px; height: 100%; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) 14px calc(12px + env(safe-area-inset-bottom));
}

/* cabeçalho */
.bt-top { display: flex; align-items: center; gap: 8px; }
.bt-top .who { flex: 1; min-width: 0; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e8e2ff; }
.bt-top .rnd { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #cdc3f5; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.bt-top .quit { font-size: 11px; font-weight: 800; color: #e8e2ff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.bt-top .quit[data-armed] { background: var(--red); border-color: transparent; color: #fff; }

/* arena */
.bt-arena { flex: 0 0 auto; min-height: 0; display: flex; flex-direction: column; gap: 2px; padding: 2px 0; }
.bt-side { display: flex; justify-content: center; gap: 10px; }
.bt-vs { display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.bt-vs::before, .bt-vs::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent); }
.bt-vs span { font-size: 10px; font-weight: 900; letter-spacing: .24em; color: #9c8fd8; }

/* largura limitada TAMBÉM pela altura da tela: em janela baixa as cartas encolhem em vez de empurrar a barra para fora */
.bt-u { position: relative; width: min(33.33%, 148px, 13vh); text-align: center; transition: transform .14s ease; }
.bt-u.pick .u-card { border-color: var(--gold2); box-shadow: 0 0 0 2px rgba(251, 191, 36, .4), 0 10px 22px rgba(0, 0, 0, .45); }
.bt-u.act { transform: translateY(-7px); }
.bt-u.act .u-card { border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35), 0 14px 26px rgba(0, 0, 0, .5); }
.bt-u.ko { opacity: .34; filter: grayscale(1); pointer-events: none; }
.bt-u.hit .u-card { animation: btHit .34s; }
@keyframes btHit { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.u-card { position: relative; border-radius: 14px; overflow: hidden; border: 1.5px solid rgba(255, 255, 255, .16); background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); box-shadow: 0 8px 18px rgba(6, 2, 22, .45); }
.u-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 5, 30, .75)); pointer-events: none; }
.u-art { aspect-ratio: 3 / 4; display: grid; place-items: center; font-size: 26px; background: rgba(0, 0, 0, .3); }
.u-art img { width: 100%; height: 100%; object-fit: cover; }
.bt-u.r-rare .u-card { border-color: rgba(79, 156, 255, .5); }
.bt-u.r-epic .u-card { border-color: rgba(181, 108, 255, .5); }
.bt-u.r-mythic .u-card { border-color: rgba(255, 95, 162, .5); }
.bt-u.r-legendary .u-card { border-color: rgba(255, 179, 71, .6); }

.u-badges { position: absolute; top: 5px; left: 5px; right: 5px; display: flex; justify-content: space-between; z-index: 2; pointer-events: none; }
.u-badges .sh { background: linear-gradient(180deg, #67d3ff, #2aa9e0); color: #04263a; font-size: 9px; font-weight: 900; padding: 2px 6px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.u-badges .ls { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #3a2a00; font-size: 9px; font-weight: 900; padding: 2px 6px; border-radius: 999px; margin-left: auto; }
.u-fx { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; gap: 3px; justify-content: center; z-index: 2; }
.u-fx span { font-size: 11px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7)); }

.u-name { font-size: 10px; font-weight: 800; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #efeaff; }
.u-hp { position: relative; height: 14px; border-radius: 999px; background: rgba(4, 2, 16, .55); border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; margin-top: 4px; }
.u-hp i { position: absolute; inset: 0 auto 0 0; display: block; height: 100%; background: linear-gradient(90deg, #16a34a, #4ade80); transition: width .32s ease; }
.bt-u.foe .u-hp i { background: linear-gradient(90deg, #dc2626, #f87171); }
.u-hp .hpv { position: relative; display: block; font-size: 9px; font-weight: 800; line-height: 14px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.u-stats { display: flex; gap: 4px; justify-content: center; font-size: 9px; font-weight: 800; color: #b2a6e8; margin-top: 3px; min-height: 11px; }

.bt-u .dmg { position: absolute; left: 50%; top: 26%; transform: translateX(-50%); font-weight: 900; font-size: 19px; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .75); animation: btDmg .9s forwards; pointer-events: none; z-index: 3; }
.bt-u .dmg.crit { color: #ffd166; font-size: 24px; }
.bt-u .dmg.heal { color: #86efac; }
.bt-u .dmg.shield { color: #7dd3fc; }
.bt-u .dmg.dodge { color: #cdc3f5; font-size: 13px; letter-spacing: .08em; }
@keyframes btDmg { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.7); } 22% { opacity: 1; transform: translate(-50%, -6px) scale(1.12); } 100% { opacity: 0; transform: translate(-50%, -30px) scale(1); } }

/* registro de combate */
.bt-log { flex: 1 1 0; min-height: 54px; display: flex; flex-direction: column; background: rgba(10, 5, 30, .42); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; overflow: hidden; backdrop-filter: blur(3px); }
.bt-log .lg-head { font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #8d80c8; padding: 7px 12px 4px; }
.bt-log .lg { flex: 1; overflow: auto; padding: 0 12px 8px; font-size: 11.5px; line-height: 1.5; color: #d6cffb; scrollbar-width: thin; }
.bt-log .lg div { padding: 1px 0; }
.bt-log .lg .sigline { color: #ffd166; font-weight: 800; }
.bt-log .lg .rline { color: #8d80c8; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin: 3px 0; }

/* fila e mão */
.bt-queue { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-height: 26px; }
.bt-queue .lbl { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8d80c8; }
.bt-queue .q { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 700; color: #fff; }
.bt-queue .q:active { transform: scale(.96); }

.bt-hand { display: flex; gap: 8px; justify-content: center; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; }
.bt-hand::-webkit-scrollbar { display: none; }
.abc { flex: 0 0 auto; width: 88px; border-radius: 14px; padding: 9px 7px 8px; text-align: center; color: #fff; position: relative; transition: transform .14s ease, box-shadow .14s ease; border: 1.5px solid rgba(255, 255, 255, .18); background: linear-gradient(170deg, #4a3597 0%, #2b1f63 60%, #241a52 100%); box-shadow: 0 6px 14px rgba(6, 2, 22, .45); }
.abc.sig { border-color: var(--gold2); background: linear-gradient(170deg, #7a5516 0%, #40307a 65%, #2a1d45 100%); box-shadow: 0 6px 16px rgba(120, 80, 10, .4); }
.abc.sel { transform: translateY(-10px); border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .3), 0 12px 22px rgba(0, 0, 0, .5); }
.abc.off { opacity: .42; }
.abc .i { font-size: 22px; line-height: 1; }
.abc .n { font-size: 9.5px; font-weight: 800; line-height: 1.2; height: 23px; margin-top: 5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.abc .v { font-size: 9px; font-weight: 700; color: #cdc3f5; margin-top: 3px; }
.abc .c { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #3a2a00; font-size: 11px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 2px 7px rgba(0, 0, 0, .45); }

.bt-hint { text-align: center; font-size: 11px; color: #a89bdd; min-height: 15px; }

/* barra de ações */
.bt-bar { display: flex; gap: 8px; align-items: stretch; }
.bt-bar .en { display: flex; align-items: center; gap: 4px; padding: 0 14px; border-radius: 14px; font-weight: 900; font-size: 16px; color: #3a2a00; background: linear-gradient(180deg, var(--gold2), var(--gold)); box-shadow: 0 6px 14px rgba(120, 80, 10, .35); white-space: nowrap; }
.bt-bar .en small { font-size: 11px; opacity: .75; }
.bt-bar .btn { margin: 0; flex: 1; padding: 14px 10px; font-size: 14px; font-weight: 800; border-radius: 14px; background: linear-gradient(180deg, #8b5cf6, #6d28d9); color: #fff; box-shadow: 0 8px 18px rgba(80, 30, 180, .45); }
.bt-bar .btn.ghost { flex: 0 0 34%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); box-shadow: none; }
.bt-bar .btn:disabled { opacity: .55; }

/* resultado */
.bt-end { position: absolute; inset: 0; background: rgba(9, 4, 26, .82); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; z-index: 5; }
.bt-end .box { background: var(--panel); color: var(--text); border-radius: 24px; padding: 24px 20px; width: 100%; max-width: 330px; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); animation: up .25s ease; }
.bt-end h2 { margin: 0 0 4px; font-size: 23px; }
.bt-end .rw { display: flex; flex-direction: column; gap: 5px; margin: 14px 0 18px; font-size: 14px; font-weight: 700; }
.bt-end .rw .coin { width: auto; height: auto; border-radius: 0; background: none; display: block; color: var(--green); font-size: 17px; font-weight: 800; } /* .coin do style.css é o ícone da moeda: aqui é o valor ganho */

@media (min-width: 820px) {
  .bt-wrap { max-width: 600px; }
}
@media (max-height: 680px) {
  .u-name { display: none; }
  .bt-log { min-height: 40px; }
  .abc { width: 78px; }
}

/* =================== CONVITE COM IMAGEM =================== */
.share-card { border-radius: 16px; overflow: hidden; aspect-ratio: 1200 / 630; background: #1d1247; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.share-card img { width: 100%; height: 100%; object-fit: cover; }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-row .btn { margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; }
.btn.share-tg { background: linear-gradient(180deg, #37aee2, #1e96c8); box-shadow: 0 8px 18px rgba(30, 150, 200, .28); }
.btn.share-wa { background: linear-gradient(180deg, #2fd46c, #1ebe57); box-shadow: 0 8px 18px rgba(30, 190, 87, .28); }

/* =================== DUELO PvP ONLINE COM APOSTA =================== */
.duel-live { font-size: 10px; font-weight: 900; letter-spacing: .04em; color: #15803d; background: #dcfce7; border: 1px solid #bbf7d0; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.stake-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.stake-chips button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); color: var(--text); transition: transform .12s ease, border-color .12s ease; }
.stake-chips button b { font-size: 14px; }
.stake-chips button small { font-size: 10px; color: var(--muted); font-weight: 700; }
.stake-chips button small.live { color: #16a34a; }
.stake-chips button.on { border-color: var(--gold); background: linear-gradient(180deg, #fff8e1, #fff); box-shadow: 0 0 0 3px rgba(245, 179, 1, .18), var(--shadow-sm); }
.stake-chips button:active { transform: scale(.97); }

/* busca */
.duel-search { position: fixed; inset: 0; z-index: 72; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 600px at 50% 0%, #43299a 0%, #23155a 50%, #0d0722 100%); color: #fff; }
.ds-box { width: 100%; max-width: 340px; text-align: center; }
.ds-box h3 { margin: 18px 0 6px; font-size: 21px; }
.ds-box .sub { color: #c9bff2; font-size: 12.5px; line-height: 1.45; }
.ds-box .btn.light { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.ds-stake { font-size: 14px; color: #efeaff; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.ds-stake b { color: #ffd166; }
.ds-radar { position: relative; width: 150px; height: 150px; margin: 0 auto; display: grid; place-items: center; }
.ds-radar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(167, 139, 250, .55); animation: dsPulse 2.4s ease-out infinite; }
.ds-radar i:nth-child(2) { animation-delay: .8s; }
.ds-radar i:nth-child(3) { animation-delay: 1.6s; }
.ds-radar span { position: relative; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; background: linear-gradient(180deg, #8b5cf6, #6d28d9); box-shadow: 0 0 0 6px rgba(139, 92, 246, .25), 0 12px 30px rgba(80, 30, 180, .55); animation: dsBob 1.6s ease-in-out infinite; }
@keyframes dsPulse { 0% { transform: scale(.45); opacity: .9; } 100% { transform: scale(1.15); opacity: 0; } }
@keyframes dsBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* replay */
.duel-rp .bt-arena { gap: 4px; }
.drp-team { display: flex; flex-direction: column; gap: 6px; }
.drp-team.me { flex-direction: column-reverse; }
.drp-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #e8e2ff; padding: 0 2px; }
.drp-head span { font-weight: 900; color: #ffd166; }
.drp-hp { position: relative; height: 18px; border-radius: 999px; background: rgba(4, 2, 16, .55); border: 1px solid rgba(255, 255, 255, .12); overflow: hidden; }
.drp-hp i { position: absolute; inset: 0 auto 0 0; display: block; height: 100%; background: linear-gradient(90deg, #16a34a, #4ade80); transition: width .3s ease; }
.drp-team.opp .drp-hp i { background: linear-gradient(90deg, #dc2626, #f87171); }
.drp-hp .hpv { position: relative; display: block; text-align: center; font-size: 10px; font-weight: 800; line-height: 18px; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.duel-rp .bt-u .u-stats { color: #ffd166; font-size: 10px; }
.duel-rp .bt-log .lg .me { color: #86efac; }
.duel-rp .bt-log .lg .op { color: #fca5a5; }
.bt-end .rw .red { color: var(--red); font-size: 17px; }
