/* ==========================================================================
   LORENCIA SLOTS V2.0: 5 REELS & 50 PAYLINES (ESTILO CALIENTE / FIRE BLAZE)
   ========================================================================== */

:root {
    --gold-bright: #ffd700;
    --gold-deep: #ff9900;
    --crimson: #ff2a4b;
    --arcane-cyan: #00e1ff;
    --goblin-green: #00ff88;
    --dark-wood: #18120c;
    --slot-gold-border: #d4af37;
    --font-heading: 'Cinzel', serif;
    --font-ui: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body.casino-body {
    background-color: #05070c;
    background-image: 
        radial-gradient(circle at 50% 20%, rgba(255, 120, 0, 0.15) 0%, transparent 65%),
        url('img/casino_slot_bg.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: #f1f4fa;
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

#casino-fx-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

/* ================= HEADER ================= */
.casino-header {
    position: relative;
    z-index: 10;
    background: rgba(8, 11, 18, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 180, 0, 0.25);
    padding: 10px 18px;
}

.casino-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.casino-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a0aec0;
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.casino-back-btn:hover {
    color: var(--gold-bright);
    border-color: var(--gold-deep);
    transform: translateX(-3px);
}

.casino-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.casino-crown {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

.casino-brand .highlight {
    color: var(--gold-bright);
    text-shadow: 0 0 10px rgba(255, 180, 0, 0.6);
}

.casino-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-help-paytable, .btn-faucet-header, .btn-sound-toggle {
    background: rgba(20, 26, 40, 0.85);
    border: 1px solid rgba(255, 180, 0, 0.35);
    color: #ffcc00;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-faucet-header {
    background: linear-gradient(135deg, rgba(255, 180, 0, 0.2) 0%, rgba(255, 100, 0, 0.3) 100%);
    border-color: var(--gold-bright);
    color: #ffd700;
}

.btn-help-paytable:hover, .btn-faucet-header:hover, .btn-sound-toggle:hover {
    background: rgba(255, 180, 0, 0.25);
    border-color: var(--gold-bright);
    box-shadow: 0 0 12px rgba(255, 180, 0, 0.4);
    transform: translateY(-1px);
}

/* ================= MAIN CASINO STAGE ================= */
.casino-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    position: relative;
    z-index: 5;
}

.cal-slot-stage {
    max-width: 1040px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ================= 4 JACKPOTS EN LA MARQUESINA ================= */
.jackpots-marquee {
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.6fr 1fr 1.1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.jackpot-tier {
    background: linear-gradient(180deg, #1b120c 0%, #0d0805 100%);
    border: 2px solid;
    border-radius: 8px;
    padding: 6px 10px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8), 0 4px 15px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.jp-grand {
    border-color: #ff3344;
    box-shadow: 0 0 18px rgba(255, 51, 68, 0.45);
}
.jp-grand .jp-tag { color: #ff3344; }

.jp-major {
    border-color: #b537f2;
    box-shadow: 0 0 15px rgba(181, 55, 242, 0.35);
}
.jp-major .jp-tag { color: #d46bff; }

.jp-minor {
    border-color: #00d2ff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.35);
}
.jp-minor .jp-tag { color: #00e1ff; }

.jp-mini {
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.35);
}
.jp-mini .jp-tag { color: #00ffaa; }

.jp-tag {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    display: block;
}

.jp-amount {
    font-family: var(--font-ui);
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    display: block;
    line-height: 1.1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.jp-curr {
    font-size: 0.65rem;
    font-weight: 800;
    color: #cbd5e1;
}

.jackpot-center-title {
    text-align: center;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.25) 0%, rgba(10, 12, 20, 0.9) 80%);
    border: 2px solid var(--gold-bright);
    border-radius: 10px;
    padding: 6px 14px;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.4);
}

.cal-title-sub {
    font-size: 0.65rem;
    font-weight: 800;
    color: #ffaa00;
    letter-spacing: 2px;
    display: block;
}

.cal-title-main {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: 1.5px;
    line-height: 1.1;
    text-shadow: 0 0 10px #ffbb00, 0 0 20px #ff4400;
}

.cal-title-badge {
    font-size: 0.68rem;
    font-weight: 900;
    color: #00ffaa;
    letter-spacing: 1px;
}

/* ================= CABINA DE 5 CARRETES ================= */
.cal-slot-cabinet {
    width: 100%;
    background: linear-gradient(180deg, #1d1620 0%, #120e17 50%, #09080d 100%);
    border: 3px solid #d4af37;
    border-radius: 16px;
    padding: 16px 16px 14px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.95),
        0 0 40px rgba(255, 140, 0, 0.25),
        inset 0 0 20px rgba(0, 0, 0, 0.85);
    position: relative;
}

/* ================= VENTANA DE LOS 5 CARRETES ================= */
.cal-reels-window {
    background: #030407;
    border: 3px solid #4a3618;
    border-radius: 12px;
    padding: 8px;
    position: relative;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.95), 0 0 25px rgba(255, 180, 0, 0.15);
    overflow: hidden;
}

.cal-reels-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.cal-reel-strip-wrap {
    height: 310px; /* 3 filas de ~100px */
    background: #070911;
    border: 1.5px solid rgba(255, 180, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 12px 25px rgba(0, 0, 0, 0.85), inset 0 -12px 25px rgba(0, 0, 0, 0.85);
}

.cal-reel-strip-wrap::before, .cal-reel-strip-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 30px;
    z-index: 5;
    pointer-events: none;
}
.cal-reel-strip-wrap::before {
    top: 0;
    background: linear-gradient(180deg, rgba(3, 4, 7, 0.95) 0%, transparent 100%);
}
.cal-reel-strip-wrap::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(3, 4, 7, 0.95) 0%, transparent 100%);
}

.cal-reel-tape {
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    transform: translateY(0);
    will-change: transform;
}

.cal-item-cell {
    height: 100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    position: relative;
    flex-shrink: 0;
}

.cal-item-img {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75);
    background: #0b0e17;
    transition: transform 0.25s, filter 0.25s;
}

.cal-item-cell.winner .cal-item-img {
    transform: scale(1.1);
    border-color: #ffd700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.95);
    animation: winner-glow 0.6s infinite alternate;
}

@keyframes winner-glow {
    0% { filter: brightness(1) drop-shadow(0 0 10px #ffd700); }
    100% { filter: brightness(1.3) drop-shadow(0 0 25px #ff5500); }
}

/* Capa SVG para dibujar las 50 líneas ganadoras */
.paylines-svg-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
}

.reels-glass-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 50%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
    z-index: 4;
}

/* ================= BANNER DE ALERTA & MULTI-LÍNEAS ================= */
.status-alert-strip {
    background: rgba(14, 18, 28, 0.92);
    border: 1px solid rgba(255, 180, 0, 0.35);
    border-radius: 8px;
    padding: 8px 14px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-gem-icon {
    font-size: 1.1rem;
    animation: pulse 1s infinite;
}

.status-alert-text {
    font-family: var(--font-ui);
    font-size: 0.98rem;
    font-weight: 800;
    color: #ffc400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ================= BARRA DE CONTROLES CALIENTE STYLE ================= */
.cal-control-bar {
    display: grid;
    grid-template-columns: 50px 1.4fr 1.3fr 1.2fr 85px 85px 95px;
    gap: 10px;
    align-items: center;
    background: rgba(8, 10, 16, 0.95);
    border: 2px solid #5a411e;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.btn-cal-info {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(180deg, #2b3345 0%, #151a24 100%);
    border: 2px solid var(--gold-bright);
    color: var(--gold-bright);
    font-family: serif;
    font-size: 1.4rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
}

.btn-cal-info:hover {
    transform: scale(1.08);
    background: var(--gold-bright);
    color: #000;
}

/* Selector [-] APUESTA [+] */
.cal-bet-control {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 180, 0, 0.4);
    border-radius: 8px;
    padding: 4px 6px;
    justify-content: space-between;
}

.btn-bet-step {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffaa00 0%, #cc5500 100%);
    border: 1px solid #ffd700;
    color: #000;
    font-size: 1.4rem;
    font-weight: 900;
    cursor: pointer;
    line-height: 1;
    transition: all 0.15s;
}

.btn-bet-step:hover {
    transform: scale(1.08);
    filter: brightness(1.15);
}

.cal-bet-display {
    text-align: center;
    flex: 1;
}

.bet-display-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #94a3b8;
    display: block;
}

.bet-display-val {
    font-family: var(--font-ui);
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
    display: block;
    line-height: 1.1;
}

.bet-lines-sub {
    font-size: 0.62rem;
    color: #ffaa00;
    font-weight: 700;
}

/* Pantalla Central: PREMIO TOTAL */
.cal-win-display {
    background: radial-gradient(circle, rgba(0, 255, 136, 0.12) 0%, rgba(0, 0, 0, 0.8) 80%);
    border: 2px solid rgba(0, 255, 136, 0.5);
    border-radius: 8px;
    padding: 6px 12px;
    text-align: center;
}

.win-display-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #00ffaa;
    display: block;
}

.win-display-val {
    font-family: var(--font-ui);
    font-size: 1.4rem;
    font-weight: 900;
    color: #00ffaa;
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.8);
    line-height: 1.1;
    display: block;
}

.win-display-curr {
    font-size: 0.65rem;
    font-weight: 800;
    color: #6ee7b7;
}

/* Saldo */
.cal-balance-display {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 6px 10px;
    text-align: center;
}

.balance-display-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    display: block;
}

.balance-val-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.balance-val {
    font-family: var(--font-ui);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--gold-bright);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Botones Auto y Turbo */
.btn-cal-auto, .btn-cal-turbo {
    height: 48px;
    background: #141b29;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #94a3b8;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: all 0.2s;
}

.btn-cal-auto.active {
    background: rgba(0, 225, 255, 0.2);
    border-color: var(--arcane-cyan);
    color: var(--arcane-cyan);
    box-shadow: 0 0 15px rgba(0, 225, 255, 0.5);
}

.btn-cal-turbo.active {
    background: rgba(255, 51, 68, 0.2);
    border-color: #ff3344;
    color: #ff3344;
    box-shadow: 0 0 15px rgba(255, 51, 68, 0.5);
}

/* Botón Circular Gigante GIRAR (Spin) */
.btn-cal-spin {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffd700 0%, #ff8800 50%, #b84700 100%);
    border: 3px solid #fff;
    box-shadow: 
        0 8px 25px rgba(255, 136, 0, 0.7),
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        inset 0 -3px 6px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    outline: none;
}

.btn-cal-spin:hover:not(:disabled) {
    transform: scale(1.06);
    box-shadow: 0 12px 35px rgba(255, 136, 0, 0.9);
}

.btn-cal-spin:active:not(:disabled) {
    transform: scale(0.96);
    box-shadow: 0 4px 15px rgba(255, 136, 0, 0.5);
}

.btn-cal-spin:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.spin-circle-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spin-arrow-svg {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6));
    animation: rotate-hint 6s infinite linear;
}

