/* =====================================================================
   Garra Premiada — tema da home
   Override leve sobre style.css; modais continuam usando style.css.
   ===================================================================== */

:root {
    --garra-primary:    #EAB308;
    --garra-primary-h:  #FACC15;
    --garra-bg:         #171717;
    --garra-bg-soft:    #1f1d18;
    --garra-bg-card:    #24221a;
    --garra-border:     #3d3a2c;
    --garra-text:       #ffffff;
    --garra-text-muted: #9ca3af;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--garra-bg);
    color: var(--garra-text);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100%;
    height: auto !important;
    width: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
/* Esconde o fundo fixo da roleta (body::before do style.css) */
body::before { display: none !important; }
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }

/* ── Header ───────────────────────────────────────────────────────── */
.garra-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background-color: var(--garra-bg-soft);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-link { display: flex; align-items: center; }
.logo-img  { height: 38px; max-width: 160px; object-fit: contain; }

.user-profile {
    background: transparent;
    border: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid #555;
    background-color: #333;
    object-fit: cover;
}
.dropdown-icon { color: #aaa; font-size: 11px; }

.saldo-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--garra-bg-card);
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px solid var(--garra-border);
    font-size: 14px;
    font-weight: 700;
}
.saldo-icon  { color: var(--garra-primary); font-weight: 800; }
.saldo-value { color: var(--garra-text); }

.btn-depositar,
.btn-login {
    border: 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    padding: 8px 18px;
    transition: background .15s, transform .1s;
}
.btn-depositar {
    background-color: var(--garra-primary);
    color: #000;
}
.btn-depositar:hover { background-color: var(--garra-primary-h); }
.btn-login {
    background: transparent;
    color: var(--garra-text);
    padding: 8px 12px;
}
.btn-login:hover { color: var(--garra-primary); }

/* ── Promo bar ────────────────────────────────────────────────────── */
.promo-bar {
    background: var(--garra-primary);
    text-align: center;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 13px;
}

/* ── Carrossel ────────────────────────────────────────────────────── */
.carousel-container {
    max-width: 880px;
    margin: 24px auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
}
.carousel-track {
    display: flex;
    transition: transform .5s ease;
}
.carousel-slide {
    flex: 0 0 100%;
    line-height: 0;
}
.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}
.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background .2s;
}
.carousel-dot.active {
    background: var(--garra-primary);
    width: 24px;
    border-radius: 4px;
}

/* ── Section title ────────────────────────────────────────────────── */
.section-title {
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    margin: 36px 0 24px;
    font-size: 1.05rem !important;
    color: #fff !important;
    text-shadow: 2px 2px 0 #000;
    letter-spacing: 1px;
    display: block !important;
}

/* ── Grid de máquinas ─────────────────────────────────────────────── */
.maquinas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px 40px;
}
.maquina-card {
    width: calc(50% - 14px);
    max-width: 420px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #333;
    background-color: #222;
    cursor: pointer;
    transition: transform .15s, border-color .15s;
}
.maquina-card:hover {
    transform: translateY(-4px);
    border-color: var(--garra-primary);
}
.maquina-card img {
    width: 100%;
    height: auto;
    display: block;
}
.maquina-card-disabled {
    opacity: .5;
    cursor: not-allowed;
}
@media (max-width: 600px) {
    .maquina-card { width: 100%; }
}

/* ── Seção Ganhadores ────────────────────────────────────────────── */
.winners-section {
    max-width: 880px;
    margin: 0 auto 60px;
    padding: 0 16px;
}
.winners-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 18px;
    font-family: 'Press Start 2P', cursive;
    font-size: .82rem;
    text-shadow: 1px 1px 0 #000;
}
.winners-tab {
    background: transparent;
    border: 0;
    color: var(--garra-text-muted);
    padding: 8px 18px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: color .15s;
}
.winners-tab.active { color: var(--garra-text); }
.winners-divider {
    width: 1px;
    background: var(--garra-border);
    margin: 0 4px;
}
.winners-list {
    position: relative;
    height: 280px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.winners-track {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: garra-winners-scroll 24s linear infinite;
}
.winners-list:hover .winners-track { animation-play-state: paused; }
@keyframes garra-winners-scroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.winner-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 10px 14px;
    backdrop-filter: blur(4px);
}
.winner-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #333;
    flex-shrink: 0;
}
.winner-info { flex: 1; min-width: 0; }
.winner-name {
    margin: 0;
    font-size: .9rem;
    font-weight: 600;
    color: var(--garra-text);
}
.winner-time {
    margin: 2px 0 0;
    font-size: .72rem;
    color: var(--garra-text-muted);
}
.winner-prize {
    margin: 0;
    color: #22c55e;
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
}

