/* ============================================================
   PEPE MINER — Estilo cartoon, mobile-first
   ============================================================ */
:root {
  --out: #2a1a10;
  --bg1: #2b1b3d;
  --bg2: #1a1026;
  --panel: #fff4e0;
  --panel2: #ffe7bf;
  --wood: #b8732f;
  --wood-d: #7a4a1c;
  --green: #5fd35b;
  --green-d: #2e8f2a;
  --blue: #3d9bff;
  --text: #3a2414;
  --radius: 18px;
  --nav-h: 74px;
  --top-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 800;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(255,180,90,.10), transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(120,200,255,.08), transparent 40%),
    radial-gradient(ellipse at top, #4a2f63 0%, var(--bg1) 45%, var(--bg2) 100%);
  background-attachment: fixed;
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; touch-action: manipulation; }
svg { display: block; overflow: visible; }

h1, h2, h3, .lilita { font-family: 'Lilita One', 'Rubik', 'Nunito', sans-serif; font-weight: 400; letter-spacing: .5px; margin: 0; }

/* ---------- Layout ---------- */
#app {
  height: 100%;
  display: grid;
  grid-template-rows: var(--top-h) 1fr calc(var(--nav-h) + var(--safe-b));
  grid-template-areas: "top" "main" "nav";
  max-width: 1280px;
  margin: 0 auto;
}
.topbar { grid-area: top; }
.tabs { grid-area: nav; }
main { grid-area: main; overflow: hidden; position: relative; }
.tab-page {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  padding: 14px 14px 30px;
  display: none;
  -webkit-overflow-scrolling: touch;
}
.tab-page.active { display: block; animation: pageIn .25s ease-out; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; gap: 8px;
  background: linear-gradient(#6b4423, #4e2f15);
  border-bottom: 4px solid var(--out);
  box-shadow: 0 4px 0 rgba(0,0,0,.25);
  position: relative; z-index: 5;
}
.logo { display: flex; align-items: center; gap: 6px; min-width: 0; }
.logo-icon { width: 38px; height: 38px; flex: none; }
.logo-text {
  font-family: 'Lilita One', 'Rubik'; font-size: 22px; color: #fff;
  -webkit-text-stroke: 1.5px var(--out); paint-order: stroke fill;
  text-shadow: 0 3px 0 var(--out); white-space: nowrap;
}
.logo-text b { color: #8cf06a; font-weight: 400; }
.pills { display: flex; align-items: center; gap: 6px; }
.pill {
  display: flex; align-items: center; gap: 4px;
  background: #2a1a10; color: #fff;
  border: 3px solid var(--out);
  border-radius: 999px; padding: 2px 10px 2px 2px;
  font-family: 'Lilita One', 'Rubik'; font-size: 17px;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.08);
  cursor: pointer;
}
.pill-ico { width: 28px; height: 28px; flex: none; }
.pill-coin { color: #b8ff9e; }
.pill-store.full { color: #ff8a8a; animation: pulse 1s infinite; }
.pill.bump { animation: bump .35s ease-out; }
@keyframes bump { 40% { transform: scale(1.18); } }
@keyframes pulse { 50% { transform: scale(1.06); } }
.icon-btn { width: 38px; height: 38px; padding: 5px; border-radius: 12px; background: #3a2414; border: 3px solid var(--out); }

/* ---------- Navegação ---------- */
.tabs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(#6b4423, #4e2f15);
  border-top: 4px solid var(--out);
  padding: 6px 6px calc(6px + var(--safe-b));
  gap: 6px; z-index: 5;
}
.tab-btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 14px;
  font-family: 'Lilita One', 'Rubik'; font-size: 14px; color: #f5dcb8;
  transition: transform .12s;
}
.tab-ico { width: 34px; height: 34px; transition: transform .2s; }
.tab-btn.active {
  background: linear-gradient(#ffcf5a, #f29b1d);
  color: #fff; border: 3px solid var(--out);
  box-shadow: 0 4px 0 #9c5a0c;
  -webkit-text-stroke: 1px var(--out); paint-order: stroke fill;
}
.tab-btn.active .tab-ico { transform: scale(1.12) translateY(-2px); }
.tab-btn:active { transform: scale(.94); }
.dot {
  position: absolute; top: 4px; right: 18%;
  width: 14px; height: 14px; border-radius: 50%;
  background: #ff4d4d; border: 2px solid var(--out);
  display: none; animation: pulse .9s infinite;
}
.dot.on { display: block; }

/* ---------- Painéis e botões ---------- */
.panel {
  background: var(--panel);
  border: 4px solid var(--out);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 rgba(0,0,0,.35);
  padding: 14px;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Lilita One', 'Rubik'; color: #fff; font-size: 24px;
  -webkit-text-stroke: 2px var(--out); paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--out);
  margin: 4px 2px 12px; display: flex; align-items: center; gap: 8px;
}
.section-title small { font-family: 'Nunito'; font-size: 13px; -webkit-text-stroke: 0; text-shadow: none; color: #e9d5ff; font-weight: 800; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: 'Lilita One', 'Rubik'; font-size: 17px; color: #fff;
  padding: 10px 16px; min-height: 46px;
  border-radius: 14px; border: 3px solid var(--out);
  background: linear-gradient(#8ff06e, #3fb52c);
  box-shadow: 0 5px 0 #1f6b17, inset 0 3px 0 rgba(255,255,255,.35);
  -webkit-text-stroke: 1px var(--out); paint-order: stroke fill;
  text-shadow: 0 2px 0 rgba(0,0,0,.25);
  transition: transform .08s, box-shadow .08s, filter .2s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #1f6b17, inset 0 3px 0 rgba(255,255,255,.35); }
.btn .ci { width: 22px; height: 22px; }
.btn.blue { background: linear-gradient(#7cc4ff, #2f86e6); box-shadow: 0 5px 0 #17508f, inset 0 3px 0 rgba(255,255,255,.35); }
.btn.orange { background: linear-gradient(#ffd36a, #f2911d); box-shadow: 0 5px 0 #9c5a0c, inset 0 3px 0 rgba(255,255,255,.35); }
.btn.red { background: linear-gradient(#ff8f8f, #e2413f); box-shadow: 0 5px 0 #8f1f1d, inset 0 3px 0 rgba(255,255,255,.35); }
.btn.gray { background: linear-gradient(#c9c2b8, #8d857a); box-shadow: 0 5px 0 #57514a, inset 0 3px 0 rgba(255,255,255,.35); }
.btn.disabled { filter: grayscale(.85) brightness(.85); }
.btn.wide { width: 100%; }
.btn.small { font-size: 15px; min-height: 38px; padding: 6px 12px; border-radius: 12px; }

.rbadge {
  display: inline-block;
  font-family: 'Lilita One', 'Rubik'; font-size: 13px; color: #fff;
  padding: 2px 9px; border-radius: 999px;
  background: var(--rc); border: 2.5px solid var(--out);
  -webkit-text-stroke: .8px var(--out); paint-order: stroke fill;
  white-space: nowrap;
}

/* ---------- MINA ---------- */
.mine-head {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 14px;
}
.stat {
  background: rgba(0,0,0,.35); border: 3px solid var(--out); border-radius: 14px;
  color: #fff; text-align: center; padding: 6px 4px;
}
.stat b { display: block; font-family: 'Lilita One', 'Rubik'; font-size: 19px; font-weight: 400; color: #ffe07a; }
.stat span { font-size: 11px; color: #d8c4ef; text-transform: uppercase; letter-spacing: .5px; }

.full-banner {
  display: none;
  background: linear-gradient(#ff8f8f, #e2413f); color: #fff;
  border: 3px solid var(--out); border-radius: 14px; padding: 10px 12px;
  margin-bottom: 14px; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 14px; box-shadow: 0 4px 0 #8f1f1d;
}
#tab-mine.full .full-banner { display: flex; animation: pulse 1.2s infinite; }

.slots {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.slot {
  position: relative; aspect-ratio: 1 / 1.08;
  border-radius: 20px; border: 4px solid var(--out);
  overflow: hidden;
  background:
    linear-gradient(transparent 72%, #4a3020 72%, #3a2416 100%),
    radial-gradient(circle at 70% 30%, rgba(255,210,120,.25), transparent 60%),
    linear-gradient(#6e4b35, #4a3122);
  box-shadow: 0 6px 0 rgba(0,0,0,.4), inset 0 0 0 3px rgba(255,255,255,.08);
  cursor: pointer;
  --rc: #a3afbb;
}
.slot::before { /* textura de pedra */
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(0,0,0,.18) 0 10px, transparent 11px),
    radial-gradient(circle at 80% 15%, rgba(0,0,0,.15) 0 7px, transparent 8px),
    radial-gradient(circle at 60% 50%, rgba(255,255,255,.05) 0 14px, transparent 15px),
    radial-gradient(circle at 10% 60%, rgba(0,0,0,.12) 0 6px, transparent 7px);
  pointer-events: none;
}
.slot.filled { border-color: var(--out); box-shadow: 0 6px 0 rgba(0,0,0,.4), inset 0 0 0 4px var(--rc); }
.slot .rock { position: absolute; right: 2%; bottom: 13%; width: 52%; transition: transform .1s; }
.slot .rock.hit { animation: rockHit .18s ease-out; }
@keyframes rockHit { 40% { transform: translateX(4px) scale(.95) rotate(3deg); } }
.slot .slot-miner { position: absolute; left: 0; bottom: 10%; width: 60%; }
.slot-top {
  position: absolute; top: 7px; left: 7px; right: 7px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; z-index: 2;
}
.lvl {
  font-family: 'Lilita One', 'Rubik'; font-size: 13px; color: #fff;
  background: rgba(0,0,0,.55); border: 2px solid var(--out); border-radius: 8px; padding: 1px 6px;
}
.gear {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: linear-gradient(#ffd36a, #f2911d); border: 3px solid var(--out);
  box-shadow: 0 3px 0 #9c5a0c; font-size: 16px; line-height: 1; color: var(--out);
  display: grid; place-items: center;
}
.slot-bottom { position: absolute; left: 8px; right: 8px; bottom: 7px; z-index: 2; }
.slot-name {
  font-family: 'Lilita One', 'Rubik'; color: #fff; font-size: 14px;
  -webkit-text-stroke: 1px var(--out); paint-order: stroke fill;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px;
}
.bar { height: 12px; background: #1c120b; border: 2.5px solid var(--out); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(#b4ff8f, #46c13a); border-radius: 99px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.slot.stopped .bar i { background: linear-gradient(#ff9e9e, #e2413f); }
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.drop {
  position: absolute; width: 34px; height: 34px;
  animation: dropUp 1.1s cubic-bezier(.2,.8,.3,1) forwards;
}
.drop span {
  position: absolute; left: 30px; top: 4px;
  font-family: 'Lilita One', 'Rubik'; color: #fff; font-size: 16px;
  -webkit-text-stroke: 1.2px var(--out); paint-order: stroke fill; white-space: nowrap;
}
@keyframes dropUp {
  0% { transform: translate(0, 0) scale(.3); opacity: 0; }
  20% { transform: translate(-6px, -26px) scale(1.15); opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translate(-14px, -70px) scale(.9); opacity: 0; }
}
.spark {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: #ffe68a; border: 1.5px solid var(--out);
  animation: spark .45s ease-out forwards;
}
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

.slot.empty, .slot.locked {
  display: grid; place-items: center; text-align: center; color: #fff;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,.25) 0 14px, rgba(0,0,0,.15) 14px 28px), #4a3122;
  border-style: dashed;
}
.slot.empty .plus {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 8px;
  background: linear-gradient(#8ff06e, #3fb52c); border: 4px solid var(--out);
  box-shadow: 0 5px 0 #1f6b17; display: grid; place-items: center;
  font-family: 'Lilita One', 'Rubik'; font-size: 40px; line-height: 1;
  -webkit-text-stroke: 1.5px var(--out); paint-order: stroke fill;
  animation: pulse 1.6s infinite;
}
.slot.empty p, .slot.locked p { margin: 0; font-family: 'Lilita One', 'Rubik'; font-size: 15px; -webkit-text-stroke: 1px var(--out); paint-order: stroke fill; }
.slot.locked .lock-ico { width: 54px; height: 54px; margin: 0 auto 6px; opacity: .9; }
.slot.locked .btn { margin-top: 8px; }

/* Animações do mineiro */
/* Rig: ombro (77,86) · pulso (95,94) · quadril (60,128) · pescoço (60,78)
   Ciclo de 1s: preparação lenta → golpe rápido (68%) → impacto/recuo → volta */
.miner-svg .arm, .miner-svg .tool, .miner-svg .arm-back, .miner-svg .body-g, .miner-svg .head-g { transform-box: view-box; }
.miner-svg .arm { transform-origin: 77px 86px; }
.miner-svg .tool { transform-origin: 95px 94px; }
.miner-svg .arm-back { transform-origin: 46px 86px; }
.miner-svg .body-g { transform-origin: 60px 128px; }
.miner-svg .head-g { transform-origin: 60px 78px; }
.miner-svg .eyeball { transform-box: view-box; animation: blink 4.2s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }

.mining .arm      { animation: swingArm 1s infinite; }
.mining .tool     { animation: swingTool 1s infinite; }
.mining .arm-back { animation: swingBack 1s infinite; }
.mining .body-g   { animation: leanBody 1s infinite; }
.mining .head-g   { animation: headLag 1s infinite; }
@keyframes swingArm {
  0%   { transform: rotate(-5deg);  animation-timing-function: cubic-bezier(.4,0,.6,1); }
  45%  { transform: rotate(-32deg); animation-timing-function: ease-out; }
  56%  { transform: rotate(-36deg); animation-timing-function: cubic-bezier(.6,0,1,.6); }
  68%  { transform: rotate(32deg);  animation-timing-function: ease-out; }
  73%  { transform: rotate(25deg);  animation-timing-function: ease-in-out; }
  80%  { transform: rotate(29deg);  animation-timing-function: cubic-bezier(.4,0,.4,1); }
  100% { transform: rotate(-5deg); }
}
@keyframes swingTool {
  0%   { transform: rotate(0deg);   animation-timing-function: cubic-bezier(.4,0,.6,1); }
  45%  { transform: rotate(-16deg); animation-timing-function: ease-out; }
  56%  { transform: rotate(-22deg); animation-timing-function: cubic-bezier(.6,0,1,.6); }
  68%  { transform: rotate(22deg);  animation-timing-function: ease-out; }
  74%  { transform: rotate(12deg);  animation-timing-function: ease-in-out; }
  82%  { transform: rotate(16deg);  animation-timing-function: cubic-bezier(.4,0,.4,1); }
  100% { transform: rotate(0deg); }
}
@keyframes swingBack {
  0%, 100% { transform: rotate(0deg); }
  56% { transform: rotate(14deg); }
  70% { transform: rotate(-12deg); }
}
@keyframes leanBody {
  0%   { transform: rotate(0deg) translateY(0) scale(1, 1); animation-timing-function: ease-in-out; }
  56%  { transform: rotate(-5deg) translateY(-2px) scale(.98, 1.03); animation-timing-function: cubic-bezier(.6,0,1,.6); }
  68%  { transform: rotate(6deg) translateY(2px) scale(1.04, .95); animation-timing-function: ease-out; }
  80%  { transform: rotate(4deg) translateY(1px) scale(1, 1); animation-timing-function: ease-in-out; }
  100% { transform: rotate(0deg) translateY(0) scale(1, 1); }
}
@keyframes headLag {
  0%, 100% { transform: rotate(0deg); }
  50%  { transform: rotate(-4deg) translateY(-1px); }
  64%  { transform: rotate(-3deg); }
  74%  { transform: rotate(5deg) translateY(1.5px); }
  86%  { transform: rotate(2deg); }
}
/* parado (cartas, detalhes): respira e balança a picareta de leve */
.idle .body-g, .miner-card .body-g, .op-card .body-g { animation: breathe 2.4s ease-in-out infinite; }
.idle .arm, .miner-card .arm, .op-card .arm { animation: idleArm 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.02, .97); } }
@keyframes idleArm { 50% { transform: rotate(-6deg); } }

/* ---------- Efeitos das picaretas e dos sapos ---------- */
.fx-glow, .fx-flame, .fx-drip, .fx-smoke, .fx-tw, .fx-float, .fx-blink { transform-box: fill-box; transform-origin: center; }
.fx-glow  { animation: fxGlow 1.6s ease-in-out infinite; }
@keyframes fxGlow { 50% { opacity: .55; transform: scale(.88); } }
.fx-flame { transform-origin: 50% 100%; animation: flick .32s ease-in-out infinite alternate; }
@keyframes flick { from { transform: scale(1, 1) skewX(0); } to { transform: scale(.88, 1.14) skewX(5deg); } }
.fx-drip  { animation: drip 1.5s ease-in infinite; }
@keyframes drip { 0% { transform: translateY(0) scale(.3); opacity: 0; } 25% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(13px) scale(.9); opacity: 0; } }
.fx-smoke { animation: smoke 1.8s ease-out infinite; }
@keyframes smoke { 0% { transform: translate(0, 0) scale(.5); opacity: .8; } 100% { transform: translate(-4px, -16px) scale(1.5); opacity: 0; } }
.fx-tw    { animation: twinkle 1.6s ease-in-out infinite; }
.fx-spark { animation: spk .45s steps(2, jump-none) infinite; }
@keyframes spk { 0% { opacity: 1; } 100% { opacity: 0; } }
.fx-spin  { transform-box: view-box; animation: spinFx 4s linear infinite; }
@keyframes spinFx { to { transform: rotate(360deg); } }
.fx-crack { animation: crack 1.3s ease-in-out infinite; }
@keyframes crack { 50% { opacity: .4; } }
.fx-float { animation: floaty 2.4s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-7px); } }
.fx-blink { animation: blinkLight 1s steps(2, jump-none) infinite; }
@keyframes blinkLight { 0% { opacity: 1; } 100% { opacity: .25; } }
.ninja-tails { transform-box: fill-box; transform-origin: 100% 30%; animation: tails .6s ease-in-out infinite alternate; }
@keyframes tails { to { transform: rotate(-12deg); } }
.pick-icon { width: 100%; height: 100%; }

/* rocha treme e solta poeira no momento do impacto (68%) */
.slot.filled .rock-svg { transform-origin: 50% 100%; animation: rockImpact 1s infinite; }
@keyframes rockImpact {
  0%, 66%, 100% { transform: translate(0, 0) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(1.5deg) scale(.98, 1.02); }
  76% { transform: translate(-1px, 0) rotate(-.6deg); }
}
.slot.filled .rock::after {
  content: ''; position: absolute; left: 4%; top: 30%; width: 34%; aspect-ratio: 1;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,240,210,.9) 0 18%, rgba(255,230,190,.5) 19% 38%, transparent 40%);
  opacity: 0; animation: dust 1s infinite;
}
@keyframes dust {
  0%, 67% { opacity: 0; transform: scale(.3); }
  70% { opacity: 1; transform: scale(.8); }
  90%, 100% { opacity: 0; transform: scale(1.5) translateY(-6px); }
}
.slot.stopped .miner-svg *, .slot.stopped .rock-svg, .slot.stopped .rock::after { animation-play-state: paused !important; }
.aura { animation: auraPulse 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes auraPulse { 50% { opacity: .55; transform: scale(.92); } }
.sparkles path { transform-box: fill-box; transform-origin: center; animation: twinkle 1.6s ease-in-out infinite; }
.sparkles .sp2 { animation-delay: .5s; } .sparkles .sp3 { animation-delay: 1s; }
@keyframes twinkle { 0%, 100% { transform: scale(.2); opacity: 0; } 50% { transform: scale(1.1); opacity: 1; } }
.lamp-glow { animation: lamp 1.8s ease-in-out infinite; }
@keyframes lamp { 50% { opacity: .1; } }

/* ---------- BAÚS ---------- */
.free-chest {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #ffe58a, #ffb93b);
}
.free-chest .chest-box { width: 92px; flex: none; }
.free-chest h3 { font-size: 21px; }
.free-chest p { margin: 2px 0 8px; font-size: 13px; }
.chest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.chest-card {
  position: relative; text-align: center;
  background: linear-gradient(var(--c1), var(--c2));
  border: 4px solid var(--out); border-radius: var(--radius);
  box-shadow: 0 6px 0 rgba(0,0,0,.4);
  padding: 12px 10px 12px; overflow: hidden;
}
.chest-card::before {
  content: ''; position: absolute; left: 50%; top: 32%; width: 180%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(rgba(255,255,255,.14) 0 10deg, transparent 10deg 20deg);
  animation: spin 18s linear infinite; pointer-events: none;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.chest-card h3 { position: relative; color: #fff; font-size: 18px; -webkit-text-stroke: 1.5px var(--out); paint-order: stroke fill; text-shadow: 0 3px 0 var(--out); }
.chest-box { position: relative; width: 74%; margin: 4px auto 6px; }
.chest-box .chest-svg { animation: chestBob 2.2s ease-in-out infinite; }
@keyframes chestBob { 50% { transform: translateY(-5px) rotate(-1.5deg); } }
.odds { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 10px; }
.odds .rbadge { font-size: 11px; padding: 1px 7px; }
.chest-card .btn { position: relative; width: 100%; }

/* ---------- MINEIROS ---------- */
.miners-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  font-family: 'Lilita One', 'Rubik'; font-size: 13px; padding: 5px 11px; border-radius: 999px;
  background: rgba(0,0,0,.35); color: #fff; border: 2.5px solid var(--out);
}
.chip.on { background: #ffcf5a; color: var(--out); }
.miner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.miner-card {
  position: relative; text-align: center; cursor: pointer;
  background: linear-gradient(color-mix(in srgb, var(--rc) 35%, #fff4e0), #fff4e0 70%);
  border: 4px solid var(--out); border-radius: 16px;
  box-shadow: 0 5px 0 rgba(0,0,0,.4), inset 0 0 0 3px var(--rc);
  padding: 6px 4px 8px; transition: transform .1s;
}
.miner-card:active { transform: scale(.95); }
.miner-card .pic { width: 86%; margin: 0 auto; }
.miner-card .nm { font-family: 'Lilita One', 'Rubik'; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.miner-card .rbadge { font-size: 11px; padding: 0 6px; }
.miner-card .tag {
  position: absolute; top: 5px; left: 5px; font-size: 10px; font-family: 'Lilita One', 'Rubik';
  background: #3fb52c; color: #fff; border: 2px solid var(--out); border-radius: 6px; padding: 0 4px;
}
.miner-card .lv { position: absolute; top: 5px; right: 5px; font-size: 11px; font-family: 'Lilita One', 'Rubik'; background: var(--out); color: #ffe07a; border-radius: 6px; padding: 0 5px; }
.miner-card .tp { font-size: 10px; color: #7a5a40; margin: -1px 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ftype { font-family: 'Lilita One', 'Rubik'; font-size: 16px; color: #fff; background: var(--out); display: inline-block; padding: 1px 10px; border-radius: 99px; margin: 2px 0 4px; }
.ftype.small { font-size: 13px; margin: 0 0 6px; }
.pick-row {
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: #fff; border: 3px solid var(--out); border-radius: 14px; padding: 4px 12px 4px 4px; margin: 0 auto 12px; max-width: 320px;
}
.pick-row .pick-ico { width: 50px; height: 50px; flex: none; background: #3a2414; border-radius: 10px; border: 2.5px solid var(--out); padding: 3px; }
.pick-row b { font-family: 'Lilita One', 'Rubik'; font-weight: 400; font-size: 16px; display: block; }
.pick-row small { font-size: 12px; color: #2e8f2a; }
.col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.col-card {
  text-align: center; background: rgba(255,244,224,.95); border: 3px solid var(--out); border-radius: 14px;
  padding: 4px 4px 6px; box-shadow: 0 4px 0 rgba(0,0,0,.35), inset 0 0 0 2px var(--rc, #c9a36b);
}
.col-card .pic { width: 80%; margin: 0 auto; }
.col-card.pick .pic { width: 70%; aspect-ratio: 1; background: #3a2414; border-radius: 10px; border: 2.5px solid var(--out); padding: 4px; margin: 2px auto 3px; }
.col-card .nm { font-family: 'Lilita One', 'Rubik'; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-card small { font-size: 11px; color: #2e8f2a; }
.col-card .rbadge { font-size: 10px; padding: 0 6px; }
.col-card.locked { background: rgba(0,0,0,.35); }
.col-card.locked .pic svg { filter: brightness(0) opacity(.45); }
.col-card.locked .pic svg * { animation: none !important; }
.col-card.locked .nm, .col-card.locked small { color: #d8c4ef; }
@media (min-width: 600px) { .col-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 960px) { .col-grid { grid-template-columns: repeat(8, 1fr); } }
.empty-msg { text-align: center; color: #fff; padding: 30px 10px; }
.empty-msg .chest-box { width: 120px; margin: 0 auto 10px; }
.empty-msg p { font-size: 15px; margin: 0 0 14px; color: #e9d5ff; }

/* ---------- TROCA ---------- */
.storage-panel .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.storage-panel .bar { height: 20px; margin: 10px 0 12px; }
.storage-panel .bar i { background: linear-gradient(#ffe07a, #f29b1d); }
.storage-panel .bar.full i { background: linear-gradient(#ff9e9e, #e2413f); }
.ore-list { display: flex; flex-direction: column; gap: 10px; }
.ore-row {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 10px;
  background: var(--panel); border: 4px solid var(--out); border-radius: 16px;
  padding: 8px 10px; box-shadow: 0 5px 0 rgba(0,0,0,.35);
}
.ore-row .ore-ico { width: 46px; height: 46px; background: #3a2414; border-radius: 12px; border: 3px solid var(--out); padding: 4px; }
.ore-row h4 { margin: 0; font-family: 'Lilita One', 'Rubik'; font-weight: 400; font-size: 17px; }
.ore-row .meta { font-size: 12px; color: #7a5a40; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.trend { font-family: 'Lilita One', 'Rubik'; font-size: 13px; }
.trend.up { color: #2e9a24; } .trend.down { color: #d93a37; }
.ore-row .btn { min-width: 92px; }
.sell-all { margin-top: 16px; font-size: 20px; min-height: 58px; }
.market-note { color: #d8c4ef; text-align: center; font-size: 12px; margin: 10px 0 0; }
.ci { width: 20px; height: 20px; display: inline-block; flex: none; }

/* ---------- MODAL ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 50; display: none; align-items: flex-end; justify-content: center; }
.modal-wrap.show { display: flex; }
.modal-back { position: absolute; inset: 0; background: rgba(15,6,25,.72); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-box {
  position: relative; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto;
  background: var(--panel); border: 4px solid var(--out); border-bottom: 0;
  border-radius: 26px 26px 0 0; padding: 18px 16px calc(20px + var(--safe-b));
  box-shadow: 0 -6px 0 rgba(0,0,0,.25);
  animation: sheetUp .28s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes sheetUp { from { transform: translateY(100%); } }
.modal-box h2 { font-size: 24px; text-align: center; margin-bottom: 10px; padding: 0 40px; }
.modal-close {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(#ff8f8f, #e2413f); border: 3px solid var(--out); color: #fff;
  font-family: 'Lilita One', 'Rubik'; font-size: 20px; box-shadow: 0 3px 0 #8f1f1d;
}
.detail-pic {
  width: 170px; margin: 0 auto 6px; border-radius: 20px; padding: 6px;
  background: radial-gradient(circle, color-mix(in srgb, var(--rc) 45%, transparent), transparent 70%);
}
.detail-head { text-align: center; margin-bottom: 12px; }
.detail-head h2 { margin-bottom: 4px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.kv div { background: #fff; border: 3px solid var(--out); border-radius: 12px; padding: 6px 10px; }
.kv span { display: block; font-size: 11px; color: #8a6a50; text-transform: uppercase; }
.kv b { font-family: 'Lilita One', 'Rubik'; font-weight: 400; font-size: 18px; display: flex; align-items: center; gap: 4px; }
.ore-chances { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.ore-chances div { display: flex; align-items: center; gap: 3px; background: #fff; border: 2.5px solid var(--out); border-radius: 10px; padding: 2px 8px 2px 3px; font-size: 13px; }
.ore-chances .ore-svg { width: 24px; height: 24px; }
.actions { display: grid; gap: 10px; }
.actions.two { grid-template-columns: 1fr 1fr; }
.pick-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.intro-art { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin: 4px 0 10px; }
.intro-art > div { width: 90px; }
.intro-steps { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.intro-steps li { display: flex; gap: 10px; align-items: center; background: #fff; border: 3px solid var(--out); border-radius: 12px; padding: 8px 10px; font-size: 14px; }
.intro-steps li b { font-family: 'Lilita One', 'Rubik'; font-weight: 400; font-size: 20px; width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #ffcf5a; border: 2.5px solid var(--out); }
.offline-list { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 16px; }
.offline-list div { display: flex; flex-direction: column; align-items: center; background: #fff; border: 3px solid var(--out); border-radius: 12px; padding: 6px 10px; font-family: 'Lilita One', 'Rubik'; }
.offline-list .ore-svg { width: 34px; height: 34px; }

/* ---------- ABERTURA DE BAÚ ---------- */
.opening {
  position: fixed; inset: 0; z-index: 80; display: none;
  background: radial-gradient(circle, #3e2560, #120a1c 75%);
  align-items: center; justify-content: center; overflow: hidden;
  --rc: #ffd54a;
}
.opening.show { display: flex; animation: fade .25s; }
.op-rays {
  position: absolute; left: 50%; top: 45%; width: 220vmax; height: 220vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(color-mix(in srgb, var(--rc) 40%, transparent) 0 8deg, transparent 8deg 20deg);
  opacity: 0; transition: opacity .4s;
  animation: spin 14s linear infinite;
  -webkit-mask: radial-gradient(circle, #000 0 15%, transparent 45%);
          mask: radial-gradient(circle, #000 0 15%, transparent 45%);
}
.opening.opened .op-rays { opacity: 1; }
.op-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.opening.opened .op-flash { animation: flash .6s ease-out; }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }
.op-stage { position: relative; width: min(92vw, 420px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.op-title { font-family: 'Lilita One', 'Rubik'; font-size: 30px; color: #fff; -webkit-text-stroke: 2px var(--out); paint-order: stroke fill; text-shadow: 0 4px 0 var(--out); margin-bottom: 10px; }
.op-chest { width: 230px; cursor: pointer; animation: chestIn .5s cubic-bezier(.2,.9,.3,1.4); }
@keyframes chestIn { from { transform: translateY(-120vh) rotate(-20deg); } }
.op-chest.shake { animation: shake .35s ease-in-out; }
.op-chest.shake2 { animation: shake2 .4s ease-in-out; }
@keyframes shake { 20% { transform: rotate(-8deg) scale(1.05); } 40% { transform: rotate(7deg) scale(1.08); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(3deg); } }
@keyframes shake2 { 15% { transform: rotate(-12deg) scale(1.12); } 35% { transform: rotate(12deg) scale(1.16); } 55% { transform: rotate(-9deg) scale(1.1); } 75% { transform: rotate(6deg); } }
.op-chest.glow .chest-svg { filter: drop-shadow(0 0 18px var(--rc)) drop-shadow(0 0 8px var(--rc)); }
.op-chest .lid { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.3,1.6,.5,1), opacity .5s; }
.opening.opened .op-chest .lid { transform: translate(-30%, -140%) rotate(-40deg); opacity: 0; }
.opening.opened .op-chest { animation: chestOut .6s .25s forwards; }
@keyframes chestOut { to { transform: translateY(40px) scale(.6); opacity: 0; } }
.op-hint { color: #fff; font-family: 'Lilita One', 'Rubik'; font-size: 20px; margin-top: 14px; animation: pulse 1s infinite; -webkit-text-stroke: 1px var(--out); paint-order: stroke fill; }
.opening.opened .op-hint { display: none; }
.op-card {
  display: none; position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%);
  background: linear-gradient(color-mix(in srgb, var(--rc) 45%, #fff4e0), #fff4e0 60%);
  border: 5px solid var(--out); border-radius: 26px; padding: 14px 16px 18px;
  box-shadow: 0 8px 0 rgba(0,0,0,.5), 0 0 60px var(--rc), inset 0 0 0 4px var(--rc);
}
.op-card.show { display: block; animation: cardPop .55s cubic-bezier(.2,.9,.3,1.5); }
@keyframes cardPop { from { transform: translateY(-50%) scale(.2) rotate(-12deg); opacity: 0; } }
.op-card .rar { font-family: 'Lilita One', 'Rubik'; font-size: 34px; color: var(--rc); -webkit-text-stroke: 2px var(--out); paint-order: stroke fill; text-shadow: 0 4px 0 var(--out); }
.op-card .pic { width: 180px; margin: 0 auto; }
.op-card h3 { font-size: 22px; margin: 4px 0 8px; }
.op-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti { position: absolute; top: -20px; width: 10px; height: 16px; border: 2px solid var(--out); border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- TOASTS ---------- */
.toasts { position: fixed; left: 50%; top: calc(var(--top-h) + 10px); transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; width: 92%; max-width: 420px; }
.toast {
  background: #2a1a10; color: #fff; border: 3px solid #fff3; border-radius: 14px;
  padding: 8px 14px; font-size: 14px; display: flex; align-items: center; gap: 8px;
  animation: toastIn .3s cubic-bezier(.2,.9,.3,1.4), toastOut .3s 2.4s forwards;
  box-shadow: 0 5px 0 rgba(0,0,0,.4);
}
.toast.good { background: #2e8f2a; } .toast.bad { background: #b3302e; }
.toast .ci { width: 22px; height: 22px; }
@keyframes toastIn { from { transform: translateY(-20px) scale(.8); opacity: 0; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 380px) {
  .logo-text { font-size: 18px; }
  .pill { font-size: 15px; padding-right: 8px; }
  .pill-ico { width: 24px; height: 24px; }
  .miner-grid { grid-template-columns: repeat(2, 1fr); }
  .tab-page { padding: 12px 10px 24px; }
  .slots { gap: 9px; }
}
@media (min-width: 600px) {
  .slots { grid-template-columns: repeat(3, 1fr); }
  .miner-grid { grid-template-columns: repeat(4, 1fr); }
  .modal-wrap { align-items: center; }
  .modal-box { border-radius: 26px; border-bottom: 4px solid var(--out); box-shadow: 0 8px 0 rgba(0,0,0,.4); animation: cardPop2 .3s cubic-bezier(.2,.9,.3,1.3); }
  @keyframes cardPop2 { from { transform: scale(.8); opacity: 0; } }
  .chest-grid { grid-template-columns: repeat(4, 1fr); }
}
/* PC: navegação vira barra lateral */
@media (min-width: 960px) {
  :root { --top-h: 72px; }
  #app {
    grid-template-columns: 210px 1fr;
    grid-template-rows: var(--top-h) 1fr;
    grid-template-areas: "top top" "nav main";
    padding: 0 16px;
  }
  .topbar { border: 4px solid var(--out); border-top: 0; border-radius: 0 0 20px 20px; }
  .logo-text { font-size: 28px; }
  .logo-icon { width: 46px; height: 46px; }
  .tabs {
    grid-template-columns: 1fr; grid-auto-rows: 70px; align-content: start;
    border: 4px solid var(--out); border-radius: 20px; margin: 16px 0;
    padding: 10px; gap: 10px; height: max-content;
  }
  .tab-btn { flex-direction: row; justify-content: flex-start; padding: 0 14px; gap: 10px; font-size: 19px; }
  .tab-btn:hover:not(.active) { background: rgba(255,255,255,.08); }
  .tab-ico { width: 40px; height: 40px; }
  .dot { top: 10px; right: 10px; }
  .tab-page { padding: 16px 6px 30px 20px; }
  .slots { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .miner-grid { grid-template-columns: repeat(6, 1fr); }
  .mine-head { max-width: 640px; }
  .btn:hover { filter: brightness(1.08); }
  .slot:hover { transform: translateY(-2px); }
  .miner-card:hover { transform: translateY(-3px); }
  .ore-list { max-width: 820px; }
  .storage-panel, .sell-all, .market-note { max-width: 820px; }
}
@media (min-width: 1200px) {
  .slots { grid-template-columns: repeat(4, minmax(0, 260px)); }
}

/* ============================================================
   LOGO, ÍCONES E IDIOMAS
   ============================================================ */
.logo-icon { width: 44px; height: 44px; filter: drop-shadow(0 3px 0 rgba(0,0,0,.35)); transition: transform .2s; }
.logo:hover .logo-icon { transform: rotate(-12deg) scale(1.08); }
.logo-text { color: #8cf06a; }
.logo-text b { color: #ffd23f; }
.tab-ico { width: 38px; height: 38px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.3)); }
.tab-ico svg { width: 100%; height: 100%; }
.tab-btn:not(.active) .tab-ico { opacity: .92; }
.pill-ico svg, .icon-btn svg { width: 100%; height: 100%; }
.lang-btn {
  width: auto; display: flex; align-items: center; gap: 3px; padding: 3px 7px 3px 4px;
  color: #fff; font-family: 'Lilita One', 'Rubik', sans-serif; font-size: 13px;
}
.lang-btn #langIco { width: 24px; height: 24px; display: block; }
.lang-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lang-opt {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px;
  background: #fff; border: 3px solid var(--out); border-radius: 16px; box-shadow: 0 4px 0 rgba(0,0,0,.3);
}
.lang-opt b { font-family: 'Lilita One', 'Rubik', sans-serif; font-weight: 400; font-size: 26px; color: var(--out); }
.lang-opt span { font-size: 15px; }
.lang-opt small { font-size: 11px; color: #2e8f2a; }
.lang-opt.on { background: linear-gradient(#ffe58a, #ffb93b); }
.lang-opt:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.3); }
.col-card .nm { white-space: normal; line-height: 1.1; min-height: 2.2em; display: flex; align-items: center; justify-content: center; }
@media (max-width: 430px) {
  .topbar { padding: 8px 6px; gap: 4px; }
  .logo { gap: 2px; }
  .logo-icon { width: 34px; height: 34px; }
  .logo-text { font-size: 15px; -webkit-text-stroke-width: 1px; text-shadow: 0 2px 0 var(--out); }
  .pills { gap: 4px; }
  .pill { font-size: 14px; padding-right: 7px; border-width: 2.5px; }
  .pill-ico { width: 22px; height: 22px; }
  .icon-btn { width: 32px; height: 32px; padding: 3px; border-width: 2.5px; border-radius: 10px; }
  .lang-btn { width: auto; padding: 2px 5px 2px 3px; font-size: 11px; }
  .lang-btn #langIco { width: 20px; height: 20px; }
}
@media (max-width: 360px) { .logo-text { display: none; } }

/* sem barras de rolagem visíveis (a rolagem continua funcionando) */
.tab-page, .modal-box, html, body { scrollbar-width: none; -ms-overflow-style: none; }
.tab-page::-webkit-scrollbar, .modal-box::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
/* slot da mina: clicar abre os detalhes (não acelera mais) */
.slot.filled { cursor: pointer; }
.logo { align-items: center; }
.logo-icon { display: grid; place-items: center; }
.logo-icon svg { width: 100%; height: 100%; }

/* cena dos detalhes: sapo + a rocha temática dele */
.detail-scene { position: relative; width: 270px; height: 190px; margin: 0 auto 6px; }
.detail-scene .detail-pic { position: absolute; left: 0; bottom: 0; width: 160px; margin: 0; padding: 0; background: none; }
.detail-scene .ds-rock { position: absolute; right: 0; bottom: 8px; width: 140px; }
.detail-scene::before {
  content: ''; position: absolute; inset: 10% 0 0; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--rc) 40%, transparent), transparent 65%);
}

a.logo { text-decoration: none; }

/* ============================================================
   ECONOMIA ROI (USDT, saques, aposentadoria, bloqueio)
   ============================================================ */
.pill-usdt { color: #b9fff0; position: relative; padding-right: 22px; }
.pill-plus {
  position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: linear-gradient(#8ff06e, #3fb52c); border: 2.5px solid var(--out);
  color: #fff; font-family: 'Lilita One'; font-size: 16px; line-height: 1; -webkit-text-stroke: .8px var(--out); paint-order: stroke fill;
}
.usdt-panel { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; }
.usdt-panel span { display: block; font-size: 12px; color: #7a5a40; text-transform: uppercase; }
.usdt-panel b { font-family: 'Lilita One', 'Rubik'; font-weight: 400; font-size: 22px; display: flex; align-items: center; gap: 6px; }
.usdt-panel .ci { width: 26px; height: 26px; }
.chest-card.off { filter: grayscale(.8) brightness(.8); }
.slot.retired .slot-miner, .slot.retired .rock { filter: grayscale(.55) brightness(.85); }
.retired-tag {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-6deg); z-index: 4; white-space: nowrap;
  font-family: 'Lilita One', 'Rubik'; font-size: 18px; color: #fff; padding: 4px 12px; border-radius: 12px;
  background: linear-gradient(#ffd36a, #f2911d); border: 3px solid var(--out); box-shadow: 0 4px 0 #9c5a0c;
  -webkit-text-stroke: 1px var(--out); paint-order: stroke fill;
}
.kv b .ci { width: 20px; height: 20px; }
.roi-progress { background: #fff; border: 3px solid var(--out); border-radius: 12px; padding: 8px 10px; margin-bottom: 12px; }
.roi-progress .row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; gap: 8px; }
.roi-progress .bar { height: 14px; }
.retired-note { text-align: center; background: #fff3d6; border: 2px dashed #d9b878; border-radius: 12px; padding: 8px; margin: 0 0 12px; }
.withdraw-panel { margin-top: 18px; }
.withdraw-panel h3 { display: flex; align-items: center; gap: 8px; font-size: 22px; }
.withdraw-panel h3 .ci { width: 28px; height: 28px; }
.wd-sub { margin: 2px 0 10px; color: #7a5a40; font-size: 13px; }
.wd-bal { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 3px solid var(--out); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
.wd-bal b { font-family: 'Lilita One', 'Rubik'; font-weight: 400; font-size: 18px; }
.wd-label { display: block; font-size: 13px; margin: 8px 0 4px 2px; color: #5a4030; }
.wd-input { width: 100%; font: 800 15px 'Nunito', sans-serif; padding: 10px 12px; border: 3px solid var(--out); border-radius: 12px; background: #fff; outline: none; color: var(--text); user-select: text; -webkit-user-select: text; }
.wd-input:focus { box-shadow: 0 0 0 4px rgba(95,211,91,.45); }
.wd-amt { display: flex; gap: 8px; }
.wd-amt .btn { flex: none; }
.wd-rules { font-size: 12px; color: #7a5a40; margin: 6px 2px 10px; }
.wd-off { text-align: center; color: #d93a37; }
.wd-h { font-family: 'Lilita One', 'Rubik'; font-weight: 400; font-size: 16px; margin: 16px 0 6px; }
.wd-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: 13px; padding: 6px 0; border-top: 2px dashed #e3d2b6; }
.wd-st { font-family: 'Lilita One', 'Rubik'; font-size: 12px; padding: 1px 8px; border-radius: 99px; border: 2px solid var(--out); color: #fff; }
.wd-st.pending { background: #f2a516; } .wd-st.paid { background: #3fb52c; } .wd-st.rejected { background: #e2413f; }
.wd-none { font-size: 13px; color: #9a7a60; margin: 0; }
.dep-art { width: 80px; margin: 0 auto 8px; }
.dep-soon { text-align: center; background: #d6ecff; border: 2px dashed #3d9bff; border-radius: 12px; padding: 8px; margin: 10px 0 14px; }
.announce {
  position: fixed; left: 50%; top: calc(var(--top-h) + 8px); transform: translateX(-50%); z-index: 30; display: none;
  max-width: min(92vw, 640px); text-align: center; font-size: 14px; color: #3a2414;
  background: linear-gradient(#fff2a8, #ffd36a); border: 3px solid var(--out); border-radius: 14px; padding: 8px 14px; box-shadow: 0 4px 0 rgba(0,0,0,.3);
}
.announce.show { display: block; animation: toastIn .4s; }
.gate { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; background: rgba(15,6,25,.86); padding: 20px; }
.gate.show { display: flex; }
.gate-box { background: var(--panel); border: 5px solid var(--out); border-radius: 26px; padding: 20px; text-align: center; max-width: 380px; box-shadow: 0 8px 0 rgba(0,0,0,.5); }
.gate-pic { width: 150px; margin: 0 auto; }
.gate-box h2 { font-size: 26px; margin: 6px 0; }
@media (max-width: 430px) {
  .pill-store { display: none; }
  .pill-usdt { padding-right: 18px; }
  .pill-plus { width: 19px; height: 19px; font-size: 14px; right: -5px; }
}

/* pedidos de baú aguardando pagamento (FaucetPay) */
.orders-panel h3 { font-size: 19px; margin-bottom: 8px; }
.order-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 2px dashed #e3d2b6; }
.order-row:first-of-type { border-top: 0; }
.order-row .oc { width: 46px; flex: none; }
.order-row .grow { flex: 1; min-width: 0; }
.order-row b { font-family: 'Lilita One', 'Rubik'; font-weight: 400; font-size: 16px; display: block; }
.order-row small { font-size: 12px; color: #7a5a40; }
.pay-chest { width: 130px; margin: 0 auto 10px; animation: chestBob 2.2s ease-in-out infinite; }
.pay-text { text-align: center; margin: 0 0 12px; }
.chest-card .btn .ci { width: 20px; height: 20px; }

@media (max-width: 430px) { .order-row { flex-wrap: wrap; } .order-row .grow { flex: 1 1 calc(100% - 60px); } .order-row .btn.blue { flex: 1; } }

/* ============================================================
   MINERAÇÃO DIRETA DE PEPE (frações com 9 casas decimais)
   ============================================================ */
.pill-coin { font-variant-numeric: tabular-nums; }
#pepeVal { font-family: 'Lilita One', 'Rubik'; letter-spacing: .2px; }
.slot-mined {
  display: inline-flex; align-items: center; gap: 4px; margin: 1px 0 4px;
  background: rgba(0,0,0,.55); border: 2px solid var(--out); border-radius: 99px; padding: 1px 8px 1px 2px;
  max-width: 100%;
}
.slot-mined .ci { width: 18px; height: 18px; flex: none; }
.slot-mined b {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-weight: 800; font-size: 12px; color: #b8ff9e;
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slot .bar { height: 9px; }
.slot .bar i { transition: width .3s linear; }
.drop.pepe-drop { width: 24px; height: 24px; }
.drop.pepe-drop span {
  left: 26px; top: 2px; font-size: 13px; color: #c9ffb0;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-weight: 900;
  -webkit-text-stroke: 2.4px var(--out); paint-order: stroke fill;
}
/* página de saque */
.wd-hero { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #c9f78a, #8fe05a); }
.wd-coin { width: 70px; flex: none; animation: chestBob 2.2s ease-in-out infinite; }
.wd-hero-txt { min-width: 0; }
.wd-hero-txt span { display: block; font-size: 12px; text-transform: uppercase; color: #2e5a1a; }
.wd-hero-txt b { display: block; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: clamp(20px, 5.5vw, 30px); font-weight: 900; color: #1d3b12; font-variant-numeric: tabular-nums; word-break: break-all; line-height: 1.15; }
.wd-hero-txt small { display: block; font-size: 12px; color: #2e5a1a; margin-top: 2px; }
.offline-gain { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 16px; background: #fff; border: 3px solid var(--out); border-radius: 14px; padding: 10px; }
.offline-gain .ci { width: 34px; height: 34px; }
.offline-gain b { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 20px; color: #2e8f2a; }
.offline-gain small { font-family: 'Lilita One', 'Rubik'; font-size: 16px; }
.drop.pepe-drop { width: 104px; height: auto; margin-left: -52px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.drop.pepe-drop svg { width: 22px; height: 22px; }
.drop.pepe-drop span { position: static; font-size: 11.5px; }
