/* PereiraBR Points — identidade: vermelho raiva, dourado moeda, contorno grosso estilo vetor/adesivo. */
:root {
  --bg: #120b10;
  --bg2: #1c1218;
  --card: #22161d;
  --card2: #2b1c25;
  --ink: #0a0508;
  --line: #3d2833;
  --text: #fff6f0;
  --muted: #bda7b1;
  --red: #ff2e4d;
  --red2: #c3112d;
  --gold: #ffc21f;
  --gold2: #f59e00;
  --teal: #2de2e6;
  --green: #3ddc84;
  --radius: 18px;
  --stroke: 3px solid var(--ink);
  --pop: 6px 6px 0 var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(255, 46, 77, .22), transparent 60%),
    radial-gradient(700px 420px at -5% 30%, rgba(255, 194, 31, .08), transparent 60%),
    radial-gradient(rgba(255,255,255,.035) 1.5px, transparent 1.5px) 0 0 / 26px 26px,
    var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
}
a { color: var(--gold); }
h1, h2, h3 { font-family: 'Montserrat', 'Arial Black', Impact, sans-serif; font-weight: 900; margin: 0; letter-spacing: -.01em; text-transform: uppercase; }
h1 { line-height: .95; }
h2 { font-size: 26px; margin-bottom: 16px; }
h3 { font-size: 17px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.gold { color: var(--gold); }
.red { color: var(--red); }

/* ---------- topo ---------- */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; margin-bottom: 26px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 48px; height: 48px; animation: spin 6s ease-in-out infinite; }
@keyframes spin { 0%, 70%, 100% { transform: rotateY(0); } 85% { transform: rotateY(180deg); } }
.brand .name { font-family: 'Montserrat', 'Arial Black', sans-serif; font-weight: 900; font-size: 26px; line-height: 1; letter-spacing: -.02em; }
.brand .name em { font-style: normal; color: var(--red); }
.brand .tag {
  font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 12px; letter-spacing: .14em;
  background: var(--gold); color: var(--ink); padding: 3px 8px; border-radius: 6px; border: 2px solid var(--ink);
  transform: rotate(-4deg); display: inline-block;
}
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  background: var(--card2); color: var(--muted); border: 2px solid var(--line);
}
.badge.live { background: var(--red); color: #fff; border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.badge.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- cartões estilo adesivo ---------- */
.card { background: var(--card); border: var(--stroke); border-radius: var(--radius); padding: 22px; box-shadow: var(--pop); position: relative; }
.card + .card { margin-top: 22px; }
.grid > .card + .card { margin-top: 0; }
.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: 1.45fr 1fr; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.two { grid-template-columns: 1fr; } .grid.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid.four { grid-template-columns: 1fr; } }
.section { margin-top: 30px; }
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-title h2 { margin: 0; }
.section-title::after { content: ''; flex: 1; height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 16px); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 10px; overflow: hidden;
  padding: 34px 34px 28px;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 46, 77, .07) 0 14px, transparent 14px 28px),
    linear-gradient(135deg, #2c121c, #1b0f15 70%);
}
.hero h1 { font-size: clamp(36px, 5.5vw, 62px); }
.hero h1 .hl { color: var(--gold); text-shadow: 3px 3px 0 var(--ink); }
.hero h1 .hl2 { color: var(--red); text-shadow: 3px 3px 0 var(--ink); }
.hero p { font-size: 16px; max-width: 470px; }
.hero .art { position: relative; text-align: center; }
.hero .art img { width: 100%; max-width: 400px; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.hero .platforms { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; text-align: center; } .hero p { margin-inline: auto; } .hero .platforms { justify-content: center; } .hero .art img { max-width: 300px; } }
.sticker {
  position: absolute; top: 18px; right: 18px; background: var(--gold); color: var(--ink); border: var(--stroke);
  font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 13px; padding: 6px 10px; border-radius: 10px;
  transform: rotate(6deg); box-shadow: 3px 3px 0 var(--ink); text-transform: uppercase;
}

