/* ============================================================
   PREMIUM UPGRADE — carregar DEPOIS de index-CeLeKf3F.css
   Sobrescreve os design tokens (:root) usados pelo app inteiro,
   então o efeito se propaga para todos os componentes que já
   usam var(--primary), var(--gold) etc, sem tocar no bundle JS.
   ============================================================ */

:root {
    /* paleta verde esmeralda profunda, igual ao novo modal de prêmios */
    --bg: #04120a;
    --bg-soft: #081f10;
    --surface: #0e2b17;
    --surface-2: #143820;
    --border: #1e5230;
    --text: #f6f7ef;
    --text-dim: #a6bfae;
    --primary: #00f5b8;
    --primary-2: #00d4ff;
    --accent: #39ff8a;
    --accent-2: #00f5b8;
    --danger: #ff4d6d;
    --warning: #ffb547;
    --gold: #ffd24d;
    --radius: 18px;
    --shadow: 0 16px 50px #000000a6;
}

/* fundo verde esmeralda do novo modal de prêmios aplicado ao background do jogo inteiro */
html, body, #root, .app, .game-container, .game-wrapper, main, #tetris-layout, #bg-grad {
    background:
        radial-gradient(circle at 18% 12%, rgba(57,255,138,.12), transparent 40%),
        radial-gradient(circle at 84% 82%, rgba(255,210,63,.08), transparent 45%),
        linear-gradient(180deg, #04120a, #081f10 60%) !important;
    color: #f6f7ef !important;
}

/* ---------- PRÊMIOS (.reward-box) — redesenho premium ---------- */
.reward-box {
    position: relative;
    text-align: center;
    border: 1px solid rgba(255, 210, 77, 0.55) !important;
    background: linear-gradient(155deg,
        rgba(255, 210, 77, 0.12),
        rgba(139, 107, 255, 0.08)) !important;
    border-radius: 20px !important;
    padding: 18px !important;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        inset 0 -10px 24px rgba(0,0,0,0.35),
        0 10px 26px rgba(0,0,0,0.35);
}

.reward-box::before {
    content: '';
    position: absolute;
    inset: -40% -20%;
    background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.16) 50%, transparent 60%);
    animation: reward-shine 3.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes reward-shine {
    0%   { transform: translateX(-30%); }
    100% { transform: translateX(30%); }
}

.reward-box .label {
    color: var(--text-dim) !important;
    font-size: .82rem !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700 !important;
}

.reward-box .value {
    color: var(--gold) !important;
    text-shadow: 0 0 18px rgba(255, 210, 77, 0.75) !important;
    font-size: 2rem !important;
    font-weight: 900 !important;
    margin-top: 4px !important;
}

/* ---------- Botões de ação principal — mais “tátil” ---------- */
.panel-cta {
    border-radius: 16px !important;
    transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease !important;
    box-shadow: 0 8px 20px rgba(139, 107, 255, 0.4);
}
.panel-cta:active {
    transform: scale(0.96);
}

/* ---------- Esconder feed de atividade falsa (depósito/saque/urgência) ----------
   .live-toast mostra "Fulano sacou/depositou Rx" — como o pedido é remover a
   pegada de dinheiro real, esse feed de prova social artificial sai também. */
.live-toast,
.live-toast-icon.deposit,
.live-toast-icon.withdraw {
    display: none !important;
}

/* Move the cashout button to the top right over the target amount so it doesn't block the tray */
.cashout-ready {
    position: fixed !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    z-index: 9999 !important;
    border-radius: 99px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.5), 0 0 0 2px rgba(255, 193, 7, 0.6) !important;
    margin: 0 !important;
}

/* DOPAMINE VFX */
.shake-intense {
    animation: dopamine-shake-heavy 0.4s cubic-bezier(.36,.07,.19,.97) both;
}
.shake-light {
    animation: dopamine-shake-light 0.3s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes dopamine-shake-heavy {
    0% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-4px, -4px) rotate(-1deg); filter: brightness(1.2); }
    20% { transform: translate(4px, 4px) rotate(1deg); }
    30% { transform: translate(-4px, 4px) rotate(-1deg); }
    40% { transform: translate(4px, -4px) rotate(1deg); }
    50% { transform: translate(-2px, -2px) rotate(-0.5deg); }
    60% { transform: translate(2px, 2px) rotate(0.5deg); filter: brightness(1.1); }
    70% { transform: translate(-2px, 2px) rotate(-0.5deg); }
    80% { transform: translate(2px, -2px) rotate(0.5deg); }
    100% { transform: translate(0, 0) rotate(0deg); filter: brightness(1); }
}

@keyframes dopamine-shake-light {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-2px, -2px); filter: brightness(1.1); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0, 0); }
}