@keyframes rotate-hint {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================= MODALES OVERLAYS (OCULTOS POR DEFECTO) ================= */
.modal-paytable-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease;
}

.modal-paytable-overlay.show {
    display: flex;
}

.modal-paytable-card {
    background: #0f1422;
    border: 2px solid var(--gold-bright);
    border-radius: 14px;
    max-width: 580px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 180, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 180, 0, 0.2);
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.modal-header h3 {
    font-family: var(--font-heading);
    color: var(--gold-bright);
    font-size: 1.15rem;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.modal-footer {
    margin-top: 20px;
    text-align: center;
}

.btn-ack {
    background: linear-gradient(135deg, #ffaa00 0%, #ff6600 100%);
    border: 1px solid #ffd700;
    color: #000;
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 900;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.4);
}

/* ================= BIG WIN OVERLAY (OCULTO POR DEFECTO) ================= */
.big-win-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.big-win-overlay.show {
    display: flex;
}

.big-win-content {
    max-width: 480px;
    width: 100%;
}

.big-win-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px #ffaa00, 0 0 40px #ff3300;
    margin-bottom: 20px;
}

.big-win-amount-box {
    background: radial-gradient(circle, rgba(255, 180, 0, 0.25) 0%, rgba(0,0,0,0.8) 80%);
    border: 2px dashed var(--gold-bright);
    border-radius: 16px;
    padding: 25px 20px;
    margin-bottom: 20px;
}