/* ---------- passos ---------- */
.step { text-align: center; padding: 24px 18px 20px; }
.step .icon {
  width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 22px; display: grid; place-items: center;
  background: var(--red); border: var(--stroke); box-shadow: 4px 4px 0 var(--ink); transform: rotate(-4deg);
}
.step:nth-child(2) .icon { background: var(--gold); transform: rotate(3deg); }
.step:nth-child(3) .icon { background: var(--teal); transform: rotate(-2deg); }
.step:nth-child(4) .icon { background: #fff; transform: rotate(5deg); }
.step .icon svg { width: 38px; height: 38px; }
.step .num {
  position: absolute; top: -14px; left: -10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--gold); font-family: 'Montserrat', sans-serif; font-weight: 900; border: 2px solid var(--gold);
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- saldo ---------- */
.balance-card {
  display: flex; align-items: center; gap: 20px; overflow: hidden;
  background: repeating-linear-gradient(-45deg, rgba(255, 194, 31, .07) 0 14px, transparent 14px 28px), linear-gradient(135deg, #2e1a10, #1d1015 75%);
}
.balance-card img { width: 110px; height: 110px; flex: 0 0 auto; animation: spin 6s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(0,0,0,.5)); }
.balance {
  font-family: 'Montserrat', 'Arial Black', sans-serif; font-weight: 900; font-size: clamp(44px, 7vw, 68px); line-height: 1;
  color: var(--gold); text-shadow: 4px 4px 0 var(--ink); letter-spacing: -.02em;
}

/* ---------- código / comandos ---------- */
.cmd { font-family: ui-monospace, Consolas, monospace; background: var(--ink); padding: 3px 8px; border-radius: 7px; color: var(--gold); font-weight: 700; }
.linkbox {
  display: flex; align-items: center; gap: 10px; background: var(--ink); border: 2px dashed var(--gold);
  border-radius: 14px; padding: 12px 12px 12px 16px;
}
.linkbox code { flex: 1; font-family: ui-monospace, Consolas, monospace; font-size: 20px; font-weight: 800; color: var(--gold); letter-spacing: .06em; word-break: break-all; }

/* ---------- plataformas ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800;
  background: var(--card2); border: 2px solid var(--ink);
}
.chip .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); }
.chip.twitch .dot { background: #9146ff; }
.chip.kick .dot { background: #53fc18; }
.chip.youtube .dot { background: #ff0000; }
.chip.on { background: #fff; color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.chip.off { opacity: .5; }
.chip a { color: inherit; text-decoration: none; }

/* ---------- loja ---------- */
.shop-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.shop-head img { width: 130px; flex: 0 0 auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.4)); }
@media (max-width: 520px) { .shop-head { flex-direction: column; text-align: center; } }
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.item {
  background: var(--card2); border: var(--stroke); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s;
}
.item:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.item .pic { aspect-ratio: 16/10; background: #1a0f16; border-bottom: var(--stroke); position: relative; }
.item .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item .cat {
  position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em;
  background: var(--ink); color: var(--gold); padding: 3px 8px; border-radius: 6px;
}
.item .body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item .desc { color: var(--muted); font-size: 13px; flex: 1; }
.price { display: inline-flex; align-items: center; gap: 6px; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 20px; color: var(--gold); }
.price img { width: 24px; height: 24px; }

/* ---------- botões e campos ---------- */
button, .btn {
  font: inherit; font-weight: 900; font-family: 'Montserrat', 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .02em;
  border: var(--stroke); border-radius: 12px; padding: 11px 18px; cursor: pointer; text-decoration: none; display: inline-block;
  background: var(--red); color: #fff; box-shadow: 4px 4px 0 var(--ink); transition: transform .08s, box-shadow .08s, filter .15s;
}
button:hover, .btn:hover { filter: brightness(1.08); }
button:active, .btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
button:disabled { opacity: .45; cursor: not-allowed; filter: none; transform: none; box-shadow: 4px 4px 0 var(--ink); }
button.gold, .btn.gold { background: var(--gold); color: var(--ink); }
button.ghost { background: var(--card2); color: var(--text); }
button.danger { background: #8e0f22; color: #fff; }
button.ok { background: var(--green); color: var(--ink); }
button.sm { padding: 6px 10px; font-size: 12px; box-shadow: 3px 3px 0 var(--ink); }

input, textarea, select {
  font: inherit; width: 100%; padding: 11px 13px; border-radius: 12px; border: var(--stroke); background: var(--bg2); color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 12px 0 5px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 1; }
.row > .auto { flex: 0 0 auto; }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs button { background: var(--card2); color: var(--muted); }
.tabs button.on { background: var(--gold); color: var(--ink); }

/* ---------- conectar com plataforma ---------- */
.oauth-btns { display: grid; gap: 10px; }
.btn-oauth { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; text-align: center; }
.btn-oauth svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-oauth.twitch { background: #9146ff; color: #fff; }
.btn-oauth.kick { background: #53fc18; color: var(--ink); }
.btn-oauth .sub { font-size: 10px; background: var(--ink); color: var(--gold); padding: 2px 6px; border-radius: 6px; letter-spacing: .05em; }
.divider { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.divider::before, .divider::after { content: ''; flex: 1; height: 2px; background: var(--line); }

/* ---------- item em breve ---------- */
.item.soon .pic img { filter: saturate(.75) brightness(.8); }
.item .soon-tag {
  position: absolute; right: -34px; top: 16px; transform: rotate(35deg); background: var(--gold); color: var(--ink);
  font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 12px; letter-spacing: .08em; padding: 4px 40px; border-block: 2px solid var(--ink);
}
.item .qty {
  position: absolute; left: 10px; bottom: 10px; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 15px;
  background: var(--gold); color: var(--ink); border: 2px solid var(--ink); padding: 2px 8px; border-radius: 8px;
  box-shadow: 2px 2px 0 var(--ink); white-space: nowrap;
}
.item .pic { overflow: hidden; }

/* ---------- login ---------- */
.auth-card { padding-top: 0; overflow: hidden; }
.auth-art { margin: 0 -22px 14px; padding: 18px 0 6px; text-align: center; background: repeating-linear-gradient(-45deg, rgba(255, 194, 31, .08) 0 12px, transparent 12px 24px), #2a1820; border-bottom: var(--stroke); }
.auth-art img { width: 190px; }

/* ---------- tabelas, ranking, status ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 2px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.table-scroll { overflow-x: auto; }

.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--card2); border: 2px solid var(--ink); font-weight: 700; }
.rank li .pos {
  width: 28px; height: 28px; border-radius: 9px; display: inline-grid; place-items: center; margin-right: 10px;
  background: var(--ink); color: var(--muted); font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 13px;
}
.rank li:nth-child(1) .pos { background: var(--gold); color: var(--ink); }
.rank li:nth-child(2) .pos { background: #dfe3ea; color: var(--ink); }
.rank li:nth-child(3) .pos { background: #d98a4e; color: var(--ink); }
.rank li .pts { color: var(--gold); font-family: 'Montserrat', sans-serif; font-weight: 900; white-space: nowrap; }

.status { font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; border: 2px solid var(--ink); }
.st-pendente { background: var(--gold); color: var(--ink); }
.st-aprovado { background: var(--teal); color: var(--ink); }
.st-entregue { background: var(--green); color: var(--ink); }
.st-recusado { background: #8e0f22; color: #fff; }
.plus { color: var(--green); font-weight: 900; }
.minus { color: var(--red); font-weight: 900; }

.rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rules li { padding-left: 26px; position: relative; color: var(--muted); font-size: 14px; }
.rules li::before { content: '★'; position: absolute; left: 2px; color: var(--gold); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; max-width: calc(100% - 32px);
  background: #fff; color: var(--ink); font-weight: 800; border: var(--stroke); padding: 12px 18px; border-radius: 14px; box-shadow: var(--pop);
}
.toast.err { background: var(--red); color: #fff; }

dialog { background: var(--card); color: var(--text); border: var(--stroke); border-radius: var(--radius); padding: 24px; width: min(480px, calc(100% - 32px)); box-shadow: var(--pop); }
dialog::backdrop { background: rgba(8, 3, 6, .75); }

footer { color: var(--muted); font-size: 12px; text-align: center; padding: 44px 0 30px; }
footer img { width: 26px; vertical-align: middle; margin-right: 6px; }
