/* =========================================================
   CARDLY — visual "Neon de fliperama" (escuro) + "Papel" (claro)
   ========================================================= */
:root {
  --bg: #0e0d1f; --bg2: #15142c; --card: #1b1a36; --card2: #25234a; --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.16);
  --txt: #f4f1ff; --mut: #a4a0c8; --pri: #ff6b4a; --pri2: #ffb547; --acc: #3ee0cf; --vio: #8b6cff; --bad: #ff5470;
  --pri-soft: rgba(255,107,74,.14); --acc-soft: rgba(62,224,207,.13);
  --sh: 0 14px 34px rgba(0,0,0,.35); --r: 14px; --ink: #0b0a18;
  --fh: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif; --fb: "DM Sans", "Segoe UI", system-ui, sans-serif;
}
body.light {
  --bg: #f5efe4; --bg2: #ede3d2; --card: #fffaf1; --card2: #f1e7d6; --line: rgba(40,30,20,.12); --line2: rgba(40,30,20,.22);
  --txt: #231a33; --mut: #6e6479; --pri-soft: rgba(255,107,74,.12); --acc-soft: rgba(20,170,155,.12); --acc: #11a497;
  --sh: 0 10px 24px rgba(60,40,20,.12);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--fb); background: var(--bg); color: var(--txt); min-height: 100dvh; overflow-x: hidden; }
body.noscroll { overflow: hidden; }
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 500px at 85% -10%, rgba(139,108,255,.22), transparent 60%), radial-gradient(700px 500px at -10% 30%, rgba(255,107,74,.12), transparent 60%), radial-gradient(600px 400px at 60% 110%, rgba(62,224,207,.10), transparent 60%); }
.bg-fx::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 60%); opacity: .5; }
body.light .bg-fx { background: radial-gradient(800px 500px at 90% -10%, rgba(255,181,71,.25), transparent 60%), radial-gradient(700px 500px at -10% 40%, rgba(139,108,255,.10), transparent 60%); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-family: var(--fh); font-weight: 800; letter-spacing: -.01em; }
.muted { color: var(--mut); } .small { font-size: 13px; } .ok { color: var(--acc); } .center { text-align: center; }
.tl { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--mut); text-transform: uppercase; }