.big-win-label {
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 800;
    color: #ffcc00;
    display: block;
}

.big-win-num {
    font-family: var(--font-ui);
    font-size: 3.5rem;
    font-weight: 900;
    color: #00ffaa;
    text-shadow: 0 0 25px rgba(0, 255, 170, 0.8);
    display: block;
}

.big-win-curr {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold-bright);
}

.big-win-goblin-quote {
    font-style: italic;
    color: #cbd5e1;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.btn-claim-win {
    background: linear-gradient(135deg, #00ff88 0%, #009944 100%);
    border: 2px solid #00ffaa;
    color: #000;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 900;
    padding: 14px 35px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
    transition: transform 0.2s;
}

.btn-claim-win:hover {
    transform: scale(1.06);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ================= MODAL PAYTABLE WIDE & 50 LÍNEAS ================= */
.wide-card {
    max-width: 860px !important;
}

.paytable-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid rgba(255, 180, 0, 0.25);
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.pt-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.pt-tab-btn.active {
    background: linear-gradient(135deg, #ffaa00 0%, #ff5500 100%);
    border-color: var(--gold-bright);
    color: #000;
}

.pt-tab-content { display: none; }
.pt-tab-content.active { display: block; }

.paytable-grid-50 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 10px;
}

.pay-card-cal {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
}

.pay-card-cal.special-card {
    border-color: var(--gold-bright);
    background: rgba(255, 180, 0, 0.08);
}

.pay-thumb-cal {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pay-info-cal {
    display: flex;
    flex-direction: column;
}

.sym-name-cal {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}
.sym-name-cal.gold { color: var(--gold-bright); }
.sym-name-cal.purple { color: #d46bff; }
.sym-name-cal.green { color: #00ff88; }
.sym-name-cal.crimson { color: #ff2a4b; }
.sym-name-cal.fire { color: #ff6600; }
.sym-name-cal.orange { color: #ffa200; }
.sym-name-cal.arcane { color: #a855f7; }
.sym-name-cal.red { color: #f43f5e; }
.sym-name-cal.cyan { color: #06b6d4; }

.sym-mult-cal {
    font-size: 0.8rem;
    color: #e2e8f0;
    margin-top: 2px;
}
.sym-desc-cal {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* ================= GRID MINIATURAS 50 LÍNEAS (Idéntico a Caliente) ================= */
.lines-diagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    max-height: 480px;
    overflow-y: auto;
    padding: 10px 4px;
}

.line-diagram-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 180, 0, 0.3);
    border-radius: 6px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.line-num-badge {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 900;
    color: var(--gold-bright);
    width: 22px;
    text-align: right;
}

.line-mini-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    width: 65px;
    height: 38px;
    background: #080a10;
    padding: 2px;
    border-radius: 4px;
}

.mini-cell {
    background: #252e3d;
    border-radius: 1px;
}

.mini-cell.active-node {
    background: #ffaa00;
    box-shadow: 0 0 6px #ffaa00;
}

.rules-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 180, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    line-height: 1.6;
}

.rules-box h4 {
    color: var(--gold-bright);
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.rules-box ul {
    margin-left: 20px;
    margin-top: 10px;
}

.rules-box li {
    margin-bottom: 8px;
}

/* Responsividad para móviles y pantallas compactas */
@media (max-width: 860px) {
    .jackpots-marquee {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .jackpot-center-title {
        grid-column: 1 / -1;
        order: -1;
    }
    .cal-control-bar {
        grid-template-columns: 44px 1.5fr 1.2fr 80px;
        gap: 8px;
    }
    .cal-balance-display, .btn-cal-auto, .btn-cal-turbo {
        display: none; /* En pantallas pequeñas se priorizan controles esenciales */
    }
    .cal-reel-strip-wrap {
        height: 240px;
    }
    .cal-item-cell {
        height: 78px;
        padding: 4px;
    }
    .cal-item-img {
        width: 68px;
        height: 68px;
    }
}

/* ==========================================================================
   FASE 3: HOLD & RESPIN (FIRE BLAZE OVERLAY) & FREE SPINS STYLES
   ========================================================================== */

/* Free Spins Ribbon */
.free-spins-ribbon {
    display: none;
    background: linear-gradient(90deg, #4a0072, #8e24aa, #4a0072);
    border: 2px solid #e1bee7;
    border-radius: 8px;
    padding: 8px 16px;
    margin: 8px 0;
    text-align: center;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    box-shadow: 0 0 18px rgba(142, 36, 170, 0.7);
    animation: fsPulse 1.5s infinite alternate;
}

.free-spins-ribbon.active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@keyframes fsPulse {
    0% { box-shadow: 0 0 10px rgba(142, 36, 170, 0.5); }
    100% { box-shadow: 0 0 25px rgba(225, 190, 231, 0.9); }
}

/* Comodín Wild con Multiplicador (x2, x4, x8, x16) */
.wild-mult-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: linear-gradient(135deg, #ff0055, #ff5500);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.85rem;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid #ffd700;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.8);
    z-index: 5;
    animation: multBounce 0.5s infinite alternate ease-in-out;
}

@keyframes multBounce {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* Hold & Respin Overlay Container */
.hold-respin-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 5, 2, 0.92);
    backdrop-filter: blur(8px);
    z-index: 40;
    display: none;
    flex-direction: column;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid #ff7700;
    box-shadow: 0 0 35px rgba(255, 100, 0, 0.6) inset;
}

.hold-respin-overlay.active {
    display: flex;
}

/* Header de la Ronda de Respins */
.hr-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(255, 60, 0, 0.2), rgba(255, 140, 0, 0.35), rgba(255, 60, 0, 0.2));
    border: 1px solid rgba(255, 140, 0, 0.5);
    border-radius: 8px;
    padding: 6px 14px;
    margin-bottom: 8px;
}

.hr-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hr-main-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 180, 0, 0.8);
    letter-spacing: 1px;
}

.hr-respins-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #000;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #ffd700;
}

.hr-respins-label {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: #bbb;
    font-weight: 700;
}

.hr-respins-dots {
    display: flex;
    gap: 4px;
}

.hr-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #444;
    transition: all 0.3s;
}

.hr-dot.active {
    background: #ff5500;
    box-shadow: 0 0 8px #ff7700;
}

.hr-respins-num {
    font-family: var(--font-heading);
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 900;
}

/* Grid de las 15 Celdas de Respin */
.hr-grid-stage {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
}

.hr-cell {
    background: rgba(20, 15, 10, 0.7);
    border: 1px dashed rgba(255, 140, 0, 0.35);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.hr-cell.spinning {
    background: radial-gradient(circle, rgba(255, 100, 0, 0.2) 0%, rgba(10, 8, 5, 0.8) 100%);
    animation: hrCellSpin 0.2s infinite alternate ease-in-out;
}

@keyframes hrCellSpin {
    0% { border-color: rgba(255, 100, 0, 0.4); }
    100% { border-color: rgba(255, 200, 0, 0.8); }
}

.hr-cell.locked {
    background: radial-gradient(circle, rgba(255, 120, 0, 0.45) 0%, rgba(20, 10, 5, 0.95) 100%);
    border: 2px solid #ffd700;
    box-shadow: 0 0 16px rgba(255, 140, 0, 0.7);
    animation: hrLockedPulse 2s infinite alternate ease-in-out;
}

@keyframes hrLockedPulse {
    0% { transform: scale(1); box-shadow: 0 0 12px rgba(255, 140, 0, 0.6); }
    100% { transform: scale(1.02); box-shadow: 0 0 20px rgba(255, 200, 0, 0.9); }
}

.hr-cell-img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.8));
}

.hr-cell-prize {
    position: absolute;
    bottom: 6px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 900;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #ffd700;
    padding: 1px 6px;
    border-radius: 4px;
    text-shadow: 0 0 6px #ffd700;
    letter-spacing: 0.5px;
}

.hr-cell-prize.jp-badge {
    background: linear-gradient(135deg, #ff0055, #9900ff);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 10px #ff0055;
}

.hr-bottom-status {
    text-align: center;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffd700;
    margin-top: 6px;
    text-shadow: 0 0 8px rgba(255, 180, 0, 0.6);
}

