/* ============ TON Cards — tema "Aurora" (claro: lavanda, violeta + dourado) ============ */
:root {
  --bg: #f7f5ff;
  --bg2: #ece7fb;
  --panel: #ffffff;
  --panel2: #f4f1fc;
  --line: #e7e2f5;
  --text: #1c1633;
  --muted: #7a7396;
  --teal: #7c3aed;
  --teal2: #a855f7;
  --gold: #f59e0b;
  --gold2: #fbbf24;
  --green: #16a34a;
  --red: #e5484d;
  --purple: #7c3aed;
  --blue: #6d5df5;
  --blue-soft: #efe9ff;
  --navy: #2a1f57;
  --card: var(--panel);
  --shadow: 0 12px 30px rgba(76, 44, 140, .10);
  --shadow-sm: 0 4px 14px rgba(76, 44, 140, .08);
  --glow-teal: 0 0 18px rgba(124, 58, 237, .25);
  --radius: 20px;
  --r-common: #9aa5b8;
  --r-rare: #4f9cff;
  --r-epic: #b56cff;
  --r-mythic: #ff5fa2;
  --r-legendary: #ffb347;
  --nav-h: 82px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); min-height: 100%; }
body {
  font-family: 'Exo 2', 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(168, 85, 247, .16), transparent 60%),
    radial-gradient(700px 400px at 110% 10%, rgba(251, 191, 36, .14), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(109, 93, 245, .12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  background-attachment: scroll;
}
button { font-family: inherit; cursor: pointer; border: 0; color: inherit; }
input, select { font-family: inherit; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }

#app { max-width: 520px; margin: 0 auto; padding: 0 14px calc(var(--nav-h) + 24px); }

/* ---------- Header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px 10px; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { width: 42px; height: 42px; flex-shrink: 0; filter: drop-shadow(0 4px 10px rgba(124, 58, 237, .35)); display: grid; place-items: center; font-size: 22px; }
.logo img { width: 42px; height: 42px; }
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; background: linear-gradient(90deg, #3b1d8f, var(--teal2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font-size: 9px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.top-right { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.chip { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.chip .cur { color: var(--gold); font-size: 11px; }
.coin { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1b1300; display: inline-grid; place-items: center; font-size: 9px; font-weight: 900; }
.avatar-chip { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--teal); display: grid; place-items: center; font-weight: 800; font-size: 12px; background: #fff; color: var(--teal); box-shadow: var(--shadow-sm); cursor: pointer; }

/* ---------- Generic ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.h1 { font-size: 26px; font-weight: 800; margin: 4px 0 2px; }
.h2 { font-size: 15px; font-weight: 800; margin: 0 0 10px; }
.sub { color: var(--muted); font-size: 13px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted { color: var(--muted); } .gold { color: var(--gold); } .green { color: var(--green); } .blue { color: var(--teal); } .red { color: var(--red); }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.hr { height: 1px; background: var(--line); margin: 14px 0; }

.btn { width: 100%; border-radius: 14px; padding: 15px; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, var(--teal), var(--teal2)); box-shadow: 0 10px 24px rgba(124, 58, 237, .28); transition: transform .08s, opacity .15s, filter .15s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; box-shadow: none; }
.btn.gold { background: linear-gradient(90deg, var(--gold), var(--gold2)); color: #2a1a00; box-shadow: 0 10px 24px rgba(245, 158, 11, .28); }
.btn.green { background: linear-gradient(90deg, #2fd98d, #17b58a); color: #05140e; text-transform: none; letter-spacing: 0; font-size: 15px; }
.btn.purple { background: linear-gradient(90deg, var(--purple), #6a4bff); color: #fff; text-transform: none; letter-spacing: 0; font-size: 15px; box-shadow: 0 10px 24px rgba(155, 107, 255, .3); }
.btn.red { background: linear-gradient(90deg, var(--red), #ff2e5f); color: #fff; }
.btn.light { background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn.sm { padding: 10px 16px; font-size: 12px; width: auto; }
.btn.ghost { background: var(--blue-soft); color: var(--teal); border: 1.5px solid rgba(124, 58, 237, .25); box-shadow: none; }

.pill { background: linear-gradient(90deg, var(--gold), var(--gold2)); color: #2a1a00; border-radius: 999px; padding: 12px 24px; font-weight: 900; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 10px 24px rgba(245, 158, 11, .3); }
.badge { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.badge.on { background: #e6f8ee; color: var(--green); }
.badge.off { background: #f1eef9; color: var(--muted); }

.field { width: 100%; border: 1.5px solid #ddd6f0; border-radius: 14px; padding: 13px 15px; font-size: 15px; background: #fff; outline: none; color: var(--text); }
.field::placeholder { color: #a39cbd; }
.field:focus { border-color: var(--teal); }
select.field { appearance: none; }
.field-wrap { position: relative; }
.field-wrap .suffix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--gold); font-weight: 800; font-size: 13px; }
.quick { display: flex; gap: 8px; margin: 10px 0 12px; }
.quick button { flex: 1; background: #fff; border: 1.5px solid #ddd6f0; border-radius: 12px; padding: 11px 0; font-weight: 700; color: var(--text); }
.quick button.on { border-color: var(--teal); color: var(--teal); background: var(--blue-soft); }

/* ---------- Home ---------- */
.daily-strip { display: flex; align-items: center; gap: 12px; background: linear-gradient(90deg, #fff4dc, #fffaf0); border: 1px solid #f7d58a; border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; }
.daily-strip .ico { font-size: 26px; }
.daily-strip .t { flex: 1; min-width: 0; }
.daily-strip b { display: block; font-size: 14px; }
.daily-strip small { color: var(--muted); font-size: 11px; }
.hero { position: relative; padding: 10px 0 34px; margin-bottom: 4px; }
.hero-packs { display: flex; justify-content: center; align-items: flex-end; gap: 8px; height: 190px; }
.hero-packs .pack-art { width: 104px; height: 156px; border-radius: 12px; transform: rotate(-6deg) translateY(6px); }
.hero-packs .pack-art:nth-child(2) { width: 118px; height: 176px; transform: none; z-index: 2; }
.hero-packs .pack-art:nth-child(3) { transform: rotate(6deg) translateY(6px); }
.hero .pill { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 3; }
.hero-empty { text-align: center; color: var(--muted); padding: 30px 0; }
.hero::before { content: ''; position: absolute; left: 50%; top: 40%; width: 260px; height: 120px; transform: translate(-50%, -50%); background: radial-gradient(ellipse, rgba(168, 85, 247, .35), transparent 70%); filter: blur(12px); z-index: 0; }
.hero-packs { position: relative; z-index: 1; }

.balance-big { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; }
.balance-big .coin { width: 28px; height: 28px; font-size: 14px; }
.balance-big b { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.balance-big span { color: var(--gold); font-weight: 700; font-size: 13px; }
.stat2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat2 > div:last-child { text-align: right; }
.stat2 .v { font-size: 18px; font-weight: 800; margin-top: 4px; white-space: nowrap; }
.bar { height: 6px; background: #ece8f8; border-radius: 999px; margin: 12px 0 6px; position: relative; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--teal), var(--teal2)); border-radius: 999px; }
.bar > b { position: absolute; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; box-shadow: var(--shadow-sm); transform: translateX(-50%); }
.tiny { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.split2 > div:last-child { border-left: 1px solid var(--line); padding-left: 14px; }
.split2 .v { font-size: 22px; font-weight: 800; margin-top: 4px; }
.split2 .v small { font-size: 11px; color: var(--muted); font-weight: 600; margin-left: 4px; }

.linkrow { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; cursor: pointer; }
.linkrow b { font-size: 15px; }
.linkrow .sub { font-size: 12px; }
.linkrow .arrow { color: var(--teal); font-size: 22px; }

.discover { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.discover .thumb { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.discover .thumb img { width: 100%; height: 100%; object-fit: cover; }
.discover .name { font-size: 19px; font-weight: 800; margin: 2px 0; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; cursor: pointer; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.tile::after { content: ''; position: absolute; right: -20px; top: -20px; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle, rgba(168, 85, 247, .18), transparent 70%); }
.tile .ico { font-size: 20px; margin-bottom: 8px; }
.tile .v { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.tile .label { font-size: 9px; }
.tile .dot { position: absolute; top: 12px; right: 12px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

/* ---------- Pack art ---------- */
.pack-art { --pc: #4f9cff; position: relative; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: linear-gradient(165deg, color-mix(in srgb, var(--pc) 70%, #fff) 0%, var(--pc) 45%, color-mix(in srgb, var(--pc) 55%, #000) 100%); box-shadow: 0 12px 24px rgba(0, 0, 0, .35), inset 0 0 0 1.5px rgba(255, 255, 255, .35); display: flex; flex-direction: column; align-items: center; justify-content: space-between; color: #fff; text-align: center; }
.pack-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .28) 48%, rgba(255, 255, 255, 0) 60%); pointer-events: none; }
.pack-art img { width: 100%; height: 100%; object-fit: cover; }
.pack-art.ph { padding: 8% 6%; }
.pack-ph-top { font-size: .55em; letter-spacing: .2em; opacity: .85; font-weight: 700; }
.pack-ph-emoji { font-size: 2.4em; }
.pack-ph-name { font-weight: 900; font-size: .95em; letter-spacing: .04em; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.pack-thumb { width: 46px; height: 68px; font-size: 11px; border-radius: 6px; }
.pack-thumb.ph { padding: 4px 2px; }
.pack-thumb .pack-ph-top { font-size: 5px; } .pack-thumb .pack-ph-emoji { font-size: 18px; } .pack-thumb .pack-ph-name { font-size: 7px; }
.pack-art.has-img { background: none; box-shadow: none; overflow: visible; border-radius: 0; }
.pack-art.has-img::after { display: none; }
.pack-art.has-img img { object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .55)); }
.pack-thumb.has-img img { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.flip-front.has-img { background: none; border: 0; box-shadow: none; }
.flip-front.has-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .6)); }

/* ---------- Loja / Mercado ---------- */
.pack-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: 18px; padding: 10px 14px 10px 12px; margin-bottom: 12px; cursor: pointer; transition: transform .08s; }
.pack-row:active { transform: scale(.985); }
.pack-row .info { flex: 1; min-width: 0; }
.pack-row .name { font-size: 16px; font-weight: 800; }
.pack-row .cnt { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 2px; }
.price-badge { background: #fff4dc; color: #b45309; font-weight: 800; border-radius: 999px; padding: 8px 12px; font-size: 12px; border: 1px solid #f7d58a; white-space: nowrap; }
.seg { display: flex; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.seg button { flex: 1; border-radius: 999px; padding: 10px 6px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: transparent; color: var(--muted); }
.seg button.on { background: linear-gradient(90deg, var(--teal), var(--teal2)); color: #fff; }
.filters { display: flex; gap: 6px; overflow: auto; padding-bottom: 4px; margin-bottom: 10px; }
.filters button { background: #fff; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 7px 12px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.filters button.on { color: #fff; background: var(--teal); border-color: var(--teal); }
.market-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.market-item { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: 16px; padding: 10px; }
.market-item .name { font-weight: 800; font-size: 13px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-item .meta { font-size: 11px; color: var(--muted); }
.market-item .price { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.market-item .price b { color: var(--gold); font-size: 15px; }
.mini { background: var(--blue-soft); color: var(--teal); border-radius: 10px; padding: 8px 12px; font-weight: 800; font-size: 12px; white-space: nowrap; }
.mini.on { background: var(--teal); color: #fff; }
.mini.gold { background: linear-gradient(90deg, var(--gold), var(--gold2)); color: #2a1a00; }
.mini.danger { background: #fde8e8; color: var(--red); }
.mini:disabled { opacity: .5; }

/* ---------- Álbum ---------- */
.rarity-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.rarity-summary div { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: 12px; padding: 8px 4px; text-align: center; }
.rarity-summary b { display: block; font-size: 12px; }
.rarity-summary span { font-size: 8px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 2px 10px; }
.section-head b { font-size: 18px; font-weight: 800; }
.section-head span { color: var(--muted); font-size: 12px; font-weight: 600; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }

/* ---------- Trading card ---------- */
.tcard { --rc: var(--r-common); aspect-ratio: 3 / 4.25; border-radius: 12px; position: relative; overflow: hidden; background: #fff; border: 2px solid var(--rc); box-shadow: 0 6px 16px color-mix(in srgb, var(--rc) 28%, transparent); display: flex; flex-direction: column; cursor: pointer; font-size: 10px; transition: transform .08s; }
.tcard:active { transform: scale(.97); }
.tcard.r-common { --rc: var(--r-common); } .tcard.r-rare { --rc: var(--r-rare); } .tcard.r-epic { --rc: var(--r-epic); } .tcard.r-mythic { --rc: var(--r-mythic); } .tcard.r-legendary { --rc: var(--r-legendary); }
.tc-top { display: flex; align-items: center; gap: 3px; padding: .45em .6em .3em; }
.tc-lv { font-size: .65em; color: var(--muted); font-weight: 700; }
.tc-name { flex: 1; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95em; }
.tc-hp { font-weight: 800; color: var(--rc); font-size: .9em; white-space: nowrap; }
.tc-hp small { font-size: .6em; }
.tc-art { flex: 1; margin: 0 .5em; border-radius: .6em; overflow: hidden; min-height: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--rc) 30%, #fff), color-mix(in srgb, var(--rc) 70%, #3b2a6b)); display: grid; place-items: center; }
.tc-art img { width: 100%; height: 100%; object-fit: cover; }
.tc-art .ph { font-size: 2.6em; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.tc-mid { display: flex; justify-content: space-between; padding: .4em .6em 0; font-size: .62em; text-transform: uppercase; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.tc-bot { display: flex; justify-content: space-between; padding: .2em .6em .55em; font-size: .7em; font-weight: 800; }
.tc-prod { color: var(--green); } .tc-atk { color: var(--muted); }
.tcard.silhouette { background: linear-gradient(180deg, #6b6494 0%, #3d3566 60%, #2a2450 100%); border: 2px dashed rgba(255, 255, 255, .5); box-shadow: none; justify-content: center; align-items: center; }
.tcard.silhouette img { width: 82%; height: 82%; object-fit: contain; filter: brightness(0) opacity(.7); }
.tcard.silhouette .ph { font-size: 3em; filter: brightness(0) opacity(.7); }
.tcard.big { font-size: 20px; aspect-ratio: 3 / 4.3; width: min(72vw, 280px); margin: 0 auto; border-width: 3px; border-radius: 18px; }
.tcard.big .tc-art { border-radius: 12px; }
/* Arte completa recortada (fundo transparente): sem moldura branca, só a carta com sombra na cor da raridade */
.tcard.full { aspect-ratio: 2 / 3; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; display: block; }
.tcard.full img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 6px 10px rgba(40, 20, 90, .3)); }
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .tcard.full img { filter: drop-shadow(0 6px 11px color-mix(in srgb, var(--rc) 45%, rgba(40, 20, 90, .25))); }
}
.tcard.full .lv-badge { position: absolute; top: 5%; left: 7%; background: rgba(28, 22, 51, .88); color: #fff; font-size: .72em; font-weight: 800; padding: .25em .55em; border-radius: 999px; letter-spacing: .04em; border: 1px solid rgba(255, 255, 255, .25); }
.tcard.full.silhouette { border: 0; background: transparent; }
/* silhueta de verdade: só o contorno da carta, sem nome nem arte legíveis */
.tcard.full.silhouette img { filter: brightness(0); opacity: .55; }
.tcard.full.silhouette::after { content: '?'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 3em; font-weight: 900; color: rgba(255, 255, 255, .6); text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.tcard.full.big { border-radius: 0; }
.flip-back .tcard.full { aspect-ratio: auto; }
.tcard .inst-strip { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); background: rgba(28, 22, 51, .9); color: #fff; font-size: .62em; font-weight: 800; padding: .28em .75em; border-radius: 999px; white-space: nowrap; letter-spacing: .03em; border: 1px solid rgba(255, 255, 255, .2); }
.tcard:not(.full) .inst-strip { left: 0; right: 0; bottom: 0; transform: none; border-radius: 0; border: 0; text-align: center; padding: .3em 0; }
.tcard .count-badge { position: absolute; top: 5%; right: 7%; background: var(--gold); color: #2a1a00; font-size: .7em; font-weight: 900; padding: .2em .5em; border-radius: 999px; }
.tcard:not(.full) .count-badge { top: 30%; right: 4%; }
.tcard .sale-badge { position: absolute; top: 5%; right: 7%; background: var(--purple); color: #fff; font-size: .62em; font-weight: 900; padding: .25em .5em; border-radius: 999px; }
.tcard.full .count-badge + .sale-badge { top: 14%; }

/* ---------- Abertura de pacote (mesmo padrão para todos os pacotes) ---------- */
.reveal { position: fixed; inset: 0; z-index: 60; background: radial-gradient(circle at 50% 42%, #7c4dff 0%, #4a23b8 38%, #22124f 100%); color: #fff; overflow-x: hidden; overflow-y: auto; padding: 22px 16px 40px; display: flex; flex-direction: column; align-items: center; }
.reveal::before { content: ''; position: fixed; inset: 0; pointer-events: none; background-image: radial-gradient(2px 2px at 18% 28%, rgba(255, 255, 255, .55), transparent), radial-gradient(1.5px 1.5px at 72% 18%, rgba(255, 255, 255, .45), transparent), radial-gradient(2px 2px at 38% 82%, rgba(255, 255, 255, .4), transparent), radial-gradient(1.5px 1.5px at 86% 64%, rgba(255, 255, 255, .5), transparent), radial-gradient(1.5px 1.5px at 8% 72%, rgba(255, 255, 255, .4), transparent), radial-gradient(2px 2px at 60% 52%, rgba(255, 255, 255, .35), transparent); animation: twinkle 3s ease-in-out infinite alternate; }
.reveal h2 { position: relative; z-index: 3; margin: 6px 0 2px; font-size: 24px; color: #ffd166; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 2px 14px rgba(255, 180, 60, .45); }
.reveal .sub { position: relative; z-index: 3; color: rgba(255, 255, 255, .72); margin-bottom: 18px; }
.reveal-grid { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 12px; width: 100%; max-width: 440px; margin-top: 4px; }
.reveal-grid.pre { visibility: hidden; }
.flip { perspective: 900px; position: relative; width: 30%; max-width: 132px; }
.reveal-grid.few .flip { width: 42%; max-width: 172px; }
.flip.emerge { animation: emerge .7s cubic-bezier(.2, 1.15, .35, 1) both; }
.flip-inner { position: relative; width: 100%; aspect-ratio: 2 / 3; transition: transform .26s ease-in; }
.flip-inner.half { transform: rotateY(90deg) scale(1.04); }
.flip-face { position: absolute; inset: 0; border-radius: 12px; }
/* Verso: imagem personalizada do pacote (--back); sem ela, o verso padrão */
.flip-front { background: var(--back, url('/img/cardback.svg')) center / 100% 100% no-repeat; filter: drop-shadow(0 10px 18px rgba(10, 4, 40, .5)); cursor: pointer; overflow: hidden; }
.flip-front::after { content: ''; position: absolute; inset: 0; border-radius: 12px; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .38) 50%, transparent 62%); background-size: 260% 100%; animation: sheen 2.6s ease-in-out infinite; pointer-events: none; }
.flip-back { display: none; }
.flip.on .flip-front { display: none; }
.flip.on .flip-back { display: block; }
.flip-back .tcard { width: 100%; height: 100%; }
.flip .tag { position: absolute; bottom: -10px; left: 50%; z-index: 5; background: var(--gold); color: #2a1a00; font-size: 9px; font-weight: 900; padding: 3px 9px; border-radius: 999px; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); opacity: 0; transform: translateX(-50%) scale(.6); transition: all .3s .45s; white-space: nowrap; }
.flip.on .tag { opacity: 1; transform: translateX(-50%) scale(1); }
.flip .tag.dup { background: #cfe0ff; color: #0f2a5e; }
.reveal .btn { position: relative; z-index: 3; max-width: 320px; margin-top: 26px; transition: opacity .4s ease; }
#reveal-sum { transition: opacity .4s ease; }
/* enquanto o pacote abre, só o pacote aparece (o botão e o total surgem depois) */
.reveal.opening .btn, .reveal.opening #reveal-sum { opacity: 0; pointer-events: none; }
.reveal .btn.light { background: #fff; color: var(--navy); }
.flip.on.legendary .flip-inner { animation: glow 1.4s ease-in-out infinite alternate; }
.flip.on.mythic .flip-inner { animation: glow-m 1.4s ease-in-out infinite alternate; }
@keyframes glow { from { filter: drop-shadow(0 0 4px rgba(255, 179, 71, .4)); } to { filter: drop-shadow(0 0 20px rgba(255, 179, 71, .95)); } }
@keyframes glow-m { from { filter: drop-shadow(0 0 4px rgba(255, 95, 162, .4)); } to { filter: drop-shadow(0 0 20px rgba(255, 95, 162, .95)); } }

/* Palco do pacote: grande, centralizado, na proporção da arte (ajustada via JS) */
.op-stage { position: fixed; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; transition: opacity .45s ease; }
.op-stage.done { opacity: 0; }
.op-rays { position: absolute; width: min(150vw, 900px); aspect-ratio: 1; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(var(--fx-b), .2) 0deg 9deg, transparent 9deg 24deg); -webkit-mask: radial-gradient(circle, #000 12%, transparent 62%); mask: radial-gradient(circle, #000 12%, transparent 62%); animation: spin 14s linear infinite; opacity: .75; transition: opacity .4s; }
.op-stage.open .op-rays { opacity: 1; }
.op-glow { position: absolute; width: min(95vw, 560px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 245, .95) 0%, rgba(var(--fx-b), .8) 22%, rgba(var(--fx-a), .5) 42%, rgba(var(--fx-a), 0) 68%); opacity: 0; transform: scale(.3); }
.op-stage.open .op-glow { animation: glowpop 1s ease-out forwards; }
.op-pack { position: relative; width: min(64vw, 300px); height: min(58vh, 470px); pointer-events: auto; cursor: pointer; animation: packIn .6s cubic-bezier(.2, 1.3, .4, 1) both; filter: drop-shadow(0 18px 26px rgba(8, 2, 30, .55)); }
.op-stage.done .op-pack { pointer-events: none; }
.op-piece { position: absolute; inset: 0; background-repeat: no-repeat; background-size: 100% 100%; will-change: transform; }
.op-top { clip-path: polygon(0 0, 100% 0, 100% 24%, 93% 27%, 86% 23%, 78% 28%, 70% 24%, 62% 29%, 54% 24%, 46% 28%, 38% 23%, 30% 28%, 22% 24%, 14% 29%, 7% 24%, 0 27%); transform-origin: 20% 100%; }
.op-bottom { clip-path: polygon(0 27%, 7% 24%, 14% 29%, 22% 24%, 30% 28%, 38% 23%, 46% 28%, 54% 24%, 62% 29%, 70% 24%, 78% 28%, 86% 23%, 93% 27%, 100% 24%, 100% 100%, 0 100%); }
.op-line { position: absolute; left: -6%; right: -6%; top: 25.5%; height: 5px; border-radius: 99px; background: linear-gradient(90deg, transparent, #fff3c4 20%, #fff 50%, #fff3c4 80%, transparent); box-shadow: 0 0 22px 8px rgba(255, 214, 110, .9); opacity: 0; transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.op-hint { position: absolute; left: 50%; bottom: -36px; transform: translateX(-50%); color: #ffe38a; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; animation: blink 1s ease-in-out infinite alternate; }
/* tremor no pacote inteiro: as duas metades se movem juntas, sem abrir fresta no rasgo */
.op-pack.shake { animation: pshake .9s ease-in-out both; }
.op-pack.cut { animation: pshake2 .38s linear both; }
.op-pack.cut .op-line { animation: cutline .38s ease-out forwards; }
.op-pack.cut .op-hint, .op-pack.open .op-hint { display: none; }
.op-pack.open .op-top { animation: tearTop .75s cubic-bezier(.3, .7, .4, 1) both; }
.op-pack.open .op-bottom { animation: tearBottom .85s cubic-bezier(.5, 0, .75, 0) .08s both; }
.op-pack.open .op-line { animation: lineOut .25s forwards; }
.op-spark { position: absolute; width: var(--s, 8px); height: var(--s, 8px); margin: calc(var(--s, 8px) / -2) 0 0 calc(var(--s, 8px) / -2); border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(var(--fx-b), 1) 45%, rgba(var(--fx-a), 0) 70%); animation: spark var(--d, .9s) cubic-bezier(.15, .7, .3, 1) forwards; pointer-events: none; }
@keyframes packIn { 0% { transform: translateY(40px) scale(.55) rotate(-6deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes pshake { 0%, 100% { transform: none; } 15% { transform: rotate(-2deg); } 30% { transform: rotate(2.5deg); } 45% { transform: rotate(-3.5deg) scale(1.02); } 60% { transform: rotate(4deg) scale(1.03); } 75% { transform: rotate(-5deg) scale(1.05); } 90% { transform: rotate(5deg) scale(1.06); } }
@keyframes pshake2 { 0% { transform: none; } 25% { transform: translateX(-3px) scale(1.05); } 75% { transform: translateX(3px) scale(1.05); } 100% { transform: scale(1.05); } }
@keyframes lineOut { from { opacity: 1; transform: scaleX(1); } to { opacity: 0; transform: scaleX(1); } }
@keyframes cutline { 0% { opacity: 1; transform: scaleX(0); } 100% { opacity: 1; transform: scaleX(1); } }

/* ---------- Abertura com emoção: tema por pacote, suspense pela melhor carta, clarão, tremor e partículas ---------- */
.reveal { --fx-a: 255, 196, 90; --fx-b: 255, 226, 140; --tease: 255, 209, 102; }
.reveal::after { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 40%, rgba(var(--fx-a), .28) 0%, rgba(var(--fx-a), .08) 40%, transparent 70%); }
.sfx-btn { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 70; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 18px; line-height: 40px; cursor: pointer; }
.sfx-btn:focus-visible { outline: 2px solid #ffd166; outline-offset: 2px; }
/* brilho de suspense: a cor da melhor carta vaza por trás do pacote enquanto ele treme */
.op-tease { position: absolute; width: min(90vw, 520px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(var(--tease), .75) 0%, rgba(var(--tease), .25) 38%, rgba(var(--tease), 0) 66%); opacity: 0; transform: scale(.6); transition: opacity .5s, transform .5s; }
.op-stage.teasing .op-tease { opacity: .55; transform: scale(.85); animation: tease .5s ease-in-out infinite alternate; }
/* o contorno do pacote brilha na cor da melhor carta: épica roxa, mítica rosa, lendária dourada */
.op-stage.teasing .op-pack { filter: drop-shadow(0 18px 26px rgba(8, 2, 30, .55)) drop-shadow(0 0 22px rgba(var(--tease), .85)); }
.reveal.hype .op-stage.teasing .op-tease { opacity: .85; }
.reveal.hype .op-stage.teasing .op-pack { filter: drop-shadow(0 18px 26px rgba(8, 2, 30, .55)) drop-shadow(0 0 34px rgba(var(--tease), 1)) drop-shadow(0 0 12px rgba(255, 255, 255, .6)); }
.reveal.best-common .op-stage.teasing .op-tease, .reveal.best-rare .op-stage.teasing .op-tease { opacity: .3; }
.reveal.hype .op-stage.teasing .op-tease { animation-duration: .32s; }
.op-stage.open .op-tease { opacity: 0; transition: opacity .6s; animation: none; }
@keyframes tease { from { transform: scale(.8); filter: brightness(1); } to { transform: scale(1.02); filter: brightness(1.35); } }
/* clarão na hora do rasgo quando vem mítica ou lendária */
.op-flash { position: fixed; inset: 0; background: radial-gradient(circle at 50% 42%, #fff 0%, rgba(var(--tease), .9) 35%, rgba(var(--tease), 0) 75%); opacity: 0; pointer-events: none; }
.reveal.hype .op-stage.open .op-flash { animation: flash .55s ease-out; }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
/* tremor mais forte e mais longo do pacote com carta muito rara */
.op-pack.shake-hype { animation: pshakeHype 1.5s ease-in both; }
@keyframes pshakeHype { 0%, 100% { transform: none; } 10% { transform: rotate(-2deg); } 20% { transform: rotate(3deg) scale(1.02); } 30% { transform: rotate(-4deg) scale(1.03); } 40% { transform: rotate(4.5deg) scale(1.04); } 50% { transform: rotate(-5.5deg) scale(1.05); } 60% { transform: translateX(3px) rotate(6deg) scale(1.06); } 70% { transform: translateX(-4px) rotate(-6.5deg) scale(1.07); } 80% { transform: translateX(5px) rotate(7deg) scale(1.08); } 90% { transform: translateX(-5px) rotate(-7deg) scale(1.08); } }
/* tremor da tela inteira no rasgo (decai rápido; no máximo 12 px para não enjoar no celular) */
.reveal.quake-mid { animation: quakeMid .45s ease-out; }
.reveal.quake-big { animation: quakeBig .5s ease-out; }
@keyframes quakeMid { 0% { transform: translate(0, 0); } 15% { transform: translate(-7px, 4px); } 30% { transform: translate(6px, -5px); } 45% { transform: translate(-4px, 3px); } 60% { transform: translate(3px, -2px); } 80% { transform: translate(-1px, 1px); } 100% { transform: none; } }
@keyframes quakeBig { 0% { transform: translate(0, 0); } 12% { transform: translate(-12px, 7px); } 26% { transform: translate(11px, -8px); } 40% { transform: translate(-8px, 6px); } 55% { transform: translate(6px, -4px); } 70% { transform: translate(-3px, 2px); } 85% { transform: translate(1px, -1px); } 100% { transform: none; } }
/* partículas no formato do tema de cada pacote */
.op-spark.k-leaf { border-radius: 80% 0; background: linear-gradient(135deg, rgba(var(--fx-b), 1), rgba(var(--fx-a), 1)); }
.op-spark.k-ember { border-radius: 2px; width: calc(var(--s, 8px) * .45); height: calc(var(--s, 8px) * 1.6); background: linear-gradient(#fff, rgba(var(--fx-a), 1)); }
.op-spark.k-shard { border-radius: 1px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: linear-gradient(160deg, #fff, rgba(var(--fx-a), 1)); }
.op-spark.k-star { border-radius: 0; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background: rgba(var(--fx-b), 1); width: calc(var(--s, 8px) * 1.5); height: calc(var(--s, 8px) * 1.5); }
.op-spark.k-fire { background: radial-gradient(circle, #fff6c8 0%, #ffb347 35%, rgba(255, 90, 40, .9) 60%, rgba(255, 60, 20, 0) 72%); }
.op-spark.k-coin { width: calc(var(--s, 8px) * 1.3); height: calc(var(--s, 8px) * 1.3); background: radial-gradient(circle at 35% 30%, #fffbe0 0%, #ffd34d 35%, #c98a12 70%, #8a5a06 100%); box-shadow: inset 0 0 0 1.5px rgba(255, 244, 200, .8); }
/* explosão na cor da raridade em volta da carta virada */
.card-burst { position: absolute; left: 50%; top: 45%; z-index: 6; width: var(--s, 6px); height: var(--s, 6px); margin: calc(var(--s, 6px) / -2) 0 0 calc(var(--s, 6px) / -2); border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(var(--c), 1) 45%, rgba(var(--c), 0) 72%); pointer-events: none; animation: spark var(--d, .8s) cubic-bezier(.15, .7, .3, 1) forwards; }
/* a carta muito rara segura e tremula antes de virar */
.flip.tense .flip-inner { animation: tense .42s ease-in-out; filter: drop-shadow(0 0 16px rgba(var(--tease), .95)); }
@keyframes tense { 0%, 100% { transform: none; } 20% { transform: translateY(-3px) rotate(-2deg) scale(1.03); } 40% { transform: translateY(-4px) rotate(2deg) scale(1.05); } 60% { transform: translateY(-5px) rotate(-2.5deg) scale(1.06); } 80% { transform: translateY(-6px) rotate(2.5deg) scale(1.07); } }
/* feixe de luz atrás da carta mítica/lendária */
.flip.legendary { --c-pillar: 255, 179, 71; }
.flip.mythic { --c-pillar: 255, 95, 162; }
.flip.pillar::before { content: ''; position: absolute; left: 50%; top: -60%; width: 70%; height: 220%; z-index: 0; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(var(--c-pillar, 255, 209, 102), .55), transparent); filter: blur(6px); animation: pillar 1.4s ease-out forwards; pointer-events: none; }
@keyframes pillar { 0% { opacity: 0; transform: translateX(-50%) scaleY(.2); } 25% { opacity: 1; transform: translateX(-50%) scaleY(1); } 100% { opacity: 0; transform: translateX(-50%) scaleY(1.1); } }
@media (prefers-reduced-motion: reduce) {
  .op-tease, .op-flash, .card-burst { animation: none !important; }
  .reveal.quake-mid, .reveal.quake-big, .op-pack.shake-hype, .flip.tense .flip-inner, .flip.pillar::before { animation: none !important; }
}
@keyframes tearTop { 0% { transform: none; opacity: 1; } 25% { transform: translate(-6px, -26px) rotate(-8deg); opacity: 1; } 100% { transform: translate(-90px, -60vh) rotate(-55deg); opacity: 0; } }
@keyframes tearBottom { 0% { transform: none; opacity: 1; } 100% { transform: translate(10px, 70vh) rotate(8deg) scale(.9); opacity: 0; } }
@keyframes glowpop { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.8); } }
@keyframes spark { 0% { transform: translate(0, 0) scale(1) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx, 0), var(--dy, 0)) scale(.2) rotate(var(--rot, 0deg)); opacity: 0; } }
@keyframes emerge { 0% { transform: translate(var(--fx, 0), var(--fy, 0)) scale(.3) rotate(var(--fr, 0deg)); opacity: 0; } 25% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes sheen { 0% { background-position: 130% 0; } 60%, 100% { background-position: -130% 0; } }
@keyframes fadeout { to { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { from { opacity: .5; } to { opacity: 1; } }
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .op-rays, .flip-front::after, .reveal::before { animation: none; } }

/* ---------- Sheet / modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(30, 18, 71, .45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .18s; backdrop-filter: blur(3px); }
.sheet { background: #fff; border: 1px solid var(--line); width: 100%; max-width: 520px; border-radius: 26px 26px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); max-height: 90vh; overflow: auto; animation: up .22s; }
.sheet .grab { width: 40px; height: 4px; border-radius: 999px; background: #ddd6f0; margin: 0 auto 14px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sheet-head h3 { margin: 0; font-size: 20px; }
.xbtn { width: 34px; height: 34px; border-radius: 50%; background: #f1eef9; color: var(--muted); font-size: 18px; display: grid; place-items: center; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.odds { margin: 12px 0; }
.odds .o { display: flex; align-items: center; gap: 10px; font-size: 12px; margin: 6px 0; }
.odds .o span:first-child { width: 78px; font-weight: 700; }
.odds .o .b { flex: 1; height: 8px; background: #ece8f8; border-radius: 999px; overflow: hidden; }
.odds .o .b i { display: block; height: 100%; border-radius: 999px; }
.odds .o span:last-child { width: 40px; text-align: right; color: var(--muted); font-weight: 700; }
.pack-hero { display: flex; justify-content: center; margin: 6px 0 14px; }
.pack-hero .pack-art { width: 172px; height: 258px; font-size: 16px; border-radius: 12px; }
.kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv b { font-weight: 800; }

/* ---------- Instâncias / herói ---------- */
.inst-list { display: flex; flex-direction: column; gap: 8px; }
.inst { display: flex; align-items: center; gap: 10px; background: #f7f5ff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.inst.col { flex-direction: column; align-items: stretch; gap: 4px; }
.inst .inst-row { display: flex; align-items: center; gap: 10px; }
.inst-thumb { width: 38px; height: 54px; border-radius: 6px; overflow: hidden; background: var(--blue-soft); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.inst-thumb img { width: 100%; height: 100%; object-fit: cover; }
.inst-serial { flex: 1; min-width: 0; }
.inst-serial b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inst-serial small, .inst-stats small { display: block; color: var(--muted); font-size: 11px; }
.inst-stats { text-align: right; }
.inst-stats b { font-size: 13px; }
.inst-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.xp-bar { height: 5px; background: #ece8f8; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.xp-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), #c79bff); border-radius: 999px; }
.xp-bar.ready > i { background: linear-gradient(90deg, var(--green), #17b58a); }
.xp-txt { font-size: 10px; color: var(--muted); font-weight: 600; margin-top: 3px; display: flex; justify-content: space-between; }
.slot-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slot-pick button { background: #f7f5ff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; text-align: left; color: var(--text); }
.slot-pick button b { display: block; }
.slot-pick button small { color: var(--muted); font-size: 11px; }
.slot-pick button.busy { border-color: var(--gold); }
.hero-panel { background: linear-gradient(160deg, #ffffff, #f3efff); }
.hero-top { display: flex; align-items: center; gap: 12px; }
.hero-avatar { --rc: var(--r-common); width: 62px; height: 62px; border-radius: 50%; overflow: hidden; border: 3px solid var(--rc); background: var(--blue-soft); display: grid; place-items: center; font-size: 28px; flex-shrink: 0; box-shadow: 0 0 16px color-mix(in srgb, var(--rc) 50%, transparent); }
.hero-avatar.r-rare { --rc: var(--r-rare); } .hero-avatar.r-epic { --rc: var(--r-epic); } .hero-avatar.r-mythic { --rc: var(--r-mythic); } .hero-avatar.r-legendary { --rc: var(--r-legendary); }
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-id { flex: 1; min-width: 0; }
.hero-name { font-size: 20px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-power { text-align: right; }
.hero-power b { font-size: 22px; font-weight: 800; color: var(--teal); white-space: nowrap; }
.hero-bonus { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.hero-bonus > div { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: 12px; padding: 8px 6px; text-align: center; }
.hero-bonus .label { font-size: 8px; display: block; margin-bottom: 3px; }
.hero-bonus b { font-size: 13px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot { cursor: pointer; }
.slot .xp-bar { margin-top: 4px; }
.slot-empty { aspect-ratio: 2 / 3; border: 2px dashed #cfc6ea; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); background: #fff; }
.slot-empty span { font-size: 30px; font-weight: 300; color: var(--teal); }
.slot-empty small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-combo { background: var(--blue-soft); color: var(--teal); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; }

/* ---------- Arena ---------- */
.arena-banner { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 14px; position: relative; }
.arena-banner img { width: 100%; display: block; }
.arena-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.arena-stats > div { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: 12px; padding: 10px 6px; text-align: center; }
.arena-stats .label { font-size: 8px; display: block; margin-bottom: 3px; }
.arena-stats b { font-size: 15px; }
.team-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.team-row .tcard { font-size: 7px; cursor: default; }
.team-row .tcard .lv-badge { font-size: .9em; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 12px 0; }
.vs .side { text-align: center; }
.vs .side b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs .side small { color: var(--muted); }
.vs .x { font-size: 26px; font-weight: 900; color: var(--gold); }
.battle { position: fixed; inset: 0; z-index: 60; background: radial-gradient(circle at 50% 0%, #7c3aed 0%, #3b1d8f 45%, #22124f 100%); color: #fff; overflow: auto; padding: 18px 14px 30px; }
.battle .bteam { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.fighter { position: relative; text-align: center; transition: transform .15s, opacity .3s; }
.fighter .fimg { aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; border: 2px solid var(--rc, #9aa5b8); background: #2a2450; display: grid; place-items: center; font-size: 22px; }
.fighter .fimg img { width: 100%; height: 100%; object-fit: cover; }
.fighter.r-common { --rc: var(--r-common); } .fighter.r-rare { --rc: var(--r-rare); } .fighter.r-epic { --rc: var(--r-epic); } .fighter.r-mythic { --rc: var(--r-mythic); } .fighter.r-legendary { --rc: var(--r-legendary); }
.fighter .hpbar { height: 5px; background: rgba(255, 255, 255, .15); border-radius: 999px; margin-top: 4px; overflow: hidden; }
.fighter .hpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #17b58a); transition: width .25s; }
.fighter .fname { font-size: 8px; color: #d9d2f5; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fighter.ko { opacity: .3; filter: grayscale(1); }
.fighter.hit { animation: shake .3s; }
.fighter.attacking { transform: translateY(-6px) scale(1.06); }
.fighter .dmg { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); font-weight: 900; font-size: 14px; color: #ffd166; text-shadow: 0 2px 6px #000; animation: rise .7s forwards; pointer-events: none; }
.fighter .dmg.crit { color: var(--red); font-size: 17px; }
.fighter .dmg.strong { color: var(--teal); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes rise { from { opacity: 1; top: 30%; } to { opacity: 0; top: -10%; } }
.battle-log { background: rgba(0, 0, 0, .25); border-radius: 12px; padding: 8px 10px; font-size: 11px; color: #d9d2f5; height: 74px; overflow: hidden; margin: 12px 0; }
.battle-log div { padding: 1px 0; }
.battle-log div.me { color: #9ef7d3; } .battle-log div.op { color: #ff9bb0; }
.result { text-align: center; margin: 14px 0; animation: fade .4s; }
.result h2 { margin: 0; font-size: 30px; }
.result.win h2 { color: #ffd166; text-shadow: 0 0 20px rgba(255, 204, 77, .6); }
.result.lose h2 { color: #ff9bb0; }
.battle .btn.light { background: #fff; color: var(--navy); }
.battle .vs .side small { color: #d9d2f5; }
.battle .vs .x { color: #ffd166; }

/* ---------- Missões / diário ---------- */
.mission { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mission:last-child { border: 0; }
.mission .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.mission .tt { flex: 1; min-width: 0; }
.mission .tt b { display: block; font-size: 13px; }
.mission .tt small { color: var(--muted); font-size: 11px; }
.mission .mbar { height: 4px; background: #ece8f8; border-radius: 999px; margin-top: 5px; overflow: hidden; }
.mission .mbar i { display: block; height: 100%; background: var(--teal); }
.daily-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 10px 0; }
.daily-cal div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 2px; text-align: center; font-size: 10px; }
.daily-cal div b { display: block; font-size: 11px; color: var(--gold); }
.daily-cal div.done { background: #e6f8ee; border-color: #9ad9b5; }
.daily-cal div.next { border-color: var(--gold); box-shadow: 0 0 10px rgba(245, 158, 11, .35); }

/* ---------- Carteira ---------- */
.wallet-balance { background: linear-gradient(135deg, #ffffff, #f3efff); }
.wallet-balance .v { font-size: 34px; font-weight: 800; }
.wallet-balance .v small { color: var(--gold); font-size: 14px; margin-left: 4px; }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.hist li:last-child { border: 0; }
.hist .t { color: var(--muted); font-size: 11px; }
.hist .amt { font-weight: 800; }
.hist .amt.neg { color: var(--red); } .hist .amt.pos { color: var(--green); }
.st { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: #f1eef9; color: var(--muted); font-weight: 800; margin-left: 6px; }
.st.pending, .st.processing { background: #fff4dc; color: #b45309; }
.st.paid, .st.credited, .st.ok, .st.reward { background: #e6f8ee; color: var(--green); }
.st.rejected, .st.unmatched { background: #fde8e8; color: var(--red); }
.wallet-conn { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--blue-soft); border-radius: 14px; padding: 10px 14px; font-size: 12px; margin-bottom: 12px; }
.wallet-conn b { font-family: ui-monospace, monospace; font-size: 12px; }
.wallet-conn button { background: transparent; color: var(--teal); font-weight: 800; font-size: 12px; }

/* ---------- Mais ---------- */
.rank { list-style: none; padding: 0; margin: 0; }
.rank li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rank li:last-child { border: 0; }
.rank .pos { width: 30px; font-weight: 800; color: var(--muted); text-align: center; }
.rank .who { flex: 1; font-weight: 700; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank .who small { display: block; color: var(--muted); font-weight: 500; }
.rank li.me { background: var(--blue-soft); margin: 0 -18px; padding: 10px 18px; border-radius: 12px; }
.task { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border: 0; }
.task .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.task .tt { flex: 1; min-width: 0; }
.task .tt b { display: block; }
.task .tt small { color: var(--muted); }
.copybox { display: flex; gap: 8px; }
.copybox .field { font-size: 12px; font-family: ui-monospace, monospace; }

/* ---------- Sorteio + anúncios ---------- */
.rf-num { font-variant-numeric: tabular-nums; }
/* card de entrada (início e loja) */
.rf-entry { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; background: linear-gradient(105deg, #2a1f57 0%, #4c2a9a 58%, #7c3aed 100%); color: #fff; border-radius: 18px; padding: 10px 12px; margin-bottom: 14px; cursor: pointer; box-shadow: 0 10px 24px rgba(76, 44, 140, .25); transition: transform .08s; }
.rf-entry:active { transform: scale(.985); }
.rf-entry::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%); background-size: 260% 100%; animation: sheen 3.2s ease-in-out infinite; }
.rf-entry-art { width: 44px; height: 60px; flex-shrink: 0; display: grid; place-items: center; font-size: 30px; }
.rf-entry-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
.rf-entry-t { flex: 1; min-width: 0; }
.rf-entry-t small { display: block; font-size: 11px; color: rgba(255, 255, 255, .82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.rf-entry-title { display: block; font-size: 14px; font-weight: 800; color: #ffd166; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-entry-gift { color: #9ef7d3; font-weight: 800; }
.rf-entry-go { flex-shrink: 0; background: linear-gradient(90deg, var(--gold), var(--gold2)); color: #2a1a00; font-weight: 900; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 10px; border-radius: 999px; white-space: nowrap; position: relative; z-index: 1; }
/* tela do sorteio */
.rf-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rf-back { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 800; color: var(--teal); white-space: nowrap; }
.panel.rf-hero { background: radial-gradient(circle at 30% 0%, #7c4dff 0%, #4a23b8 45%, #22124f 100%); border: 0; color: #fff; }
.rf-hero .label { color: rgba(255, 255, 255, .7); }
.rf-prize { display: flex; align-items: center; gap: 14px; }
.rf-prize .rf-pack { width: 88px; height: 132px; font-size: 10px; border-radius: 10px; }
.rf-prize-info { flex: 1; min-width: 0; }
.rf-prize-name { font-size: 18px; font-weight: 900; color: #ffd166; margin: 2px 0; overflow-wrap: anywhere; }
.rf-prize-sub { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.rf-odds { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.rf-odds span { font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 999px; background: rgba(255, 255, 255, .12); white-space: nowrap; }
.rf-clock { margin-top: 14px; text-align: center; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 8px 10px 10px; }
.rf-clock b { display: block; font-size: 30px; font-weight: 900; letter-spacing: .04em; line-height: 1.15; margin-top: 2px; }
.rf-warn { margin-top: 10px; background: rgba(255, 209, 102, .16); border: 1px solid rgba(255, 209, 102, .4); color: #ffe38a; border-radius: 12px; padding: 8px 10px; font-size: 12px; font-weight: 700; line-height: 1.4; }
.rf-goal-v { font-size: 13px; font-weight: 800; white-space: nowrap; }
.bar.rf-bar { height: 10px; overflow: hidden; }
.bar.rf-bar > i { background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.rf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rf-stats > div { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; text-align: center; min-width: 0; }
.rf-stats .label { display: block; font-size: 8px; letter-spacing: .08em; margin-bottom: 3px; }
.rf-stats b { font-size: 15px; white-space: nowrap; }
.btn.rf-ad { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 14px; text-transform: none; letter-spacing: 0; font-size: 15px; background: linear-gradient(90deg, #6d5df5, var(--teal2)); }
.btn.rf-ad small { font-size: 11px; font-weight: 700; opacity: .85; }
.btn.rf-ad.busy .rf-ad-main::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
/* "Receber ganhos" com anúncio: carregando / assistindo / confirmando (travado, mas legível) */
.btn.claim-btn.busy:disabled { opacity: .8; }
.btn.claim-btn.busy::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
#rf-qty button:disabled { opacity: .4; }
.rf-prize-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rf-prize-row:last-child { border: 0; padding-bottom: 0; }
.rf-prize-row .info { flex: 1; min-width: 0; }
.rf-prize-row .info b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.rf-prize-row .info small { color: var(--muted); font-size: 11px; }
.panel.rf-prizes { border-color: #f7d58a; background: linear-gradient(135deg, #fff8e6, #fff); }
.rf-winners li { gap: 10px; }
.rf-w { flex: 1; min-width: 0; }
.rf-w b { display: block; overflow-wrap: anywhere; }
code.rf-hash { display: block; margin-top: 4px; padding: 8px 10px; border-radius: 10px; font-family: ui-monospace, monospace; font-size: 11px; line-height: 1.45; word-break: break-all; white-space: normal; user-select: all; -webkit-user-select: all; }
.rf-check { margin-top: 12px; font-size: 13px; font-weight: 700; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { .rf-entry::after, .btn.rf-ad.busy .rf-ad-main::before { animation: none; } }

/* ---------- Bottom nav ---------- */
.tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: 496px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); backdrop-filter: blur(10px); border-radius: 22px; box-shadow: 0 12px 34px rgba(76, 44, 140, .18); display: flex; padding: 6px; z-index: 40; }
.tabs button { flex: 1; background: transparent; border-radius: 16px; padding: 8px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 9.5px; font-weight: 700; position: relative; }
.tabs button svg { width: 20px; height: 20px; }
.tabs button.on { color: var(--teal); }
.tabs button.on::before { content: ''; position: absolute; top: 2px; width: 26px; height: 3px; border-radius: 999px; background: var(--teal); }
.tabs button .nb { position: absolute; top: 4px; right: 12%; min-width: 16px; height: 16px; border-radius: 999px; background: var(--red); color: #fff; font-size: 9px; display: grid; place-items: center; padding: 0 4px; }

/* ---------- Tutorial ---------- */
.tut-overlay { position: fixed; inset: 0; z-index: 38; background: rgba(30, 18, 71, .55); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 16px 16px calc(var(--nav-h) + 20px); animation: fade .2s; }
.tut { background: #fff; border-radius: 24px; width: 100%; max-width: 400px; padding: 22px 20px 18px; box-shadow: 0 24px 60px rgba(30, 18, 71, .35); position: relative; animation: up .25s; }
.tut .tut-skip { position: absolute; top: 12px; right: 14px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.tut .tut-art { height: 150px; display: grid; place-items: center; margin: 6px 0 12px; }
.tut .tut-art img { max-height: 150px; filter: drop-shadow(0 14px 18px rgba(30, 18, 71, .25)); }
.tut .tut-art .big { font-size: 74px; filter: drop-shadow(0 10px 14px rgba(30, 18, 71, .2)); }
.tut .tut-art .mini-cards { display: flex; gap: 6px; }
.tut .tut-art .mini-cards img { height: 120px; border-radius: 8px; }
.tut .tut-art .mini-cards img:nth-child(2) { transform: translateY(-8px) scale(1.06); }
.tut h3 { margin: 0 0 6px; font-size: 20px; text-align: center; }
.tut p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; text-align: center; min-height: 60px; }
.tut .dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0 12px; }
.tut .dots i { width: 7px; height: 7px; border-radius: 50%; background: #ddd6f0; }
.tut .dots i.on { width: 20px; border-radius: 999px; background: var(--teal); }
.tut .tut-nav { display: flex; gap: 8px; }
.tut .tut-nav .btn { padding: 13px; }
.tut .tut-hint { font-size: 11px; color: var(--teal); font-weight: 700; text-align: center; margin-top: 8px; }
.tabs button.hint { color: var(--teal); }
.tabs button.hint::after { content: ''; position: absolute; top: 4px; left: 50%; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; border: 2px solid var(--teal); animation: pulse 1.1s ease-out infinite; }
@keyframes pulse { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* ---------- Toast / loading ---------- */
#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px); transform: translateX(-50%) translateY(20px); background: #2a1f57; border: 1px solid #3b2a7a; color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s; z-index: 70; max-width: 90%; text-align: center; box-shadow: var(--shadow); white-space: pre-line; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: #b91c3b; border-color: #e5484d; }
.loading { text-align: center; color: var(--muted); padding: 40px 0; }
.spinner { width: 28px; height: 28px; border: 3px solid #ece8f8; border-top-color: var(--teal); border-radius: 50%; margin: 0 auto 10px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fatal { padding: 40px 20px; text-align: center; }
.fatal h2 { margin-bottom: 8px; }
code { background: #f1eef9; padding: 2px 6px; border-radius: 6px; font-size: 12px; }

/* ---------- Manutenção (tela cheia) + aviso no topo ---------- */
.maint { position: fixed; inset: 0; z-index: 90; display: flex; overflow-y: auto; overscroll-behavior: contain; padding: calc(20px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)); background: radial-gradient(700px 420px at 50% -10%, rgba(168, 85, 247, .2), transparent 60%), linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); animation: fade .2s; }
.maint-box { margin: auto; width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px 20px 20px; text-align: center; box-shadow: 0 24px 60px rgba(30, 18, 71, .18); }
.maint-ico { font-size: 64px; line-height: 1; margin-bottom: 14px; filter: drop-shadow(0 10px 14px rgba(30, 18, 71, .2)); }
.maint h2 { margin: 0 0 8px; font-size: 21px; }
.maint-msg { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.maint .btn { margin-top: 18px; }
body.maint-on { overflow: hidden; }
.game-notice { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; padding: 7px 7px 7px 12px; background: linear-gradient(90deg, var(--blue-soft), #fff); border: 1px solid rgba(124, 58, 237, .22); border-radius: 14px; color: var(--navy); font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.game-notice .gn-ico { flex-shrink: 0; padding-top: 3px; }
.game-notice .gn-text { flex: 1; min-width: 0; padding-top: 3px; white-space: pre-line; overflow-wrap: anywhere; }
.game-notice .gn-x { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: rgba(124, 58, 237, .1); color: var(--teal); font-size: 12px; font-weight: 800; display: grid; place-items: center; }

/* ---------- Menu "Mais": cartão flutuante acima da barra de abas ---------- */
.tabs button .nb[hidden], [data-sec][hidden] { display: none !important; }
.tabs button.menu-open { color: var(--teal); background: var(--blue-soft); }
#more-menu .mm-backdrop { position: fixed; inset: 0; z-index: 44; background: rgba(28, 22, 51, .12); }
#more-menu .mm-card { position: fixed; z-index: 45; right: max(14px, calc((100vw - 496px) / 2 + 4px)); bottom: calc(84px + env(safe-area-inset-bottom)); width: min(236px, calc(100vw - 28px)); max-height: calc(100vh - 140px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 44px rgba(76, 44, 140, .22), 0 2px 6px rgba(76, 44, 140, .08); padding: 4px 0; transform-origin: 85% 100%; animation: mmIn .16s cubic-bezier(.2, .9, .3, 1.15) both; }
#more-menu .mm-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 18px; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--navy); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
#more-menu .mm-item:last-child { border-bottom: 0; }
#more-menu .mm-item:active, #more-menu .mm-item:hover { background: var(--panel2); }
#more-menu .mm-item:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
#more-menu .mm-ico { display: grid; place-items: center; width: 24px; height: 24px; color: var(--navy); flex: none; }
#more-menu .mm-ico svg { width: 22px; height: 22px; }
#more-menu .mm-label { flex: 1; }
#more-menu .mm-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.more-title { margin: 2px 0 12px; }
@keyframes mmIn { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #more-menu .mm-card { animation: none; } }

/* ---------- Tarefas de boas-vindas ---------- */
.task .mbar { height: 4px; background: #ece8f8; border-radius: 999px; margin-top: 6px; overflow: hidden; }
.task .mbar i { display: block; height: 100%; background: var(--teal); }
.task small.warn { display: block; color: var(--red); margin-top: 4px; }
.task-banner { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 14px 16px; border-radius: 18px; background: linear-gradient(120deg, #fff4d6, #ffe7ad); border: 1px solid #f6d27a; color: #5a3b00; cursor: pointer; box-shadow: var(--shadow-sm); }
.task-banner .tb-ico { font-size: 26px; line-height: 1; }
.task-banner div { flex: 1; min-width: 0; }
.task-banner b { display: block; font-size: 14px; }
.task-banner small { display: block; font-size: 12px; opacity: .8; margin-top: 2px; }
.task-banner .arrow { font-weight: 800; }

/* álbum: cópias repetidas por raridade */
.rarity-summary em.dup { display: block; margin-top: 2px; font-style: normal; font-size: 9px; font-weight: 800; color: var(--gold); letter-spacing: .02em; }
.section-head em.dup { font-style: normal; font-weight: 800; color: var(--gold); }

/* duelo: time de até 3 cartas e confirmação antes de lutar */
.team-row.three { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.team-row.three .tcard { font-size: 9px; }
.duel-confirm-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 14px; }
.duel-confirm-actions .btn { margin: 0; }

/* carteira: bônus automático de depósito */
.dep-bonus { margin: 0 0 10px; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 700; color: #6b4a00; background: linear-gradient(180deg, #fff6d6, #ffecb3); border: 1px solid #fcd98a; }

/* tutorial: ilustrações (já vêm com sombra e brilho na imagem) */
.tut .tut-art img.tut-img { width: 100%; max-width: 330px; max-height: 176px; height: auto; object-fit: contain; filter: none; }
.tut .tut-art:has(img.tut-img) { height: 176px; }