/* ── Modal genérico (Garra) ───────────────────────────────────────── */
.garra-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(3px);
    z-index: 100;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}
.garra-modal-overlay.show { display: flex; }

.garra-modal {
    background: var(--garra-bg-card);
    color: var(--garra-text);
    border: 1px solid var(--garra-border);
    border-radius: 14px;
    padding: 28px 24px 24px;
    position: relative;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    margin: auto;
    animation: garra-modal-in .2s ease-out;
}
@keyframes garra-modal-in {
    from { opacity: 0; transform: translateY(-12px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.garra-modal-close {
    position: absolute;
    top: 12px; right: 14px;
    background: transparent;
    border: 0;
    color: var(--garra-text-muted);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color .15s;
}
.garra-modal-close:hover { color: var(--garra-text); }

/* ── Auth modal ──────────────────────────────────────────────────── */
.auth-modal-title {
    text-align: center;
    margin: 0 0 20px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--garra-text);
}
.auth-tabs {
    display: flex;
    background: var(--garra-bg);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
    gap: 4px;
}
.auth-tab {
    flex: 1;
    background: transparent;
    border: 0;
    color: var(--garra-text-muted);
    padding: 10px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.auth-tab.active {
    background: var(--garra-primary);
    color: #000;
}
.auth-tab:not(.active):hover { color: var(--garra-text); }

.auth-form-container { display: none; }
.auth-form-container.active { display: block; }

/* ── Form fields (genérico, reusável noutros modais) ─────────────── */
.form-group { margin-bottom: 14px; }
.form-label {
    display: block;
    font-size: .82rem;
    color: var(--garra-text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon {
    position: absolute;
    left: 14px;
    color: var(--garra-text-muted);
    font-size: 16px;
    pointer-events: none;
}
.form-input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    background: var(--garra-bg);
    border: 1px solid var(--garra-border);
    border-radius: 8px;
    color: var(--garra-text);
    font-size: 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.form-input::placeholder { color: #5b5a52; }
.form-input:focus {
    border-color: var(--garra-primary);
    box-shadow: 0 0 0 3px rgba(234,179,8,0.15);
}
.password-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: 0;
    color: var(--garra-text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    line-height: 1;
}
.password-toggle:hover { color: var(--garra-text); }
.form-helper {
    font-size: .72rem;
    color: var(--garra-text-muted);
    margin: 4px 0 0;
}
.checkbox-group { margin: 6px 0 18px; }
.checkbox-wrapper {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    cursor: pointer;
}
.checkbox-wrapper input[type=checkbox] {
    margin-top: 2px;
    accent-color: var(--garra-primary);
    flex-shrink: 0;
}
.checkbox-text {
    font-size: .78rem;
    color: var(--garra-text-muted);
    line-height: 1.4;
}
.submit-btn {
    width: 100%;
    background: var(--garra-primary);
    color: #000;
    border: 0;
    padding: 13px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
}
.submit-btn:hover:not(:disabled) { background: var(--garra-primary-h); }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.form-footer {
    text-align: center;
    margin: 14px 0 0;
    font-size: .85rem;
    color: var(--garra-text-muted);
}
.footer-link {
    color: var(--garra-primary);
    cursor: pointer;
    font-weight: 600;
}
.footer-link:hover { text-decoration: underline; }
.form-error {
    background: rgba(248,113,113,0.1);
    border: 1px solid rgba(248,113,113,0.3);
    color: #f87171;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: .82rem;
    margin-bottom: 12px;
    display: none;
}
.form-error.show { display: block; }

/* ── Profile modal ───────────────────────────────────────────────── */
.profile-modal { max-width: 380px; padding-top: 24px; }

.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--garra-border);
}
.profile-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 2px solid var(--garra-primary);
    background: #333;
    flex-shrink: 0;
}
.profile-info { flex: 1; min-width: 0; }
.profile-name {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
    color: var(--garra-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-email {
    margin: 2px 0 0;
    font-size: .78rem;
    color: var(--garra-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-balance {
    background: var(--garra-bg);
    border: 1px solid var(--garra-border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.profile-balance-label {
    font-size: .78rem;
    color: var(--garra-text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.profile-balance-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--garra-primary);
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: var(--garra-bg);
    color: var(--garra-text);
    border: 1px solid var(--garra-border);
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
    font-family: inherit;
    text-align: left;
}
.profile-btn i { font-size: 1.05rem; }
.profile-btn:hover {
    border-color: var(--garra-primary);
    color: var(--garra-primary);
}
.profile-btn-primary {
    background: var(--garra-primary);
    color: #000;
    border-color: var(--garra-primary);
}
.profile-btn-primary:hover {
    background: var(--garra-primary-h);
    color: #000;
    border-color: var(--garra-primary-h);
}
.profile-btn-danger:hover {
    border-color: #f87171;
    color: #f87171;
}

/* ── Deposit modal ───────────────────────────────────────────────── */
.deposit-modal { max-width: 440px; }
.modal-title {
    text-align: center;
    margin: 0 0 20px;
    font-size: 1.3rem;
    font-weight: 700;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}
.value-chip {
    background: var(--garra-bg);
    border: 1px solid var(--garra-border);
    color: var(--garra-text);
    padding: 9px 4px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .82rem;
    cursor: pointer;
    transition: all .12s;
}
.value-chip:hover,
.value-chip.active {
    background: var(--garra-primary);
    color: #000;
    border-color: var(--garra-primary);
}
@media (max-width: 480px) {
    .values-grid { grid-template-columns: repeat(3, 1fr); }
}

.deposit-qr-section { text-align: center; }
.qr-success-text {
    font-size: .9rem;
    color: var(--garra-text);
    margin: 0 0 14px;
}
.qr-image-wrapper {
    position: relative;
    background: #fff;
    padding: 14px;
    border-radius: 10px;
    display: inline-block;
    margin: 0 auto 14px;
}
#deposit-qr-target { display: block; }
#deposit-qr-target img,
#deposit-qr-target canvas { display: block; }
.qr-paid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(34,197,94,0.95);
    border-radius: 10px;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
}
.qr-paid-overlay.show { display: flex; }
.qr-copy-row {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}
.qr-copy-row .form-input {
    padding-left: 12px;
    font-size: .78rem;
    font-family: monospace;
}
.copy-btn {
    background: var(--garra-primary);
    color: #000;
    border: 0;
    border-radius: 8px;
    padding: 0 14px;
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
}
.copy-btn:hover { background: var(--garra-primary-h); }
.copy-btn.copied { background: #22c55e; color: #fff; }
.qr-hint {
    font-size: .82rem;
    color: var(--garra-text-muted);
    margin: 0;
}

.deposit-loading {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    z-index: 5;
}
.spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--garra-primary);
    border-radius: 50%;
    animation: garra-spin 0.8s linear infinite;
}
@keyframes garra-spin { to { transform: rotate(360deg); } }

/* ── Withdraw modal ──────────────────────────────────────────────── */
.withdraw-modal { max-width: 440px; }

.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--garra-bg);
    border: 1px solid var(--garra-border);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
}
.balance-row-label {
    font-size: .78rem;
    color: var(--garra-text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.balance-row-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--garra-primary);
}

.rollover-notice {
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.35);
    color: #fbbf24;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: .82rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rollover-notice strong { color: #fff; }

.pix-key-row {
    display: flex;
    gap: 6px;
}
.form-select {
    background: var(--garra-bg);
    border: 1px solid var(--garra-border);
    border-radius: 8px;
    color: var(--garra-text);
    padding: 12px 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    flex-shrink: 0;
    min-width: 120px;
    cursor: pointer;
}
.form-select:focus { border-color: var(--garra-primary); }
.pix-key-row .form-input { padding-left: 14px; }

.tax-amount-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--garra-primary);
    text-align: center;
    margin: 0 0 14px;
}

.withdraw-success {
    text-align: center;
    padding: 20px 0;
}
.withdraw-success i {
    font-size: 3.5rem;
    color: #22c55e;
    display: block;
    margin-bottom: 10px;
}
.withdraw-success h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: var(--garra-text);
}
.withdraw-success p {
    color: var(--garra-text-muted);
    font-size: .9rem;
    margin: 0;
}

/* ── History modal ───────────────────────────────────────────────── */
.history-modal { max-width: 480px; }

.history-tabs {
    display: flex;
    background: var(--garra-bg);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 16px;
    gap: 4px;
}
.history-tab {
    flex: 1;
    background: transparent;
    border: 0;
    color: var(--garra-text-muted);
    padding: 10px;
    font-weight: 600;
    font-size: .9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.history-tab.active {
    background: var(--garra-primary);
    color: #000;
}
.history-tab:not(.active):hover { color: var(--garra-text); }

.history-list {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 4px;
}
.history-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--garra-text-muted);
    font-size: .9rem;
}
.history-loading {
    text-align: center;
    padding: 30px;
    color: var(--garra-text-muted);
    font-size: .85rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 10px;
}
.history-item:last-child { border-bottom: none; }
.history-item-left { flex: 1; min-width: 0; }
.history-item-kind {
    font-weight: 600;
    font-size: .9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.history-item-date {
    margin: 2px 0 0;
    font-size: .72rem;
    color: var(--garra-text-muted);
}
.history-item-right {
    text-align: right;
    flex-shrink: 0;
}
.history-item-amount {
    font-weight: 700;
    font-size: .92rem;
    margin: 0;
}
.history-item-status {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* Cores por tipo */
.amount-positive { color: #22c55e; }
.amount-negative { color: #f87171; }
.amount-neutral  { color: var(--garra-text-muted); }
.kind-deposit    .history-item-kind { color: #22c55e; }
.kind-withdrawal .history-item-kind { color: #f87171; }

/* Status badges */
.status-pending    { background: rgba(245,158,11,0.15); color: #fbbf24; }
.status-paid,
.status-completed,
.status-approved   { background: rgba(34,197,94,0.15); color: #4ade80; }
.status-failed,
.status-rejected,
.status-cancelled  { background: rgba(248,113,113,0.15); color: #f87171; }
.status-processing { background: rgba(59,130,246,0.15); color: #60a5fa; }
.status-refunded   { background: rgba(168,85,247,0.15); color: #c084fc; }

/* ── Jogo (página da máquina) ────────────────────────────────────── */
.game-page main { padding-bottom: 40px; }

.game-header .header-left { gap: 18px; }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--garra-text-muted);
    font-weight: 500;
    font-size: .9rem;
    transition: color .15s;
}
.back-link:hover { color: var(--garra-text); }
.back-link i { font-size: 1.1rem; }

.machine-name {
    font-family: 'Press Start 2P', cursive;
    font-size: .82rem;
    color: var(--garra-text);
    letter-spacing: 1px;
    text-shadow: 1px 1px 0 #000;
}

/* ── Possíveis ganhos (strip horizontal scrollable) ──────────────── */
.possible-prizes {
    max-width: 880px;
    margin: 18px auto 0;
    padding: 0 16px;
}
.possible-prizes-title {
    margin: 0 0 10px;
    font-size: .72rem;
    color: var(--garra-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}
.prizes-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE/Edge */
    cursor: grab;
    user-select: none;
}
.prizes-strip::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.prizes-strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.prizes-strip.dragging * { pointer-events: none; }
.prize-tile { scroll-snap-align: start; }
.prize-tile {
    flex: 0 0 auto;
    background: var(--garra-bg-card);
    border: 1px solid var(--garra-border);
    border-radius: 10px;
    padding: 8px 12px 6px;
    text-align: center;
    min-width: 80px;
}
.prize-tile-img {
    width: 38px; height: 38px;
    object-fit: contain;
    display: block;
    margin: 0 auto 2px;
}
.prize-tile-value {
    font-size: .72rem;
    color: var(--garra-primary);
    font-weight: 700;
    white-space: nowrap;
}

/* ── Stage da máquina (3 layers) ─────────────────────────────────── */
.machine-stage {
    max-width: 880px;
    margin: 18px auto 0;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.machine-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}
.machine-layer {
    position: absolute;
    inset: 0;
}
.machine-layer-claw { z-index: 1; }            /* garra: ATRÁS */
.machine-bg {                                   /* imagem da máquina (PNG c/ vidro transparente) */
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
}
.machine-layer-ui   { z-index: 3; pointer-events: none; }
.machine-layer-ui .claw-button-zone { pointer-events: auto; }

/* Zona onde a garra pode se mover — limitada às bordas internas do vidro */
.claw-play-zone {
    position: absolute;
    top: 8%;
    right: 14%;
    bottom: 18%;
    left: 14%;
    pointer-events: none;
}
.claw-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: top 1.4s cubic-bezier(0.55, 0.05, 0.45, 0.95);
    will-change: left, top;
}
/* Cabo virtual conectando a garra ao topo da máquina (compensa a imagem ser curta).
   Estende-se pra cima a partir do topo do wrapper; o overflow:hidden do container clipa o excesso. */
.claw-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% - 6px);  /* sobrepõe levemente o topo da garra */
    transform: translateX(-50%);
    width: 3px;
    height: 800px;             /* alto o bastante pra alcançar o teto em qualquer descida */
    background: linear-gradient(to bottom, #0a0a0a 0%, #1f1f1f 100%);
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: -1;
}
.claw-image {
    display: block;
    margin: 0 auto;
    height: 13rem;             /* ~208px */
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: center top;
}

/* Idle: garra desliza horizontalmente de um lado pro outro continuamente */
.claw-wrapper.hovering {
    animation: claw-slide 5.5s ease-in-out infinite;
}
@keyframes claw-slide {
    0%, 100% { left: 22%; }
    50%      { left: 78%; }
}

/* Zona dos botões dentro da máquina (em cima do painel da máquina) */
.claw-button-zone {
    position: absolute;
    top: 58%;
    left: 0;
    right: 0;
    height: 20%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    box-sizing: border-box;
}

.claw-start-btn {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    transition: filter .2s, transform .1s;
}
.claw-start-btn:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: scale(1.05);
}
.claw-start-btn:active:not(:disabled) { transform: scale(0.95); }
.claw-start-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.claw-start-btn-img {
    display: block;
    width: auto;
    height: clamp(3rem, 9vw, 5rem);
    max-width: 200px;
    object-fit: contain;
}

.claw-valor-img {
    display: block;
    width: auto;
    height: clamp(2.5rem, 7.5vw, 4rem);
    max-width: 160px;
    object-fit: contain;
}

/* Botão JOGAR */
.play-btn {
    width: 100%;
    max-width: 360px;
    background: var(--garra-primary);
    color: #000;
    border: 0;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Press Start 2P', cursive;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: background .15s, transform .1s;
    box-shadow: 0 6px 0 #b78f06;
}
.play-btn:hover:not(:disabled) {
    background: var(--garra-primary-h);
    transform: translateY(-1px);
    box-shadow: 0 7px 0 #b78f06;
}
.play-btn:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 4px 0 #b78f06;
}
.play-btn:disabled { opacity: .65; cursor: not-allowed; }
.play-btn .play-amount {
    font-size: .85rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}
.play-btn.spinning .play-label::after {
    content: '...';
    display: inline-block;
    animation: garra-dots 1s infinite;
}
@keyframes garra-dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Modal de resultado — animação do baú abrindo */
.result-modal { max-width: 340px; text-align: center; }
.result-content { padding: 8px 0 0; }
.result-bau {
    width: 140px;
    height: auto;
    display: block;
    margin: 0 auto 14px;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
    transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.result-bau-closed {
    animation: bau-pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.result-bau-open {
    animation: bau-open .55s ease-out;
}
.result-bau-empty {
    animation: bau-open .55s ease-out;
    opacity: .85;
}
@keyframes bau-pop-in {
    0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
    60%  { transform: scale(1.15) rotate(8deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes bau-open {
    0%   { transform: scale(0.85) rotateY(180deg); }
    50%  { transform: scale(1.1) rotateY(0); }
    100% { transform: scale(1) rotateY(0); }
}
.result-text-block { min-height: 70px; }
.result-content h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    color: var(--garra-text);
}
.result-content p {
    margin: 0;
    color: var(--garra-text-muted);
    font-size: .95rem;
}
.result-amount {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #22c55e !important;
    margin-top: 4px !important;
    text-shadow: 0 0 12px rgba(34,197,94,0.4);
}

/* Header responsivo (vale pra home e jogo) */
@media (max-width: 720px) {
    .garra-header { padding: 8px 10px; }
    .garra-header .header-left,
    .garra-header .header-right { gap: 6px; }
    .garra-header .logo-img { height: 32px; max-width: 130px; }
    .garra-header .saldo-badge { padding: 5px 9px; font-size: 12px; gap: 4px; }
    .garra-header .saldo-badge .saldo-icon { font-size: 14px; }
    .garra-header .btn-depositar { padding: 6px 10px; font-size: 12px; }
    .garra-header .btn-login { padding: 6px 8px; font-size: 12px; }
    .garra-header .user-avatar { width: 30px; height: 30px; }
    .garra-header .dropdown-icon { font-size: 9px; }
    /* Específicos do jogo */
    .machine-name { font-size: .65rem; letter-spacing: .5px; white-space: nowrap; }
    .game-header .back-link { font-size: .85rem; }
}
@media (max-width: 480px) {
    .garra-header { padding: 6px 8px; }
    .garra-header .logo-img { height: 28px; max-width: 110px; }
    .garra-header .saldo-badge { padding: 4px 7px; font-size: 11px; }
    .garra-header .btn-depositar { padding: 6px 9px; font-size: 11px; }
    .garra-header .user-avatar { width: 26px; height: 26px; border-width: 1px; }
    /* Específicos do jogo */
    .game-header .back-link-text { display: none; }
    .game-header .back-link i { font-size: 1.4rem; }
    .machine-name { font-size: .58rem; }
    .machine-container { max-width: 320px; }
    .claw-image { height: 11rem; }
    .result-bau { width: 110px; }
}

/* ═══════════════════════════════════════════════════════════════════
   OVERRIDES DOS MODAIS DO PUBLIC_HTML (tema garra)
   Sobrescrevem classes do style.css clonado da roleta — sem mexer no HTML.
   ═══════════════════════════════════════════════════════════════════ */

/* Esconde decorações carnaval do auth modal */
.christmas-decoration { display: none !important; }

/* Esconde banners topo (cadastre.png, deposit.png) — sem banner topo */
.auth-modal-content > div:first-of-type:has(> img[src*="cadastre"]),
.auth-modal-content > div:first-of-type img[src*="cadastre"],
.deposit-header-img { display: none !important; }
.auth-modal-content > div[style*="margin:-1.5rem"] { display: none !important; }

/* ── Modal containers (deposit, withdraw, sigap) — fundo escuro, bordas amarelas ── */
.modal-container .modal-card {
    background: var(--garra-bg-card, #24221a) !important;
    border: 1px solid var(--garra-border, #3d3a2c) !important;
    color: var(--garra-text, #fff) !important;
    border-radius: 14px !important;
}
.modal-container .modal-body { padding-top: 1.5rem !important; }
.modal-container .modal-close,
.modal-container .auth-modal-close {
    color: var(--garra-text-muted, #9ca3af) !important;
    background: transparent !important;
    border: 0 !important;
}
.modal-container .modal-close:hover,
.modal-container .auth-modal-close:hover {
    color: var(--garra-text, #fff) !important;
}

/* Auth modal — fundo escuro */
.auth-modal-content {
    background: var(--garra-bg-card, #24221a) !important;
    border: 1px solid var(--garra-border, #3d3a2c) !important;
    color: var(--garra-text, #fff) !important;
    padding-top: 1.5rem !important;
}
.auth-modal-content::before,
.auth-modal-content::after { display: none !important; }

.auth-tabs {
    background: var(--garra-bg, #171717) !important;
    border-radius: 10px !important;
    padding: 4px !important;
    gap: 4px !important;
}
.auth-tab {
    background: transparent !important;
    color: var(--garra-text-muted, #9ca3af) !important;
    border: 0 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}
.auth-tab.active {
    background: var(--garra-primary, #EAB308) !important;
    color: #000 !important;
}

/* Form inputs */
.modal-container input.amount-input,
.modal-container input.pix-input,
.modal-container input.qr-input,
.modal-container .input-wrapper input.form-input,
.auth-modal-content input.form-input {
    background: var(--garra-bg, #171717) !important;
    border: 1px solid var(--garra-border, #3d3a2c) !important;
    color: var(--garra-text, #fff) !important;
    border-radius: 8px !important;
}
.modal-container input.amount-input:focus,
.modal-container input.pix-input:focus,
.modal-container .form-input:focus,
.auth-modal-content input.form-input:focus {
    border-color: var(--garra-primary, #EAB308) !important;
    box-shadow: 0 0 0 3px rgba(234,179,8,.15) !important;
    outline: none !important;
}
.modal-container .input-label,
.auth-modal-content .form-label {
    color: var(--garra-text-muted, #9ca3af) !important;
    font-weight: 500 !important;
}
.modal-container .min-value-notice,
.modal-container .max-balance,
.auth-modal-content .form-helper {
    color: var(--garra-text-muted, #9ca3af) !important;
}

/* Selectors PIX */
.pix-selector,
.compact-select,
select.form-select {
    background: var(--garra-bg, #171717) !important;
    border: 1px solid var(--garra-border, #3d3a2c) !important;
    color: var(--garra-text, #fff) !important;
}

/* Botões de valor (R$ 20, R$ 30...) */
.values-grid .value-btn {
    background: var(--garra-bg, #171717) !important;
    border: 1px solid var(--garra-border, #3d3a2c) !important;
    color: var(--garra-text, #fff) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}
.values-grid .value-btn:hover,
.values-grid .value-btn.selected {
    background: var(--garra-primary, #EAB308) !important;
    color: #000 !important;
    border-color: var(--garra-primary, #EAB308) !important;
}
.quente-tag {
    background: #ef4444 !important;
    color: #fff !important;
}

/* Botão principal "Gerar QR / Solicitar Saque / Criar Conta / Entrar" */
.modal-container .generate-btn,
.modal-container .compact-submit,
.auth-modal-content .submit-btn {
    background: var(--garra-primary, #EAB308) !important;
    color: #000 !important;
    border: 0 !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 13px !important;
}
.modal-container .generate-btn:hover:not(:disabled),
.modal-container .compact-submit:hover:not(:disabled),
.auth-modal-content .submit-btn:hover:not(:disabled) {
    background: var(--garra-primary-h, #FACC15) !important;
}

/* QR Section */
.qr-section .qr-title { color: var(--garra-text, #fff) !important; }
.qr-section .qr-description { color: var(--garra-text-muted, #9ca3af) !important; }
.qr-image-wrapper {
    background: #fff !important;
    padding: 14px !important;
    border-radius: 10px !important;
}
.qr-paid-overlay {
    background: rgba(34,197,94,0.95) !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
}
.qr-code-container .qr-input {
    font-family: monospace !important;
    font-size: .8rem !important;
}
.copy-btn {
    background: var(--garra-primary, #EAB308) !important;
    color: #000 !important;
    border: 0 !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}

/* Profile modal — dropdown estilo dark/garra */
#profile-modal-content {
    background: var(--garra-bg-card, #24221a) !important;
    color: var(--garra-text, #fff) !important;
    border: 1px solid var(--garra-border, #3d3a2c) !important;
    border-radius: 14px !important;
}
#profile-header { color: var(--garra-text, #fff) !important; }
#close-profile-button {
    background: transparent !important;
    color: var(--garra-text-muted, #9ca3af) !important;
    border: 0 !important;
}
.profile-button {
    background: var(--garra-bg, #171717) !important;
    color: var(--garra-text, #fff) !important;
    border: 1px solid var(--garra-border, #3d3a2c) !important;
    border-radius: 8px !important;
    transition: border-color .15s, color .15s !important;
}
.profile-button:hover {
    border-color: var(--garra-primary, #EAB308) !important;
    color: var(--garra-primary, #EAB308) !important;
}
#logout-button:hover {
    border-color: #f87171 !important;
    color: #f87171 !important;
}

/* History modal — dark theme */
.history-modal-content {
    background: var(--garra-bg-card, #24221a) !important;
    color: var(--garra-text, #fff) !important;
    border: 1px solid var(--garra-border, #3d3a2c) !important;
    border-radius: 14px !important;
}
.history-modal-title { color: var(--garra-text, #fff) !important; }
.history-modal-close { color: var(--garra-text-muted, #9ca3af) !important; }
.history-tab.active {
    color: var(--garra-primary, #EAB308) !important;
    border-bottom-color: var(--garra-primary, #EAB308) !important;
}

/* Notiflix — tema garra */
.notiflix-notify-success { background: #16a34a !important; }
.notiflix-notify-failure { background: #dc2626 !important; }

/* Backdrop dos modais */
.modal-backdrop.active {
    background: rgba(0,0,0,0.7) !important;
    backdrop-filter: blur(3px);
}

/* Rollover notice */
.rollover-notice {
    background: rgba(245,158,11,0.12) !important;
    border: 1px solid rgba(245,158,11,0.35) !important;
    color: #fbbf24 !important;
    border-radius: 8px !important;
}
.rollover-notice strong { color: #fff !important; }

/* ── Bonus spinner (modal de resultado) ──────────────────────────── */
/* Bonus posicionado em absolute no topo-esquerdo do modal pra não cobrir o valor */
.bonus-section {
    position: absolute;
    top: 28px;
    left: 12px;
    text-align: center;
    z-index: 10;
    transform: rotate(-8deg);
    animation: bonus-section-in 0.4s ease-out;
}
@keyframes bonus-section-in {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.bonus-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: var(--garra-primary, #EAB308);
    text-shadow: 0 0 12px rgba(234,179,8,0.7), 2px 2px 0 #000;
    letter-spacing: 2px;
    margin-bottom: 10px;
    animation: bonus-pulse 0.9s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.bonus-label i { font-size: 1.4rem; }
.result-total-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.result-total-label i { color: var(--garra-primary); font-size: 0.9rem; }
.result-lose-block i { animation: result-shake 0.6s ease-in-out; }
@keyframes result-shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    75%      { transform: translateX(6px); }
}
@keyframes bonus-pulse {
    0%, 100% { transform: scale(1);    text-shadow: 0 0 12px rgba(234,179,8,0.7), 2px 2px 0 #000; }
    50%      { transform: scale(1.08); text-shadow: 0 0 24px rgba(234,179,8,1), 2px 2px 0 #000; }
}
.bonus-wheel {
    display: inline-block;
    font-size: 1.7rem;
    font-weight: 900;
    font-family: 'Press Start 2P', cursive;
    color: #000;
    background: linear-gradient(135deg, var(--garra-primary, #EAB308) 0%, #facc15 50%, #f59e0b 100%);
    border: 3px solid #000;
    border-radius: 12px;
    padding: 10px 18px;
    text-shadow: 1px 1px 0 #fff;
    box-shadow: 0 6px 0 #92400e, 0 10px 18px rgba(234,179,8,0.5);
    min-width: 80px;
}
.bonus-label { font-size: 0.7rem !important; margin-bottom: 6px !important; }
.bonus-label i { font-size: 1rem !important; }
.bonus-wheel.spinning {
    animation: bonus-spin 0.15s linear infinite;
}
@keyframes bonus-spin {
    0%   { transform: rotate(-6deg) scale(1.05); }
    50%  { transform: rotate(6deg)  scale(0.98); }
    100% { transform: rotate(-6deg) scale(1.05); }
}
.bonus-wheel.landed {
    animation: bonus-landed 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bonus-landed {
    0%   { transform: scale(1)   rotate(0deg);  filter: brightness(1); }
    30%  { transform: scale(1.4) rotate(360deg); filter: brightness(1.3); }
    60%  { transform: scale(0.9) rotate(360deg); }
    100% { transform: scale(1.1) rotate(360deg); filter: brightness(1); }
}

.result-total {
    margin-top: 14px;
    text-align: center;
    animation: bonus-section-in 0.4s ease-out;
}
.result-total-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: var(--garra-text-muted, #9ca3af);
    letter-spacing: 2px;
    margin: 0 0 4px;
}
.result-amount-final {
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    color: #22c55e !important;
    margin: 0 !important;
    text-shadow: 0 0 16px rgba(34,197,94,0.5), 2px 2px 0 #000;
    animation: amount-glow 1.5s ease-in-out infinite alternate;
}
@keyframes amount-glow {
    from { text-shadow: 0 0 16px rgba(34,197,94,0.5), 2px 2px 0 #000; }
    to   { text-shadow: 0 0 28px rgba(34,197,94,0.9), 2px 2px 0 #000; }
}

/* ── Confetti dopamina ───────────────────────────────────────────── */
.result-modal { overflow: visible !important; position: relative; }
.confetti-piece {
    position: absolute;
    top: -20px;
    width: 8px;
    height: 14px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 1000;
    animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
    0%   { transform: translateY(0) rotate(0deg);   opacity: 1; }
    100% { transform: translateY(560px) rotate(720deg); opacity: 0; }
}

/* ── Footer ───────────────────────────────────────────────────────── */
.garra-footer {
    background: var(--garra-bg-soft);
    border-top: 1px solid var(--garra-border);
    padding: 24px 16px 32px;
    margin-top: 24px;
}
.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.footer-support {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    font-size: .85rem;
    color: var(--garra-text-muted);
}
.footer-line { display: flex; align-items: center; gap: 6px; }
.footer-seals {
    display: flex;
    gap: 18px;
    align-items: center;
}
.footer-seal {
    height: 28px;
    opacity: .8;
    filter: grayscale(.2);
}
.footer-disclaimer {
    text-align: center;
    font-size: .72rem;
    color: var(--garra-text-muted);
    max-width: 520px;
}

/* ── Welcome Modal ────────────────────────────────────────────────── */
#garra-welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    animation: garraFadeInWelcome 0.4s ease;
}
@keyframes garraFadeInWelcome {
    from { opacity: 0; transform: scale(1.04); }
    to   { opacity: 1; transform: scale(1); }
}
#garra-welcome-overlay h1 {
    font-size: clamp(1.2rem, 5vw, 2.5rem);
    font-weight: 900;
    font-family: 'Press Start 2P', cursive;
    color: var(--garra-primary);
    text-align: center;
    line-height: 1.4;
    text-shadow: 2px 2px 0 #000;
    margin: 0;
    padding: 0 20px;
}
#garra-welcome-overlay p {
    color: rgba(255,255,255,0.85);
    font-size: clamp(0.9rem, 3vw, 1.15rem);
    text-align: center;
    margin: 0;
    font-weight: 500;
}
#welcome-enter-btn {
    margin-top: 0.5rem;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--garra-primary);
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
#welcome-enter-btn:hover { transform: scale(1.05); background: var(--garra-primary-h); }
#welcome-enter-btn:active { transform: scale(0.97); }

/* ── Mute Button Lateral ──────────────────────────────────────────── */
#garra-mute-btn {
    position: fixed;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--garra-primary);
    color: #000;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: transform 0.15s, background 0.15s;
    font-size: 1.4rem;
}
#garra-mute-btn:hover {
    transform: translateY(-50%) scale(1.1);
    background: var(--garra-primary-h);
}
#garra-mute-btn:active {
    transform: translateY(-50%) scale(0.95);
}