/* ---------- Logo ---------- */
.logo-ic, .logo-img { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 4px 10px rgba(255,107,74,.35)); }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-t { font-family: var(--fh); font-weight: 800; font-size: 24px; letter-spacing: -.04em; background: linear-gradient(90deg, var(--txt), var(--txt) 60%, var(--pri2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand.big .logo-ic { width: 58px; height: 58px; } .brand.big .brand-t { font-size: 44px; }
/* ---------- Botões / campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 700; white-space: nowrap;
  background: linear-gradient(120deg, var(--pri), var(--pri2)); color: #1d0c06; box-shadow: 0 6px 20px rgba(255,107,74,.28); transition: transform .12s, box-shadow .2s, filter .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255,107,74,.38); }
.btn:active { transform: translateY(1px); }
.btn:disabled { filter: grayscale(1) opacity(.45); cursor: default; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--txt); border: 1px solid var(--line2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--pri); color: var(--pri); }
.btn.danger { background: var(--bad); color: #fff; box-shadow: none; }
.btn.big { padding: 14px 26px; font-size: 16px; }
.btn.sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.btn.full { width: 100%; }
.btn small { opacity: .75; font-weight: 600; }
.pill { background: rgba(0,0,0,.18); padding: 2px 8px; border-radius: 99px; font-size: 12px; }
.link { color: var(--pri); font-weight: 700; }
.link:hover { text-decoration: underline; }
.x { width: 30px; height: 30px; border-radius: 8px; color: var(--mut); display: grid; place-items: center; flex: none; }
.x:hover { background: var(--card2); color: var(--txt); }
input, select { background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 11px 13px; outline: none; width: 100%; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
select option { background: var(--card); }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 13px; margin: 10px 0; color: var(--mut); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.row.end { justify-content: flex-end; } .row.center { justify-content: center; } .row.between { justify-content: space-between; margin: 0 0 14px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 6px; background: var(--card2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.chip.ok { background: var(--acc-soft); color: var(--acc); border-color: transparent; }
.chip.bad { background: rgba(255,84,112,.14); color: var(--bad); border-color: transparent; }
.chip.gold { background: rgba(255,181,71,.15); color: var(--pri2); border-color: rgba(255,181,71,.35); }
.btnchip { cursor: pointer; } .btnchip.on { background: var(--txt); color: var(--bg); border-color: var(--txt); }
.nb { font-style: normal; background: var(--acc); color: #04221f; font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: inline-grid; place-items: center; margin-left: 6px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); vertical-align: middle; margin: 0 3px; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--pri); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cabeçalho ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hdr-in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 10px 16px; height: 62px; }
.topnav { display: none; }
.hdr-r { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.coins { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-variant-numeric: tabular-nums; }
.coin { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3c4, var(--pri2) 45%, #c77a10); box-shadow: 0 0 8px rgba(255,181,71,.6); }
.ib { position: relative; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; border: 1px solid transparent; }
.ib:hover { background: var(--card); border-color: var(--line); }
.ib i { position: absolute; top: -3px; right: -3px; font-style: normal; background: var(--pri); color: #1d0c06; font-size: 10.5px; font-weight: 800; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; display: grid; place-items: center; }
.ib.me { background: var(--card2); border-color: var(--line2); font-size: 19px; border-radius: 50%; }
.page-head { max-width: 1240px; margin: 0 auto; padding: 22px 16px 4px; }
.page-head h1 { font-size: 30px; display: inline-block; position: relative; }
.page-head h1::after { content: ""; display: block; height: 4px; width: 42px; margin-top: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--pri), var(--acc)); }
main#view { max-width: 1240px; margin: 0 auto; padding: 14px 16px 110px; }

@media (min-width: 960px) {
  .topnav { display: flex; gap: 2px; align-items: center; }
  .topnav a, .topnav button { position: relative; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: var(--mut); display: flex; align-items: center; }
  .topnav a:hover, .topnav button:hover { color: var(--txt); background: var(--card); }
  .topnav .on { color: var(--txt); }
  .topnav .on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 3px; border-radius: 3px 3px 0 0; background: var(--pri); box-shadow: 0 0 12px var(--pri); }
  .bottom { display: none !important; }
  main#view { padding: 18px 16px 60px; }
  .page-head h1 { font-size: 38px; }
}

/* ---------- Barra inferior (celular) ---------- */
.bottom { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; background: color-mix(in srgb, var(--bg2) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.bottom a, .bottom button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--mut); padding: 6px 0; }
.bottom span { position: relative; font-size: 20px; filter: grayscale(.6); }
.bottom .on { color: var(--txt); } .bottom .on span { filter: none; }
.bottom .nb { position: absolute; top: -6px; right: -16px; margin: 0; }
.bn-pack { position: relative; }
.bn-pack .logo-ic { width: 56px; height: 56px; padding: 8px; border-radius: 18px; background: var(--card2); border: 1px solid var(--line2); transform: translateY(-16px); box-shadow: 0 0 20px rgba(255,107,74,.35); }
.bn-pack .nb { position: absolute; top: -18px; right: 18%; }
.sheet { position: fixed; inset: 0; z-index: 45; background: rgba(5,4,15,.5); display: flex; align-items: flex-end; }
.sheet-in { background: var(--bg2); width: 100%; border-radius: 20px 20px 0 0; border-top: 1px solid var(--line2); padding: 16px 16px 100px; max-height: 80dvh; overflow: auto; animation: up .25s; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sheet-grid a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; text-align: center; }
.sheet-grid a.on { border-color: var(--pri); }
.sheet-grid span { font-size: 22px; }
.sheet-grid .nb { position: absolute; top: 6px; right: 6px; }
.nav-g { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--mut); text-transform: uppercase; margin: 14px 2px 8px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 960px) {
  .sheet { background: transparent; align-items: flex-start; justify-content: center; padding-top: 64px; }
  .sheet-in { width: min(560px, 90vw); border-radius: 16px; border: 1px solid var(--line2); padding: 6px 16px 16px; box-shadow: var(--sh); animation: fade .15s; }
}

/* ---------- Notificações / chat / modal / toast ---------- */
.dropdown { position: fixed; z-index: 60; top: 66px; right: 12px; width: min(360px, calc(100vw - 24px)); max-height: 70dvh; overflow: auto; background: var(--bg2); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--sh); }
.dd-h { padding: 14px 16px; border-bottom: 1px solid var(--line); font-family: var(--fh); }
.dd-i { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.dd-i:hover { background: var(--card); }
.dd-i small { color: var(--mut); }
.dd-i.new { border-left: 3px solid var(--pri); }
.pad { padding: 16px; }
.chat { position: fixed; z-index: 65; top: 0; bottom: 0; right: 0; width: min(400px, 100%); background: var(--bg2); border-left: 1px solid var(--line2); display: flex; flex-direction: column; box-shadow: -20px 0 40px rgba(0,0,0,.35); animation: slideIn .22s ease-out; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
.chat-h { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.chat-h b { font-family: var(--fh); }
.chat-h small { font-size: 12px; white-space: nowrap; }
.chat-tabs { display: flex; gap: 2px; margin-left: auto; background: var(--card); border-radius: 8px; padding: 3px; }
.chat-tabs button { padding: 5px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--mut); }
.chat-tabs .on { background: var(--card2); color: var(--txt); }
.chat-b { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; gap: 9px; font-size: 14px; }
.msg .av { width: 32px; height: 32px; font-size: 17px; }
.msg p { margin: 3px 0 0; background: var(--card); border: 1px solid var(--line); padding: 7px 11px; border-radius: 2px 12px 12px 12px; display: inline-block; word-break: break-word; }
.msg small { color: var(--mut); font-size: 11px; }
.msg a:hover b { text-decoration: underline; }
.msg.mine { flex-direction: row-reverse; text-align: right; }
.msg.mine p { background: var(--pri-soft); border-color: rgba(255,107,74,.3); border-radius: 12px 2px 12px 12px; }
.chat-f { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.av { width: 38px; height: 38px; border-radius: 50%; background: var(--card2); border: 1px solid var(--line2); display: grid; place-items: center; font-size: 20px; flex: none; }
.av.big { width: 76px; height: 76px; font-size: 40px; }

.modal { position: fixed; inset: 0; z-index: 70; background: rgba(5,4,15,.7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; overflow-x: hidden; animation: fade .2s; }
.modal.dark { background: radial-gradient(circle at 50% 45%, #2a1e5c, #07061a 70%); }
.modal > .box { width: min(640px, 100%); max-height: 90dvh; overflow: auto; background: var(--bg2); border-color: var(--line2); }
.box.sm { width: min(420px, 100%) !important; }
.q { font-size: 16px; line-height: 1.5; margin: 0; }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; z-index: 90; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--txt); color: var(--bg); padding: 11px 18px; border-radius: 10px; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: .3s; max-width: 90vw; text-align: center; box-shadow: var(--sh); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 960px) { .toast { bottom: 30px; } }

/* ---------- Carta (arte em tela cheia, faixa de nome embaixo) ---------- */
.ct { position: relative; aspect-ratio: 5/7; border-radius: 10px; cursor: pointer; container-type: inline-size; color: #fff; text-align: left;
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .15s; --rc: #6d6a8a; }
.ct-in { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: var(--ink); border: 3px solid var(--ink); box-shadow: 0 0 0 1px var(--rc), 0 10px 24px rgba(0,0,0,.35); }
.ct.r-incomum { --rc: #3ee0cf; } .ct.r-rara { --rc: #4d8dff; } .ct.r-epica { --rc: #b46bff; }
.ct.r-lendaria { --rc: #ffb547; } .ct.r-lendaria .ct-in { box-shadow: 0 0 0 1px var(--rc), 0 0 18px rgba(255,181,71,.45), 0 10px 24px rgba(0,0,0,.35); }
.ct-art { position: absolute; inset: 0; display: grid; place-items: start center; border-radius: 7px; overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 4cqw, transparent 4cqw 8cqw), radial-gradient(120% 80% at 50% 30%, color-mix(in srgb, var(--oc) 75%, #fff) 0, var(--oc) 40%, color-mix(in srgb, var(--oc) 35%, #0b0a18) 100%); }
.ct-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 36%, rgba(255,255,255,.55), transparent 32%); }
.ct-art span { position: relative; z-index: 1; margin-top: 15cqw; font-size: 52cqw; line-height: 1; filter: drop-shadow(0 3cqw 3cqw rgba(0,0,0,.4)); }
.ct-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14cqw 6cqw 5cqw; display: flex; flex-direction: column; background: linear-gradient(180deg, transparent, rgba(8,7,20,.85) 45%, rgba(8,7,20,.96)); }
.ct-info b { font-family: var(--fh); font-size: 9.5cqw; font-weight: 800; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-info small { font-size: 6.2cqw; color: rgba(255,255,255,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-info .rar { font-size: 6.5cqw; color: var(--rc); letter-spacing: .1em; text-shadow: 0 0 6px var(--rc); }
.nivel { position: absolute; z-index: 2; top: 4cqw; left: 4cqw; min-width: 13cqw; height: 13cqw; padding: 0 2cqw; display: grid; place-items: center; font-family: var(--fh); font-weight: 800; font-size: 6.5cqw; color: var(--ink); background: #fff; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.foil-tag { position: absolute; z-index: 2; top: 5cqw; right: 4cqw; font-size: 5.5cqw; font-weight: 800; letter-spacing: .15em; padding: .6cqw 2.5cqw; border-radius: 2cqw; color: #3a2400; background: linear-gradient(90deg, #ffe08a, #fff6d2, #f0b43a); }
.fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; }
.ac-holografica .fx { background: linear-gradient(115deg, transparent 20%, #ff00aa66 33%, #ffee0066 43%, #00ffcc66 53%, #0088ff66 63%, transparent 78%); background-size: 300% 300%; background-position: var(--mx, 0%) var(--my, 0%); mix-blend-mode: color-dodge; animation: holo 5s ease-in-out infinite alternate; }
.ct.tilting .fx { animation: none !important; }
@keyframes holo { to { background-position: 100% 100%; } }
.ac-lenticular .fx { background: repeating-linear-gradient(100deg, #ff5ec455 0 7px, #5ee7ff55 7px 14px, #fff35e55 14px 21px); mix-blend-mode: overlay; animation: lenti 2.5s linear infinite; }
@keyframes lenti { to { background-position: 42px 0; } }
.ac-estilhacada .fx { background: repeating-conic-gradient(from 10deg at 28% 35%, #ffffff55 0 7deg, transparent 7deg 23deg), repeating-conic-gradient(from 0deg at 76% 72%, #ffffff44 0 5deg, transparent 5deg 19deg), linear-gradient(135deg, #a0f0ff33, #ff9ef533); mix-blend-mode: overlay; }
.ac-pixelada .ct-art span { filter: drop-shadow(1.5cqw 0 0 #ff3d9a99) drop-shadow(-1.5cqw 0 0 #3de0ff99); animation: glitch 2.4s steps(1) infinite; }
.ac-pixelada .fx { background: linear-gradient(90deg, transparent 50%, rgba(0,0,0,.1) 0) 0 0/5cqw 5cqw, linear-gradient(transparent 50%, rgba(0,0,0,.1) 0) 0 0/5cqw 5cqw; }
@keyframes glitch { 0%, 88% { transform: none; } 90% { transform: translate(2cqw, -1cqw); } 94% { transform: translate(-2cqw, 1cqw); } }
.ac-prismatica .fx { background: conic-gradient(from 0deg at 50% 50%, #ff000055, #ff990055, #ffff0055, #00ff6655, #00ffff55, #3366ff55, #ff00ff55, #ff000055); mix-blend-mode: color-dodge; animation: prism 4s linear infinite; }
@keyframes prism { to { filter: hue-rotate(360deg); } }
.ct.foil .ct-in { border-color: #c99a2e; }
.ct.foil .ct-in::after { content: ""; position: absolute; inset: 0; z-index: 4; background: linear-gradient(105deg, transparent 40%, rgba(255,236,160,.7) 50%, transparent 60%); background-size: 250% 100%; animation: shine 3s infinite; pointer-events: none; mix-blend-mode: overlay; }
@keyframes shine { 0% { background-position: 150% 0; } 60%, 100% { background-position: -150% 0; } }
.ct.missing .ct-in { filter: grayscale(1) brightness(.55); }
.ct.missing .ct-art span { filter: brightness(0) opacity(.5); }
.ct.sel { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 10px; }
.ct .cnt, .ct .wish, .ct .new { position: absolute; z-index: 5; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 7px; }
.ct .cnt { right: -6px; top: -7px; background: var(--acc); color: #04221f; }
.ct .wish { left: -6px; top: -7px; background: var(--bg2); border: 1px solid var(--line2); }
.ct .new { left: 50%; top: -10px; transform: translateX(-50%); background: var(--pri); color: #1d0c06; letter-spacing: .1em; box-shadow: 0 0 12px rgba(255,107,74,.6); }

.verso { aspect-ratio: 5/7; width: 100%; border-radius: 10px; background: var(--vbg); display: grid; place-items: center; border: 3px solid var(--ink); box-shadow: 0 0 0 1px var(--line2), 0 10px 24px rgba(0,0,0,.35); }
.verso .logo-ic { width: 46%; height: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)) saturate(.9); opacity: .95; }

.flip { position: relative; perspective: 900px; aspect-ratio: 5/7; cursor: pointer; }
.flip-in { position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.3,.7,.3,1); transform-style: preserve-3d; }
.flip.on .flip-in { transform: rotateY(180deg); }
.flip .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip .front { transform: rotateY(180deg); }
.flip.glow.on::before { content: ""; position: absolute; inset: -18%; z-index: -1; border-radius: 50%; background: conic-gradient(var(--pri2), transparent 20%, #ff7ad9 40%, transparent 60%, var(--acc) 80%, var(--pri2)); filter: blur(18px); animation: spin 4s linear infinite; }

/* ---------- Grades / listas ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 12px; }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 20px 18px; } }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 14px; }
.sec-h h3, .sec-t { font-size: 20px; }
.sec-t { margin: 30px 0 12px; }
.sec-h a { color: var(--pri); font-weight: 700; font-size: 14px; }
.empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 56px 20px; font-size: 42px; border: 1px dashed var(--line2); border-radius: var(--r); }
.empty b { font-family: var(--fh); font-size: 19px; } .empty span { font-size: 14px; color: var(--mut); max-width: 360px; }
.empty .btn { font-size: 15px; margin-top: 10px; }
.empty.loading { font-size: 14px; color: var(--mut); border: 0; }
.list { display: flex; flex-direction: column; gap: 6px; }
.li { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; transition: border-color .2s; }
.li:hover { border-color: var(--line2); }
.li.me-row { border-color: var(--pri); background: var(--pri-soft); }
.li-ic { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; font-size: 26px; background: color-mix(in srgb, var(--oc) 30%, transparent); flex: none; }
.li-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.li-main small { color: var(--mut); font-size: 12.5px; }
.li-r { display: flex; align-items: center; gap: 6px; }
.li-v { font-family: var(--fh); font-size: 18px; font-variant-numeric: tabular-nums; }
.pos { width: 32px; text-align: center; font-family: var(--fh); font-weight: 800; color: var(--mut); }

/* ---------- Início ---------- */
.hero-home { position: relative; display: grid; gap: 20px; align-items: center; padding: 24px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line2);
  background: radial-gradient(500px 260px at 100% 0%, rgba(139,108,255,.35), transparent 70%), radial-gradient(400px 260px at 0% 100%, rgba(255,107,74,.25), transparent 70%), var(--card); }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--acc); }
.hh-txt h2 { font-size: clamp(32px, 6vw, 52px); line-height: 1; margin: 6px 0 10px; }
.hh-txt p { margin: 0; color: var(--mut); }
.hh-stack { position: relative; height: 190px; }
.hh-stack .ct { position: absolute; width: 118px; left: 50%; top: 0; }
.hh-stack .st0 { transform: translateX(-130%) rotate(-10deg) translateY(14px); }
.hh-stack .st1 { transform: translateX(-50%); z-index: 2; }
.hh-stack .st2 { transform: translateX(30%) rotate(10deg) translateY(14px); }
@media (min-width: 760px) { .hero-home { grid-template-columns: 1.3fr 1fr; padding: 34px 40px; } .hh-stack { height: 230px; } .hh-stack .ct { width: 140px; } }
.quests { display: flex; flex-direction: column; gap: 8px; }
.quest { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.quest.ready { border-color: rgba(255,107,74,.5); background: linear-gradient(90deg, var(--pri-soft), var(--card) 60%); }
.q-ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 22px; background: var(--card2); flex: none; }
.q-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.q-t b { font-family: var(--fh); font-size: 16px; }
.q-t small { color: var(--mut); font-size: 13px; }
.q-ok { color: var(--acc); font-weight: 800; padding: 0 10px; }
.avisos { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.avisos summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; font-weight: 700; }
.avisos summary::-webkit-details-marker { display: none; }
.avisos[open] summary small { visibility: hidden; }
.aviso { margin: 0 12px 12px; padding: 12px 14px; border-radius: 10px; background: var(--bg2); border-left: 3px solid var(--acc); }
.aviso.evento { border-color: var(--pri); } .aviso.dica { border-color: var(--vio); }
.av-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.aviso p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--mut); }
.obras { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.obra { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; transition: border-color .2s; }
.obra:hover { border-color: var(--oc); }
.oi { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, var(--oc) 28%, transparent); flex: none; }
.ob-n { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ob-n small { color: var(--mut); font-size: 12.5px; }
.bar { height: 6px; background: var(--bg2); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--oc); border-radius: inherit; box-shadow: 0 0 8px var(--oc); }

/* ---------- Coleção ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 14px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--card); padding: 14px 8px; text-align: center; }
.stat b { display: block; font-family: var(--fh); font-size: 22px; font-variant-numeric: tabular-nums; }
.stat small { color: var(--mut); font-size: 12px; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; align-items: center; }
.filters .search { grid-column: 1 / -1; }
@media (min-width: 960px) { .filters { grid-template-columns: 2fr 1fr 1fr 1fr; } .filters .search { grid-column: auto; } }
.tog { flex-direction: row; align-items: center; margin: 0; font-weight: 600; color: var(--txt); }
.tog input { width: auto; accent-color: var(--pri); }

/* ---------- Pacotes (envelope serrilhado) ---------- */
.pack { position: relative; container-type: inline-size; aspect-ratio: .62; width: 100%; color: #fff;
  clip-path: polygon(0 2%, 5% 0, 10% 2%, 15% 0, 20% 2%, 25% 0, 30% 2%, 35% 0, 40% 2%, 45% 0, 50% 2%, 55% 0, 60% 2%, 65% 0, 70% 2%, 75% 0, 80% 2%, 85% 0, 90% 2%, 95% 0, 100% 2%, 100% 98%, 95% 100%, 90% 98%, 85% 100%, 80% 98%, 75% 100%, 70% 98%, 65% 100%, 60% 98%, 55% 100%, 50% 98%, 45% 100%, 40% 98%, 35% 100%, 30% 98%, 25% 100%, 20% 98%, 15% 100%, 10% 98%, 5% 100%, 0 98%);
  background: linear-gradient(90deg, rgba(255,255,255,.18), transparent 12%, transparent 88%, rgba(0,0,0,.25)), conic-gradient(from 200deg at 70% 30%, var(--p1), color-mix(in srgb, var(--p1) 50%, var(--p2)), var(--p1), color-mix(in srgb, var(--p1) 60%, #000), var(--p1)); filter: drop-shadow(0 18px 28px rgba(0,0,0,.45)); }
.pack::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%); background-size: 300% 100%; animation: shine 3.5s infinite; mix-blend-mode: overlay; }
.pk-top { position: absolute; top: 9%; left: 0; right: 0; height: 0; border-top: 2px dashed rgba(255,255,255,.6); transition: transform .6s, opacity .6s; }
.pk-body { position: absolute; inset: 12% 0 6%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 6cqw; text-align: center; }
.pk-brand { font-family: var(--fh); font-weight: 800; font-size: 7cqw; letter-spacing: .3em; opacity: .9; }
.pk-ic { font-size: 40cqw; line-height: 1; filter: drop-shadow(0 4cqw 6cqw rgba(0,0,0,.35)); animation: float 3s ease-in-out infinite; }
.pk-body b { font-family: var(--fh); font-size: 11cqw; font-weight: 800; line-height: 1.05; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.pk-body small { font-size: 5.5cqw; font-weight: 700; letter-spacing: .1em; background: rgba(0,0,0,.28); padding: 1.2cqw 4cqw; border-radius: 99px; }
@keyframes float { 50% { transform: translateY(-5%); } }
.pk-hero { display: grid; gap: 22px; align-items: center; padding: 26px; border-radius: 20px; border: 1px solid var(--line2);
  background: radial-gradient(400px 300px at 25% 50%, color-mix(in srgb, var(--pri) 22%, transparent), transparent 70%), var(--card); }
.pk-stage { display: flex; align-items: center; justify-content: center; gap: 12px; }
.pk-stage .pack { width: min(220px, 55vw); }
.arrow { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); font-size: 22px; font-weight: 800; color: var(--mut); flex: none; }
.arrow:hover { color: var(--txt); border-color: var(--pri); }
.pk-info h2 { font-size: 36px; margin: 6px 0; }
@media (min-width: 960px) { .pk-hero { grid-template-columns: 1fr 1.2fr; padding: 34px; } }
.pk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.pk-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; text-align: center; transition: border-color .2s, transform .2s; }
.pk-item:hover { transform: translateY(-2px); border-color: var(--line2); }
.pk-item.on { border-color: var(--pri); box-shadow: 0 0 0 1px var(--pri), 0 0 20px rgba(255,107,74,.25); }
.pk-item small { color: var(--mut); font-weight: 600; }
.pack.mini { width: 66%; } .pack.mini::after, .pack.mini .pk-ic { animation: none; }
.opening { width: 100%; max-width: 900px; display: flex; flex-direction: column; align-items: center; color: #fff; }
.hint { opacity: .85; margin: 0 0 20px; letter-spacing: .05em; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .4; } }
.pack.big { width: min(260px, 62vw); cursor: pointer; transition: transform .2s; }
.pack.big:hover { transform: rotate(-2deg) scale(1.03); }
.pack.tear { animation: shake .55s forwards; }
.pack.tear .pk-top { transform: translateY(-300%); opacity: 0; }
@keyframes shake { 20% { transform: rotate(-4deg); } 40% { transform: rotate(4deg); } 60% { transform: rotate(-3deg) scale(1.05); } 100% { transform: scale(1.2); opacity: 0; } }
.reveal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; width: 100%; }
.reveal .flip { animation: dealIn .5s backwards; }
@keyframes dealIn { from { transform: translateY(60px) scale(.7); opacity: 0; } }
@media (max-width: 640px) { .reveal { grid-template-columns: repeat(3, 1fr); } }
.opening .btn.ghost { color: #fff; border-color: rgba(255,255,255,.3); }

/* ---------- Detalhe ---------- */
.modal.wide { align-items: flex-start; }
@media (min-width: 700px) { .modal.wide { align-items: center; } }
.detail { display: grid; gap: 20px; width: min(840px, 100%); align-items: center; }
.detail-card { width: min(260px, 62vw); margin: 0 auto; }
.detail-info { background: var(--bg2) !important; border-color: var(--line2) !important; }
.detail-info h2 { font-size: 30px; }
@media (min-width: 700px) { .detail { grid-template-columns: 300px 1fr; } .detail-card { width: 100%; } }
dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; margin: 14px 0; font-size: 14px; }
dt { color: var(--mut); } dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.acts { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 8px; }
.acts .btn { justify-content: flex-start; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin: 10px 0; }
.center-card { width: 150px; margin: 8px auto; }

/* ---------- Abas / trocas ---------- */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; padding: 11px 16px; font-weight: 600; font-size: 14.5px; color: var(--mut); white-space: nowrap; display: inline-flex; align-items: center; }
.tabs button:hover { color: var(--txt); }
.tabs .on { color: var(--txt); }
.tabs .on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--pri); }
.trade { margin-bottom: 12px; }
.trade-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.who { display: flex; align-items: center; gap: 10px; }
.who b { font-family: var(--fh); }
.who small { display: block; color: var(--mut); font-size: 12.5px; }
.trade-b { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 14px; }
.side-c { display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.side-c .ct { width: min(130px, 100%); }
.side-c small { font-weight: 700; color: var(--mut); }
.swap { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--ink); background: var(--acc); font-weight: 800; box-shadow: 0 0 16px var(--acc-soft); }
.nova .tl { display: block; margin: 18px 0 10px; }
.pick { display: grid; grid-auto-flow: column; grid-auto-columns: 100px; gap: 12px; overflow-x: auto; padding: 10px 4px 14px; }
.pick.tall { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); max-height: 60dvh; overflow-y: auto; }
.cmp { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-top: 12px; flex-wrap: wrap; }
.bar2 { flex: 1; min-width: 100px; height: 8px; background: var(--vio); border-radius: 99px; overflow: hidden; }
.bar2 i { display: block; height: 100%; background: var(--pri); }

/* ---------- Leilão ---------- */
.auc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.auc { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; }
.auc-i { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.auc-v { font-family: var(--fh); font-size: 26px; color: var(--pri2); }
.bid { display: flex; gap: 6px; margin-top: 8px; }
.bid input { padding: 7px 10px; }

/* ---------- Memória ---------- */
.mem-intro { text-align: center; max-width: 520px; margin: 20px auto; padding: 34px; }
.big-ic { font-size: 60px; }
.mem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 560px; margin: 10px auto; }
.mem .flip.done { opacity: .45; cursor: default; }

/* ---------- Loja / perfil / config ---------- */
.shop-h { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.shop-h h2 { font-size: 24px; }
.coins.big { font-size: 20px; padding: 10px 16px; }
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.shop-i { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; }
.shop-i .verso { width: 78%; }
.prof { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.prof div { flex: 1; } .prof h2 { font-size: 28px; }
.form h2 { font-size: 18px; margin: 22px 0 6px; } .form h2:first-child { margin-top: 0; }
.box + .box, form.box + .box, .box + form.box { margin-top: 14px; }
.av-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.av-pick button { width: 42px; height: 42px; border-radius: 10px; background: var(--bg2); font-size: 22px; border: 1px solid var(--line); }
.av-pick .on { border-color: var(--pri); box-shadow: 0 0 0 2px var(--pri-soft); }
.stats-dl { grid-template-columns: 1fr auto; }
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 16px; }
.step { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.step b { font-family: var(--fh); }
.step p { margin: 6px 0 0; font-size: 14px; color: var(--mut); line-height: 1.5; }
.nota { margin-bottom: 10px; }
.nota summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nota summary b { font-family: var(--fh); }
.nota .nt { width: 100%; color: var(--mut); }
.nota li { margin: 6px 0; line-height: 1.5; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl td, .tbl th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Entrar / criar conta ---------- */
.auth { position: relative; min-height: 100dvh; display: grid; place-items: center; padding: 30px 16px; overflow: hidden; }
.auth-float { position: absolute; inset: 0; pointer-events: none; }
.auth-float .ct { position: absolute; width: 130px; opacity: .55; animation: drift 9s ease-in-out infinite; }
.fl0 { left: 4%; top: 8%; --r: -14deg; } .fl1 { left: 16%; top: 58%; --r: 9deg; animation-delay: -2s !important; }
.fl2 { right: 6%; top: 10%; --r: 12deg; animation-delay: -4s !important; } .fl3 { right: 17%; top: 60%; --r: -8deg; animation-delay: -1s !important; }
.fl4 { left: 30%; top: -6%; --r: 6deg; animation-delay: -6s !important; } .fl5 { right: 32%; bottom: -8%; --r: -10deg; animation-delay: -3s !important; }
.fl6 { left: -2%; bottom: 2%; --r: 16deg; animation-delay: -5s !important; } .fl7 { right: -2%; top: 40%; --r: -18deg; animation-delay: -7s !important; }
@keyframes drift { 0%, 100% { transform: rotate(var(--r)) translateY(0); } 50% { transform: rotate(calc(var(--r) * -.5)) translateY(-18px); } }
@media (max-width: 700px) { .auth-float .ct { width: 90px; opacity: .3; } }
.auth-form { position: relative; z-index: 1; width: min(440px, 100%); display: flex; flex-direction: column; gap: 4px; padding: 30px 28px; border-radius: 20px;
  background: color-mix(in srgb, var(--bg2) 82%, transparent); backdrop-filter: blur(18px); border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.auth-form .brand { justify-content: center; }
.tagline { text-align: center; color: var(--mut); margin: 10px 0 4px; }
.tagline em { font-style: normal; color: var(--acc); }
.auth-form h1 { font-size: 26px; margin-top: 6px; }
.auth-form .btn.big { margin-top: 14px; }
.auth-tabs { margin: 14px 0 6px; justify-content: center; overflow: visible; }
.auth-tabs button { flex: 1; justify-content: center; }
.auth-form .small .link { margin: 0; }
.auth-form > .link { align-self: center; margin-top: 8px; }

/* =========================================================
   Cardly 3.0 — perfil, bordas, carteira, missões
   ========================================================= */
textarea { background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 11px 13px; outline: none; width: 100%; font: inherit; color: inherit; resize: vertical; }
textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.neg { color: var(--bad); }
.coin.big { width: 28px; height: 28px; display: inline-block; vertical-align: -4px; margin-right: 8px; }

/* avatar + bordas */
.avt { --s: 38px; position: relative; display: inline-grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; padding: 2px; flex: none; vertical-align: middle; background: var(--line2); }
.avt-in { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--card2); font-size: calc(var(--s) * .52); line-height: 1; }
.avt-in img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avt.xs { --s: 22px; padding: 1.5px; } .avt.sm { --s: 32px; } .avt.md { --s: 48px; padding: 3px; } .avt.lg { --s: 76px; padding: 4px; } .avt.xl { --s: 112px; padding: 5px; }
.b-simples { background: var(--line2); }
.b-neon { background: conic-gradient(from 0deg, #3ee0cf, #8b6cff, #ff3d9a, #3ee0cf); box-shadow: 0 0 12px rgba(62,224,207,.55); }
.b-fogo { background: conic-gradient(from 200deg, #ff3d00, #ffb547, #ff6b4a, #ff3d00); box-shadow: 0 0 14px rgba(255,107,74,.6); }
.b-gelo { background: conic-gradient(from 90deg, #e0fbff, #7fd8ff, #ffffff, #4aa8ff, #e0fbff); box-shadow: 0 0 12px rgba(127,216,255,.55); }
.b-arco-iris { background: conic-gradient(#ff4d4d, #ffb547, #ffee55, #3ee07a, #3ec8ff, #8b6cff, #ff4dd2, #ff4d4d); animation: girar 6s linear infinite; }
.b-ouro { background: conic-gradient(from 30deg, #fff3b0, #e0a800, #fff6d2, #b37a00, #fff3b0); box-shadow: 0 0 14px rgba(255,200,60,.55); }
.b-galaxia { background: radial-gradient(circle at 30% 30%, #fff 0 1px, transparent 2px), radial-gradient(circle at 70% 60%, #fff 0 1px, transparent 2px), conic-gradient(#1b0b4a, #8b6cff, #ff7ad9, #1b0b4a); box-shadow: 0 0 16px rgba(139,108,255,.7); animation: girar 10s linear infinite; }
.b-cristal { background: conic-gradient(#ffffff, #a0f0ff, #ffd6ff, #ffffff, #b4ffde, #ffffff); box-shadow: 0 0 18px rgba(255,255,255,.7), 0 0 30px rgba(160,240,255,.5); animation: girar 4s linear infinite; }
.b-arco-iris .avt-in, .b-galaxia .avt-in, .b-cristal .avt-in { animation: girar 6s linear infinite reverse; }
.b-galaxia .avt-in { animation-duration: 10s; } .b-cristal .avt-in { animation-duration: 4s; }
@keyframes girar { to { transform: rotate(360deg); } }
.ib.me { padding: 0; background: none; border: 0; }
.who-link { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; }
.who-line { display: flex; align-items: center; gap: 5px; }
.who { display: flex; align-items: center; gap: 10px; }

/* início: banner, bônus, missões */
.hero-home { background-image: linear-gradient(90deg, color-mix(in srgb, var(--card) 96%, transparent) 30%, color-mix(in srgb, var(--card) 40%, transparent)), var(--banner, none), radial-gradient(500px 260px at 100% 0%, rgba(139,108,255,.35), transparent 70%), radial-gradient(400px 260px at 0% 100%, rgba(255,107,74,.25), transparent 70%); background-size: cover; background-position: center; }
.hh-txt h2 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bonus { margin-top: 16px; display: grid; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); border: 1px solid rgba(255,181,71,.45); background: linear-gradient(100deg, rgba(255,181,71,.16), var(--card) 55%); }
.bonus.done { border-color: var(--line); background: var(--card); }
.bonus-t { display: flex; flex-direction: column; } .bonus-t b { font-family: var(--fh); font-size: 18px; } .bonus-t small { color: var(--mut); }
.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.streak span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--mut); font-variant-numeric: tabular-nums; }
.streak i { font-style: normal; font-size: 10px; letter-spacing: .1em; opacity: .7; }
.streak .on { background: var(--acc-soft); color: var(--acc); border-color: transparent; }
.streak .next { border-color: var(--pri2); color: var(--pri2); box-shadow: 0 0 12px rgba(255,181,71,.35); }
@media (min-width: 900px) { .bonus { grid-template-columns: 1.1fr 1.5fr auto; } }
.missoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.missao { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.missao .bar { margin-top: 6px; } .missao .bar i { background: var(--acc); box-shadow: none; }
.missao.pronta { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), 0 0 18px var(--acc-soft); }
.missao.feita { opacity: .55; }

/* memória */
.mem-dots { display: flex; justify-content: center; gap: 8px; margin: 16px 0 6px; }
.mem-dots span { width: 18px; height: 18px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc-soft); }
.mem-dots .used { background: var(--card2); box-shadow: none; }

/* perfil */
.prof-card { border-radius: 20px; overflow: hidden; border: 1px solid var(--line2); background: var(--card); }
.prof-banner { height: clamp(120px, 24vw, 240px); background: linear-gradient(120deg, #2a1d5c, #8b6cff 45%, #ff6b4a); background-size: cover; background-position: center; }
.prof-body { display: flex; align-items: flex-end; gap: 18px; padding: 0 22px 20px; flex-wrap: wrap; }
.prof-body > .avt { margin-top: -56px; box-shadow: 0 0 0 5px var(--card); }
.prof-txt { flex: 1; min-width: 220px; padding-top: 12px; }
.prof-txt h2 { font-size: 28px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prof-txt p { margin: 4px 0; }
.bio { font-size: 15px; line-height: 1.5; }
.prof-stats { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; color: var(--mut); font-size: 14px; }
.prof-stats b { color: var(--txt); font-family: var(--fh); font-size: 17px; }
.prof-edit { display: grid; gap: 14px; margin-top: 16px; }
.prof-edit .box + .box { margin-top: 0; }
@media (min-width: 960px) { .prof-edit { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.up-row { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
@media (max-width: 600px) { .up-row { grid-template-columns: 1fr; } }
.up { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.up .row { margin-top: 2px; }
.banner-prev { width: 100%; aspect-ratio: 3 / 1; border-radius: 12px; border: 1px solid var(--line2); background: linear-gradient(120deg, #2a1d5c, #8b6cff 45%, #ff6b4a); background-size: cover; background-position: center; }
.up-btn { cursor: pointer; margin: 0; flex-direction: row; color: #1d0c06; }
.bordas { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.borda-i { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); font-size: 13px; }
.borda-i small { color: var(--mut); font-size: 11.5px; }
.borda-i.on { border-color: var(--pri); box-shadow: 0 0 0 1px var(--pri); }
.borda-i.locked .avt { filter: grayscale(.4) brightness(.8); }

/* carteira */
.wallet { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 24px; border-radius: 20px; border: 1px solid rgba(255,181,71,.4); background: radial-gradient(400px 200px at 0% 0%, rgba(255,181,71,.22), transparent 70%), var(--card); }
.w-main { display: flex; flex-direction: column; gap: 4px; }
.w-main b { font-family: var(--fh); font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; display: flex; align-items: center; }
.w-side { display: flex; gap: 8px; flex-wrap: wrap; }
.two-col { display: grid; gap: 14px; margin-top: 14px; }
.two-col .box + .box { margin-top: 0; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col h3 { font-size: 18px; margin-bottom: 8px; }
.how { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.how li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.how li:last-child { border: 0; } .how li span { color: var(--mut); text-align: right; }
.extrato { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ex-i { display: grid; grid-template-columns: 1fr auto 70px; gap: 12px; align-items: center; padding: 10px 14px; background: var(--card); border-bottom: 1px solid var(--line); font-size: 14px; }
.ex-i:last-child { border: 0; }
.ex-m { display: flex; flex-direction: column; } .ex-m small { color: var(--mut); font-size: 12px; }
.ex-i b { font-variant-numeric: tabular-nums; font-family: var(--fh); }
.ex-s { text-align: right; font-variant-numeric: tabular-nums; }
.shop .avt { margin: 6px 0; }

/* memória: 5 tentativas */
.mem-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.mem-tent, .mem-won { display: flex; flex-direction: column; gap: 6px; }
.mem-tent small { color: var(--mut); font-size: 12.5px; }
.mem-won { flex: 1; min-width: 160px; }
.mem-won-l { display: flex; gap: 6px; align-items: center; min-height: 46px; }
.mem-won-l .ct { width: 34px; }
.mem-dots.sm { margin: 0; justify-content: flex-start; gap: 6px; }
.mem-dots.sm span { width: 14px; height: 14px; }
.mem-dots .used { background: var(--card2); box-shadow: none; border: 1px solid var(--line2); }
.mem.m12 { grid-template-columns: repeat(4, 1fr); max-width: 520px; }
.mem .flip.done { opacity: 1; cursor: default; }
.mem .flip.done .ct-in { box-shadow: 0 0 0 2px var(--acc), 0 0 18px var(--acc-soft); }
.mem .flip.missed { opacity: .4; cursor: default; }
.won-grid { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 6px; }
.won-grid .ct { width: 110px; }

/* chances */
.ch-grid { display: grid; gap: 14px; margin-top: 14px; }
.ch-grid .box + .box { margin-top: 0; }
@media (min-width: 960px) { .ch-grid { grid-template-columns: 1fr 1fr; } }
.ch-grid h3, .ch-raras b { font-size: 18px; }
.tbl.ch td, .tbl.ch th { white-space: nowrap; }
.tbl.ch td.w { width: 40%; }
.pbar { display: block; height: 8px; border-radius: 99px; background: var(--bg2); overflow: hidden; min-width: 60px; }
.pbar i { display: block; height: 100%; border-radius: inherit; background: var(--pri); }
.ch-notas { margin: 14px 0 0; padding-left: 18px; color: var(--mut); font-size: 14px; line-height: 1.6; }
.ch-notas b { color: var(--txt); }
.ch-raras { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ch-r { display: flex; flex-direction: column; gap: 2px; border-color: rgba(255,181,71,.35); background: linear-gradient(140deg, rgba(255,181,71,.12), var(--card) 60%); }
.ch-r span { font-family: var(--fh); font-size: 24px; color: var(--pri2); }
.ch-grid .box, .tbl-wrap { overflow-x: auto; }

/* sugestões */
.sug-top { display: grid; gap: 14px; margin-bottom: 18px; }
.sug-top .box + .box { margin-top: 0; }
@media (min-width: 960px) { .sug-top { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.sug-row { display: grid; grid-template-columns: 1fr 150px; gap: 10px; }
@media (max-width: 520px) { .sug-row { grid-template-columns: 1fr; } }
.sug-info ol { margin: 8px 0; padding-left: 20px; line-height: 1.7; font-size: 14px; }
.sug-info h3 { font-size: 18px; }
#sBusca { margin-bottom: 12px; }
.sug-list { display: flex; flex-direction: column; gap: 10px; }
.sug { display: flex; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.sug.aprovada { border-color: rgba(62,224,207,.5); }
.sug.recusada { opacity: .6; }
.vote { flex: none; width: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg2); color: var(--mut); padding: 8px 0; transition: .15s; align-self: flex-start; }
.vote span { font-size: 14px; } .vote b { font-family: var(--fh); font-size: 18px; color: var(--txt); }
.vote:hover { border-color: var(--pri); }
.vote.on { background: var(--pri-soft); border-color: var(--pri); color: var(--pri); }
.sug-b { flex: 1; min-width: 0; }
.sug-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sug-h h3 { font-size: 18px; margin-right: 4px; }
.sug-b > p { margin: 6px 0; line-height: 1.5; word-break: break-word; }
.sug-resp { background: var(--bg2); border-left: 3px solid var(--acc); padding: 6px 10px; border-radius: 6px; }
.sug-f { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.adm { display: flex; gap: 6px; margin-left: auto; }

/* evoluir */
.evo { margin: 14px 0 6px; padding: 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.evo-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.evo-trilha { display: flex; align-items: center; gap: 4px; }
.evo-trilha span { min-width: 30px; height: 26px; padding: 0 6px; display: grid; place-items: center; border-radius: 6px; font-family: var(--fh); font-weight: 800; font-size: 12px; background: var(--card); border: 1px solid var(--line2); color: var(--mut); }
.evo-trilha span.pass { background: var(--acc-soft); color: var(--acc); border-color: transparent; }
.evo-trilha span.cur { background: var(--pri); color: #1d0c06; border-color: var(--pri); box-shadow: 0 0 12px rgba(255,107,74,.5); }
.evo-trilha i { width: 8px; height: 2px; background: var(--line2); }
.evo p { margin: 0; line-height: 1.5; }
.evo-pick { display: flex; gap: 8px; overflow-x: auto; padding: 6px 4px 4px; }
.evo-pick .ct { width: 72px; flex: none; }
.evo-prev { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.evo-prev b { color: var(--pri); }
.evo-max { color: var(--pri2); font-weight: 700; }
.warn { color: var(--pri2); }
.ct .evo-tag { position: absolute; z-index: 5; right: -6px; top: -7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--pri); color: #1d0c06; box-shadow: 0 0 10px rgba(255,107,74,.6); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.15); } }
.ct.evo-anim { animation: evoAnim .8s ease-out; }
@keyframes evoAnim { 0% { transform: scale(.85); filter: brightness(2.2); } 60% { transform: scale(1.06); filter: brightness(1.3); } 100% { transform: none; filter: none; } }
.filters .tog { grid-column: 1 / -1; }
@media (min-width: 960px) { .filters { grid-template-columns: 2fr 1fr 1fr 1fr auto; } .filters .tog { grid-column: auto; white-space: nowrap; } }

/* Cardly+ */
.plus-pill { padding: 7px 12px; border-radius: 99px; font-weight: 700; font-size: 13px; white-space: nowrap; color: var(--pri2); border: 1px solid rgba(255,181,71,.45); background: rgba(255,181,71,.08); }
.plus-pill:hover { background: rgba(255,181,71,.16); }
.plus-pill.ativo { color: #1d0c06; border-color: transparent; background: linear-gradient(120deg, var(--pri2), var(--pri)); box-shadow: 0 0 14px rgba(255,181,71,.4); }
@media (max-width: 520px) { .plus-pill { display: none; } }
.plus-tag { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 5px; font-size: 10px; font-style: normal; vertical-align: 1px; color: #1d0c06; background: linear-gradient(120deg, var(--pri2), var(--pri)); }
.b-plus { background: conic-gradient(from 210deg, #ff6b4a, #ffb547, #3ee0cf, #8b6cff, #ff6b4a); box-shadow: 0 0 16px rgba(255,181,71,.6); animation: girar 5s linear infinite; }
.b-plus .avt-in { animation: girar 5s linear infinite reverse; }
.plus-hero { text-align: center; padding: 34px 20px; border-radius: 22px; border: 1px solid rgba(255,181,71,.45); background: radial-gradient(500px 220px at 50% 0%, rgba(255,181,71,.28), transparent 70%), radial-gradient(400px 220px at 0% 100%, rgba(139,108,255,.25), transparent 70%), var(--card); }
.plus-hero.ativo { box-shadow: 0 0 0 1px var(--pri2), 0 0 40px rgba(255,181,71,.2); }
.plus-logo { width: 64px; height: 64px; margin: 0 auto 6px; display: grid; place-items: center; font-size: 34px; border-radius: 18px; color: #1d0c06; background: linear-gradient(140deg, var(--pri2), var(--pri)); box-shadow: 0 0 30px rgba(255,181,71,.5); }
.plus-hero h2 { font-size: 46px; } .plus-hero h2 span { color: var(--pri2); }
.plus-preco { color: var(--mut); margin: 6px 0; } .plus-preco b { color: var(--txt); font-family: var(--fh); font-size: 22px; }
.plus-ben { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 16px; }
.plus-ben .box { display: flex; align-items: center; gap: 12px; margin: 0; }
.plus-ben .box + .box { margin-top: 0; }
.plus-pay h3 { font-size: 20px; margin-bottom: 8px; }
.plus-steps { padding-left: 20px; display: flex; flex-direction: column; gap: 14px; line-height: 1.5; }
.plus-steps textarea { margin: 8px 0; font-family: ui-monospace, Consolas, monospace; font-size: 12px; word-break: break-all; }
.plus-aviso { margin-top: 16px; }
.plus-btn { background: linear-gradient(120deg, var(--pri2), var(--pri)); }
.plus-item { border-color: rgba(255,181,71,.35); }
.adm-ped .li-r { flex-wrap: wrap; }

/* fotos nas cartas */
.ct-art.has-img { background: #0b0a18; place-items: stretch; }
.ct-art.has-img::after { background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.18), transparent 45%); }
.ct-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; user-select: none; -webkit-user-drag: none; }
.ct.missing .ct-art.has-img .ct-img { filter: grayscale(1) brightness(.35); }

/* página de artes (admin) */
.art-top { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.art-top h2 { font-size: 22px; }
.art-top code, .art-i code { background: var(--bg2); padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.art-res, #artLog .box { margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
#artLog .spin { width: 18px; height: 18px; display: inline-block; vertical-align: middle; margin-right: 6px; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.art-i { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 10px; border-radius: 12px; background: var(--card); border: 1px dashed var(--line2); }
.art-i.tem { border-style: solid; border-color: rgba(62,224,207,.4); }
.art-i .ct { width: 100%; }
.art-i b { font-size: 13px; line-height: 1.2; }
.art-i .row { margin-top: 4px; gap: 6px; }

/* confirmar e-mail */
.verif { text-align: center; align-items: stretch; }
.verif-ic { font-size: 54px; margin: 10px 0 0; }
.verif h1 { font-size: 26px; }
.email-alvo { color: var(--acc); }
.codigo-in { font-family: var(--fh); font-size: 34px; font-weight: 800; letter-spacing: 14px; text-align: center; padding: 14px 10px 14px 24px; margin: 14px 0 4px; }
.codigo-in.sm { font-size: 22px; letter-spacing: 8px; padding: 8px 8px 8px 16px; margin: 0; max-width: 200px; }
.verif-corrigir { margin-top: 6px; text-align: left; }
.verif-corrigir summary { cursor: pointer; text-align: center; list-style: none; }
.verif-corrigir summary::-webkit-details-marker { display: none; }
.email-pend { background: var(--bg2); border: 1px solid rgba(62,224,207,.35); border-radius: 12px; padding: 12px 14px; margin: 8px 0; }
.email-pend p { margin: 0 0 8px; }

/* selo Equipe */
.equipe-tag { display: inline-flex; align-items: center; margin-left: 5px; padding: 1px 6px; border-radius: 5px; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; font-style: normal; vertical-align: 2px; color: #04221f; background: linear-gradient(120deg, #3ee0cf, #8b6cff); box-shadow: 0 0 10px rgba(62,224,207,.45); }

/* Plus automático (QR Code) */
.plus-auto { display: grid; gap: 20px; align-items: start; }
@media (min-width: 760px) { .plus-auto { grid-template-columns: 240px 1fr; } }
.qr-lado { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr { width: 220px; height: 220px; background: #fff; padding: 10px; border-radius: 14px; image-rendering: pixelated; }
.aguardando { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--acc); font-weight: 700; margin: 6px 0 0; }
.aguardando .spin { width: 18px; height: 18px; border-width: 2px; }