.floating-money {
    position: fixed;
    color: #00f5b8;
    font-weight: 900;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(0, 245, 184, 0.8), 0 0 20px rgba(0, 245, 184, 0.5), 0 2px 4px rgba(0,0,0,0.8);
    pointer-events: none;
    z-index: 100000;
    animation: float-up-fade 1.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
    white-space: nowrap;
    transform: translate(-50%, -50%);
}

@keyframes float-up-fade {
    0% { opacity: 0; transform: translate(-50%, 0) scale(0.5); }
    15% { opacity: 1; transform: translate(-50%, -30px) scale(1.2); }
    30% { transform: translate(-50%, -40px) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -100px) scale(1); }
}

.css-confetti {
    position: fixed;
    top: -10px;
    width: 8px;
    height: 16px;
    z-index: 99998;
    pointer-events: none;
    animation: fall-rotate 3s linear forwards;
    border-radius: 2px;
}

@keyframes fall-rotate {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Pulsing Gold for values */
.value.gold {
    animation: pulse-gold 2s infinite alternate;
}

@keyframes pulse-gold {
    0% { text-shadow: 0 0 8px rgba(255, 210, 77, 0.4); }
    100% { text-shadow: 0 0 16px rgba(255, 210, 77, 0.8), 0 0 30px rgba(255, 210, 77, 0.4); transform: scale(1.02); }
}

/* Enhance cashout button with rotating border */
.cashout-ready {
    background: linear-gradient(90deg, #ff4d6d, #8b6bff, #00d4ff, #00f5b8) !important;
    background-size: 300% 300% !important;
    animation: rgb-bg 3s ease infinite, pulse-button 1.5s infinite alternate !important;
    color: #fff !important;
    font-weight: 900 !important;
    border: none !important;
}

@keyframes rgb-bg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse-button {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(139, 107, 255, 0.5); }
    100% { transform: scale(1.05); box-shadow: 0 0 25px rgba(0, 212, 255, 0.8), 0 0 40px rgba(255, 77, 109, 0.6); }
}

/* ==========================================================================
   LEGO PROGRESS BAR — Componente da barra de progresso LEGO com peça 3D
   ========================================================================== */
.lpb-wrapper {
  width: min(360px, 94%);
  margin: 10px auto;
  position: relative;
  z-index: 10;
}

.lpb {
  position: relative;
  padding: 0 26px 0 0; /* espaço pra peça andar até a ponta */
}
.lpb-track {
  position: relative;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0f2a16, #0a2010);
  border: 2px solid #2c5c33;
  box-shadow: inset 0 3px 6px rgba(0,0,0,.55), inset 0 -1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}
.lpb-track::before {
  content:"";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 0 2.5px, transparent 3px);
  background-size: 22px 22px;
  background-position: 10px 13px;
}
.lpb-fill {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd23f 0%, #39ff8a 55%, #2f6fed 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -6px 8px rgba(0,0,0,.25), 0 0 18px rgba(57,255,138,.45);
  transition: width .6s cubic-bezier(.3,.9,.25,1);
  overflow: hidden;
}
.lpb-fill::before {
  content:"";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 30px, rgba(0,0,0,.18) 30px, rgba(0,0,0,.18) 33px);
}
.lpb-fill::after {
  content:"";
  position: absolute; top:0; left:-40%;
  width: 30%; height: 100%;
  background: linear-gradient(75deg, transparent, rgba(255,255,255,.55), transparent);
  animation: lpb-sweep 2.6s ease-in-out infinite;
}
@keyframes lpb-sweep { 0%{left:-40%;} 60%{left:130%;} 100%{left:130%;} }

.lpb-pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85);
  z-index: 2;
}

.lpb-brick {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 46px;
  height: 40px;
  transform: translate(-8px, -50%);
  transition: left .6s cubic-bezier(.3,.9,.25,1);
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.55));
  z-index: 3;
  animation: lpb-bob 1.1s ease-in-out infinite;
}
@keyframes lpb-bob {
  0%,100%{ transform: translate(-8px, -50%) rotate(0deg); }
  50%{ transform: translate(-8px, calc(-50% - 3px)) rotate(-2deg); }
}
.lpb-brick svg { width:100%; height:100%; display:block; }
.lpb-brick .lpb-stud,
.lpb-brick .lpb-body { transition: fill .4s ease; }
.lpb-brick .lpb-top-hl { fill:#ffffff; opacity:.35; }
.lpb-brick .lpb-bottom-sh { opacity:.35; }

/* Override standard progress container in React App */
.bb-hud-progress {
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  height: 30px !important;
  box-shadow: none !important;
  width: min(340px, 92%) !important;
  margin: 6px auto 16px auto !important;
  position: relative !important;
}

.bb-hud-progress-fill {
  opacity: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}

#progress-wrap.lpb-wrapper {
  overflow: visible !important;
  height: auto !important;
  background: transparent !important;
}
